/* ================= STRIDE MOBILE — THE THREE VIEWS, READ AND COMMENT, AND THE COMMENT THREAD =================

   PHONE-ONLY (mobile.html), and it is a TASK surface: nothing here draws a board. Loaded AFTER the
   page's own inline <style>, so where a rule here and a rule there have equal specificity this one
   is the later word — and the one place that matters (the view switch over `.m-seg-wide`) is made
   more specific anyway, so the order is a convenience rather than a dependency.

   Split out of mobile.html on 2026-10-16 under the file-size ratchet (no runtime file of 2,000+
   lines may grow). The tokens are CSS/tokens.css's; the page's own rules (.ed-row, .pill, .btn,
   .empty, .m-seg-wide) are what these extend. */

/* WHY A ROW IS ON WATCHING — taskWatchReasonLabel()'s sentence, the desktop's own three. A
   soft accent wash rather than another outline: it is the one chip on the row that explains
   the row rather than describing the task, and it must not read as a status. */
.pill.why{background:var(--accent-soft);color:var(--accent-text);}
/* A ROW THE PHONE CANNOT WRITE HAS NO TICK AND NO STAR — both are writes — and wears this in
   the tick's place so the left edge of the list still lines up. Decorative: the row's own
   title is its name, and tapping it opens the task to read and comment. */
.ro-mark{
  position:absolute; left:4px; top:14px; width:24px; height:24px;
  display:flex; align-items:center; justify-content:center; color:var(--text-faint);
}
.ro-mark svg{ width:18px; height:18px; display:block; }
/* No star in the corner, so the title needs no gutter for one: the gutter is arithmetic from
   the star's size, and a star the width of the row's own padding reserves nothing. */
.card.is-ro{ --m-star-size:var(--m-card-pad-x); }

/* A VIEW'S EMPTY OR FAILED STATE IS A HEADLINE AND A REASON, inside the same `.empty` box —
   the headline at the reading colour, the reason under it at the body weight. */
.empty-t{ color:var(--text); font-size:15px; line-height:1.4; }
.empty-s{ margin-top:var(--a-2); font-size:13px; font-weight:500; line-height:1.45; color:var(--text-dim); }
.empty .btn{ margin-top:var(--a-3); }
/* ONE LINE UNDER A LIST THAT IS KNOWN TO BE INCOMPLETE — the watched tasks whose watch row is
   still there but whose task no longer comes back (the desktop's altWatchingMissing() case). */
.m-view-note{ font-size:13px; line-height:1.45; color:var(--text-dim); text-align:center; padding:var(--a-3) var(--a-4) 0; }

/* ===== READ AND COMMENT: THE SAME ROWS, THE VALUE AS TEXT =====
   A task the phone may not write opens in the same editor with every field drawn as words
   (`.ed-ro`) in the place its control would be, so the screen reads the same as the editable
   one — icon, label, value — and offers nothing it will not do. The value keeps the control
   column's right edge and wraps rather than truncating: a name cut short names somebody else. */
.ed-ro{
  flex:0 1 auto; min-width:0; max-width:64%; text-align:right;
  font-size:15px; line-height:1.4; color:var(--text); overflow-wrap:anywhere;
}
.ed-ro.dim{ color:var(--text-faint); }
.ed-ro.late{ color:var(--red-text); }
.ed-ro-title{
  margin:var(--a-1) 0 var(--a-2); font-size:19px; font-weight:600; line-height:1.3;
  color:var(--text); overflow-wrap:anywhere;
}
.ed-ro-desc{ padding:var(--a-2) 0; font-size:15px; line-height:1.5; color:var(--text); overflow-wrap:anywhere; }
.ed-ro-desc:empty{ display:none; }

/* ===== COMMENTS — THE SHARED THREAD, DRAWN AT THE PHONE'S SIZE =====
   renderCommentsInto() (the one comment renderer) emits these classes; their desktop rules
   live in CSS/components.css, which this page deliberately does not load (§14), so they are
   restated here at phone sizes: 44px targets, 15px body text, a 16px composer so iOS does not
   zoom. Nothing here invents a comment design — it is that one, sized for a thumb. */
