/* COPIED VERBATIM from overlord-central app/static/css/oc.css at OC commit 99f0869b (99f0869b8df1444a4a65a29f95fe81cec8c86f98).
 * Do not edit below this header: Lesson Planner rules and the --brand override live in static/lp.css.
 * Refs lesson-planner#163, epic #162. Source md5 5ca27edd527d06d55efe403e47f1e0a4 (1559 lines).
 */
/* Overlord Central design system. Refs #3307, epic #3306.
 *
 * ONE place for the app's tokens and shell primitives. Everything here is
 * `oc-` prefixed, so this file can sit in the same cascade as a page that
 * brings its own complete stylesheet (an Under the Hood document does exactly
 * that) without either one styling the other's elements.
 *
 * Cascade note, historical since #3321 deleted the Tailwind play CDN: that CDN
 * was a runtime JIT that injected its generated <style> at the END of <head>,
 * after every stylesheet we link (verified 2026-09-12: last stylesheet link at
 * head index 33, Tailwind's style at index 35). So a bare element rule here
 * LOST to preflight, and every base rule below is scoped to a class
 * (body.oc-body, .oc-doc a) to outrank it on specificity rather than on order.
 * The scoping is harmless now and stays; the reset block below does
 * preflight's job.
 *
 * The palette and type trio are promoted verbatim from
 * docs/underhood/live-meeting-pipeline.html so the app and its Under the Hood
 * pages read from one vocabulary.
 */

:root{
  /* dark is the app default; light is a real, supported second skin */
  --ground:#0D1215;
  --surface:#151C20;
  --surface-2:#1B2429;
  --ink:#E5EDF0;
  --ink-2:#B4C1C7;
  --muted:#8A979E;
  --line:#2B373D;
  --line-soft:#222C31;
  /* Refs #3438: the alternating week band on a ledger list. Deliberately
     BETWEEN surface and surface-2, because a banded row still has to show a
     hover state and hover is surface-2. */
  --band:#181F24;

  /* status semantics. These three carry meaning and nothing else may:
     signal = fine, defer = needs a look, halt = overdue or broken. */
  --signal:#4FBFA2; --signal-soft:#10322B;
  --defer:#D7A44F;  --defer-soft:#312612;
  --halt:#E08D8B;   --halt-soft:#331D1C;

  /* identity and the primary action ONLY. Never status. */
  --brand:#D97757;
  --brand-soft:#2A1A14;

  /* Refs #3319: the AI / live layer, and nothing else. Hoisted from the live
     meeting surface's scoped --lm-accent (oc#2721), which kept it apart from
     the status set on purpose: an accent that also means "fine" cannot mark
     what the copilot added. Not a status colour and not the brand. */
  --live:#2DD4BF;
  --live-soft:#0F2E2B;

  --sans:"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:"IBM Plex Serif", Georgia, serif;
  --mono:"IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --rail:232px;
}

:root[data-theme="light"]{
  --ground:#E8EBED; --surface:#FFFFFF; --surface-2:#F1F4F5;
  --ink:#10161A; --ink-2:#39444B; --muted:#64717A;
  --line:#C7D0D5; --line-soft:#DEE4E7; --band:#F8FAFA;
  --signal:#0F6B57; --signal-soft:#DCEDE8;
  --defer:#8A5A0B;  --defer-soft:#F5EAD6;
  --halt:#96302E;   --halt-soft:#F4E2E1;
  --brand:#C96442; --brand-soft:#F5E8E0;
  --live:#0F766E;  --live-soft:#D5EFEC;
}

/* ---------- the reset, and why these rules are NOT class-scoped ----------
 * Refs #3321 step 1, epic #3306.
 *
 * Everything ABOVE the base section is scoped to a class because the play CDN
 * injects its generated <style> at the END of <head>, after every sheet we
 * link, so a bare element rule here loses to PREFLIGHT on order. These rules
 * are the deliberate exception: they must match bare elements, because they
 * exist to REPLACE preflight when #3321 deletes the CDN.
 *
 * Deleting that script tag deletes Tailwind's reset along with its utilities,
 * and the census cannot see that: it counts class tokens, and preflight rules
 * match elements. `utility_uses == 0` is necessary and not sufficient.
 *
 * MEASURED before writing, on the deployed app at 0aff3045, by snapshotting
 * computed styles on a real page, removing the injected <style>, and diffing.
 * All 20 probed tags changed. The three that would have bitten:
 *   - a bare <button> reverts to the UA chrome button: colour rgb(229,237,240)
 *     to rgb(0,0,0), background transparent to rgb(239,239,239).
 *   - border-style on `*` goes solid to none, so any rule setting only a
 *     border WIDTH or COLOUR silently stops drawing its line.
 *   - h1 goes 14px/400 to 28px/700, and <ul> regains its bullets.
 *
 * This block is a faithful port of Tailwind v3 preflight, and it was verified
 * to be a port rather than an approximation: injected into the live page while
 * preflight was STILL LOADED, it changed 0 of 323 elements. The one deliberate
 * difference is the default border colour, which is var(--line) here and
 * #e5e7eb in preflight. That was measured too: across three pages, exactly ONE
 * painted border in the app currently uses Tailwind's default grey (a
 * class-less div on the meeting assistant), so the change is invisible today
 * and correct tomorrow. Hardcoding a foreign grey into this file to preserve
 * it would be the exact drift epic AC-4 exists to stop.
 *
 * Landing this BEFORE the deletion is the point: with preflight present it is
 * a no-op, so if anything moves, that is a bug in the port rather than a
 * consequence of the deletion. Two causes, separated.
 *
 * COMPLETED by #3321, and the separation paid off exactly as intended. Before
 * deleting the tag, every base route was rendered twice with the CDN served
 * and with it blocked, and every element's computed style diffed. The first
 * port turned out to be a subset: it had no `letter-spacing: inherit` on form
 * controls (a letter-spaced oc-btn measured 130px with the CDN and 105px
 * without), no `[role=button]` cursor (the Meeting Prep rows lost their
 * pointer), no `:disabled` cursor, and no code / small / sub / sup / summary /
 * placeholder / [hidden] rules. Its button selector was also one specificity
 * step higher than preflight's `input:where(...)`. The block below is now rule
 * for rule Tailwind 3.4.17's preflight as served (read out of the live page's
 * injected <style>), minus only the --tw-* custom-property defaults nothing
 * here reads. Two deliberate differences, both tokens rather than foreign
 * literals: border-color is var(--line) (see above) and the placeholder is
 * var(--muted) where preflight hardcodes #9ca3af. */
*, ::before, ::after{box-sizing:border-box; border-width:0; border-style:solid; border-color:var(--line);}
html, :host{
  line-height:1.5; -webkit-text-size-adjust:100%; -moz-tab-size:4; tab-size:4;
  font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings:normal; font-variation-settings:normal; -webkit-tap-highlight-color:transparent;
}
body{margin:0; line-height:inherit;}
hr{height:0; color:inherit; border-top-width:1px;}
abbr:where([title]){-webkit-text-decoration:underline dotted; text-decoration:underline dotted;}
h1, h2, h3, h4, h5, h6{font-size:inherit; font-weight:inherit;}
a{color:inherit; text-decoration:inherit;}
b, strong{font-weight:bolder;}
code, kbd, samp, pre{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings:normal; font-variation-settings:normal; font-size:1em;
}
small{font-size:80%;}
sub, sup{font-size:75%; line-height:0; position:relative; vertical-align:baseline;}
sub{bottom:-.25em;}
sup{top:-.5em;}
table{text-indent:0; border-color:inherit; border-collapse:collapse;}
button, input, optgroup, select, textarea{
  font-family:inherit; font-feature-settings:inherit; font-variation-settings:inherit;
  font-size:100%; font-weight:inherit; line-height:inherit; letter-spacing:inherit;
  color:inherit; margin:0; padding:0;
}
button, select{text-transform:none;}
button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']){-webkit-appearance:button; background-color:transparent; background-image:none;}
:-moz-focusring{outline:auto;}
:-moz-ui-invalid{box-shadow:none;}
progress{vertical-align:baseline;}
::-webkit-inner-spin-button, ::-webkit-outer-spin-button{height:auto;}
[type='search']{-webkit-appearance:textfield; outline-offset:-2px;}
::-webkit-search-decoration{-webkit-appearance:none;}
::-webkit-file-upload-button{-webkit-appearance:button; font:inherit;}
summary{display:list-item;}
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre{margin:0;}
fieldset{margin:0; padding:0;}
legend{padding:0;}
ol, ul, menu{list-style:none; margin:0; padding:0;}
dialog{padding:0;}
textarea{resize:vertical;}
input::placeholder, textarea::placeholder{opacity:1; color:var(--muted);}
button, [role='button']{cursor:pointer;}
:disabled{cursor:default;}
img, svg, video, canvas, audio, iframe, embed, object{display:block; vertical-align:middle;}
img, video{max-width:100%; height:auto;}
[hidden]:where(:not([hidden='until-found'])){display:none;}

/* ---------- base, scoped so preflight cannot win on order --------------- */
html{height:100%;}
body.oc-body{
  margin:0; min-height:100%;
  background:var(--ground); color:var(--ink);
  font-family:var(--sans); font-size:14px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.oc-rail *, .oc-drawer *, .oc-topbar *, .oc-masthead *, .oc-panel *{box-sizing:border-box;}

/* ---------- the rail (desktop) and the drawer (mobile) ------------------ */
.oc-rail{
  position:fixed; inset:0 auto 0 0; width:var(--rail); z-index:30;
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
}
.oc-drawer{
  position:fixed; inset:0 auto 0 0; width:min(288px,86vw); z-index:50;
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
}
.oc-scrim{position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:40;}

/* Alpine has not booted on first paint. Without this the drawer and the scrim
   render open for a frame on every page load. */
[x-cloak]{display:none !important;}
.oc-slide{transition:transform 200ms ease-out;}
.oc-slide-out{transform:translateX(-100%);}
.oc-slide-in{transform:translateX(0);}

/* A document that owns its own <html> and merely INCLUDES the rail (an Under
   the Hood page) still has to clear it. Scoped to the class so the page's own
   `body{margin:0}` cannot win by loading later. */
body.oc-hosted{margin-left:var(--rail);}

.oc-brand{
  display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink);
  padding:16px 18px 14px; border-bottom:1px solid var(--line); flex:0 0 auto;
}
/* The brand is the full logo when there is room for it (the open rail and the
   drawer) and the OC glyph alone where there is not (the collapsed rail and the
   phone top bar). The lockup's words ARE the app name, so no text sits beside
   it. Refs #3687. */
