/* ================= The alternate UX: components =================
   Buttons, chips, inputs, menus, progress, avatars and the three states every surface needs
   (loading, empty, error). Scoped to `.alt-app`. Five button roles; the rule is emphasis, not
   colour: exactly one primary per surface. */

.alt-app{ font-family:var(--a-body); color:var(--a-text); background:var(--a-bg); }
.alt-app *,.alt-app *::before,.alt-app *::after{ box-sizing:border-box; }
.alt-app h1,.alt-app h2,.alt-app h3,.alt-app h4{ font-family:var(--a-display); margin:0; }

/* ---------- buttons ---------- */
.a-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--a-sp-6);
  height:var(--a-ctl); padding:0 var(--a-sp-12); border-radius:var(--a-r-sm);
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
  background:var(--a-raised); color:var(--a-text); border:1px solid var(--a-line);
  cursor:pointer; white-space:nowrap; text-decoration:none;
}
.a-btn:hover{ border-color:var(--a-line-strong); }
.a-btn:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.a-btn[disabled]{ opacity:.5; cursor:not-allowed; }
/* An icon beside a word needs a size of its own: an icon-only button works because the <svg>
   has no dimensions and stretches, but beside text it is a flex item with no basis and
   collapses to 0x0. `> svg` is a direct-child combinator so it can't reach glyphs already
   wrapped for a deliberate size; `:not(.icon)` leaves icon-only buttons untouched. */
.a-btn:not(.icon) > svg,
.a-focus > svg,
.a-search-ico > svg{ width:15px; height:15px; flex:0 0 auto; }
/* `.a-more` is the same defect under another class: an inline-flex button with no svg sizing,
   declared in alt-tasks.css but also drawn on note cards and checklist items. Sized here with
   the other shared primitives rather than deepening notes.html's dependency on a task sheet. */
.a-more > svg{ width:15px; height:15px; flex:0 0 auto; }
.a-btn.primary{ background:var(--a-blue-fill); border-color:transparent; color:#fff; }
.a-btn.primary:hover{ filter:brightness(1.08); }
.a-btn.secondary{ background:transparent; border-color:var(--a-line-strong); }
.a-btn.tertiary{ background:transparent; border-color:transparent; color:var(--a-dim); }
.a-btn.tertiary:hover{ background:var(--a-raised); color:var(--a-text); }
.a-btn.ghost{ background:transparent; border-color:transparent; color:var(--a-dim); }
.a-btn.ghost:hover{ background:var(--a-raised); color:var(--a-text); }
/* DS-19: a labelled danger button reads as one: the red-soft fill, red text and a red edge on the ladder geometry. */
.a-btn.danger{ background:var(--a-red-soft); border-color:var(--a-red); color:var(--a-red); }
.a-btn.danger:hover{ background:var(--a-red-soft); border-color:var(--a-red); filter:brightness(.96); }
/* ---------- the glyph is sized ----------
   altIcon() emits an unsized `<svg viewBox>`, so `.a-btn.icon` states its own: 15px at every rung (DS-21), as beside a word, `flex:0 0 auto` so it cannot shrink. */
.a-btn.icon > svg{ width:var(--a-glyph); height:var(--a-glyph); flex:0 0 auto; }
/* ---------- a raster glyph that paints in currentColor: the CSS-mask icon ----------
   Glyphs are SVG on `currentColor` (JS/components/alt-icons.js); a raster (img/quick-start-guide2.png) can't follow it, and `filter:` can't
   guarantee currentColor. A mask gives the shape and `background-color` the paint. Set both unprefixed and `-webkit-` mask
   properties; dropping either blanks the icon in some engines. */
.a-ico-mask{
  display:inline-block;
  background-color:currentColor;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
}
/* Sized exactly like `.a-btn.icon > svg` above — same row, same 30x30 box, so the masked glyph
   reads as one more topbar icon rather than a control that quietly measures differently. */
.a-btn.icon > .a-ico-mask{ width:var(--a-glyph); height:var(--a-glyph); flex:0 0 auto; }
/* Quick Start Guide artwork: img/quick-start-guide2.png (90x84, transparent, 2x/3x for a 30px control; `quick-start-guide.png` is superseded).
   The mask comes from the ink, not alpha: the render has opaque white pages, so alpha alone gave a book-shaped blob.
   coverage = alpha x (page_lum - Y) / (page_lum - ink_lum), clamped, so white pages are "no paint" and one currentColor works in both themes.
   Cropped to the ink plus a margin because `mask-size:contain` fits the whole frame. */
.a-ico-mask.qg-book{
  -webkit-mask-image:url(../../img/quick-start-guide2.png);
  mask-image:url(../../img/quick-start-guide2.png);
}
/* ---------- the size ladder, once (DS-01, DS-02, DS-21) ----------
   `.sm` 26 / md 32 / `.lg` 36 for a labelled button and an icon-only one (a square on the rung). After `.ghost`/`.danger`: a tier changes colour, never size. */
.a-btn.sm{ height:var(--a-ctl-sm); font-size:var(--a-fs-ctl-sm); padding:0 9px; }
.a-btn.lg{ height:var(--a-ctl-lg); }
.a-btn.icon,
.a-btn.icon.sm,
.a-btn.icon.lg{ padding:0; flex:0 0 auto; }   /* a square holds its width in a squeezed row (it measured 25.8x28 at 390) */
.a-btn.icon{ width:var(--a-ctl); }
.a-btn.icon.sm{ width:var(--a-ctl-sm); }
.a-btn.icon.lg{ width:var(--a-ctl-lg); }
/* the small icon button names its glyph at three-class weight, so a rule for the generic icon glyph elsewhere cannot outrank it (the same 15px) */
.a-btn.icon.sm > svg{ width:var(--a-glyph); height:var(--a-glyph); flex:0 0 auto; }
/* An icon-only delete is the ghost icon button with a red glyph and a red-soft hover (DS-19). */
.a-btn.icon.danger{ background:transparent; border-color:transparent; color:var(--a-red); }
.a-btn.icon.danger:hover{ background:var(--a-red-soft); border-color:transparent; filter:none; }
.a-btn.on{ background:var(--a-blue-fill); border-color:transparent; color:#fff; }
/* A switch that is normally on is not an action. `.on` is the loud lit state, right for
   "Clear filters"; Details and Utilities are on almost always, and two solid blue buttons read
   as the two most important controls rather than as panel state. Same signal, quieter
   voice; `aria-pressed` says it either way. */
.a-btn.tog.on{
  background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text);
}
.a-btn.tog.on:hover{ background:var(--a-blue-soft); border-color:var(--a-blue); }

/* ================= The fold-all toggle: one treatment, six pages =================
   altFoldAllHtml()/altFoldAllEl() (JS/alt/alt-view-controls.js) build one expand/collapse-all button for tasks, notes, calendar,
   team_board, okrs and admin; the rule is here as the only sheet all six load. No new geometry; hosts matching a neighbour pass `cls`.
   Pressed paint is the suite's selected triple (`--a-blue` border, `--a-blue-soft` tint, `--a-blue-text` icon), keyed on `aria-pressed`. */
.a-btn.a-fold-all[aria-pressed="true"]{
  background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text);
}
/* Hovering something already lit acknowledges the pointer without reading as an unselect. */
.a-btn.a-fold-all[aria-pressed="true"]:hover{
  background:var(--a-blue-soft); border-color:var(--a-blue);
}

/* ================= The focused-mode control: Notes =================
   Notes' Focused button (the Team board's was retired 2026-11-10); the page sheet keeps placement only.
   Design: `_docs/wire_frames/Focused/`. Not `.a-focus` in alt-shell.css. Active state is `aria-pressed`, not `.on`; `#fff` is the one literal, as `.a-btn.on`.
   Focus-visible is left to CSS/alt/alt-focus.css. */

/* ---------- the label is a constant, so there is nothing to size ----------
   "Focused" in both states because the header already has a **Focus** control (`.a-focus-l`, alt-shell.css); two "Focus" controls breaks core rule 5.
   `.a-focus-btn-t` is a hook, not a box. If a toggling label returns: `attr()` reads only the pseudo's own element, and a zero-height
   item still gets a stretched track under `align-content:normal` (use `center`). */

/* Hover, the interactive middle tier: muted steel-blue surface on a brighter blue edge; text stays `--a-text`.
   `:not([aria-pressed="true"])` keeps it exclusive with the active rule. It mixes its own surface because `--a-blue-soft` is translucent.
   The plain declaration before `color-mix()` is a fallback (as `--a-float` in CSS/alt/alt-tokens.css): an engine without it
   discards the whole declaration. `.a-btn.tog.on` and `.a-chip.on` keep `--a-blue-soft`. */
.a-btn.a-focus-btn:not([aria-pressed="true"]):hover{
  background:var(--a-blue-soft);
  background:color-mix(in srgb, var(--a-blue) 20%, var(--a-raised));
  border-color:var(--a-blue);
}
/* ACTIVE: selected and a whole step stronger than hover, a filled surface rather than a wash.
   `.a-btn.on` paints the same fill with a transparent edge; the approved design keeps a blue
   edge, which is why this isn't simply that rule. */
.a-btn.a-focus-btn[aria-pressed="true"]{
  background:var(--a-blue-fill); border-color:var(--a-blue); color:#fff;
}
/* Hovering something already selected acknowledges the pointer without stepping back down to
   the hover wash (as `.a-btn.primary:hover` above); `filter` is in this file's
   micro-transition list. */
.a-btn.a-focus-btn[aria-pressed="true"]:hover{ filter:brightness(1.08); }

/* ================= Watching a task says so: the lit eye and envelope =================
   JS/components/task-watch-mail.js builds the eye-plus-envelope pair (team_board.html task modal, framed editor, Suite drawer; assigning auto-subscribes, JS/services/task-assign.js).
   Here because `.icon-btn`'s base (CSS/task-editor-panel.css) isn't loaded on team_board.html. Uses the "state you are in" wash.
   ID doubled, keyed on `aria-pressed` (panelWatchSkin() reassigns `className`): (1,1,0) beats `.panel-head .icon-btn:hover`, loses to `.alt-app #taskModal button.icon-btn`
   (CSS/alt/alt-team.css); (2,1,0) lets a host override, unlike `!important`. */
#panelWatchBtn#panelWatchBtn[aria-pressed="true"],
#panelWatchMailBtn#panelWatchMailBtn[data-watch-mail="on"]{
  color:var(--a-blue-text);
  background:var(--a-blue-soft);
  box-shadow:inset 0 0 0 1px var(--a-blue);
}
/* Hovering something already lit acknowledges the pointer without unlighting it (as
   `.a-focus-btn[aria-pressed="true"]:hover` and `.a-btn.primary:hover`). Needed here because
   the rule above outranks every host's `:hover`, so a lit button would otherwise not respond. */