.m-comments{ margin-top:var(--a-5); padding-top:var(--a-4); border-top:1px solid var(--border-soft); }
.m-comments-top{ display:flex; align-items:center; gap:var(--a-2); margin:0 0 var(--a-3); }
.m-comments-h{
  margin:0; display:inline-flex; align-items:center;
  font-size:15px; font-weight:600; color:var(--text);
}
.m-comments-order{ margin-left:auto; font-size:12px; color:var(--text-faint); }
/* The count chip renderCommentsInto() writes beside the heading — `.a-count-chip` on the
   desktop. A reserved slot that is invisible at zero, so the heading never moves. */
.a-count-chip{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; margin-left:6px; padding:0 6px;
  border-radius:var(--a-r-pill); background:var(--panel-2); border:1px solid var(--border-soft);
  font-size:12px; font-weight:600; color:var(--text-dim); font-variant-numeric:tabular-nums;
}
.a-count-chip.none{ visibility:hidden; }
/* THE ORDER TOGGLE IS NOT OFFERED HERE. comment-order.js keeps its one preference in the
   Suite's settings store, which this page does not load, so on the phone the thread is always
   newest first (its default) and a toggle could not move it — a control that does nothing.
   The heading says the order in words instead. */
#mCommentListOrderFallbackRow, #mCommentListOrderHost{ display:none; }
/* The read row's buttons are comment-unread.js's `.btn small`; this page loads no components.css,
   so they take the phone's `.a-btn sm` look here. */
.comment-read-row .btn{
  flex:0 0 auto; min-height:32px; padding:2px 12px; border-radius:var(--a-r-sm);
  border:1px solid var(--border-strong); background:transparent; color:var(--text-dim);
  font:inherit; font-size:13px; font-weight:600;
}
.comment-read-row > button:first-of-type{ margin-left:auto; }
.m-comment-list{ display:flex; flex-direction:column; gap:var(--a-2); }
/* THE THREAD ITSELF is CSS/comment-thread.css (`.cmt-thread`) and the reactions row is
   CSS/comment-reactions.css; only the phone's sizing is restated here. */
.m-comment-list .a-empty-h{ font-size:14px; font-weight:600; color:var(--text-dim); }
.m-comment-list .a-comment-b{ font-size:15px; }
.a-btn.sm{ min-height:32px; padding:4px 12px; font-size:13px; }
.a-btn.ghost{ background:transparent; }
.cmt-thread .a-comment-a .a-btn{ min-height:32px; }
@media (pointer:coarse){
  .cmt-thread .a-comment-a .a-btn, .m-comment-list .a-empty .a-btn{ min-height:36px; min-width:36px; }
}
.mention{ padding:0 3px; border-radius:3px; font-weight:600; background:var(--accent-soft); color:var(--accent-text); }
.rich-link{ color:var(--accent-text); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
/* THE STATUS LINE renderCommentsInto() reports a refused delete or a copied link into.
   Hidden until it has something to say (Definition of Done 4f). */
.m-comment-status{ font-size:13px; line-height:1.45; color:var(--text-dim); margin-top:var(--a-2); }
.m-comment-status:empty{ display:none; }
.m-comment-status.err{ color:var(--red-text); }
.m-comment-status.ok{ color:var(--green-text); }
.m-comment-compose{ margin-top:var(--a-3); display:flex; flex-direction:column; gap:var(--a-2); }
.m-comment-compose[hidden]{ display:none; }
.m-comment-input{ min-height:96px; resize:vertical; line-height:1.45; font-family:inherit; }
.m-comment-actions{ display:flex; align-items:center; gap:var(--a-2); }
.m-comment-hint{ margin-right:auto; font-size:12px; color:var(--text-faint); }
.m-comment-ro{ margin-top:var(--a-3); }
/* REPLYING TO SOMEBODY — comment-reply.js's banner, above the composer. */
.comment-reply-banner{
  display:flex; align-items:center; gap:6px; min-width:0;
  padding:var(--a-1) var(--a-1) var(--a-1) var(--a-3);
  background:var(--accent-soft); border:1px solid var(--accent); border-radius:var(--a-r);
  font-size:13px; color:var(--text);
}
.comment-reply-banner .crb-label{ flex:0 0 auto; color:var(--text-dim); }
.comment-reply-banner .crb-who{ flex:0 0 auto; color:var(--text); }
.comment-reply-banner .crb-quote{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-dim); }
.comment-reply-banner .crb-cancel{
  flex:0 0 auto; width:var(--m-tap); height:var(--m-tap); padding:0;
  background:none; border:0; font-size:20px; line-height:1; color:var(--text-dim);
}
/* EDITING YOUR OWN COMMENT — commentEditStart()'s box, plain here: the phone loads no
   formatting bar, so `.a-fmt-host` stays empty and takes no room. */