.oc-brand .oc-lockup{display:block; width:100%; line-height:0;}
.oc-brand .oc-lockup img{width:100%; max-width:196px; height:auto;}
.oc-brand .oc-glyph{display:none; line-height:0;}
.oc-brand .oc-glyph img{height:26px; width:auto;}

/* Every logo ships in two inks: white strokes for the dark skin, near-black
   for the light one, the orange accent shared. A PNG cannot take currentColor,
   so both are in the markup and the theme attribute picks one. Dark is the
   default, so a page that never sets data-theme still gets a logo. */
.oc-mark-light,
html[data-theme="dark"] .oc-mark-light{display:none;}
html[data-theme="light"] .oc-mark-light{display:inline;}
html[data-theme="light"] .oc-mark-dark{display:none;}

/* The nav SCROLLS and the footer is pinned. Before #3307 both were plain flex
   children with no containment, so the last item (Under the hood) rendered
   behind the footer at 1280x720 and could not be clicked. */
.oc-nav{flex:1 1 auto; min-height:0; overflow-y:auto; padding:10px 0 16px;}
.oc-navgroup{
  font-family:var(--mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); padding:14px 18px 5px; margin:0;
}
.oc-nav > .oc-navgroup:first-child{padding-top:2px;}
.oc-link{
  display:flex; align-items:center; gap:10px;
  padding:6px 18px; color:var(--ink-2); text-decoration:none;
  border-left:2px solid transparent; font-size:13.5px;
}
.oc-link:hover{background:var(--surface-2); color:var(--ink);}
.oc-link[aria-current]{border-left-color:var(--brand); color:var(--ink); background:var(--surface-2);}
.oc-link svg{width:15px; height:15px; flex:0 0 15px; stroke:currentColor; fill:none; stroke-width:1.6; opacity:.85;}
.oc-link .count{margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--muted);}
.oc-link .count[data-tone="halt"]{color:var(--halt);}
.oc-link .count[data-tone="defer"]{color:var(--defer);}
.oc-link.oc-sub{padding-left:44px; font-size:13px; color:var(--muted);}
.oc-link.oc-sub:hover{color:var(--ink-2);}
.oc-link.oc-all{font-style:italic;}

/* A collapsible nav group, native <details>, so it works on a page that never
   loads Alpine. Eight project children otherwise push the last menu item below
   the rail fold at 1280x720. */
.oc-branch > summary{cursor:pointer; list-style:none;}
.oc-branch > summary::-webkit-details-marker{display:none;}
.oc-branch > summary .chev{
  margin-left:auto; width:13px; height:13px; flex:0 0 13px;
  transition:transform 150ms ease-out;
}
.oc-branch[open] > summary .chev{transform:rotate(90deg);}
.oc-rule{height:1px; background:var(--line); margin:12px 18px;}
.oc-foot{
  flex:0 0 auto; border-top:1px solid var(--line); padding:11px 18px;
  display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--muted);
}
.oc-foot .who{color:var(--ink-2);}
.oc-theme{
  margin-left:auto; font-family:var(--mono); font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; border:1px solid var(--line); padding:2px 6px;
  background:none; color:var(--muted); cursor:pointer;
}
.oc-theme:hover{color:var(--ink); border-color:var(--muted);}

/* ---------- the collapsed rail (Refs #3538) ------------------------------
   ONE variable. --rail already sizes the rail and every margin that clears it
   (.oc-main, body.oc-hosted, the reading canvas), so collapsing is shrinking
   that and hiding the words; nothing else has to agree. The attribute is set
   from <head> by oc_theme.js before first paint, the same way the theme is, so
   a collapsed rail never flashes open on load. Icons stay; every link carries
   its label as a title for hover. Desktop only: under 900px the rail is
   already replaced by the top bar and drawer. */
html[data-rail="collapsed"]{--rail:56px;}
html[data-rail="collapsed"] .oc-rail .oc-lockup,
html[data-rail="collapsed"] .oc-rail .oc-navgroup,
html[data-rail="collapsed"] .oc-rail .oc-rule,
html[data-rail="collapsed"] .oc-rail .oc-link > span,
html[data-rail="collapsed"] .oc-rail .oc-link .chev,
html[data-rail="collapsed"] .oc-rail .oc-sub,
html[data-rail="collapsed"] .oc-rail .oc-foot .who,
html[data-rail="collapsed"] .oc-rail .oc-theme{display:none;}
html[data-rail="collapsed"] .oc-rail .oc-brand,
html[data-rail="collapsed"] .oc-rail .oc-link,
html[data-rail="collapsed"] .oc-rail .oc-foot{justify-content:center; padding-left:0; padding-right:0;}
/* The glyph is 2.27:1, so 26px tall is 59px wide and overruns a 56px rail.
   18px tall is 41px wide, which clears it. Refs #3687. */
html[data-rail="collapsed"] .oc-rail .oc-glyph{display:block;}
html[data-rail="collapsed"] .oc-rail .oc-glyph img{height:18px;}
.oc-railtoggle{
  display:flex; align-items:center; border:1px solid var(--line); padding:2px 4px;
  background:none; color:var(--muted); cursor:pointer;
}
.oc-railtoggle:hover{color:var(--ink); border-color:var(--muted);}
.oc-railtoggle svg{width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; transition:transform 150ms ease-out;}
html[data-rail="collapsed"] .oc-railtoggle svg{transform:rotate(180deg);}

/* ---------- mobile top bar --------------------------------------------- */
.oc-topbar{
  display:none; position:fixed; top:0; left:0; right:0; z-index:45;
  background:var(--surface); border-bottom:1px solid var(--line);
  padding:10px 14px; align-items:center; justify-content:space-between;
}
.oc-topbar a{display:flex; align-items:center; gap:8px; color:var(--ink); text-decoration:none;}
.oc-topbar img{height:24px; width:auto;}
.oc-burger{background:none; border:0; color:var(--muted); padding:6px; cursor:pointer;}
.oc-burger svg{width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8;}

/* ---------- the page column -------------------------------------------- */
.oc-main{margin-left:var(--rail); min-height:100vh;}

/* The centred content column inside oc-main. Refs #3330 ac-3: this replaces
   `max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6` in base.html, which was the
   SHELL's own last dependency on the play CDN and therefore a blocker for #3321
   no page conversion could clear.

   Values are the ones it replaced, so this is a like-for-like swap and not a
   redesign: 80rem is Tailwind's 7xl, and the padding steps are px-4 / sm:px-6 /
   lg:px-8 with py-6. Breakpoints are Tailwind's 640 and 1024 rather than the
   shell's own 900, on purpose: matching the rule being retired is what makes the
   swap invisible, and a page column that reflows at a different width than before
   would be a change nobody asked for.

   Width is an ATTRIBUTE, per the system's rule that a variant is never a class
   assembled from a value.

   Refs #3792 (epic #3791). The column is FLUID by default: the 80rem cap above
   was the Tailwind swap, never a decision, and it left most of a wide monitor
   empty. A page that is a reading column opts back in with data-width="read".
   `full` predates the flip (live lifecycle JS and post-call review set it) and
   now matches the default; it stays so those callers keep meaning "never cap
   me" if the default ever changes again. */
.oc-page{margin:0 auto; padding:24px 16px;}
.oc-page[data-width="read"]{max-width:80rem;}
.oc-page[data-width="full"]{max-width:none;}

@media (min-width:640px){
  .oc-page{padding-left:24px; padding-right:24px;}
}
@media (min-width:1024px){
  .oc-page{padding-left:32px; padding-right:32px;}
}

@media (max-width:899px){
  .oc-rail{display:none;}
  .oc-topbar{display:flex;}
  .oc-main{margin-left:0; padding-top:52px; padding-bottom:4.5rem;}
  body.oc-hosted{margin-left:0;}
}

/* ---------- masthead: how every page opens ------------------------------ */
.oc-masthead{border-top:3px solid var(--ink); padding-top:16px; margin:0 0 26px;}
.oc-eyebrow{font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:0 0 10px;}
.oc-masthead h1{
  font-family:var(--serif); font-weight:600; font-size:clamp(26px,3.2vw,36px);
  line-height:1.14; letter-spacing:-.015em; margin:0 0 10px; max-width:24ch; color:var(--ink);
}
.oc-stand{font-size:15.5px; color:var(--ink-2); max-width:70ch; margin:0 0 16px;}
.oc-receipts{
  display:flex; flex-wrap:wrap; gap:5px 20px;
  font-family:var(--mono); font-size:11px; color:var(--muted);
  border-top:1px solid var(--line-soft); padding-top:10px;
}
.oc-receipts b{color:var(--ink-2); font-weight:500;}
/* A receipts line sitting DIRECTLY under the eyebrow needs no rule of its own.
 * The hairline exists to separate the receipts from the standfirst above them;
 * with no title and no standfirst (see #3459) it becomes a second horizontal
 * rule 26px below the masthead's own 3px one, with a single mono line trapped
 * between the two. Adjacency rather than an attribute, because the condition
 * IS the adjacency and nothing has to remember to declare it. */
.oc-eyebrow + .oc-receipts{border-top:none; padding-top:0;}

/* ---------- panels replace rounded cards -------------------------------- */

/* The last three declarations are NOT redundant, and leaving them out is how
 * every panel in the app marked up as a <section> shipped with 25px of
 * padding, a 4px radius and a drop shadow for months. Refs #3456.
 *
 * style.css carries a bare `section { background; padding:25px;
 * border-radius:4px; box-shadow:0 2px 4px rgba(0,0,0,.2) }`. This rule beats
 * it on specificity for `background`, which it declares, and specificity is
 * IRRELEVANT to the other three, because two rules only compete over
 * declarations they both make. A property this rule is silent about is simply
 * taken from the bare one.
 *
 * That is a DIFFERENT hazard from the one in section 05 of the design-system
 * page, which is about a bare rule on a DESCENDANT beating inheritance
 * (`label` inside `.oc-toolbar`). This is a bare rule on the element the
 * primitive is applied TO. The generalised rule: a primitive must declare
 * every visual property a bare rule on its likely host element sets, not only
 * the ones it means to change. Nothing in the toolchain catches this. The
 * guard checks that a class is DEFINED, and this one is; it took looking at
 * the page.
 *
 * The real padding is oc-panel-body's. */
.oc-panel{background:var(--surface); border:1px solid var(--line); margin:0 0 22px;
  padding:0; border-radius:0; box-shadow:none;}
