/* ================= THE ALTERNATE UX — THE SHELL =================
   One shell, five pages: top bar, search, Create, Today, Focus, alerts and account menu are built once by
   alt-shell.js and styled here. Row 1 narrows in order: captions first, then nav labels fold to icons;
   the search takes its own second row at every width. No nav destination is clipped:
   `.a-nav{flex:0 0 auto}` plus alt-responsive.css's label breakpoints. */

/* The shell IS the viewport; each column scrolls inside it, not the page — with only
   min-height, a long note's own checklist and conversation could push 1800px down the page,
   rendered but invisible. Below the three-column breakpoint the regions stack and the page
   scrolls normally, which is correct on a phone. */
.alt-app{ min-height:100vh; display:flex; flex-direction:column; }
@media (min-width:1024px){
  .alt-app{ height:100vh; height:100dvh; overflow:hidden; }
}

/* ---------- top bar ---------- */
/* ---------- the search always takes the second row ----------
   Product owner rule: universal search stays on row 2 so buttons never collide or wrap. This is
   the base rule; the old conditional override in alt-responsive.css was a second definition of
   `.a-top` (caught by css-class-collision-check.py). */
.a-top{
  display:flex; align-items:center; gap:var(--a-2); height:auto; flex:0 0 auto;
  padding:8px var(--a-3); flex-wrap:wrap; background:var(--a-panel); border-bottom:1px solid var(--a-line);
  position:sticky; top:0; z-index:var(--z-sticky, 20);
}
.a-brand{ display:flex; align-items:center; gap:9px; flex:0 0 auto; text-decoration:none; color:var(--a-text); }
.a-brand svg{ width:26px; height:26px; }
/* A team's own logo swaps in via altPaintBrand(), which replaces only this span's contents. The
   span is a FIXED size so the corner does not shift 4px mid-boot when the answer arrives late. */
.a-brand-mark{ display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:30px; height:28px; }
/* 30x28 with object-fit:contain so no logo is distorted or cropped — a wordmark and a crest both
   letterbox inside the same box. Ground is a token so a transparent logo sits on the bar's own
   surface in both themes. */
.a-brand-logo{ display:block; width:30px; height:28px; object-fit:contain;
  background:var(--a-raised); border-radius:var(--a-r-sm); }
/* The wordmark is brand, not a preference — `--app-brand-font` is pinned to Space Grotesk and
   does not follow the reader's chosen application font, so "STRIDE" reads the same under all
   ten choices. */
.a-brand b{ font-family:var(--app-brand-font, 'Space Grotesk', system-ui, sans-serif); font-size:17px; font-weight:700; letter-spacing:.04em; }

/* The product mark is an <img>, not inline SVG — see altProductMark() (alt-shell.js). Sized here
   and in the tag's own attributes, so the box is reserved before the file arrives. */
.a-brand-s{ display:block; width:26px; height:26px; }

/* ---------- the team, beside the product ----------
   A quieter slot: smaller and dimmer behind a hairline so it is not mistaken for part of the
   lockup. A <span>, not a link, so clicking a team's logo does not navigate. Carries its own
   margin/border rather than a flex gap, since the chip is `hidden` until a team resolves. */
/* No `.a-team[hidden]` rule here — CSS/base.css's `[hidden]{display:none!important}` already
   outranks this `display:flex`, and a local copy is the duplication
   responsive-layout.test.js checks every stylesheet for. */
.a-team{ display:flex; align-items:center; gap:8px; flex:0 0 auto;
  margin-left:10px; padding-left:11px; border-left:1px solid var(--a-line);
  color:var(--a-dim); min-width:0; }
/* Same 30x28 box as the logo, so switching teams never moves the bar; collapses when empty so a
   name-only team doesn't leave a mysterious gap. */
.a-team-mark{ display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:30px; height:28px; }
.a-team-mark:empty{ display:none; }
.a-team-name{ font-family:var(--a-display, inherit); font-size:var(--a-fs-ctl); font-weight:600;
  letter-spacing:.01em; max-width:170px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; }
/* Navigation is never the thing that gets cut: the nav takes the width it needs (`flex:0 0 auto`)
   and the search yields. The reverse (nav shrinks + overflow:hidden) silently dropped destinations
   like Messages on laptop widths. `overflow:visible` so any overflow is seen; the horizontal-scroll
   affordance below 820px sets its own overflow. */
.a-nav{ display:flex; align-items:center; gap:2px; flex:0 0 auto; min-width:0; overflow:visible; }
.a-nav a,.a-nav button{
  display:inline-flex; align-items:center; gap:7px; height:var(--a-ctl-lg); padding:0 11px;
  border-radius:var(--a-r-sm); background:none; border:1px solid transparent;
  color:var(--a-dim); font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
  text-decoration:none; cursor:pointer;
  position:relative; white-space:nowrap;
}
.a-nav a:hover,.a-nav button:hover{ color:var(--a-text); background:var(--a-raised); }
.a-nav a:focus-visible,.a-nav button:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
/* Brand and Focus used to fall through to Chrome's own default outline — a thin blue line
   on a navy header, invisible in practice. Same ring, same offset as everything else here. */
.a-brand:focus-visible,
.a-focus:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); border-radius:var(--a-r-sm); }
/* Active is blue and underlined — colour alone is never the signal (§18), aria-current carries
   it for anyone who cannot see either. */
.a-nav [aria-current="page"]{ color:var(--a-blue-text); background:var(--a-blue-soft); }
.a-nav [aria-current="page"]::after{
  content:''; position:absolute; left:11px; right:11px; bottom:-1px; height:2px;
  background:var(--a-blue); border-radius:var(--a-r-pill) var(--a-r-pill) 0 0;
}
.a-nav svg{ width:15px; height:15px; flex:0 0 auto; }
/* ALL LABELS OR NONE: altNavFit() puts this one class on the nav when the labelled row does not
   fit, and every entry — the current page included — drops its word together. The name stays on
   each control's aria-label and title (sys_design-system.md 12b). */