.rt-composer{ display:block; }
.a-fmt-host:empty{ display:none; }
.rt-input{
  min-height:88px; padding:10px 12px; border:1px solid var(--border-strong); border-radius:var(--a-r-sm);
  background:var(--panel-2); color:var(--text); font-size:16px; line-height:1.45; overflow-wrap:anywhere;
}
.rt-input:focus{ outline:none; border-color:var(--accent); }
.rt-input:empty::before{ content:attr(data-placeholder); color:var(--text-faint); }
.rt-edit-actions{ display:flex; align-items:center; gap:var(--a-2); margin-top:var(--a-2); }
/* The editor's Save / Cancel are `.a-btn sm` on the desktop; here they are this page's own
   `.btn small`, restated under the classes the component emits. */
.a-btn{
  min-height:var(--m-tap); padding:8px 14px; border-radius:var(--a-r-sm);
  border:1px solid var(--border-strong); background:var(--panel-2); color:var(--text);
  font:inherit; font-size:14px; font-weight:600;
}
.a-btn.primary{ background:var(--accent-fill); border-color:transparent; color:#fff; }
/* THE @ PICKER, mention-picker.js's list, placed by popover.js against the composer. Rows are
   44px so a name is a thumb's target, and the list is above the dialog it opened in. */
.mention-picker{
  position:fixed; z-index:calc(var(--z-panel) + 5);
  max-height:220px; overflow-y:auto; padding:4px;
  background:var(--panel-2); border:1px solid var(--border-strong);
  border-radius:var(--a-r); box-shadow:var(--a-shadow-sm);
}
.mention-option{
  display:flex; align-items:center; gap:var(--a-2); width:100%; min-height:var(--m-tap);
  padding:0 var(--a-2); text-align:left; background:none; border:0; border-radius:var(--a-r-sm);
  font:inherit; font-size:15px; color:var(--text);
}
.mention-option.on{ background:var(--accent-soft); color:var(--accent-text); }
.mention-option-name{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mention-option-hint:not(:empty){ flex:0 0 auto; font-size:12px; color:var(--text-faint); }
.avatar-dot.mention-avatar{
  flex:0 0 auto; width:24px; height:24px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--accent-soft); color:var(--accent-text); font-size:11px; font-weight:700; font-style:normal;
}
.mention-empty{ padding:var(--a-2); font-size:13px; line-height:1.45; color:var(--text-faint); }

/* ===== A LINK THAT CANNOT BE OPENED — ONE SCREEN, AND IT SAYS WHY =====
   The same full-screen surface the editor is, with a headline, a reason and the way on. */
.arrive-body{
  display:flex; flex-direction:column; align-items:center; gap:var(--a-3);
  padding-top:var(--a-6); text-align:center;
}
.arrive-h{ margin:0; font-size:19px; font-weight:600; line-height:1.3; color:var(--text); }
.arrive-p{ margin:0; max-width:30em; font-size:15px; line-height:1.45; color:var(--text-dim); }
.arrive-who{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:var(--a-2);
  font-size:13px; color:var(--text-faint); overflow-wrap:anywhere;
}
.arrive-who[hidden]{ display:none; }
.arrive-actions{ display:flex; flex-direction:column; gap:var(--a-2); width:100%; max-width:320px; margin-top:var(--a-3); }
/* `hidden` WINS INSIDE A SCREEN. The editor's two modes show and hide whole blocks and single
   controls (Save, a row, the composer) with the attribute, and several of those carry a
   `display` of their own that would otherwise beat the UA rule. */
.screen [hidden]{ display:none !important; }

/* ===== THE VIEW SWITCH — `.m-seg-wide` MADE SHORTER, THE COUNT WHERE THE ICON GOES =====
   The same segmented control Settings → Appearance draws, so the pressed one is the same
   raised, accent-edged card. 52px instead of 78 because it sits above the list on every visit,
   and the count is the large figure because "how many" is what a reader glances at. An unknown
   count is "…" or "—", never 0 (mobileViewCountText()). */
.m-seg-wide.m-seg-views .m-seg-b{
  min-height:52px; gap:1px; padding:var(--a-2) var(--a-1);
  font-size:12px; line-height:1.2; text-align:center;
}
.m-seg-top{ display:inline-flex; align-items:baseline; gap:4px; }
.m-seg-n{ font-size:17px; font-weight:700; line-height:1.15; color:var(--text); font-variant-numeric:tabular-nums; }
.m-seg-b[aria-pressed="true"] .m-seg-n{ color:var(--accent-text); }
.m-seg-l{ display:block; }
/* THE DESKTOP'S "n late" BADGE (taskWatchingOverdue()), red text and nothing else: it is a
   count of late work, and the button around it must not turn red with it. */
.m-seg-late{ font-size:11px; font-weight:700; color:var(--red-text); white-space:nowrap; }

/* A FORMATTED COMMENT'S WRAPPER. A comment written with the desktop's formatting bar is stored inside
   `.rt-body` (JS/core/sanitize.js's marker); the desktop styles it in its rich-text sheet, which the
   phone does not load, so the block rhythm is restated here — paragraphs and lists, nothing more.
   The rest of the rich-text vocabulary (colours, sizes) reads as plain text here, as the
   description's does. */
.rt-body{ white-space:normal; }
.rt-body > :first-child{ margin-top:0; }
.rt-body > :last-child{ margin-bottom:0; }
.rt-body p{ margin:0 0 .5em; }
.rt-body ul, .rt-body ol{ margin:0 0 .5em; padding-left:1.4em; }

/* "OPEN IN FULL STRIDE" IS A TAP TARGET, so in the task screen's notice it gets the page's 44px floor
   (§18). The negative block margins give the extra height back to the layout, so the notice keeps
   its height; the link's own rule in mobile.html is untouched. */
#sheetArrival .ed-arrival-a{ min-height:var(--m-tap); margin-top:-10px; margin-bottom:-10px; }

/* The status row's save slot: under the row, at the page's own save-slot size. */
.ro-status-said{ display:flex; min-height:0; margin:2px 0 var(--a-2); justify-content:flex-end; }
.ro-status-said:empty{ display:none; }

/* comment-unread.js toggles .has-unread on a tab button; the phone passes none today, so this is the lit-state fallback. */
.has-unread{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-text); }

