/* DESK-360: repository content is untrusted, so an agent-written field can hold one long unbroken word (a commit id,
   a path, a base64 string). Every owner page breaks it inside its card at any width instead of pushing the page
   sideways; ordinary words still wrap between words. */
body { overflow-wrap: anywhere; }
/* The real pages (DESK-140). Existing kit pieces (tokens.css, styles.css) plus spacing, the same as the
   dev previews use, so a walk on a phone shows the approved look. */
.app-page { max-width: 640px; margin: 0 auto; padding: var(--space-lg) var(--space-md); display: grid; gap: var(--space-md); }
.app-page h1, .setup-content h1 { color: var(--color-text-primary); font-size: var(--font-size-h1); line-height: 32px; font-weight: 600; }
/* The work item title is a card title on the boards (DESK-145, 149, 166, 170, 172): kit h2, 18/24/600. */
.app-page #work-title { font-size: var(--font-size-h2); line-height: 24px; font-weight: 600; }
.app-page h2 { color: var(--color-text-primary); font-size: var(--font-size-body); }
.app-page .meta { font-size: var(--font-size-meta); color: var(--color-text-muted); }
.app-page .label { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.app-page .pieces { display: grid; gap: var(--space-sm); list-style: none; padding: 0; }
.app-page .card { display: grid; gap: var(--space-xs); }
.app-page .card h3 { color: var(--color-text-primary); font-size: var(--font-size-body); }
/* DESK-301: Desk card titles are h2 under the page h1 (no skipped level). Same look as the h3 they were. */
.app-page #list > .card > h2 { color: var(--color-text-primary); font-size: var(--font-size-body); line-height: 24px; font-weight: 600; }
.app-page .card[aria-disabled="true"] { opacity: 0.6; }
.setup-content { display: grid; gap: var(--space-md); max-width: 640px; margin: 0 auto; }
.setup-content input[type="email"], .setup-content input[type="text"] { font: inherit; padding: var(--space-sm); border-radius: var(--radius-button);
  border: 1px solid var(--color-border-control); background: var(--color-surface-raised); color: var(--color-text-primary); }
/* DESK-504 fixes: field edges are border.control, 3:1 on every surface (WCAG 1.4.11). The kit's .field (styles.css)
   keeps border.strong for the marketing pages, so the app points it here. */
.field { border-color: var(--color-border-control); }
/* The filled destructive button sits on border.subtle: failed text on border.strong is 4.4:1 in the dark theme.
   Pressed, it takes surface.subtle, a visible change with the label at 5.5:1 or more in navy, light and dark. */
.btn-filled.btn-destructive { background: var(--color-border-subtle); }
.btn-filled.btn-destructive:active { background: var(--color-surface-subtle); }
[hidden] { display: none !important; }
/* DESK-142: --demo only. A dashed amber band so it never reads as part of the product. */
.demo-band { display: grid; gap: var(--space-sm); padding: var(--space-md); border: 2px dashed var(--color-status-review-text);
  border-radius: var(--radius-button); background: var(--color-status-review-bg); color: var(--color-status-review-text); }
.demo-band .btn { justify-self: start; text-decoration: none; }

/* DESK-143: a work card's title opens the decision sheet. It reads as the card's heading link. */
.app-page .card-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.app-page .card-open:disabled { cursor: default; text-decoration: none; }
/* DESK-301: the title line is 24 px tall; an invisible band 44 px tall across the title takes the tap. */
.app-page .card-open { position: relative; }
.app-page .card-open::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; min-height: 44px; transform: translateY(-50%); }
.decision-sheet { z-index: 2; }
.sheet-backdrop { z-index: 1; }
.decision-sheet h2 { margin: 0 0 var(--space-sm); padding-right: 44px; }
.decision-sheet .label { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.sheet-close { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px;
  background: none; border: 0; font-size: 28px; line-height: 1; color: var(--color-text-muted); cursor: pointer; }
.sheet-acts { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.sheet-acts .btn { flex: 1; }

/* DESK-145: the proof on the work item (Zara's board). Kit tokens only; static, nothing animates. */
.proof { display: grid; gap: var(--space-sm); border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-md); }
.proof-heading { color: var(--color-text-primary); font-size: var(--font-size-body); margin: 0; }
.proof-how { margin: 0; color: var(--color-text-secondary); }
.proof-how strong { color: var(--color-text-primary); }
.proof-rows { list-style: none; padding: 0; margin: 0; }
.proof-row { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-xs) 0; color: var(--color-text-primary);
  font-size: var(--font-size-body); line-height: 20px; }
.proof-row + .proof-row { border-top: 1px solid var(--color-border-subtle); }
.proof-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.proof-pass .proof-mark { background: var(--color-status-passed-bg); color: var(--color-status-passed-text); }
.proof-incomplete .proof-mark { background: var(--color-status-review-bg); color: var(--color-status-review-text); }
.proof-unchecked .proof-mark { background: var(--color-status-uncheck-bg); color: var(--color-status-uncheck-text); } /* gap d: no tick */
.proof-unchecked { color: var(--color-status-uncheck-text); } /* the line reads as not yet shown, not as a pass */
.proof-text { overflow-wrap: anywhere; }
.proof-code, .proof-checked { font-family: var(--font-family-mono); font-size: var(--font-size-code); color: var(--color-text-muted); }
.proof-checked { margin: 0; }
.proof-block { display: grid; gap: var(--space-xs); padding: var(--space-md); border-radius: var(--radius-button);
  background: var(--color-status-review-bg); color: var(--color-status-review-text); }
.proof-block p { margin: 0; }
.proof-block strong { color: inherit; }
/* DESK-216 (boards 166, 170): the reason line's icon takes the block's own tone (amber or red, never green), and a
   thin rule sets What's next apart. Kit tokens only. */
.proof-reason { display: flex; gap: var(--space-xs); align-items: baseline; }
.proof-reason-icon { flex: none; font-size: 1em; line-height: 1; }
/* DESK-252: the quarantined row's What's next (board 172): the button, then the closing line. */
.proof-block .proof-review { width: 100%; }
/* The sheet's rows in the proof view's style: a rule between rows, the closing line muted. */
.review-sheet #review-body { display: grid; gap: var(--space-sm); }
.review-sheet #review-body p { margin: 0; }
.review-reason { color: var(--color-text-primary); }
.review-reason .proof-reason-icon { color: var(--color-status-failed-text); }
.review-row { color: var(--color-text-secondary); }
.review-row strong { color: var(--color-text-primary); }
.review-row + .review-row, .review-closing { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-sm); }
.review-closing { color: var(--color-text-secondary); }
/* DESK-173 (board 173): the choices under the record, one main button, its line, then the secondary link. */
.review-choices { display: grid; gap: var(--space-xs); justify-items: center; border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-md); margin-top: var(--space-sm); }
.review-choices[hidden] { display: none; }
.review-choices .review-retry { width: 100%; }
.review-choices .review-note { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-meta); text-align: center; }
.review-choices .review-put-back { background: none; border: 0; padding: var(--space-xs); min-height: 44px; font: inherit; cursor: pointer;
  color: var(--color-text-link); }
.review-choices .review-put-back:hover { color: var(--color-text-link-hover); }
.review-choices .next-failed { margin: 0; color: var(--color-status-failed-text); }
.review-choices .next-failed[hidden] { display: none; }
.proof-next-label { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-sm); margin-top: var(--space-xs); }
/* DESK-217 (board-desk217-status-pill, as DESK-145): the pill sits in the title row, top right, in every state that
   has one. The title wraps beside it; the pill never wraps or shrinks and keeps its top on the first title line. */
