@media (max-width: 700px) {
  /* Nav */
  #app-nav { padding: 0 16px; }
  .nav-tabs .nav-tab { padding: 5px 8px; font-size: 9px; }

  /* Stats bar */
  #stats-bar { padding: 8px 16px; flex-wrap: wrap; gap: 6px; }
  .stats-bar-date { width: 100%; font-size: 11px; }
  .stats-bar-numbers { gap: 14px; }

  /* Split view: stack vertically */
  #split-view { flex-direction: column; position: relative; }

  #touch-list-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 55vh;
  }

  /* Profile panel slides in from right on mobile */
  #profile-panel {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 50;
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 20px 20px 40px;
    overflow-y: auto;
  }
  #profile-panel.slide-in {
    transform: translateX(0);
  }
  #profile-panel::before {
    content: '← Back';
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sage);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    cursor: pointer;
  }

  /* Floating add button */
  .tl-add-btn { display: none; }
  body::after {
    content: '+';
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: var(--sage);
    color: var(--text-nav);
    font-size: 28px;
    font-weight: 300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(40,60,50,.3);
    cursor: pointer;
    z-index: 40;
    line-height: 1;
  }

  /* Modal full-screen on mobile */
  #modal-overlay { align-items: flex-end; padding: 0; }
  .modal-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    max-width: 100%;
    width: 100%;
  }

  /* All contacts */
  .ac-toolbar { padding: 10px 16px; }
  .ac-list { padding: 0 16px 80px; }
}

@media (max-width: 700px) {
  /* Profile panel back button tap */
  #profile-panel.slide-in::before {
    font-family: var(--font-sans);
  }
}