.a-nav.icons-only{ gap:2px; }
.a-nav.icons-only a span,.a-nav.icons-only button span{ display:none; }
.a-nav.icons-only a,.a-nav.icons-only button{ padding:0 9px; }
.a-nav.icons-only [aria-current="page"]::after{ left:9px; right:9px; }
/* ---------- row 2: search, then the three utility icons ----------
   Row 1 keeps Create/Today/Focus/AI pill/theme/account; row 2 holds the search and the icon-only
   utilities (refresh, messages, quick guide), right-aligned. `flex:1 1 100%` forces the box onto its own
   row; `.a-top-utils{flex:0 0 auto}` pins the icons to the end. `order:10` keeps later-mounted controls
   (e.g. quick-guide-launcher.js) on row 1; `min-width:0` lets the first child shrink. */
.a-top-row2{ order:10; flex:1 1 100%; max-width:none; min-width:0;
  display:flex; align-items:center; gap:var(--a-2); }
/* `order:11` keeps reading and focus order in sync with the markup. `flex:0 0 auto` makes these
   fixed controls; the search yields instead of the icons clipping.
   No `margin-left:auto`: `.a-top-search{flex-grow:1}` already pushes this cluster to the edge, and
   an auto margin would be a second mechanism that breaks once the search outgrows the space. */
.a-top-utils{ order:11; display:flex; align-items:center; gap:var(--a-2); flex:0 0 auto; }
/* ---------- the three utility icons match the account control's height ----------
   Reads `--a-ctl-lg` (the account control's token) so they cannot drift across densities;
   topbar-two-rows.test.js pins the relationship, not a number. Scoped to this cluster:
   `.a-btn.icon` is a shared primitive used by ~30 other controls. */
.a-top-utils .a-btn.icon{ width:var(--a-ctl-lg); height:var(--a-ctl-lg); }
/* The glyph inside is the shared 15px (alt-components.css, DS-21), the same as the nav's own icons on this bar. */
/* ---------- the search field itself ----------
   `flex:1 1 100%` takes the whole row (`.a-top-row2` guarantees the row), then shrinks by what the
   utility icons need. `gap:6px` separates the scope pill from `.a-search-inner`. */
.a-top-search{ order:10; flex:1 1 100%; max-width:none; gap:6px; }
/* ---------- one search, two scopes ----------
   Wrapper stays `.a-top-search.a-search` (search-field-chrome.test.js pins it). The cap goes on
   `.a-search-inner`, not the outer box, whose flex basis could otherwise fit back onto row 1.
   altSearchAlign() (alt-shell.js) sets `--a-search-cap` from the Messages nav item; 730px fallback,
   well above the ~265px floor (_docs/tests/search-second-row.test.js). */
/* Declared here, not only consumed: altSearchAlign()'s inline `--a-search-cap` outranks this at
   runtime, but a CSS home for the token is what alt-experience.test.js's "no alt token is used
   without being defined" rule requires — a token defined only in JS reads as a typo otherwise. */
.a-search-inner{ --a-search-cap:730px;
                 flex:1 1 auto; min-width:0; max-width:var(--a-search-cap, 730px); }
/* The segmented control (DS-25) at the top bar's lg height, like `.a-theme-seg`: renamed rather than shared because this one sizes to
   a WORD ("Global", or the page name) where the theme control sizes to a fixed icon. Geometry is the control's: track radius 9,
   padding 3, segment radius 6, 12px/600. */
.a-search-scope{
  display:flex; align-items:center; gap:var(--a-sp-2); flex:0 0 auto; height:var(--a-ctl-lg);
  padding:3px; border-radius:var(--a-r);
  background:var(--a-panel); border:1px solid var(--a-line);
}
.a-search-scope-b{
  display:inline-flex; align-items:center; justify-content:center;
  height:100%; padding:0 var(--a-sp-8); flex:0 0 auto; white-space:nowrap;
  border:0; border-radius:var(--a-r-sm);
  background:transparent; color:var(--a-dim); 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;
  transition:background var(--a-quick) var(--a-ease), color var(--a-quick) var(--a-ease),
             border-color var(--a-quick) var(--a-ease);
}
.a-search-scope-b:not([aria-pressed="true"]):hover{ color:var(--a-text); background:var(--a-raised); }
/* The selected segment is the accent fill with the on-fill text (DS-25, amended 2026-11-13) and `aria-pressed`, so which scope is active never depends on hue alone. */
.a-search-scope-b[aria-pressed="true"]{ background:var(--a-blue-fill); color:var(--a-on-fill); }
.a-search-scope-b:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* Room for the keycap on the right and the magnifier on the left, or the placeholder runs
   underneath both. */
.a-top-search .a-input{ height:var(--a-ctl-lg); background:var(--a-field-bg); padding-right:38px; }
/* The keycap prints the reader's own modifier — `Ctrl+K` on Windows/Linux, three times the width
   of `⌘K`. altShellMount() adds `kbd-wide` when the label is longer than two characters. */
.a-top-search.kbd-wide .a-input{ padding-right:54px; }
.a-kbd{
  position:absolute; right:9px; top:50%; transform:translateY(-50%);
  font-family:var(--a-mono); font-size:var(--a-fs-11); color:var(--a-dim); pointer-events:none;
}
/* Below 1179 the keycap hint drops (§12b's give-way order for secondary controls). The scope pill does NOT: it was
   dropped here too until 2026-11-11, and a reader below 1179px then could not choose "This page", so Calendar search
   for meetings never ran (the choice only worked if it had been stored at a wider width). A control that switches what
   a search DOES is never the thing that gives way. */