.work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); }
.work-head h1 { flex: 1; min-width: 0; margin: 0; }
.proof-pill { flex: none; white-space: nowrap; display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-xs); border-radius: var(--radius-button); font-size: var(--font-size-meta); line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.proof-pill[data-tone="green"] { background: var(--color-status-passed-bg); color: var(--color-status-passed-text); }
.proof-pill[data-tone="green"]::before { content: "\2713\00a0"; }
.proof-pill[data-tone="amber"] { background: var(--color-status-review-bg); color: var(--color-status-review-text); }
/* Blocked (DESK-165): the FAILED colour, with its text label. */
.proof-pill[data-tone="red"], .proof-block[data-tone="red"] { background: var(--color-status-failed-bg); color: var(--color-status-failed-text); }

/* DESK-154 (1B), matched to Zara's hi-fi (board-desk160-team-hifi.png): grouped lists, one row per person, calm
   spacing, a 640 px column on laptop, Remove as a bottom sheet on phone and centred on laptop. Kit tokens only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.team-page { gap: var(--space-sm); padding-bottom: var(--space-xl, 48px); }
.team-page .team-title { font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; margin: var(--space-sm) 0 0; }
.team-sub { margin: 0 0 var(--space-md); color: var(--color-text-secondary); }
.team-label { margin: var(--space-sm) 0 0; padding: 0 var(--space-sm); font-size: var(--font-size-meta); font-weight: 500;
  color: var(--color-text-muted); }
.team-count-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding-right: var(--space-sm); }
.team-plans { font-size: var(--font-size-meta); color: var(--color-text-primary); }
.app-page h2.team-label { font-size: var(--font-size-meta); color: var(--color-text-muted); }
.team-group { list-style: none; margin: 0; padding: 0 var(--space-sm); background: var(--color-surface-raised);
  border-radius: var(--radius-sheet); }
.team-group > * + * { border-top: 1px solid var(--color-border-subtle); }
.team-row { display: flex; align-items: center; gap: var(--space-sm); min-height: 56px; padding: var(--space-sm) 0; }
.team-avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-surface-subtle); color: var(--color-text-primary); font-size: var(--font-size-meta); font-weight: 600; }
.team-avatar.is-you { background: var(--color-action-primary); color: var(--color-action-label); }
.team-avatar.is-pending { background: transparent; border: 1px dashed var(--color-border-strong); color: var(--color-text-muted); }
.team-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.team-name { color: var(--color-text-primary); overflow-wrap: anywhere; }
.team-role { color: var(--color-text-muted); font-size: var(--font-size-meta); }
/* DESK-218 (board-desk160): a filled pill at rest, drawn inside the 44 px tap target so the target stays full size.
   DESK-232: the fill is the kit's .btn-filled, kept inside the padding box by a 6 px clear border top and bottom. */
.team-remove-btn { flex: none; box-sizing: border-box; min-height: 44px; padding: 0 var(--space-sm); border: 6px solid transparent; border-width: 6px 0;
  background-clip: padding-box; border-radius: 999px; color: var(--color-text-secondary); font: inherit; font-size: var(--font-size-meta); cursor: pointer; }
.team-remove-btn:hover, .team-remove-btn:focus-visible { color: var(--color-text-primary); }
.team-roles, .team-invite { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.team-role-row { display: grid; gap: 2px; padding: var(--space-sm) 0; }
.team-role-row strong { color: var(--color-text-primary); font-weight: 600; }
.team-role-row p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-meta); }
.team-role-row.is-muted strong, .team-role-row.is-muted p { color: var(--color-text-muted); }
.team-full p { margin: 0; padding: var(--space-sm) 0; color: var(--color-text-primary); }
.team-form { display: grid; gap: var(--space-sm); }
.team-field { width: 100%; box-sizing: border-box; min-height: 48px; border-color: var(--color-border-control); background: var(--color-surface-raised); }
.team-help { margin: 0; padding: 0 var(--space-sm); color: var(--color-text-secondary); font-size: var(--font-size-meta); }
.team-send { width: 100%; min-height: 48px; }
.team-error:empty { display: none; }
.team-error { margin: 0; padding: 0 var(--space-sm); color: var(--color-status-failed-text); font-size: var(--font-size-meta); }
/* Remove sheet: a grabber and stacked buttons, Remove first, on phone; side by side, Cancel first, on laptop. */
.team-sheet .sheet-acts { flex-direction: column-reverse; }
.team-sheet .sheet-acts .btn { flex: none; width: 100%; min-height: 48px; } /* filled by the kit's .btn-filled (DESK-232), as on board 160 */
.team-sheet::before { content: ""; display: block; width: 36px; height: 4px; margin: calc(-1 * var(--space-sm)) auto var(--space-sm);
  border-radius: 2px; background: var(--color-border-strong); }
@media (min-width: 720px) {
  .team-page .team-send { width: auto; justify-self: end; padding: 0 var(--space-lg); }
  .team-sheet .sheet-acts { flex-direction: row; }
  .team-sheet .sheet-acts .btn { flex: 1; width: auto; }
  .team-sheet::before { display: none; }
}
.nav-role { margin-left: var(--space-xs); padding: 2px var(--space-xs); border-radius: 999px; border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.navlinks a[aria-current="page"] { background: var(--color-surface-raised); border-radius: var(--radius-button); padding: 2px var(--space-xs); }
.viewer-note { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); padding: var(--space-sm);
  border-radius: var(--radius-button); background: var(--color-surface-subtle); color: var(--color-text-secondary); }
/* Lock: Phosphor Icons lock-simple, Light weight (DESK-504), MIT, copied inline (DESIGN.md, row 94). */
.viewer-note::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Phone header (DESK-160 hi-fi): the mark alone, so the links and chip stay on one line. The name stays for
   screen readers. */
.navlinks a, .nav-role { white-space: nowrap; }
/* DESK-238: the mark (28 px), the header links (20 px tall) and the setup Back (42 px wide) get a 44 px hit area.
   It is centred on each and draws nothing, so the header and Back look and sit exactly as before. */
nav.site .brand, .navlinks a, .setup-back, .team-plans { position: relative; }
nav.site .brand::after, .navlinks a::after, .setup-back::after, .team-plans::after { content: ""; position: absolute; left: 50%; top: 50%;
  width: 100%; height: 100%; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); }
/* DESK-382: "See plans" after the counter, a quiet link with the same 44 px hit area. */
.counter-plans { position: relative; color: var(--color-text-link); white-space: nowrap; }
.counter-plans::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%); }
@media (max-width: 479px) {
  nav.site .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* DESK-301: at 320 px a Paid owner's header (mark, three links, chip) is 6 px wider than the page, so the mark touched
   "Your Desk" and the chip met the screen edge. Below 360 px the gap between links is 16 px instead of 24. */
@media (max-width: 359px) { nav.site .navlinks { gap: var(--space-md); } }
/* DESK-465 (board-desk465-phone-menu): under 720 px the header is the mark, Your Desk and Menu. Menu opens the link
   row as a panel under the header: every link the member has, laptop order, the chip last, 48 px rows, the current
   page with a 3 px blue edge. It dims the page to 35%, fades in 120 ms and isn't a modal. From 720 px up .nav-phone
   is hidden and the header is unchanged. A removed teammate's header (Help only) has no menu. */
.nav-phone { display: flex; align-items: center; gap: var(--space-sm); }
.nav-phone a[aria-current="page"] { background: var(--color-surface-raised); border-radius: var(--radius-button); padding: 2px var(--space-xs); }
.nav-phone a { position: relative; }
.nav-phone a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%); }
.nav-menu { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius-button); background: var(--color-surface-subtle);
  color: var(--color-text-primary); font: inherit; cursor: pointer; }