#panelWatchBtn#panelWatchBtn[aria-pressed="true"]:hover,
#panelWatchMailBtn#panelWatchMailBtn[data-watch-mail="on"]:hover{ filter:brightness(1.08); }
#panelWatchMailBtn#panelWatchMailBtn[data-watch-mail="pending"]{ opacity:.55; }

/* ---------- inputs ---------- */
/* THE EYEBROW (DS-10, DS-11, DS-15, DS-77): the one uppercase small label. A field label above a field, a widget title, a weekday head, an
   editor section heading and a small popover title are all this and nothing else: 11px/700, uppercase, 0.08em, line-height 1.25,
   `--a-dim`. `.a-eyebrow` is the class a new caller wears; the structural selectors beside it are the callers that already had a hook. */
.a-eyebrow,
.a-field > span,
.a-sub,
.a-sec-h,
.a-menu-head,
.tel-team{
  font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight);
  letter-spacing:.08em; text-transform:uppercase; color:var(--a-dim);
}
.a-field{ display:flex; flex-direction:column; gap:var(--a-gap-label); min-width:0; }
/* A lower-key sub-label inside a field (the drawer's "Team board" / "Event") is the same eyebrow with its own spacing. */
.a-sub{ margin:var(--a-sp-12) 0 var(--a-sp-4); }
/* THE LINK BUTTON (DS-56): clickable text. 12px/600 in the link blue, with a padded 24px minimum hit area so a line of text meets the
   pointer floor. */
.a-link-btn{
  display:inline-flex; align-items:center; min-height:var(--a-hit-min); padding:0 var(--a-sp-4); border:0; background:none;
  font-family:var(--a-body); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
  color:var(--a-blue-text); cursor:pointer; text-decoration:none; border-radius:var(--a-r-sm);
}
.a-link-btn:hover{ text-decoration:underline; }
.a-link-btn:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.a-link-btn[disabled]{ opacity:.5; cursor:not-allowed; text-decoration:none; }
.a-input,.a-select,.a-textarea{
  height:var(--a-ctl); min-width:0; padding:0 10px; border-radius:var(--a-r-sm);
  background:var(--a-field-bg); border:1px solid var(--a-ctl-edge); color:var(--a-text);
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:400; line-height:var(--a-lh-ctl);
}
/* THE MULTI-LINE FIELD (DS-37): 13px/1.6, padding 8px 10px; only the host sets a minimum height. */
.a-textarea{ height:auto; padding:var(--a-sp-8) 10px; line-height:var(--a-lh-body); resize:vertical; }
/* THE SELECT (DS-38): the platform arrow is switched off and a caret drawn from two gradients, so it follows the theme through
   `currentColor` and sits on the ladder height at any rung. */
.a-select{
  -webkit-appearance:none; appearance:none; padding-right:28px; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, var(--a-dim) 50%),
                   linear-gradient(135deg, var(--a-dim) 50%, transparent 50%);
  background-position:calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat;
}
/* The border moves to the accent while a field is focused; the ring (DS-36) is the one indicator and is drawn for the keyboard
   and the pointer alike, since a text field is always focus-visible. */
.a-input:focus,.a-select:focus,.a-textarea:focus{ border-color:var(--a-blue); }
.a-input:focus-visible,.a-select:focus-visible,.a-textarea:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
/* Disabled looks disabled. These three primitives had no disabled state, so a field the reader
   may not change (a view-only task in the drawer) looked live. Values match the task editors'
   `.te-core input:disabled` (CSS/task-editor-core.css) and `#taskModal input:disabled`
   (CSS/alt/alt-team.css), which stay and outrank this. */
.a-input:disabled,.a-select:disabled,.a-textarea:disabled{ opacity:.55; cursor:not-allowed; }
/* THE SEGMENTED CONTROL (DS-25), once: theme, view switches, calendar layout, Customize, search scope. Track on the ladder (md 32, `.lg` 36), radius 9, padding 3,
   --a-panel ground, --a-line edge; segment radius 6, 12px/600, selected = --a-raised + text colour, ring inset (the track clips). Group or radiogroup alike. */
.alt-app .a-seg-ctl,
.alt-app .at-tabs{
  display:inline-flex; align-items:center; flex-wrap:nowrap; gap:var(--a-sp-2); padding:3px; max-width:100%; min-width:0;
  height:var(--a-ctl); border-radius:var(--a-r); background:var(--a-panel); border:1px solid var(--a-line);
}
.alt-app .a-seg-ctl.lg,
.alt-app .at-tabs.lg{ height:var(--a-ctl-lg); }
.alt-app .a-seg-ctl > .a-tab,
.alt-app .at-tab{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--a-sp-6); height:100%; padding:0 var(--a-sp-8);
  border:0; border-radius:var(--a-r-sm); background:transparent; color:var(--a-dim); cursor:pointer; white-space:nowrap;
  font-family:var(--a-body); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
}
.alt-app .a-seg-ctl > .a-tab:not(.on):not([aria-checked="true"]):not([aria-pressed="true"]):hover,
.alt-app .at-tab:not(.on):hover{ color:var(--a-text); background:var(--a-raised); }
/* The selected segment is the accent fill with the on-fill text, at the control weight (DS-25, amended 2026-11-13): the one blue
   every "which one is on" reads from, kept under the pointer. The theme toggle alone stays neutral: it is a setting, not a view switch. */
.alt-app .a-seg-ctl > .a-tab.on,
.alt-app .a-seg-ctl > .a-tab[aria-checked="true"],
.alt-app .a-seg-ctl > .a-tab[aria-pressed="true"],
.alt-app .at-tab.on{ color:var(--a-on-fill); background:var(--a-blue-fill); font-weight:var(--a-fw-ctl); box-shadow:none; }
.alt-app .a-seg-ctl > .a-tab:disabled,
.alt-app .a-seg-ctl > .a-tab[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; background:transparent; color:var(--a-dim); }
.alt-app .a-seg-ctl > .a-tab:focus-visible,
.alt-app .at-tab:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* `.sm` lives here as the one canonical copy. It was written separately in
   CSS/alt/alt-team-kanban.css (team board card select) and CSS/alt/alt-okrs.css (OKR context
   strip), while JS/alt/alt-tasks.js and JS/alt/alt-notes.js build `class="a-av sm"` avatars on
   pages loading neither sheet and so got no size modifier. */
.alt-app .a-input.sm,.alt-app .a-select.sm{ height:var(--a-ctl-sm); font-size:var(--a-fs-ctl-sm); }
.alt-app .a-select.sm{ padding-right:26px; background-position:calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
/* opacity:1 is load-bearing: Firefox applies its own ~54% opacity to ::placeholder on top of
   any colour, so a token measured at --a-faint renders lighter than signed off. help.css and
   okr-suite.css carry the same pair. Design-system §18: never leave a placeholder unstyled or
   below --text-faint. */
.a-input::placeholder,.a-textarea::placeholder{ color:var(--a-placeholder); opacity:1; }
.a-search{ position:relative; display:flex; align-items:center; min-width:0; }
.a-search .a-input{ width:100%; padding-left:30px; }
/* Centred on the input, not the static position. `top`/`left` alone left the icon on its containing
   block's top edge: fine in the search drawers (JS/alt/alt-notes.js) but 10.5px high in the shell
   (JS/alt/alt-shell.js), where the icon sits in the block `.a-search-inner`. `top:50%;
   transform:translateY(-50%)` centres it in either. Same technique as `.a-kbd` (alt-shell.css). */
.a-search .a-search-ico{
  position:absolute; left:9px; top:50%; transform:translateY(-50%);
  color:var(--a-faint); display:flex; pointer-events:none;
}

/* ---------- chips and badges ---------- */
.a-chip{
  display:inline-flex; align-items:center; gap:5px; height:var(--a-chip-h); padding:0 9px;
  border-radius:var(--a-r-pill); font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-tight); white-space:nowrap;
  background:var(--a-raised); border:1px solid var(--a-line-soft); color:var(--a-dim);
  cursor:default; max-width:170px; overflow:hidden;
}
/* ---------- the cap truncates on `.lb`, because it cannot truncate on the chip ----------
   `text-overflow:ellipsis` never fired on `.a-chip` (`inline-flex`; text sits in an anonymous flex item), so `overflow:hidden` cut mid-glyph
   ("Owned but opt'd to watch onl"). The text must be in a real child, `.lb`; guard `_docs/tests/chip-truncation.test.js`. Use all three declarations (`min-width:0` too).
   `.l` covers glyph chips (JS/alt/alt-tasks.js); `.a-chip .n` is excluded so counts survive (CSS/alt/alt-org-people.css); `.a-chip-watchreason` (CSS/alt/alt-tasks.css) can fall below the cap. */
.a-chip .lb,
.a-chip .l{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
button.a-chip{ cursor:pointer; }
button.a-chip:hover{ border-color:var(--a-line-strong); color:var(--a-text); }
.a-chip .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; flex:0 0 auto; }
.a-chip.on{ background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text); }
.a-chip .n{ font-variant-numeric:tabular-nums; opacity:.75; }
/* The chip is pressable, so it shows the keyboard: every other interactive primitive draws the
   2px ring and the browser default is nearly invisible on a dark panel. */
button.a-chip:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* ---------- the count chip, `.a-count-chip` ----------
   A small blue bubble ("this has something in it") after a label, built for the task drawer's tabs (JS/alt/alt-drawer.js).
   `.none` is a reserved empty slot (`visibility:hidden` plus `aria-hidden="true"`) so the first comment doesn't shift the next tab
   (altDrawerCommentsTabLabel(), which also applies the 99+ cap). Never on the host: a solid unread tab stopped reading as a tab (`comments-tab-unread-styling.test.js`). */
.a-count-chip{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:16px; height:16px; margin-left:6px; padding:0 4px;
  border:1px solid var(--a-blue); border-radius:var(--a-r-pill);
  background:var(--a-blue-soft); color:var(--a-blue-text);
  font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-ctl); vertical-align:middle;
  font-variant-numeric:tabular-nums;
}
.a-count-chip.none{ visibility:hidden; }

/* THE STAT TONES. Blue above is ACTIVITY ("something is here"); a plain total is gray, an overdue
   figure red, a figure waiting on the reader amber. Same geometry, one builder (countChipHtml(),
   JS/alt/alt-view-controls.js). A stat's look is the three `--a-cnt-*` tokens (CSS/alt/alt-tokens.css),
   which the section-header counts read too. `.zero` is a quiet 0 or an unknown figure, same width. */