@media (max-width:1179px){
  .a-kbd{ display:none; }
  .a-top-search .a-input,
  .a-top-search.kbd-wide .a-input{ padding-right:var(--a-3); }
}
/* At 700px and narrower the pill takes its own line above the field; from 701 up it stays on the field's line. A BREAKPOINT,
   not a fit test: letting the line wrap "when it no longer fits" made the answer depend on resize history (inline until
   550px going down, wrapped until 730px going up), because altSearchAlign() derives the field's cap from the field's own
   left edge, so each state confirmed itself. Here the wrapped field is uncapped (`max-width:none` replaces the cap, which
   is inert this narrow anyway) and the line break is forced by its 100% basis, so no measured value feeds the layout.
   701 is where pill (130px for "Calendar") + 6px + a 265px field + the labelled Ask STRIDE cluster (201px) + gaps and a
   classic scrollbar first fit (about 645px) with margin. The same pill, the same Left/Right keys, nothing folded; the icons
   stay level with the field (`flex-end`). A page with no page search hides the pill (`[hidden]`), and the `:not([hidden])`
   keeps its field exactly as before. */
@media (max-width:700px){
  .a-top-search{ flex-wrap:wrap; row-gap:6px; }
  .a-top-search > .a-search-scope:not([hidden]) + .a-search-inner{ flex:1 1 100%; max-width:none; }
  .a-top-row2 > .a-top-utils{ align-self:flex-end; }
}
.a-top-right{ display:flex; align-items:center; gap:var(--a-2); flex:0 0 auto; margin-left:auto; }
/* Focus holds text that can be longer than the control (a tag name, an account name), so
   each elides inside its own box — `min-width:max-content` plus a ceiling, so the readout is
   never clipped mid-word the way a bare `min-width:0; overflow:hidden` once let it be. */
.a-focus-l{ min-width:max-content; }
.a-focus-l span{
  max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* The button is not the flex child that shrinks — each sits in a positioned wrapper. */
.a-focus{ flex:0 0 auto; }
.a-top-right > div{ flex:0 0 auto; min-width:max-content; }

/* Focus: a compact readout, not another button. (The Today chip moved to the account menu.) */
.a-focus{
  display:flex; align-items:center; gap:8px; height:var(--a-ctl-lg); padding:0 10px;
  border-radius:var(--a-r-sm); background:var(--a-raised); border:1px solid var(--a-line);
  cursor:pointer; color:inherit; font:inherit; max-width:210px;
}
.a-focus:hover{ border-color:var(--a-line-strong); }
.a-focus.on{ border-color:var(--a-blue); background:var(--a-blue-soft); }
/* This stack is Focus's only identification — no glyph, unlike every sibling control. The
   caption and the value must never both be hidden at once (shell-identity.test.js resolves the
   cascade at a sweep of widths and fails if neither is visible). */
.a-focus-l{ display:flex; flex-direction:column; align-items:flex-start; line-height:var(--a-lh-tight); }
.a-focus-l b{ font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--a-faint); }
.a-focus-l span{ font-size:var(--a-fs-ctl-sm); color:var(--a-text); }

/* ---------- the AI Assistant status badge: a third quiet readout, same tier as Today/Focus ----------
   See altPaintAi()/altAiPopoverToggle() in alt-shell.js; one canonical accessor
   (JS/services/ai-status.js). A rounded capsule with mark, words and state dot; `--a-r-pill` is
   deliberate, as it is the one control here carrying live status. */
.a-ai{
  display:flex; align-items:center; gap:8px; height:var(--a-ctl-lg); padding:0 10px;
  border-radius:var(--a-r-sm); background:var(--a-raised); border:1px solid var(--a-line);
  cursor:pointer; color:inherit; font:inherit; flex:0 0 auto;
}
.a-ai:hover{ border-color:var(--a-line-strong); }
.a-ai:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
/* A CSS mask, not an <img> or a new altIcon() entry — the same currentColor-safe technique
   `.a-ico-mask` uses, applied to an inline vector so no asset file is needed. Painted
   `--a-faint`, never a state colour: the dot alone carries state (§18), so the mark doesn't
   compete with it. */
.a-ai-mark{
  width:14px; height:14px; flex:0 0 auto; background-color:var(--a-faint);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12.8 8 16 11.2 22 12C16 12.8 12.8 16 12 22C11.2 16 8 12.8 2 12C8 11.2 11.2 8 12 2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12.8 8 16 11.2 22 12C16 12.8 12.8 16 12 22C11.2 16 8 12.8 2 12C8 11.2 11.2 8 12 2Z'/%3E%3C/svg%3E");
}
/* The dot is a second carrier of state, never the only one (§18) — green/amber/faint reuse this
   app's existing done/warning/neutral semantics rather than new colours for one control. */
.a-ai-dot{ width:8px; height:8px; border-radius:50%; flex:0 0 auto; background:var(--a-faint); }
.a-ai.a-ai-on .a-ai-dot{ background:var(--green); }
.a-ai.a-ai-warn .a-ai-dot{ background:var(--a-amber); }
.a-ai.a-ai-off .a-ai-dot{ background:var(--a-faint); }
/* The popover stays closed until the Tasks-by-email card is known, rather than opening small and
   growing (or opening early and missing the card) — see altAiPopoverToggle(). The breathing dot
   acknowledges the press at once without dimming or disabling the control, since the press is
   never refused, only delayed. */
.a-ai[aria-busy="true"] .a-ai-dot{ animation:a-ai-wait 900ms ease-in-out infinite; }
@keyframes a-ai-wait{ 0%,100%{ opacity:.3; } 50%{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .a-ai[aria-busy="true"] .a-ai-dot{ animation:none; opacity:.55; }
}
.a-ai-l{ display:flex; flex-direction:column; align-items:flex-start; line-height:var(--a-lh-tight); }
.a-ai-l b{ font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--a-faint); }
.a-ai-l span{ font-size:var(--a-fs-ctl-sm); color:var(--a-text); }
/* Folds at the same two breakpoints as `.a-focus-l` (alt-responsive.css). Below 640
   the mark folds too, so a lone glyph beside a bare dot is not read as a second indicator. The full
   state stays on the title/aria-label, kept current by altPaintAi(). */
@media (max-width:1699px){
  .a-ai-l b{ display:none; }
}
@media (max-width:639px){
  .a-ai-l span{ display:none; }
  .a-ai-mark{ display:none; }
  .a-ai{ padding:0 8px; }
}