/* Icons: Phosphor Icons List and X, Light weight (DESK-504), MIT, copied inline (DESIGN.md, row 94). */
.nav-menu::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu[aria-expanded="true"]::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%); }
@media (min-width: 720px) { .nav-phone { display: none; } }
@media (max-width: 719px) {
  nav.site.has-menu { position: relative; }
  nav.site.has-menu .navlinks { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; display: flex; flex-direction: column;
    align-items: stretch; gap: 0; margin: 0 calc(-1 * var(--space-md)); visibility: hidden; opacity: 0;
    background: var(--color-surface-subtle); border-top: 1px solid var(--color-border-subtle);
    box-shadow: 0 100vh 0 100vh color-mix(in srgb, var(--color-canvas-base) 65%, transparent);
    transition: opacity 120ms ease, visibility 0s linear 120ms; }
  nav.site.has-menu.is-open .navlinks { visibility: visible; opacity: 1; transition: opacity 120ms ease, visibility 0s; }
  nav.site.has-menu .navlinks a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); font-size: 16px;
    border-bottom: 1px solid var(--color-border-subtle); color: var(--color-text-primary); }
  nav.site.has-menu .navlinks a[aria-current="page"] { background: var(--color-surface-raised); border-radius: 0;
    border-left: 3px solid var(--color-action-primary); padding: 0 var(--space-md) 0 calc(var(--space-md) - 3px); }
  nav.site.has-menu .navlinks .nav-role { align-self: flex-start; margin: var(--space-sm) var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { nav.site.has-menu .navlinks { transition: none; } }
/* DESK-523: the collapsed rail, behind NAV_RAIL_ON (app-nav.js). Every rule names nav.site.nav-rail, a class only the
   switch sets, so with it off this block touches nothing. All of it sits in @supports selector(:has(*)): a browser
   without :has() keeps today's header, with the rail's two extra parts (icons and the fold button) hidden by the one
   rule outside it. From 720 px up the header is a rail at the left: the mark, Menu (which folds it), the links, the
   Paid or Viewer chip and the theme switch, 220 px wide with words or 60 px folded to icons. It scrolls when the window
   is short. Folded, the words are hidden from sight only (the links keep their names) and show beside the icon on hover
   and on focus; a shown label can be hovered (a bridge spans the gap) and Esc hides it (is-quiet, app-nav.js). Labels
   are fixed, not absolute, so the scroll box never clips them; their top is their static position, beside their item.
   The chip folds to a dot with its word on hover. The current page keeps the DESK-465 3 px blue edge, drawn inside the
   row, so hover and current never look alike (Zara's design pass). The page, the docked command bar and the toast keep to the content
   area beside the rail. The rail is layer 0, under every scrim and sheet; folded, hover or focus in it lifts it to 1
   so a label sits over the page (an open sheet's scrim and focus trap rule that out). Printing hides it. No motion.
   On a phone the DESK-465 panel is unchanged: no icons, no rail toggle.
   Icons: Phosphor Icons house, plugs, question, gear and users, Light weight (DESK-504), MIT, copied inline (DESIGN.md, row 94).
   Menu's icon is the Phosphor List above, Light weight. */
nav.site.nav-rail .nav-icon, nav.site.nav-rail .nav-rail-toggle { display: none; }
@supports selector(:has(*)) {
@media (min-width: 720px) {
  body:has(> #app-header > nav.site.nav-rail) { --nav-rail-width: 220px; padding-left: var(--nav-rail-width); }
  body:has(> #app-header > nav.site.nav-rail.is-folded) { --nav-rail-width: 60px; }
  body:has(> #app-header > nav.site.nav-rail) .cmd-bar:not(.cmd-palette .cmd-bar) { left: calc(50% + var(--nav-rail-width) / 2); width: min(640px, calc(100% - var(--nav-rail-width) - 48px)); }
  body:has(> #app-header > nav.site.nav-rail) .toast { left: calc(var(--nav-rail-width) + var(--space-md)); }
  nav.site.nav-rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 0; box-sizing: border-box; width: var(--nav-rail-width);
    max-width: none; height: auto; margin: 0; padding: var(--space-md) var(--space-xs); overflow-x: hidden; overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-xs);
    background: var(--color-surface-subtle); border-right: 1px solid var(--color-border-subtle); }
  nav.site.nav-rail.is-folded:hover, nav.site.nav-rail.is-folded:focus-within { z-index: 1; }
  nav.site.nav-rail .brand { flex: none; min-height: 44px; padding: 0 var(--space-xs); }
  nav.site.nav-rail .nav-rail-toggle { display: inline-flex; flex: none; align-self: flex-start; align-items: center; gap: var(--space-sm); position: relative; min-width: 44px; min-height: 44px;
    padding: 0 var(--space-xs); border: 1px solid var(--color-border-control); border-radius: var(--radius-button); background: none;
    color: var(--color-text-primary); font: inherit; cursor: pointer; }
  nav.site.nav-rail .nav-rail-toggle::before { content: ""; flex: none; width: 20px; height: 20px; margin: 0 var(--space-unit); background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z'/%3E%3C/svg%3E") center / contain no-repeat; }
  nav.site.nav-rail .navlinks { flex: none; flex-direction: column; align-items: stretch; gap: var(--space-unit); }
  nav.site.nav-rail .navlinks a { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-xs);
    border-radius: var(--radius-button); color: var(--color-text-secondary); }
  nav.site.nav-rail .navlinks a:hover { background: var(--color-surface-raised); color: var(--color-text-primary); }
  nav.site.nav-rail .nav-rail-toggle:hover { background: var(--color-surface-raised); }
  nav.site.nav-rail .navlinks a[aria-current="page"] { padding: 0 var(--space-xs); color: var(--color-text-primary); box-shadow: inset 3px 0 0 var(--color-action-primary); }
  nav.site.nav-rail .nav-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; }
  nav.site.nav-rail .nav-icon::before { content: ""; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
  nav.site.nav-rail .nav-icon[data-icon="house"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z'/%3E%3C/svg%3E"); }
  nav.site.nav-rail .nav-icon[data-icon="plugs"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M148.24,139.76a6,6,0,0,0-8.48,0L120,159.51,96.49,136l19.75-19.76a6,6,0,0,0-8.48-8.48L88,127.51,68.24,107.76a6,6,0,0,0-8.48,8.48L67.51,124,42.79,148.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l29.82-29.81,6.79,6.78a30,30,0,0,0,42.42,0L132,188.49l7.76,7.75a6,6,0,0,0,8.48-8.48L128.49,168l19.75-19.76A6,6,0,0,0,148.24,139.76Zm-49.45,65a18,18,0,0,1-25.46,0L51.27,182.67a18,18,0,0,1,0-25.46L76,132.49,123.51,180Zm137.45-185a6,6,0,0,0-8.48,0L197.94,49.57l-6.79-6.78a30,30,0,0,0-42.42,0L124,67.51l-7.76-7.75a6,6,0,0,0-8.48,8.48l80,80a6,6,0,0,0,8.48-8.48L188.49,132l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,29.81-29.82A6,6,0,0,0,236.24,19.76Zm-31.51,79L180,123.51,132.49,76l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46Z'/%3E%3C/svg%3E"); }
  nav.site.nav-rail .nav-icon[data-icon="question"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z'/%3E%3C/svg%3E"); }
  nav.site.nav-rail .nav-icon[data-icon="gear"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z'/%3E%3C/svg%3E"); }
  nav.site.nav-rail .nav-icon[data-icon="users"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z'/%3E%3C/svg%3E"); }
  /* DESK-605: Phosphor Icons git-pull-request, Light weight, MIT (@phosphor-icons/core 2.1.1), for Prove a PR. */
  nav.site.nav-rail .nav-icon[data-icon="git-pull-request"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M102,64A30,30,0,1,0,66,93.4v69.2a30,30,0,1,0,12,0V93.4A30.05,30.05,0,0,0,102,64ZM54,64A18,18,0,1,1,72,82,18,18,0,0,1,54,64ZM90,192a18,18,0,1,1-18-18A18,18,0,0,1,90,192Zm116-29.4v-52a21.88,21.88,0,0,0-6.44-15.56L158.48,54H192a6,6,0,0,0,0-12H144a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l41.07,41.08a9.91,9.91,0,0,1,2.93,7.07v52a30,30,0,1,0,12,0ZM200,210a18,18,0,1,1,18-18A18,18,0,0,1,200,210Z'/%3E%3C/svg%3E"); }
  nav.site.nav-rail .nav-role { align-self: flex-start; margin: var(--space-xs) var(--space-xs) 0; }
  nav.site.nav-rail .theme-switch { flex: none; position: relative; align-self: flex-start; margin-top: auto; }
  nav.site.nav-rail.is-folded .nav-rail-toggle, nav.site.nav-rail.is-folded .navlinks a, nav.site.nav-rail.is-folded .brand { justify-content: center; padding: 0; }
  nav.site.nav-rail.is-folded .theme-switch { align-self: center; justify-content: center; min-width: 44px; padding: 0 var(--space-unit); }
  nav.site.nav-rail.is-folded .nav-role { position: relative; align-self: stretch; display: inline-flex; align-items: center; justify-content: center;
    min-height: 24px; margin: var(--space-xs) 0 0; padding: 0; border: 0; }
  nav.site.nav-rail.is-folded .nav-role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-muted); }
  nav.site.nav-rail.is-folded .nav-label, nav.site.nav-rail.is-folded .brand span, nav.site.nav-rail.is-folded .theme-switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  nav.site.nav-rail.is-folded .nav-label::before, nav.site.nav-rail.is-folded .brand span::before, nav.site.nav-rail.is-folded .theme-switch-label::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0;
    width: var(--space-md); }
  nav.site.nav-rail.is-folded:not(.is-quiet) .navlinks a:hover .nav-label, nav.site.nav-rail.is-folded:not(.is-quiet) .navlinks a:focus-visible .nav-label,
  nav.site.nav-rail.is-folded:not(.is-quiet) .nav-rail-toggle:hover .nav-label, nav.site.nav-rail.is-folded:not(.is-quiet) .nav-rail-toggle:focus-visible .nav-label,
  nav.site.nav-rail.is-folded:not(.is-quiet) .theme-switch:hover .theme-switch-label, nav.site.nav-rail.is-folded:not(.is-quiet) .theme-switch:focus-visible .theme-switch-label,
  nav.site.nav-rail.is-folded:not(.is-quiet) .brand:hover span, nav.site.nav-rail.is-folded:not(.is-quiet) .brand:focus-visible span,
  nav.site.nav-rail.is-folded:not(.is-quiet) .nav-role:hover .nav-label { position: fixed; left: calc(var(--nav-rail-width) + var(--space-unit)); top: auto; z-index: 2; width: max-content; height: auto;
    overflow: visible; clip: auto; padding: var(--space-unit) var(--space-xs); border: 1px solid var(--color-border-control);
    border-radius: var(--radius-button); background: var(--color-surface-raised); color: var(--color-text-primary);
    font-size: var(--font-size-meta); font-weight: 400; letter-spacing: 0; text-transform: none; }
}
@media print {
  body:has(> #app-header > nav.site.nav-rail) { padding-left: 0; }
  nav.site.nav-rail { display: none; }
}
/* "The strip stacks": with the rail on, a phone stacks the header's strip of chips (the live header, DESK-510) one under
   another. The Desk's stage strip (DESK-513) isn't built yet. */
@media (max-width: 719px) {
  body:has(> #app-header > nav.site.nav-rail) .live-header > .live-chips { flex-direction: column; align-items: flex-start; }
}
}
/* end DESK-523 */
/* DESK-149: the What's next button on Proof incomplete (Zara's board), full width, one main button. */
.proof-next { display: grid; gap: var(--space-xs); }
.proof-next .next-button { width: 100%; }
.proof-next .next-button[aria-busy="true"] { opacity: 0.8; gap: var(--space-xs); }
/* The working spinner is the site's .spin (styles.css, with its Reduce Motion rule), drawn in the control's own
   colour with an open quarter, 14px on the button and 12px on the link (DESK-182). */
.proof-next .spin { flex: none; width: 14px; height: 14px; border-color: currentColor; border-right-color: transparent; opacity: 1; }
.proof-next .next-check .spin { width: 12px; height: 12px; }
.proof-next .next-failed { color: var(--color-status-failed-text); }
.proof-next .next-line { color: var(--color-text-primary); }
.proof-next .proof-recheck { display: grid; gap: var(--space-xs); justify-items: center; }
.proof-next .next-check { background: none; border: 0; padding: var(--space-xs); min-height: 44px; font: inherit;
  color: var(--color-status-review-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center;
  gap: var(--space-xs); transition: opacity var(--motion-tap); }
/* DESK-242: on the amber block, action blue measured 2.9:1; the block's own text colour, underlined, is 8.97:1. */
.proof-next .next-check:hover { opacity: 0.8; }
.proof-next .next-check:active { opacity: 0.6; }
.proof-next .next-check:disabled { color: var(--color-text-secondary); cursor: default; }
.proof-next .proof-recheck .next-failed { justify-self: stretch; }
/* A placeholder line shows only in a dev preview, and looks like one. */
[data-placeholder="true"] { outline: 1px dashed var(--color-status-review-text); outline-offset: 2px; }

/* DESK-168: an invited viewer's landing, laid out like setup step 1 (the mark, one heading, one line, one button). */
.viewer-invite { display: grid; gap: var(--space-md); justify-items: start; align-content: center; min-height: 100svh;
  max-width: 28rem; margin: 0 auto; box-sizing: border-box; }
.viewer-invite h1 { margin: 0; font-size: var(--font-size-h1); }
.viewer-invite p { margin: 0; color: var(--color-text-muted); }
.viewer-invite .btn { justify-self: stretch; text-align: center; }

/* DESK-223 and DESK-224 (board-desk28-states, approved screens row 15). Kit tokens only, never green.
   Offline A: the amber banner runs across the top, above the header. */
#offline-banner, .offline-banner { display: block; padding: var(--space-sm) var(--space-md); background: var(--color-status-review-bg); color: var(--color-status-review-text);
  font-size: var(--font-size-meta); line-height: 1.5; }
.offline-banner strong { color: inherit; font-weight: 700; }
/* The "Your Desk" heading and the split's heading take the page h1 above, with no margin (DESK-224, DESK-226). */
.app-page .desk-title, #split-heading { margin: 0; }
.desk-state { display: grid; gap: var(--space-xs); }
.desk-state h2 { margin: 0; color: var(--color-text-primary); font-size: var(--font-size-body); }
.desk-state p { margin: 0; color: var(--color-text-secondary); }
.desk-state-icon { display: none; }
/* Empty and failed sit centred under a small round icon; failed's Try again is compact, not full width. */
.desk-state[data-state="empty"], .desk-state[data-state="failed"] { justify-items: center; text-align: center; padding-top: var(--space-xl); }
.desk-state[data-state="empty"] .desk-state-icon, .desk-state[data-state="failed"] .desk-state-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: var(--space-sm);
  font-size: var(--font-size-meta); font-weight: 700; }
.desk-state[data-state="empty"] .desk-state-icon { background: var(--color-status-uncheck-bg); color: var(--color-status-uncheck-text); }
.desk-state[data-state="empty"] .desk-state-icon::before { content: "\2713"; }
.desk-state[data-state="failed"] .desk-state-icon { background: var(--color-status-failed-bg); color: var(--color-status-failed-text); }
.desk-state[data-state="failed"] .desk-state-icon::before { content: "!"; }
.desk-state[data-state="failed"] .btn { justify-self: center; width: auto; margin-top: var(--space-sm); }
/* Loading: three placeholder rows shaped like cards. The loading line stays, read aloud but not drawn. */
.desk-state[data-state="loading"] h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desk-skeleton { display: grid; gap: var(--space-sm); list-style: none; margin: 0; padding: 0; }
.desk-skeleton li { height: 52px; border-radius: var(--radius-card); border: 1px solid var(--color-border-subtle);
  background: linear-gradient(90deg, var(--color-surface-subtle), var(--color-surface-raised), var(--color-surface-subtle)); }

/* DESK-226 (board-desk134-split): the split in the setup frame, as step 5. Kit tokens only. */
.split-frame, .split-progress { padding: 0; }
#split { display: grid; gap: var(--space-md); }
#split-sub { margin: 0; color: var(--color-text-secondary); }
.split-choices { display: grid; gap: var(--space-sm); border: 0; margin: 0; padding: 0; min-width: 0; }
.split-choice { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-md); cursor: pointer;
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); background: var(--color-surface-subtle); }
.split-choice:has(input:checked) { border-color: var(--color-action-primary); background: var(--color-surface-raised); }
.split-choice input { flex: none; width: 20px; height: 20px; margin: 0; appearance: none; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--color-text-muted); background: transparent; }
.split-choice input:checked { border-color: var(--color-action-primary);
  background: radial-gradient(circle, var(--color-action-primary) 0 4px, transparent 5px); }
.split-choice input:focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 2px; }
.split-choice-body { display: grid; gap: var(--space-xs); min-width: 0; }
.split-choice-title { color: var(--color-text-primary); font-weight: 600; }
.split-choice-why { color: var(--color-text-secondary); }
.split-choice-proof { color: var(--color-text-secondary); overflow-wrap: anywhere; } /* normal text, like the plan card (design review 2026-11-18) */
.split-choice-proof .label { color: var(--color-text-muted); font-size: var(--font-size-meta); }
/* DESK-406 (board-desk406-gap-map-reveal, version A): the ranked gaps on step 5. The split screen's row, without the
   radio: rank in mono, title 600, the why line under it in secondary. No impact chips: the order is the ranking. */
.gap-reveal { list-style: none; margin: var(--space-md) 0 0; padding: 0; border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card); overflow: hidden; background: var(--color-surface-raised); }
.gap-row { --rise-delay: 0ms; display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--color-border-subtle); }
.gap-row:first-child { border-top: 0; }
.gap-row.is-start { box-shadow: inset 3px 0 0 var(--color-action-primary); }
.gap-rank { flex: none; width: 1.25em; font-family: var(--font-family-mono); font-size: var(--font-size-meta); color: var(--color-text-muted); padding-top: 2px; }
.gap-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gap-head { display: flex; gap: var(--space-xs); align-items: baseline; justify-content: space-between; }
.gap-title { color: var(--color-text-primary); font-weight: 600; overflow-wrap: anywhere; }
.gap-why { color: var(--color-text-secondary); font-size: var(--font-size-meta); overflow-wrap: anywhere; }
.gap-tag { flex: none; font-family: var(--font-family-mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--color-action-tint); color: var(--color-text-link); }
.gap-more { display: block; margin-top: var(--space-xs); padding: var(--space-xs) 0; background: none; border: 0;
  color: var(--color-text-link); font: inherit; font-size: var(--font-size-meta); cursor: pointer; min-height: 44px; }
.gap-row.is-rising { animation: gap-rise 180ms ease-out var(--rise-delay) both; }
@keyframes gap-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gap-row.is-rising { animation: none; } }