/* Phone: images are viewed and enlarged, never resized here, so each stays inside the column
   whatever size class its note or comment set. Tap opens the viewer. */
.m-comment-list .rt-shot.is-viewable, .m-task-body .rt-shot.is-viewable{ cursor:zoom-in; }

/* ===== THE HEADER THAT FOLDS AWAY (M1) =====
   #mStage holds the header as an OVERLAY on #board, so folding is a transform of `.chrome-full` and the board's
   geometry never changes: nothing in the list moves. The board reserves the header with a spacer (--chrome-h) and
   group heads stick at --head-cover; both are written on #mStage by mobile-header-fold.js. The overlay takes no taps
   itself (`pointer-events:none`), only what is in it. */
.m-stage{
  position:relative; flex:1 1 auto; min-height:0; overflow:hidden;
  --slim-h:calc(40px + env(safe-area-inset-top)); --chrome-h:0px; --head-cover:var(--chrome-h);
}
.chrome{ position:absolute; top:0; left:0; right:0; z-index:calc(var(--z-sticky) + 1); pointer-events:none; }
.chrome > *{ pointer-events:auto; }
/* The header's room is a ::before spacer, NOT padding-top: a sticky `top` is measured inside the scroller's padding, so
   padding would push every stuck group head down by the header's height (measured: stuck at 260, not 40). */
#board{
  position:absolute; inset:0; overflow-y:auto;
  padding-bottom:calc(28px + env(safe-area-inset-bottom) + var(--m-tabbar-h, 0px));
  scroll-padding-top:var(--head-cover);
}
#board::before{ content:''; display:block; height:var(--chrome-h); }
/* NO BROWSER SCROLL ANCHORING ON THE LIST. mobileListRestore() keeps the reader's row in place after every render,
   explicitly, because Safari has no anchoring at all; leaving Chrome's on would make Chrome a different engine from
   the one the restore is written for, and would add its own correction on top of the one mobile-header-fold.js makes
   when the header's height changes (contract C1), moving the list twice. */