.a-bell{ position:relative; }
.a-bell .a-badge{
  position:absolute; top:-3px; right:-3px; min-width:16px; height:16px; padding:0 4px;
  border-radius:var(--a-r-pill); background:var(--a-blue-fill); color:#fff;
  font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-ctl); display:flex; align-items:center; justify-content:center;
}
/* Restated from CSS/components.css's `[data-mc-open].has-unread` because this shell's bell
   carries no `data-mc-open` (initMessageCenter() takes an early return at mount on most suite
   pages, per altBellPaint()'s own note) — so the bell was otherwise the one Messages control
   with no lit state at all. Steady, never animated: emphasis the eye finds once. */
.a-bell.has-unread{
  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);
}
.a-bell.has-unread:hover{
  background:var(--a-blue-fill); border-color:transparent; color:#fff;
}
/* The count pill is the accent's solid fill at rest and lit (B1): a count, never an alarm, because red is
   for errors. At zero it is `hidden`, which the base layer's `[hidden]` rule keeps gone against the `display:flex` above. */

/* ---------- the theme control: a segmented slider ----------
   Mirrors login.html's `.lg-seg` in `--a-*` tokens (login.html loads no app stylesheet). Segmented because
   three states behind one button means repeated presses (§14a). Pressed = raised chip plus `aria-pressed`,
   never colour alone (§18); border is `--a-line-strong` (3:1). Named `.a-theme-seg`, not `.a-seg`,
   which is the distribution bar in alt-components.css and collided at equal specificity. */
.a-theme-seg{
  display:inline-flex; align-items:center; gap:var(--a-sp-2); flex:0 0 auto; height:var(--a-ctl-lg);
  padding:3px; border-radius:var(--a-r);
  background:var(--a-panel); border:1px solid var(--a-line);
}
.a-theme-seg-b{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:100%; padding:0; flex:0 0 auto;
  border:0; border-radius:var(--a-r-sm);
  background:transparent; color:var(--a-dim); cursor:pointer;
  transition:background var(--a-quick) var(--a-ease), color var(--a-quick) var(--a-ease),
             border-color var(--a-quick) var(--a-ease);
}
.a-theme-seg-b > svg{ width:15px; height:15px; flex:0 0 auto; }
.a-theme-seg-b:hover{ color:var(--a-text); background:var(--a-raised); }
/* The theme toggle is a setting chip, not a view switch, so its selected segment stays neutral: the one documented variant of DS-25 (amended 2026-11-13). */
.a-theme-seg-b[aria-pressed="true"]{ background:var(--a-raised); color:var(--a-text); }
/* The ring goes on the segment, not the track — a group is not focusable, each segment is — and inside it, because the track clips. */
.a-theme-seg-b:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
@media (max-width:1365px){
  .a-theme-seg-b{ width:30px; }
}
/* No label inside — identity is the button's own accessible name (§16, §83), so there is no
   `.nm` to size here. */
.a-account{ display:flex; align-items:center; gap:8px; height:var(--a-ctl-lg); padding:0 8px 0 4px;
  border-radius:var(--a-r-sm); background:var(--a-raised); border:1px solid var(--a-line);
  cursor:pointer; color:inherit; font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); }
.a-account:hover{ border-color:var(--a-line-strong); }
/* A bare `<svg viewBox>` with no text sibling collapses to 0×0; with one it over-grows to double
   every other glyph's 15px. This states the size the rest of the header already agrees on.
   Canonical home is alt-components.css's `> svg` list alongside the other three controls with
   the same defect; folded in here only because that file has another owner this wave. */
.a-account > svg{ width:15px; height:15px; flex:0 0 auto; }

/* ---------- global search results ---------- */
.a-results{
  position:absolute; z-index:var(--z-dialog, 300); top:calc(100% + 6px); left:0; right:0;
  max-height:60vh; overflow:auto; padding:6px;
  background:var(--a-float); border:1px solid var(--a-line-strong); border-radius:var(--a-r);
  box-shadow:var(--a-shadow);
}
.a-res-group{ padding:var(--a-sp-6) 11px var(--a-sp-2); font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; line-height:var(--a-lh-tight);
  text-transform:uppercase; color:var(--a-dim); }
/* A search result is the menu item (DS-39): min-height 34, 14px/400, padding 9px 11px, radius 6; a second line is 12px --a-dim. */
.a-res{
  display:flex; align-items:center; gap:10px; width:100%; min-height:34px; padding:9px 11px; border-radius:var(--a-r-sm);
  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;
}
.a-res:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
.a-res:hover,.a-res.sel{ background:var(--a-blue-soft); }
.a-res .t{ flex:1 1 auto; min-width:0; font-size:var(--a-fs-14); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-res .m{ font-size:var(--a-fs-ctl-sm); color:var(--a-dim); white-space:nowrap; }
.a-res .kind{ font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); width:44px; flex:0 0 auto; }