.a-count-chip.mute{ border-color:var(--a-cnt-line); background:var(--a-cnt-fill); color:var(--a-cnt-ink); font-weight:600; font-variant-numeric:tabular-nums; }
.a-count-chip.mute.zero{ background:transparent; color:var(--a-faint); }
.a-count-chip.late{ border-color:transparent; background:var(--a-red-soft); color:var(--a-red); font-variant-numeric:tabular-nums; }
.a-count-chip.attn{ border-color:transparent; background:var(--a-amber-soft); color:var(--a-amber); font-variant-numeric:tabular-nums; }
/* THE SAME STAT AS A SECTION, LANE OR LIST HEADER COUNT, from the same three tokens, so a header's count and a tab's cannot drift.
   Each header keeps its own placement (margin, `flex`); the look is only here. `min-height`, not `height`, so the task list's zoom
   (`--z-c`) can grow the figure. Loaded before the page sheets, so a page rule that sets one of these properties wins. */
.a-group-h .n, .a-list-h .n, .a-ncl-h .n, .a-admin-nav .n,
.alt-app .a-tb-lane-h .n, .alt-app .a-tb-retired-h .n{
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
  min-width:18px; min-height:16px; padding:1px 6px;
  border:1px solid var(--a-cnt-line); border-radius:var(--a-r-pill);
  background:var(--a-cnt-fill); color:var(--a-cnt-ink);
  font:600 var(--a-fs-11)/var(--a-lh-ctl) var(--a-body); font-variant-numeric:tabular-nums; letter-spacing:0; text-transform:none; opacity:1;
}
/* On a button an empty chip takes no room: the reserved slot exists for tabs, whose width must
   not jump, but in an action row (the OKR key-result "Comments" button) it read as stray
   padding. A count arriving later grows the button, which a wrapping row tolerates. */
.btn > .a-count-chip.none{ display:none; }

/* ---------- status is the tag chip wearing a state's colour ----------
   Status is a modifier of `.a-chip`; the state class adds only outline and text colour, on two custom properties so hover
   and `.on` can restate them. Uses `-text` variants (`--a-blue` on a panel is 4.05:1 vs the 4.5:1 floor); to-do is neutral.
   After `.a-chip.on` on purpose: a selected chip takes the blue wash but keeps its own outline. */
.a-chip-st{ border-color:var(--a-st-line); color:var(--a-st-text); }
.a-chip-st.st-active  { --a-st-line:var(--a-blue-text);   --a-st-text:var(--a-blue-text); }
.a-chip-st.st-todo    { --a-st-line:var(--a-line-strong); --a-st-text:var(--a-dim); }
.a-chip-st.st-hold    { --a-st-line:var(--a-amber);       --a-st-text:var(--a-amber); }
.a-chip-st.st-blocked { --a-st-line:var(--a-red);         --a-st-text:var(--a-red); }
.a-chip-st.st-monitor { --a-st-line:var(--a-purple);      --a-st-text:var(--a-purple); }
.a-chip-st.st-ai{ --a-st-line:var(--a-purple); --a-st-text:var(--a-purple); background:var(--a-purple-soft); max-width:none; }
.a-chip-st.st-ai .a-ai-mark{ background-color:currentColor; width:12px; height:12px; }
.a-chip-st.st-complete{ --a-st-line:var(--a-green);       --a-st-text:var(--a-green); }
/* Hover and `.on` restate the outline only, which is what makes this a tag rather than nearly
   one. It is also safer: `--a-red` on the selected blue wash is 3.8:1, under the floor, while
   `--a-blue-text` on it is the pairing used elsewhere. */
button.a-chip-st:hover,.a-chip-st.on{ border-color:var(--a-st-line); }

/* The static status badge labels a row rather than offering to narrow the list; a tinted fill
   lets the eye pick the status out of a line of tags. Task rows and the notes page's task list
   both draw it. */
/* `.a-st` was merged into `.a-chip-st` above: the row badge was a borderless tinted fill beside
   outlined `.a-chip` tags in the same row. Both render sites now emit
   `a-chip a-chip-st st-<kind>`. */

/* ---------- avatars ---------- */
.a-av{
  width:24px; height:24px; border-radius:50%; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.02em;
  background:var(--a-blue-fill); color:#fff; overflow:hidden;
}
.a-av img{ width:100%; height:100%; object-fit:cover; }
/* `.a-av.sm` lives here alongside `.a-input.sm`/`.a-select.sm` above, for the same reason:
   team_board's kanban card, notes' collaborator row and tasks.html's row (JS/alt/alt-tasks.js)
   all want an 18px avatar, and the latter loads neither of the old sheets. */
.alt-app .a-av.sm{ width:18px; height:18px; font-size:var(--a-fs-11); letter-spacing:0; }
/* The placeholder avatar on an unassigned row: present so the column still lines up, and
   silent because there is nobody to name. */
.alt-app .a-av.sm.none{ background:var(--a-line-soft); }

/* ---------- progress ---------- */
.a-bar{ height:6px; border-radius:var(--a-r-pill); background:var(--a-line-soft); overflow:hidden; display:flex; }
.a-bar > i{ display:block; height:100%; background:var(--a-blue-fill);
  transition:width var(--dur-progress, 420ms) var(--a-ease); }
.a-seg{ height:8px; border-radius:var(--a-r-pill); overflow:hidden; display:flex; background:var(--a-line-soft); }
.a-seg > span{ display:block; height:100%; transition:flex-grow var(--dur-progress, 420ms) var(--a-ease); }
/* THE SAME COLOUR THE STATUS CHIP USES, so the bar and the chips under it are one legend
   rather than two. Without these the segments were transparent and the whole distribution
   read as an empty grey rule. */
.a-seg > span.k-active{ background:var(--a-blue); }
.a-seg > span.k-todo{ background:var(--a-dim); }
.a-seg > span.k-blocked{ background:var(--a-red); }
.a-seg > span.k-hold{ background:var(--a-amber); }
.a-seg > span.k-monitor{ background:var(--a-purple); }
.a-seg > span.k-complete{ background:var(--a-green); }

/* ---------- menus and popovers ---------- */
.a-menu{
  position:absolute; z-index:var(--z-dialog, 300); min-width:230px; max-width:min(360px, 92vw);
  padding:6px;
  background:var(--a-float); border:1px solid var(--a-line-strong); border-radius:var(--a-r);
  box-shadow:var(--a-shadow); display:flex; flex-direction:column; gap:2px;
}
/* A menu is for reading, so it is set at the body size (13px on a dark floating panel was
   reported too small, worst in the Focus menu of the reader's own tag names): 14px, more room
   per row, and a hit state that is a background and a ring. */
.a-menu-item{
  display:flex; align-items:center; gap:10px; width:100%; padding:9px 11px;
  border-radius:var(--a-r-sm); min-height:34px;
  background:none; border:none; color:var(--a-text); font-family:var(--a-body); font-size:var(--a-fs-14); font-weight:400;
  line-height:var(--a-lh-tight); text-align:left; cursor:pointer; text-decoration:none;
}
.a-menu-item:hover{ background:var(--a-raised); }
.a-menu-item:focus-visible{
  background:var(--a-blue-soft); outline:var(--a-focus); outline-offset:var(--a-focus-offset);
}
.a-menu-item .k{ margin-left:auto; font-family:var(--a-mono); font-size:var(--a-fs-11); color:var(--a-faint); }   /* a keyboard hint: the one mono use here (DS-53) */
/* Figures in a menu row, in aligned columns. `.k` is one cell and can't do this: two figures of
   different widths wander as numbers change. Fixed minimums plus tabular numerals align the
   decimal points; `text-align:right` ends "3/5" and "12/14" on the same pixel. Only `.first`
   takes the auto margin, so the name keeps its space and the group sits hard right. */
.a-menu-item .km{
  flex:0 0 auto; font-family:var(--a-body); font-size:var(--a-fs-11); color:var(--a-faint);
  font-variant-numeric:tabular-nums; text-align:right;
}
.a-menu-item .km.first{ margin-left:auto; min-width:36px; }
.a-menu-item .km:not(.first){ min-width:40px; }
/* Merged from CSS/alt/alt-shell.css: `.a-menu-head` and `.a-menu-sep` were declared in both with equal
   specificity and alt-shell.css links later, so its copy rendered (head `padding:6px 10px 3px;
   font:600 11px/1 var(--a-display)`, separator `margin:5px 6px`). Those values moved here and the
   alt-shell.css copies were deleted. */
.a-menu-head{ padding:var(--a-sp-6) 10px var(--a-sp-4); }
.a-menu-sep{ height:1px; margin:var(--a-sp-6); background:var(--a-line); }
/* `.a-menu-item` sets display:flex, which beats the [hidden] attribute a filtered row relies on. */
.a-menu .q-off,.a-menu-item:is([hidden]){ display:none; }
.a-menu-search,.a-menu-filter{ width:100%; margin:0 0 4px; flex:0 0 auto; }
/* A person row: disc, then a name with an optional second line (role, or why it cannot be picked). */
.a-menu-item .lb{ min-width:0; }
.a-menu-item .lb .sub{ display:block; margin-top:1px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim); }
.a-menu-item .a-av{ flex:0 0 auto; }
.a-ncl-assign{ min-width:260px; }
/* Assignee picker rows pass `hint` as the second line (role, or why a person cannot be picked):
   under the name, in the body face, instead of the mono right-hand cell. */
.a-ncl-assign .a-menu-item{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; align-items:center; }
.a-ncl-assign .a-menu-item .a-av{ grid-row:1 / span 2; }
.a-ncl-assign .a-menu-item .lb{ grid-column:2; }
.a-ncl-assign .a-menu-item .k{ grid-column:2; margin-left:0; font-family:inherit; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); white-space:normal; }
.a-ncl-assign .a-menu-item .tick{ grid-column:3; grid-row:1 / span 2; }
.a-menu-item:disabled{ cursor:not-allowed; opacity:.6; }
.a-menu-item:disabled:hover{ background:none; }

/* ---------- the three states every surface owes the reader ---------- */
.a-empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  padding:44px 20px; text-align:center;
}
.a-empty-h{ font-size:var(--a-fs-14); font-weight:600; line-height:var(--a-lh-ui); color:var(--a-dim); }
.a-empty-p{ font-size:var(--a-fs-ctl-sm); font-weight:400; line-height:var(--a-lh-ui); color:var(--a-faint); max-width:46ch; margin:0; }
.a-load{ display:flex; align-items:center; justify-content:center; gap:10px; padding:34px 20px;
  font-size:var(--a-fs-ctl-sm); color:var(--a-faint); }