#split-plan { width: 100%; }
.split-under { margin: 0; text-align: center; }
/* DESK-227 (board-ux-plan-to-work A): the plan card under the gaps, with its byline under the title. */
#plan-by { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-body); }
/* Runner kind C (board runner-proof-incomplete): with no main button above it, Check again sits left under What's next. */
.proof-next > .proof-recheck:only-child { justify-items: start; }
.proof-next > .proof-recheck:only-child .next-check { padding-left: 0; }
/* DESK-277: on the board the link sits on the line straight under "What's next:", like the other kinds' text. The
   block's gap is taken back, and the 44px tap area is drawn around the link (as on the header links), not as space. */
.proof-block > .proof-next:has(> .proof-recheck:only-child) { margin-top: calc(-1 * var(--space-xs)); }
.proof-next > .proof-recheck:only-child .next-check { min-height: 0; padding-top: 0; padding-bottom: 0; position: relative; }
.proof-next > .proof-recheck:only-child .next-check::after { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 44px; transform: translateY(-50%); }

/* Team page states (board-desk154-team-states). Empty: a plain row under You. Bad address: a 1.5px failed-text edge
   on the field and the line under it with the error icon. Sending: the button keeps its word with a 16px spinner.
   Sent: the new pending row takes the action tint and fades to the card colour over motion.move; Reduce Motion: no tint.
   Removed: one line, the page heading, with only Help in the header. */