.oc-panel-head{
  display:flex; align-items:baseline; gap:12px; padding:10px 14px;
  border-bottom:1px solid var(--line); background:var(--surface-2);
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.oc-panel-head .n{margin-left:auto; color:var(--ink-2);}
.oc-panel-body{padding:14px;}

.oc-row{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 14px;
  padding:9px 12px; border-bottom:1px solid var(--line-soft);
  border-left:3px solid var(--muted); align-items:baseline;
}
.oc-row:last-child{border-bottom:none;}
.oc-row[data-tone="halt"]{border-left-color:var(--halt);}
.oc-row[data-tone="defer"]{border-left-color:var(--defer);}
.oc-row[data-tone="signal"]{border-left-color:var(--signal);}
.oc-row .t{font-size:13.5px; color:var(--ink);}
.oc-row .m{font-family:var(--mono); font-size:11px; color:var(--muted); white-space:nowrap;}
.oc-row .m[data-tone="halt"]{color:var(--halt);}
.oc-row .m[data-tone="defer"]{color:var(--defer);}

.oc-tag{
  font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  border:1px solid currentColor; padding:1px 5px; color:var(--muted); white-space:nowrap;
}
.oc-tag[data-tone="signal"]{color:var(--signal);}
.oc-tag[data-tone="defer"]{color:var(--defer);}
.oc-tag[data-tone="halt"]{color:var(--halt);}

.oc-btn{
  display:inline-block; font-family:var(--sans); font-size:12.5px; padding:5px 12px;
  border:1px solid var(--line); background:none; color:var(--ink-2);
  cursor:pointer; text-decoration:none;
}
.oc-btn:hover{border-color:var(--muted); color:var(--ink);}
.oc-btn[data-primary]{border-color:var(--brand); color:var(--brand);}

.oc-note{font-size:12.5px; color:var(--muted); padding:9px 12px;}
.oc-doc a{color:var(--signal);}

/* ---------- added by #3316, the first page conversion --------------------
 * Everything below exists because the Cockpit needed it. It lives HERE rather
 * than in a page <style> block on purpose: the moment a page keeps its own
 * stylesheet, the next page copies it, and that is how the app ended up with
 * 18 slices that each hardcode their own hexes.
 */

/* A panel that is the page's one hero. The accent is identity, not status, so
   it is the brand and never signal/defer/halt. */
.oc-panel[data-accent="brand"]{border-color:var(--brand);}

/* A row inside a panel body rather than flush to its edges. */
.oc-panel-body .oc-row{background:var(--surface-2); margin-bottom:4px;}
.oc-panel-body .oc-row:last-child{margin-bottom:0;}

/* The post-meeting chat keeps a turn's newlines, so a numbered reply stays a list. */
[data-pmchat="log"] .oc-row .t{white-space:pre-line;}

/* Two lines, then ellipsis. Click to expand is the page's job; this is only
   the clamp. */
.oc-clamp{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.oc-row .t[data-expandable]{cursor:pointer;}

/* Loading placeholder. A pulse rather than a spinner: the page is assembling
   panels, not waiting on one thing. */
.oc-skeleton{background:var(--surface); border:1px solid var(--line); animation:oc-pulse 1.5s ease-in-out infinite;}
@keyframes oc-pulse{0%,100%{opacity:.4;} 50%{opacity:1;}}

/* A failure the reader has to see. Uses halt, because a page that could not
   load its data IS the broken tone, and inventing a fourth colour for it would
   start the drift this milestone is undoing. */
.oc-alert{border:1px solid var(--halt); background:var(--halt-soft); color:var(--ink); padding:12px 14px; margin:0 0 22px; font-size:13.5px;}

/* Momentum dot. Same three tones as everything else. */
.oc-dot{width:8px; height:8px; border-radius:9999px; display:inline-block; flex:0 0 auto; background:var(--muted);}
.oc-dot[data-tone="signal"]{background:var(--signal);}
.oc-dot[data-tone="defer"]{background:var(--defer);}
.oc-dot[data-tone="halt"]{background:var(--halt);}

/* A row that is a whole link: the projects map. */
a.oc-row{text-decoration:none; color:inherit; border:1px solid var(--line); border-left-width:3px; margin-bottom:4px;}
a.oc-row:hover{border-color:var(--muted); border-left-color:var(--brand); background:var(--surface-2);}

.oc-eyebrow-sm{font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:0 0 8px;}
.oc-stack{display:flex; flex-direction:column; gap:14px;}

/* ---------- item, meta and form primitives (added by #3316) --------------
 * The off-project queue needed these and every later conversion will: an item
 * headline, a mono metadata line, a quoted snippet, a control row and the form
 * controls themselves. Generic on purpose, so S3 and S4 extend this file
 * rather than starting another page stylesheet.
 */
.oc-lede{font-size:14.5px; color:var(--ink); font-weight:500; margin:8px 0;}
.oc-meta{font-family:var(--mono); font-size:11.5px; color:var(--muted); line-height:1.7;}
.oc-meta b{color:var(--ink-2); font-weight:500;}
.oc-snippet{white-space:pre-wrap; color:var(--ink-2); font-size:13px;
  border-left:3px solid var(--line); padding-left:12px; margin-top:8px;
  overflow-wrap:anywhere;} /* #3826: a quote is data; a pasted path or URL breaks rather than widening a sheet */
.oc-reviewed{opacity:.55;}

.oc-actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:12px;}
.oc-select, .oc-input{
  font-family:var(--sans); font-size:12.5px; padding:5px 8px;
  border:1px solid var(--line); background:var(--surface-2); color:var(--ink);
}
.oc-input{min-width:180px;}
/* Never wider than the container. A <select> sizes itself to its LONGEST option,
   and options are data: one NYP application carries a 281-character comma list as
   its region, and the Applications filter pushed the page to 2000px wide
   (Refs #3510, found on the deployed page). */
.oc-select, .oc-input{max-width:100%;}
.oc-select:focus, .oc-input:focus{outline:none; border-color:var(--brand);}
.oc-btn:disabled{opacity:.5; cursor:default;}

.oc-msg{font-family:var(--mono); font-size:11.5px; color:var(--muted);}
.oc-msg[data-tone="signal"]{color:var(--signal);}
.oc-msg[data-tone="halt"]{color:var(--halt);}

.oc-toolbar{display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  margin:0 0 18px; font-size:13px; color:var(--ink-2);}
/* The colour is NOT redundant with .oc-toolbar's, and leaving it out is a
   light-theme bug. style.css:188 carries a bare `label{color:var(--text-color)}`,
   and --text-color is #F0EEE6, a dark-theme value that does not flip with
   [data-theme]. Inheritance loses to ANY direct rule on the element, however
   weak, so a toolbar label inherited nothing and rendered near-white on the
   light ground. Found by looking at the deployed page in light theme, where the
   three History checkboxes were legible only as a smudge (Refs #3438). */
.oc-toolbar label{display:flex; gap:6px; align-items:center; cursor:pointer; color:var(--ink-2);}
/* A labelled control is a flex row, and a flex row's floor is its content: a <select>
   inside one is as wide as its LONGEST option, and options are data. The action-item
   sheet's Objective picker lists every NYP objective, the longest 101 characters plus
   " (2026-11-13)", about 740px of select inside a 484px sheet body; the select's own
   max-width:100% resolves against the label, which had grown to fit it, so it clamped
   nothing and the body scrolled sideways (Refs #3826, found on the deployed Morning
   Dashboard and NYP page). The label may not exceed the toolbar, and the select may
   shrink inside it; the closed control truncates, the open list still shows every
   option whole. An .oc-input keeps its 180px floor, which always fits. */
.oc-toolbar label{min-width:0; max-width:100%;}
.oc-toolbar label > .oc-select{min-width:0;}

/* A <details> in page CONTENT, as opposed to the nav's collapsible group. */
.oc-disclosure{margin-top:8px; font-size:13px;}
.oc-disclosure > summary{cursor:pointer; color:var(--muted); font-size:12.5px;}
.oc-disclosure > summary:hover{color:var(--ink-2);}

/* ---------- added by #3317, the Morning Dashboard conversion --------------
 * 1,222 lines and 259 class attributes, so this page was the milestone's
 * primitive-gap discoverer by design. Everything below was DEMANDED by it and
 * is written generically, because S4's three templates will want the same
 * shapes and the alternative is a nineteenth page stylesheet.
 */

/* Two classes shipped UNDEFINED by #3316: cockpit.html:59 carries .oc-kv and
   :124 carries .oc-cols, and neither was ever written in any stylesheet, so
   the Cockpit's facing line and its two-column split have been rendering as
   plain blocks since S2. Defined here rather than filed, because S3 needed
   both anyway and a class with no rule is the same defect `nav-active` was. */
.oc-cols{display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:0 18px;}
.oc-kv{display:grid; grid-template-columns:92px minmax(0,1fr); gap:2px 10px;
  align-items:baseline; font-size:13px; margin:8px 0;}
.oc-kv .k{font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted);}

/* A panel-head count that carries a tone. The head is where a client-rendered
   page puts the number it just fetched, so a brief that is 14 hours stale has
   to be able to say so in the same slot a fresh one uses. */
.oc-panel-head .n[data-tone="signal"]{color:var(--signal);}
.oc-panel-head .n[data-tone="defer"]{color:var(--defer);}
.oc-panel-head .n[data-tone="halt"]{color:var(--halt);}

/* An item row with a body and a trailing control cluster. oc-row's grid
   already has the two tracks; these name them, so a row with buttons stops
   being a hand-built flex box on every page that has one. */
.oc-rowbody{min-width:0; overflow-wrap:anywhere;} /* #3792: a long URL wraps in the row instead of widening the page */
.oc-rowbody[data-clickable]{cursor:pointer;}
/* #3871: a clickable row body whose title is its link (the Meetings feed card) shows the
   click target on hover; the row cannot itself be an <a> because it holds a second link. */
.oc-rowbody[data-clickable]:hover .t{color:var(--brand);}
.oc-rowacts{display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end;}

/* The mono metadata line under an item headline: wrapping, self-separating,
   no gap utility at the call site. This one shape was 21 of the 259 class
   attributes on the unconverted page. */
.oc-metarow{display:flex; flex-wrap:wrap; align-items:baseline; gap:1px 12px;
  font-family:var(--mono); font-size:11px; color:var(--muted); margin-top:5px;}
.oc-metarow b{color:var(--ink-2); font-weight:500;}
.oc-metarow a{color:var(--signal);}
.oc-metarow i{font-style:italic;}
/* A metadata value is DATA, and data holds unbroken tokens: four people carry
   an Exchange X.500 address (/o=ExchangeLabs/ou=...) as their email, 100+
   characters with no break opportunity, and it pushed the People page 100px
   past a 412px phone (Refs #3318). Break inside a token only when it cannot
   fit, so an ordinary email still wraps at its own boundaries. */
.oc-metarow > *, .oc-meta{min-width:0; overflow-wrap:anywhere;}
.oc-metarow [data-tone="signal"]{color:var(--signal);}
.oc-metarow [data-tone="defer"]{color:var(--defer);}
.oc-metarow [data-tone="halt"]{color:var(--halt);}