.a-err{
  display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:var(--a-r);
  background:var(--a-red-soft); border:1px solid var(--a-red); color:var(--a-text); font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui);
}
.a-err .a-btn{ margin-left:auto; }
/* A widget that fails must not take the page with it — see alt-shell.js altWidgetFail(). */
.a-widget-err{ font-size:var(--a-fs-ctl-sm); color:var(--a-faint); padding:10px 12px; line-height:var(--a-lh-ui); }

/* ---------- the standing callout ----------
   A statement the reader must see that is not a problem: `.a-hint` is skipped, `.a-err-note` is the amber fault chip, so this uses the accent role.
   Colour is not the signal (sys_design-system.md §18): tint, left rule and the `<b>` lead word carry it. Plain declarations first, as
   `.a-err-note`, for engines without color-mix(). */
.a-callout{
  display:flex; align-items:flex-start; gap:var(--a-2);
  padding:10px var(--a-3); margin:0 0 var(--a-3);
  border:1px solid var(--a-blue);
  border:1px solid color-mix(in srgb, var(--a-blue) 42%, transparent);
  border-left-width:3px;
  border-radius:var(--a-r);
  background:var(--a-blue-soft);
  background:color-mix(in srgb, var(--a-blue) 10%, transparent);
  font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-text);
}
/* The glyph keeps its own column and does not shrink when the sentence wraps — at the narrow
   widths the settings drawer reaches, a flex icon collapses to a sliver before the text does. */
.a-callout > .ic{
  flex:0 0 auto; display:flex; width:15px; height:15px; margin-top:1px; color:var(--a-blue-text);
}
.a-callout > .ic svg{ width:15px; height:15px; }
.a-callout > .bd{ min-width:0; }
/* THE LEAD WORD IS THE NON-COLOUR SIGNAL, so it is a block of its own rather than a bold run
   inside the sentence — it has to survive being the only thing a reader gets. */
.a-callout b{ display:block; color:var(--a-blue-text); font-weight:600; margin-bottom:2px; }
.a-callout p{ margin:0; }
.a-callout p + p{ margin-top:4px; }
.a-callout strong{ font-weight:600; color:var(--a-text); }

/* ---------- the horizontal grip ----------
   The vertical one is `.a-grip` in alt-shell.css. Keyed on ARIA orientation (altSplitter() writes `aria-orientation="horizontal"` for `axis:'y'`).
   Line at rest, hit target larger than the line, cursor and colour change before the drag; `touch-action:none` stops a touch drag scrolling the panel. */
.alt-app .a-grip[aria-orientation="horizontal"],
.alt-app .a-w-grip[aria-orientation="horizontal"]{
  flex:0 0 auto; width:auto; align-self:auto; height:10px; cursor:ns-resize;
  position:relative; background:transparent; border:0; padding:0; touch-action:none;
}
.alt-app .a-grip[aria-orientation="horizontal"]::before,
.alt-app .a-w-grip[aria-orientation="horizontal"]::before{
  content:''; position:absolute; inset:4px 10px; border-radius:var(--a-r-pill);
  background:var(--a-line-strong);
  transition:background var(--a-quick) var(--a-ease), inset var(--a-quick) var(--a-ease);
}
/* The three-dot affordance the vertical grip carries, laid along the other axis, so a grip
   reads as "drag me" rather than as a border somebody left between two panels. */
.alt-app .a-grip[aria-orientation="horizontal"]::after,
.alt-app .a-w-grip[aria-orientation="horizontal"]::after{
  content:''; position:absolute; top:50%; left:50%; height:2px; width:22px;
  transform:translate(-50%,-50%); border-radius:var(--a-r-pill);
  background:repeating-linear-gradient(90deg, var(--a-faint) 0 2px, transparent 2px 5px);
}
.alt-app .a-grip[aria-orientation="horizontal"]:hover::before,
.alt-app .a-grip[aria-orientation="horizontal"]:focus-visible::before,
.alt-app .a-grip[aria-orientation="horizontal"]:active::before,
.alt-app .a-w-grip[aria-orientation="horizontal"]:hover::before,
.alt-app .a-w-grip[aria-orientation="horizontal"]:focus-visible::before,
.alt-app .a-w-grip[aria-orientation="horizontal"]:active::before{
  background:var(--a-blue); inset:4px 4px;
}
.alt-app .a-grip[aria-orientation="horizontal"]:focus-visible,
.alt-app .a-w-grip[aria-orientation="horizontal"]:focus-visible{
  outline:var(--a-focus); outline-offset:var(--a-focus-inset);
}

/* ---------- toolbars and section furniture ---------- */
/* Merged from CSS/alt/alt-shell.css: `.a-toolbar` was declared in both with equal specificity and
   alt-shell.css links later, so the effective rule was a hybrid. alt-admin.css and alt-team.css already
   assume the padding is built in, so the complete rule lives here and the alt-shell.css copy was deleted. */
.a-toolbar{
  display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; flex:0 0 auto;
  min-width:0; padding:var(--a-2) 0;
}
.a-toolbar > *{ align-self:center; }
.a-spacer{ flex:1 1 auto; min-width:0; }
.a-rule{ width:1px; align-self:stretch; background:var(--a-line-soft); margin:0 2px; }
.a-card{ background:var(--a-panel); border:1px solid var(--a-line-soft); border-radius:var(--a-r-lg); }
.a-sec-h{ display:flex; align-items:center; gap:var(--a-sp-8); }
/* ---------- the panel band header: icon square + title, one right-aligned action cluster ----------
   Tinted icon square, title, trailing controls ending in a Hide/Show pill; proven on team_board.html (`.at-band-h`,
   alt-team.css), adopted by tasks.html's "Work at a glance" (altRenderAnalytics(), JS/alt/alt-tasks.js). Co-apply
   `.a-panel-h` with `.a-sec-h`. No `margin-bottom`: `.a-analytics` is a flex column with a gap that a margin would stack on. */
.a-panel-h{ gap:var(--a-3); flex-wrap:wrap; }
.a-panel-ico{
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:var(--a-r-sm);
  background:var(--a-blue-soft); color:var(--a-blue-text);
}
.a-panel-ico svg{ width:14px; height:14px; display:block; }
/* A button does not inherit the label look from `.a-sec-h`; say so, or the title reads as body text beside the other panels. */
.a-panel-h > .a-w-fold{ flex:0 1 auto; text-transform:inherit; letter-spacing:inherit; font-weight:inherit; }
/* The trailing controls are one wrapper, not sibling margins. A first-child `margin-left:auto` fails when a
   narrower breakpoint hides that child with `display:none`; a sibling selector can't tell hidden from
   visible. Pushing the wrapper right lets the cluster's rendered width decide the gap. */
.a-panel-h > .a-panel-actions{
  margin-left:auto; display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap;
}
/* The disclosure chevron is sized by what it is, not where it sits (it was `.a-panel-actions .a-btn > .cv`
   until a Hide/Show outside that cluster came out 0x0). Safe to widen: every `.cv` is a direct child of a
   `.a-btn` or hangs off `.a-w-fold`, `.a-group-h`, `.a-disc-h` or `.a-okr-*-h`, none of which carry `.a-btn`. */
.a-btn > .cv{
  display:inline-flex; align-items:center; width:14px; height:14px; flex:0 0 auto;
}
.a-btn > .cv svg{ width:14px; height:14px; display:block; }
.a-mono{ font-family:var(--a-body); font-variant-numeric:tabular-nums; }
/* DS-53, DS-63: a count, clock, date or figure is the body face with tabular figures, so the reader's font choice reaches the numbers.
   Monospace is only for keyboard hints and machine strings shown as code: an inline <code>, a <pre>, an id or a reason code. */
code.a-mono,pre.a-mono,.a-mono.a-code{ font-family:var(--a-mono); }

.a-sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- the figure tile ----------
   Lifted out of alt-tasks.css because it is a component: Tasks, Notes, Calendar and the Admin
   Overview all draw it, and three pages agree on the 62px height. `.a-glance .a-stats` stays in
   alt-tasks.css (the Tasks strip's own). */
/* Three across, two down: six figures in one flex row overflowed a 320px column and clipped the
   last three (overdue work's count was invisible). A grid wraps by design. */
.a-stats{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--a-3); flex:0 0 auto;
  min-width:0;
}
/* One tile height on all three pages (it measured 76px on Tasks, a mix of 62 and 76 on Notes,
   62 on Calendar). 62 is what the calendar strip and the wireframe's compact strip draw, and
   it hands 14px per row back to the task list. */
.a-stat{
  display:flex; flex-direction:column; justify-content:center; gap:3px; min-width:0;
  /* 8px, not 9: letting the numeral's line box hold its glyphs (see `.a-stat b`) added 2px, and
       62 is the agreed height. The padding stays symmetric; an asymmetric one would be the
       alignment bug in disguise. */
  min-height:62px; padding:8px 12px;
  border-radius:var(--a-r); background:var(--a-raised); border:1px solid var(--a-line-soft);
  cursor:pointer; text-align:left; font:inherit; color:inherit;
}
.a-stat:hover{ border-color:var(--a-line-strong); }
/* The lit tile's wash lifts the ground, so the label has to come up with it: `--a-faint` on the
   blue soft is 3.9:1, under the 4.5 required for text. */
.a-stat.on,
.a-stat[aria-pressed="true"]{
  border-color:var(--a-blue); background:var(--a-blue-soft);
  box-shadow:0 0 0 1px var(--a-blue) inset;
}
.a-stat.on b,
.a-stat[aria-pressed="true"] b{ color:var(--a-blue-text); }
.a-stat.on span,
.a-stat[aria-pressed="true"] span{ color:var(--a-dim); }
.a-stat[disabled]{ opacity:.45; cursor:default; }
/* A zero is quiet whether or not it is a destination. "0 Overdue" is disabled and "0 No date" is
   still navigable, and they were drawn differently, which implied a difference in the data
   rather than the handler. Same condition, same weight. */
.a-stat.is-zero{ opacity:.45; }
.a-stat.is-zero:hover{ opacity:.7; }
/* The figure's line box must hold its own glyphs. `line-height:1` gave a 21px Space Grotesk numeral a
   21px box for a 27px glyph band, so the ink sat 3px high. Letting the font size its box and centring
   fixes it. Don't shrink below `normal` in a compact control; the 2px came off the padding. */