.team-empty { min-height: 48px; color: var(--color-text-secondary); font-size: var(--font-size-body); }
.team-field[aria-invalid="true"] { border: 1.5px solid var(--color-status-failed-text); }
.team-error { display: flex; align-items: center; gap: var(--space-xs); }
.team-error-icon { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box;
  display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; line-height: 1; }
.team-error-icon::before { content: "!"; }
.team-send[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); background: var(--color-action-hover); cursor: progress; }
.team-send .spin { flex: none; width: 16px; height: 16px; border-color: currentColor; border-right-color: transparent; }
.team-row.is-new { margin: 0 calc(-1 * var(--space-sm)); padding-left: var(--space-sm); padding-right: var(--space-sm);
  animation: team-new var(--motion-move) 600ms both; } /* held 600ms so the tint is seen, then the 320ms fade */
@keyframes team-new { from { background: var(--color-action-tint); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .team-row.is-new { animation: none; } }
.app-page .desk-title.is-removed { margin-top: var(--space-xl, 48px); font-size: 22px; line-height: 1.3; font-weight: 600; }

/* The ended and paused screens (board-paused-workspace-v2): heading 24/32, lines 16/24, one main button, the Your Desk
   link, small lines 13/18 in muted. Paused is not an error: no red or amber. */
.paused { display: grid; gap: var(--space-xs); padding-top: var(--space-xl, 48px); }
.app-page .paused-title { margin: 0 0 var(--space-xs); font-size: 24px; line-height: 32px; }
.paused-line { margin: 0; font-size: 16px; line-height: 24px; color: var(--color-text-secondary); }
.paused-button { margin-top: var(--space-md); width: 100%; min-height: 48px; }
.paused-link { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-link);
  text-decoration: underline; text-underline-offset: 3px; }
.paused-link:hover { color: var(--color-text-link-hover); }
.paused-small { margin: var(--space-xs) 0 0; font-size: 13px; line-height: 18px; color: var(--color-text-muted); }

/* The checkout return page (DESK-268, board-desk254-checkout-v3.png). The spinner is the site's .spin above the
   heading while we wait on Stripe; in a button it takes the label's colour. The refund note is neutral slate:
   Paid is never green (green means Verified only). Kit tokens only. */