/* halt and defer were already here; signal was missing, which is why a
   trend-up momentum score had nowhere to render green. */
.oc-row .m[data-tone="signal"]{color:var(--signal);}

/* ---------- added by #3438, the History conversion -----------------------
 * A LEDGER: one line per record, with columns that line up down the page.
 *
 * This is oc-row's sibling rather than a new vocabulary. Same 3px tone edge,
 * same hairline, same mono metadata, same [data-tone] attribute. What differs
 * is that oc-row has two tracks and lets content set the height, while a
 * ledger names every track: once a list stops carrying per-row prose, every
 * field except the title is fixed width, and a column that ALIGNS down fifty
 * rows is the entire reason the page is scannable.
 *
 * Generic on purpose. The Projects list and People want this shape too, and
 * the alternative is a nineteenth page stylesheet.
 */
.oc-ledger{
  display:grid; grid-template-columns:62px 118px minmax(0,1fr) 108px 104px 108px;
  gap:0 14px; align-items:baseline;
  padding:7px 12px; border-bottom:1px solid var(--line-soft);
  border-left:3px solid var(--muted); background:var(--surface);
}
.oc-ledger:last-of-type{border-bottom:none;}
.oc-ledger[data-tone="halt"]{border-left-color:var(--halt);}
.oc-ledger[data-tone="defer"]{border-left-color:var(--defer);}
.oc-ledger[data-tone="signal"]{border-left-color:var(--signal);}

/* The week break: three signals at a boundary and NO separator row, so the
   column keeps flowing. A 5px gutter, a full-strength rule where the hairline
   would be, and an alternating tint so a twelve-meeting week still reads as one
   block. Parity is set by the ISO WEEK NUMBER rather than by row order, so the
   band belongs to the week: it survives a month boundary and does not flip when
   a filter removes half the rows. Hover is listed after the band so it wins. */
.oc-ledger[data-weekstart]{margin-top:5px; border-top:1px solid var(--line);}
.oc-ledger[data-band="b"]{background:var(--band);}
.oc-ledger:hover{background:var(--surface-2);}

.oc-ledger .id,.oc-ledger .when,.oc-ledger .proj,.oc-ledger .state{
  font-family:var(--mono); font-size:11px; color:var(--muted); white-space:nowrap;
}
.oc-ledger .when b{color:var(--ink-2); font-weight:500; margin-right:6px;}
.oc-ledger .id{user-select:all;}
.oc-ledger .proj{overflow:hidden; text-overflow:ellipsis;}
.oc-ledger .t{
  font-size:13.5px; color:var(--ink); min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer;
}
.oc-ledger .t:hover{color:var(--brand);}
.oc-ledger .state[data-tone="signal"]{color:var(--signal);}
.oc-ledger .state[data-tone="defer"]{color:var(--defer);}
.oc-ledger .state[data-tone="halt"]{color:var(--halt);}
.oc-ledger .acts{display:flex; align-items:center; gap:6px; justify-content:flex-end;}
/* A row's action button never wraps. At 78px the track was narrower than "Run
   Refine", so that one button broke onto two lines and made its row taller than
   every other row in the column, which is the one thing a ledger must not do. */
.oc-ledger .acts .oc-btn{white-space:nowrap; padding:4px 9px; font-size:12px;}

/* Refs #3489: the accept-as-is tick, on the Needs a look panel only.

   The widening is SCOPED to that panel rather than applied to .oc-ledger,
   because the ledger's track list is shared verbatim with .oc-colhead and the
   comment on that rule is the reason: two grids that drift by a pixel are worse
   than no header at all. The panel carries no column header of its own, so it
   can afford the extra 26px icon plus its gap where the main list cannot.

   Hover goes to signal green, so the gesture reads as confirming a state rather
   than removing a row. Nothing here hides or deletes anything. */
#history-attention-panel .oc-ledger{
  grid-template-columns:62px 118px minmax(0,1fr) 108px 104px 140px;
}
.oc-icon[data-accept]:hover{color:var(--signal); border-color:var(--signal);}
.oc-ledger .detail{
  grid-column:1 / -1; padding-block:10px 4px; margin-top:7px;
  border-top:1px dashed var(--line);
}

/* The column header. Its own rule rather than a modifier, because it must
   share the ledger's track list EXACTLY: two grids that drift by a pixel are
   more confusing than no header at all. */
.oc-colhead{
  display:grid; grid-template-columns:62px 118px minmax(0,1fr) 108px 104px 108px;
  gap:0 14px; padding:6px 12px 6px 15px;
  border-bottom:1px solid var(--line); background:var(--surface-2);
  font-family:var(--mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted);
}

/* A square icon button: one glyph, no label, for a control that repeats on
   every row of a list and cannot afford a word. */
.oc-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:23px; padding:0; border:1px solid var(--line);
  background:none; color:var(--muted); cursor:pointer;
}
.oc-icon:hover{color:var(--ink); border-color:var(--muted);}
.oc-icon svg{
  width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}

/* A period separator inside a panel: same strip as a panel head, but marking a
   division WITHIN the list rather than the top of it. */
.oc-sep{
  display:flex; align-items:baseline; gap:12px; padding:7px 12px;
  border-bottom:1px solid var(--line); background:var(--surface-2);
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted);
}
.oc-sep .n{margin-left:auto; text-transform:none; letter-spacing:.04em;}

/* A toolbar that stays put while its list scrolls. The offset is 0 on desktop
   and clears the mobile top bar under 900px, matching .oc-main's own
   padding-top there. */
.oc-toolbar[data-sticky]{
  position:sticky; top:0; z-index:5;
  background:var(--ground); border-bottom:1px solid var(--line-soft);
  padding-block:10px; margin-bottom:14px;
}

@media (max-width:899px){
  .oc-toolbar[data-sticky]{top:52px;}
  .oc-colhead{display:none;}

  /* Refs #3444. The first version of this block kept the desktop's column
     IDENTITY on a phone: a 62px track for the id, with the day beneath it and
     the project beside that. `Fri 2026-09-18` is fourteen characters and every
     mono field here is nowrap, so it overflowed its 62px track and painted
     itself over the project slug on every row, at every width below the
     breakpoint. Measured on the deployed page at 412x915.

     The fix is to stop defending column identity once there is no room for
     it. A phone row is three LINES, not a squeezed grid:

       mr#662   Fri 2026-09-18                    [dl] [Run Refine]
       Tyler | Myles UIH Working Session
       ui-health   live only

     `auto auto minmax(0,1fr) auto` sizes the first two tracks to their own
     content, which is the property the old rule lacked: nothing here is
     pinned to a width narrower than the text it must hold. */
  .oc-ledger{grid-template-columns:auto auto minmax(0,1fr) auto; gap:3px 10px; padding-block:10px;}
  .oc-ledger .id{grid-column:1 / 2; grid-row:1;}
  .oc-ledger .when{grid-column:2 / 3; grid-row:1;}
  .oc-ledger .t{grid-column:1 / 4; grid-row:2; white-space:normal;}
  .oc-ledger .proj{grid-column:1 / 2; grid-row:3;}
  .oc-ledger .state{grid-column:2 / 4; grid-row:3;}
  .oc-ledger .acts{grid-column:4 / 5; grid-row:1 / 4; align-self:start; flex-wrap:nowrap;}
}

/* The one row that matters now, and the ones already behind you. data-next is
   the BRAND because it is identity ("this is the one"), the same call the
   Cockpit's hero panel makes; it is not a fourth status colour. */
.oc-row[data-next]{border-left-color:var(--brand); background:var(--brand-soft);}
.oc-row[data-past]{opacity:.5;}

/* A leading timestamp on a row: every piece of metadata is mono. */
.oc-stamp{font-family:var(--mono); color:var(--ink-2); margin-right:9px;}

.oc-btn[data-sm]{padding:2px 7px; font-size:11.5px;}
.oc-note[data-flush]{padding:0;}

/* The energy banner, and any other alert that is a statement plus one
   control. data-quiet is the same banner after you have already answered it. */
.oc-alert[data-tone="defer"]{border-color:var(--defer); background:var(--defer-soft);}
.oc-alert[data-row]{display:flex; align-items:center; justify-content:space-between; gap:14px;}
.oc-alert[data-quiet]{opacity:.6;}
.oc-msg[data-tone="defer"]{color:var(--defer);}

.oc-clamp[data-lines="4"]{-webkit-line-clamp:4;}
.oc-scrollbox{max-height:22rem; overflow-y:auto;}
.oc-chips{display:flex; flex-wrap:wrap; gap:6px;}
/* A bare <label> inside a chip row takes its colour from the row, not from
 * style.css:188's `label{color:var(--text-color)}`. Refs #3449.
 *
 * This is the SAME defect #3438 fixed for .oc-toolbar label and it recurred
 * within two slices, which is the argument for stating it as a rule rather
 * than as a one-off: --text-color is #F0EEE6, a dark-theme value that does
 * not flip with [data-theme], and inheritance loses to ANY direct rule on the
 * element however weak, so a label inside a styled container inherits nothing
 * and renders near-white on the light ground.
 *
 * `inherit` rather than a token, because a chip row appears in a panel head
 * (muted) and in page content (ink-2), and the label should read as part of
 * whichever it is in. Caught in light theme on the deployed page; the Prep
 * panel head's Full / Partial / Transcript labels were invisible and the dark
 * screenshot showed nothing wrong. */
.oc-chips label:not(.oc-label){color:inherit;}
.oc-empty{text-align:center; color:var(--muted); padding:56px 0;}
.oc-snippet[data-quote]{font-style:italic;}