.a-stat b{ font-family:var(--a-display); font-size:var(--a-fs-21); line-height:var(--a-lh-tight); font-variant-numeric:tabular-nums; }
.a-stat span{ font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-tight); color:var(--a-dim); overflow-wrap:anywhere; }
.a-stat.warn b{ color:var(--a-red); }
.a-stat.good b{ color:var(--a-green); }

/* ---------- view tabs ----------
   Lifted out of alt-tasks.css like the figure tile: a tab strip is a component. Nothing in
   these selectors names an element, alt-okrs.css documents them as shared primitives, and the
   admin console's team detail draws one. */
.a-tabs{ display:flex; align-items:center; gap:2px; flex-wrap:wrap; padding:0 var(--a-1);
  border-bottom:1px solid var(--a-line); }
/* THE PANEL TAB (DS-24, DS-75): 34px, 13px/600, padding 0 12px, a 2px underline. It is the one tab in every drawer, dialog, editor and
   settings surface; the PAGE tab (44px, 14px, 3px underline) is the view row's, in alt-page-top.css. */
.a-tab{
  height:var(--a-tab-h); padding:0 var(--a-sp-12); background:none; border:none; border-bottom:2px solid transparent;
  color:var(--a-faint); font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); cursor:pointer;
  display:inline-flex; align-items:center; gap:7px;
}
.a-tab:hover{ color:var(--a-dim); }
.a-tab:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.a-tab[aria-selected="true"]{ color:var(--a-text); border-bottom-color:var(--a-blue); }
.a-tab .a-count-chip{ min-width:18px; margin-left:0; padding:0 6px; white-space:nowrap; }
.a-tab .a-count-chip + .a-count-chip{ margin-left:-3px; }
.a-tab[aria-selected="true"] .a-count-chip.mute{ border-color:var(--a-line); color:var(--a-text); }
.a-tab[aria-selected="true"] .a-count-chip.mute.zero{ border-color:var(--a-line-soft); color:var(--a-dim); }
.a-tabs-end{ margin-left:auto; display:flex; align-items:center; gap:var(--a-2); }

/* ---------- the boxed tab strip is the segmented control (DS-25) ----------
   `.at-tabs`/`.at-tab` take the rule above; only the count and the narrow-row behaviour stay here. */
/* Inside a column `.a-field` the default align-items:stretch widens the track to the field, which is the whole
   row wherever the field is flex:1 1 100%. The track hugs its tabs; the <1024 width:100% below still takes the line. */
.alt-app .a-field > .at-tabs{ align-self:flex-start; }
/* THE COUNT IS SUBORDINATE TO THE NAME. Same size would make "Board 41" read as two words. */
.alt-app .at-tab .n{ font-size:var(--a-fs-11); opacity:.72; font-variant-numeric:tabular-nums; }  /* a count not yet known: an empty slot (okrs.html, the quarter picker's quick picks) */
.alt-app .at-tab.on .n{ opacity:1; }
/* The stat chip on a boxed tab: the tab's own gap spaces it. */
.alt-app .at-tab .a-count-chip{ min-width:18px; margin-left:0; padding:0 6px; }
/* On the accent fill a count is the on-fill colour in an outline: the neutral chip's ink would be dark on blue. */
.alt-app .at-tab.on .a-count-chip.mute,
.alt-app .a-seg-ctl > .a-tab.on .a-count-chip.mute{ background:transparent; border-color:currentColor; color:var(--a-on-fill); }

/* The track stops being content-sized before anything else gives: below 1024 its row has
   wrapped, so the track takes the line and the segments share it equally. */
@media (max-width:1023px){
  .alt-app .at-tabs{ width:100%; justify-content:space-between; }
  .alt-app .at-tab{ flex:1 1 0; justify-content:center; }
}
/* On a phone the track scrolls inside itself rather than widening the page. On the team board
   four tabs and counts need 316px against a 296px phone width, and the strip made the page
   scroll sideways. A contained scroll beats truncating "Completed" to "Comp..." or dropping a view. */
@media (max-width:819px){
  .alt-app .at-tabs{ overflow-x:auto; overscroll-behavior-x:contain; justify-content:flex-start; }
  .alt-app .at-tab{ flex:0 0 auto; padding:0 6px; font-size:var(--a-fs-ctl-sm); }
}

/* ================= Motion: the micro response =================
   Nothing in JS/alt/ emits `.micro` (CSS/components.css), so selectors are local; timing is shared (`--dur-micro`, 140ms linear; sys_design-system.md §2b).
   Twin of classic_tasks.html's easing. `filter` is listed for `.a-btn.primary:hover`; never ease a filter or shadow across a list.
   Reduced motion is answered at the token (alt-tokens.css zeroes `--dur-micro`). */
.a-btn,
.a-input,
.a-select,
.a-textarea,
.a-chip,
.a-chip-st,
.a-menu-item,
.a-stat,
.alt-app .at-tab,
.a-tab{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear,
             filter           var(--dur-micro, 140ms) linear;
}

/* ================= Task event link =================
   JS/components/task-event-link.js: the Event control in a task's drawer/editor and its pickers. Here because tasks.html, team_board.html and events.html load it
   (alt-events.css is events.html only). Reuses `.a-btn`, `.a-hint`, `.a-field`, `.a-tabs`, `.a-count-chip`, `.a-chip-st`, `.a-scrim`, `.a-modal`.
   New classes are `.tel-` prefixed to avoid `.ev-*`; `.tel-modal*` is a compact shell because `.a-modal` is the 920x760 Settings card. */
.tel-block{ margin-top:4px; min-width:0; }
.tel-block .a-hint{ margin:6px 0 0; }
.tel-block > .a-hint:first-child{ margin-top:0; }
.tel-block .a-row-actions{ margin-top:8px; }
.tel-quiet{ color:var(--a-dim); }
.tel-glyph{ display:inline-block; flex:0 0 auto; background:currentColor; }
.tel-glyph.weekly{ width:5px; height:14px; border-radius:3px; color:var(--ev-weekly, var(--a-blue)); }
.tel-glyph.monthly{ width:11px; height:11px; border-radius:50%; color:var(--ev-monthly, var(--a-green)); }
.tel-glyph.quarterly{ width:10px; height:10px; transform:rotate(45deg); border-radius:2px; margin:0 1px; color:var(--ev-quarterly, var(--a-gold)); }
.tel-glyph.pub{ width:10px; height:13px; border-radius:1px 5px 1px 1px; color:var(--ev-pub, var(--a-purple)); }
.tel-glyph.due{ width:0; height:0; background:transparent; border-left:6px solid transparent; border-right:6px solid transparent; border-top:11px solid var(--ev-due, var(--a-amber)); }
.tel-glyph.ph{ width:11px; height:11px; border-radius:3px; background:transparent; border:1.5px dashed var(--a-dim); }
.tel-card{
  display:flex; gap:10px; align-items:flex-start; padding:10px 12px;
  border:1px solid var(--a-line); border-radius:var(--a-r); background:var(--a-raised);
}
.tel-card > .tel-glyph{ margin-top:4px; }
.tel-card-body{ flex:1 1 auto; min-width:0; }
.tel-card-nm{ font-weight:600; font-size:var(--a-fs-ctl); overflow-wrap:anywhere; }
.tel-card-sub{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); }
.tel-card.archived{ border-style:dashed; background:transparent; }
.tel-card.archived .tel-card-nm,
.tel-card.archived > .tel-glyph{ opacity:.65; }
.tel-confirm{
  margin-top:8px; padding:10px 12px; border:1px solid var(--a-red); border-radius:var(--a-r);
  background:var(--a-red-soft);
}
.tel-confirm p{ margin:0 0 8px; font-size:var(--a-fs-ctl-sm); color:var(--a-text); }
.tel-confirm .a-row-actions{ margin:0; }
.a-modal.tel-modal{ width:min(560px, 94vw); height:auto; max-height:min(700px, 88vh); }
.tel-modal-h{ flex:0 0 auto; padding:12px 16px 0; border-bottom:1px solid var(--a-line); }
.tel-modal-t{ display:flex; align-items:center; gap:10px; }
.tel-modal-t h2{ flex:1 1 auto; min-width:0; margin:0; font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); }
.tel-modal-h > .a-hint{ margin:2px 0 12px; overflow-wrap:anywhere; }
.tel-modal-h > .a-tabs{ border-bottom:0; padding:0; }
.tel-modal-b{ flex:1 1 auto; min-height:0; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:2px; }
/* The body is a scrolling flex COLUMN, and a column's children shrink to fit before it scrolls:
   the search field was squeezed to 18px (measured). Nothing in it may shrink; it scrolls instead. */
.tel-modal-b > *{ flex:none; }
.tel-modal-b > .a-hint{ margin:8px 0 0; }
.tel-modal-f{
  flex:0 0 auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px;
  padding:12px 16px; border-top:1px solid var(--a-line); background:var(--a-raised);
}
/* the footer actions are the ladder's md button as it stands: no height, padding or weight of their own */
.tel-team{ margin:var(--a-sp-12) 0 var(--a-sp-4); }
.tel-row{
  width:100%; display:flex; align-items:center; gap:6px 10px; text-align:left; padding:9px 10px;
  border:1px solid transparent; border-radius:var(--a-r-sm); background:transparent;
  color:var(--a-text); font:inherit; cursor:pointer;
}
.tel-row:hover{ background:var(--a-raised); }
.tel-row:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.tel-row.on{ border-color:var(--a-blue); background:var(--a-blue-soft); }
.tel-row[disabled]{ opacity:.55; cursor:not-allowed; }
/* Narrow widths: the text column takes the shrink and the chips never do ("Owned" and "Active"
   clipped at 400px). Chips that don't fit wrap under the text rather than being cut. */
.tel-row{ flex-wrap:wrap; }
.tel-row .l{ flex:1 1 10rem; min-width:0; display:flex; flex-direction:column; }
.tel-row > .a-chip, .tel-row > .tel-glyph{ flex:none; white-space:nowrap; max-width:none; overflow:visible; }
.tel-row .nm{ font-weight:600; font-size:var(--a-fs-ctl); overflow-wrap:anywhere; }
.tel-row .sub{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim); }
.tel-occ{ margin:6px 0 8px; padding:12px; border:1px solid var(--a-line-soft); border-radius:var(--a-r); background:var(--a-raised); }
.tel-occ .a-hint{ margin:6px 0 0; }
.tel-replace{
  margin:10px 0 0; padding:8px 10px; border-radius:var(--a-r-sm); background:var(--a-amber-soft);
  color:var(--a-text); font-size:var(--a-fs-ctl-sm);
}
.tel-empty{ margin:0; padding:var(--a-sp-16) var(--a-sp-4); color:var(--a-dim); font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); }
.tel-note{ margin-top:6px; }