.paid-page { justify-items: start; }
.paid-page > .btn { justify-self: stretch; }
.paid-spin { width: 20px; height: 20px; }
.btn .spin { flex: none; width: 16px; height: 16px; border-color: currentColor; border-right-color: transparent; }
.paid-note { color: var(--color-text-secondary); font-size: var(--font-size-meta); }
.paid-page #lines { display: grid; gap: var(--space-xs); }
.paid-page > p:has(> #link) { justify-self: center; }

/* DESK-398: the "What's next" block after the first Verified (board-desk397-whats-next). A .card under the work item
   (space-lg above), h2, a meta label, the next gap in the gap-map row style (read only here), the counter, one main
   button, and See your gap map as a text link. No motion: the first Verified celebration stays the only one. */
.whats-next { display: flex; flex-direction: column; gap: 12px; margin-top: var(--space-lg); }
.whats-next h2 { font-size: var(--font-size-h2); margin: 0; }
.whats-next p { margin: 0; }
.whats-next-label { color: var(--color-text-secondary); }
.whats-next-gap { display: block; background: var(--color-canvas-base); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-button); padding: var(--space-sm) var(--space-md); color: var(--color-text-primary); text-decoration: none; }
.whats-next-gap:hover { border-color: var(--color-text-muted); }
.whats-next-counter { color: var(--color-text-secondary); }
.whats-next-button { width: 100%; justify-content: center; text-align: center; }
.whats-next-link { color: var(--color-text-link); font-size: var(--font-size-meta); align-self: flex-start; }
.whats-next-link:hover { color: var(--color-text-link-hover); }

/* DESK-385 part 2: the command bar on Your Desk (board desk384-voice, frames D to K). Mounted only while VOICE_ON. */
.cmd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; gap: var(--space-xs);
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border-strong); }
.cmd-label { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.cmd-row { display: flex; gap: var(--space-sm); align-items: center; }
.cmd-field { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-border-control);
  border-radius: var(--radius-button); background: var(--color-surface-raised); color: var(--color-text-primary);
  font: inherit; font-size: 16px; }
.cmd-mic { flex: none; box-sizing: border-box; min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center;
  justify-content: center; gap: var(--space-xs); }
.cmd-mic:not(.is-stop) { width: 44px; padding: 0; }
.cmd-mic[hidden] { display: none; }
.cmd-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 0; }
.cmd-top:has(> .cmd-status[hidden]:only-child) { display: none; }
/* DESK-387: Read aloud, a button on the top row opposite the status line (Zara). Quiet until the owner turns it on.
   A setting, not a status: text.secondary when quiet, text.primary when reading, never blue or green. */
.cmd-read { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; min-width: 44px;
  padding: 0 var(--space-xs); background: none; border: 0; color: var(--color-text-secondary); font: inherit;
  font-size: var(--font-size-meta); cursor: pointer; transition: transform var(--motion-tap); }
.cmd-read[aria-pressed="true"] { color: var(--color-text-primary); }
.cmd-read:active { transform: scale(0.97); }
.cmd-read-name { white-space: nowrap; }
/* Under 400px the label doesn't fit beside the status line (Zara): hide it visually, keep it as the accessible name. */
@media (max-width: 399px) {
  .cmd-read-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
.cmd-read:focus-visible { outline: 2px solid var(--color-text-link); outline-offset: 2px; border-radius: var(--radius-button); }
.cmd-status { margin: 0; display: flex; align-items: center; gap: var(--space-sm); color: var(--color-text-secondary);
  font-size: var(--font-size-meta); transition: opacity var(--motion-tap); }
.cmd-status[hidden] { display: none; }
.cmd-bars { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.cmd-bars i { display: block; width: 3px; border-radius: 2px; background: var(--color-text-muted);
  transition: background-color var(--motion-tap); }
.cmd-bars i:nth-child(1) { height: 6px; } .cmd-bars i:nth-child(2) { height: 14px; } .cmd-bars i:nth-child(3) { height: 9px; }
.cmd-status.is-sound .cmd-bars i { background: var(--color-action-primary); }
.cmd-off { margin: 0; }
.cmd-off[hidden] { display: none; }
.cmd-turn-on { background: none; border: 0; padding: 0; font: inherit; color: var(--color-text-link); cursor: pointer;
  text-decoration: underline; min-height: 44px; }
.cmd-turn-on:hover { color: var(--color-text-link-hover); }
@media (min-width: 720px) {
  .cmd-bar { left: 50%; right: auto; bottom: 24px; padding-bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100% - 48px));
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-tinted); }
}
body.has-cmd-bar main { padding-bottom: 168px; } /* the docked bar never covers the last card */
@media (prefers-reduced-motion: reduce) { .cmd-status, .cmd-bars i, .cmd-read { transition: none; } .cmd-read:active { transform: none; } }

/* DESK-514: the ⌘K palette. The command bar in a floating dialog over the scrim, its results under the field. Behind
   PALETTE_ON; tokens only (the float tokens from DESK-502). It opens with motion.dialog, a fade and a short drop from
   above, the scrim with motion.scrim; under Reduce Motion both are a motion.reduced crossfade. On a phone it sits at
   the top, clear of the keyboard; from 720px it is a centred 640px card. The decision sheet's rise is untouched. */
.cmd-scrim { position: fixed; inset: 0; z-index: 70; background: var(--color-scrim-base); animation: cmd-fade var(--motion-scrim); }
.cmd-palette { position: fixed; z-index: 71; left: var(--space-float-inset); right: var(--space-float-inset); top: var(--space-float-inset);
  max-height: calc(100vh - 2 * var(--space-float-inset)); max-height: calc(100dvh - 2 * var(--space-float-inset));
  display: flex; flex-direction: column; overflow: hidden; color: var(--color-text-primary);
  background: var(--color-surface-raised); border-radius: var(--radius-float); box-shadow: var(--shadow-tinted); }
.cmd-palette[hidden], .cmd-scrim[hidden], .cmd-results[hidden] { display: none; }
.cmd-palette.is-open { animation: cmd-palette-in var(--motion-dialog); }
@keyframes cmd-palette-in { from { opacity: 0; transform: translateY(calc(-1 * var(--space-xs))); } to { opacity: 1; transform: none; } }
@keyframes cmd-fade { from { opacity: 0; } to { opacity: 1; } }
.cmd-palette .cmd-bar { position: static; transform: none; width: auto; padding: var(--space-md) var(--space-md) var(--space-xs);
  background: none; border: 0; border-radius: 0; box-shadow: none; }
.cmd-palette-note { margin: 0; padding: 0 var(--space-md) var(--space-xs); color: var(--color-text-secondary); }
.cmd-palette-note[hidden] { display: none; }
.cmd-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-xs) var(--space-xs); }
.cmd-group-title { padding: var(--space-xs) var(--space-sm) 0; font-family: var(--font-family-mono); font-size: var(--font-size-meta);
  color: var(--color-text-muted); }
.cmd-option { display: flex; flex-direction: column; justify-content: center; min-height: 44px; box-sizing: border-box;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-button); color: var(--color-text-primary); cursor: pointer;
  overflow-wrap: anywhere; }
.cmd-option:hover, .cmd-option.is-active { background: var(--color-action-tint); }
/* The active row is where the arrow keys are: the same ring as a focused control, on the row's inside edge. */
.cmd-option.is-active { outline: var(--focus-ring-width) solid var(--color-text-link); outline-offset: calc(-1 * var(--focus-ring-width)); }
.cmd-option-meta { font-size: var(--font-size-meta); color: var(--color-text-secondary); }
@media (min-width: 720px) {
  .cmd-palette { left: 0; right: 0; top: 12vh; margin: 0 auto; width: min(640px, calc(100% - 2 * var(--space-lg))); max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .cmd-palette.is-open { animation: cmd-fade var(--motion-reduced) ease-out; }
  .cmd-scrim { animation: cmd-fade var(--motion-reduced) ease-out; }
}
/* end DESK-514 */

/* DESK-355: the owner's sign-off under the Verified proof. Buttons side by side, the line under them, the note box below. */
.sign-off { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border-subtle); }
.sign-off[hidden] { display: none; }
.sign-off-acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.sign-off-under, .sign-off-status { margin: var(--space-xs) 0 0; }
.sign-off-status:empty { display: none; }
.sign-off-note { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.sign-off-note[hidden] { display: none; }
.sign-off-label { font-weight: 600; }
.sign-off-text { box-sizing: border-box; width: 100%; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-border-control);
  border-radius: var(--radius-button); background: var(--color-surface-raised); color: var(--color-text-primary); font: inherit; font-size: 16px; }