/* A form nested inside a row (the reroute capture). */
.oc-inset{background:var(--ground); border:1px solid var(--line); padding:12px; margin-top:12px;}
.oc-field{margin-bottom:10px;}
.oc-field:last-child{margin-bottom:0;}
.oc-label{display:block; font-family:var(--mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin:0 0 4px;}
/* border-radius:0 for the same reason .oc-panel carries it: style.css has a
 * bare `textarea` rule setting a 4px radius, and this one was silent about it.
 * Refs #3456. */
.oc-textarea{border-radius:0; font-family:var(--sans); font-size:12.5px; padding:5px 8px;
  border:1px solid var(--line); background:var(--surface-2); color:var(--ink); width:100%;}
.oc-textarea:focus{outline:none; border-color:var(--brand);}
.oc-input[data-wide], .oc-select[data-wide]{width:100%; min-width:0;}

/* Rendered markdown, which is what the overnight brief bodies are. The
   renderer used to emit a class per element (brief-md-table, brief-md-h) plus
   Tailwind utilities from _escMd, which put page styling inside a JS string
   literal where no stylesheet could reach it and no census could count it. It
   emits bare tags into this container now, and the styling is here. */
.oc-prose{font-size:12.5px; color:var(--ink-2); line-height:1.6;}
/* A section of a brief that is plain text with its own line breaks, rather
   than markdown run through the renderer. */
.oc-prose[data-prewrap]{white-space:pre-wrap;}
.oc-prose p{margin:4px 0;}
.oc-prose h3, .oc-prose h4{font-family:var(--sans); font-weight:600; color:var(--ink);
  font-size:13px; margin:10px 0 4px;}
.oc-prose ul{margin:4px 0; padding-left:16px;}
.oc-prose li{margin:2px 0;}
.oc-prose hr{border:0; border-top:1px solid var(--line); margin:10px 0;}
.oc-prose a{color:var(--signal);}
.oc-prose strong{color:var(--ink); font-weight:600;}
.oc-prose code{font-family:var(--mono); font-size:11px; background:var(--surface-2); padding:0 3px;}
.oc-prose table{width:100%; border-collapse:collapse; margin:8px 0; font-size:11.5px;}
.oc-prose th{text-align:left; padding:3px 6px; font-family:var(--mono); font-weight:500;
  font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
  border-bottom:1px solid var(--line);}
.oc-prose td{padding:3px 6px; border-bottom:1px solid var(--line-soft);}

/* ---------- added by #3346, the post-call review conversion ---------------
 * Three shapes that page demanded. Generic names, in this file rather than a
 * page block, per the rule this file already states.
 */

/* An item whose work is over: completed, dismissed, superseded. Distinct from
 * oc-reviewed, which means "you have already looked at this" and only dims.
 * This one says the item itself is finished, so it also strikes through. */
.oc-done{text-decoration:line-through; opacity:.55;}

/* A link inside a status message. The undo affordance on a dismissed email
 * draft is the only one today, and it was a hardcoded brand utility. */
.oc-msg a{color:var(--signal);}

/* Refs #3346, and it is load-bearing rather than a reset tidy-up.
 *
 * The post-call review hides a terminal row's action bar and an empty status
 * badge. It used to do that with a `hidden` CLASS, which is defined in
 * app/static/css/pages/meeting_assistant.css: a stylesheet that page DOES NOT
 * LINK. So it was working off the Tailwind CDN and would have broken silently
 * at #3321. The census could not see it, because it asks whether a class is
 * defined anywhere in the repo, not whether the defining sheet is loaded on
 * the page using it.
 *
 * The HTML attribute is the right answer, but the UA's own `[hidden]` rule is
 * user-agent origin and loses to ANY author rule, so `.oc-actions{display:flex}`
 * beats it and a hidden action bar stays visible. Hence an author-origin rule,
 * last in the file, and !important so the CDN's injected <style> (which lands
 * after every sheet we link) cannot win either. */
[hidden]{display:none !important;}

/* ---------- added by #3349, the CONTROLS vocabulary -----------------------
 * email_settings.html was the first converted page whose shapes are
 * INTERACTIVE rather than display, so it demanded a set this file did not
 * have. #3346 discovered the content primitives; this is the other half.
 *
 * All seven were lifted from an 87-line page <style> block that hardcoded
 * #262624, #3A3835, #1A1A19, #908F8C for surfaces and #10b981 / #f59e0b /
 * #ef4444 for status. The last three were signal / defer / halt written as
 * hexes, which is exactly the drift the tokens exist to stop.
 */

/* A real toggle. Checked state is an ATTRIBUTE, per the variant rule, and it
 * is `data-on` rather than a tone: a switch being on is not a status, it is a
 * value. Uses signal only because "on" and "fine" happen to agree here. */
.oc-switch{
  width:40px; height:22px; flex:0 0 auto; position:relative; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); border-radius:11px;
  transition:background 150ms ease-out, border-color 150ms ease-out;
}
.oc-switch::after{
  content:''; position:absolute; top:2px; left:2px; width:16px; height:16px;
  border-radius:50%; background:var(--muted); transition:transform 150ms ease-out, background 150ms ease-out;
}
.oc-switch[data-on]{background:var(--signal-soft); border-color:var(--signal);}
.oc-switch[data-on]::after{transform:translateX(18px); background:var(--signal);}

/* A tab bar. Mono and underlined rather than a filled pill, so it reads as
 * navigation and not as a row of buttons. */
.oc-tabs{display:flex; gap:2px; border-bottom:1px solid var(--line); margin:0 0 20px;
  overflow-x:auto; scrollbar-width:thin;}
.oc-tab{
  display:flex; align-items:center; gap:8px; padding:8px 14px;
  background:none; border:0; border-bottom:2px solid transparent; cursor:pointer;
  font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted);
}
.oc-tab:hover{color:var(--ink-2);}
.oc-tab[data-active]{color:var(--ink); border-bottom-color:var(--brand);}
/* A count on a tab (Refs #3508). Quieter than the label, and never wrapping
   the tab onto two lines: project detail has seven tabs, and .oc-tabs now
   scrolls sideways on a phone rather than squeezing them. */
.oc-tab{white-space:nowrap; flex:0 0 auto;}
.oc-tab .n{color:var(--ink-2); letter-spacing:.04em;}

/* The masthead's focus slot (Refs #3508): what the page is currently looking
   at, after its title. Filled by script, hidden until it is. */
.oc-masthead h1 .focus{font-weight:400; color:var(--muted); margin-left:.4em; font-size:.6em;}

/* A modal over a scrim. No blur: it costs a compositor pass on the Pi and
 * hides the context the reader was just looking at. */
.oc-modal-bg{position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.6);
  display:flex; align-items:center; justify-content:center; padding:20px;}
.oc-modal{
  background:var(--surface); border:1px solid var(--line);
  width:100%; max-width:480px; max-height:85vh; overflow-y:auto; padding:20px;
}
.oc-modal[data-wide]{max-width:640px;}
.oc-modal h3{font-family:var(--serif); font-weight:600; font-size:18px; margin:0 0 4px; color:var(--ink);}

/* A big-number tile. The number is tabular so a row of them does not jitter
 * as values change under a poll. */
.oc-stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:0 0 22px;}
.oc-stat{background:var(--surface); border:1px solid var(--line); padding:14px 16px;
  display:flex; align-items:center; gap:14px;}
.oc-stat[data-tone="defer"]{border-color:var(--defer);}
.oc-stat[data-tone="halt"]{border-color:var(--halt);}
.oc-stat .n{font-size:26px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums; color:var(--ink);}
.oc-stat[data-tone="signal"] .n{color:var(--signal);}
.oc-stat[data-tone="defer"] .n{color:var(--defer);}
.oc-stat[data-tone="halt"] .n{color:var(--halt);}
.oc-stat .k{font-size:13px; color:var(--ink-2);}
.oc-stat .s{font-family:var(--mono); font-size:10.5px; color:var(--muted);}
/* The label column may shrink and wrap, never spill past the tile border (#4008). */
.oc-stat > span:last-child{min-width:0; overflow-wrap:anywhere;}
/* The Next meeting tile's figure is a word ("Tomorrow"), too wide to share a row
 * with its label in a 160px cell, so it stacks: the day over the meeting (#4008). */
.oc-stat[data-stat="next_meeting"]{flex-direction:column; align-items:flex-start; justify-content:center; gap:8px;}
/* A tile that is a link (#3840): the anchor IS the tile, so a click or Enter
 * anywhere on it opens what it counts, and it keeps the tile's own colours. */
a.oc-stat{color:inherit; text-decoration:none; cursor:pointer;}
a.oc-stat:hover{background:var(--surface-2);}
a.oc-stat:focus-visible{outline:2px solid var(--signal); outline-offset:2px;}

/* The existing dot, now able to ask for attention. Reserved for a count that
 * is waiting on the reader; a dot that always pulses is wallpaper. */
.oc-dot[data-pulse]{animation:oc-beacon 1.6s ease-in-out infinite;}
@keyframes oc-beacon{
  0%,100%{box-shadow:0 0 0 0 rgba(215,164,79,.55);}
  50%{box-shadow:0 0 0 6px rgba(215,164,79,0);}
}

/* A chip that can be removed, and one that can be switched off. oc-chips
 * already lays them out. */
.oc-chip{
  display:inline-flex; align-items:center; gap:7px; padding:3px 8px;
  border:1px solid var(--line); background:var(--surface-2);
  font-family:var(--mono); font-size:11px; color:var(--ink-2); white-space:nowrap;
}
.oc-chip[data-off]{opacity:.45; text-decoration:line-through;}
.oc-chip .x{cursor:pointer; color:var(--muted); font-size:13px; line-height:1;}
.oc-chip .x:hover{color:var(--halt);}
.oc-chip button.x{background:none; border:0; padding:0; font:inherit; font-size:13px;}

/* Transient confirmations, bottom right. pointer-events is off on the stack
 * and back on for each toast, so a stale toast cannot eat a click on the page
 * underneath it. */
.oc-toasts{position:fixed; right:16px; bottom:16px; z-index:60;
  display:flex; flex-direction:column; gap:8px; pointer-events:none;}
.oc-toast{pointer-events:auto; padding:9px 14px; font-size:13px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink);}
.oc-toast[data-tone="signal"]{border-color:var(--signal); background:var(--signal-soft);}
.oc-toast[data-tone="halt"]{border-color:var(--halt); background:var(--halt-soft);}

/* A collapsible group heading, for a list of lists. The nav's oc-branch is a
 * <details>; this one is driven by page state, so it is a plain row. */
.oc-groupbar{
  display:flex; align-items:center; gap:9px; padding:8px 12px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); user-select:none;
}
.oc-groupbar:hover{border-color:var(--muted);}
.oc-groupbar .chev{width:13px; height:13px; flex:0 0 13px; stroke:currentColor; fill:none;
  stroke-width:1.8; color:var(--muted); transition:transform 150ms ease-out;}
.oc-groupbar[data-open] .chev{transform:rotate(90deg);}
.oc-groupbar .g{font-size:13px; color:var(--ink-2);}
.oc-groupbar .r{margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--muted);}

/* A card in a responsive grid of cards, which is what a folder list is. */
.oc-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px;}
.oc-card{background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--line); padding:11px 13px;}
.oc-card[data-tone="signal"]{border-left-color:var(--signal);}
.oc-card[data-tone="defer"]{border-left-color:var(--defer);}
.oc-card[data-tone="halt"]{border-left-color:var(--halt);}
.oc-card[data-clickable]{cursor:pointer;}
.oc-card[data-clickable]:hover{border-color:var(--muted);}
.oc-card[data-off]{opacity:.5;}