/* ---------- page frame ---------- */
.a-page{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.a-band{ flex:0 0 auto; padding:var(--a-3) var(--a-4) 0; }
.a-main{
  flex:1 1 auto; min-height:0; display:grid; gap:var(--a-3);
  grid-template-columns:var(--a-left, 320px) minmax(0,1fr) var(--a-right, 300px);
  padding:var(--a-3) var(--a-4) var(--a-4);
}
.a-main.no-left{ grid-template-columns:minmax(0,1fr) var(--a-right, 300px); }
.a-main.no-right{ grid-template-columns:var(--a-left, 320px) minmax(0,1fr); }
.a-main.no-left.no-right{ grid-template-columns:minmax(0,1fr); }
.a-col{ min-width:0; min-height:0; display:flex; flex-direction:column; gap:var(--a-3); }
/* `position:relative` so an absolutely-positioned `.a-sr`/`.sr-only` descendant resolves against
   this column and does not widen the PAGE's scrollable overflow (the team board once scrolled
   sideways 1325px). `_docs/tests/teamboard-responsive-overflow.test.js` guards every horizontal
   scroll container in this sheet and the kanban sheet. */
.a-col.scrolls{ overflow:auto; position:relative; }

/* ---------- quick actions strip ---------- */
.a-quick{
  display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap;
  padding:var(--a-2) var(--a-4) var(--a-4);
}
.a-quick .a-btn{ background:var(--a-panel); }

/* ---------- THE TOAST MOVED TO CSS/toast.css, 2026-10-14 ----------
   `.a-toasts`/`.a-toast` lived here, which left mobile.html (which loads no Suite shell) with an
   unstyled toast the moment it loaded JS/core/toast.js. One definition, in a file of its own,
   loaded by every page that loads the toast script. Do not restate any of it here. */

/* ---------- the dialog scrim ----------
   Opaque by default; `hidden` is the only thing that hides it. A previous `opacity:0` + `.show`
   scheme left open dialogs invisible. The fade belongs to the card inside, which animates
   independently of the scrim's visibility. */
.a-scrim{
  position:fixed; inset:0; background:var(--a-scrim); z-index:var(--z-dialog, 300);
}
.a-scrim > *{ animation:a-rise var(--a-quick) var(--a-ease); }
@keyframes a-rise{ from{ opacity:0; transform:translateY(6px) scale(.99); } }
@media (prefers-reduced-motion: reduce){
  .a-scrim > *{ animation:none; }
}
@media (prefers-reduced-motion: reduce){
  .a-bar > i,.a-seg > span{ transition:none; }
}

/* ---------- the three columns ----------
   Each scrolls itself; the page does not — a single page scroll would carry the list, the
   numbers and the details away together. */
.a-left,.a-centre,.a-right{ min-width:0; min-height:0; display:flex; flex-direction:column; gap:var(--a-3); }
.a-left{ overflow-y:auto; }
.a-right{ overflow-y:auto; }
.a-centre{ overflow:hidden; }
.a-actions-card{
  background:var(--a-panel); border:1px solid var(--a-line-soft); border-radius:var(--a-r-lg);
  padding:var(--a-3);
}
/* Every control in this row is the same height, middle on the same line — a field with a
   stacked label is taller than a button, so a field in a toolbar puts its label alongside
   instead. `.a-toolbar` itself lives in alt-components.css; do not re-add it here. */
.a-field.inline{
  flex-direction:row; align-items:center; gap:7px;
}
.a-field.inline > span{ flex:0 0 auto; }
.a-field.inline .a-select{ height:var(--a-ctl); }
.a-vrule{ width:1px; align-self:stretch; margin:2px 4px; background:var(--a-line); }
.a-hint{ font-size:var(--a-fs-ctl-sm); font-weight:400; color:var(--a-faint); line-height:var(--a-lh-ui); }
.a-hint.err{ color:var(--a-red); }
/* The success line ("Formatting cleaned up and saved."): green with a little buffer, and gone
   after three seconds via altDrawerAiSay()'s own timer. Uses --a-green, the product's good-outcome
   token. `.err` gets neither: a failure stays on screen until the reader acts. */
.a-hint.ok{ color:var(--a-green); padding:2px 8px; }
.a-err-note{
  /* Plain declarations first, both of them: an engine without color-mix() discards the whole
     declaration rather than just the one value, so the chip still gets a tint and an edge. */
  font-size:var(--a-fs-ctl-sm); color:var(--a-amber);
  background:var(--a-amber-soft);
  background:color-mix(in srgb, var(--a-amber) 12%, transparent);
  border:1px solid var(--a-amber);
  border:1px solid color-mix(in srgb, var(--a-amber) 40%, transparent);
  border-radius:var(--a-r); padding:8px 10px; margin:6px 0;
}
.a-row-actions{ display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; }

/* ---------- the settings dialog ----------
   Viewport-sized and capped so its tabs cannot be pushed off. The framed copy (`.a-preview.a-preview-modal`)
   shares this selector: team_board.html hosts the real dialog, okrs.html frames `tasks.html?embed=settings`.
   Team configuration (`#adminModal > .modal-card`) is sized in JS by sizeSettingsDialog(); its inline
   size wins, so this rule only centres and dresses it. No team-specific numbers here.
   Beside Ask STRIDE (spec ask-stride-in-settings §3.2): it centres in the room left of the panel (`--a-modal-reserve`) and,
   only when it cannot keep its own size there, takes `--a-modal-avail`. askOverDialogLayout() writes both INLINE on <html>;
   declared here as tokens, `initial` so every var() fallback holds with no panel, so nothing moves. */
:root{ --a-modal-reserve:0px; --a-modal-avail:initial; }
.a-modal,
.a-preview.a-preview-modal{
  position:fixed; top:50%; left:calc((100% - var(--a-modal-reserve, 0px)) / 2); right:auto; bottom:auto;
  transform:translate(-50%,-50%);
  width:min(920px, var(--a-modal-avail, 92vw)); max-width:var(--a-modal-avail, none); height:min(760px, 88vh);
  transition:left var(--a-quick) var(--a-ease);
  display:flex; flex-direction:column; z-index:calc(var(--z-dialog, 300) + 1);
  background:var(--a-float); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r-lg); box-shadow:var(--a-shadow-lg); overflow:hidden;
}
body.a-modal-open{ overflow:hidden; }
.a-pane-h{
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); margin:18px 0 8px;
}
.a-pane-h:first-child{ margin-top:0; }
/* A static heading with a semantic tile, not a card — `.stg-sec-ico` (alt-settings-stride.css)
   reused as-is, beside a plain non-collapsible heading: no chevron, no disclosure, no body
   wrapper. `.has-icon` only adds the flex row `.a-pane-h` needs to hold the tile. */
.a-pane-h.has-icon{ display:flex; align-items:center; gap:10px; margin-top:22px; }
.a-pane-h.has-icon:first-child{ margin-top:0; }
.a-checks{ display:flex; flex-direction:column; gap:7px; margin:10px 0; }
.a-check-l{ display:flex; align-items:center; gap:8px; font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); cursor:pointer; }
.a-taglist,.a-tagrow{ display:flex; }
.a-taglist{ flex-direction:column; gap:6px; }
.a-tagrow{
  align-items:center; gap:8px; padding:6px 8px; border-radius:var(--a-r);
  background:var(--a-raised); border:1px solid var(--a-line);
}
.a-tagrow .nm{ flex:1 1 auto; min-width:0; }
.a-tagrow .col{ width:44px; flex:0 0 auto; padding:2px; }
.a-tagrow input[type="color"]{ height:var(--a-ctl); }