/* The core checklist: JS/components/core-checklist.js
   One presentation for every checklist (note, personal task, team task), moved from CSS/alt/alt-notes.css to the sheet every Suite page loads.
   It loads before alt-tasks.css, so the picker row's margin carries `.a-row.a-pick-row`.
   Hook classes with no rule, on purpose: `.a-cl`, `.a-ncl-body`, `.a-ncl-more`, `.a-ncl-owner`, `.a-ncl-note`, `.a-pick-board`, `.a-pick-who`,
   `.a-ncl-hd .lb` (a text wrapper inside the pill's flex row). */
/* One set of names matching the core's renderer. `.a-ncl` served as both row and container, so
   the container inherited a row's padding and border while its items inherited nothing. */
.a-ncl-add{ display:flex; gap:6px; }
.a-ncl-add .a-input{ flex:1 1 auto; height:var(--a-ctl-sm); font-size:var(--a-fs-ctl-sm); }
/* Also in the team task dialog: `.alt-app #taskModal .a-input{ height:auto }`
   (CSS/alt/alt-team.css) un-fixes typed fields there and an ID beats this class rule, so the
   add field fell to 17px (vs the notes.html checklist). Restated at ID weight, add field only. */
.alt-app #taskModal .a-ncl-add .a-input{ height:var(--a-ctl-sm); }

/* The item count in a task editor's Checklist section header: coreChecklistMountTaskSection()
   emits `.tcl-n` into the editor's `.tsec-head`. Moved from CSS/checklist.css because the core
   emits it; unchanged. Classic tokens, since the section header is classic-styled. */
.tsec-head .tcl-n{
  flex:0 0 auto; font-size:var(--a-fs-11); font-weight:600; color:var(--text-faint);
  background:var(--panel-2); border:1px solid var(--border-soft);
  border-radius:var(--a-r-pill); padding:1px 8px; letter-spacing:0; text-transform:none;
}


/* ---------- the checklist ----------
   The model's five categories are folding sections rather than four columns — a column layout
   needs width this panel does not have beside a note body. */
.a-ncl{ display:flex; flex-direction:column; gap:6px; container-type:inline-size; container-name:a-ncl; }
.a-ncl-cat{ border:1px solid var(--a-line); border-radius:var(--a-r); overflow:hidden; }
.a-ncl-h{
  display:flex; align-items:center; gap:var(--a-sp-8); width:100%; height:var(--a-ctl); padding:0 var(--a-sp-8);
  background:none; border:0; border-radius:var(--a-r-sm); color:var(--a-text); cursor:pointer;
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); letter-spacing:0; text-transform:none;
}
.a-ncl-h:hover{ background:var(--a-raised); }
.a-ncl-h:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* The chevron TURNS, it does not swap, matching the task list's `.a-group-h`, the drawer's
   `.a-disc-h` and both OKR headers, so reduced motion (zeroed at the token) covers it. */
.a-ncl-h .cv{ display:inline-flex; width:14px; height:14px; color:var(--a-faint);
  transition:transform var(--a-quick) var(--a-ease); }
.a-ncl-h[aria-expanded="false"] .cv{ transform:rotate(-90deg); }
.a-ncl-h .cv svg{ width:14px; height:14px; }
.a-ncl-h b{ flex:1 1 auto; text-align:left; }
.a-ncl-b{ padding:6px; display:flex; flex-direction:column; gap:4px; }
.a-ncl-item:hover{ background:var(--a-raised); }
.a-ncl-item .t{ min-width:0; font-size:var(--a-fs-ctl); cursor:text; }
/* Everything an item links, and its "...", as one trailing group: `.a-ncl-end` never splits and is pushed
   right so the "..." ends at the same edge on every row. Links wrap right-aligned; each chip with its avatar
   is an `.a-ncl-pair` that never wraps apart. On a phone the group wraps below the text. Layout only. */
.a-ncl-end{ display:flex; flex-wrap:nowrap; align-items:center; gap:6px; margin-left:auto;
  max-width:100%; min-width:0; }
.a-ncl-links{ display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px;
  flex:0 1 auto; min-width:0; }
.a-ncl-pair{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.a-ncl-item.done .t{ text-decoration:line-through; color:var(--a-faint); }
.a-ncl-a{ display:flex; gap:4px; opacity:0; }
/* Inside the trailing group (`.a-ncl-end`, above) the "…" never shrinks. */
.a-ncl-end > .a-ncl-a{ flex:0 0 auto; }
.a-ncl-item:hover .a-ncl-a,.a-ncl-item:focus-within .a-ncl-a{ opacity:1; }
.a-ncl-add input{ width:100%; }

/* ---------- checklist columns: Item | Description ----------
   `.a-ncl` (above) is the size container, so the stack follows the panel it sits in (a note beside a
   drawer, the phone) and not the window. A row is a grid with explicit columns, so a read-only row
   with no grip keeps its cells aligned: grip, tick, title cell, description cell, trailing group.
   Editors get borderless fields that read as row text until hovered or focused; read-only lists
   render the same cells as plain spans. */
.a-ncl-item{
  display:grid; align-items:start; column-gap:8px; row-gap:2px; padding:3px 4px; border-radius:var(--a-r-sm);
  grid-template-columns:14px var(--a-ctl-sm) 18px minmax(0,1fr) minmax(0,1.3fr) 11rem;
}
.a-ncl-item > .a-w-grab{ grid-column:1; margin-top:3px; }
.a-ncl-item > .a-ncl-pf{ grid-column:2; grid-row:1; margin-top:0; }
.a-ncl-item > .a-check{ grid-column:3; margin-top:3px; }
.a-ncl-item > .a-ncl-tc{ grid-column:4; min-width:0; }
.a-ncl-item > .a-ncl-dc{ grid-column:5; min-width:0; }
.a-ncl-item > .a-ncl-end{ grid-column:6; margin-left:0; justify-self:end; align-self:start; }
.a-ncl-t,.a-ncl-d{
  display:block; width:100%; min-width:0; box-sizing:border-box; margin:0; padding:2px 6px;
  border:1px solid transparent; border-radius:var(--a-r-sm); background:transparent;
  color:var(--a-text); font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:400; line-height:var(--a-lh-ui);
  resize:none; overflow-wrap:anywhere; cursor:text;
}
.a-ncl-d{ color:var(--a-dim); }
textarea.a-ncl-t,textarea.a-ncl-d{ overflow:hidden; }
/* At rest a description is one line; focus grows it to a six-line cap, then it scrolls. */
textarea.a-ncl-d{ max-height:calc(1.45em + 6px); }
textarea.a-ncl-d:focus{ max-height:9.5em; overflow:auto; }
/* A textarea cannot draw an ellipsis: fieldGrow sets data-more when the text overflows the rest line,
   and the trailing fade masks the cut. Masks only, so it is right in both themes. */
textarea.a-ncl-d[data-more]:not(:focus){
  -webkit-mask-image:linear-gradient(to right, black calc(100% - 2.5em), transparent);
          mask-image:linear-gradient(to right, black calc(100% - 2.5em), transparent);
}
textarea.a-ncl-t:hover,textarea.a-ncl-d:hover{ border-color:var(--a-line); }
textarea.a-ncl-t:focus,textarea.a-ncl-d:focus{
  border-color:var(--a-blue); background:var(--a-field-bg); color:var(--a-text);
  outline:var(--a-focus); outline-offset:var(--a-focus-offset);
}
textarea.a-ncl-t::placeholder,textarea.a-ncl-d::placeholder{ color:transparent; }
textarea.a-ncl-d:hover::placeholder,textarea.a-ncl-d:focus::placeholder{ color:var(--a-placeholder); }
@media (pointer:coarse){ textarea.a-ncl-d:hover::placeholder,textarea.a-ncl-d:focus::placeholder{ color:transparent; } }
/* Read-only cells are plain text, not focusable; the description is clamped to one line. */
span.a-ncl-d,.a-ncl-tc > span.t{ cursor:default; white-space:pre-wrap; padding:2px 6px; display:block; }
span.a-ncl-d{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; }
.a-ncl-item.done .a-ncl-t,.a-ncl-item.done .a-ncl-tc > .t{ text-decoration:line-through; color:var(--a-faint); }
.a-ncl-item.done .a-ncl-d{ text-decoration:none; color:var(--a-faint); }
/* The quiet write state and the over-the-limit note under a cell; both stay hidden until used. */
.a-ncl-sv,.a-ncl-lim{ display:block; padding:1px 6px 0; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); }
.a-ncl-lim{ color:var(--a-amber); }
/* The assignee disc as a button: a real control with a visible hover and focus. */
button.a-av{ border:1px solid transparent; padding:0; font-family:inherit; cursor:pointer; }
button.a-av:hover,button.a-av[aria-expanded="true"]{
  border-color:var(--a-blue); box-shadow:0 0 0 2px var(--a-blue-soft);
}
button.a-av:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* The marker is a button on both the checklist row and the AI row; `button.a-chip` already
   carries cursor/hover/focus (alt-components.css) — it only needs to stop shrinking. */
.a-ncl-task{ flex:0 0 auto; }
/* ---------- a finished linked task is green, not struck through ----------
   The chip says it, not the item row (`.a-ncl-item.done .t` strikes a ticked item, a different fact). State is the shared `a-chip-st st-complete` (CSS/alt/alt-components.css);
   this adds a ground and restates its two declarations at a specificity `.a-ncl-team` can't outrank (`--a-st-line`/`--a-st-text` keep a blue edge off green).
   A filled chip plus a lightness step is the second cue sys_design-system.md "Never colour alone" asks for. A chip whose task was never read has no status class. */
.a-chip.a-ncl-task.st-complete{
  background:var(--a-green-soft); border-color:var(--a-st-line); color:var(--a-st-text);
}
/* The due date's two warnings in the status chip's vocabulary (core-checklist.js
   coreChecklistDueState()): overdue is red, due today or tomorrow amber (as
   `.a-chip-st.st-blocked` / `.st-hold`). Each gets the complete chip's ground so it reads at a
   glance and survives greyscale. */
.a-chip-st.st-overdue{ --a-st-line:var(--a-red);   --a-st-text:var(--a-red); }
.a-chip-st.st-soon   { --a-st-line:var(--a-amber); --a-st-text:var(--a-amber); }
.a-chip.a-ncl-task.st-overdue{
  background:var(--a-red-soft); border-color:var(--a-st-line); color:var(--a-st-text);
}
.a-chip.a-ncl-task.st-soon{
  background:var(--a-amber-soft); border-color:var(--a-st-line); color:var(--a-st-text);
}
/* Later, or no date: the plain grey chip — on the team chip too, so the two slots agree. */
.a-chip.a-ncl-task.st-todo{ background:transparent; border-color:var(--a-st-line); color:var(--a-st-text); }