/* ---------- added by #3359, the Inbox Intelligence conversion -------------
 * ONE shape, out of a 331-use page. That is the answer to whether the #3349
 * controls vocabulary generalised or was shaped to one page: everything else
 * this page needed (stats, dot, chips, tags, cards, groupbar, toasts) already
 * existed and fit without argument.
 *
 * A popover menu hung off a control. It was .ix-snooze-menu / .ix-snooze-opt
 * in inbox_dashboard.html, hardcoding #1A1A19, #3A3835, #cbd5e1 and a purple
 * hover the palette does not have. The wrapper exists because the menu is
 * positioned against the control, not the page: without a positioned ancestor
 * an absolute popover escapes to the viewport, which is a bug you only see on
 * a scrolled row.
 *
 * z-index sits above the toast stack (60) and below a modal (100): a menu must
 * outrank a confirmation that just fired, and must never cover a dialog. */
.oc-menuwrap{position:relative; display:inline-block;}
.oc-menu{
  position:absolute; right:0; top:calc(100% + 4px); z-index:70; min-width:168px;
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--line); padding:2px;
}
.oc-menuitem{
  display:block; width:100%; text-align:left; padding:7px 11px;
  font-family:var(--sans); font-size:12.5px; color:var(--ink-2);
  background:none; border:0; cursor:pointer;
}
.oc-menuitem:hover{background:var(--surface-2); color:var(--ink);}

/* ---------- added by #3363, the TRANSCRIPT READER ------------------------
 * playback/playback.html is the first SERVER-RENDERED conversion, and the
 * first whose page <style> block was MECHANISM rather than decoration: the
 * speaker stripe, the utterance the audio is currently on, the search states
 * and the sticky rail. Recipe step 5 says a rule carrying real weight is a
 * primitive you just found, and this is one shape, not four: a transcript
 * reader. speaker_review.html and the live-meeting grid both render
 * transcripts today, so it lives here rather than in a fourth page sheet.
 *
 * The STATES are attributes, driven by the page's script: data-active,
 * data-search-match, data-search-hidden. They are the same names the script
 * already set, so the contract did not move; only the classes did.
 */

/* A wide reading column with a rail beside it. Single column until there is
   room for both, at the same 1024 breakpoint .oc-page uses. */
.oc-split{display:grid; grid-template-columns:minmax(0,1fr); gap:24px;}
@media (min-width:1024px){
  .oc-split{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
  .oc-sticky{position:sticky; top:16px;}
  /* Refs oc#3426. A sticky rail TALLER than the viewport cannot be scrolled to
     its end: it stays pinned at top:16px and its bottom sits below the fold until
     the whole page has scrolled past. The record rail reached 964px on mr#683 once
     the post-meeting chat joined it, putting Send under the fold on any screen
     shorter than that. Opt-in, not the default, because overflow:auto clips an
     absolutely positioned popover inside, and the prep and playback stickies
     have not been checked for one. */
  .oc-sticky[data-fit]{max-height:calc(100vh - 32px); overflow-y:auto;}
}

/* A split whose RAIL comes first, in source and on the left. Refs #3449.
 *
 * The default puts the reading column first and the rail beside it, which is
 * right when the rail is secondary: playback's transcript is the page and its
 * rail is metadata about it. Meeting Prep inverts that. Its rail is the
 * CHOOSER, and the content column is empty until the chooser fills it, so a
 * phone that stacks content-then-rail shows an empty state above the only
 * control that can resolve it. Source order is the stacking order, so the
 * variant is a source-order decision and the desktop tracks follow it. */
.oc-split[data-rail-first]{grid-template-columns:minmax(0,1fr);}
@media (min-width:1024px){
  .oc-split[data-rail-first]{grid-template-columns:minmax(0,1fr) minmax(0,2fr);}
}

/* One speaker's turn. `--speaker` is DATA: a hue per person, computed by the
   route. That is identity, the same category as the brand accent, and not a
   fourth status colour: three tones cannot tell six speakers apart. */
.oc-turn{padding:8px 10px 8px 12px; box-shadow:inset 3px 0 0 0 var(--speaker,var(--muted));}
.oc-turn:hover{background:var(--surface);}
.oc-turn[data-search-hidden="true"]{display:none;}
.oc-turn p{margin:3px 0 0; font-size:13.5px; line-height:1.65; color:var(--ink-2);}

/* The speaker's name. #4010: it used to be a pill filled with the data hue,
   and forty saturated pills down a transcript were hard to read. The hue now
   lives only on the turn's edge (above); the name is plain ink beside the
   person's face (.oc-speaker-face, an OCAvatar). Also a <button> on the live
   record transcript, so the button chrome is reset here. */
.oc-speaker{
  display:inline-block; padding:0; margin:0 4px 0 0; border:0; background:none;
  font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0;
  color:var(--ink);
}
button.oc-speaker{cursor:pointer;}
button.oc-speaker:hover{text-decoration:underline; text-underline-offset:2px;}
.oc-speaker[data-unknown]{color:var(--muted); font-weight:500; font-style:italic;}
.oc-turn > .oc-metarow{align-items:center; gap:2px 8px;}
.oc-speaker-face{display:inline-flex; flex:0 0 auto;}
.oc-speaker-face[data-unknown]{background:var(--surface-2); color:var(--muted);
  box-shadow:inset 0 0 0 1px var(--line);}

/* An utterance. Clicking one seeks the audio; the audio marks one active. */
.oc-utt{cursor:pointer; padding:0 2px; transition:background-color 120ms ease, box-shadow 120ms ease;}
.oc-utt:hover{background:var(--surface-2);}
.oc-utt[data-active="true"]{background:var(--surface-2); box-shadow:0 0 0 1px var(--line);}
.oc-utt[data-search-match="true"]{background:var(--defer-soft); box-shadow:0 0 0 1px var(--defer);}
.oc-utt[data-search-hidden="true"]{display:none;}

/* Relabel this speaker. Quiet until the turn is hovered, because it is one
   affordance per turn and forty of them shouting is unreadable. */
.oc-relabel{background:none; border:0; padding:0 4px; margin-right:6px; cursor:pointer;
  color:var(--muted); opacity:0; transition:opacity 120ms ease;}
.oc-relabel svg{width:12px; height:12px; display:block; stroke:currentColor; fill:none; stroke-width:1.8;}
.oc-turn:hover .oc-relabel{opacity:.75;}
.oc-relabel:hover{opacity:1; color:var(--ink);}

/* The topic timeline: one segment per topic, spanning first to last mention,
   its colour computed from the topic string. Data again, not status. */
.oc-timeline{position:relative; height:26px; margin-top:12px; overflow:hidden;
  background:var(--surface-2); border:1px solid var(--line);}
.oc-seg{position:absolute; top:0; height:100%; cursor:pointer; opacity:.7; transition:opacity 120ms ease;}
.oc-seg:hover{opacity:1;}

/* The work Timeline (#3803) draws its dated items as vis-timeline box/point items,
   whose stylesheet hard-codes near-black text on a transparent item, so in the dark
   skin every item label was unreadable (computed rgb(26,26,26) on the panel).
   Range bars keep the library's light fill and dark text; only box/point items
   take the skin's ink. Toned (data-tone) labels set their own colour. */
[data-workview="timeline"] .vis-item.vis-box,
[data-workview="timeline"] .vis-item.vis-point{color:var(--ink);}

/* A meeting on the work Timeline (#3873): a small filled diamond in the muted ink, with
   no label box, so it reads as context beside the lane's item points rather than as one
   of them. vis-timeline puts the item's className on both the point and its dot. */
[data-workview="timeline"] .vis-item.vis-point.oc-tl-meeting{background:transparent; border-color:transparent; cursor:pointer;}
[data-workview="timeline"] .vis-item.vis-point.oc-tl-meeting .vis-item-content{display:none;}
[data-workview="timeline"] .vis-item.vis-dot.oc-tl-meeting{width:8px; height:8px; padding:0; border:0;
  border-radius:1px; background:var(--muted); transform:rotate(45deg);}
[data-workview="timeline"] .vis-item.vis-point.oc-tl-meeting.vis-selected .vis-dot{background:var(--ink);}

/* A media element has no other way to fill its panel. */
.oc-audio{display:block; width:100%;}
.oc-note code, .oc-alert code{font-family:var(--mono); font-size:11px; background:var(--surface-2); padding:0 3px;}

/* ---------- added by #3365, the Under the Hood index ---------------------
 * A CARD that is itself a link, and a grid of wide ones. `a.oc-row` already
 * had the first shape for a row; a card needed the same, and the index of the
 * surface that documents this system is a poor place to hand-write it.
 */
.oc-grid[data-wide]{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));}
a.oc-card{display:block; text-decoration:none; color:inherit;}
a.oc-card:hover{border-color:var(--muted);}

/* The one that is SELECTED, for a card acting as a chooser. Refs #3372.
 * Same idiom as .oc-row[data-next]: brand plus brand-soft says "this is the
 * one" and is IDENTITY, not a fourth status colour. A second idiom for the
 * same meaning would be the drift this file exists to stop. */
.oc-card[data-current]{border-color:var(--brand); border-left-color:var(--brand); background:var(--brand-soft);}

/* ---------- added by #3449, the MEETING ASSISTANT chrome -----------------
 * The Meeting Assistant is ONE route with three modes, so its tab bar is the
 * only chrome common to all of them, and it has to carry the two controls
 * that belong to the surface rather than to a mode. Those controls used to
 * sit in a hand-built inline flex box beside a page-header h1 that History
 * then had to be branched around.
 *
 * All four additions are sub-elements of primitives that already exist. None
 * is a new name, which is the test recipe step 4 sets: a page that needs a
 * shape the primitives lack adds it here generically, and a page that needs a
 * variation of one adds an attribute or a scoped child, never a second class.
 */

/* A toolbar of PAGE FURNITURE rather than filters: controls scoped to the
 * whole surface, pushed away from the content they are not part of. Meeting
 * Assistant's build pill, Test button and live-STT chip are the case.
 *
 * This slot briefly lived on the tab bar, as `.oc-tabs .end`, and both went
 * when #3450 landed the three modes as rail sub-links and the in-page tab bar
 * became a second switcher for one choice. `a.oc-tab` went with it: #3349
 * wrote .oc-tab for <button> and email_settings.html still uses it that way,
 * so an anchor variant with no anchor to style would be exactly the
 * defined-nowhere-in-reverse that this file keeps finding. */
.oc-toolbar[data-end]{justify-content:flex-end;}

/* A control in a panel head. The count keeps its own margin-left:auto, so a
 * head carrying both still reads count-then-buttons. */
.oc-panel-head .acts{margin-left:auto; display:flex; align-items:center; gap:6px;}
.oc-panel-head .n + .acts{margin-left:12px;}
.oc-panel-head .acts .oc-btn{padding:2px 8px; font-size:11px;}

