/* ===== Tasks on a phone · lists, groups and the task inspector ===== */

/* the pane is a plain column that runs with the page, not a bounded scroller */
.tasks-pane { display: block; }
.tasks-list-scroll,
.tasks-inspector-body { overflow: visible; }

/* ─── Task row · the whole row is the tap target, check and star get a thumb-sized hit area ─── */
.task-row { min-height: 3.5rem; padding: 0.55rem 0.35rem; gap: 0.75rem; }
.row-title { white-space: normal; }
.row-check,
.row-star { position: relative; }
.row-check { width: 22px; height: 22px; }
/* the circle stays small, the invisible ring around it is what a thumb actually hits */
.row-check::before,
.row-star::before { content: ""; position: absolute; inset: -11px; }
/* a phone has no hover, so an unstarred star shows faintly rather than not at all */
.row-star { width: 26px; height: 26px; opacity: 0.55; }
.row-star.is-starred { opacity: 1; }
/* reordering is drag and drop, which a touch screen doesn't do · the handle only wastes the gutter */
.task-row .drag-handle,
#tasks-nav-rail .drag-handle { display: none; }

/* ─── Add Task · floats above the tab bar so it's in reach from anywhere down the list ─── */
#btn-tasks-add-task,
#btn-group-tasks-add-task {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--phone-floor) + 1rem);
  z-index: var(--z-popover);
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 1.625rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px var(--shadow-lg);
}
/* the list's last row stays clear of the floating button */
.tasks-list-scroll { padding-bottom: 4.5rem; }

/* ─── Inspector · desktop drops it under 940px, a phone stacks it under the list as the detail ─── */
.tasks-inspector:not(.is-hidden) { display: flex; overflow: visible; }
.tasks-inspector.is-hidden { display: none; }
.tasks-inspector-tabs .btn-icon { min-width: var(--touch); min-height: var(--touch); }
.drawer-field { min-height: var(--touch); }
.drawer-check { position: relative; }
.drawer-check::before { content: ""; position: absolute; inset: -11px; }