/* ---------- the team board link is the same chip in a different colour ----------
   Markers: the word ("Team Task" vs "task") and the colour (`--a-blue-soft`/`--a-blue`/`--a-blue-text`, as `.a-chip.on`).
   `.a-chip` owns geometry; sitting after it lets hover restate colour at equal specificity. The unavailable case is a
   `<span>`: dashed, no ground, faint, a label not a control (Definition of Done 4f). */
.a-ncl-team{
  background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text);
}
button.a-ncl-team:hover{ border-color:var(--a-blue-text); color:var(--a-blue-text); }
.a-ncl-team.off{
  background:transparent; border-style:dashed; border-color:var(--a-line-soft);
  color:var(--a-faint); cursor:default;
}

/* ---------- the OKR link is a third, independent marker ----------
   An item may carry a personal task, a team task and an OKR link at once, so it gets its own colour:
   `--a-purple*`, the suite's secondary identity (`.st-monitor`). Same shape as `.a-ncl-team`: the word
   ("Objective"/"Key Result") carries the kind, and the unavailable case degrades the same way (DoD 4f). */
.a-ncl-okr{
  background:var(--a-purple-soft); border-color:var(--a-purple); color:var(--a-purple);
}
button.a-ncl-okr:hover{ border-color:var(--a-purple); color:var(--a-purple); }
.a-ncl-okr.off{
  background:transparent; border-style:dashed; border-color:var(--a-line-soft);
  color:var(--a-faint); cursor:default;
}
/* On a team task the dead OKR chip is a button (it opens the item menu): the same 24px chip as on a note (DS-26). */
button.a-ncl-okr.off{ position:relative; }

/* ================= The task picker: New note from a task =================
   Borrows the task list's row (`.a-row` with `button.a-row-t`, the shape altTaskRow() builds), so contrast,
   type, status chip and date track come from alt-tasks.css/alt-components.css. Below is only what a picker
   adds: room in a dialog, a title read as the thing chosen, and a metadata line that can't push the date. */
.a-row.a-pick-row{ margin-bottom:4px; }
.a-row.a-pick-row:last-child{ margin-bottom:0; }
/* `#altLinkItemTaskList`/`#altFromTaskList` is a flex column capped by altClampPickList(); past
   the cap flex shrinks rows to `.a-row`'s min-height floor, squeezing the status chip under the
   next row. Scoped here, not to `.a-row`, which the list/board/calendar also draw from. */
.a-pick-row{ flex-shrink:0; }
/* The whole row is the pointer target (see the take() handler), so the cursor says so over all
   of it, not only the title. */
.a-pick-row,.a-pick-row .a-row-t{ cursor:pointer; }
/* 14px, stated: `button.a-row-t` sets `font:inherit`, whose font-size reset beat `.a-row-t`'s 14px,
   so the title took the dialog's 16px. A picker must not have its own type scale. */
.a-pick-row .a-row-t{ font-weight:600; font-size:var(--a-fs-14); line-height:var(--a-lh-ui); }
/* The status chip lines up with the title's first line: `.a-row` is align-items:flex-start
   because the controls belong to the title; the meta line is the second line. */
.a-pick-row .a-row-meta{ margin-top:0; padding:2px 0 3px; }
/* `.a-pick-board` HAS NO RULE HERE and must not gain one (so a 4d sweep can judge it). It is
   the team picker's board-name chip (JS/components/core-checklist.js); its look comes from
   `a-chip quiet` (CSS/alt/alt-tasks.css). The class is only a querySelector hook. */
.a-pick-row > .a-row-due{ margin-top:3px; }
/* `.a-row-due` is `flex:0 0 66px` in alt-tasks.css, sized for the dense task list. This 920px
   modal has room, and the fixed track truncated dates ("Wed, Sep 30"), so the picker takes
   `flex:0 0 auto; min-width:auto` rather than widening `.a-row-due` itself. */
.a-pick-row > .a-row-due{ flex:0 0 auto; min-width:auto; overflow:visible; text-overflow:clip; }
/* `.a-row.sel` exists in alt-tasks.css and was unused here — pressing a row used to read as
   though nothing had happened while the note was being made. */
.a-pick-row.sel .a-row-t{ text-decoration:none; }

/* ---------- the two dialogs built on this row: #altLinkItemTask and #altFromTask ----------
   `.a-drawer-b` (alt-tasks.css) spaces flex children with `gap:var(--a-3)`; the intro/count `<p class="a-hint">`
   had a UA margin stacking on that gap. Scoped by dialog id, not `.a-hint`, which other hosts want default.
   altClampPickList() rounds the list to whole rows either way. */
#altLinkItemTask .a-drawer-b > p{ margin:0; }


.a-ncl-item .a-w-grab{ opacity:0; }
.a-ncl-item:hover .a-w-grab{ opacity:1; }
.a-ncl-item .a-more{ opacity:0; }
.a-ncl-item:hover .a-more,.a-ncl-item:focus-within .a-more{ opacity:1; }



/* ---------- High priority: the flag, the flagged row, the Heads down pill and lane ----------
   core-checklist.js. Red (`--a-red`), not the personal star's gold: the flag is SHARED, the star is per reader (D11).
   State is never colour alone: the flag's shape fills, the title is heavier and the row carries an edge. */
.a-ncl-pf{
  display:inline-flex; align-items:center; justify-content:center; width:var(--a-ctl-sm); height:var(--a-ctl-sm); padding:0; margin:0;
  border:0; border-radius:var(--a-r-sm); background:transparent; color:var(--a-faint); cursor:pointer; opacity:0;
}
.a-ncl-pf svg{ width:15px; height:15px; }
.a-ncl-item:hover .a-ncl-pf,.a-ncl-item:focus-within .a-ncl-pf,.a-ncl-pf:focus-visible{ opacity:1; }
.a-ncl-pf:hover{ color:var(--a-red); }
.a-ncl-pf:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.a-ncl-pf[aria-pressed="true"]{ opacity:1; color:var(--a-red); }
.a-ncl-pf[aria-pressed="true"] .fl,.a-ncl-hd[aria-pressed="true"] .fl,.a-ncl-lane-ic .fl{ fill:currentColor; }
/* Flagged but not lifted (Complete, Parking lot): kept, faint, no edge (D7). */
.a-ncl-item:not(.hi) .a-ncl-pf[aria-pressed="true"]{ color:var(--a-faint); }
/* Read-only: the state is drawn, the button does nothing and an unset one is not drawn at all. */
.a-ncl-pf[disabled]{ cursor:default; }
.a-ncl-pf[disabled]:not([aria-pressed="true"]){ visibility:hidden; }
/* Square on the edge side, or the row's rounded corners bend the 3px edge into a bracket. */
.a-ncl-item.hi{ box-shadow:inset 3px 0 0 var(--a-red); border-top-left-radius:0; border-bottom-left-radius:0; }
/* In the Heads down lane every row is flagged, so the flag glyph alone marks them (owner, 2026-11-13: the bar is overkill). */
.a-ncl-lane .a-ncl-item.hi{ box-shadow:none; border-top-left-radius:var(--a-r-sm); border-bottom-left-radius:var(--a-r-sm); }
.a-ncl-item.hi .a-ncl-t,.a-ncl-item.hi .a-ncl-tc > .t{ font-weight:600; }
/* Visible to a screen reader only: ", high priority" in the title cell. */
.a-ncl-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; }
/* The pill: the Notes Focused button's idiom (a fixed label, state in aria-pressed), drawn small in the checklist header. */
.a-ncl-hd{
  display:inline-flex; align-items:center; gap:var(--a-sp-6); height:var(--a-ctl-sm); padding:0 9px 0 var(--a-sp-8); flex:0 0 auto;
  border:1px solid var(--a-line); border-radius:var(--a-r-sm); background:transparent; color:var(--a-text);
  font-family:var(--a-body); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); cursor:pointer; white-space:nowrap;
}
.a-ncl-hd:hover{ border-color:var(--a-line-strong); }
.a-ncl-hd:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.a-ncl-hd .ic{ display:inline-flex; color:var(--a-dim); }
.a-ncl-hd .ic svg{ width:14px; height:14px; }
.a-ncl-hd .c{ color:var(--a-dim); font-weight:400; font-variant-numeric:tabular-nums; }
.a-ncl-hd[aria-pressed="true"]{ border-color:var(--a-red); background:var(--a-red-soft); }
.a-ncl-hd[aria-pressed="true"] .ic{ color:var(--a-red); }
.a-ncl-hd[aria-pressed="true"] .c{ color:var(--a-text); }
/* The tools row a host without its own header gets (head:false): the pill, then the "...". */
.a-ncl-tools{ display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.a-cl > .a-sec-h .a-tabs-end{ display:inline-flex; align-items:center; gap:6px; }
/* The lane: pinned above the statuses, no fold (it is the point of the mode). */
.a-ncl-lane{ border-color:var(--a-red); }
.a-ncl-lane > .a-ncl-h{ background:var(--a-red-soft); cursor:default; }
.a-ncl-lane > .a-ncl-h .n{ color:var(--a-text); }
.a-ncl-lane-ic{ display:inline-flex; width:14px; height:14px; color:var(--a-red); }
.a-ncl-lane-ic svg{ width:14px; height:14px; }
.a-ncl-lane-say{ margin:0 10px 8px; }
/* A status's "+N in Heads down": quiet, sentence case, beside the count. */
.a-ncl-hdn{ color:var(--a-faint); font-weight:400; text-transform:none; letter-spacing:0; }
/* A lane row's status, said on the row because the section no longer says it. */
.a-ncl-st{ flex:0 0 auto; }
/* A lane row's trailing track grows to its chips (status, task, avatar, "...") so the row stays ONE line like a status
   row; the stacked layout below 560px is alt-responsive.css's. */
@container a-ncl (min-width:560px){
  .a-ncl-item[data-lane]{ grid-template-columns:14px var(--a-ctl-sm) 18px minmax(0,1fr) minmax(0,1.3fr) minmax(11rem,max-content); }
}
@media (pointer:coarse){
  /* The flag's track grows with it, or a 32px button in a 20px track would sit over the tick (wide container only; the
     narrow container moves it to the row's end, alt-responsive.css). */
  .a-ncl-item{ grid-template-columns:14px var(--a-ctl) 18px minmax(0,1fr) minmax(0,1.3fr) 11rem; }
  @container a-ncl (min-width:560px){ .a-ncl-item[data-lane]{ grid-template-columns:14px var(--a-ctl) 18px minmax(0,1fr) minmax(0,1.3fr) minmax(11rem,max-content); } }
  .a-ncl-pf{ width:var(--a-ctl); height:var(--a-ctl); padding:0; opacity:1; }
  .a-ncl-hd{ height:var(--a-ctl); }
}

/* ---------- On hold, the fifth area ----------
   The pause mark is two bars drawn here rather than a shared icon (`alt-icons.js` isn't this
   sheet's neighbour to extend). Amber is the status colour a task's On Hold wears
   (`.a-chip-st.st-hold`). Decorative: the name and count carry the meaning (aria-hidden). */
.a-ncl-pause{ position:relative; display:inline-block; width:14px; height:14px; flex:0 0 auto; }
.a-ncl-pause::before,.a-ncl-pause::after{
  content:''; position:absolute; top:2px; bottom:2px; width:2px; border-radius:1px; background:var(--a-amber);
}
.a-ncl-pause::before{ left:3px; }
.a-ncl-pause::after{ right:3px; }
/* An area's own sentence when nothing is in it — text, not a placeholder, in the dim role the rest of
   the page's quiet explanations use (`.a-hint`). */
.a-ncl-empty{ margin:2px 4px 4px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim); }
/* The disagreement mark on an On hold item whose task now reads something else: the soft amber
   pair the status colours use, a pill like its neighbours, giving way before the item's text so
   a long status doesn't push words off the row. */