/* A DETERMINATE progress bar, for a job whose phases are known: the Post-Call
 * analysis reports its pass list as it goes. Square and hairline like
 * everything else.
 *
 * The fill is --brand rather than a tone, and that is the tokens table's rule
 * rather than a preference: a job that is running is neither fine, nor
 * deferred, nor broken. It is the primary thing on the screen while it runs,
 * which is exactly what --brand means here.
 *
 * The WIDTH is set inline by the script, and that is the one inline style
 * this design cannot route through a class, because the value is the
 * geometry. Everything else about the bar lives here. */
.oc-meter{height:6px; background:var(--surface-2); border:1px solid var(--line); overflow:hidden;}
.oc-meter .bar{height:100%; width:0; background:var(--brand); transition:width 400ms ease;}
.oc-meter[data-tone="halt"] .bar{background:var(--halt);}

/* A ROW that is the one currently selected, for a list acting as a chooser.
 * Exactly the .oc-card[data-current] idiom #3372 added, applied to the shape
 * that needed it next: brand border on brand-soft, meaning "this is the one".
 * Identity, not a fourth status colour.
 *
 * DISTINCT from .oc-row[data-next], which the Morning Dashboard uses and which
 * means the next thing in TIME. Meeting Prep has both facts and deliberately
 * shows only this one as a tint, stating "next" in the masthead receipts line
 * instead: two rows wearing the brand tint for two different reasons is
 * unreadable, and the row the reader is acting on wins. */
.oc-row[data-current]{border-left-color:var(--brand); background:var(--brand-soft);}

/* A tag carrying the brand rather than a tone. Same spelling as
 * .oc-panel[data-accent="brand"], because it is the same claim: this is
 * identity, so it takes a NAME and not a status value. */
.oc-tag[data-accent="brand"]{color:var(--brand);}

/* auto-FIT rather than the default auto-fill. The two differ only when the
 * grid is under-filled, and then they differ completely: auto-fill holds the
 * empty tracks open and auto-fit collapses them. Post-Call's claim form is
 * hidden until a recording is claimed, so with auto-fill its column sits empty
 * beside a recordings list squeezed into half the width, for the whole time
 * nothing is being claimed, which is nearly always. */
.oc-grid[data-fit]{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));}

/* A panel head that is itself the failure. The head is the only part of a
 * failed panel a reader scanning the page will see. */
.oc-panel-head[data-tone="halt"]{color:var(--halt); border-bottom-color:var(--halt);}

/* A titled block inside a longer run of content, separated from the next by a
 * hairline. Not a panel: a panel is a bordered box with a head, and a stack of
 * eight of them inside one drawer is a wall of boxes.
 *
 * This replaces `.prep-section` and `.prep-ai-section`, which were TWO names
 * for one shape, each defined twice in meetings.css and one of them
 * (`.prep-ai-section`) never defined at all. That is the nav-active / oc-cols
 * defect for the third and fourth time on this system, found by the #3449
 * conversion rather than by anything in the toolchain. */
.oc-sect{margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--line-soft);}
.oc-sect:last-child{margin-bottom:0; padding-bottom:0; border-bottom:none;}

/* ---------- added by #3318, S4: the People conversion --------------------
 * Three shapes that page demanded and the vocabulary lacked. Each is written
 * for the next page rather than this one: project_detail.html opens a person
 * the same way, and every list of people or projects in the app puts a small
 * leading thing beside a name.
 */

/* A leading thing, a body, and optionally a trailing thing, on one line: an
 * avatar beside a name, a checkbox beside an avatar, an icon beside a link.
 * `.b` is the body and is the only part allowed to shrink, so a long name
 * truncates instead of pushing the trailing tag off the card. It replaces
 * five hand-built inline flex boxes on the People page alone. */
.oc-media{display:flex; align-items:center; gap:10px; min-width:0;}
.oc-media > .b{flex:1 1 auto; min-width:0;}
.oc-media .oc-lede{margin:0;}
.oc-media > img{width:48px; height:48px; border-radius:50%; object-fit:cover; flex:0 0 auto;}
.oc-media > svg{width:15px; height:15px; flex:0 0 15px; stroke:currentColor; fill:none; color:var(--muted);}

/* A SHEET: a record opened beside the list it came from, rather than over it.
 * Not a modal, because the reader is reading a record and not answering a
 * question, and not the nav drawer, which is fixed to the left and belongs to
 * the shell. People's detail panel is the first; project_detail.html's person
 * view is the obvious second.
 *
 * z-index 90 sits above the toasts (60) and the menus (70) and BELOW a modal
 * (100), because Edit and Merge open a dialog from inside the sheet and that
 * dialog must land on top of it. Its scrim is the shell's .oc-scrim raised by
 * an attribute, per the variant rule, rather than a second scrim class. */
.oc-sheet{
  position:fixed; top:0; right:0; bottom:0; width:min(520px,100vw); z-index:90;
  background:var(--surface); border-left:1px solid var(--line);
  display:flex; flex-direction:column;
}
.oc-scrim[data-top]{z-index:85;}
.oc-sheet .head{
  flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--line);
}
.oc-sheet .head h2{font-family:var(--serif); font-weight:600; font-size:20px; line-height:1.2; color:var(--ink);}
.oc-sheet .body{flex:1 1 auto; min-height:0; overflow-y:auto; padding:16px 18px;}
.oc-sheet .body a{color:var(--signal);}
.oc-sheet .foot{
  flex:0 0 auto; display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap;
  padding:12px 18px; border-top:1px solid var(--line);
}

/* A one-glyph toggle that is ON: the key-contact star. aria-pressed is the
 * state, so the attribute a screen reader announces and the one the style
 * reads are the same one and cannot disagree. Brand, because a key contact is
 * identity, not status. */
.oc-icon[aria-pressed="true"]{color:var(--brand); border-color:var(--brand);}

/* ---------- added by #3511, S4.3: the triage tab -------------------------
 * The Issues and Actions tab is the first converted surface whose filters are
 * a TOGGLE GROUP (three scopes and seven views, exactly one of each pressed)
 * and whose rows lead with a checkbox. Every addition is an attribute or a
 * scoped child of a primitive that already exists; none is a new name.
 */

/* One button of a set where exactly one is on. The same call as
 * .oc-icon[aria-pressed] above: the state a screen reader announces and the
 * one the style reads are one attribute. Brand, because "the view you are in"
 * is identity, not status. */
.oc-btn[aria-pressed="true"]{border-color:var(--brand); color:var(--brand); background:var(--brand-soft);}
/* A count inside a button, quieter than its label. */
.oc-btn .n{font-family:var(--mono); font-size:10.5px; color:var(--muted); margin-left:6px;}
.oc-btn[aria-pressed="true"] .n{color:inherit;}

/* A media line whose body runs to several lines. The leading control sits on
 * the FIRST line's baseline instead of the block's vertical centre, which is
 * where a row checkbox beside a three-line action item otherwise lands. */
.oc-media[data-baseline]{align-items:baseline;}

/* A group bar carrying more than a label and a count wraps instead of pushing
 * the page sideways. The triage workstream bar adds a priority meter and a
 * review watermark with a button, which is wider than a 412px phone. A no-op
 * wherever the bar already fits, which is every other bar in the app. */
.oc-groupbar{flex-wrap:wrap;}
/* A meter has no content to size it, so as a flex item it collapses to zero
 * width unless it is given a length. */
.oc-groupbar .oc-meter{flex:0 0 110px;}
.oc-meter[data-tone="defer"] .bar{background:var(--defer);}

/* ---------- added by #3509, S4.4: the relations surface ------------------
 * The project Relations tab is a graph a library paints, a detail panel that
 * slides over it, a rail of starting points beside it, and a mode where the
 * whole tab takes the viewport. It replaced a 294-line page <style> block
 * whose colours were the dark-only legacy tokens, which is why the tab and
 * every detail panel rendered dark-on-dark in the light skin.
 *
 * relations_view.js is SHARED with the live meeting's System Diagram tile.
 * That tile keeps its own markup and its own stylesheet (meeting_assistant.css)
 * until S5; what it shares with this surface is the markup the renderer
 * emits into its detail panel, which is on these primitives now.
 */

/* A surface a script draws into: a vis-network graph or a vis-timeline. The
 * renderer reads this element's computed `color` as the graph's label ink, so
 * the labels follow the theme without the script knowing there is one, and a
 * host with its own ink (the live tile) keeps it. */
.oc-canvas{position:relative; width:100%; height:540px; border:1px solid var(--line);
  background:var(--surface); color:var(--ink);}

/* A positioned box holding a canvas and the panels that slide over it. It
 * clips the closed panel, which sits translated off its right edge and would
 * otherwise widen the page by its own width. align-self keeps it as tall as
 * its canvas in a grid row a taller rail sets, or the panel overhangs it. */
.oc-viewport{position:relative; min-width:0; overflow:hidden; align-self:start;}

/* A detail panel that slides in OVER its viewport rather than beside it, so
 * the graph keeps its width. Not .oc-sheet, which is fixed to the window. The
 * open state is an attribute, per the variant rule. */
.oc-sidepanel{
  position:absolute; top:0; right:0; bottom:0; width:min(340px,92%); z-index:5; overflow-y:auto;
  background:var(--surface); border-left:1px solid var(--line); box-shadow:-4px 0 12px rgba(0,0,0,.25);
  transform:translateX(100%); transition:transform 180ms ease-out;
}
.oc-sidepanel[data-open]{transform:none;}

/* What a detail panel CONTAINS, separate from the shell that holds it. The
 * renderer draws this into whichever shell the surface has: .oc-sidepanel
 * here, and the live System Diagram tile's own aside, which keeps its own
 * shell until S5. Scoping these to the shell would have left the live tile's
 * head unstyled, with an avatar at its natural size. */
.oc-detail .head{display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line);}
.oc-detail .head > .b{flex:1 1 auto; min-width:0;}
.oc-detail .head h3{font-family:var(--serif); font-weight:600; font-size:16px; line-height:1.25; color:var(--ink);}
.oc-detail .head .oc-eyebrow-sm{margin-bottom:2px;}
.oc-detail .body{padding:12px 14px;}
.oc-detail a{color:var(--signal);}
/* The leading picture in a panel head: a photo, a vendor logo or an initial. */
.oc-detail .face{
  width:46px; height:46px; flex:0 0 auto; border-radius:50%; object-fit:cover;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); color:var(--muted); font-family:var(--serif); font-size:18px;
}
/* A vendor logo is drawn for a white page, so its plate is white in both
 * themes. This is the logo's own background, not a surface of the app. */