#board{overflow-anchor:none;}
.chrome-full{
  background:var(--bg);
  transition:transform var(--dur-micro) var(--ease-out), visibility 0s;
}
/* Folded, the header's own box is the slim bar (it takes no taps either way); adding, it is the bar plus the quick-add. */
.chrome.is-folded{ height:var(--slim-h); }
.chrome.is-folded.is-adding{ height:auto; }
.chrome.is-folded .chrome-full{
  transform:translateY(calc(-1 * var(--chrome-h, 0px)));
  visibility:hidden; pointer-events:none;
  transition:transform var(--dur-micro) var(--ease-in), visibility 0s var(--dur-micro);
}
/* + Add while folded: only the quick-add block shows, directly under the slim bar (--qa-top / --qa-bottom are measured
   by the script); the rest of the header stays out of the tab order and the list does not move. */
.chrome.is-folded.is-adding .chrome-full{
  visibility:visible; pointer-events:auto;
  transform:translateY(calc(var(--slim-h) - var(--qa-top, 0px)));
  clip-path:inset(var(--qa-top, 0px) 0 var(--qa-bottom, 0px) 0);
  transition:transform var(--dur-micro) var(--ease-out), visibility 0s;
}
.chrome.is-folded.is-adding .chrome-full .topbar,
.chrome.is-folded.is-adding .chrome-full .tools > :not(.quickadd),
.chrome.is-folded.is-adding .chrome-full .status-row{ visibility:hidden; }
/* The clip ends 8px under the block; a hairline on its last pixel separates it from the list (no layout, so nothing moves). */
.chrome.is-folded.is-adding .quickadd{ position:relative; }
.chrome.is-folded.is-adding .quickadd::after{
  content:''; position:absolute; left:calc(-1 * var(--a-4)); right:calc(-1 * var(--a-4)); bottom:-8px; height:1px; background:var(--border);
}
.slimbar{
  position:absolute; top:0; left:0; right:0; z-index:1;
  height:var(--slim-h); padding:env(safe-area-inset-top) var(--a-3) 0;
  display:flex; align-items:center; gap:var(--a-1);
  background:var(--panel); border-bottom:1px solid var(--border);
  visibility:hidden; opacity:0;
  transition:opacity var(--dur-micro) var(--ease-out), visibility 0s var(--dur-micro);
}
.chrome.is-folded .slimbar{ visibility:visible; opacity:1; transition:opacity var(--dur-micro) var(--ease-out), visibility 0s; }
.slimbar .btn.icon-only, .slimbar .btn.small{ margin:-2px 0; }
.slimbar .btn.icon-only{ background:transparent; border-color:transparent; color:var(--text-dim); }
.slimbar .btn.icon-only:active{ color:var(--accent-text); }
.slimbar .btn.small{ padding-left:var(--a-3); padding-right:var(--a-3); }
/* Folded, the bar is Menu, view, weather, Add, Search, Unfold: the word STRIDE gave its room to the view menu. */
.slim-wx{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--a-1); flex:0 0 auto;
  min-width:var(--m-tap); min-height:var(--m-tap); margin:-2px 0; padding:0 var(--a-1);
  background:none; border:0; font:inherit; font-size:13px; font-weight:600; color:var(--text-dim); white-space:nowrap; cursor:pointer;
}
.slim-wx[hidden]{ display:none; }
.slim-wx:active{ color:var(--accent-text); }
.slim-wx:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px; border-radius:var(--a-r-sm); }
.slim-end{ margin-left:auto; display:flex; align-items:center; gap:var(--a-1); flex:0 0 auto; }
/* THE VIEW MENU: a button naming the current view and its count, and a small panel of the three views. */
.slim-view{ position:relative; flex:1 1 auto; min-width:0; display:flex; }
.slim-view-btn{ max-width:100%; min-width:0; display:inline-flex; align-items:center; gap:var(--a-1); font-size:13px; font-weight:700; }
.slim-view-btn > span:first-child{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.slim-view-n{ flex:0 0 auto; font-weight:600; color:var(--text-dim); }
.slim-view-n:empty{ display:none; }
.slim-view-btn::after{
  content:''; flex:0 0 auto; width:6px; height:6px; margin:-3px 0 0 2px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg);
}
.slim-view-btn[aria-expanded="true"]{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-text); }
.slim-view-menu{
  position:absolute; top:calc(100% + var(--a-1)); left:0; z-index:2; min-width:min(240px, calc(100vw - 2 * var(--a-3)));
  padding:var(--a-1); background:var(--panel); border:1px solid var(--border-strong); border-radius:var(--a-r);
  box-shadow:var(--a-shadow-lg);
}
.slim-view-menu[hidden]{ display:none; }
.slim-view-item{
  display:flex; align-items:center; justify-content:space-between; gap:var(--a-3); width:100%; min-height:var(--m-tap);
  padding:0 var(--a-3); background:none; border:0; border-radius:var(--a-r-sm); color:var(--text);
  font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer;
}
.slim-view-item:active{ background:var(--panel-2); }
.slim-view-item:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px; }
.slim-view-item[aria-checked="true"]{ background:var(--accent-soft); color:var(--accent-text); }
.slim-view-item-l{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.slim-view-item-n{ color:var(--text-dim); font-weight:600; font-variant-numeric:tabular-nums; }
.slim-view-item[aria-checked="true"] .slim-view-item-n{ color:inherit; }
/* Below 340px the weather gives way so the bar never scrolls the page. */
@media (max-width:339px){ .slim-wx{ display:none; } }
#setHeaderSeg .m-seg-b{ flex-direction:row; min-height:var(--m-tap); padding:var(--a-2) var(--a-3); }
.set-h2{ font-size:15px; font-weight:700; margin:var(--a-3) 0 var(--a-2); }

/* ===== QUICK ADD: THE NOTE BUTTON, THE DESCRIPTION, AND DICTATION (M2, M3) =====
   Stage, faces and the disclosure live in mobile.html beside the page's other motion; this file styles what is in them. */
.quickadd-start .quickadd-btn{ width:auto; flex:1 1 0; min-width:0; }
.quickadd-start .quickadd-note{ flex:0 0 auto; min-width:104px; }
.quickadd-btn{ display:inline-flex; align-items:center; justify-content:center; gap:var(--a-2); position:relative; }
.quickadd-row{ flex-wrap:nowrap; }
.quickadd-row .btn.icon-only{ border:1px solid var(--border-strong); }
.qa-ico{ flex:0 0 auto; }
.draft-dot{
  position:absolute; top:8px; right:10px; width:8px; height:8px; border-radius:50%;
  background:var(--amber-text, #fbbf24); box-shadow:0 0 0 2px var(--accent-fill);
}
.qa-sr{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.qa-desc-field{ position:relative; margin-top:var(--a-2); }
.qa-desc-field textarea{
  display:block; width:100%; box-sizing:border-box; resize:none; min-height:var(--m-tap); max-height:calc(6 * 1.45em + 26px);
  font-size:15px; line-height:1.45; padding:var(--a-3) 52px var(--a-3) var(--a-3);
  overflow-y:auto;
}
.qa-desc-field .qa-mic{ position:absolute; right:2px; top:0; border-color:transparent; background:transparent; color:var(--text-dim); }
.qa-desc-field .qa-mic[hidden]{ display:none; }
.qa-desc-field:has(.qa-mic[hidden]) textarea{ padding-right:var(--a-3); }
.qa-desc-in:has(.qa-mic[hidden]) .dict-tip{ display:none; }
.qa-desc-field .qa-mic[aria-pressed="true"]{ color:var(--red-text); background:var(--red-soft, var(--panel-2)); }
.qa-desc-in .dict-hint{ margin:var(--a-2) var(--a-1) 0; font-size:12px; color:var(--text-dim); }
.qa-discard{
  background:none; border:0; padding:var(--a-2) var(--a-1); font:inherit; font-size:12px; font-weight:600;
  color:var(--accent-text); cursor:pointer; min-height:var(--m-tap);
}
.qa-discard[hidden]{ display:none; }
.qa-desc-in .dict-state{ display:block; margin:var(--a-1) var(--a-1) 0; }
.qa-desc-in .dict-state:empty{ display:none; }
.qa-desc-in .dict-privacy{ margin-top:var(--a-2); }
.qa-desc-field .dictation-interim{ padding:0 52px var(--a-2) var(--a-3); }
.qa-lbl{ font-size:13px; font-weight:700; color:var(--text-dim); }
#noteBody{ resize:none; min-height:180px; max-height:40vh; line-height:1.45; }
.dict-row{ display:flex; align-items:center; gap:var(--a-3); min-height:var(--m-tap); }
.dict-btn[aria-pressed="true"]{ background:var(--red-soft, var(--panel-2)); border-color:var(--red-text); color:var(--red-text); }
.dict-state{ font-size:13px; line-height:1.4; color:var(--text-dim); }
.dict-state.err{ color:var(--red-text); }
.dict-state.live::before{
  content:''; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%;
  background:var(--red-text); vertical-align:middle;
}
.dictation-interim{ font-size:14px; line-height:1.45; color:var(--text-faint); font-style:italic; overflow-wrap:anywhere; }
.dictation-interim:empty{ display:none; }
.dict-hint{ margin:0; }
.dict-privacy{
  display:flex; align-items:center; gap:var(--a-3); padding:var(--a-3);
  border:1px solid var(--border-soft); border-radius:var(--a-r-sm); background:var(--panel);
  font-size:12px; line-height:1.45; color:var(--text-dim);
}
.dict-privacy .btn{ flex:0 0 auto; }
.screen-body > .qa-lbl{ display:block; margin:var(--a-3) 0 var(--a-1); }
.screen-body > .dict-row, .screen-body > .dict-privacy{ margin-top:var(--a-2); }
#noteSaid{ margin-top:var(--a-3); }
/* The first paint of a folded header is a state, not a motion. */
.chrome[data-instant] .chrome-full, .chrome[data-instant] .slimbar{ transition:none !important; }
@media (prefers-reduced-motion:reduce){
  .chrome-full, .slimbar{ transition-duration:1ms !important; }
}

/* Settings and menu spacing: 16px between rows, 24px between sections; nothing empty takes room. */
.set-said:empty{ display:none; }
.sheet-actions:not(:has(> .btn:not([hidden]))){ display:none; }
#setHeaderSeg + .set-hint{ margin-top:var(--a-2); }

/* The quick-add wrapper: a plain block holding the fixed 54px stage and the description disclosure under it.
   It needs no layout of its own; the stage owns the height invariant. */
.quickadd{ display:block; }

/* ===== QUICK-SETTINGS SHEET (JS/features/mobile-quick-settings.js builds the markup) ===== */
.qs-sheet{position:fixed;left:0;right:0;bottom:0;z-index:calc(var(--z-panel) + 1);max-height:88vh;overflow-y:auto;overscroll-behavior:contain;
background:var(--panel);color:var(--text);border-top:1px solid var(--border);border-radius:var(--a-r-lg) var(--a-r-lg) 0 0;box-shadow:var(--a-shadow-lg);
padding:var(--a-2) var(--a-4) calc(var(--a-4) + env(safe-area-inset-bottom));padding-left:calc(var(--a-4) + env(safe-area-inset-left));padding-right:calc(var(--a-4) + env(safe-area-inset-right));
visibility:hidden;transform:translateY(100%);transition:transform var(--dur-exit) var(--ease-in),visibility var(--dur-exit);}
.qs-sheet.on{visibility:visible;transform:translateY(0);transition:transform var(--dur-surface) var(--ease-out),visibility 0s;}
.qs-grab{display:block;width:40px;height:4px;border-radius:2px;background:var(--border-strong);margin:var(--a-1) auto var(--a-3);}
.qs-h{font-size:17px;font-weight:700;margin:0 0 var(--a-2);}
.qs-h:focus{outline:none;}
.qs-row{padding:var(--a-2) 0;border-bottom:1px solid var(--border-soft);}
.qs-row > .ed-row{border-bottom:0;padding:0;min-height:var(--m-tap);}
.qs-lbl{display:block;font-size:13px;font-weight:700;color:var(--text-dim);margin:0 0 var(--a-2);}
.qs-sheet .m-seg-wide .m-seg-b{flex-direction:row;min-height:var(--m-tap);padding:var(--a-2) var(--a-2);}
.qs-sheet .sw-row{gap:var(--a-2);}
.qs-link{display:flex;align-items:center;gap:var(--a-2);width:100%;min-height:var(--m-tap);padding:var(--a-2) 0;background:none;border:0;border-bottom:1px solid var(--border-soft);color:var(--text);font:inherit;font-weight:600;text-align:left;}
.qs-link > span:first-child{flex:1 1 auto;}
.qs-link > span:last-child:not(:first-child){flex:0 0 auto;display:inline-flex;}
.qs-link:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px;}
.qs-link.danger{color:var(--red-text);border-bottom:0;}
.qs-confirm{padding:var(--a-3) 0 0;}
.qs-confirm p{margin:0 0 var(--a-3);font-size:15px;line-height:1.45;}
.qs-confirm .qs-actions{display:flex;gap:var(--a-2);}
.qs-confirm .qs-actions .btn{flex:1 1 0;min-height:var(--m-tap);}
.qs-said{font-size:12px;line-height:1.45;color:var(--text-dim);min-height:17px;margin-top:var(--a-2);}
.qs-said:empty{display:none;}
@media (prefers-reduced-motion:reduce){.qs-sheet,.qs-sheet.on{transition-duration:1ms !important;}}

/* ===== THE TOP BAR'S WEATHER CHIP, THE COMPACT SEARCH AND ITS CHIP (mobile-calendar-2026-11-04 phase 1) ===== */
/* THE BRAND IS A SIZE CONTAINER, SO THE WORD GOES WHEN THE ROW CANNOT HOLD IT (the 344px rule below, generalised).
   Weather and Search joined the row, and whether the name fits now depends on whether the chip is shown, which a
   media query cannot see. The brand takes what the controls leave; the word leaves the line, never the document. */
.brand{container-type:inline-size;}
@container (max-width:170px){
  .brand-title{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
/* THE WEATHER CHIP: a fixed width, so the reading arriving late changes its text and moves nothing. `.btn`'s ground
   and edge at the bar's quieter weight, the target at the page's 44px floor. */
.wx-top{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--a-1);
  flex:0 0 auto; width:64px; min-height:var(--m-tap); padding:0 var(--a-1);
  border:1px solid var(--border-soft); border-radius:var(--a-r-pill); background:var(--panel-2);
  color:var(--text-dim); font:inherit; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums;
  white-space:nowrap; overflow:hidden;
}
.wx-top:active{ color:var(--accent-text); }
.wx-top:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:1px; }
.wx-top-i{ font-size:15px; line-height:1; }
.wx-top-t{ line-height:1; }
/* THE SEARCH FIELD, OVER THE TOP ROW. Absolutely placed in #chrome and painted on the top bar's own ground, so it
   covers the row it replaces (or the slim bar, folded) and nothing under it moves. Above both bars. */
.search-bar{
  position:absolute; top:0; left:0; right:0; z-index:2;
  display:flex; align-items:center; gap:var(--a-2);
  min-height:60px; box-sizing:content-box;   /* the top bar row's measured height, so the bar covers it exactly */
  padding:env(safe-area-inset-top) var(--a-4) 0;
  background:var(--panel); border-bottom:1px solid var(--border);
}
.search-bar input[type=search]{ flex:1 1 auto; min-width:0; width:auto; min-height:var(--m-tap); }
.search-bar .btn{ flex:0 0 auto; min-height:var(--m-tap); }
/* THE CHIP IN THE FILTER BANNER, while the field is closed: the query, quoted, and a ✕ that clears it. */
.search-chip{ display:inline-flex; align-items:center; gap:var(--a-1); min-width:0; flex:1 1 auto; }
.search-chip-t{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.filter-banner .search-chip-x{ margin-left:auto; background:transparent; border-color:transparent; color:var(--text-dim); }
.filter-banner .search-chip-x svg{ width:16px; height:16px; }
/* FOLDED, THE SLIM BAR'S SEARCH SAYS A SEARCH IS NARROWING THE LIST, because the banner is in the folded header. */
.has-query #slimSearchBtn{ color:var(--accent-text); position:relative; }
.has-query #slimSearchBtn::after{   /* a dot as well as the colour, so the state is not carried by colour alone */
  content:''; position:absolute; top:9px; right:9px; width:7px; height:7px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 2px var(--panel);
}
/* Folded, the field takes the slim bar's height, so it replaces that bar rather than hanging over the list. */
.chrome.is-folded .search-bar{ min-height:40px; }
.chrome.is-folded .search-bar input[type=search], .chrome.is-folded .search-bar .btn{ margin:-2px 0; }
/* THE WEATHER SHEET reuses `.qs-sheet`; the card inside it is the same `.wx` line, so only the gap is its own. */
.wx-sheet .wx{ margin-top:var(--a-1); }