.a-ncl-sync{
  flex:0 1 auto; min-width:0; max-width:11em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  display:inline-flex; align-items:center; height:24px; font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-tight); padding:0 9px; border-radius:var(--a-r-pill);
  background:var(--a-amber-soft); color:var(--a-amber);
}
/* The chip a frame just closed on, pulsed once to show what moved. A ring (a shadow, so the row
   doesn't shift) on the shared flash token; reduced motion keeps the ring and loses the
   animation, and the controller's applyFlash() timer removes it. */

@keyframes altNclFlash{
  0%   { box-shadow:0 0 0 3px var(--a-blue); }
  70%  { box-shadow:0 0 0 3px var(--a-blue); }
  100% { box-shadow:0 0 0 3px transparent; }
}

.a-ncl-item .a-w-grab,
.a-ncl-a{
  transition:opacity var(--a-quick) var(--a-ease);
}
.a-ncl-item{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear;
}
.a-ncl-item .a-more{
  transition:opacity          var(--a-quick) var(--a-ease),
             background-color var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear;
}
.a-ncl-item.is-flash,
.a-ncl-task.is-flash{ animation:altNclFlash var(--dur-flash) var(--ease-out) 1; }
@media (prefers-reduced-motion: reduce){
  .a-ncl-item.is-flash,
  .a-ncl-task.is-flash{ animation:none; box-shadow:0 0 0 3px var(--a-blue); }
}
/* NEW WITH THE CORE. A host that draws its own section header (head:false — the task editor's
   taskSectionWrap()) still needs the checklist's own "…" menu: one small right-aligned row. */
.a-ncl-tools{ display:flex; justify-content:flex-end; margin:0 0 4px; }
/* The header's tally is a summary: what doesn't fit is ellipsed, not wrapped under the title
   (the rule Notes scoped to `.a-note-under .a-sec-h .a-hint`, stated once for every host). */
.a-cl > .a-sec-h > .a-w-fold{ flex:0 0 auto; }
.a-cl > .a-sec-h > .a-hint{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* The link picker's status filter row — was an inline style in the Notes renderer. */
.a-cl-filters{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
/* The read-only list: no add field and no grip, and the tick says it cannot be pressed. */
.a-ncl-item .a-check:disabled{ cursor:default; opacity:.7; }

/* ================= Live presence chip and live tone (shared) =================
   Notes, the team board and OKRs all mount the same label and chip; the overlay layer stays in alt-notes.css.
   The label always repeats the state in words. .a-live-slot is the presence anchor that holds .a-live-state
   on surfaces with no save slot, and takes the same tones. */
/* A live slot host takes no room (and no flex gap) until something in it shows. */
/* ONE group per surface, sitting immediately before the save status: label, then avatars, then the state line.
   The order is CSS, so mount timing cannot change it. Never squashed: titles, tabs and save words yield first. */
.a-live-host{ display:inline-flex; align-items:center; gap:var(--a-2); flex:0 0 auto; }
.a-live-host > [data-live-edit-flag]{ order:1; }
.a-live-host > [data-live-edit-caret]{ order:1; }
.a-chip.a-live-flag-caret{ padding:0 var(--a-sp-4); min-width:24px; justify-content:center; }   /* a 24x24 target */
.a-chip[data-live-check="alone"]{ max-width:none; }
@media (prefers-reduced-motion: no-preference){ .a-chip[data-live-check="checking"] .dot{ animation:save-ind-pulse .7s ease-in-out infinite alternate; } }
/* The label's two on states (JS/components/live-edit-flag.js). Ready (switched on, nobody else here) is the plain chip
   with a hollow dot: it must not read as active. Active (joined with somebody else) is the accent with the soft glow,
   `.a-bell.has-unread`'s look (CSS/alt/alt-shell.css), held steady; it eases between the two and pulses once on arrival
   (`qgPulse`, defined just below) only when motion is welcome. */
[data-live-edit-flag]{ transition:background-color var(--a-quick, .15s) var(--a-ease, ease), border-color var(--a-quick, .15s) var(--a-ease, ease), color var(--a-quick, .15s) var(--a-ease, ease), box-shadow var(--a-quick, .15s) var(--a-ease, ease); }
.a-chip[data-live-state="ready"] .dot{ background:transparent; box-shadow:inset 0 0 0 1.5px currentColor; }
.a-chip.a-chip-live{
  background:var(--a-blue-soft); border-color:var(--a-blue); color:var(--a-blue-text);
  box-shadow:0 0 0 1px var(--a-blue), 0 0 12px -3px var(--a-blue);
}
button.a-chip.a-chip-live:hover{ border-color:var(--a-blue); color:var(--a-blue-text); }
/* Can't connect (others here, this browser's live connection will not open): the warn tone, never the error red,
   because nothing is lost and changes still save. The `.a-ask-st.warn` pairing; the dot is solid so it reads as a state. */
.a-chip[data-live-state="cant-connect"]{ background:var(--a-amber-soft); border-color:var(--a-amber); color:var(--a-amber); }
button.a-chip[data-live-state="cant-connect"]:hover{ border-color:var(--a-amber); color:var(--a-amber); }
.a-chip[data-live-state="cant-connect"] .dot{ background:currentColor; box-shadow:none; }
@media (prefers-reduced-motion: no-preference){
  .a-chip.a-chip-live.is-arriving{ animation:qgPulse 1.2s ease-in-out 1; }
}
@keyframes qgPulse{
  0%, 100%{ box-shadow:0 0 0 1px var(--a-blue), 0 0 10px -3px var(--a-blue); }
  50%{ box-shadow:0 0 0 1px var(--a-blue), 0 0 20px 2px var(--a-blue); }
}
@media (prefers-reduced-motion: reduce){ [data-live-edit-flag]{ transition:none; } }
.a-live-host > .a-live-chip{ order:2; }
.a-live-host > .a-live-slot{ order:3; }
.a-live-host:not(:has(> :not(:empty))){ display:none; }
/* An unfilled anchor is a zero-width flex item that would still draw a gap: take it out of the row. */
.a-live-host > [data-live-view]:empty{ display:none; }
.a-live-chip{
  flex:0 0 auto; align-self:center; display:inline-flex; align-items:center; gap:var(--a-2);
  max-width:220px; min-width:0; font:600 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); color:var(--a-dim); white-space:nowrap;
}
.a-live-chip[data-alone="true"]{ color:var(--a-faint); }
.a-live-chip[data-alone="true"] .a-live-av{ opacity:.45; }
.a-live-avs{ display:inline-flex; flex-direction:row-reverse; flex:0 0 auto; }
.alt-app .a-live-av{ box-shadow:0 0 0 2px var(--a-panel); }
.alt-app .a-live-av + .a-live-av{ margin-right:-6px; }
.alt-app .a-live-av.a-live-more{ background:var(--a-raised); color:var(--a-dim); font-weight:700; }
.a-live-cap{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.a-save .a-live-state{ font:inherit; }
.a-save[data-live] > :not(.a-live-state){ display:none; }
.a-save[data-live="live"]{ color:var(--a-blue-text); }
.a-save[data-live="saving"]{ color:var(--a-faint); }
.a-save[data-live="warn"]{ color:var(--a-amber); }
.a-save[data-live="bad"]{ color:var(--a-red); }
.a-live-slot .a-live-state{ font:inherit; }
.a-live-slot[data-live="live"]{ color:var(--a-blue-text); }
.a-live-slot[data-live="saving"]{ color:var(--a-faint); }
.a-live-slot[data-live="warn"]{ color:var(--a-amber); }
.a-live-slot[data-live="bad"]{ color:var(--a-red); }

.a-live-tag{
  position:absolute; left:-1px; bottom:100%; max-width:140px; padding:2px 5px; border-radius:var(--a-r-sm) var(--a-r-sm) var(--a-r-sm) 0;
  background:var(--a-panel); color:var(--a-text); border:1px solid var(--a-live-c, var(--a-line-strong));
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* A caret on the first line: its tag drops below instead of clipping above the layer. */
@media (max-width:640px){ .a-live-cap{ display:none; } }
/* Short label ("Live" / "Live off") at 640px and below. The full sentence stays in the DOM for the accessible
   name, visually hidden rather than display:none. */
.a-chip .lb-s{ display:none; }
@media (max-width:640px){
  .a-live-host .a-chip:not(.a-live-flag-caret) .lb{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .a-live-host .a-chip:not(.a-live-flag-caret) .lb-s{ display:inline; }
}

/* A card another person moved glides from its old place (FLIP: JS sets transform to the old offset, then
   adds .a-live-glide so it eases back to none). Reduced motion: no glide; .is-new keeps its static ring. */
.a-live-glide{ transition:transform var(--dur-flash,1.1s) var(--ease-out,ease-out); will-change:transform; }
@media (prefers-reduced-motion: reduce){ .a-live-glide{ transition:none; } }

/* The Actions menu button (JS/alt/alt-page-menu.js): its ••• glyph and its word, on every page that loads the menu. */
.a-page-more-ico{ display:inline-flex; align-items:center; }
.a-page-more-ico svg{ width:15px; height:15px; }
.a-page-more-lbl{ white-space:nowrap; }