/* ---------- the momentum chip ----------
   The canonical component (renderMomentum()) in this design's clothes. classic_tasks.html's inline
   style was the original; this is now the only definition, and tasks.html is always `.alt-app`. */
.alt-app .momentum{
  display:inline-flex; align-items:center; max-width:100%;
  background:var(--a-panel); border:1px solid var(--a-line); border-radius:var(--a-r-pill);
}
.alt-app .momentum .mo-main{
  display:flex; align-items:center; gap:8px; min-width:0;
  background:transparent; border:0; cursor:pointer; color:var(--a-dim);
  font:400 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); padding:7px 13px;
}
.alt-app .momentum .mo-label{
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-faint);
}
.alt-app .momentum .mo-msg{
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--a-text);
}
.alt-app .momentum .mo-count{ font:600 var(--a-fs-11)/var(--a-lh-ctl) var(--a-body); font-variant-numeric:tabular-nums; color:var(--a-faint); }
.alt-app .momentum.collapsed .mo-msg{ display:none; }
.alt-app .momentum.on-break{ border-color:var(--a-gold); }
.alt-app .momentum .mo-break{
  border:0; border-left:1px solid var(--a-line); background:transparent; cursor:pointer;
  color:var(--a-gold); font:600 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body); padding:8px 12px; border-radius:0 var(--a-r-pill) var(--a-r-pill) 0;
}
.alt-app .momentum .mo-main:focus-visible,
.alt-app .momentum .mo-break:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
/* The chip landing a new line. renderMomentum(true) (JS/features/momentum.js) removes and re-adds
   `.landed`, forcing a reflow, to restart this animation. A single fading ring (a shadow, so the
   pill does not shift) on the shared flash duration; reduced motion drops it. */
@keyframes aMomentumLanded{
  from{ box-shadow:0 0 0 3px var(--a-blue); }
  to{ box-shadow:0 0 0 3px transparent; }
}
.alt-app .momentum.landed{ animation:aMomentumLanded var(--dur-flash) var(--ease-out) 1; }
@media (prefers-reduced-motion: reduce){
  .alt-app .momentum.landed{ animation:none; }
}

/* ---------- the grips ----------
   8px wide with a 2px line, always drawn so the control can be found. A real focusable separator,
   so arrows and Home work: a resize only a mouse can perform excludes keyboard readers. */
.a-grip{
  flex:0 0 auto; width:10px; align-self:stretch; cursor:col-resize; position:relative;
  background:transparent; border:0; padding:0; touch-action:none;
}
.a-grip::before{
  content:''; position:absolute; inset:10px 4px; 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);
}
.a-grip::after{
  /* Three dots at the middle, the same grammar as the widget handle, so this reads as "drag me"
     rather than a border between two panels. */
  content:''; position:absolute; top:50%; left:50%; width:2px; height:22px;
  transform:translate(-50%,-50%); border-radius:var(--a-r-pill);
  background:repeating-linear-gradient(var(--a-faint) 0 2px, transparent 2px 5px);
}
.a-grip:hover::before,.a-grip:focus-visible::before,.a-grip:active::before{
  background:var(--a-blue); inset:4px 4px;
}
.a-grip:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.a-grip[aria-disabled="true"]{ display:none; }
.a-vgrip{
  flex:0 0 auto; height:10px; cursor:row-resize; position:relative; touch-action:none;
  background:transparent; border:0; padding:0; margin:2px 0;
}
.a-vgrip::before{
  content:''; position:absolute; inset:4px 24px; border-radius:var(--a-r-pill);
  background:var(--a-line-strong); transition:background var(--a-quick) var(--a-ease);
}
.a-vgrip:hover::before,.a-vgrip:focus-visible::before{ background:var(--a-blue); }
.a-vgrip:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.a-vgrip[aria-disabled="true"]{ display:none; }
/* While a drag is in flight nothing else may claim the pointer or select text under it. */
body.a-resizing{ cursor:col-resize; user-select:none; }
/* A vertical drag otherwise showed horizontal arrows end to end. */
body.a-resizing.a-resizing-y{ cursor:ns-resize; }
body.a-resizing *{ pointer-events:none; }

/* ---------- dragging: rules live in CSS/drag-list.css ----------
   `.a-dragging`, `.a-dragover`, `.a-drop-line` sit beside their engine (JS/components/drag-list.js).
   Suite pages load drag-list.css before CSS/alt/, so list overrides here win on source order.
   Do not re-add the rules (classic_tasks.html, retired, once mounted the engine without CSS/alt/). */

/* ---------- menu extras the shared launcher draws ---------- */
.a-menu-item .lb{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.a-menu-item .dot{ width:8px; height:8px; border-radius:50%; flex:0 0 auto; }
.a-menu-item .tick{ color:var(--a-blue-text); font-size:var(--a-fs-ctl-sm); }
.a-menu-item.on{ color:var(--a-blue-text); }
.a-menu-item.danger{ color:var(--a-red); }
.a-menu-item[disabled]{ opacity:.45; cursor:default; }
/* `.a-menu-sep` and `.a-menu-head` moved to alt-components.css — they were declared here AND
   there. Do not re-add them. */
/* Dresses as an ordinary `.a-menu-item` (carried alongside this class by altMenuSubmenuRow()) —
   this only adds a trailing chevron and a highlighted/expanded look while its flyout is open.
   `.cv` never rotates here, unlike every other `.cv` in this file: it marks a side-opening
   flyout, not a disclosure, so there's no second orientation to rotate into. */
.a-menu-item-sub .cv{
  display:flex; flex:0 0 auto; color:var(--a-faint);
  transition:color var(--a-quick) var(--a-ease);
}
.a-menu-item-sub .cv svg{ width:14px; height:14px; }
.a-menu-item-sub{ transition:background var(--a-quick) var(--a-ease), color var(--a-quick) var(--a-ease); }
/* Keyed to `.open` (set alongside `aria-expanded`) rather than the attribute alone, since a row
   a mouse opened hasn't necessarily taken focus; colour is never the only signal either way. */
.a-menu-item-sub.open{ background:var(--a-blue-soft); color:var(--a-blue-text); }
.a-menu-item-sub.open .cv{ color:var(--a-blue-text); }

/* A quiet fact at the foot of a menu, not a heading — the faint tier at the 11px floor (§18),
   letterspacing and capitals dropped since this is a sentence, not a label. */
.a-menu-note{
  padding:3px 10px 5px; font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body);
  letter-spacing:normal; text-transform:none; color:var(--a-faint);
}
/* Same quiet tier, in `--a-amber` ("attention, nothing is broken" — the tab still works, it's
   simply not the newest build). Wraps rather than truncating: half a sentence plus "…" is worse
   than nothing. */
