/* — phones: one pane at a time. The list of todos is the home screen; touching a todo opens it on its thread, with
     a way back, and at the foot of the screen, where a thumb rests, the voice button. (todos.js keeps `mobile-thread` on <body> while a thread is open; the voice button is voice.css.) — */
.thread__back { display: none; }

@media (max-width: 760px) {
  .board { row-gap: 0; }
  body:not(.mobile-thread) #thread { display: none; }
  body.mobile-thread #list { display: none; }

  /* Room under the content for the voice button. Voice mode (voice.css) makes its own, larger. */
  .page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

  .todo-row__main { min-height: 48px; }   /* a row is a target a thumb can hit */

  /* Back to the list: a mono "‹ Todos" where the thread's label starts, its tap area larger than it looks. */
  .thread__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 10px -12px -10px; padding: 0 10px;
    background: none; border: none; cursor: pointer; font: inherit; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
  .thread__back:active { color: var(--text-4); }
  .thread__crumb { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; }
  .thread__crumb-strong { text-overflow: ellipsis; overflow: hidden; }

  /* Notices rise clear of the voice button. */
  .toast, .notice { bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.voice-on .toast, body.voice-on .notice { bottom: calc(var(--voice-h, 200px) + 8px); }
}