.sign-off-note .btn { justify-self: start; }
.sign-off-done { margin: 0; color: var(--color-text-primary); }
.sign-off-reminder { margin: 0 0 var(--space-sm); color: var(--color-text-secondary); }

/* DESK-438 Connections (board-integration-linear, board-integration-mac): the Team page's grouped list, with Linear's
   detail under it on a phone and beside it from 720 px (list left, detail right). */
.conn-layout { display: grid; gap: var(--space-md); }
.conn-list { display: grid; gap: var(--space-xs); align-content: start; }
.conn-row .badge { flex: none; }
.conn-row-btn, .conn-secondary { flex: none; min-height: 44px; padding: 0 var(--space-md); }
.conn-detail { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-md); border-radius: var(--radius-card);
  background: var(--color-surface-raised); scroll-margin-top: var(--space-md); }
.app-page .conn-detail-title { margin: 0; font-size: var(--font-size-h2); line-height: 1.25; font-weight: 600; }
.conn-line, .conn-note { margin: 0; color: var(--color-text-secondary); }
.conn-note { font-size: var(--font-size-meta); }
.conn-scope { display: grid; gap: var(--space-xs); }
.app-page .conn-scope-title { margin: var(--space-xs) 0 0; font-size: var(--font-size-meta); font-weight: 500; color: var(--color-text-muted); }
.conn-scope-list { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-xs); color: var(--color-text-primary); }
.conn-primary { width: 100%; min-height: 48px; }
.conn-acts { display: grid; gap: var(--space-sm); }
.conn-teams { border: 0; margin: 0; background: var(--color-surface-subtle); }
.conn-team { cursor: pointer; }
.conn-radio { width: 20px; height: 20px; margin: 0; accent-color: var(--color-action-primary); }
.conn-error:empty { display: none; }
.conn-error { display: flex; align-items: center; gap: var(--space-sm); margin: 0; color: var(--color-status-failed-text); }
.conn-more { margin: var(--space-sm) 0 0; padding: 0 var(--space-sm); color: var(--color-text-secondary); font-size: var(--font-size-meta); }
.conn-more a { color: var(--color-text-link); }
/* DESK-459 Onbrand on Connections: a second detail under Linear's, with a key field, packages and brief cards. */
.conn-details { display: grid; gap: var(--space-md); align-content: start; }
.ob-part { display: grid; gap: var(--space-sm); }
.ob-field { display: grid; gap: var(--space-xs); }
.ob-label { font-size: var(--font-size-meta); color: var(--color-text-secondary); }
.ob-input { font: inherit; min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-button);
  border: 1px solid var(--color-border-control); background: var(--color-surface-raised); color: var(--color-text-primary); }
.ob-link { color: var(--color-text-link); }
.ob-package, .ob-card { flex-wrap: wrap; }
.ob-proof, .ob-outcome { flex-basis: 100%; margin: 0; }
.ob-proof:empty { display: none; }
@media (min-width: 720px) {
  .conn-page { max-width: 1040px; }
  .conn-layout { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
  .conn-primary { width: auto; justify-self: start; padding: 0 var(--space-lg); }
  .conn-acts { grid-auto-flow: column; justify-content: start; }
}

/* DESK-439 (board-integration-linear 6, 7): "From the gap map" / "From Linear" above the map, the issue list with its key
   and state, and the work item's "From Linear [ENG-418]". The switch is two 44 px buttons; the pressed one is raised. */
.lin-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; margin: 0 0 var(--space-md);
  border-radius: var(--radius-button); background: var(--color-surface-subtle); }
.lin-seg-btn { min-height: 44px; border: 0; border-radius: inherit; background: transparent; color: var(--color-text-secondary);
  font: inherit; font-weight: 500; cursor: pointer; }
.lin-seg-btn[aria-pressed="true"] { background: var(--color-surface-raised); color: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-border-control); font-weight: 600; }
.app-page .lin-heading { margin: 0 0 var(--space-sm); }
.lin-issues { border: 0; margin: 0 0 var(--space-sm); padding: 0; background: var(--color-surface-subtle); }
.lin-issue { cursor: pointer; gap: var(--space-sm); }
.lin-key { flex: none; font-variant-numeric: tabular-nums; color: var(--color-text-secondary); font-size: var(--font-size-meta); }
.lin-issue .team-name { flex: 1; min-width: 0; }
.lin-state { flex: none; }
.lin-under { margin: 0 0 var(--space-sm); }
.lin-plan { width: 100%; min-height: 48px; }
.lin-status:empty { display: none; }
.lin-status { display: flex; align-items: center; gap: var(--space-sm); margin: var(--space-sm) 0 0; }
.lin-chip { display: flex; gap: var(--space-xs); align-items: baseline; margin: 0; }
.lin-from { color: var(--color-text-muted); }
@media (min-width: 720px) { .lin-plan { width: auto; padding: 0 var(--space-lg); } }

/* DESK-512: a glossary word (glossary.js), behind GLOSSARY_ON; off, no element on any page has these classes. The
   word keeps the line's own font and colour and gets a dotted underline in text.muted (3:1 or more on every surface,
   in all three looks). It's a real button, reset to read as the word. Its 44px hit area is the button's own padding:
   (44px - 1em) / 2 above and below, given back by the same negative margin, so the line doesn't grow and the box
   reaches no wider than the word (inline-block: one box, never stretched across wrapped lines, and no positioned
   layer over the words beside it). The focus ring is drawn on the word itself, not the padded box. The definition
   shows in the line, right after the word: it pushes the text along and covers nothing. Fade in on motion.tap, none
   under Reduce Motion. */
.term dfn { font-style: normal; }
.term-word {
  display: inline-block; padding: calc((var(--size-tap) - 1em) / 2) 0; margin: calc((1em - var(--size-tap)) / 2) 0;
  border: 0; background: none; cursor: help; vertical-align: baseline;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit;
}
.term-text {
  text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--color-text-muted);
  text-decoration-thickness: 0.1em; text-underline-offset: 0.2em; border-radius: var(--radius-button);
}
.term-word:focus-visible { outline: none; }
.term-word:focus-visible .term-text {
  outline: var(--focus-ring-width) solid var(--color-lane-coordinator); outline-offset: var(--focus-ring-offset);
}
.term-def {
  margin-inline-start: var(--space-unit); padding: 0 var(--space-unit); border: 1px solid var(--color-border-control);
  border-radius: var(--radius-button); background: var(--color-surface-subtle); color: var(--color-text-primary);
  font-style: normal; font-weight: 400; text-transform: none; letter-spacing: normal; white-space: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: opacity var(--motion-tap);
}
.term-def[hidden] { display: none; }
@starting-style { .term-def { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-def { transition: none; } }

/* DESK-517: settings rows (settings-row.js), behind SETTINGS_ROWS_ON. Every rule here is scoped under .settings-rows,
   a class only settings-row.js sets, so with the switch off this block matches nothing. Groups in inset panels with a
   title; each row a label, one purpose line and the control. The Saved pill holds for motion.hold, then fades over
   motion.move; under Reduce Motion it crossfades in and out over motion.reduced. Never green: green means Verified.
   Zara's pass (2026-11-28): the title takes the meta line (not the h2's 32px) and the rows' inset, and the panel takes
   the card edge, border.strong, so it still shows where the light theme's panel and page are both white. */
.settings-rows .settings-group { margin: var(--space-lg) 0 0; }
.settings-rows .settings-group-title { margin: 0 0 var(--space-xs); padding: 0 var(--space-md); font-family: var(--font-family-mono);
  font-size: var(--font-size-meta); line-height: var(--line-height-meta); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.settings-rows .settings-panel { padding: 0 var(--space-md); background: var(--color-surface-raised); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card); }
.settings-rows .settings-row { padding: var(--space-md) 0; min-width: 0; }
.settings-rows .settings-row + .settings-row { border-top: 1px solid var(--color-border-subtle); }
.settings-rows .settings-row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: var(--space-lg); }
.settings-rows .settings-row-label { color: var(--color-text-primary); font-weight: var(--font-weight-medium); }
.settings-rows .settings-row-purpose { margin: var(--space-unit) 0 var(--space-sm); color: var(--color-text-secondary); }
.settings-rows .settings-pill { display: inline-flex; align-items: center; height: var(--space-lg); padding: 0 var(--space-xs); border-radius: var(--radius-button);
  font-size: var(--font-size-meta); font-weight: var(--font-weight-medium); background: var(--color-status-info-bg); color: var(--color-status-info-text);
  animation: settings-saved var(--motion-move) var(--motion-hold) both; }