.a-menu-warn{
  padding:3px 10px 4px; font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body);
  letter-spacing:normal; text-transform:none; color:var(--a-amber);
  max-width:280px; white-space:normal;
}
.a-menu-item.a-menu-refresh{ color:var(--a-amber); }
.a-menu-item.a-menu-refresh .lb{ font-weight:600; }

/* ---------- tasks by email, inside the AI Assistant popover ----------
   altTbeCard() (alt-shell.js). A wider menu scoped by its own class: `.a-menu` caps at 360px,
   too narrow for a 35-character address beside a Copy button. */
.a-menu.a-menu-ai{ max-width:min(430px, 92vw); }

.a-tbe{
  display:flex; flex-direction:column; gap:10px;
  margin:4px 2px 2px; padding:10px;
  border:1px solid var(--a-line); border-radius:var(--a-r-sm); background:var(--a-raised);
}
.a-tbe-h{ display:flex; align-items:flex-start; gap:9px; }
/* The shared dictionary's envelope on the blue-soft feature-mark tile. Decorative/aria-hidden. */
.a-tbe-ico{
  flex:0 0 auto; width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  border-radius:var(--a-r-sm); background:var(--a-blue-soft); color:var(--a-blue-text);
}
.a-tbe-ico svg{ width:15px; height:15px; }
.a-tbe-ht{ display:flex; flex-direction:column; gap:2px; flex:1 1 auto; min-width:0; }
.a-tbe-ht b{ font-size:var(--a-fs-ctl); font-weight:700; color:var(--a-text); }
.a-tbe-ht span{ font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body); color:var(--a-dim); }
/* "Available"/"Not available" is spelled out — the word is the state, colour only repeats it
   (§18). */
.a-tbe-badge{
  flex:0 0 auto; padding:2px 7px; border-radius:var(--a-r-pill);
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase;
  background:var(--a-green-soft); color:var(--a-green);
}
.a-tbe-badge.off{ background:var(--a-bg); color:var(--a-dim); border:1px solid var(--a-line); }

.a-tbe-addr{
  display:flex; align-items:center; gap:6px; padding:4px;
  border:1px solid var(--a-line); border-radius:var(--a-r-sm); background:var(--a-float);
}
/* `.a-menu-item` without its `width:100%`, which would make two flex items each claim the whole
   row. 34px is that primitive's own minimum, kept rather than the 30px first tried. */
.a-tbe-addr .a-menu-item{ width:auto; min-height:34px; padding:6px 8px; font-size:var(--a-fs-ctl-sm); }
/* Wraps rather than ellipsing — half an email address is not an email address, so the text sits
   directly in the anchor rather than in a truncating `.lb`. */
.a-tbe-mail{
  flex:1 1 auto; min-width:0; font-weight:600; color:var(--a-blue-text);
  white-space:normal; overflow-wrap:anywhere; line-height:var(--a-lh-ui);
}
.a-tbe-copy{ flex:0 0 auto; font-weight:600; border:1px solid var(--a-line); }
.a-tbe-copy .lb{ flex:0 0 auto; overflow:visible; }
.a-tbe-copy.done{ color:var(--a-green); border-color:var(--a-green); }

.a-tbe-p{ margin:0; font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body); color:var(--a-dim); }

.a-tbe-stats{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.a-tbe-stats .a-stat{ cursor:default; }
.a-tbe-cap,
.a-tbe-stamp{ margin:0; font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body); color:var(--a-faint); }

@media (max-width:479px){
  .a-tbe-h{ flex-wrap:wrap; }
  .a-tbe-badge{ margin-left:35px; }
  .a-tbe-stats{ grid-template-columns:1fr; }
}

/* ---------- the two AI popover action rows: Settings and Capabilities ----------
   Plain `.a-menu-item` buttons with one modifier, so the row shape cannot drift between the two
   files that build it. Icon tile and copy block reuse `.a-tbe-ico`/`.a-tbe-ht` above. */
.a-ai-row{
  align-items:center; gap:12px; min-height:60px; padding:9px 11px;
}
.a-ai-row-ic{
  flex:0 0 auto; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border-radius:var(--a-r-sm); background:var(--a-blue-soft); color:var(--a-blue-text);
}
.a-ai-row-ic svg{ width:18px; height:18px; }
.a-ai-row-copy{ display:flex; flex-direction:column; gap:2px; flex:1 1 auto; min-width:0; text-align:left; }
.a-ai-row-t{ display:flex; align-items:center; gap:6px; }
.a-ai-row-t b{ font-size:var(--a-fs-14); font-weight:700; line-height:var(--a-lh-tight); color:var(--a-text); }
/* aiCapabilityCount() reads the routing table's own size at build time, so this pill only ever
   draws the number it is given. */
.a-ai-row-count{
  flex:0 0 auto; padding:1px 6px; border-radius:var(--a-r-pill);
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); font-variant-numeric:tabular-nums;
  background:var(--a-blue-soft); color:var(--a-blue-text);
}
.a-ai-row-sub{ font:400 var(--a-fs-ctl-sm)/var(--a-lh-ui) var(--a-body); color:var(--a-dim); white-space:normal; }
.a-ai-row .cv{ flex:0 0 auto; display:flex; color:var(--a-faint); }
.a-ai-row .cv svg{ width:14px; height:14px; }