.oc-detail .face[data-logo]{object-fit:contain; background:#FFFFFF; padding:3px;}

/* A tab that can take the whole viewport. z 55 is above the shell (the rail at
 * 30, the drawer at 50) and below toasts (60), menus (70) and modals (100), so
 * a confirmation or a dialog raised from inside it still lands on top. */
.oc-stage[data-fullscreen]{position:fixed; inset:0; z-index:55; background:var(--ground); padding:12px 16px; overflow:auto;}
.oc-stage[data-fullscreen] .oc-canvas{height:calc(100vh - 190px);}

/* A rail-first split whose rail is a list of choices, not a column of
 * content: a fixed narrow track instead of a third of the width. */
@media (min-width:1024px){
  .oc-split[data-rail-first][data-narrow]{grid-template-columns:220px minmax(0,1fr);}
}

/* A second head inside one panel starts a second list, so it needs the rule
 * the first one gets from the panel's own border. */
.oc-panel > * + .oc-panel-head{border-top:1px solid var(--line);}

/* A menu item that is the current choice, and one that carries a hint line.
 * Same brand-on-brand-soft idiom as .oc-row[data-current]. */
.oc-menuitem[aria-pressed="true"]{background:var(--brand-soft); color:var(--brand);}
.oc-menuitem > .oc-meta{display:block; margin-top:2px;}

/* An icon inside a text button. Preflight makes every svg a block, which would
 * put the glyph on its own line above the label. */
.oc-btn svg, .oc-card svg{display:inline-block; width:13px; height:13px; vertical-align:-2px; margin-right:5px;
  stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}

/* A disclosure control that turns when its content is shown. */
.oc-icon[aria-expanded="true"] svg{transform:rotate(90deg);}

/* A card that is the one to go to next: the brand, as on .oc-panel. */
.oc-card[data-accent="brand"]{border-color:var(--brand); border-left-color:var(--brand);}

/* A range slider. The thumb takes the brand, which is what "the control you
 * are dragging" means everywhere else. */
.oc-range{width:120px; vertical-align:middle; accent-color:var(--brand); cursor:pointer;}
/* Refs #3321: preflight's :disabled cursor won this by coming LAST; the reset
   now sits above this rule, so a disabled range has to say it itself. */
.oc-range:disabled{cursor:default;}

/* A tooltip whose host is a library (vis-network). The library wraps it in its
 * own yellow box, so the wrapper is stripped when it holds one of these. */
.oc-tip{
  background:var(--surface); color:var(--ink); border:1px solid var(--line); padding:7px 9px;
  max-width:300px; white-space:normal; font-family:var(--sans); font-size:12.5px; line-height:1.4;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.oc-tip .h{display:flex; align-items:center; gap:5px; font-weight:600; margin-bottom:4px;}
.oc-tip .h svg{width:14px; height:14px; flex:0 0 14px; stroke:currentColor; fill:none; stroke-width:2;}
.oc-tip .r{color:var(--ink-2);}
.oc-tip .more{color:var(--muted); font-size:11px; margin-top:3px;}
.vis-tooltip:has(.oc-tip){background:transparent; border:0; box-shadow:none; padding:0;}

/* ---------- added by #3802 / #3804, the project work views ---------------
 * One item set shown as Plan, Mine and Board inside the project's work tab
 * (epic #3807). Two shapes the vocabulary lacked: a TABLE whose rows are
 * grouped and edited in place, and a BOARD of status lanes. Mine needed none:
 * it is oc-groupbar over oc-panel rows, the triage tab's own pairing.
 */

/* A table of rows with editable cells, grouped by header rows. A grid per
 * row rather than a <table>: style.css carries bare element rules, and a row
 * must collapse to stacked lines on a phone rather than scroll sideways,
 * which a table cannot do without fighting its own layout. Every state is an
 * attribute: data-head (the column header), data-group (a group header, with
 * the group's kind as its value), data-item (an editable row), data-level
 * (nesting depth), data-focus (the keyboard cursor) and data-tone (the edge). */
.oc-table{border:1px solid var(--line); background:var(--surface); margin:0 0 22px;}
.oc-table .tr{
  display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1.3fr) 128px 118px 96px minmax(0,1.5fr) 84px;
  gap:0 10px; align-items:center; padding:6px 10px 6px 12px;
  border-bottom:1px solid var(--line-soft); border-left:3px solid transparent; color:var(--ink);
}
.oc-table .tr:last-child{border-bottom:none;}
.oc-table .tr[data-head]{
  background:var(--surface-2); font-family:var(--mono); font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted);
}
.oc-table .tr[data-group]{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; background:var(--band);}
.oc-table .tr[data-group="workstream"]{background:var(--surface-2); border-top:1px solid var(--line);}
.oc-table .tr[data-group] .g{font-size:13px; color:var(--ink); font-weight:600;}
.oc-table .tr[data-group="objective"] .g{font-weight:500;}
.oc-table .tr[data-group] .r{margin-left:auto; display:flex; flex-wrap:wrap; gap:6px; align-items:baseline;}
.oc-table .tr[data-item]{cursor:pointer;}
.oc-table .tr[data-item]:hover{background:var(--surface-2);}
.oc-table .tr[data-focus]{background:var(--brand-soft); border-left-color:var(--brand);}
.oc-table .tr[data-tone="halt"]{border-left-color:var(--halt);}
.oc-table .tr[data-tone="defer"]{border-left-color:var(--defer);}
.oc-table .tr[data-tone="signal"]{border-left-color:var(--signal);}
.oc-table .td{min-width:0; overflow-wrap:anywhere; font-size:13px; color:var(--ink);}
.oc-table .td[data-meta]{font-family:var(--mono); font-size:11px; color:var(--muted);}
.oc-table .td[data-meta] a{color:var(--signal);}
.oc-table .tr[data-level="1"] > .td:first-child{padding-left:20px;}
.oc-table .tr[data-level="2"] > .td:first-child{padding-left:40px;}
/* A cell's value, shown as text on a plain button until it is pressed; only then is
 * that ONE cell's editor built (Refs #3802: an editor per cell per row was 73,337
 * options on the live plan). It reads as text, and shows it is editable on hover
 * and focus. Every visual property a bare button rule could set is declared. */
.oc-table .val{
  display:block; width:100%; text-align:left; padding:3px 6px; margin:0;
  background:none; border:1px solid transparent; border-radius:0; box-shadow:none;
  font-family:var(--sans); font-size:12.5px; color:var(--ink-2); cursor:pointer;
  overflow-wrap:anywhere;
}
.oc-table .val:hover, .oc-table .val:focus{border-color:var(--line); color:var(--ink); outline:none;}
/* A control in a cell fills the cell, not the 180px oc-input asks for alone. */
.oc-table .oc-select, .oc-table .oc-input{min-width:0; width:100%; padding:3px 6px; font-size:12px;}
/* The per-cell label exists for the phone layout, where the header row is gone. */
.oc-table .td .lbl{display:none;}
@media (max-width:899px){
  .oc-table .tr[data-head]{display:none;}
  .oc-table .tr[data-item]{grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px 10px; padding:9px 10px 9px 12px;}
  .oc-table .tr[data-item] > .td:first-child{grid-column:1 / -1;}
  .oc-table .tr[data-level] > .td:first-child{padding-left:0;}
  .oc-table .tr[data-level="1"], .oc-table .tr[data-level="2"]{border-left-color:var(--line);}
  .oc-table .td .lbl{
    display:block; font-family:var(--mono); font-size:10px; letter-spacing:.1em;
    text-transform:uppercase; color:var(--muted); margin-bottom:2px;
  }
}

/* A board of status lanes, cards dragged between them. Four lanes side by side
 * on a desktop, stacked with their counts on a phone. A lane's tone marks the
 * column's meaning only where the meaning IS a status (blocked halts, done is
 * fine); open and in progress stay neutral. The drop target is data-over. */
.oc-board{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; align-items:start;}
.oc-board[data-single]{grid-template-columns:minmax(0,1fr);}
.oc-lane{background:var(--surface-2); border:1px solid var(--line); border-top:3px solid var(--line); min-width:0;}
.oc-lane[data-tone="halt"]{border-top-color:var(--halt);}
.oc-lane[data-tone="signal"]{border-top-color:var(--signal);}
.oc-lane[data-over]{border-color:var(--brand); background:var(--brand-soft);}
.oc-lane .head{
  display:flex; align-items:baseline; gap:8px; padding:8px 10px; border-bottom:1px solid var(--line);
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.oc-lane .head .n{margin-left:auto; color:var(--ink-2);}
.oc-lane .body{display:flex; flex-direction:column; gap:6px; padding:8px; min-height:72px;}
.oc-lane .oc-card{min-width:0; overflow-wrap:anywhere;}
.oc-lane .oc-card[draggable="true"]{cursor:grab;}
.oc-lane .oc-card[data-dragging]{opacity:.5;}
@media (max-width:899px){
  .oc-board{grid-template-columns:minmax(0,1fr);}
}

/* ---------- added by Refs #3903, the project Overview cockpit -------------
 * A split that waits for a WIDE screen. The default .oc-split goes two-up at
 * 1024, which leaves a third-width rail of about 330px on a small laptop: too
 * narrow for the project Overview's rail of decisions, people and email. This
 * variant stays one column, main then rail in source order, until 1200px. The
 * attribute outranks the default's 1024 media rule, so nothing between 1024
 * and 1199 splits. */
.oc-split[data-wide]{grid-template-columns:minmax(0,1fr);}
@media (min-width:1200px){
  .oc-split[data-wide]{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
}

/* A chip that carries a tone (a stage: Edits owed defers, Clean is fine), and
 * a chip that is a link (a momentum series that needs attention). A link chip
 * may hold a long series name, so it wraps instead of widening a phone. */
.oc-chip[data-tone="signal"]{color:var(--signal); border-color:currentColor;}
.oc-chip[data-tone="defer"]{color:var(--defer); border-color:currentColor;}
.oc-chip[data-tone="halt"]{color:var(--halt); border-color:currentColor;}
a.oc-chip{text-decoration:none; white-space:normal; max-width:100%; overflow-wrap:anywhere;}
a.oc-chip:hover{border-color:var(--brand);}

/* ---------- added by Refs #3907, the Overview's Needs you lane -------------
 * A keyboard-triaged list: a row that takes focus shows the cursor in the same
 * brand-on-brand-soft idiom as .oc-row[data-current], so the row j / k moves to
 * is visible without a ring around a whole row. */
.oc-row[role="option"]{cursor:pointer;}
.oc-row[role="option"]:focus{outline:none;}
.oc-row[data-cursor]{border-left-color:var(--brand); background:var(--brand-soft);}
.oc-row[role="option"]:focus-visible{outline:2px solid var(--brand); outline-offset:-2px;}
/* Refs #3910: a one-line strip of chips under the Overview tiles (data freshness). */
.oc-chips[data-strip]{align-items:center; margin:-10px 0 18px;}