@keyframes settings-saved { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes settings-saved-in { from { opacity: 0; } to { opacity: 1; } }
.settings-rows .settings-row-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin: var(--space-sm) 0 0;
  color: var(--color-status-failed-text); }
.settings-rows .settings-row-note[hidden] { display: none; }
.settings-rows .settings-again:focus-visible { outline: var(--focus-ring-width) solid var(--color-text-link); outline-offset: var(--focus-ring-offset); }
@media (prefers-reduced-motion: reduce) {
  .settings-rows .settings-pill { animation: settings-saved var(--motion-reduced) var(--motion-hold) both, settings-saved-in var(--motion-reduced) ease-out; }
}

/* DESK-516: the gate policy panel (gate-policy.js), behind GATE_POLICY_ON. Every rule here is scoped under .gate-group,
   a class only gate-policy.js sets, so with the switch off this block matches nothing. A switch is its look and its
   state in words (On, Off). A locked gate is text, "Always on", never a control. The knob slides over
   motion.tap; under Reduce Motion it doesn't move, it changes. Never green: green means Verified. */
.gate-group .gate-switch { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: calc(var(--space-xl) + var(--space-sm));
  padding: 0; border: 0; background: none; color: var(--color-text-secondary); font: inherit; cursor: pointer; }
.gate-group .gate-switch:focus-visible { outline: var(--focus-ring-width) solid var(--color-text-link); outline-offset: var(--focus-ring-offset); }
.gate-group .gate-switch:disabled { cursor: default; }
.gate-group .gate-switch-track { display: inline-flex; align-items: center; box-sizing: border-box; flex: none;
  width: calc(var(--space-xl) + var(--space-unit)); height: calc(var(--space-md) + var(--space-unit)); border-radius: var(--radius-float);
  border: 1px solid var(--color-border-control); background: var(--color-surface-subtle); }
.gate-group .gate-switch-knob { width: var(--space-sm); height: var(--space-sm); margin-left: var(--space-unit); border-radius: var(--radius-float);
  background: var(--color-border-control); transition: transform var(--motion-tap); }
.gate-group .gate-switch.is-on .gate-switch-track { border-color: var(--color-action-primary); background: var(--color-action-primary); }
.gate-group .gate-switch.is-on .gate-switch-knob { background: var(--color-action-label); transform: translateX(var(--space-md)); }
.gate-group .gate-switch.is-on .gate-switch-state { color: var(--color-text-primary); }
.gate-group .gate-locked { flex: none; font-size: var(--font-size-meta); font-weight: var(--font-weight-medium); color: var(--color-text-secondary); }
/* Zara's pass (2026-11-28): the switch sits at the end of the label's line, spanning the label and purpose lines, where
   a locked row shows "Always on". Reading order stays label, purpose, switch. */
.gate-group .gate-switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: center; }
.gate-group .gate-switch-row > * { grid-column: 1; }
.gate-group .gate-switch-row > .gate-switch { grid-column: 2; grid-row: 1 / span 2; }
.gate-group .gate-switch-row > p { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .gate-group .gate-switch-knob { transition: none; }
}

/* DESK-413: the owner's review time, one meta line like "Checked", under the proof. No colour, no motion. */
.review-line { margin-top: var(--space-xs); }
.review-total-card { display: grid; gap: var(--space-xs); }
.review-total-card p { margin: 0; }
.review-total-label { font-size: var(--font-size-meta); color: var(--color-text-secondary); }
.review-total { font-size: var(--font-size-h1); font-weight: 600; line-height: 1.2; color: var(--color-text-primary); }
.review-total-line { color: var(--color-text-secondary); }
.review-bars { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.review-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-sm); }
.review-bar-fill { display: block; height: 4px; border-radius: 2px; background: var(--color-text-muted); }
.review-bar-time { font-family: var(--font-family-mono); font-size: var(--font-size-code); color: var(--color-text-muted); }
/* DESK-520 slice 1: review minutes per week. One neutral line, no colour for fast or slow, no motion. */
.review-chart-card { display: grid; gap: var(--space-xs); }
.review-chart-card p { margin: 0; }
.review-chart-label { font-size: var(--font-size-meta); color: var(--color-text-secondary); }
.review-chart-headline { font-weight: 600; color: var(--color-text-primary); }
.review-chart { display: block; width: 100%; max-width: 480px; height: auto; overflow: visible; }
.review-chart-base { stroke: var(--color-border-subtle); stroke-width: 1; }
.review-chart-line { fill: none; stroke: var(--color-text-secondary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.review-chart-point { fill: var(--color-surface-raised); stroke: var(--color-text-secondary); stroke-width: 2; }
.review-chart-date { fill: var(--color-text-muted); font-family: var(--font-family-mono); font-size: 11px; }
/* DESK-520 slice 2: the previous period and the guide are dashed; the plot takes keyboard focus. No motion. */
.review-chart { touch-action: pan-y; cursor: crosshair; border-radius: var(--radius-button); }
.review-chart:focus { outline: none; }
.review-chart:focus-visible { outline: var(--focus-ring-width) solid var(--color-text-primary); outline-offset: var(--focus-ring-offset); }
.review-chart-before { fill: none; stroke: var(--color-text-muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.review-chart-guide { stroke: var(--color-border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
/* Round 2 (cold review 12): the shown week's point is larger and filled, so it reads without the guide, in high contrast too. */
.review-chart-point.is-current { fill: var(--color-text-secondary); }
/* DESK-520 hardening round 1: on a phone a week's headline can wrap to two lines; keep room for both, so the chart under
   the finger doesn't jump as the headline changes. High contrast: the lines and points take the system's text colour. */
@media (max-width: 480px) { .review-chart-headline { min-height: 2.6em; min-height: 2lh; } }
@media (forced-colors: active) {
  .review-chart-line, .review-chart-point, .review-chart-before, .review-chart-guide, .review-chart-base { stroke: CanvasText; }
  .review-chart-point { fill: Canvas; }
  .review-chart-point.is-current { fill: CanvasText; }
  .review-chart-date { fill: CanvasText; }
}

/* DESK-428: "Waiting on you" on Your Desk. The amber pill is the proof pill's; the line is a plain link. */
.waiting-card { display: grid; gap: var(--space-xs); justify-items: start; }
.waiting-line { margin: 0; }