/* ---------- the preview ----------
   A dialog holding the canonical surface — nearly the whole viewport, because cropping a full
   application page would be worse than not offering it. */
.a-preview{
  position:fixed; inset:3vh 3vw; display:flex; flex-direction:column; overflow:hidden;
  background:var(--a-panel); border:1px solid var(--a-line-strong);
  border-radius:var(--a-r-lg); box-shadow:var(--a-shadow-lg);
}
/* ---------- a dialog sized by its content, not the screen ----------
   `.a-preview-fit` frames surfaces that cap their own width (task editor panes at 1040px, settings,
   Profile & account, team settings); 1100px is that cap plus the frame. `margin-inline:auto`
   centres it, since a fixed box with both `left` and `right` and a narrower width is over-constrained. */
.a-preview-fit{ max-width:1100px; margin-inline:auto; }
.a-preview-h{
  display:flex; align-items:center; gap:var(--a-2); flex:0 0 auto;
  padding:var(--a-sp-12) var(--a-pad-body); border-bottom:1px solid var(--a-line); background:var(--a-raised);
}
/* A ZERO BASIS, NOT `auto`: flex shrinks items in proportion to their basis, so a long title at
   `auto` dragged the shrinkable action group below its own buttons and pushed "Open on the board"
   and Close past the dialog's edge at 400px. At 0 the title takes only what the actions leave. */
.a-preview-h b{ flex:1 1 0; min-width:0; font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* flex:0 1 auto + min-width:0 (review m1): the actions may give way to a long saving message rather
   than push the header wider than the dialog at 400px. The buttons never shrink, so only the saving
   indicator yields — see _docs/tests/preview-header-fit.test.js. */
/* max-width leaves the title 6em: a long message ("Still saving — Close again to close anyway") is
   clipped to fit beside the buttons instead of squeezing the title to nothing. */
.a-preview-a{ display:flex; align-items:center; gap:6px; flex:0 1 auto; min-width:0; max-width:calc(100% - 6em); }
.a-preview-a > .a-btn{ flex:0 0 auto; }
.a-preview-save{ display:inline-flex; min-width:0; overflow:hidden; }
.a-preview-save .proc{ min-width:0; max-width:100%; }
.a-preview-b{ flex:1 1 auto; min-height:0; position:relative; background:var(--a-bg); }
.a-preview-b iframe{ width:100%; height:100%; border:0; display:block; }
/* Over the frame, and only for the case the frame cannot report — see altPreviewOpen(). */
.a-preview-b .a-load{ position:absolute; inset:0; display:flex; align-items:center;
  justify-content:center; gap:10px; background:var(--a-bg); }
@media (max-width:820px){
  .a-preview{ inset:0; border-radius:0; border:0; }
}

/* ---------- density ---------- */
/* Compact sizes the work surface's ROWS, never a control (DS-01, DS-03): the control ladder is one
   answer on every page and density, so no body class redeclares --a-ctl / --a-ctl-sm / --a-ctl-lg.
   The row override sits on body's CHILDREN; the chrome pins the comfortable row back. */
body.alt-app{ --a-row-0:var(--a-row); }
body.a-compact > *{ --a-row:36px; }
body.a-compact #altTop, body.a-compact .a-tabs, body.a-compact #altCalBar, body.a-compact .a-cz,
body.a-compact .a-viewrow, body.a-compact .a-fstrip{ --a-row:var(--a-row-0); }
body.a-compact .a-row{ padding-top:3px; padding-bottom:3px; align-items:center; }
body.a-compact .a-row > .a-check,body.a-compact .a-row > .a-row-due,
body.a-compact .a-row > .a-assign-badge,
body.a-compact .a-row > .a-av,body.a-compact .a-row > .a-star,
body.a-compact .a-row > .a-more{ margin-top:0; }
/* Compact is one line, and the tags are on it — which project a task belongs to is the fact a
   dense list is scanned for, so hiding the whole meta row would take the tags with it. */
body.a-compact .a-row-main{ flex-direction:row; align-items:center; gap:8px; }
body.a-compact .a-row-desc{ display:none; }
body.a-compact .a-row-meta > *{ display:none; }
body.a-compact .a-row-meta > .a-row-tags{ display:flex; }
/* The title gives way; the tags never get clipped in half — a shared `flex:0 1 auto` once let
   both shrink together, slicing a tag's own label mid-word. */
body.a-compact .a-row-meta{ flex:0 0 auto; max-width:44%; overflow:hidden; }
body.a-compact .a-row-tags{ overflow:visible; }
body.a-compact .a-row-tags .a-chip:nth-child(n+4){ display:none; }
body.a-compact .a-row-tags .a-chip{ max-width:132px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; }
body.a-compact .a-rail-card{ padding:8px 10px; }

/* ================= THE STRIDE SETTINGS SHELL: TAB STRIP ONLY =================
   Contract: sys_stride-settings-design.md. Tokens, header and section card live in alt-settings-stride.css. The tab is the one panel tab (DS-24, DS-75),
   the same underline in every settings strip: nothing here repaints it, so there is no rule for the strip in this sheet. */

/* Content unavailable — set by altSetContentUnavailable() (alt-shell.js); see that comment for
   why search stands down while Refresh/the bell/the quick guide stay. A body class rather than
   `hidden` on the element, matching `body.ofr-board-hidden`/`body.a-tb-no-access`, since several
   things already toggle visibility inside this row. */
body.a-shell-content-unavailable #altSearchWrap{ display:none; }
/* The utilities need `margin-left:auto` here because hiding the search removes the sibling
   (`.a-top-search{flex:1 1 100%}`) that was pinning them right — without it they fall back to
   x=12 with ~1300px of empty bar past them. */
body.a-shell-content-unavailable #altTopUtils{ margin-left:auto; }
