/* Optimizor Security OptiApp v16 — styled to match the v15 desktop app */

/* Scoped reset inherits the Settings card and shell vocabulary. */
.content-reset { max-width: 52rem; min-width: 0; }
.content-reset__name, .content-reset__reference, .content-reset__challenge { overflow-wrap: anywhere; }
.content-reset__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; margin-block: 1.5rem; }
.content-reset__counts { margin: 0; }
.content-reset__counts > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; border-bottom: 1px solid var(--medium-gray); }
.content-reset__counts dd { margin: 0; font-variant-numeric: tabular-nums; }
.content-reset__recovery { color: var(--text-secondary); padding-block: .75rem; border-block: 1px solid var(--medium-gray); }
.content-reset__form { display: grid; gap: .65rem; }
.content-reset__form input[type="text"] { width: 100%; box-sizing: border-box; }
.content-reset__challenge { font-weight: 700; margin: 0; }
.content-reset__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.content-reset__actions .btn { max-width: 100%; white-space: normal; }
.content-reset__alert { padding: .85rem; margin-bottom: 1rem; background: var(--tint-med-bg); color: var(--tint-med-ink); }
.content-reset-card .btn { color: var(--danger, #a52b2b); }
@media (max-width: 600px) { .content-reset__groups { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
@media (max-width: 600px) {
  /* Keep native keyboard focus clear of the 56px assistant and its 20px inset. */
  .workspace-reset-confirmation { margin-bottom: 96px; }
  .workspace-reset-confirmation button[type="submit"] { scroll-margin-bottom: 96px; }
}

/* Dedicated reporting surfaces inherit the product's type and colour tokens. */
.bug-report-page { max-width: 54rem; min-width: 0; }
.bug-report-queue { max-width: 72rem; min-width: 0; }
.bug-report-page *, .bug-report-queue * { min-width: 0; overflow-wrap: anywhere; }
.bug-report-form { display: grid; gap: .75rem; margin-block: 1rem; }
.bug-report-form label { margin-top: .5rem; font-weight: 600; }
.bug-report-form input, .bug-report-form textarea, .bug-report-form select { width: 100%; box-sizing: border-box; }
.bug-report-form textarea { resize: vertical; }
.bug-report-form .btn { justify-self: start; }
.bug-report-context { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 3fr); gap: .4rem 1rem; }
.bug-report-context dt { color: var(--text-secondary); font-weight: 600; }
.bug-report-context dd { margin: 0; }
.bug-report-notice { padding: 1rem; background: var(--tint-med-bg); color: var(--tint-med-ink); border-radius: .35rem; }
.bug-report-text { white-space: pre-wrap; line-height: 1.6; }
.bug-report-reference { font-size: .875rem; color: var(--text-secondary); }
.bug-report-row { padding-block: 1rem; border-bottom: 1px solid var(--medium-gray); }
.bug-report-row h2 { font-size: 1.15rem; margin-block: 0 .5rem; }
.bug-report-filter, .bug-report-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.bug-report-original, .bug-report-history { margin-block: 1rem; }
@media (max-width: 520px) { .bug-report-context { grid-template-columns: minmax(0, 1fr); } .bug-report-context dd { margin-bottom: .5rem; } }

.preservation-review { margin-block: 1rem; padding: 1.25rem; border: 1px solid var(--border, #DDE3EC); background: var(--surface, #fff); }
.preservation-review h2, .preservation-review h3 { color: var(--brand-primary, #001F5B); }
.preservation-review p { max-width: 70ch; }
.preservation-compare { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: 1.5rem; align-items: start; margin-block: 1rem; }
.preservation-candidate { min-width: 0; max-width: 100%; background: #fff; }
.preservation-candidate .preserved-source,
.preservation-candidate .preserved-source * { min-width: 0; max-width: 100%; overflow-wrap:anywhere; word-break:break-word; }
.preservation-warning { color: var(--tint-med-ink); background: var(--tint-med-bg); padding: .75rem; }
.preservation-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.preservation-review textarea { box-sizing: border-box; width: 100%; }
@media (max-width: 700px) { .preservation-compare { grid-template-columns: minmax(0, 1fr); } .preservation-review { padding: .75rem; } }

/* ═══ Self-hosted webfonts (16.52.0, skin spec §B) ══════════════════════
   Lato (body) + IBM Plex Sans (display) are the optimizor.ro pair. Both are
   OFL-licensed. The woff2 files were fetched from Google Fonts at BUILD time
   and are served from our own origin: not one Google URL ships, so the app
   makes zero third-party requests at runtime and nothing here depends on
   Google being reachable (tests/test_brand_skin.py is the gate).
   Subsets are latin + latin-ext only. latin-ext is not optional — Romanian's
   ă (U+0103), ș (U+0219) and ț (U+021B) live there (â/î are inside latin's
   U+0000-00FF), so dropping it would silently box-glyph half the RO UI.
   IBM Plex Sans ships as ONE variable file per subset (fvar, wght 100-700),
   which is why 500/600/700 are declared as a weight RANGE rather than three
   static faces — three @font-face rules pointing at one variable file would
   all render at its default instance. */
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("/static/fonts/ibmplexsans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("/static/fonts/ibmplexsans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── Optimizor brand (16.52.0, skin spec §A) ─────────────────────────
     The palette is optimizor.ro's, introduced as SEMANTIC tokens. The
     legacy names below are ALIASES onto them rather than renames: every
     existing `var(--navy)` / `var(--teal)` in these 2 800 lines keeps
     working and simply picks up the new value, so the reskin is a value
     change, not a find-and-replace across the whole stylesheet. */
  --brand-primary: #001F5B;   /* navy   — chrome, headings, sidebar      */
  --brand-accent:  #009360;   /* green  — actions                        */
  --brand-sky:     #58BFE4;   /* sky    — secondary accent               */

  /* Legacy names (unchanged keys, new values). */
  --navy: var(--brand-primary);
  --teal: var(--brand-accent);          /* legacy name, brand-green value */
  --teal-dark: #00714A;
  --light-blue: var(--brand-sky);
  --green: var(--brand-accent);
  --green-dark: #00714A;
  /* Softened status colours. --amber and --red are used as BACKGROUNDS in
     places (badges, the env banner, meter fills), so they stay mid-tone;
     the label system below carries the tinted bg/ink pairs. */
  --amber: #E0A80F;
  --red: #A8233E;
  --red-dark: #7E1A2C;
  --white: #FFFFFF;
  --light-gray: #F4F6F9;
  --medium-gray: #DDE3EC;
  --dark-gray: #5A6478;
  --off-white: #FAFBFC;

  /* Connection status dots (the mock's quiet pair — a red dot on a list of
     integrations should read as "look here", not as an alarm). */
  --dot-ok:  #7AB031;
  --dot-bad: #C25064;

  /* ── Tinted label pairs (skin spec §E) ───────────────────────────────
     ONE system for every label in the product: a tint of the hue as the
     background, the same hue darkened as the ink. Sentence case, never
     uppercase — a shelf of shouting pills is unreadable at a glance. */
  --tint-crit-bg: #F8E7EC;  --tint-crit-ink: #A8233E;
  --tint-high-bg: #FCEFE0;  --tint-high-ink: #A4540E;
  --tint-med-bg:  #FBF4D2;  --tint-med-ink:  #7D6300;
  --tint-ok-bg:   #E4F2EC;  --tint-ok-ink:   #00714A;
  --tint-navy-bg: #E6EAF3;  --tint-navy-ink: #001F5B;
  --tint-sky-bg:  #E7F4FB;  --tint-sky-ink:  #1F6C94;
  --tint-mute-bg: #EDF0F5;  --tint-mute-ink: #5A6478;

  /* ── Key measures (the gold pair) ────────────────────────────────────
     A SEVENTH pair rather than a reuse, on purpose. Key-ness is not a
     status: a key measure at 4.0 is still key, so the badge may not borrow
     the ok/med/crit hues that mean "how are you doing". It also has to be
     unmistakably not the Important/Essential PROFILE chips on the same row
     — those say which controls apply to you, this says which of them cannot
     be averaged away, and blurring the two vocabularies is the exact
     confusion this whole feature exists to end. Gold, and only here.
     6.1:1 on its own tint — AA-small. */
  --key-bg: #FBF3DC;  --key-ink: #8A6410;  --key-line: #E3D2A0;

  /* ── Type ────────────────────────────────────────────────────────────
     Two families, one job each: Lato reads long, IBM Plex Sans carries the
     structure (headings, buttons, labels, numbers, nav). */
  /* The shipped Lato subsets omit ă/ș/ț; the shipped Plex face supplies
     those glyphs without a platform-font or external-font dependency. */
  --font-body: "Lato", "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* UI19 shared surfaces and states. Brand artwork keeps its original green;
     small white action labels use the darker semantic action fill. */
  --surface-page: #F4F6F9;
  --surface-panel: #FFFFFF;
  --text-body: #18181B;
  --text-muted-readable: #5A6478;
  --border-subtle: #DDE3EC;
  --focus-ring: #00714A;
  --focus-ring-on-dark: var(--white);
  --action-fill: #00714A;
  --action-hover: #005B3B;
  --assistant-hover: #0A3175;
  --text-on-dark-muted: #C6D1E8;
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-6: 24px; --space-8: 32px;

  --sidebar-bg: var(--surface-panel);
  --sidebar-hover: #F0F5F7;
  --sidebar-selected: #E5F3EF;
  --sidebar-text: var(--text-muted-readable);
  --sidebar-text-active: var(--action-fill);
  --sidebar-accent: var(--teal);
  --sidebar-muted: var(--text-muted-readable);

  --text-primary: var(--text-body);
  --text-secondary: var(--text-muted-readable);
  --text-muted: var(--text-muted-readable);
  --text-on-dark: var(--white);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--surface-page); color: var(--text-primary);
  height: 100%;
}

/* The display face: shared components + headings, not every one-off. */
h1, h2, h3,
.btn, .pill, .chip, .cal-chip, .cal-fchip, .ev-pill, .rz-tag, .rz-qw,
.rr-pill, .conn-chip, .badge, .env-badge,
.kpi__value, .kpi__label, .prog-score,
.kpi-label, .score, .score-card,
.navitem__label, .navgroup__label, .brand-suffix {
  font-family: var(--font-display);
}
a { color: var(--action-fill); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 3px;
}

/* ── Two-column shell ───────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.shell-workspace { min-width: 0; }
.shell-header {
  min-height: 64px; display: flex; align-items: center; gap: 16px;
  padding: 12px 28px; border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-panel); font-size: 14px;
}
.shell-header__tenant { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-header__separator { color: var(--text-muted-readable); }
.shell-header__section { flex: none; color: var(--text-body); font-weight: 700; }
.shell-header__page { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-body); }
.shell-header__readonly {
  flex: none; margin-left: auto; color: var(--text-muted-readable);
  border: 1px solid var(--border-subtle); border-radius: 6px; padding: 4px 8px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
/* UI19: the navigation alone scrolls, keeping identity and help reachable. */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  padding: 16px 0 4px;
  position: sticky; top: 0; height: 100dvh;
  border-right: 1px solid var(--border-subtle);
}
/* 16.52.0: the real Optimizor wordmark replaces the mark+text lockup. The
   logo IS the brand line, so the only text left under it is what the product
   is called — sky, tracked out, small enough to read as a suffix rather than
   as a second wordmark. A tenant's own logo (Settings → Branding) renders
   through the same slot with a height cap, because uploads arrive at every
   aspect ratio and a tall one would otherwise push the nav off-screen. */
.sidebar__brand {
  display: block;
  flex: none; min-height: 70px; padding: 0 48px 14px 16px;
}
.brand-logo { width: 148px; max-width: 100%; height: auto; display: block; }
.brand-logo--tenant { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
/* 16.66.0 (⑧b §2): the no-logo tenant identity. Same disc-plus-name lockup
   the ⑧a My Company header uses, at sidebar scale and on the dark ground: the
   disc keeps the teal fill and white bold initials so one organisation reads
   the same in the header, the sidebar and the usercard. The name wraps to two
   lines at most and then truncates — a 250px rail is not the place to fight
   for a fourth line of a company name. */
.brand-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-ident__disc {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--action-fill); color: var(--white);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .01em;
}
.brand-ident__name {
  min-width: 0; color: var(--sidebar-text-active);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-suffix {
  display: block; margin-top: 5px; color: var(--text-muted-readable);
  font-size: 13px; font-weight: 500;
  /* wow8: the line is the portfolio's own text (up to 40 characters). */
  overflow-wrap: anywhere;
}
.sidebar__divider {
  flex: none; height: 1px; background: var(--border-subtle); margin: 0 16px;
}
.sidebar__nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 8px; }
.navitem {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 9px 12px; margin: 1px 0; border-radius: 8px;
  color: var(--sidebar-text); font-size: 14px; font-weight: 500;
  transition: background 0.12s ease;
}
.navitem:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  text-decoration: none;
}
.navitem.is-active {
  background: var(--sidebar-selected);
  color: var(--sidebar-text-active);
  font-weight: 600;
}
.navitem__icon {
  flex: none; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor;
}
.navitem__icon svg { width: 18px; height: 18px; display: block; }
.navitem__pill {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: var(--sidebar-accent);
}
.sidebar__footer { flex: none; padding: 8px 12px 0; }
.brand-version { display:flex; align-items:center; color:var(--sidebar-text);
  font-size:12px; font-weight:500; border:1px solid transparent; }
/* 2026-09-14 (i18n lane): .brand-poweredby went with the credit line it
   styled - an orphaned rule is exactly the residue ⑦b's sweep was about. */

/* ── Main pane ──────────────────────────────────────────────────────── */
.main { padding: 24px 28px; min-width: 0; font-size: 15px; }

/* ── Page header (used by every page) ───────────────────────────────── */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--space-6); gap: var(--space-4); flex-wrap: wrap;
}
.page-header__act { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.page-header h1 {
  margin: 0; font-size: 26px; font-weight: 700; color: var(--navy);
}
.page-header .subtle {
  margin-top: 4px; color: var(--text-secondary); font-size: 13px;
}
/* 16.57.0 (⑦b §4): a page header standing in as a SECTION header - the
   16.53.0 merge left `_import_docs_body` wrapping its stepped-down h2 in
   the page-header it used to be a page for, and paying a page's 18px of
   clearance for it in the middle of Integrations. */
.page-header--sec { margin-bottom: 8px; }
/* Tenant identity line under the dashboard title — must be readable at a
   glance (MSP operators hop between tenant workspaces all day). */
.page-header .dash-tenant {
  margin-top: 6px; color: var(--navy); font-size: 19px; font-weight: 650;
  letter-spacing: 0.01em;
}

/* ── Buttons (match v15 palette) ────────────────────────────────────── */
/* 17.57.87 (typography audit): a native button never inherits the page
   font, so every secondary control that set its own size but not its family
   (owner-filter__btn, reg-gopt, wsx-upg__later, btn-danger, iconbtn) drew in
   Arial beside Lato text. Family only - sizes stay where each class put them. */
button, input, select, textarea { font-family: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; border: none;
  font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; transition: background 0.12s ease;
  font-family: var(--font-display);
}
/* 2026-08-12: a disabled button must LOOK disabled. "Attach as evidence"
   is gated while added sections await review, but without this rule it
   rendered exactly like a clickable button and the only explanation was a
   hover tooltip - which read as "the button does nothing". */
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary  { background: var(--action-fill); color: var(--white); }
.btn--primary:hover  { background: var(--action-hover); text-decoration: none; }
.btn--navy     { background: var(--navy); color: var(--white); }
.btn--navy:hover     { background: #00164A; text-decoration: none; }
.btn--green    { background: var(--green-dark); color: var(--white); }
.btn--green:hover { background: #005B3B; text-decoration: none; }
.btn--secondary{ background: var(--light-gray); color: var(--text-primary); border: 1px solid var(--medium-gray); }
.btn--secondary:hover { background: var(--medium-gray); text-decoration: none; }
.btn--danger   { background: var(--white); color: var(--red); border: 1px solid var(--red); }
.btn--danger:hover { background: #FDE8E8; text-decoration: none; }
/* 16.54.0 (⑥c §B): the quietest button in the family — the "Scan now" link
   sits beside a page title and must not out-shout it. `is-running` is the
   same control saying the job is already in flight; it stays a link, so the
   colour is the only thing that changes. */
.btn--ghost    { background: transparent; color: var(--navy); border: 1px solid var(--medium-gray); }
.btn--ghost:hover { background: var(--light-gray); text-decoration: none; }
.btn--ghost.is-running { color: var(--tint-med-ink); border-color: var(--tint-med-ink); }
.btn--xs { padding: 4px 10px; font-size: 12px; }

/* ── 16.56.0 (feedback batch ⑦a §a): the ONE help affordance ─────────
   The diagnosis first, because the fix only makes sense next to it: the
   dashboard had no (?) marks AT ALL. Its help was smuggled into <abbr
   title> runs and bare title= attributes on the target bars, so the only
   affordance was a 1px dotted underline beneath 12px grey text and the
   payoff was the browser's native tooltip - roughly a second of stationary
   hover, no pointer feedback, gone again on the smallest mouse move. Worse,
   the one sentence that actually explained the headline score sat inside
   the score-READY branch of card 1, so a tenant under 20% coverage (which
   is every new tenant, and every demo) got no help on that card whatsoever.
   "I hover the (?) and nothing happens" was therefore literally true.
   The replacement is ONE mechanism used by every (?) on the page: a
   focusable `.qhelp` mark carrying its sentence in BOTH `data-help` (the
   tooltip) and `aria-label` (the accessible name), revealed with no delay
   on hover AND on keyboard focus. The visual language is the maturity
   ladder's `data-tip` - the one tooltip on this page that already worked.
   `data-help` is deliberately a plain attribute hook rather than a class:
   any element can explain itself, the mark is just the commonest carrier. */
[data-help] { position: relative; }
[data-help]::after {
  content: attr(data-help);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content; max-width: 260px; z-index: 60;
  background: var(--navy); color: #fff;
  font-size: 11px; line-height: 1.45; font-weight: 500;
  text-align: left; white-space: normal;
  /* The marks live inside labels that shout - .kpi-label is uppercase with
     tracking - and a pseudo-element inherits all three. A 150-character
     sentence set in capitals is not help. */
  text-transform: none; letter-spacing: 0; font-style: normal;
  padding: 9px 11px; border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .20);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .1s ease;
}
[data-help]:hover::after,
[data-help]:focus::after,
[data-help]:focus-within::after { opacity: 1; visibility: visible; }
/* A mark sitting at a column's right edge would push its centred tooltip
   into the next column; anchor those to their own right edge instead. */
[data-help].qhelp--end::after { left: auto; right: -4px; transform: none; }
/* A mark in a PAGE HEADER has no room above it: on anything wider than a
   phone the bubble opened upward and disappeared under the top bar (Alex's
   screenshot, 17.57.51). Those marks open downward instead; the phone rules
   below still turn them into the fixed bottom bar. */
[data-help].qhelp--below::after { top: calc(100% + 8px); bottom: auto; }
.qhelp {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--text-muted);
  font-size: 10px; font-weight: 800; line-height: 1;
  vertical-align: middle; cursor: help; user-select: none;
}
.qhelp:hover, .qhelp:focus { border-color: var(--teal); color: var(--teal); }
.qhelp:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ── Cards / sections ───────────────────────────────────────────────── */
.card {
  background: var(--surface-panel); border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 20px;
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 14px; font-weight: 700; }

/* ── Stat cards (Dashboard) ─────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--medium-gray); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}

/* ── Section header ─────────────────────────────────────────────────── */
/* 16.57.0 (⑦b §4): 22px of air above a heading is a page break, not a
   section break. On a merged page like Integrations it was paid three
   times, once per section. */
.section-title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin: 14px 0 8px;
}

/* ── Measure grid (Dashboard) ───────────────────────────────────────── */
.measures {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.measure {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--medium-gray); padding: 12px;
}

/* ── Forms (Connections, Settings) ──────────────────────────────────── */
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row > label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.form-row input, .form-row textarea, .form-row select {
  padding: 9px 12px; border: 1px solid var(--medium-gray); border-radius: 6px;
  font-family: inherit; font-size: 14px; background: var(--white);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--focus-ring);
}
.form-row :is(input, textarea, select)[aria-invalid="true"] { border-color: var(--red); }
.form-row .form-error { margin: 0; color: var(--red); font-size: 13px; }
/* 16.65.0 (⑧a §C) — Settings, "Minimum required maturity". A checkbox and its
   label are ONE line: row direction, left aligned, and the box keeps its
   natural size instead of stretching to the .form-row input width. The
   override row underneath starts at the same left edge. Named classes, not
   inline styles, so the next reader can see what they do. */
.set-checkline {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 10px; font-size: 12.5px;
}
.set-checkline > input[type="checkbox"] { flex: none; width: auto; padding: 0; margin: 0; }
.set-overrideline { display: flex; align-items: center; gap: 10px; text-align: left; }
.set-overrideline > input { width: 76px; flex: none; }
.set-overrideline > .btn { margin-left: auto; }

.help { color: var(--text-muted); font-size: 12px; }

/* ── Tables ─────────────────────────────────────────────────────────── */
.table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--medium-gray);
}
.table th {
  background: var(--navy); color: var(--white);
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 600;
}
.table td {
  padding: 10px 14px; font-size: 13px;
  border-top: 1px solid var(--medium-gray);
}
.table tr:hover td { background: var(--off-white); }

/* ── Severity / status pills (16.52.0, skin spec §E) ──────────────────
   THE label component. Solid saturated pills turned every table into a
   traffic light; these are a tint of the hue with the same hue as ink, so a
   column of them stays scannable and the one that matters still stands out.
   Sentence case on purpose — the uppercase was shouting, not signalling. */
.pill {
  display: inline-block; padding: 2.5px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--tint-mute-bg); color: var(--tint-mute-ink);
}
.pill.critical { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.pill.high     { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.pill.medium   { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.pill.low      { background: var(--tint-sky-bg);  color: var(--tint-sky-ink); }
.pill.info     { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.pill.compliant      { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.pill.partial        { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.pill.noncompliant   { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.pill.notassessed    { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }

/* ── CyFun controls tree (existing) ─────────────────────────────────── */
.function-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.function-tab {
  padding: 8px 18px; border-radius: 8px; background: var(--white);
  color: var(--text-primary); border: 1px solid var(--medium-gray);
  font-size: 13px; font-weight: 600;
}
.function-tab.is-active {
  background: var(--accent, var(--teal));
  color: var(--white); border-color: var(--accent, var(--teal));
}
.controls__layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
.tree { background: var(--white); border-radius: 10px; padding: 12px; border: 1px solid var(--medium-gray); }
.cat { margin-bottom: 4px; }
.cat > summary {
  cursor: pointer; padding: 8px; display: flex; align-items: center;
  gap: 8px; font-weight: 700; color: var(--navy);
  list-style: none; text-align: left;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::before { content: "▸"; color: var(--text-secondary); flex: 0 0 auto; }
.cat[open] > summary::before { content: "▾"; }
.sub { margin-left: 16px; padding: 2px 0; }
.sub > summary {
  cursor: pointer; padding: 6px 8px; display: flex; align-items: center;
  gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-primary); list-style: none; text-align: left;
}
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::before { content: "▸"; color: var(--text-muted); font-size: 11px; flex: 0 0 auto; }
.sub[open] > summary::before { content: "▾"; }
.cat__name, .sub__name { flex: 1; min-width: 0; text-align: left; }
.cat > summary .badges, .sub > summary .badges { margin-left: auto; flex: 0 0 auto; }
.reqs { list-style: none; padding: 0; margin: 4px 0 4px 22px; }
.req { margin: 2px 0; }
.req__link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; color: var(--text-primary);
  font-size: 12px;
}
.req__link:hover { background: var(--off-white); text-decoration: none; }
.req__id { font-weight: 700; color: var(--navy); min-width: 84px; }
/* 19.4.4: the id's column - the id, and a key measure's badge under it. */
.req__idcell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 84px; flex: 0 0 auto; }
.req__title { flex: 1; }
/* The key-measure badge, one shape for the whole product: the controls tree,
   the requirement header, the findings table, the register. It was a teal
   rectangle that read as a fourth score colour beside the D/I badges; it is
   the gold pill now, pill-shaped and outlined so it cannot be mistaken for
   the square .req__assurance profile chip sitting next to it. */
.req__key, .keybadge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--key-bg); color: var(--key-ink);
  border: 1px solid var(--key-line);
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  flex: 0 0 auto;
}
.badges { display: inline-flex; gap: 4px; }
/* 16.52.0: badges follow the same tinted label system as .pill (skin spec
   §E) so the console tables and the CyFun tree read as one product. */
.badge {
  display: inline-block; padding: 2.5px 8px; border-radius: 6px;
  background: var(--tint-mute-bg); color: var(--tint-mute-ink);
  font-size: 11.5px; font-weight: 600; min-width: 36px;
  text-align: center;
}
.badge.green  { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.badge.amber  { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.badge.red    { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.badge.muted  { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.badge.dim    { background: var(--off-white); color: var(--text-secondary); border: 1px solid var(--medium-gray); }
/* 16.1.12+: BEM-style badge modifiers used by the SaaS console/portfolio
   tables. Without these the base .badge (white text, no background) rendered
   invisibly — Status / Result columns looked blank. */
.badge--ok      { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.badge--warn    { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.badge--neutral { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }

/* ---------------------------------------------------------------------------
   Mini-RACI control ownership (16.11.0): five fixed roles, each a colour.
   Any element carrying an own-<role> class exposes --role for its chips.
   --------------------------------------------------------------------------- */
.own-management { --role: #4f46e5; }  /* indigo  */
.own-it_ops     { --role: #0284c7; }  /* blue    */
.own-security   { --role: #0d9488; }  /* teal    */
.own-compliance { --role: #b45309; }  /* amber   */
.own-hr         { --role: #15803d; }  /* green   */

.own-chips { display: inline-flex; gap: 4px; align-items: center; }
.own-chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 10px; font-weight: 700; line-height: 1.6;
  padding: 0 7px; border-radius: 10px; border: 1px solid transparent;
}
.own-chip--a { background: var(--role, #64748b); color: #fff; }
.own-chip--r {
  background: #f4f6f9;                                   /* fallback */
  background: color-mix(in srgb, var(--role) 12%, #fff);
  color: var(--role, #475569);
  border-color: var(--role, #cbd5e1);                   /* fallback */
  border-color: color-mix(in srgb, var(--role) 45%, #fff);
}

/* Control-list toolbar: owner filter (left) + expand/collapse (right) */
.tree-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 12px;
}
.tree-expand { display: flex; gap: 6px; align-items: center; }
.control-search {
  font-size: 12px; padding: 4px 10px; border-radius: 14px;
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--text-primary); min-width: 190px;
}
.control-search:focus { border-color: var(--focus-ring); }
/* Controls page toolbar (2026-09-13 product-owner redesign): two rows,
   not three - row 1 picks which controls and how they are grouped, row 2
   narrows by owner/status and ends with expand/collapse. Each row is its
   own nowrap flex line on desktop; .ctrl-toolbar__push is the flexible gap
   that shoves the row's tail (search, or expand/collapse) to the far
   right, and .ctrl-toolbar__divider is the thin vertical rule between a
   row's two clusters. Below ~1100px (measured: the function tabs plus
   Group by plus a 190px search no longer fit one line at that width) rows
   wrap like every other toolbar on this page already does. */
.ctrl-toolbar { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.ctrl-toolbar__row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.ctrl-toolbar .function-tabs { margin-bottom: 0; flex-wrap: nowrap; }
.ctrl-toolbar__divider {
  width: 1px; align-self: stretch; min-height: 22px; flex: 0 0 auto;
  background: var(--medium-gray);
}
.ctrl-toolbar__push { flex: 1 1 auto; }
.ctrl-toolbar__search { flex: 0 0 auto; }
@media (max-width: 1100px) {
  .ctrl-toolbar__row { flex-wrap: wrap; }
  .ctrl-toolbar .function-tabs { flex-wrap: wrap; }
  .ctrl-toolbar__divider { display: none; }
  .ctrl-toolbar__push { flex-basis: 100%; height: 0; }
}
/* While a filter is active, hide the category/sub rollup badges (they
   summarise all controls, not the filtered subset). Leaf badges stay. */
.tree.tree--filtered details > summary .badges { display: none; }
.tree-empty {
  margin: 18px 8px; padding: 16px; text-align: center;
  color: var(--text-secondary); font-size: 13px;
  background: var(--off-white); border-radius: 8px;
}
/* Owner filter bar on the control list */
.owner-filter {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0;
}
.owner-filter__label {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  margin-right: 2px;
}
.owner-filter__btn {
  font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 14px;
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--text-secondary); cursor: pointer; transition: all .12s;
}
/* 2026-09-13: the Controls filter chips became LINKS when their filtering
   moved to the server — a filtered tree is a URL now, so it has to be one
   without JavaScript too. Same chip, so the anchor has to stop behaving like
   body text: inline-block for the padding, no underline, and the chip's own
   colour instead of the link colour (which .is-active then overrides). */
a.owner-filter__btn {
  display: inline-block; text-decoration: none; line-height: 1.5;
  white-space: nowrap;
}
.owner-filter__btn[class*="own-"] { color: var(--role); border-color: var(--role); }
/* 19.4.4: the tree's two toggles read as one word each ("Restrânge tot" never breaks over two lines). */
#expand-all.owner-filter__btn, #collapse-all.owner-filter__btn { white-space: nowrap; }
.owner-filter__btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* The key-measure filter chip wears the badge's gold in every chip idiom the
   product has (.owner-filter__btn on Controls, .rz-fchip on Findings,
   .rr-st on the register) so the chip and the rows it selects are visibly
   the same thing. */
.rz-gopt--key.is-on { background: var(--key-ink); color: #fff; border-color: var(--key-ink); }
.owner-filter__btn--key, .rz-fchip--key, .rr-st--key {
  color: var(--key-ink); border-color: var(--key-line); background: var(--key-bg);
}
.owner-filter__btn--key.is-active, .rz-fchip--key.is-on, .rr-st--key.is-on,
.rr-st--key[aria-pressed="true"] {
  background: var(--key-ink); color: #fff; border-color: var(--key-ink);
}
.owner-filter__btn[class*="own-"].is-active { background: var(--role); color: #fff; border-color: var(--role); }

/* Ownership badge, top-right of the control detail header */
.detail__header { position: relative; }
.ownership-badge {
  position: absolute; top: 16px; right: 18px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: flex-end; max-width: 55%;
}
.ownership-badge__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-secondary); margin-right: 2px;
}
.ownership-badge .own-chip { font-size: 11px; padding: 1px 9px; }
@media (max-width: 640px) {
  .ownership-badge { position: static; max-width: none; justify-content: flex-start; margin-top: 6px; }
}

/* Info callout (16.11.6) */
.callout {
  margin: 10px 0 0; padding: 9px 13px; border-radius: 6px;
  font-size: 13px; line-height: 1.5;
}
.callout--info {
  background: #eef4fb; border: 1px solid #cfe0f2; color: #24435f;
}
.callout--info a { font-weight: 700; }

/* Section divider between merged page sections (16.11.3).
   16.57.0 (⑦b §4): the rule already says "new section"; 50px of combined
   margin was saying it a second time. */
.section-rule {
  border: 0; border-top: 1px solid var(--medium-gray);
  margin: 16px 0 12px;
}

/* ── Document Workspace (16.12.0) ─────────────────────────────── */
.wsx-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;
  padding-bottom:12px;border-bottom:1px solid var(--medium-gray)}
.wsx-back{color:var(--teal-dark);font-weight:700;font-size:12px;text-decoration:none;white-space:nowrap}
.wsx-h1{font-size:16.5px;margin:0}
.wsx-vchip{font-size:10.5px;font-weight:700;color:var(--text-secondary);border:1px solid var(--medium-gray);
  border-radius:4px;padding:1px 7px}
.wsx-vchip.is-gen{color:var(--green);border-color:var(--green)}
.wsx-vchip.is-ver{color:var(--navy);border-color:var(--navy);background:var(--off-white);font-variant-numeric:tabular-nums}
/* templates-table spec 2: the Key records gap chip. Amber, like every other
   "this caps something" read-out - it never blocks Approve. */
.wsx-vchip.is-rec{color:#8a6d00;border-color:var(--amber);background:#fff8ec;font-variant-numeric:tabular-nums}
/* Same chip, the other reading: every Key records row is present. */
.wsx-vchip.is-recok{color:var(--tint-ok-ink);border-color:var(--tint-ok-ink);background:var(--tint-ok-bg)}
.wsx-chips{display:flex;gap:3px;align-items:center}
.wsx-chips .mchip{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:5px;
  font-size:9.5px;font-weight:800;color:#fff;background:var(--navy);font-family:ui-monospace,Menlo,monospace}
.wsx-chips .fchip{display:inline-grid;place-items:center;height:16px;min-width:22px;padding:0 5px;
  border-radius:5px;font-size:9px;font-weight:800;color:#fff}
.wsx-grow{flex:1}
/* 17.4.4 rider (feedback #6, screenshot-confirmed). The header is a wrapping
   flex row; with a long title it wrapped BETWEEN the action buttons, so
   "Attach as evidence" ended up alone on the bottom LEFT while the rest of
   the cluster sat top right. The actions are now one flex item, so they wrap
   together, and `margin-left:auto` keeps that item on the right edge of
   whichever line it lands on. On a short title .wsx-grow still eats the slack
   and the auto margin is a no-op, so the desktop row is unchanged. */
.wsx-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  justify-content:flex-end;margin-left:auto}

/* spec 2.5 UI: the readiness result body's own spacing. 2026-09-14: the
   button that used to trigger it is gone - htmx fetches the result on load,
   because the check is mechanical and the server can answer it from what it
   already knows. This is the swap target's spacing and nothing else; the
   workspace redesign restates it for the Approve tab at the foot of this
   file. */
.wsx-readiness{margin:0 0 14px;padding:0 13px}
.wsx-readiness:has(#ws-readiness-body:empty){margin-bottom:0}

.wsx-grid{display:grid;grid-template-columns:258px minmax(0,1fr) 316px;gap:14px;align-items:start}
.wsx-panel{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px}
.wsx-rail{display:flex;flex-direction:column;gap:12px}
.wsx-panel h3{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary);
  margin:0;padding:10px 13px;border-bottom:1px solid var(--medium-gray);display:flex;align-items:center;gap:7px}
.wsx-panel h3 .n{margin-left:auto;font-size:10px;background:var(--light-gray);border-radius:10px;padding:1px 7px;
  color:var(--text-secondary);font-weight:600;letter-spacing:0;text-transform:none}
/* 2026-09-14 (workspace redesign §3): `.wsx-mgmt__readiness-btn` is gone
   with the button it pinned. The readiness result is fetched on load now,
   so there is no control to place beside a heading. */
/* The key-records gap count used to run straight into the sentence below it
   (both plain `.wsx-qhint`s, no rule ever put space between them) - its own
   bottom margin gives it the block the fact deserves. */
.wsx-mgmt__recmiss{margin:0 0 2px}
.wsx-empty{padding:12px 13px;color:var(--text-muted);font-size:11.5px}

.wsx-ctrls{padding:9px 13px 10px;display:flex;flex-direction:column;gap:6px}

/* 16.28.2: mapped-controls rail — grouped human labels, one status pill.
   "Confirm by a person" is open by default, "Verified automatically" folds. */
.wsx-cgroup{border:1px solid var(--light-gray);border-radius:8px;background:var(--off-white)}
.wsx-cgroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;
  padding:6px 9px;font-size:11px;font-weight:700;color:var(--navy)}
.wsx-cgroup>summary::-webkit-details-marker{display:none}
.wsx-cgroup>summary::after{content:"›";margin-left:2px;color:var(--text-muted);font-weight:700;
  transition:transform .12s;transform:rotate(90deg)}
.wsx-cgroup:not([open])>summary::after{transform:rotate(0deg)}
.wsx-cgroup>summary:hover{background:var(--light-gray);border-radius:8px}
.wsx-cgroup>summary .gl{flex:1;min-width:0}
.wsx-cgroup>summary .n{font-size:10px;background:var(--white);border:1px solid var(--medium-gray);
  border-radius:10px;padding:0 7px;color:var(--text-secondary);font-weight:700}
.wsx-cgroup .vdot{width:7px;height:7px;border-radius:50%;flex:none}
.wsx-cgroup.is-auto .vdot{background:var(--green)}
.wsx-cgroup.is-manual .vdot{background:var(--amber)}
.wsx-cglist{display:flex;flex-direction:column;gap:2px;padding:2px 5px 6px}
.wsx-cg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:5px 6px;
  border-radius:6px;background:var(--white);border:1px solid var(--light-gray)}
.wsx-cg .lbl{flex:1 1 100%;min-width:0;font-size:11.5px;line-height:1.35;color:var(--navy);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wsx-cg .ids{font-size:9.5px;color:var(--text-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wsx-cg .ids a{color:var(--text-muted);text-decoration:none}
.wsx-cg .ids a:hover{color:var(--teal-dark);text-decoration:underline}
.wsx-cpill{font-size:9.5px;font-weight:800;border-radius:9px;padding:1px 7px;white-space:nowrap}
.wsx-cpill.st-on-track{background:#E7F6EC;color:#1b7f4b}
.wsx-cpill.st-needs-practice,.wsx-cpill.st-needs-documentation{background:#FDF3D6;color:#8a6d00}
.wsx-cjump{font-size:10px;font-weight:700;color:var(--teal-dark);text-decoration:none;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wsx-cjump:hover{text-decoration:underline}
.ws-verify.is-jumped{box-shadow:0 0 0 3px rgba(255,193,7,.45)}

.wsx-updrop{display:block;margin:10px 13px;border:1.5px dashed var(--medium-gray);border-radius:8px;padding:12px;
  text-align:center;color:var(--text-muted);font-size:11px;cursor:pointer;transition:border-color .12s,background .12s}
.wsx-updrop:hover,.wsx-updrop.is-over{border-color:var(--teal);background:var(--off-white)}
.wsx-updrop b{display:block;color:var(--navy);font-size:12px;margin-bottom:2px}
/* 17.52.1: the drop zone SAYS it is working - upload + analysis take real
   seconds, and a box that swallows a drop without flinching reads as
   "nothing happened" (first field report from Test). */
.wsx-updrop.is-busy{border-color:var(--teal);background:var(--off-white);cursor:progress}
.wsx-updrop.is-busy b::after{content:"";display:inline-block;width:11px;height:11px;
  margin-left:8px;vertical-align:-2px;border:2px solid var(--teal);
  border-top-color:transparent;border-radius:50%;animation:wsxspin .8s linear infinite}
@keyframes wsxspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.wsx-updrop.is-busy b::after{animation:none}}
/* 17.57.17: wrap, so the removal question (flex-basis:100%) opens on its own
   line UNDER the row it is about rather than squeezing the filename. */
.wsx-file{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:8px 13px;border-top:1px solid var(--light-gray);font-size:11.5px}
.wsx-file .ic{flex:none;width:26px;height:30px;border:1px solid var(--medium-gray);border-radius:4px;
  display:grid;place-items:center;font-size:8px;font-weight:800;color:var(--text-secondary);background:var(--off-white)}
/* 16.28.2: min-width:0 all the way down the flex chain, else a long filename
   pushes the tile wider instead of ellipsizing (full name in the title). */
.wsx-file .meta{min-width:0;flex:1}
.wsx-file .name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;min-width:0}
.wsx-file small{color:var(--text-secondary);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 16.60.0: a source stored before the content channel existed. It still fills
   fields, but it grounds nothing - the hint wraps, it is the actionable bit. */
.wsx-file small.wsx-srcold{white-space:normal;font-style:italic;opacity:.85;margin-top:2px}
/* 17.5.0 - the sweep refreshed this source's text, and says so. */
.wsx-file small.wsx-srcnew{white-space:normal;color:var(--teal);margin-top:2px}
/* 17.57.17 (spec §9 E) - the ✕ that takes a source back off this document.
   The fact button's look, one level out: same glyph, same muted-to-red
   hover. The row's own flex-wrap (above) is what lets the strip open. */
.wsx-file__x{flex:none;align-self:flex-start;border:0;background:none;cursor:pointer;
  color:var(--text-muted);font-size:11px;line-height:1;padding:2px 3px;border-radius:4px}
.wsx-file__x:hover{color:var(--red);background:var(--light-gray)}
.wsx-file__x[disabled]{opacity:.4;cursor:default}
/* The question, on the row it is about. The library's remove_confirm shape in
   a 258px rail: the two sentences wrap, the two answers sit under them. */
.wsx-file__q{flex-basis:100%;margin-top:7px;padding:8px 9px;border-radius:6px;
  background:var(--off-white);border:1px solid var(--medium-gray)}
.wsx-file__q:focus{outline:2px solid var(--teal);outline-offset:1px}
.wsx-file__q p{margin:0 0 7px;font-size:11px;line-height:1.45;color:var(--navy);
  white-space:normal}
.wsx-file__qacts{display:flex;gap:6px;flex-wrap:wrap}
/* 17.57.21 (spec §3.4) - the evidence library picker, between the drop zone
   and the source rows. It is a second way onto the SAME list, so it borrows
   that list's shape rather than inventing one: the row is the .wsx-file
   layout (name and its small lines on the left, one action on the right,
   the same 8px/13px inset and the same hairline above). The three inner
   rules are repeated rather than hung off the .wsx-file selectors above,
   because tests/test_doc_workspace_*.py matches two of those selectors by
   their exact text. The button that opens the picker is inset like
   the drop zone over it, because the panel itself has no padding and every
   child of it pays for its own. */
#ws-lib-open{display:block;margin:0 10px 10px}
/* The box carries the inset, because it also holds two states that are bare
   text and have no element to hang one on: "Reading the library…" and the
   sentence for an empty library. The rows then pull back out to the panel's
   own edges, so their hairlines run the full width the way the source rows'
   do, and the negative bottom cancels the padding under the last one. */
#ws-lib{border-top:1px solid var(--medium-gray);padding:10px 13px;
  font-size:11.5px;color:var(--text-muted)}
.wsx-lib__q{display:block;width:100%;margin:0 0 9px;font:inherit;font-size:11.5px;
  color:var(--text-primary);background:var(--white);border:1px solid var(--medium-gray);
  border-radius:7px;padding:6px 9px}
.wsx-lib__q:focus{outline:none;border-color:var(--teal)}
/* The listing is capped at a payload bound, so a library past the cap is
   showing a slice and has to say so, under the box that narrows it. */
.wsx-lib__cap{margin:-3px 0 8px;font-size:10.5px;color:var(--text-muted)}
/* The same ceiling the fields list uses, so two scrolling lists in one rail
   behave alike and neither can push the panel past the viewport. */
.wsx-lib__rows{max-height:38vh;overflow-y:auto;margin:0 -13px -10px}
.wsx-lib__row{display:flex;gap:9px;align-items:center;padding:8px 13px;
  border-top:1px solid var(--light-gray);font-size:11.5px}
.wsx-lib__row .meta{min-width:0;flex:1}
.wsx-lib__row .name{font-weight:600;color:var(--text-primary);display:block;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsx-lib__row small{color:var(--text-secondary);display:block;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The row's one action, and the hook the panel's busy owner disables the
   whole list through: the rule and the selector the script reads are the
   same name on purpose, so a class that stops being emitted stops being
   styled in the same edit. A full panel lengthens the label to "Use as
   source (replaces the oldest)", so the button is capped at half the row
   and clipped: the alternative is a row that pushes its own name out of
   sight or scrolls the rail sideways. One line, because .btn is an
   inline-flex box and a capped one would otherwise wrap to three lines and
   take the row's height with it.

   display:inline-block for the clipping to happen at all: text-overflow is
   inert on an inline-flex box, so the capped label was cut off mid-word
   rather than ellipsised. The row's own align-items keeps it placed, and
   the button holds a single text node, so nothing here needed flex. */
.wsx-lib__go{display:inline-block;flex:none;max-width:50%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Relevant to THIS document: the accent tint the pills elsewhere use, small
   and inline so it sits under the name rather than taking a whole line the
   way the date and control ids above it do. */
.wsx-lib__row small.wsx-lib__rel{display:inline-block;margin-top:3px;padding:0 7px;
  border-radius:9px;font-size:9.5px;font-weight:700;
  background:var(--tint-ok-bg);color:var(--tint-ok-ink)}
/* 17.57.17 - "Written from: policy.docx, runbook.pdf." The claim and its
   evidence on one line, under the rows rather than on one of them: it is the
   BODY's provenance, so it outlives any single source leaving the panel. */
.wsx-srcnote{padding:6px 13px 10px;color:var(--text-muted);font-size:11.5px;
  white-space:normal}
/* 16.70.0 "What we read": the fact sheet under a source. Collapsed by default
   and top-aligned when present, so the DOC tile stays beside the filename
   instead of drifting to the middle of an open sheet. */
.wsx-file.is-sf{align-items:flex-start}
.wsx-sf{margin-top:5px}
.wsx-sf>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;
  font-size:10.5px;font-weight:700;color:var(--teal-dark)}
.wsx-sf>summary::-webkit-details-marker{display:none}
.wsx-sf>summary::after{content:"›";color:var(--text-muted);transition:transform .12s}
.wsx-sf[open]>summary::after{transform:rotate(90deg)}
.wsx-sf>summary .n{font-size:9.5px;background:var(--light-gray);border-radius:9px;padding:0 6px;
  color:var(--text-secondary);font-weight:700}
.wsx-sf__g{margin:6px 0 0}
.wsx-sf__g>b{display:block;font-size:9.5px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:3px}
.wsx-sf__i{display:flex;align-items:flex-start;gap:5px;padding:3px 0;border-top:1px solid var(--light-gray)}
.wsx-sf__i .tx{flex:1;min-width:0;font-size:11px;line-height:1.4;color:var(--navy)}
.wsx-sf__i .tx em{display:block;font-style:italic;color:var(--text-secondary);font-size:10.5px}
.wsx-sf__i .tx em::before{content:"\201C"}.wsx-sf__i .tx em::after{content:"\201D"}
.wsx-sf__x{flex:none;border:0;background:none;cursor:pointer;color:var(--text-muted);
  font-size:11px;line-height:1;padding:2px 3px;border-radius:4px}
.wsx-sf__x:hover{color:var(--red);background:var(--light-gray)}
.wsx-sf__x[disabled]{opacity:.4;cursor:default}
.wsx-fact{display:flex;align-items:flex-start;gap:8px;padding:8px 13px;border-top:1px solid var(--light-gray);font-size:11.5px}
.wsx-fact:first-of-type{border-top:0}
.wsx-fact .dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-top:5px}
.wsx-fact .t b{display:block;color:var(--navy)}.wsx-fact .t small{color:var(--text-secondary)}

.wsx-center{display:flex;flex-direction:column;gap:10px;min-width:0}
/* 16.29.0 guided draft: an inline card above the preview (never a modal), and
   the slim reopen-chip it collapses to once the document has been drafted. */
.wsx-wiz{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;padding:14px 16px}
.wsx-wiz__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:9px}
.wsx-wiz__head b{color:var(--navy);font-size:14px}
.wsx-wiz__head span{color:var(--text-secondary);font-size:11.5px}
.wsx-wiz__ramp{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;font-size:11.5px;
  background:var(--off-white);border-radius:8px;padding:8px 11px;margin-bottom:12px}
.wsx-wiz__ramp b{color:var(--navy)}
.wsx-wiz__ramp a{color:var(--teal-dark);text-decoration:none}
.wsx-wiz__ramp a:hover{text-decoration:underline}
.wsx-wiz__qs{display:flex;flex-direction:column;gap:11px}
.wsx-wq{display:flex;flex-direction:column;gap:5px}
.wsx-wq__p{font-size:12px;font-weight:600;color:var(--navy);line-height:1.35}
.wsx-wq__chips{display:flex;flex-wrap:wrap;gap:5px}
.wsx-wchip{font-size:10.5px;font-weight:700;border-radius:12px;padding:3px 10px;cursor:pointer;
  border:1px solid var(--medium-gray);background:var(--white);color:var(--text-secondary)}
.wsx-wchip:hover{border-color:var(--teal);color:var(--teal-dark)}
.wsx-wchip.is-on{border-color:var(--teal);background:var(--teal);color:var(--white)}
.wsx-wq__in{width:100%;font:inherit;font-size:12px;color:var(--navy);background:var(--white);
  border:1px solid var(--medium-gray);border-radius:7px;padding:6px 9px;resize:vertical}
.wsx-wq__in:focus{outline:none;border-color:var(--teal)}
.wsx-wiz__acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:13px}
.wsx-wiz__skip{font-size:11px;border:0;background:none;color:var(--text-muted);cursor:pointer;text-decoration:underline}
.wsx-wiz__skip:hover{color:var(--navy)}
.wsx-wiz__msg{font-size:11px;color:var(--text-secondary)}
.wsx-wizchip{align-self:flex-start;font-size:11px;font-weight:700;text-decoration:none;
  border:1px solid var(--medium-gray);border-radius:12px;padding:4px 12px;
  background:var(--white);color:var(--text-secondary)}
.wsx-wizchip:hover{border-color:var(--teal);color:var(--teal-dark)}
/* 16.31.0 template upgrade: a non-blocking banner above the preview and the
   dry-run panel it opens (the chat's diff cards, display-only). */
.wsx-upg{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;background:#F4F9FC;
  border:1px solid var(--teal);border-left:3px solid var(--teal);border-radius:10px;padding:10px 14px}
.wsx-upg__t{flex:1;min-width:240px;display:flex;flex-direction:column;gap:2px}
.wsx-upg__t b{color:var(--navy);font-size:12.5px}
.wsx-upg__t span{color:var(--text-secondary);font-size:11.5px}
.wsx-upg__later{font-size:11px;border:0;background:none;color:var(--text-muted);cursor:pointer;text-decoration:underline}
.wsx-upg__later:hover{color:var(--navy)}
.wsx-upg-panel{display:flex;flex-direction:column;gap:8px;background:var(--white);
  border:1px solid var(--medium-gray);border-radius:10px;padding:12px 14px;font-size:12px}
.wsx-upgcard{border-color:var(--medium-gray);border-left-color:var(--medium-gray)}
.wsx-upgcard.is-keep_edit{border-color:#8a6d00;border-left-color:#8a6d00}
.wsx-upgcard.is-new{border-color:var(--green);border-left-color:var(--green)}
.wsx-upgcard.is-drop{border-color:var(--red);border-left-color:var(--red)}
.wsx-upg-keep{font-size:11px;color:var(--text-secondary);background:var(--off-white);
  border-radius:8px;padding:7px 11px;line-height:1.45}
.wsx-upg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
.wsx-upg-acts .wsx-drift-close{margin-top:0}
.wsx-prevbar{display:flex;align-items:center;gap:10px;background:var(--white);border:1px solid var(--medium-gray);
  border-radius:10px;padding:8px 13px;font-size:11.5px;color:var(--text-secondary)}
.wsx-prevnote{color:var(--text-muted)}
.wsx-prevgrow{flex:1}
.wsx-edited{font-size:10px;font-weight:800;color:#8a6d00;background:#FDF3D6;border-radius:8px;padding:1px 8px}
.wsx-drift{font-size:11px;font-weight:700;border-radius:7px;padding:5px 11px;cursor:pointer;
  border:1px solid var(--medium-gray);background:var(--white);color:var(--navy);white-space:nowrap}
.wsx-drift:hover{border-color:var(--teal);color:var(--teal-dark)}
/* drift-check result panel */
.wsx-drift-panel{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;padding:12px 14px;
  margin-top:8px;font-size:12px}
.wsx-drift-head{display:flex;align-items:baseline;gap:9px;margin-bottom:8px}
.wsx-drift-badge{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border-radius:8px;
  padding:2px 9px;white-space:nowrap}
.drift-low .wsx-drift-badge{background:#E7F6EC;color:#1b7f4b}
.drift-medium .wsx-drift-badge{background:#FDF3D6;color:#8a6d00}
.drift-high .wsx-drift-badge{background:#FCE4E4;color:var(--red)}
.wsx-drift-sum{color:var(--navy)}
.wsx-drift-meta{font-size:10.5px;color:var(--text-muted);margin-bottom:6px}
.wsx-drift-issue{display:flex;gap:8px;padding:6px 0;border-top:1px solid var(--light-gray)}
.wsx-drift-issue .k{font-size:9px;font-weight:800;text-transform:uppercase;color:#8a6d00;background:#FDF3D6;
  border-radius:6px;padding:2px 7px;height:fit-content;white-space:nowrap}
.wsx-drift-issue .d{color:var(--text-secondary);line-height:1.45}
.wsx-drift-close{margin-top:10px;font-size:11px;font-weight:700;border:1px solid var(--medium-gray);
  background:var(--white);border-radius:7px;padding:4px 12px;cursor:pointer;color:var(--text-secondary)}
.wsx-diff--body .old,.wsx-diff--body .add{white-space:pre-wrap;display:block;width:100%}
.wsx-edit.is-body{border-color:#8a6d00;border-left-color:#8a6d00}
/* 16.27.0: document decoration — edit highlight (yellow) + verify box (amber) */
.wsx-page .ws-hl{background:#fff7cc;box-shadow:inset 3px 0 0 #e6c200;border-radius:3px;padding:2px 8px;margin:2px -8px}
.wsx-page .ws-verify{border-left:3px solid var(--amber);background:#fff8ec;border-radius:0 6px 6px 0;
  padding:6px 12px;margin:8px 0}
.wsx-page .ws-verify__tag{font-size:10.5px;font-weight:800;color:#8a6d00;text-transform:uppercase;
  letter-spacing:.03em;margin-bottom:4px}
.wsx-page .ws-verify__tag .ids{font-weight:600;color:var(--text-muted);text-transform:none;letter-spacing:0}
.wsx-page .ws-hl .ws-verify{margin:6px 0}
/* templates-table spec (body pages): the read-only per-control Records block.
   A left rule and a muted note that says where these lines ARE editable - the
   document text itself never is. */
/* 17.57.45: the preview collapses the Key records page; the .docx keeps it
   open on page one. The summary reads "Key records · 23 rows · 9 missing". */
.wsx-page .ws-keyrec{margin:0 0 10px}
.wsx-page .ws-keyrec > summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  cursor:pointer;list-style:none;padding:4px 0}
.wsx-page .ws-keyrec > summary::-webkit-details-marker{display:none}
.wsx-page .ws-keyrec > summary::before{content:"\25B8";color:var(--text-muted);
  font-size:11px;transition:transform .12s ease}
.wsx-page .ws-keyrec[open] > summary::before{transform:rotate(90deg)}
.wsx-page .ws-keyrec__t{font-size:15px;font-weight:800;color:var(--navy)}
/* 2026-10-04 (19.0.23): the Activity records section under the Key records
   page. An annex of that page, not a second document title: the heading takes
   the Key records summary's face, each "For ...:" line labels its group, and
   a date stays on one line (.ws-nb). Preview only. */
.wsx-page .ws-actrec{margin:2px 0 14px}
.wsx-page .ws-actrec__h{font-size:15px;font-weight:800;color:var(--navy);padding:4px 0}
.wsx-page .ws-actrec__legend{margin:0 0 8px;color:var(--text-muted)}
.wsx-page .ws-actrec__for{margin:8px 0 2px;font-weight:700}
.wsx-page .ws-actrec__line{margin:0 0 2px}
.ws-nb{white-space:nowrap}
.wsx-page .ws-keyrec__n{font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums}
.wsx-page .ws-rec{border-left:3px solid var(--navy);background:var(--off-white);
  border-radius:0 6px 6px 0;padding:6px 12px;margin:8px 0}
/* A block with a Missing row: amber rule and amber ground, so a gap in the
   body reads the same way it does in the Level column. */
.wsx-page .ws-rec.is-missing{border-left-color:var(--amber);background:#fff8ec}
.wsx-page .ws-rec p{margin:2px 0;font-size:11.5px}
.wsx-page .ws-rec__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;
  justify-content:space-between;margin-bottom:4px}
.wsx-page .ws-rec__tag{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;
  font-weight:800;color:var(--navy)}
.wsx-page .ws-rec.is-missing .ws-rec__tag{color:#8a6d00}
.wsx-page .ws-rec__note{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;
  font-weight:700}
/* A Missing row's Statement is an instruction to act on, not muted filler. */
.wsx-page .ws-tbl__miss{color:#8a6d00}

/* 16.42.0: AI-liability notice - persistent, not dismissable (no close). */
.wsx-aidisc{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;padding:8px 12px;
  border:1px solid #f0d9a0;border-left:3px solid var(--amber);background:#fff8ec;border-radius:0 8px 8px 0;
  font-size:11.5px;line-height:1.5;color:#7a5c00}
.wsx-aidisc svg{flex:none;margin-top:2px;color:#b08400}

/* 17.4.1: the adopted-document note. Green because it is a good state (the
   customer's own words are the document), and it sits directly above the
   AI-liability notice because the two answer the same question in order:
   whose words are these, and who is responsible for them. */
.wsx-adopted{margin:0 0 8px;padding:8px 12px;border:1px solid #C6E9D5;
  border-left:3px solid #1E7A46;background:#F3FAF5;border-radius:0 8px 8px 0;
  font-size:11.5px;line-height:1.5;color:#1E5B38}
.wsx-adopted b{display:block;font-size:12px;color:#1E7A46}
/* 17.4.2: the one thing inside a good state that is not good news. Colour and
   weight only - it lives in the note that is already there, so it adds no
   layout on any screen. */
.wsx-adopted__warn{display:block;margin-top:4px;color:#8A1C1C;font-weight:600}
/* 17.4.5: the severed source. NOT a warning - nothing is wrong with this
   document and nothing about it changed - so it is the note's own colour, one
   shade quieter, and it adds no layout on any screen for the same reason. */
.wsx-adopted__note{display:block;margin-top:4px;opacity:.85}
/* 17.4.4: the replace question and the failure notice, asked in the editor
   when the door was chosen there. Deliberately the evidence library's own
   amber, because it is literally the same question in a second place; it
   wraps for the same reason .slotmap__confirm does. */
.wsx-replace{margin:0 0 8px;padding:8px 10px;border-radius:6px;
  background:#FDF6E3;border:1px solid #F0D98A;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wsx-replace p{margin:0;font-size:12.5px;color:#6b5400}
.wsx-replace form{margin:0}

/* 17.4.3 review mode. A note like the two above it and in the same column,
   so an adopted document gains a banner and not a layout. Colour only on
   every phone rule this page has. */
.wsx-review{margin:0 0 8px;padding:8px 12px;border:1px solid #C7E5EA;
  border-left:3px solid var(--teal);background:#F2FAFB;border-radius:0 8px 8px 0;
  font-size:11.5px;line-height:1.6;color:#0F5A66}
/* 2026-09-14: `.wsx-review__head` and `.wsx-review__jump` went with the
   banner's three-block structure - the count is the notice line's own
   sentence now and the jump list is what "Details" opens. Nothing reads
   them, so nothing keeps them. */
.wsx-review__src{margin-left:6px;font-weight:700}
.wsx-review__to{margin-left:6px;text-decoration:underline}
/* an addition somebody has already read: quiet, struck through, still a link
   (the point of the list is that you can go back to any of them). */
.wsx-review__to.is-done{color:#1E7A46;text-decoration:none}
.wsx-review__gate{display:block;margin-top:4px;color:#8A1C1C;font-weight:600}
.wsx-review__gate[hidden]{display:none}
/* the inline Accept, on the section itself. Sits in the SAME corner the
   16.42.0 pencil does, one step left of it, and is always visible: a control
   that only appears on hover cannot be a gate. */
.ws-secaccept{position:absolute;top:2px;right:24px;z-index:2;cursor:pointer;
  font-size:10.5px;font-weight:700;line-height:1;padding:5px 9px;border-radius:6px;
  border:1px solid #C6E9D5;background:#E9F7EF;color:#1E7A46}
.ws-secaccept:hover{background:#DBF1E5;border-color:#1E7A46}
.ws-secaccept[disabled]{opacity:.5;cursor:default}

/* 17.4.3 drift. Amber, because the document is fine and the world moved. */
.wsx-srcchg{margin:0 0 8px;padding:8px 12px;border:1px solid #f0d9a0;
  border-left:3px solid var(--amber);background:#fff8ec;border-radius:0 8px 8px 0;
  font-size:11.5px;line-height:1.5;color:#7a5c00}
.wsx-srcchg b{display:block;font-size:12px;color:#8a6d00}
.wsx-srcchg a{margin-left:6px;font-weight:700}

/* 16.42.0: per-section wrapper + hover pencil + inline raw-markdown editor */
.wsx-page .ws-sec{position:relative}
.wsx-page .ws-sec.is-jumped{box-shadow:0 0 0 3px rgba(255,193,7,.45);border-radius:4px}
.ws-secedit{position:absolute;top:2px;right:-6px;z-index:2;opacity:0;pointer-events:none;
  display:grid;place-items:center;width:24px;height:24px;border-radius:6px;cursor:pointer;
  border:1px solid var(--medium-gray);background:var(--white);color:var(--text-secondary);
  transition:opacity .12s,color .12s,border-color .12s}
.wsx-page .ws-sec:hover>.ws-secedit,.ws-secedit:focus-visible{opacity:1;pointer-events:auto}
.ws-secedit:hover{color:var(--teal-dark);border-color:var(--teal)}
.ws-seced{border:1px solid var(--teal);border-radius:8px;padding:10px 12px;margin:8px 0;background:var(--off-white)}
.ws-seced__h{font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:6px}
.ws-seced__in{width:100%;box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11.5px;line-height:1.55;color:#33415e;background:var(--white);border:1px solid var(--medium-gray);
  border-radius:6px;padding:8px 10px;resize:vertical}
.ws-seced__hint{font-size:10.5px;color:var(--text-muted);margin-top:5px}
.ws-seced__acts{display:flex;align-items:center;gap:8px;margin-top:8px}
.ws-seced__save,.ws-seced__cancel{font-size:11px;font-weight:700;border-radius:7px;padding:5px 13px;cursor:pointer;
  border:1px solid var(--medium-gray);background:var(--white);color:var(--navy)}
.ws-seced__save{background:var(--teal);border-color:var(--teal);color:#fff}
.ws-seced__save:disabled{opacity:.6;cursor:default}
.ws-seced__cancel{color:var(--text-secondary)}
.ws-seced__msg{font-size:11px;color:var(--red)}
.wsx-edit.is-badcard{color:var(--text-secondary);font-size:11.5px}

.wsx-page{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;
  padding:30px 40px;box-shadow:0 2px 10px -6px #16233b22;font-size:12.5px;color:#33415e;line-height:1.6}
.wsx-page h1{font-size:19px;color:var(--navy);margin:0 0 12px;border-left:4px solid var(--navy);padding-left:12px}
.wsx-page h2{font-size:14.5px;color:var(--navy);margin:20px 0 6px}
.wsx-page h3{font-size:13px;color:var(--navy);margin:14px 0 5px}
.wsx-page h4{font-size:12px;color:var(--text-secondary);margin:12px 0 4px}
.wsx-page p{margin:0 0 8px}
.wsx-page ul,.wsx-page ol{margin:6px 0 10px 20px;padding:0}
.wsx-page li{margin:2px 0}
.wsx-page hr{border:0;border-top:1px solid var(--medium-gray);margin:16px 0}
.wsx-page .ws-tblwrap{overflow-x:auto;margin:10px 0}
.wsx-page .ws-tbl{border-collapse:collapse;width:100%;font-size:11px}
.wsx-page .ws-tbl th{background:var(--navy);color:#fff;padding:5px 9px;text-align:left;font-size:10px;font-weight:700}
.wsx-page .ws-tbl td{border:1px solid var(--medium-gray);padding:5px 9px;vertical-align:top}
/* Typed source: neutral grid, literal spacing and local horizontal scrolling.
   These are reading styles, not a claim to reproduce the source's colours. */
.preserved-source{text-align:left;min-width:0;background:var(--white)}
.preserved-source p,.preserved-source h1,.preserved-source h2{white-space:pre-wrap;max-width:80ch}
.preserved-table{overflow-x:auto;max-width:100%;margin:12px 0}
.preserved-table:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.preserved-table table{border-collapse:collapse;width:100%;font:inherit}
.preserved-table th,.preserved-table td{white-space:pre-wrap;text-align:left;vertical-align:top;
  border:1px solid var(--medium-gray);padding:6px 9px;background:var(--white);color:inherit}
.preserved-table caption{text-align:left;padding:6px 0;color:var(--text-secondary)}
.preserved-source figure{margin:16px 0;max-width:100%}
.preserved-source img{max-width:100%;height:auto}
.preserved-source figcaption{color:var(--text-secondary);margin-top:6px}
.preserved-controls{margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid var(--medium-gray)}
.wsx-page .ws-ai-ph{border:1.5px dashed #b39ddb;background:#f6f2fc;border-radius:8px;padding:10px 12px;margin:10px 0}
.wsx-page .ws-ai-ph__tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:#6631e0}
.wsx-page .ws-ai-ph__hint{display:block;font-size:11px;color:var(--text-secondary);margin-top:2px}
.wsx-page .ws-ai-inline{background:#f6f2fc;color:#6631e0;font-style:normal;font-size:.9em;font-weight:600;
  border:1px dashed #b39ddb;border-radius:5px;padding:0 5px}

.wsx-sidebar{min-width:0;display:flex;flex-direction:column;gap:16px}
.wsx-sidebar > .wsx-panel{margin:0}
.wsx-chat{display:flex;flex-direction:column;position:sticky;top:14px;max-height:calc(100vh - 118px)}
.wsx-sidebar .wsx-chat{position:static;max-height:none}
.wsx-sidebar .wsx-msgs{min-height:160px;max-height:360px;flex:0 1 auto}
.wsx-editor #ws-risk-methodology{margin:0;padding:16px;border-bottom:1px solid var(--medium-gray);font-size:13px;line-height:1.55}
.wsx-editor #ws-risk-methodology h3{padding:0 0 8px;border:0;text-transform:none;font-size:14px}
.wsx-editor #ws-risk-methodology p{margin:0 0 10px}
.wsx-msgs{padding:12px;display:flex;flex-direction:column;gap:9px;overflow-y:auto;flex:1}
.wsx-msg{max-width:93%;border-radius:10px;padding:8px 11px;font-size:11.8px;white-space:pre-wrap;line-height:1.5}
.wsx-msg.user{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:3px}
.wsx-msg.ai{align-self:flex-start;background:var(--light-gray);border-bottom-left-radius:3px}
.wsx-msg.pending{color:var(--text-muted);font-style:italic}
.wsx-quick{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 8px}
.wsx-qchip{font-family:inherit;font-size:12px;font-weight:700;line-height:1.35;color:var(--teal-dark);border:1px solid var(--teal);
  background:var(--white);border-radius:16px;padding:6px 10px;min-height:32px;cursor:pointer;white-space:normal;text-align:left}
.wsx-qchip:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.wsx-qchip:hover{background:var(--teal);color:#fff}
.wsx-qchip--draft{background:var(--teal);color:#fff}
.wsx-qchip--draft:hover{background:var(--teal-dark)}
.wsx-composer{border-top:1px solid var(--medium-gray);padding:10px 12px;display:flex;gap:8px;align-items:center}
.wsx-in{flex:1;border:1px solid var(--medium-gray);border-radius:16px;padding:7px 13px;font-size:11.8px}
.wsx-in:focus{outline:none;border-color:var(--navy)}
.wsx-send{width:30px;height:30px;border:0;border-radius:50%;background:var(--teal);color:#fff;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
/* 17.57.44 (mobile pass): the collapse already stacked the three columns,
   but it stacked them in DOM order - the left rail first, the document the
   page is ABOUT a screen further down, and the chat below all of it. The
   order lives HERE rather than at 640px because 641-1100 is the same one
   column with the same problem. Above 1100px no order applies. */
@media(max-width:1100px){.wsx-grid{grid-template-columns:1fr}.wsx-chat{position:static;max-height:none}
  .wsx-center{order:1}.wsx-rail{order:2}.wsx-sidebar{order:3}}

/* ── Company information (16.17.0) ─────────────────────────────── */
/* 16.63.0 (⑦h §B): the identity block. The workspace's own logo beside the
   organization's name, edited where it is read - the input IS the h1, so
   there is no toggle to get stuck in and no JavaScript between a customer
   and their own name. The Save button only earns its space once the field
   is touched, which is what keeps a header from looking like a form. */
.ci-idhead{align-items:flex-start}
.ci-ident{display:flex;align-items:center;gap:14px;min-width:0}
.ci-ident__logo{flex:none;display:grid;place-items:center;width:64px;height:64px;
  background:var(--white);border:1px solid var(--medium-gray);border-radius:12px;padding:8px}
.ci-ident__logo img{max-width:100%;max-height:100%;height:auto;display:block}
/* 16.65.0 (⑧a §A): the no-logo state. Same disc the sidebar usercard draws
   for a person (teal, white, bold, centred initials), scaled to the 64px
   identity slot; the frame's white fill, border and padding go with the
   picture they were framing. */
.ci-ident__logo--initials{background:var(--teal);border-color:var(--teal);color:var(--white);
  padding:0;font-size:24px;font-weight:700;line-height:1;letter-spacing:.01em}
.ci-ident__who{min-width:0}
.ci-ident__name{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
.ci-ident__name h1{margin:0;min-width:0}
.ci-ident__input{width:min(46ch,100%);max-width:100%;margin:0;padding:3px 8px;
  font-size:26px;font-weight:700;color:var(--navy);line-height:1.2;
  background:transparent;border:1px solid transparent;border-radius:8px;
  transition:border-color .12s,background .12s}
.ci-ident__input:hover{border-color:var(--medium-gray)}
.ci-ident__input:focus{outline:none;background:var(--white);border-color:var(--teal)}
.ci-ident__name .btn{flex:none}
@media(max-width:1100px){.ci-ident__input{font-size:21px}}
.ci-meter{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;padding:10px 16px;min-width:230px}
.ci-meter .l{font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary)}
.ci-meter .v{font-size:19px;font-weight:800;color:var(--navy)}
.ci-meter .v small{font-size:11px;color:var(--text-muted);font-weight:600}
.ci-meter .bar{height:6px;border-radius:3px;background:var(--medium-gray);margin-top:6px;overflow:hidden}
.ci-meter .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--amber),var(--teal))}
.ci-meter .hint{font-size:10px;color:var(--text-muted);margin-top:5px}
/* 16.55.0 (⑥d §A): same density pass as .detail__grid - these two grids
   already hugged (align-items:start since 16.17.0), so what was left to
   spend was padding and the dropzone, which was a 14px-padded box asking
   for files nobody drops twice. */
.ci-idrow{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:11px;align-items:start}
.ci-col{display:flex;flex-direction:column;gap:11px;min-width:0}
.ci-col > .card{margin-bottom:0}
.ci-idrow > .card,.ci-col > .card{padding:14px 15px}
/* 16.63.0 (⑦h §B): h2 joins the selector - the Branding card arrived from
   .detail__grid, where its h2 was already stepped down to 13px, and a card
   that changed pages must not change size doing it. */
.ci-idrow > .card h2,.ci-col > .card h2,
.ci-idrow > .card h3,.ci-col > .card h3{font-size:13px;margin:0 0 6px}
/* 16.65.0 (⑧a §F) - Control ownership at ⑦b density. Five roles, five rows:
   name on the left, dropdown on the right, one line each. It was five stacked
   label-over-select pairs (.form-row is a COLUMN flex), which made the
   shortest card on the page the tallest. Scoped to .ci-own so no other
   label/select pair on this page or any other is touched. */
.ci-own .own-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,150px);
  gap:8px;align-items:center;margin:0 0 5px}
.ci-own .own-row__label{font-size:12px;font-weight:600;color:var(--text-secondary);
  min-width:0;overflow:hidden;text-overflow:ellipsis}
.ci-own .own-row select,.ci-own .own-row input{width:100%;margin:0;font-size:12px;padding:4px 6px}
/* The `display:grid` above outranks the UA's [hidden]{display:none}, so the
   MSP-name rows rendered even while their role said In-house - latent since
   ⑧a (one stray field) and five of them once ⑧b gave every role its own.
   Same restoration .ci-editor[hidden] needs, for the same reason. */
.ci-own .own-row[hidden]{display:none}
/* 16.66.0 (⑧b §4): the provider name is a CHILD of the role above it now,
   not a trailing field for the whole card, so it reads as one - indented
   caption, quieter type, and the same two-column grid so its box lines up
   with the five dropdowns rather than beside them. */
.ci-own .own-msp{margin:-2px 0 6px}
.ci-own .own-msp .own-row__label{position:relative;padding-left:14px;
  font-weight:500;color:var(--text-muted)}
.ci-own .own-msp .own-row__label::before{content:"\21B3";position:absolute;
  left:2px;color:var(--medium-gray)}
/* The refused-save state: the field says which field, before the sentence
   under it says why. */
.ci-own .own-msp.is-bad input{border-color:var(--red);background:#fff5f5}
.ci-own .own-msp__err{margin:4px 0 8px;font-size:11.5px;color:var(--red)}
.ci-own form > .btn{margin-top:8px}
.ci-uploads{padding:14px 15px}
.ci-drop{display:block;margin:10px 0 0;border:1.5px dashed var(--medium-gray);border-radius:9px;padding:9px 12px;
  text-align:center;color:var(--text-muted);font-size:11.5px;cursor:pointer;transition:border-color .12s,background .12s}
.ci-drop:hover,.ci-drop.is-over{border-color:var(--teal);background:var(--off-white)}
.ci-drop b{display:block;color:var(--navy);font-size:12.5px;margin-bottom:2px}
.ci-srclist{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ci-src{display:inline-flex;gap:8px;align-items:center;background:var(--off-white);border:1px solid var(--medium-gray);
  border-radius:9px;padding:6px 10px;font-size:11px;max-width:340px}
.ci-src .ic{flex:none;width:24px;height:28px;border:1px solid var(--medium-gray);border-radius:4px;display:grid;
  place-items:center;font-size:7.5px;font-weight:800;color:var(--text-secondary);background:var(--white)}
.ci-src .name{font-weight:700;color:var(--navy);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.ci-src small{color:var(--text-secondary);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
/* ⑧a §F moved this row above .ci-idrow, so it is the one that now needs the
   gap under it. .ci-idrow keeps its own for the mobile stack. */
.ci-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:11px;align-items:start;
  margin-bottom:11px}
.ci-board{padding:18px 22px}
.ci-chat{max-height:calc(100vh - 140px)}
/* 16.66.0 (⑧b §3): the right column holds two cards now - the interview and
   the documents you feed it. The chat gives up the height the uploads card
   needs, because a drop zone parked below a viewport-tall chat is the same
   distance away as the identity row it came from. The h3 step-down comes
   with the card from .ci-col so it does not change size by changing column. */
.ci-side{display:flex;flex-direction:column;gap:11px;min-width:0}
.ci-side > .card{margin-bottom:0}
.ci-side > .card h3{font-size:13px;margin:0 0 6px}
.ci-side .ci-chat{max-height:calc(100vh - 320px)}
@media(max-width:1100px){.ci-main{grid-template-columns:1fr}
  .ci-chat,.ci-side .ci-chat{position:static;max-height:none}}
.ci-grp{border-top:1px solid var(--light-gray);margin-top:10px;padding-top:8px}
.ci-grp:first-of-type{border-top:0;margin-top:6px}
.ci-grp-h{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--navy)}
.ci-grp-h .pct{margin-left:auto;font-size:10px;font-weight:800;color:var(--text-muted);font-variant-numeric:tabular-nums}
.ci-facts{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0 4px}
.ci-fact{display:inline-flex;align-items:center;gap:6px;background:var(--off-white);border:1px solid var(--medium-gray);
  border-radius:14px;padding:4px 11px;font-size:11px;color:var(--navy);cursor:pointer;font-family:inherit;text-align:left}
.ci-fact:hover{border-color:var(--teal)}
.ci-fact b{font-weight:700}
.ci-fact .val{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-fact .src{font-size:8.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;border-radius:7px;padding:0 5px}
.src-manual,.src-chat{background:#E0F2F1;color:#00695C}
.src-doc{background:#E8EAF6;color:#3949AB}
.src-scan{background:#FFF3E0;color:#B26A00}
.ci-fact.is-miss{border-style:dashed;color:var(--text-muted);background:transparent}
.ci-fact.is-miss:hover{color:var(--teal-dark)}
.ci-ground{margin-top:12px;padding-top:10px;border-top:1px solid var(--light-gray);font-size:10.5px;color:var(--text-muted)}
.ci-editor{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--white);border:1px solid var(--teal);
  border-radius:10px;padding:8px 11px;margin:2px 0;flex-basis:100%}
/* the flex display above outranks the UA [hidden] rule, so restore it — else
   the editor is always shown and Cancel/Save (with no active chip) do nothing */
.ci-editor[hidden]{display:none}
.ci-editor__label{font-size:10.5px;font-weight:700;color:var(--text-secondary);flex-basis:100%}
.ci-editor input{flex:1;min-width:220px;border:1px solid var(--medium-gray);border-radius:7px;padding:6px 10px;font-size:12px}
.ci-editor input:focus{outline:none;border-color:var(--navy)}
.ci-editor__acts{display:flex;gap:6px;align-items:center}
.ci-ed-clear{background:transparent;border:1px solid var(--medium-gray);color:var(--red);border-radius:8px;
  font-size:10.5px;font-weight:700;padding:4px 10px;cursor:pointer}
@media(max-width:1100px){.ci-idrow{grid-template-columns:1fr}}

/* Structured Company profile: a readable business record, grouped by purpose.
   Existing brand tokens: navy #001F5B, green #009360, white #FFF,
   neutral #F4F6F9 and text #5A6478; IBM Plex headings and Lato body. */
.ci-support { margin-bottom: 20px; }
.ci-support > .ci-side { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.ci-support .ci-chat { max-height: none; }
.ci-support .ci-chat{position:static}
.ci-support .wsx-msgs{padding:12px 0;min-height:130px;max-height:300px;flex:0 1 auto}
.ci-support .wsx-msg,.ci-support .wsx-in{font-size:14px}
.ci-support .wsx-quick{padding:0 0 12px;gap:8px}
.ci-support .wsx-composer{padding:12px 0 0}
.ci-support .wsx-in{min-width:0;min-height:40px}
.ci-support .wsx-send{width:40px;height:40px}
.ci-support .card h3,.ci-idrow .card h2,.ci-idrow .card h3{font-size:16px;line-height:1.4;margin-bottom:12px}
.ci-support .small,.ci-idrow .small,.ci-risk-strategy p{font-size:14px;line-height:1.55}
.ci-idrow .form-row,.ci-idrow .own-row__label,.ci-idrow .own-row select,.ci-idrow .own-row input{font-size:14px}
.ci-idrow input:not([type=radio]):not([type=checkbox]),.ci-idrow select{max-width:100%;min-width:0;min-height:36px}
/* Company identity forms share one type scale; native radios stay inline. */
/* 19.1.3: the identity editors are ONE grid of cards, not three stacked
   columns. The column wrappers stay in the template (the DORA order and
   its tests read them) and turn transparent here, so every card is a grid
   item of its own: the row takes as many ~340px cards as fit, aligned at
   the top, instead of 1 | 3 | 1 cards stretched across a wide screen. One
   card per row under 600px. */
/* 300px, not 340: five cards fit one row from ~1,600px of content width (a
   1,920px screen); 340 left Control ownership alone on a second row there. */
.ci-identity-editors{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
/* 19.1.6 (2026-10-14, owner on a DORA workspace's My Company page: "they're
   really really bad looking"): the one grid suits a NIS2 workspace's five
   similar cards, but a DORA workspace's six very different cards landed in
   one row stretched to the tall sharing card - walls of empty card. The
   one-grid rules now apply only without the --dora modifier; a DORA
   workspace gets back the three balanced columns its template already
   builds (Branding and sharing | financial entity profile | ownership,
   sector and document effect), each card at its natural height. */
.ci-identity-editors:not(.ci-identity-editors--dora) > .ci-col{display:contents}
.ci-identity-editors--dora{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.ci-identity-editors .ci-entity-choices{gap:8px;margin:12px 0}
/* 19.1.4 (owner, on the 19.1.3 screenshot: "they look misaligned, can we
   make them the same size?"): the cards of a row share one height - the
   one grid on the page that deliberately does NOT hug (.ci-idrow's
   align-items:start stays for the record) - and each card's last form
   takes the remaining height and pushes its button to the bottom edge, so
   the Save buttons of a row stand on one line. The field before the button
   keeps a 10px floor (also past a hidden MSP-name row in Control
   ownership). The Branding card's pair of forms is pinned the same way. */
.ci-identity-editors:not(.ci-identity-editors--dora){align-items:stretch}
.ci-identity-editors .card{display:flex;flex-direction:column}
.ci-identity-editors .card > form:last-of-type{display:flex;flex-direction:column;flex:1 1 auto}
.ci-identity-editors .card > form:last-of-type > .btn{margin-top:auto;align-self:flex-start}
.ci-identity-editors .card > form:last-of-type > :has(+ .btn),
.ci-identity-editors .card > form:last-of-type > :has(+ [hidden] + .btn){margin-bottom:10px}
.ci-identity-editors .brandcard-forms{margin-top:auto}
/* 19.1.5 (owner, on the 19.1.4 page: "the 5 buttons aren't the same size"):
   the five action buttons share one width - 14rem fits the longest Romanian
   label on one line - so a row of cards ends in five equal buttons. */
.ci-identity-editors .card > form:last-of-type > .btn,.ci-identity-editors .brandcard-forms .btn{min-width:14rem;text-align:center;justify-content:center}
/* In a ~300px card the role names wrap to a second line rather than clip. */
.ci-identity-editors .ci-own .own-row__label{white-space:normal;overflow:visible;text-overflow:clip}
.ci-identity-editors .card{min-width:0}
.ci-identity-editors .btn{font-size:14px;min-height:40px;padding:9px 14px}
.ci-identity-editors label,.ci-identity-editors .form-row label,
.ci-identity-editors input,.ci-identity-editors select,.ci-identity-editors button{font-family:inherit;font-size:14px;line-height:1.45}
.ci-identity-editors form>label{display:grid;gap:6px;font-weight:600;color:var(--navy)}
.ci-identity-editors select{box-sizing:border-box;width:100%;padding:8px 10px;border:1px solid var(--medium-gray);border-radius:8px;background:var(--white);color:var(--text-primary);font-weight:400}
.ci-entity-choices{display:grid;gap:12px;margin:18px 0}
.ci-entity-choices label{display:flex;align-items:center;gap:9px;color:var(--text-primary);font-weight:400;cursor:pointer}
.ci-entity-choices input[type=radio]{display:block;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;accent-color:var(--green)}
.ci-identity-editors .brandcard-forms input[type=file]{box-sizing:border-box;width:100%;padding:6px 0}
.ci-risk-strategy h2{font-size:20px;color:var(--navy)}
.ci-risk-strategy .muted{color:var(--text-secondary)}
.ci-risk-strategy h3{font-size:16px;color:var(--navy)}
.ci-risk-strategy dt,.ci-risk-strategy dd{font-size:14px;line-height:1.55}
.ci-risk-link{margin:16px 0;font-size:14px}
@media(max-width:600px){.ci-identity-editors{grid-template-columns:minmax(0,1fr)}}
/* 19.1.6: the DORA columns stack under 1,100px, the pre-19.1.3 breakpoint. */
@media(max-width:1100px){.ci-identity-editors--dora{grid-template-columns:minmax(0,1fr)}}
/* 19.1.7 (2026-10-14, lane J; owner on the editor's view of a DORA workspace:
   "it does not look good" - column 1 ran ~1,650px against ~500 and ~1,140
   because the sharing card printed six packs at full length). The card keeps
   every word and control; it just sits tighter: one row per pack (checkbox and
   title, the state and preview link under the title), the pack's description
   behind a small native <details> whose summary sits at the right of the
   title row, so a closed pack costs two short lines. Scoped by the card's id:
   the card renders only on a DORA workspace, and the lane AE rules it
   overrides stay as they were. */
#ci-sharing .ci-share__lead{margin-bottom:0}
#ci-sharing .callout{margin-top:8px;padding:6px 10px;font-size:12.5px;line-height:1.45}
#ci-sharing .ci-share__packs{gap:0;margin-top:8px}
#ci-sharing .ci-share__pack{position:relative;padding:7px 0}
#ci-sharing .ci-share__pack + .ci-share__pack{border-top:1px solid var(--border-subtle,var(--medium-gray))}
/* The title row leaves room on the right for the "What is in it" summary. */
#ci-sharing .ci-share__check{margin:0;padding-right:7.5em;gap:8px;font-size:14px;line-height:1.4;color:var(--text-primary)}
#ci-sharing .ci-share__check > input[type="checkbox"]{width:16px;height:16px;min-height:0;accent-color:var(--green)}
#ci-sharing .ci-share__check b{font-weight:600}
/* State and description line up under the title, past the 16px box and its 8px gap. */
#ci-sharing .ci-share__state{margin:1px 0 0 24px;font-size:12.5px;line-height:1.45}
#ci-sharing .ci-share__what > summary{position:absolute;top:7px;right:0;cursor:pointer;font-size:12.5px;line-height:19.6px;color:var(--text-secondary);white-space:nowrap}
#ci-sharing .ci-share__what > summary:hover,#ci-sharing .ci-share__what[open] > summary{color:var(--navy)}
#ci-sharing .ci-share__what > .ci-share__line{margin:4px 0 0 24px;font-size:12.5px;line-height:1.45}
#ci-sharing form > .ci-share__packs + p{margin:6px 0 0}
#ci-sharing .ci-share__save{margin-top:10px}
#ci-sharing .ci-share__h{margin:14px 0 2px}
/* An editor's financial entity profile is read-only text (no form): its
   paragraphs sit at one small rhythm instead of the browser's default
   paragraph air. The administrator's regime form is untouched. */
.ci-identity-editors--dora #ci-regime:not(:has(form)) > p{margin:0 0 8px}
.ci-identity-editors--dora #ci-regime:not(:has(form)) > p:last-child{margin-bottom:0}
.ci-support .ci-drop{padding:18px 12px;font-size:13px}
.ci-support .ci-drop b{font-size:14px}
.ci-profile { margin-top: 28px; padding: clamp(20px, 3vw, 40px); overflow-wrap: anywhere; }
.ci-profile__header { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.ci-profile__header h2 { margin: 0 0 8px; font-size: 1.65rem; }
.ci-profile__header p { margin: 0; max-width: 72ch; font-size: 1rem; }
.ci-profile__header .btn { flex-shrink: 0; }
.ci-profile__section { border-top: 1px solid var(--medium-gray); margin-top: 28px; padding-top: 24px; }
.ci-profile__section h3 { margin: 0 0 20px; font-size: 1.2rem; color: var(--navy); }
.ci-profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.ci-profile__fact { min-width: 0; }
.ci-profile__fact dt { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ci-profile__fact dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.ci-profile__fact--long { grid-column: 1 / -1; }
.ci-profile__value { max-width: 78ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.ci-profile__provenance { background: none; color: var(--text-secondary); font-size: .8rem; margin-top: 4px; }
.ci-profile__fact--unknown dd { color: var(--text-secondary); font-size: .9rem; }
.ci-profile__reason { white-space: pre-wrap; max-width: 78ch; margin: 6px 0; font-size: .9rem; }
.ci-profile__fact--long :is(.ci-profile__value,.ci-profile__reason) { max-width: none; }
.ci-profile__detail { margin-top: 18px; font-size: .9rem; }
.ci-profile__fact .ci-profile__detail { margin-top: 8px; }
.ci-profile__detail summary { cursor: pointer; color: var(--navy); font-weight: 700; padding: 6px 0; }
.ci-profile__detail p { max-width: 78ch; white-space: pre-wrap; }
.ci-profile__form fieldset { margin: 20px 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--medium-gray); min-width: 0; }
.ci-profile__form legend { font-size: 1.2rem; color: var(--navy); font-weight: 700; padding-right: 12px; }
.ci-profile__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ci-profile__field { min-width: 0; }
.ci-profile__field--long { grid-column: 1 / -1; }
.ci-profile__field label { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.ci-profile__field input, .ci-profile__field textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 12px; font: inherit; line-height: 1.6; border: 1px solid var(--medium-gray); border-radius: 6px; }
.ci-profile__field textarea { resize: vertical; }
.ci-profile__field small { display: block; margin-top: 6px; }
.ci-profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ci-profile :focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.ci-profile [hidden] { display: none !important; }
.ci-fact-review { margin: 24px 0 32px; padding: 24px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--medium-gray); }
.ci-fact-review > p { max-width: 78ch; }
.ci-fact-review .muted { color: var(--text-secondary); }
.ci-review-sources summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.ci-review-source { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--light-gray); overflow-wrap: anywhere; }
.ci-review-source input { margin-top: 5px; flex: 0 0 auto; }
.ci-review-source small { color: var(--text-secondary); }
.ci-proposal { max-width: 80ch; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--medium-gray); font-size: 14px; line-height: 1.6; }
.ci-proposal h4 { font-size: 16px; line-height: 1.4; margin: 0 0 16px; color: var(--navy); }
/* One reading column keeps a short/empty current value from pushing the
   proposal away from its explanation, source excerpts and decision controls. */
.ci-proposal__values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.ci-proposal__values dt { font-weight: 700; margin-bottom: 8px; }
.ci-proposal__values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: inherit; }
.ci-proposal .ci-profile__reason { max-width: none; font-size: inherit; line-height: inherit; }
.ci-proposal__conflict { color: var(--text-secondary); }
.ci-proposal__citation { margin-top: 16px; overflow-wrap: anywhere; }
.ci-proposal__citation .small { font-size: inherit; line-height: inherit; margin: 4px 0; }
.ci-proposal blockquote { margin: 8px 0; padding-left: 14px; border-left: 2px solid var(--medium-gray); max-width: 78ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.ci-proposal .btn { min-height: 40px; padding: 8px 14px; font-size: inherit; line-height: inherit; }
.ci-save-status { margin-top: 12px; color: var(--red-dark); }
@media(max-width: 760px) {
  .ci-support > .ci-side, .ci-profile__facts, .ci-profile__fields { grid-template-columns: 1fr; }
  .ci-profile__header { flex-direction: column; }
  .ci-profile__fact--long, .ci-profile__field--long { grid-column: auto; }
}

/* ── create-from-description (16.16.0) ─────────────────────────── */
.dn-descbar{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;padding:12px 14px;margin-bottom:12px}
.dn-desclabel{display:block;font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--navy);margin-bottom:6px}
.dn-desc{width:100%;border:1px solid var(--medium-gray);border-radius:8px;padding:9px 11px;font-size:12.5px;
  line-height:1.5;resize:vertical;font-family:inherit}
.dn-desc:focus{outline:none;border-color:var(--navy)}
.dn-descactions{display:flex;align-items:center;gap:10px;margin-top:9px;flex-wrap:wrap}
.dn-hint{font-size:11px;color:var(--text-muted)}
.dn-about{font-size:12px;color:var(--text-secondary);line-height:1.5;padding:2px 0}
.dn-about--muted{color:var(--text-muted);font-size:11px;margin-top:6px;border-top:1px solid var(--light-gray);padding-top:8px}
.dn-blank{padding:34px 18px;text-align:center;color:var(--text-muted);font-size:12.5px}

/* ── inline document fields under the chat (16.21.1) ──────────── */
/* .wsx-approve-fields (gate 248996897): the rail's Approve/Review disclosure
   panels - same rule set, kept off the ".wsx-fields" name so the layout
   test's "first .wsx-fields is inside the editor" check keeps meaning what
   it says (tests/test_followup_layout28.py). */
.wsx-fields,.wsx-approve-fields{border-top:1px solid var(--medium-gray)}
.wsx-fields summary,.wsx-approve-fields summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px;
  padding:10px 13px;font-size:12.5px;font-weight:700;color:var(--navy)}
.wsx-fields summary::before,.wsx-approve-fields summary::before{content:"▸";font-size:10px;color:var(--text-muted)}
.wsx-fields[open] summary::before,.wsx-approve-fields[open] summary::before{content:"▾"}
.wsx-fields summary .n,.wsx-approve-fields summary .n{font-size:10px;font-weight:700;color:var(--text-muted)}
/* In the rail the marker sits at the RIGHT edge, the way the mapped-controls
   groups already do, so the label starts on the panel's 13px line instead
   of 14px + marker + gap (28px) beside text that starts at 13. */
.wsx-approve-fields summary::before{content:none}
.wsx-approve-fields summary::after{content:"›";margin-left:auto;color:var(--text-muted);font-weight:700;
  transition:transform .12s;transform:rotate(0deg)}
.wsx-approve-fields[open] summary::after{transform:rotate(90deg)}
.wsx-fields__list{max-height:38vh;overflow-y:auto;padding:2px 13px 12px;display:flex;flex-direction:column;gap:9px}
.wsx-field{display:flex;flex-direction:column;gap:3px}
.wsx-field__l{font-size:10.5px;font-weight:700;color:var(--text-secondary)}
.wsx-field__in{border:1px solid var(--medium-gray);border-radius:7px;padding:6px 9px;font-size:12px;
  font-family:inherit;background:var(--white);transition:border-color .15s,box-shadow .15s}
.wsx-field__in:focus{outline:none;border-color:var(--navy)}
.wsx-field__in.is-saved{border-color:var(--green);box-shadow:0 0 0 2px rgba(76,175,80,.18)}
.wsx-field__in.is-err{border-color:var(--red)}

/* ── writer's Records panel (spec 3, templates_key_records_table_spec.md) ── */
.wsx-reclist{display:flex;flex-direction:column;gap:6px;padding:9px 13px 4px}
.wsx-rec{border:1px solid var(--light-gray);border-radius:8px;background:var(--off-white);overflow:hidden}
.wsx-rec.is-saved{border-color:var(--green)}
/* The head IS the whole row: a full-width button stacking two lines, so a
   click anywhere on the row opens the metric form, not only on the chip. */
.wsx-rec__head{display:flex;flex-direction:column;align-items:stretch;gap:2px;width:100%;
  padding:7px 9px;border:0;background:none;cursor:pointer;font:inherit;text-align:left;color:inherit}
div.wsx-rec__head{cursor:default}
.wsx-rec-register-note{display:flex;flex-direction:column;align-items:flex-start;
  gap:4px;padding:0 9px 9px;text-align:left;overflow-wrap:anywhere}
/* 2026-10-04: a long chip ("Supports I4 (1/1) · needs a metric") drops to its own
   line instead of being cut off at the card's edge. */
.wsx-rec__top{display:flex;align-items:center;gap:3px 8px;justify-content:space-between;flex-wrap:wrap}
.wsx-rec__id{font-size:10px;font-weight:800;color:var(--text-muted);white-space:nowrap}
/* The short title wraps to at most two lines instead of being cut short. */
.wsx-rec__lbl{min-width:0;font-size:11.5px;color:var(--text-secondary);white-space:normal;
  overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden}
/* The rail's "n/4" records badge: green at 4/4, amber otherwise, and a link
   to the control's own subsection in the preview. */
.wsx-crec{margin-left:4px;font-size:9.5px;font-weight:800;border-radius:9px;padding:0 6px;
  text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap}
/* The state chip carries the same three tints as the Key records Level
   legend (pill--ok / pill--warn / pill--muted, set server-side from the
   row's state), so "green has a record, amber is actionable, grey has
   nothing to record against yet" reads the same in the panel and on the
   page. Only the chip GEOMETRY lives here; the colours come from .pill--*. */
.wsx-rec__state{font-size:9.5px;font-weight:800;border-radius:9px;padding:1px 8px;white-space:nowrap}
.wsx-rec__body{padding:2px 9px 10px;border-top:1px solid var(--light-gray)}
.wsx-rec-preview{padding:4px 0}
/* The EXAMPLE sentence stands visibly apart from a real recorded row. */
.wsx-rec-sentence.is-example{color:var(--text-muted);font-style:italic}
/* "Suggested for this control" — the curated example above the form. Tinted
   with the existing sky pair so it reads as guidance, never as a record. */
.wsx-rec-sugg{margin:6px 0 8px;padding:7px 9px;border-radius:8px;
  background:var(--tint-sky-bg)}
.wsx-rec-sugg__t{display:block;font-size:10.5px;font-weight:800;color:var(--tint-sky-ink)}
.wsx-rec-sugg__w{font-size:11px;color:var(--tint-sky-ink);padding:2px 0 6px}
.wsx-rec-sugg__a{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.wsx-rec-sugg__n{font-size:10px;color:var(--text-muted);flex:1 1 120px}
/* A locked period field reads as read-only rather than as an empty input.
   2026-10-18: so does the organisation's name, which is My Company's. */
.wsx-rec-period[readonly],.wsx-field__in--fixed[readonly]{background:var(--light-gray);cursor:default}
/* Helper text sits INLINE after the field label (mockup v3), muted. */
.wsx-field__h{font-size:10px;font-weight:400;color:var(--text-muted)}
.wsx-rec-exnote{color:var(--text-muted)}
.wsx-rec__acts{display:flex;gap:8px;padding-top:6px}

/* ── document quality panel (16.20.0) ─────────────────────────── */
/* `align-items: flex-start` (not the base `.wsx-panel h3`'s `center`): on a
   narrow rail the title wraps to two lines beside the Check button, and
   `center` was vertically dropping the button to straddle both lines
   instead of sitting on the first one (Alex's rail screenshot: three lines
   of title beside a mid-height button). */
.wsx-qual h3{display:flex;align-items:flex-start;gap:8px}
/* 17.57.47: the heading is the two words that fit; "advisory" is the pill
   beside them (the 37-character title clamped to "DOCUMENT QUALITY/READINESS -…"
   on every rail, Alex's screenshot). The pill keeps the base .n look but not
   its margin-left:auto, which would fight the Check button's. */
.wsx-qual h3 .n{margin-left:0;flex:0 0 auto}
/* Two lines is the ceiling, not a wrap-and-hope: the clamp keeps a genuinely
   long title from pushing the button down a third line the way it did. */
.wsx-qtitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;min-width:0}
.wsx-qbtn{margin-left:auto;flex:0 0 auto;font-size:10.5px;font-weight:800;color:#fff;background:var(--teal);border:0;
  border-radius:11px;padding:3px 12px;cursor:pointer}
.wsx-qbtn:disabled{opacity:.6;cursor:default}
.wsx-qbody{padding:11px 13px;display:flex;flex-direction:column;gap:9px}
.wsx-qhint{font-size:11.5px;color:var(--text-secondary);line-height:1.45}
/* One inset for the whole rail (Alex's Dev1 screenshots, 17.57.45; placed after the base .wsx-qhint rule so tests that read the FIRST .wsx-qhint block still read the base one): the
   approval facts, the records intro and the "app rows fill themselves"
   note sat FLUSH against the panel border (no rule ever padded a plain
   .wsx-qhint), the lists beside them used 9px and the headers 13px. Every
   direct text child of a panel now shares the header's 13px, with the
   9px top that separates it from the header rule above. */
.wsx-panel > .wsx-qhint{padding:9px 13px 0}
/* 2026-10-12 (owner on Dev2: a refused indicator save read as "nothing
   happened"): a refusal in the workspace (the Records panel's rows, the review,
   the approval fields) is an ERROR line, not one more grey hint - red text on a
   pale red ground with a border, a touch larger, the warn icon first. An empty
   required field is marked in the same red until it changes. */
.wsx-qhint.wsx-err{display:flex;gap:6px;align-items:flex-start;margin-top:6px;padding:7px 9px;font-size:12.5px;font-weight:600;color:var(--red);background:#FDE8E8;border:1px solid var(--red);border-radius:6px}
.wsx-qhint.wsx-err[hidden]{display:none}
.wsx-err .wsx-err__ic{flex:0 0 auto;margin-top:1px}
.wsx-field__in.is-err{border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
.wsx-panel > .wsx-qhint:last-child{padding-bottom:11px}
.wsx-qhint:not([hidden]) + .wsx-approve-fields{margin-top:10px}
.wsx-approve-fields > .wsx-qhint{margin:0;padding:0 13px 8px}
.wsx-qual > .wsx-qhint { padding: 9px 13px 12px; }
/* 2026-10-04 (guidance pilot, 19.0.18; also placed after the base .wsx-qhint
   rule): the read-only Records cards keep ONE side inset - the 9px of
   .wsx-rec__head. The reading line (.wsx-rec-preview is `padding:4px 0`, made
   for the metric body, which brings its own 9px) and the document-level
   cards' note sat flush against the card border while the head and the
   register note were inset (owner finding on Dev1 19.0.17). The status,
   Next, What-to-record and guide lines of a pilot control's card use the same
   inset; they are plain .wsx-qhint lines, so the documents family already
   sets them at 13px. "Next:" reads as the action: bold prefix, normal text,
   and no new colour. */
.wsx-rec--readonly > .wsx-rec-reading{padding:4px 9px}
.wsx-rec-readonly-note{padding:0 9px 9px}
.wsx-rec-status,.wsx-rec-next,.wsx-rec-what,.wsx-rec-guide{padding:0 9px 4px;min-width:0;overflow-wrap:anywhere}
.wsx-rec-status{color:var(--text-primary)}
.wsx-rec-next b,.wsx-rec-what b,.wsx-rec-indicator b{font-weight:700;color:var(--text-primary)}
.wsx-rec-indicator{padding:6px 0 0;overflow-wrap:anywhere}
/* 2026-10-04 (19.0.23): under an Activities card, the dated record(s) the saved
   copy prints in its "Activity records" section, one sentence per line on the
   same 9px inset, and the muted line for a practice the scorer does not read
   as a performed activity. */
.wsx-rec-dated,.wsx-rec-unread{padding:0 9px 4px;min-width:0;overflow-wrap:anywhere}
.wsx-rec-dated b{font-weight:700;color:var(--text-primary)}
.wsx-rec-dated__line{display:block}
/* 19.0.27 (rollout build 3): under an Exceptions card's status, one line per open
   exception of the control (id as a link, how many it applies to, where the total
   comes from, who approved it, its end date), the ones that decide the control's
   level marked in the tint pair the Level chips use; and, under an Activities
   card, the muted line that says which register counts here when it is not the
   one the explanation names. Plain .wsx-qhint lines on the cards' 9px inset, so
   the documents family sets them at 13px; no size of their own. */
.wsx-rec-exlist{list-style:none;margin:0;padding:0 9px 4px;min-width:0;overflow-wrap:anywhere}
.wsx-rec-ex{padding:3px 0;border-top:1px solid var(--medium-gray)}
.wsx-rec-ex:first-child{border-top:0}
.wsx-rec-ex a{font-weight:700}
.wsx-rec-ex__mark{display:inline-block;margin-left:4px;padding:0 7px;border-radius:9px;font-weight:700;
  background:var(--tint-med-bg);color:var(--tint-med-ink)}
.wsx-rec-counted{padding:0 9px 4px;min-width:0;overflow-wrap:anywhere;color:var(--text-muted)}
.wsx-rec-firstperiod{color:var(--text-muted)}
/* 2026-10-04 (19.0.19): the Last review card's own status and Next lines. They
   are plain .wsx-qhint lines (13px in the documents family) on the same 9px
   inset as the pilot cards' lines, under their own class names so the pilot
   cards' selectors keep counting only the pilot controls. A review that is late
   by the document's own cadence is a warning, not a verdict: its status line
   becomes a full-width amber band (the tint pair the Level chips already use;
   the text keeps the card's 9px inset) and nothing else on the card changes. */
.wsx-rec-review-status,.wsx-rec-review-next{padding:0 9px 4px;min-width:0;overflow-wrap:anywhere}
.wsx-rec-review-status{color:var(--text-primary)}
.wsx-rec-review-next b{font-weight:700;color:var(--text-primary)}
.wsx-rec-review-status--late{margin:0 0 4px;padding:4px 9px;
  background:var(--tint-med-bg);color:var(--tint-med-ink)}
/* The Approve form's hints under the event and authority inputs wrap instead of
   pushing the rail wider. */
.wsx-mgmt-hint{min-width:0;overflow-wrap:anywhere}
.wsx-qscore{display:flex;align-items:baseline;gap:5px}
.wsx-qscore .v{font-size:24px;font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums}
.wsx-qscore .o{font-size:12px;color:var(--text-muted);font-weight:600}
/* overflow:hidden is the last guard under the renderer's own clamp: the fill
   is a picture of a 1..5 level, and no stored number may paint outside it. */
.wsx-qbar{position:relative;height:7px;border-radius:4px;background:var(--medium-gray);overflow:hidden}
.wsx-qbar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--amber),var(--green))}
.wsx-qbar .req{position:absolute;top:-3px;width:2px;height:13px;background:var(--navy);transform:translateX(-1px)}
.wsx-qsum{font-size:11.5px;color:var(--text-secondary);line-height:1.5}
.wsx-gap{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--light-gray);padding-top:8px}
.wsx-gap .area{font-weight:800;color:var(--navy);font-size:11.5px}
.wsx-gap .why{font-size:11px;color:var(--text-secondary);line-height:1.4}
.wsx-gap .sugg{font-size:11px;color:#1b7f4b;line-height:1.4}
.wsx-gap-ask{align-self:flex-start;margin-top:4px;font-size:10px;font-weight:700;color:var(--teal-dark);
  background:transparent;border:1px solid var(--teal);border-radius:10px;padding:2px 9px;cursor:pointer}
.wsx-gap-ask:hover{background:var(--teal);color:#fff}
/* 16.28.1: gap states - Added / Dismiss / Restore + the dismissed drawer */
.wsx-gaps{display:flex;flex-direction:column;gap:9px}
.wsx-gap-acts{display:flex;align-items:center;gap:6px;margin-top:4px}
.wsx-gap-acts .wsx-gap-ask{align-self:auto;margin-top:0}
.wsx-gap-ask.is-added{color:var(--text-muted);border-color:var(--medium-gray);
  background:var(--off-white);cursor:default}
.wsx-gap-ask.is-added:hover{background:var(--off-white);color:var(--text-muted)}
.wsx-gap-dismiss{font-size:10px;font-weight:700;color:var(--text-muted);background:transparent;
  border:1px solid var(--medium-gray);border-radius:10px;padding:2px 9px;cursor:pointer}
.wsx-gap-dismiss:hover{color:var(--navy);border-color:var(--navy)}
.wsx-gap.is-dismissed .area,.wsx-gap.is-dismissed .why,.wsx-gap.is-dismissed .sugg{opacity:.65}
.wsx-qdtoggle{align-self:flex-start;font-size:10.5px;font-weight:700;color:var(--text-muted);
  background:transparent;border:0;padding:2px 0;cursor:pointer;text-decoration:underline}
.wsx-qdtoggle:hover{color:var(--navy)}

/* ── workspace editing (16.13.0): override badge, applied-edits, edit cards ── */
.wsx-obadge{font-size:10.5px;font-weight:700;color:var(--teal-dark);background:var(--off-white);
  border:1px solid var(--teal);border-radius:11px;padding:2px 9px;white-space:nowrap}
.wsx-obadge b{font-variant-numeric:tabular-nums}
.wsx-ovpanel h3{display:flex;align-items:center;gap:6px}
.wsx-ov{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;padding:6px 13px;border-top:1px solid var(--light-gray);font-size:11px}
.wsx-ov .k{flex:0 0 auto;min-width:96px;max-width:40%;font-weight:700;color:var(--navy);font-family:var(--mono,monospace);font-size:10.5px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsx-ov .v{flex:1;min-width:0;color:var(--text-secondary);word-break:break-word}
.wsx-ov.is-note .k{color:var(--teal-dark)}
/* 17.4.6 — the revert stack on that panel. The row grew a timestamp, an
   affordance and (on one row at a time) a confirmation, so every new part is
   a wrapping flex child with min-width:0: the rail is 350px wide on a phone
   and a section heading is arbitrary text. An undone row is struck through
   and dimmed and it never leaves the list - that IS the audit trail. */
.wsx-ov__when{flex:1 1 100%;min-width:0;color:var(--text-muted);font-size:10px;overflow-wrap:anywhere}
.wsx-ov__act{flex:0 0 auto;min-width:0;margin-left:auto}
.wsx-ov.is-undone .k,.wsx-ov.is-undone .v{text-decoration:line-through;opacity:.62}
.wsx-ov.is-undone .wsx-ov__when{font-style:italic}
.wsx-ovnote{margin:0;padding:6px 13px;font-size:10.5px;color:var(--text-secondary);
  border-top:1px solid var(--light-gray);overflow-wrap:anywhere}
.wsx-ovnote.is-block{color:var(--navy);background:var(--off-white);font-weight:600}
.wsx-ovc{flex:1 1 100%;min-width:0;margin-top:4px;border:1px solid var(--teal);border-radius:9px;
  background:var(--white);padding:8px 10px}
.wsx-ovc__q{margin:0 0 4px;font-size:11px;font-weight:800;color:var(--navy)}
.wsx-ovc__what{margin:0 0 6px;font-size:10.5px;color:var(--text-secondary);overflow-wrap:anywhere}
.wsx-ovc__acts{display:flex;flex-wrap:wrap;gap:6px}

/* proposed-edit card in the chat stream */
.wsx-edit{align-self:stretch;border:1px solid var(--teal);border-left:3px solid var(--teal);border-radius:9px;
  background:var(--white);padding:9px 11px;font-size:11.5px}
.wsx-edit .lbl{display:block;font-weight:800;color:var(--navy);font-size:11px;letter-spacing:.01em}
.wsx-diff{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:5px 0}
.wsx-diff .old{text-decoration:line-through;color:var(--text-muted);background:var(--light-gray);
  border-radius:4px;padding:0 5px}
.wsx-diff .arr{color:var(--text-muted);font-weight:700}
.wsx-diff .add{color:#1b7f4b;background:#e7f6ec;border-radius:4px;padding:0 5px;font-weight:600}
.wsx-why{color:var(--text-secondary);font-size:10.5px;line-height:1.45;margin-bottom:6px}
.wsx-acts{display:flex;gap:7px}
.wsx-acc,.wsx-rej{font-size:10.5px;font-weight:700;border-radius:12px;padding:3px 12px;cursor:pointer;border:1px solid}
.wsx-acc{background:var(--teal);color:#fff;border-color:var(--teal)}
.wsx-acc:disabled{opacity:.6;cursor:default}
.wsx-rej{background:transparent;color:var(--text-secondary);border-color:var(--medium-gray)}
.wsx-rej:hover{border-color:var(--text-secondary)}
.wsx-edit.is-applied{border-color:var(--green);border-left-color:var(--green);opacity:.85}
.wsx-done{font-size:10.5px;font-weight:800;color:var(--green)}
/* 2026-10-18 (improve with a file): the card's counter and its source line,
   and the fold that keeps a long list of proposals short. */
.wsx-seq{font-weight:700;color:var(--text-muted)}
.wsx-src{color:var(--text-muted);font-size:10.5px;line-height:1.45;margin:-2px 0 6px;overflow-wrap:anywhere}
.wsx-more{align-self:flex-start;background:none;border:0;padding:2px 0;font:inherit;font-size:11.5px;
  font-weight:700;color:var(--green);cursor:pointer}
.wsx-fold{display:flex;flex-direction:column;gap:inherit}
.wsx-fold[hidden]{display:none}

/* ── Documentation Registry (16.12.0) ─────────────────────────── */
.reg-cov{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 16px}
.reg-cov .cov{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;padding:12px 14px}
.reg-cov .cov .n{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.reg-cov .cov .n small{font-size:12px;color:var(--text-muted);font-weight:600}
.reg-cov .cov .l{font-size:11px;color:var(--text-secondary);margin-top:2px}
.reg-cov .covbar{height:5px;border-radius:3px;background:var(--medium-gray);margin-top:8px;overflow:hidden}
.reg-cov .covbar i{display:block;height:100%}

.reg-grouper{display:inline-flex;align-items:center;border:1px solid var(--medium-gray);
  border-radius:14px;background:var(--white);overflow:hidden}
.reg-glabel{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  color:var(--text-muted);padding:0 9px 0 12px}
.reg-gopt{font-size:11.5px;font-weight:700;border:0;background:transparent;color:var(--text-secondary);
  padding:5px 13px;cursor:pointer;border-left:1px solid var(--medium-gray)}
.reg-gopt.is-active{background:var(--navy);color:var(--white)}

.reg-grp{margin-bottom:18px}
.reg-grp-h{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.reg-grp-h h3{font-size:13px;font-weight:700;margin:0}
.reg-grp-h .cnt{font-size:11px;color:var(--text-secondary);font-weight:600;background:var(--white);
  border:1px solid var(--medium-gray);border-radius:12px;padding:1px 8px}
.reg-grp-h .dot{width:10px;height:10px;border-radius:50%}
.reg-mhead,.reg-fhead{display:flex;align-items:center;gap:9px;margin:0 0 8px}
.reg-mhead b,.reg-fhead b{font-size:13px}
.reg-fhead{padding-left:10px;border-left:4px solid var(--fh,var(--teal))}
.reg-cov-inline{margin-left:auto;font-size:11px;color:var(--text-secondary)}

.reg-card{background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;overflow:hidden}
/* 17.50.0 (registry alignment, mock docs/mockups/registry_align_mock.html).
   ONE grid, shared by every row shape, and that is the entire fix: a column
   can only start at the same x on every row if every row is measuring
   against the same tracks. The predecessor was a flex row of fixed-width
   members, where a cell's width was its own business and a taller row
   re-centred every short cell in it - which is how the BCDR row came to sit
   visibly out of line with identical rows above and below it. 17.44.0
   patched that with a `reg-row--chips` modifier that switched the affected
   rows to baseline alignment; the badge now lives in the id cell and the
   tracks are shared, so both the modifier and the reason for it are gone.

   The tracks are the mock's: a wide text column paid for by slimmer data
   columns. The one departure is the language cell, which is 88+34+gap in
   the mock and ONE element in the markup (the chip and its toggle share a
   flex parent), so it is one 136px track instead of two.

   `reg-row--nis2` adds a track for the Primary/Supporting cell that only
   that view renders. A modifier rather than an always-present empty cell,
   because that view is a card of its own and every row in it has the cell -
   there is nothing to align it against that does not also have it. */
/* 17.57.17 (spec §10): a row with a document carries Open AND Regenerate, so
   the last track holds a COLUMN of buttons rather than a wider row of them.
   The two shapes were measured against the real page before this number was
   chosen: side by side, the pair needs 198px in Romanian ("Deschide" is half
   again as wide as "Open"), and paying for that out of the flexible title
   column re-wraps 42 of 58 rows and adds a sixth to the height of the page.
   Stacked, the track needs only the widest single label, the title keeps 90%
   of its width, and the only rows that grow are the ones that gained an
   action. 118px is that label ("Regenerare", 103px) with room to spare for a
   font stack that measures wider than this one. */
.reg-row{display:grid;align-items:center;gap:14px;padding:11px 14px;
  grid-template-columns:118px minmax(0,1.35fr) 88px 138px 96px 110px 118px;
  border-bottom:1px solid #eef1f5;transition:background .1s}
.reg-row--nis2{grid-template-columns:118px minmax(0,1.35fr) 76px 88px 138px 96px 110px 118px}
/* `stretch` is what keeps the two buttons the same width as each other and as
   the lone button on every other row, so the actions read as one column and
   not as a ragged edge. */
.reg-acts{display:flex;flex-direction:column;align-items:stretch;
  justify-content:center;gap:6px}
.reg-acts .reg-use-file{white-space:nowrap;padding-inline:8px;border:1px solid transparent}
.reg-row:last-child{border-bottom:0}
.reg-row:hover{background:#f7f9fc}
.reg-row.is-proposed{opacity:.8;background:var(--off-white)}
/* The identity cell stacks the id pill and compact metadata badges without
   allowing their labels to widen the first track. */
.reg-idcell{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
.reg-title{min-width:0;font-weight:600;font-size:12.5px}
/* The description. Two lines, then an ellipsis - and the whole sentence is
   in the cell's `title`, so the clamp hides nothing permanently. NO width
   cap (17.50.1): a 64ch cap left a dead gap between the text and the data
   columns on wide screens - the owner wants the text to fill its track, and
   the two-line clamp already bounds the height. The TITLE above deliberately
   has no truncation of any kind: a long document name wraps. */
.reg-title small{display:block;font-weight:400;color:var(--text-secondary);font-size:11px;
  overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
.reg-prim{font-size:9px;font-weight:800;letter-spacing:.04em;color:var(--teal-dark);
  border:1px solid var(--teal);border-radius:3px;padding:1px 5px;text-transform:uppercase;
  justify-self:start}
.reg-supp{font-size:9px;font-weight:800;letter-spacing:.04em;color:var(--text-muted);
  border:1px solid var(--medium-gray);border-radius:3px;padding:1px 5px;text-transform:uppercase;
  justify-self:start}
.reg-maps{display:flex;gap:3px;align-items:center;flex-wrap:wrap;min-width:0}
.reg-maps .reg-gap{width:6px}
.reg-cnt{min-width:0}
.reg-cnt .t{font-size:10.5px;color:var(--text-secondary);margin-bottom:3px}
.reg-bar{height:5px;border-radius:3px;background:var(--medium-gray);overflow:hidden}
.reg-bar i{display:block;height:100%}
.reg-status{min-width:0;font-size:11px;font-weight:700}
.reg-status small{display:block;font-weight:400;color:var(--text-muted);font-size:10.5px}
.reg-status.st-generated{color:var(--green)}
.reg-status.st-missing{color:var(--text-secondary)}
.reg-status.st-proposed{color:var(--text-muted)}
/* Client-document metadata stays one quiet line beneath the document id.
   Clip only the label so the shared hover/focus help can reveal the full name. */
.reg-cdoc{display:block;min-width:0;max-width:100%;box-sizing:border-box;
  font-size:12px;font-weight:500;line-height:1.35;
  letter-spacing:0;text-transform:none;border-radius:6px;padding:3px 6px;
  text-align:center;color:#10707F;background:#EAF6F8;border:1px solid #C7E5EA}
.reg-cdoc__label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reg-cdoc[data-help]::after{overflow-wrap:anywhere}
@media (min-width:641px){
  .reg-cdoc[data-help]::after{left:0;transform:none}
}
.reg-cdoc:hover{background:#DCEFF3;text-decoration:none}
.reg-cdoc--have{color:#1E7A46;background:#E9F7EF;border-color:#C6E9D5}
.reg-cdoc--have:hover{background:#DBF1E5}
/* 17.4.1: the slot's client document has been adopted - it IS the document
   now. Filled rather than outlined, which is the one visual step up this
   chip takes across its three states. */
.reg-cdoc--adopted{color:#fff;background:#1E7A46;border-color:#1E7A46}
.reg-cdoc--adopted:hover{background:#186139}
/* 17.4.3: the source this slot was adopted from has moved. It sits beside
   the adopted chip in the same title cell - colour only, no layout, so the
   17.2.4 phone row is untouched by it too. */
.reg-cdoc--srcchg{color:#8a6d00;background:#FFF6E2;border-color:#F0D9A0}
.reg-cdoc--srcchg:hover{background:#FBEBC8}
/* 17.4.1 status states. Adopted is green like Defined because it IS a
   document; below-standard is amber because it is one that does not yet
   meet the bar. Neither borrows .st-generated. */
.reg-status.st-adopted{color:var(--green)}
.reg-status.st-adopted_below{color:#8a6d00}
.reg-optional{display:inline-block;margin-left:7px;font-size:9px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:#8a6d00;background:#fdf3d6;border:1px solid #f0d98a;border-radius:9px;
  padding:0 6px;vertical-align:middle;cursor:help}

/* doc-id chip: monospace, soft type tint, fixed-width so ids align in a column */
/* 17.50.0: no `min-width` and no `flex:none` any more - the pill fills the
   118px identity track, which is what makes every id start at the same x
   whatever its length. */
.reg-row .did{
  font-family:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  font-size:11px;font-weight:600;letter-spacing:-.01em;line-height:1;
  padding:4px 9px;border-radius:6px;border:0;min-width:0;
  text-align:left;position:relative;padding-left:16px}
/* little type dot inside the chip */
.reg-row .did::before{content:"";position:absolute;left:7px;top:50%;transform:translateY(-50%);
  width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.85}
.did.t-policy   {color:#3538cd;background:#eef1fe}
.did.t-procedure{color:#0f7267;background:#e5f5f2}
.did.t-plan     {color:#9a5808;background:#fbf1e2}
.did.t-standard {color:#6331e0;background:#f0ecfe}
.did.t-register {color:#1f7a34;background:#e7f5ec}
.did.t-log      {color:#48536a;background:#eef1f5}
.reg-row.is-proposed .did{background:repeating-linear-gradient(-45deg,#f4f6f9,#f4f6f9 5px,#eef1f5 5px,#eef1f5 10px)}
.t-policy-dot{background:#3538cd}.t-procedure-dot{background:#0f7267}.t-plan-dot{background:#9a5808}
.t-standard-dot{background:#6331e0}.t-register-dot{background:#1f7a34}.t-log-dot{background:#48536a}
/* function chips (official CyFun function colours) */
.reg-row .fchip,.reg-mhead .fchip{display:inline-grid;place-items:center;height:16px;min-width:22px;padding:0 5px;
  border-radius:5px;font-size:9px;font-weight:800;color:#fff;letter-spacing:.02em}
.f-GV{background:#5E35B1}.f-ID{background:#1E88E5}.f-PR{background:#43A047}
.f-DE{background:#FB8C00}.f-RS{background:#E53935}.f-RC{background:#00ACC1}
.reg-row .mchip,.reg-mhead .mchip{display:inline-grid;place-items:center;width:16px;height:16px;
  border-radius:5px;font-size:9.5px;font-weight:800;color:#fff;
  background:var(--navy);font-family:ui-monospace,Menlo,monospace}
.reg-mhead .mchip{width:22px;height:22px;font-size:12px;border-radius:6px}
/* 17.50.0: the coverage column is the first to go on a narrow desktop, and
   with a grid its TRACK has to go with it - `display:none` alone would leave
   a 150px hole and slide nothing. */
@media (max-width:820px){
  .reg-cov{grid-template-columns:repeat(2,1fr)}
  .reg-cnt{display:none}
  .reg-row{grid-template-columns:118px minmax(0,1.35fr) 88px 104px 136px 118px}
  .reg-row--nis2{grid-template-columns:118px minmax(0,1.35fr) 76px 88px 104px 136px 118px}
}

/* Grouped sidebar navigation (16.11.2) */
.navgroup { margin: 2px 0; }
.navgroup__head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; user-select: none;
  padding: 7px 14px 3px; color: var(--sidebar-muted, #8fa1b8);
}
.navgroup__head::-webkit-details-marker { display: none; }
.navgroup__label {
  font-size: 13px; font-weight: 600;
}
.navgroup__chev {
  width: 13px; height: 13px; opacity: .7;
  transition: transform .15s ease;
  transform: rotate(-90deg);
}
.navgroup[open] > .navgroup__head .navgroup__chev { transform: rotate(0deg); }
.navgroup[data-active] > .navgroup__head { color: var(--sidebar-text-active); }
.navgroup__head:hover .navgroup__label,
.navgroup__head:hover .navgroup__chev { color: var(--sidebar-text-active); opacity: 1; }
/* Bare and grouped destinations share the same icon column. */
.sidebar__nav .navitem { margin-left: 0; }

/* Signed-in identity + sign out (sidebar footer, 16.12.0).
   16.54.0 (⑥c §D): collapsed to avatar + name; the email and the sign-out
   live in a popover that opens UPWARD, because the card sits on the floor of
   the sidebar and a downward panel would open off-screen. */
.usercard{margin:0;border-radius:8px;position:relative}
.usercard__id{display:flex;align-items:center;gap:9px;min-width:0;
  min-height:44px;padding:6px 8px;cursor:pointer;list-style:none;border-radius:8px}
.usercard__id::-webkit-details-marker{display:none}
.usercard__id:hover{background:var(--sidebar-selected)}
.usercard__avatar{flex:none;width:28px;height:28px;border-radius:50%;background:var(--action-fill);
  color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px}
.usercard__name{color:var(--text-body);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.usercard__label{min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usercard__chev{flex:none;width:13px;height:13px;margin-left:auto;color:var(--sidebar-text);
  opacity:.7;transition:transform .12s ease}
.usercard[open] .usercard__chev{transform:rotate(180deg)}
.usercard__pop{position:fixed;z-index:75;width:260px;max-width:calc(100vw - 24px);
  display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:9px;
  background:var(--surface-panel);border:1px solid var(--border-subtle);
  box-shadow:0 8px 24px rgba(0,31,91,.14)}
.usercard__email{color:var(--sidebar-text);font-size:13px;overflow-wrap:anywhere}
/* 16.52.0 (skin spec §F): sign-out is the quietest control in the sidebar.
   A bordered button competed with the nav for attention on every page; it is
   now icon + muted label, no chrome, and it brightens on hover. The
   accessible name is unchanged (aria-label + title + visible text). */
.usercard__signout{display:flex;align-items:center;gap:6px;justify-content:center;
  min-height:40px;padding:8px;border-radius:6px;border:none;background:transparent;
  color:var(--sidebar-text);opacity:1;
  font-size:13px;font-weight:600;text-decoration:none;transition:opacity .12s ease,color .12s ease}
.usercard__signout svg{width:14px;height:14px}
.usercard__signout:hover{background:transparent;color:var(--sidebar-text-active);opacity:1;text-decoration:none}

/* UI19 footer: help links above the account control, popovers outside nav clipping. */
.sbcorner{display:flex;flex-direction:column;gap:4px;position:relative}
/* Long translated labels fit inside the help panel. */
.sbcorner .langswitch{min-width:0;flex-direction:column;flex-wrap:nowrap;gap:2px;margin:0}
/* Help links retain their order in expanded navigation and in the rail menu. */
.sbcorner .helpswitch,.sbcorner .brand-version{min-width:0;min-height:28px;justify-content:flex-start;
  font-size:12px;line-height:1.4;padding:4px 8px;gap:6px}
.sbcorner .helpswitch > svg:not(.helpswitch__ext),.sbcorner .brand-version > svg{width:12px;height:12px;flex:none}
.sbcorner .helpswitch span{min-width:0;white-space:normal;overflow-wrap:anywhere}
/* Anchor the toggle below the links, so opening adds space upward, not below the account. */
.shell-help{order:-1;position:relative;padding-bottom:34px}
.shell-help .langswitch{padding-bottom:6px}
.shell-help:not([open]) .brand-version{display:none}
.shell-help__toggle{display:flex;align-items:center;gap:8px;position:absolute;left:0;right:0;bottom:0;
  min-height:34px;padding:7px 8px;font-size:13px;line-height:1.4;font-weight:700;
  list-style:none;cursor:pointer;color:var(--sidebar-text-active);background:var(--sidebar-hover);border-radius:8px}
.shell-help__toggle::-webkit-details-marker{display:none}
.shell-help__toggle svg{width:14px;height:14px;flex:none}
.shell-help__toggle .shell-help__chevron{width:12px;height:12px;margin-left:auto}
.shell-help[open] .shell-help__chevron{transform:rotate(180deg)}
.shell-help__toggle:hover{background:var(--sidebar-hover);color:var(--sidebar-text-active)}
.rail-tooltip{
  position:fixed;z-index:80;max-width:calc(100vw - 88px);padding:8px 12px;
  color:var(--white);background:var(--navy);border-radius:6px;font-size:14px;
  box-shadow:0 3px 12px rgba(0,31,91,.16);pointer-events:none;
}
.rail-tooltip[hidden]{display:none}

/* Non-production environment badge (OPTI_ENV_LABEL) in the sidebar footer */
.env-badge {
  display: inline-block; margin: 0 auto 8px; padding: 3px 12px;
  border-radius: 4px; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  background: var(--amber); color: #4D2C00;
  border: 1px solid #b45309;
}
/* 17.49.0: the demo band. Top of the main pane on every page of a demo
   workspace, informational and not dismissible. Same amber vocabulary as the
   environment badge above - both say "this is not the ordinary thing" - and
   the same chip idiom for the leading word. */
.demo-band {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 8px 14px; border-radius: 8px;
  background: var(--tint-med-bg, #FFF6E5); color: var(--tint-med-ink, #4D2C00);
  border: 1px solid #b45309; font-size: 13px; font-weight: 600;
}
.demo-band__tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--amber, #F5A623); color: #4D2C00;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
}
.demo-band__cta { margin-left: auto; color: inherit; text-decoration: underline; }
.demo-band__cta--next { margin-left: 16px; }   /* 19.4.0 Express: the second link of the band sits beside the first, not pushed away */

/* 16.1.12+: shared table styling for the SaaS console pages (Manage Tenants /
   Users / Platform, Portfolio). Previously .data-table had no rules at all, so
   columns and action buttons were unaligned. */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  padding: 8px 12px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--medium-gray);
}
.data-table thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-secondary); font-weight: 700;
}
.data-table td { font-size: 14px; }
.data-table tbody tr:hover { background: var(--off-white); }
/* Action cells (buttons) — keep on one line and right-room so they don't wrap. */
.data-table td:last-child, .data-table .actions { white-space: nowrap; }
.data-table .btn--small + .btn--small { margin-left: 4px; }
/* Scan History: the "show older scans" fold (17.40.0).
   This used to be `x-show="showAll || N < 3"` on every row — an Alpine
   expression carrying a comparison and a Jinja-interpolated row index, which
   is precisely the shape the CSP build cannot parse and the shape that kept
   'unsafe-eval' in script-src. The rows are now marked as older by Jinja at
   render time and the fold is one class on the table, so the only thing left
   in the markup is a class binding.
   Collapsed is the CSS DEFAULT and Alpine only ever ADDS the expanded class.
   That ordering is deliberate twice over: the fold is already correct in the
   first painted frame, before Alpine boots (the other way round, every older
   row would flash in and then vanish); and Alpine's class binding only
   removes classes it added itself, so a `scans-table--collapsed` printed into
   the static class attribute by Jinja would be one Alpine could never take
   off again — the fold would open once and then jam. */
.scan-row--older { display: none; }
.scans-table--expanded .scan-row--older { display: table-row; }
.assurance-basic     { background: #E8EAF6; color: #3949AB; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.assurance-important { background: #E3F2FD; color: #1565C0; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.assurance-essential { background: #E0F2F1; color: #00695C; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.hint { background: var(--white); border-radius: 10px; padding: 16px; border: 1px solid var(--medium-gray); }
.hint h2 { margin-top: 0; color: var(--navy); font-size: 16px; }
.hint__key {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--medium-gray);
  font-size: 12.5px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
/* The explainer on a key requirement's header. Gold rule down the left so it
   reads as the badge's own footnote rather than as another callout. */
.req-keynote {
  margin: 10px 0 0; padding: 8px 12px;
  border-left: 3px solid var(--key-ink); background: var(--key-bg);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; line-height: 1.5; color: var(--text-primary);
}
.req-keynote .keybadge { margin-right: 4px; vertical-align: 1px; }
.kpi { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi li { background: var(--off-white); padding: 10px; border-radius: 6px; }
.kpi__label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
.kpi__value { font-size: 20px; font-weight: 700; color: var(--navy); }
/* 16.59.0: the coverage denominator and the scored-only secondary that every
   scoped tile carries, plus the low-coverage tile that spans both columns. */
.kpi__foot { font-size: 11px; line-height: 15px; margin-top: 2px; }
.kpi__wide { grid-column: 1 / -1; }

/* ── Detail page (existing) ─────────────────────────────────────────── */
.back { display: inline-block; margin-bottom: 12px; color: var(--text-secondary); font-size: 13px; }
.detail__header { background: var(--white); padding: 22px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--medium-gray); }
.detail__header h1 { margin: 0; color: var(--navy); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.subcat { margin: 8px 0; font-weight: 600; color: var(--text-primary); }
.req-body { background: var(--off-white); padding: 12px; border-radius: 6px; }
/* 17.57.17: Optimizor's plain-language gloss, printed under the framework
   sentence it explains. Deliberately NOT a second card. Two filled boxes
   stacked read as two quotations of equal weight, and only the top one is a
   quotation: the standard's sentence keeps the card, ours has to look like
   the margin note it is. No rule down the left either - .req-keynote already
   owns that shape for the key-measure footnote, twelve lines up, and a second
   ruled block in another colour would imply a system this header does not
   have. So the whole style is two borrowings: the card's own 12px text
   column, which puts the gloss and the sentence on one left edge, and
   .req-keynote's 12.5px/1.5, which is what Optimizor's voice already looks
   like in this header. The ink stays --text-primary for the same reason it
   does there - the gloss is quieter than the card because it is smaller and
   unfilled, not because it is greyed out, and greying out the one paragraph
   on the page a reader can act on would be the wrong kind of quiet. */
.req-explain {
  margin: 0; padding: 0 12px;
  font-size: 12.5px; line-height: 1.5; color: var(--text-primary);
}
/* 2026-10-04 (guidance pilot, 19.0.18): the label above the gloss says it is
   OptiApp's own reading and not the framework's text, and on the seven pilot
   controls a reference block follows it. Same left edge as .req-explain (the
   card's 12px text column) so the page keeps one margin, a thin rule above to
   set the block apart, no fill and no new colour: it is reading, not a form,
   so it uses the page's own ink, the navy that already heads the cards, and
   --text-secondary for the label and the closing note. */
.req-explain-label {
  margin: 0 0 2px; padding: 0 12px;
  font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--text-secondary);
}
.req-guide {
  margin: 14px 0 0; padding: 12px 12px 0;
  border-top: 1px solid var(--border-subtle);
  overflow-wrap: anywhere;
}
.req-guide__h {
  margin: 14px 0 4px; font-size: 14px; line-height: 1.4; font-weight: 700;
  color: var(--navy);
}
.req-guide__h:first-child { margin-top: 0; }
/* An anchor from the Records cards lands below the phone's sticky bar. */
.req-guide, .req-guide__h { scroll-margin-top: 72px; }
.req-guide__p, .req-guide__line {
  margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--text-primary);
}
.req-guide__list {
  margin: 0 0 6px; padding-left: 20px;
  font-size: 14px; line-height: 1.55; color: var(--text-primary);
}
.req-guide__list li { margin: 0 0 3px; }
.req-guide__note {
  margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary);
}
/* 16.55.0 (⑥d §A): `align-items: start` is the whole fix for the voids on
   Settings, Automation and Company information. A CSS grid stretches every
   card to the tallest one in its row, so a two-line "Branding" card
   inherited 150px of nothing from the audit-behaviour form beside it. Cards
   now size to their own content and uneven rows are INTENTIONAL - the page
   is a set of unrelated preferences, not a table. */
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: start; }
.detail__grid > .card { padding: 14px 15px; }
.detail__grid > .card h2, .detail__grid > .card h3 {
  font-size: 13px; margin: 0 0 6px; color: var(--navy); font-weight: 700;
}
.detail__grid > .card > p { font-size: 12px; margin: 0 0 8px; line-height: 1.5; }
/* 16.57.0 (⑦b §5): ⑥d named these grids and its selectors DO hit - Settings
   and Automation are both a bare `.detail__grid` of direct-child `.card`s,
   so align-items/padding/heading size all landed. What ⑥d could not reach
   was anything one level deeper, and that is where the rest of the space
   was: `.small` and `.subtle` have no size rule anywhere in this file, so
   every explanatory paragraph inside a form was rendering at the browser
   default 16px, and each of Automation's ~30 of them carried 14px of
   form-row margin under it. Written at `.detail__grid` scope rather than
   behind a new page modifier: the requirement-detail cards use the same
   grid and the same oversized helper text, and ⑥d already restyled that
   surface for exactly this reason. */
.detail__grid .small, .detail__grid .subtle,
.detail__grid .muted.small { font-size: 12px; line-height: 1.5; }
.detail__grid > .card p { margin: 0 0 8px; }
.detail__grid .form-row { margin-bottom: 9px; gap: 3px; }
.detail__grid > .card > ul.small { margin: 0 0 8px; padding-left: 17px; }
.detail__grid > .card > ul.small li { margin-bottom: 4px; }
.detail__grid > .card > form > label { font-size: 12.5px; }
.card--wide { grid-column: 1 / -1; }

/* ── 16.69.0 (⑧d §12): the Settings grid, column-PACKED ─────────────────
   ⑥d's `align-items: start` stopped a card being stretched to its
   neighbour's height, but a two-column GRID still aligns rows: a short card
   beside a tall one leaves the gap under it empty until the next row starts,
   and Settings - seven cards of wildly different heights - is where that
   reads as "the empty space between the tiles looks messy" (PO, screenshot).

   CSS multi-column instead of grid. There are no rows to align, so each
   column is a tight stack and every card sits directly under the one above
   it. `break-inside: avoid` is what keeps a card whole rather than letting a
   form spill across the column break.

   Reading order is COLUMN-MAJOR: the cards keep their document order and
   flow down the left column, then continue down the right. The break point
   is the browser's own height balance, which is the property being bought -
   the packing follows the content instead of a fixed row grid.

   SCOPED to Settings by a modifier. Automation's four cards are equal-height
   by construction and Company information has a custom layout; neither has
   the problem and neither should pay for the fix. */
.detail__grid--packed {
  display: block; columns: 2; column-gap: 11px;
}
.detail__grid--packed > .card {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: 11px;
}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px}
.settings-grid > .card{min-width:0;margin:0;padding:20px;display:flex;flex-direction:column}
.settings-grid > .card h2,.settings-grid > .card h3{font-size:16px;line-height:1.4;margin:0 0 12px}
.settings-grid .small{font-size:14px;line-height:1.55}
.settings-grid > .card > form:last-child{margin-top:auto;padding-top:12px}
.settings-grid select,.settings-grid input:not([type="checkbox"]):not([type="hidden"]){max-width:100%;min-width:0;min-height:38px;font:inherit}
.settings-grid label[for="settings-assurance-profile"]{display:block;margin-bottom:12px;font-weight:600}
.settings-grid #settings-assurance-profile{display:block;width:100%;margin-top:6px}
.settings-grid .set-overrideline{flex-wrap:wrap;gap:10px}
.settings-grid .btn{white-space:normal}
@media(max-width:1100px){.settings-grid{grid-template-columns:minmax(0,1fr)}}
.score-confirm{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:24px;border:1px solid var(--medium-gray);border-radius:14px;background:var(--white);color:var(--text-primary);box-shadow:0 20px 60px #071e4a30}
.score-confirm::backdrop{background:rgba(7,30,74,.4)}
.score-confirm h2.score-confirm__title{margin:0 0 12px;font-size:21px;color:var(--navy)}
.score-confirm__description{margin:0;font-size:15px;line-height:1.6;color:var(--text-secondary)}
.score-confirm__actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}
.score-confirm .btn{min-height:40px;white-space:normal}
.score-confirm :focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.settings-grid .muted,.ci-support .muted,.ci-identity-editors .muted{color:var(--text-secondary)}
.enire-page{max-width:1400px;margin:0 auto;min-width:0}
.enire-page .page-header{align-items:flex-start;gap:20px;flex-wrap:wrap}
.enire-page .page-header p{max-width:760px;font-size:15px;line-height:1.6;color:var(--text-secondary)}
.enire-page .card{padding:24px;margin:20px 0;background:var(--white)}
.enire-page h2{font-size:20px;margin:0 0 12px;color:var(--navy)}
.enire-page p,.enire-page label,.enire-page li{font-size:14px;line-height:1.6}
.enire-notice{padding:14px 18px;background:#eff8f5;border-left:4px solid var(--green);border-radius:8px}
.enire-help{color:var(--text-secondary)}
.enire-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}
.enire-page label{display:block;font-weight:600;color:var(--navy)}
.enire-page input:not([type=checkbox]),.enire-page select,.enire-page textarea{box-sizing:border-box;display:block;width:100%;min-width:0;margin-top:6px;border:1px solid var(--medium-gray);border-radius:8px;padding:10px;background:var(--white);color:var(--text-primary);font:inherit;font-weight:400}
.enire-page [aria-invalid=true]{border-color:#ad2343}
.enire-sector{border-top:1px solid var(--medium-gray);padding:16px 0}
.enire-page .enire-sector-choice,.enire-page .enire-ack{display:flex;gap:10px;align-items:flex-start}
.enire-page input[type=checkbox]{width:18px;height:18px;flex:none;margin-top:3px;accent-color:var(--green)}
.enire-sector-choice span{font-size:12px;background:var(--light-gray);padding:2px 8px;border-radius:12px;color:var(--text-secondary)}
.enire-sector details{margin:10px 0 0 28px}
.enire-page summary{cursor:pointer;color:var(--navy);font-size:14px;line-height:1.5;padding:8px 0}
.enire-matrix{max-width:100%;overflow-x:auto;margin:12px 0}
.enire-matrix table{width:100%;min-width:750px;border-collapse:collapse;font-size:13px}
.enire-matrix th,.enire-matrix td{padding:8px;text-align:left;border:1px solid var(--medium-gray);vertical-align:top}
.enire-matrix th{background:var(--light-gray);max-width:170px;font-weight:600}
.enire-matrix caption{font-size:13px;text-align:left;padding-bottom:10px;color:var(--text-secondary)}
.enire-matrix select{font-size:13px;padding:8px;margin:0}
.enire-page .enire-ack{margin:22px 0;font-weight:500;color:var(--text-primary)}
.enire-error{border:1px solid #d68c9d;border-left:4px solid #ad2343;border-radius:8px;padding:14px 18px;background:#fff6f8;color:#8b1833}
.enire-result{padding:14px 0;border-top:1px solid var(--medium-gray)}
.enire-result summary strong{margin-right:20px;font-size:17px}
.enire-result summary span{color:var(--text-secondary);font-size:13px}
.enire-result .btn{margin:0 8px 8px 0}
.enire-page dd{margin:4px 0 14px;overflow-wrap:anywhere;font-size:13px}
.enire-page .btn{white-space:normal;min-height:40px}
.enire-page :focus-visible{outline:3px solid var(--navy);outline-offset:3px}
@media(max-width:1000px){.enire-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.enire-inputs{grid-template-columns:1fr}.enire-page .card{padding:16px}.enire-sector details{margin-left:0}.enire-result summary span{display:block;margin-top:5px}}
.upload-form { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.evidence-list { list-style: none; padding: 0; }
.evidence {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  background: var(--off-white); padding: 8px 12px; border-radius: 6px; margin-bottom: 4px;
}
/* 2026-09-15: `min-width`/`overflow-wrap` extend this rule IN PLACE (the
   small-fixes block at the foot of the file says why). `.evidence` above is a
   `1fr auto auto` grid, and a grid item's automatic minimum size is its
   min-content - so the name track could never shrink below the longest
   unbreakable run in a filename while the two `auto` tracks took what they
   wanted first. With the raw .docx mime in the middle track the name track
   measured 66px of a 522px card at 1440px wide and broke the filename over
   six lines; the type column is a four-letter label now and the name track
   is 213px. */
.evidence__name { font-weight: 600; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.evidence__meta { font-size: 11px; color: var(--text-secondary); }
/* spec 2.5 UI: the readiness-check control + its partial, full-width under
   the row's name/meta/pill/remove grid cells rather than squeezed into one. */
.evidence__readiness { grid-column: 1 / -1; }
/* 2026-10-04 (19.0.21): "Older copies (N)" - the control page folds every
   copy of a document that is no longer the current one under one closed
   disclosure after the current files. The summary is a quiet text row in the
   page's own idiom (the `.cat`/`.sub` chevron and weight, navy like the other
   disclosures on the card, a light-gray hover); the rows inside are the
   ordinary `.evidence` rows and are not restyled. `min-width: 0` lets the
   fold shrink with the card instead of widening it on a phone. */
.evidence-older { margin: 8px 0 4px; min-width: 0; }
.evidence-older > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px; border-radius: 6px; min-width: 0; overflow-wrap: anywhere;
  font-size: 13px; font-weight: 600; color: var(--navy); text-align: left;
}
.evidence-older > summary::-webkit-details-marker { display: none; }
.evidence-older > summary::before { content: "▸"; color: var(--text-secondary); flex: 0 0 auto; }
.evidence-older[open] > summary::before { content: "▾"; }
.evidence-older > summary:hover { background: var(--light-gray); }
.evidence-list--older { margin: 4px 0 0; }
@media (max-width: 600px) {
  .evidence-older > summary { min-height: 40px; }
  .detail .evidence { grid-template-columns: minmax(0, 1fr); }
  .detail .evidence > * { min-width: 0; overflow-wrap: anywhere; }
}
.score-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.score-card { padding: 12px 20px; border-radius: 8px; color: var(--white); min-width: 120px; }
.score-card.good { background: var(--green); }
.score-card.bad  { background: var(--red); }
.score-card .big { font-size: 22px; font-weight: 700; }
/* Requirement detail only: long provenance labels must not set a mobile
   grid's minimum width; keep the current score pair readable. */
.detail__grid:has(> #control-current-scores) > .card {
  min-width: 0; overflow-wrap: anywhere;
}
.detail__grid:has(> #control-current-scores) .score-row { flex-wrap: wrap; }
.detail__grid:has(> #control-current-scores) .upload-form { flex-wrap: wrap; }
.detail__grid:has(> #control-current-scores) .score-card {
  min-width: min(120px, 100%); max-width: 100%;
}
#control-current-scores .score-card:not(.good):not(.bad) {
  background: var(--off-white); color: var(--text-primary);
}
/* spec 3.2 item 3: previous run beside the current one. */
.previous-run { margin-bottom: 16px; }
.previous-run h4 { margin: 0 0 6px; }
.previous-run__table { border-collapse: collapse; width: 100%; max-width: 480px; }
.previous-run__table th, .previous-run__table td {
  text-align: left; padding: 4px 10px 4px 0; font-size: 13px;
}
.previous-run__table thead th { color: var(--text-secondary); font-weight: 600; }
.previous-run__table tbody th { font-weight: 600; }
/* spec 3.2 item 1: the plain-language refusal explanation, filled by script. */
#control-refusal-explained code { display: block; margin-top: 4px; overflow-wrap: anywhere; }
/* spec 3.2 item 2: rationale/gaps visible under the score cards. */
#control-rationale-inline h4 { margin: 12px 0 4px; }
#control-rationale-inline h4:first-child { margin-top: 0; }
.confidence { font-size: 12px; color: var(--text-secondary); }
.inc-submitted { display: grid; gap: 6px; max-width: 100%; margin-top: 8px; }
.inc-submitted input[type=file] { width: 100%; min-width: 0; max-width: 260px; }
.inc-submitted button { justify-self: start; }
.muted { color: var(--text-muted); }

/* ── Dashboard panels (CyFun) ────────────────────────────────────────── */
.score { padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.score.good  { background: var(--green); color: var(--white); }
.score.bad   { background: var(--red); color: var(--white); }
.score.muted { background: var(--medium-gray); color: var(--text-secondary); }

/* Wide-screen tweak */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .measures { grid-template-columns: repeat(3, 1fr); }
  .detail__grid { grid-template-columns: 1fr; }
  /* 16.69.0 (⑧d §12): one column is one stack either way. */
  .detail__grid--packed { columns: 1; }
  .controls__layout { grid-template-columns: 1fr; }
}

/* ── Evidence Library page ──────────────────────────────────────────── */
.evlib .card { padding: 20px 22px; }
.evlib__upload { margin-bottom: 18px; }
.evlib__upload-form {
  /* 17.57.84: three explicit tracks. The old "1fr auto" let the date field's
     long hint claim the auto column and squeezed the drop zone to one word
     per line, with the button wrapped under it (owner's screenshot). */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) auto;
  gap: 14px 18px; align-items: center;
}
@media (max-width: 760px) {
  .evlib__upload-form { grid-template-columns: 1fr; }
  .evlib__upload-form .btn { justify-self: start; }
}
.evlib__dropzone {
  display: block;
  border: 2px dashed var(--medium-gray);
  background: var(--off-white);
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.evlib__dropzone:hover { border-color: var(--teal); background: #f7fbfa; }
/* 2026-08-12: the zone answers back. Picked files turn the dashes solid
   green and the title lists the names; a drag hover lights the target; the
   submit button spins while the classify step runs. */
.evlib__dropzone--picked { border-style: solid; border-color: var(--green); background: #f4faf7; }
.evlib__dropzone.is-over { border-color: var(--green); background: #eef8f3; }
.btn.is-busy { opacity: .75; cursor: progress; }
.btn.is-busy::after {
  content: ""; display: inline-block; vertical-align: -2px; margin-left: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: evspin 700ms linear infinite;
}
@keyframes evspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation: none; } }
.evlib__dropzone input[type="file"] {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}
.evlib__dropzone-inner { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.evlib__dropzone-icon { font-size: 28px; grid-row: span 2; }
.evlib__dropzone-title { font-weight: 600; color: var(--navy); font-size: 14px; }
.evlib__dropzone-sub { color: var(--text-muted); font-size: 12px; }

/* 17.5.0 — the "Connected sources" strip, between the upload zone and the
   list. One row per configured connector; at 375px the row's four parts
   stack and nothing scrolls sideways. */
.evsrc {
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: 10px; padding: 16px 18px; margin: 0 0 18px;
}
.evsrc__head { margin: 0 0 10px; }
.evsrc__head h2 { margin: 0; color: var(--navy); font-size: 15px; font-weight: 700; }
.evsrc__head .subtle { margin: 2px 0 0; font-size: 12px; }
.evsrc__note { margin: 0 0 12px; }
.evsrc__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evsrc__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 6px 12px; align-items: center;
  border: 1px solid var(--light-gray); border-radius: 8px;
  padding: 10px 12px; background: var(--off-white);
}
.evsrc__icon { color: var(--teal); display: flex; align-items: center; }
.evsrc__who { min-width: 0; }
.evsrc__name { font-weight: 600; color: var(--navy); font-size: 14px; }
.evsrc__locator {
  font-size: 12px; color: var(--text-secondary);
  overflow-wrap: anywhere; word-break: break-word;
}
.evsrc__meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.evsrc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.evsrc__chip {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--light-gray); color: var(--text-secondary);
}
.evsrc__chip--ok { background: #e8f5f1; color: #0d6b57; }
.evsrc__chip--warn { background: #fdf0e3; color: #94540d; }
.evsrc__acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.evsrc__acts form { margin: 0; }
.evsrc__why {
  grid-column: 1 / -1; margin: 4px 0 0;
  font-size: 12px; color: var(--text-secondary);
}

/* ── 17.6.0 — the Implementation proof ledger ──────────────────────────
   docs/evidence_proof_spec.md; the mock's states, in the app's tokens.
   The four status chips are the whole visual language of this table, so
   they are named for what they MEAN (current / due / overdue / automated)
   and reused by the summary line, the history and the removal confirm. */
.chip--ok   { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.chip--due  { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.chip--over { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.chip--auto { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.chip--ctl  { background: var(--tint-navy-bg); color: var(--tint-navy-ink); font-weight: 700; }

.evlib__views { margin: 6px 0 10px; }

/* 17.6.1 — the segmented stat strip (evidence_header_mock.html). Grey at
   rest; a cell only takes color when its number means something. */
.evproof__sum { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%;
  margin: 14px 0; border: 1px solid var(--light-gray); border-radius: 10px; overflow: hidden; }
.evproof__sum .s { display: flex; align-items: baseline; gap: 7px; padding: 10px 18px;
  border-right: 1px solid var(--light-gray); font-size: 11.5px; color: var(--text-muted); }
.evproof__sum .s:last-child { border-right: 0; }
.evproof__sum b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.evproof__sum .s.is-bad b { color: #b91c1c; }
.evproof__sum .s.is-warn b { color: #b45309; }
.evproof__sum .s.is-ok b { color: var(--teal-dark); }
.evproof__sum .s--auto { background: var(--off-white); }
.evproof__sum .s--auto span { max-width: 20em; }
/* 17.44.0 (feedback batch ⑥): the key-measure lens above the ledger. One
   row, one chip, and it borrows the findings toolbar's own .rz-fchip family
   rather than growing a second chip look for the same control - the only
   thing this rule adds is the row's spacing and the fact that an <a> has to
   be told it is not a link. */
.evproof__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.evproof__filters .rz-fchip { text-decoration: none; }
/* The header contract: title left, toggle right, ONE subtitle line under.
   17.6.2 root cause of the "sloppy" render: .page-header is itself a flex
   ROW with space-between, so the title row shrank to content width on the
   left and the subtitle became the second flex item pushed to the far
   right. The header goes column here and the row spans full width - which
   is also what lets its own space-between put the pills on the right. */
.page-header.evhead { flex-direction: column; align-items: stretch; gap: 0; }
.evhead__row { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; width: 100%; }
.evhead__row h1 { margin: 0; }
.evhead__sub { max-width: 72ch; margin-top: 6px; }
.evhead__sub a { font-weight: 600; }
/* The pills, bulletproofed against the global link states that made the
   active pill render underlined: scoped, higher specificity, every state. */
.evlib__views { margin: 0; }
.evlib__views .rz-gopt,
.evlib__views .rz-gopt:hover,
.evlib__views .rz-gopt:focus { white-space: nowrap; text-decoration: none; }
.evlib__views .rz-gopt.is-on,
.evlib__views .rz-gopt.is-on:hover,
.evlib__views .rz-gopt.is-on:focus {
  background: var(--teal); border-color: var(--teal); color: var(--white); }

.evproof__t { width: 100%; border-collapse: collapse; font-size: 13px; }
.evproof__t th {
  text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--medium-gray);
}
.evproof__t td { padding: 10px; border-bottom: 1px solid var(--light-gray); vertical-align: top; }
.evproof__name { font-weight: 700; color: var(--navy); }
.evproof__what { color: var(--text-secondary); font-size: 11.5px; margin-top: 2px; max-width: 46ch; }
.evproof__why { color: var(--text-secondary); font-size: 11.5px; margin-top: 4px; font-style: italic; }
.evproof__row--auto, .evproof__row.is-off { background: var(--off-white); }
.evproof__row--auto .evproof__name { color: var(--text-secondary); }
.evproof__acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.evproof__secthead td {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); padding: 16px 10px 6px;
}

/* The server-rendered panels: attach, settings, history, the confirm. */
.evproof__panelrow td { background: var(--off-white); padding: 0; }
.evproof__panel {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end;
  padding: 14px 12px; margin: 0;
}
.evproof__panel--slim { padding-top: 0; align-items: center; }
.evproof__panel--warn { border-left: 3px solid var(--tint-crit-ink); display: block; }
.evproof__panelh { flex: 1 0 100%; margin: 0; font-weight: 700; color: var(--navy); }
.evproof__panel > p { flex: 1 0 100%; margin: 0; font-size: 12.5px; }
.evproof__f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.evproof__f > span { color: var(--text-secondary); font-weight: 600; }
.evproof__f--wide { flex: 1 1 260px; }
.evproof__f--wide input { width: 100%; }
.evproof__f--check { flex-direction: row; align-items: center; gap: 7px; }
.evproof__hint { flex: 1 0 100%; margin: 0; font-size: 11.5px; color: var(--text-secondary); }
/* 17.57.10: the same hint sits inside the third-door ask form, a COLUMN
   flex container - there `flex-basis: 100%` is 100% of the form's height,
   so the hint swallowed the form and pushed "When did it happen?" and the
   button out of the card, onto the upload panel below (prod, 2026-09-03). */
.evproof__askform .evproof__hint { flex: 0 0 auto; }
.evproof__panelacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.evproof__panelacts form { margin: 0; }

.evproof__hist { list-style: none; margin: 0; padding: 0; flex: 1 0 100%; }
.evproof__histrow {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 7px 0; border-bottom: 1px solid var(--light-gray); font-size: 12.5px;
}
.evproof__histrow.is-gone { opacity: .65; text-decoration: line-through; }
.evproof__histrow.is-gone .chip, .evproof__histrow.is-gone .btn { text-decoration: none; }

/* The three-way upload question. Three equal doors, and the pre-selected
   one is marked - never pre-submitted. */
.evproof__ask { padding: 14px 16px; margin-bottom: 14px; }
.evproof__askq { font-size: 14px; color: var(--navy); margin: 0 0 10px; }
.evproof__doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.evproof__door {
  border: 1.5px solid var(--medium-gray); border-radius: 9px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.evproof__door--sel { border-color: var(--teal); background: var(--off-white); }
.evproof__door b { font-size: 12.5px; color: var(--navy); }
.evproof__door span { font-size: 11.5px; color: var(--text-secondary); }
.evproof__askform { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.evproof__askform select, .evproof__askform input { width: 100%; }
.evproof__add { margin-top: 14px; }
.evproof__add > summary { cursor: pointer; font-weight: 650; color: var(--navy); font-size: 13px; }

.evlib__list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 12px; }
.evlib__list-head h2 { margin: 0; color: var(--navy); font-size: 15px; font-weight: 700; }

.evlib__empty {
  text-align: center; padding: 36px 20px;
  color: var(--text-secondary);
}
.evlib__empty-icon { font-size: 32px; opacity: 0.6; }
.evlib__empty-title { font-weight: 600; margin-top: 8px; color: var(--navy); }
.evlib__empty-sub { font-size: 13px; margin-top: 4px; }

/* ── Document card ──────────────────────────────────────────────────── */
/* 16.57.0 (⑦b §1): collapsed by default. The card is now a summary row —
   name, validity pill, mapping count — over a body that only exists while
   the disclosure is open, so the padding lives on the two halves rather
   than on the article (a collapsed row is a row, not a box with 20px of
   air under one line of text). */
/* `.evlib .card` (the upload panel's own padding) outranks a bare
   `.doc-card`, so the reset has to be written at the same weight. */
.evlib .doc-card { margin-bottom: 8px; padding: 0; }
.doc-card__summary {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  cursor: pointer; list-style: none;
  border-radius: 10px;
}
.doc-card__summary::-webkit-details-marker { display: none; }
.doc-card__summary:hover { background: var(--off-white); }
.doc-card__summary::after {
  content: "▾"; margin-left: auto; flex: 0 0 auto;
  color: var(--text-muted); font-size: 12px;
}
.doc-card__disclose[open] > .doc-card__summary::after { content: "▴"; }
.doc-card__disclose[open] > .doc-card__summary {
  border-bottom: 1px solid var(--medium-gray);
  border-radius: 10px 10px 0 0;
}
.doc-card__body { padding: 12px 14px 14px; }
.doc-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--medium-gray);
}
.doc-card__icon { line-height: 0; flex: 0 0 auto; color: var(--text-secondary); }
/* 17.6.3 — the card language (mock: doccard frames): two-line identity on
   the left (bold navy name over one muted meta line), the state chips
   clustered on the right, in front of the caret. Same facts, arranged. */
.doc-card__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.doc-card__name {
  font-weight: 700; color: var(--navy); font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; max-width: 540px;
}
.doc-card__sub { font-size: 11.5px; color: var(--text-muted); }
.doc-card__state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
.doc-card__meta { font-size: 11.5px; color: var(--text-muted); }
.doc-card__count { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.doc-card__mappings {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: grid; gap: 10px;
}
.mapping {
  background: var(--off-white);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 10px 12px;
}
.mapping__head { display: flex; align-items: center; gap: 10px; }
.mapping__pill {
  display: inline-block;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 12px;
  padding: 3px 9px; border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
}
.mapping__pill:hover { background: var(--teal); text-decoration: none; }
.mapping__sub {
  font-size: 13px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.mapping__remove { margin-left: auto; }
.iconbtn {
  background: transparent; border: 0; padding: 4px 8px;
  color: var(--text-muted); cursor: pointer; font-size: 14px;
  border-radius: 6px; line-height: 1;
}
.iconbtn:hover { background: var(--medium-gray); color: var(--red); }
.mapping__why {
  margin-top: 6px; margin-left: 0;
  font-size: 12.5px; color: var(--text-secondary); font-style: italic;
  border-left: 3px solid var(--teal); padding-left: 10px;
}

.doc-card__foot { padding-top: 6px; }
.add-mapping {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
}
.add-mapping__label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.add-mapping__select {
  padding: 6px 10px; border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); font-size: 13px; min-width: 0;
}
.btn--sm { padding: 6px 14px; font-size: 13px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.chip--warn { background: #FFF4E5; color: #B7791F; border: 1px solid #F6E2B8; }
/* 17.4.0 — client-document mapping. A suggestion is a QUESTION, so it is
   the quiet teal outline rather than anything that reads as a result; a
   confirmed one is green because a person said yes to it. Neither is a
   status pill: adoption is 17.4.1 and nothing here claims it. */
/* …and they never wrap: a pill with a line break in it renders as a blob,
   which is exactly what "2 sugestii pentru registru" did at 375px. */
.chip--slot { background: #EAF6F8; color: #10707F; border: 1px solid #C7E5EA; white-space: nowrap; }
.chip--slot-ok { background: #E9F7EF; color: #1E7A46; border: 1px solid #C6E9D5; white-space: nowrap; }

/* ── 17.4.0 — registry-slot suggestions in the evidence library ──────
   The same card-in-a-list shape as .mapping above it, so the two lists in
   one disclosure read as two answers to the same question ("what does
   this document cover?") rather than as two different widgets. */
.doc-card__slots { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.slotmap {
  background: var(--off-white);
  border: 1px solid var(--medium-gray);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
}
.slotmap--confirmed { border-left-color: var(--green); }
.slotmap__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slotmap__label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.slotmap__slot { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.slotmap__acts { display: flex; gap: 8px; margin-left: auto; }
.slotmap__done { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--green); }
.slotmap__why {
  margin-top: 6px; font-size: 12.5px; color: var(--text-secondary);
  font-style: italic;
}
.slotmap__note { margin: 0 0 12px; font-size: 11.5px; color: var(--text-muted); }
/* 17.4.1 adoption. The adopted row is the settled one, so it is the only
   solid-left card in the list; the replace confirmation is the loud one,
   because replacing a document a slot already has is the single
   irreversible-feeling action on this page. Colour and spacing only - the
   375px row rules above are untouched, and .slotmap__confirm wraps for the
   same reason .slotmap__head does. */
.slotmap--adopted { border-left-color: #1E7A46; background: #F3FAF5; }
.slotmap__why--bad { color: var(--red); font-style: normal; }
.slotmap__confirm {
  margin-top: 8px; padding: 8px 10px; border-radius: 6px;
  background: #FDF6E3; border: 1px solid #F0D98A;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.slotmap__confirm p { margin: 0; font-size: 12.5px; color: #6b5400; }

/* ── 17.4.5 — remove, and same-name versions ─────────────────────────
   Two pieces of new markup on this page, both written to the 375px rules
   the 17.2.2 audit set: no fixed width anywhere, every row a wrapping
   flex, and the one string a customer cannot shorten (a filename, a slot
   title) allowed to break rather than to inflate the viewport.

   The remove confirmation is the LOUD one - it is the only irreversible
   action in the product - so it borrows the replace question's shape and
   turns it red, and its two paragraphs are the ones that name what the
   removal reaches. */
.doc-rm__confirm {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  background: #FDF1F1; border: 1px solid #F3C9C9;
}
.doc-rm__q { margin: 0; font-size: 13px; font-weight: 700; color: #8A2B2B; }
.doc-rm__what, .doc-rm__sever {
  margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.doc-rm__sever strong { color: var(--text-primary); }
.doc-rm__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* The version disclosure. A `details` inside the card's own `details`, the
   same idiom as .ev-validity-edit beside it, so no new interaction has to
   be learned and the browser keeps the open/closed state per element. */
.doc-vers { margin: 0 0 12px; }
.doc-vers__toggle {
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--teal);
  list-style: none; padding: 4px 0;
}
.doc-vers__toggle::-webkit-details-marker { display: none; }
.doc-vers__toggle::before { content: "▾ "; }
.doc-vers[open] > .doc-vers__toggle::before { content: "▴ "; }
.doc-vers__list {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
}
.doc-ver {
  min-width: 0; padding: 8px 10px; border-radius: 8px;
  background: var(--off-white); border: 1px solid var(--medium-gray);
}
.doc-ver__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.doc-ver__by { overflow-wrap: anywhere; }
.doc-ver__sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--text-secondary);
}
.doc-ver__acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.doc-ver__chips {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
/* A slot title is arbitrary text, so the chip that carries one wraps here
   even though .chip--slot is nowrap on the row it was designed for. */
.doc-ver__chips .chip { white-space: normal; overflow-wrap: anywhere; }
.doc-card__vers { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
/* The hint (spec: a hint, never an action) - quiet on the summary row and
   spelled out in the body, where there is room to name the documents. */
.chip--hint { background: #FBF3E0; color: #7A5B10; border: 1px solid #EBDBB0; }
.doc-vers__inuse {
  margin: 0 0 10px; font-size: 12.5px; color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* ── 17.4.4 — the three-door decision overlay ────────────────────────
   docs/mockups/confirm_flow_mock.html, in this stylesheet's own variables.
   One modal, two mounts (evidence library, document editor), so all of it
   lives on .dov* and neither surface owns a rule.

   The 375px promise is built in rather than bolted on below: every measure
   here is a max-width or a percentage, the option card is a 2-column grid
   whose text column is minmax(0, 1fr), and the footer is a wrapping flex
   row. The @media block at the foot of this file only has to stack the
   option's icon and drop the dialog's outer margin. */
.dov-wrap { position: fixed; inset: 0; z-index: 80; display: grid;
  place-items: start center; overflow-y: auto; padding: 24px 12px; }
/* The workspace ships this dialog in the page HIDDEN (entry B opens it on a
   drop). An author display rule beats the UA's [hidden] { display:none }, so
   without this line the "hidden" overlay is visible on every editor load -
   with no file behind it, so any door 404s (found live, 2026-08-12). */
.dov-wrap[hidden] { display: none; }
/* 2026-08-12: a chosen door says what it is doing. The clicked card keeps
   its color and gains a spinner; the other doors and Cancel go quiet. */
.dov__opt.is-busy { border-color: var(--green); cursor: progress; }
.dov__opt.is-busy .dov__go { visibility: hidden; }
.dov__opt.is-busy .dov__t::after {
  content: ""; display: inline-block; vertical-align: -2px; margin-left: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(0, 147, 96, .3); border-top-color: var(--green);
  animation: evspin 700ms linear infinite;
}
@media (prefers-reduced-motion: reduce) { .dov__opt.is-busy .dov__t::after { animation: none; } }
.dov__opt[disabled] { opacity: .5; cursor: default; }
.dov--busy .dov__cancel { pointer-events: none; opacity: .5; }
.dov-dim { position: fixed; inset: 0; background: rgba(10, 20, 45, .45); }
.dov {
  position: relative; width: 100%; max-width: 660px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 31, 91, .35);
  padding: 20px 22px 18px;
}
.dov__eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); }
.dov__title { font-size: 17px; font-weight: 800; color: var(--navy);
  margin: 3px 0 0; }
.dov__doc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 4px; background: var(--off-white);
  border: 1px solid var(--medium-gray); border-radius: 9px;
  padding: 8px 11px; font-size: 12.5px;
}
.dov__file { font-weight: 700; color: var(--navy); word-break: break-word; }
.dov__arrow { color: var(--text-muted); }
.dov__slot { font-weight: 700; color: var(--green); }
.dov__sub { color: var(--text-muted); font-size: 12px; margin: 8px 0 14px; }
.dov__opts { display: grid; gap: 10px; }
.dov__form { margin: 0; }
.dov__opt {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px;
  align-items: center; text-align: left; width: 100%;
  border: 1.5px solid var(--medium-gray); border-radius: 11px;
  padding: 12px 14px; background: var(--white); cursor: pointer;
  font: inherit; color: inherit;
}
.dov__opt:hover, .dov__opt:focus-visible { border-color: var(--green); background: #F7FCFA; }
.dov__opt--rec { border-color: var(--green); }
.dov__ic { display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 9px; background: var(--light-gray); font-size: 17px;
  color: var(--navy); }
.dov__opt--rec .dov__ic { background: #E7F5EE; color: #1E7A46; }
.dov__body { display: block; min-width: 0; }
.dov__t { display: block; font-weight: 700; color: var(--navy); font-size: 13.5px; }
.dov__rec { font-size: 10px; font-weight: 800; color: #1E7A46;
  border: 1px solid #BFE6D3; border-radius: 999px; padding: 1px 8px;
  margin-left: 6px; white-space: nowrap; }
.dov__d { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
/* 2026-10-18 (owner, rule 3): every option says whether it replaces the
   document - green when it replaces nothing, red when it replaces it - and
   the improve option is marked NEW (mockups/improve-dialog.html). */
.dov__tag { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600;
  border-radius: 6px; padding: 1px 7px; color: #9a3b36; background: #fbeaea; }
.dov__tag--keep { color: #1f5a3c; background: #e3f1e8; }
.dov__rec[hidden], .dov__form[hidden] { display: none; }
.dov__go { color: var(--text-muted); font-size: 16px; }
.dov__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--medium-gray);
}
.dov__hint { color: var(--text-muted); font-size: 11.5px; max-width: 30em; }
.dov__cancel { background: none; border: 0; padding: 0; color: var(--text-muted);
  font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; }

/* 2026-09-18 — the adoption-language screen (_doc_decision_language.html):
   the SAME .dov card, standing on its own PAGE rather than inside a
   fixed/dimmed .dov-wrap overlay. .dov itself already sets its own
   width/max-width/padding; this only centers it in the main pane and drops
   the modal shadow a plain page does not need. */
.dov-page { display: flex; justify-content: center; padding-top: 8px; }
/* 2026-10-18 (owner decision 2): the "is this the right document?" step,
   _doc_decision_mismatch.html. Its document choices are .dov__opt cards
   that are links, so they lose the link underline; the "Choose another
   document" heading gets air above it. Place with the .dov-page rules. */
a.dov__opt{text-decoration:none}
#dov-mismatch-other{margin:16px 0 6px}
/* 19.4.3: these cards have no icon, so the base card's three columns (icon,
   text, arrow) put the call to action in the 40px icon column, over the
   text. Two columns here: the text, then its verb on the right. (The phone
   rule is with the other phone rules, at the foot of the file.) */
#dov-mismatch .dov__opt{grid-template-columns:minmax(0,1fr) auto}
#dov-mismatch .dov__body{grid-column:1}
#dov-mismatch .dov__cta{grid-column:2;grid-row:1}
.dov--page { box-shadow: none; border: 1px solid var(--medium-gray); }
/* The screen's own three named actions ("Adopt into %s", "Keep %s", ...) —
   distinct from every other .dov door, which shows only a quiet chevron —
   so each option's own imperative CTA phrase is legible, not just its
   longer descriptive title. */
.dov__cta { grid-row: 1 / span 2; align-self: center; font-weight: 700;
  font-size: 12.5px; color: var(--green); white-space: nowrap; }

/* UI19 adoption component: identical in Evidence and Workspace. Keep the
   separate What's New dialog, which also uses dov chrome, outside this scope. */
:is(#dov,.dov--page) :is(.dov__eyebrow,.dov__sub,.dov__d,.dov__hint,.dov__rec,.dov__cta){font-size:13px}
:is(#dov,.dov--page) .dov__title{font-size:24px;line-height:1.3}
:is(#dov,.dov--page) .dov__t{font-size:15px;line-height:1.4}

/* ── "What's new" dialog (2026-09-23, lane E, 18.0.6) ────────────────
   The SAME .dov-wrap/.dov-dim/.dov card as the three-door overlay above,
   holding a version list instead of doors: read, then dismiss. Only the
   parts .dov itself does not already give are added here. */
.wn { max-width: 560px; }
.wn__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wn__closeform { margin: 0; flex-shrink: 0; }
.wn__close {
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--text-muted); border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; font: inherit;
}
.wn__close:hover, .wn__close:focus-visible { background: var(--light-gray); color: var(--navy); }
.wn__list {
  display: flex; flex-direction: column; gap: 10px; margin: 14px 0;
  max-height: 55vh; overflow-y: auto;
}
.wn__entry {
  border: 1px solid var(--medium-gray); border-radius: 10px;
  padding: 12px 14px; background: var(--off-white);
}
.wn__entryhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.wn__entrytitle { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.wn__chip {
  font-size: 10px; font-weight: 800; color: var(--green);
  background: #E7F5EE; border-radius: 999px; padding: 1px 8px;
  white-space: nowrap;
}
.wn__entry ul { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 12.5px; line-height: 1.5; }
.wn__entry li + li { margin-top: 3px; }

/* 19.0.34: a required dialog wins over this optional one - in the page, not
   only in sidebar.js. When the first-login language popup (#langpop,
   data-shell-dialog="required") and this dialog are both owed, the script
   makes the popup the live modal and the rest of the page inert, this
   dialog included. Both are z-index 80 and this one comes later in the
   document, so it was drawn ON TOP of the popup but inert: on a phone its
   card covers the popup completely, "Got it" and the X do nothing, and the
   language question that would unlock the Terms is never seen. Hidden
   while a required dialog is open; it comes back on the next page once the
   popup is answered (the acknowledged version is only written by "Got it").
   The popup's own z-index is the fallback for a browser without :has. */
body:has([data-shell-dialog="required"]) .wn-wrap { display: none; }
.langpop { z-index: 81; }

/* ── Evidence validity (16.49.0) ─────────────────────────────────────
   Four states, outline pills so a shelf of them stays readable: ok is
   quiet green, expired is the only loud one, aging is the amber nudge,
   unset is deliberately neutral (no date is not a finding). */
/* 16.52.0: folded into the one tinted label system (skin spec §E). The
   four states keep their meaning; only the outline-pill styling went. */
.ev-pill {
  display: inline-block; padding: 2.5px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.ev-pill--ok { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.ev-pill--expired { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.ev-pill--aging { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.ev-pill--unset { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }

.evlib__validity { display: grid; gap: 4px; align-content: start; font-size: 12px; }
.evlib__validity-label { font-weight: 600; color: var(--navy); }
.evlib__validity-hint { color: var(--text-muted); }
.evlib__validity input[type="date"] {
  padding: 6px 10px; border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); font-size: 13px;
}

.ev-validity-edit { font-size: 12px; }
.ev-validity-edit__toggle {
  cursor: pointer; color: var(--text-muted); list-style: none;
  border-bottom: 1px dotted var(--medium-gray);
}
.ev-validity-edit__toggle:hover { color: var(--teal); }
.ev-validity-edit__form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px;
}
.ev-validity-edit__label { color: var(--text-muted); }
.ev-validity-edit__hint { flex-basis: 100%; color: var(--text-muted); }
.ev-validity-edit input[type="date"] {
  padding: 5px 8px; border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); font-size: 12.5px;
}

.upload-form__validity { display: grid; gap: 4px; font-size: 12px; margin: 8px 0; }
.upload-form__validity input[type="date"] {
  padding: 6px 10px; border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); font-size: 13px; justify-self: start;
}

@media (max-width: 900px) {
  .evlib__upload-form { grid-template-columns: 1fr; }
  .add-mapping { grid-template-columns: 1fr; gap: 6px; }
  .doc-card__name { max-width: 100%; }
}

/* ── Templates gallery + form ───────────────────────────────────────── */
.tplgallery .page-header { margin-bottom: 18px; }

.tplgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tplcard {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  transition: border-color 120ms ease, transform 120ms ease;
}
.tplcard:hover { border-color: var(--teal); }
.tplcard__title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.tplcard__desc { margin: 0 0 12px; font-size: 13px; color: var(--text-secondary); line-height: 1.4; flex: 1; }
.tplcard__targets {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.tplchip {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--light-gray); color: var(--navy);
  font-size: 11px; font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border: 1px solid var(--medium-gray);
}
.tplcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--medium-gray); padding-top: 12px;
}
.tplcard__meta { color: var(--text-muted); font-size: 12px; }

.formfield { display: grid; gap: 4px; }
/* Checkbox fields: box inline-LEFT of the label, hint indented beneath it
   (these labels wrap the checkbox + a label span + an optional hint span,
   so each is pinned to an explicit cell — a bare 2-col grid mis-packs the
   wide hint into column 1). Covers ai_personalize + narrative grounding. */
.formfield__label { font-size: 13px; font-weight: 600; color: var(--navy); }
.formfield input[type="text"],
.formfield textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white);
  font-size: 14px; font-family: inherit;
}
.formfield input:focus, .formfield textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}
.formfield .required { color: var(--red); }

/* ── CyFun controls — defensive text-align ─────────────────────────── */
.controls__layout, .tree, .cat__name, .sub__name, .req__title,
.hint, .hint h2, .hint p,
.requirement-body { text-align: left; }
/* When a category/sub title is long, let it fill its space then ellipsis */
.cat__name, .sub__name { flex: 1; min-width: 0; }
.cat > summary, .sub > summary { text-align: left; }

/* ── Evidence library — doc-card actions block ─────────────────────── */
.doc-card__actions {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.doc-card__count { font-size: 12px; color: var(--text-secondary); }
.doc-card__readiness:not(:empty) { margin-top: 8px; }

/* ── spec 2.5 UI — the evidence readiness check partial ──────────────
   Shared by the evidence row (control page + Evidence Library) and the
   workspace before Approve; see _evidence_readiness.html. Composes with
   the existing .pill/.muted/.small idioms rather than inventing new ones. */
.evread { margin-top: 6px; }
.evread__legend { margin: 2px 0; }
/* 19.4.2 (2026-10-18): the grouped records line's link sits on its own row under the message. */
.evread__fill { flex: 0 0 100%; padding-left: 20px; }
.evread__findings {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.evread__finding { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
/* The checklist mark: a check, a "!" or an "x" in the same three tints the
   Level chips use. Reuses the existing tint tokens - no new colour values. */
.evread__mark { flex: 0 0 auto; width: 12px; text-align: center; font-weight: 800;
  font-size: 12px; line-height: 1.2; }
.evread__mark.is-ok    { color: var(--tint-ok-ink); }
.evread__mark.is-warn  { color: var(--tint-med-ink); }
.evread__mark.is-bad   { color: var(--tint-crit-ink); }
.evread__mark.is-muted { color: var(--tint-mute-ink); }
.evread__msg { flex: 1 1 260px; }
.evread__excerpt { flex-basis: 100%; }
.evread__more { margin-top: 2px; }

/* ── Progress page ────────────────────────────────────────────────── */
.progress-page .page-header { margin-bottom: 18px; }
/* 17.44.0 (feedback batch ④): five cards, not four - the key-measure floor
   is the first of DNSC's two conformity conditions, so the page that answers
   "where do we stand" prints it beside the four it already did. The card
   itself is a .prog-summary__card like its siblings; only the track count
   changes here, and the ≤1000px pair below is unaffected. */
/* 2026-09-14 (Dev1 cosmetics): four tracks, not five. The five-across strip
   left the four short KPI cards as tall as the workbook card beside them and
   mostly empty; they are a 2x2 block on the LEFT half now (tracks 1-2) with
   the workbook card spanning the RIGHT half (tracks 3-4) over both rows. The
   placement itself is at the foot of this file, with the ≤900px stack. */
.prog-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.prog-summary__card { padding: 14px 16px; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.prog-summary__card .muted.small {
  font-size: 13px; line-height: 1.5; color: var(--text-secondary);
}
.prog-summary__label {
  font-size: 11px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.prog-summary__value {
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-top: 4px; line-height: 1.1;
}
.prog-summary__sub {
  font-size: 13px; color: var(--text-muted); margin-left: 4px; font-weight: 600;
}
/* 17.44.0 (④): the key card's label carries the branded key mark - the same
   `icon('key')` stroke SVG the rest of the product uses, never the 🗝 the
   mock drew (tests/test_no_emoji_icons.py, 16.4.4). Gold, like every other
   key affordance, and aligned with the uppercase label beside it. */
.prog-summary__label--key { display: flex; align-items: center; gap: 5px; }
.prog-summary__label--key .ic { color: var(--key-ink); flex: 0 0 auto; }
/* 17.44.0 (④): the key card's number goes red while a key measure is below
   target - the one accent the card takes beyond the 🗝 in its label. Scoped
   to this card rather than wiring up the inert `tl-bad` its four siblings
   carry: that would have reddened three numbers this batch was not asked to
   touch. Same ink as every other failing number on the page. */
.prog-summary__value--keybad { color: var(--red); }
/* Workbook prose needs a reading rhythm of its own, not numeric KPI sizing. */
.prog-workbook__criteria { display: grid; gap: 4px; margin-top: 10px; }
.prog-summary__value--verdict { font-size: 20px; line-height: 1.3; margin: 12px 0 6px; }
.prog-summary__card .prog-keydetails { margin: 6px 0; line-height: 1.5; }
.prog-workbook__footer {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; margin-top: 12px;
}
.prog-workbook__footer p { margin: 0; }
.prog-workbook__footer a { display: block; max-width: 100%; }

/* templates-table follow-up: the workbook card's "N categories/key measures
   incomplete" lists can name every one of them - up to all in the profile -
   which used to run on as one plain line and made this card (and the
   dashboard's copy of it) far taller than its neighbours. A native
   <details>/<summary> instead: closed by default, no extra chrome beyond
   the marker the element already draws, matching the plain `.muted.small`
   line it replaces so the collapsed card reads exactly as before. */
.prog-keydetails {
  font-size: 12.5px; color: var(--text-secondary); margin: 2px 0;
}
.prog-keydetails summary { cursor: pointer; }
.prog-keydetails summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.prog-keydetails__list { margin-top: 4px; }
/* 2026-09-14: the ids inside these two disclosures are GAPS and read red -
   but the rule is `.prog-gapid` at the foot of this file, which every other
   control id in the card carries too, rather than a second colour here on
   the only ones that happen to be links. */
.prog-keydetails__list a { font-weight: 600; }

.prog-bar {
  margin-top: 8px;
  background: var(--medium-gray); border-radius: 999px;
  height: 6px; overflow: hidden;
}
.prog-bar__fill {
  background: var(--teal); height: 100%; border-radius: 999px;
  transition: width 200ms ease;
}

.prog-functions__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.prog-functions__head h2 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--navy);
}

.prog-fn-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.prog-fn-table th, .prog-fn-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--medium-gray);
}
.prog-fn-table th {
  color: var(--text-secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px;
}
.prog-fn-table tbody tr:last-child td { border-bottom: 0; }

.prog-fn-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent, var(--navy)); color: var(--white);
  font-weight: 700; font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  margin-right: 8px;
}
.prog-score {
  display: inline-block; min-width: 36px;
  padding: 3px 10px; border-radius: 4px;
  font-weight: 700; font-size: 12.5px; text-align: center;
}
.prog-score--good  { background: var(--green); color: var(--white); }
.prog-score--mid   { background: var(--amber); color: #4D2C00; }
.prog-score--bad   { background: var(--red); color: var(--white); }
.prog-score--muted { background: var(--medium-gray); color: var(--text-secondary); }

.prog-nextsteps { padding: 18px 22px; }
.prog-gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prog-gap {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--off-white); border: 1px solid var(--medium-gray);
  border-radius: 8px;
}
.prog-gap__pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prog-gap__pill:hover { background: var(--teal); text-decoration: none; }
.prog-gap__title { color: var(--text-primary); font-size: 13.5px; }
.prog-gap__metric { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.prog-gap__delta { color: var(--red); font-weight: 700; }

/* 2026-09-14: the ≤1000px two-up went with the five-across strip above - the
   half/half split holds down to 900px and stacks to ONE column below it (the
   block at the foot of this file). Two tiers for one row was the reason the
   workbook card kept landing on a line of its own at tablet width. */

/* ── Template form: select + hint ──────────────────────────────────── */
.formfield select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white);
  font-size: 14px; font-family: inherit;
  color: var(--text-primary);
}
.formfield select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}
.formfield__hint {
  font-size: 12px; color: var(--text-muted); margin-top: 4px;
  font-style: italic;
}

/* ── Progress charts ───────────────────────────────────────────────── */
/* ── Progress redesign (16.20.3): general radar + doc/impl drill-down ── */
.prog-general { padding: 18px 22px; }
.prog-genrow { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.prog-radarwrap { display: flex; flex-direction: column; align-items: center; }
.prog-leg { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 11px; color: var(--text-secondary); }
.prog-leg .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.prog-leg .sw-avg { background: var(--teal); } .prog-leg .sw-tgt { background: #9BA8C8; }
.prog-leg--wide { justify-content: flex-start; margin: -4px 0 16px; }
.sw.tl-good, .rdot.tl-good { background: var(--green); fill: var(--green); }
.sw.tl-mid, .rdot.tl-mid { background: var(--amber); fill: var(--amber); }
.sw.tl-bad, .rdot.tl-bad { background: var(--red); fill: var(--red); }
.sw.tl-na, .rdot.tl-na { background: var(--medium-gray); fill: var(--medium-gray); }
.rdot { stroke: #fff; stroke-width: 1.3; }
/* maturity rows (function / category / control) */
.mrow { display: grid; grid-template-columns: minmax(150px, 200px) 1fr 50px; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 7px; }
.mfn, .mcat { cursor: pointer; }
.mfn:hover, .mcat:hover { background: var(--light-gray); }
.mlabel { font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; min-width: 0; }
.mlabel.mcat-l { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.mlabel > .prog-fn-pill { margin-right: 8px; }
.mchev { display: inline-block; width: 14px; flex: none; color: var(--text-muted); font-size: 10px; }
.mtrack { position: relative; height: 9px; border-radius: 5px; background: var(--medium-gray); }
.mfill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; }
.mfill.tl-good { background: var(--green); } .mfill.tl-mid { background: var(--amber); }
.mfill.tl-bad { background: var(--red); } .mfill.tl-na { background: var(--medium-gray); }
.mtmark { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--navy); border-radius: 1px; }
.mval { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mval.tl-good { color: #1b7f4b; } .mval.tl-mid { color: #8a6d00; } .mval.tl-bad { color: var(--red); } .mval.tl-na { color: var(--text-muted); }
.mkids { display: none; padding: 0 0 4px 22px; }
.mkids.show { display: block; }
.mkids .mkids { padding-left: 16px; }
/* 16.59.0: "n/m scored" pushed to the right edge of the label column, so the
   scoped bar next to it is never read as a measured value on its own. */
.mcov { margin-left: auto; padding-left: 8px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mctl { grid-template-columns: minmax(120px, 170px) 1fr 46px; }
.mctl-id { font-family: var(--mono, monospace); font-size: 10.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mctl-id:hover { color: var(--teal-dark); }
/* 17.44.0 (feedback batch ④): the control row's id cell holds the id AND,
   when the framework designates it, the KEY badge. A flex wrapper inside the
   FIRST grid column - exactly what .mlabel already is one row up - so the
   three .mrow columns that align the whole page are untouched, and the id
   keeps its own ellipsis. */
.mctl-l { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mctl-l .keybadge { font-size: 8.5px; padding: 0 5px; }
/* The per-function key column on the maturity bars: the product's gold key
   pill (.keybadge, which this borrows whole) with the pass/fail ink of the
   traffic lights it sits beside. Red until every key measure in the function
   is at target, green at y/y - a floor, so there is no amber. */
.prog-fnbars .mrow--key { grid-template-columns: minmax(150px, 200px) 1fr 50px 62px; }
.mkey { font-variant-numeric: tabular-nums; text-align: center; justify-content: center; }
a.mkey:hover { text-decoration: none; filter: brightness(.97); }
.mkey--bad { color: var(--red); }
.mkey--ok { color: #1b7f4b; }
.mkey--none { font-size: 10.5px; color: var(--text-muted); text-align: center; }
.prog-leg .sw-key { background: var(--key-bg); border: 1px solid var(--key-line); }
/* 16.64.0 (⑦j): the grouping toggle for the two trees. Right-aligned above
   them so it reads as a control OVER the pair rather than a header of the
   left-hand card; the switch itself is ⑦c's .rz-gsel, unchanged. A measure
   pill has no framework colour to inherit (functions do), so it takes the
   navy the .prog-fn-pill default already falls back to. */
.prog-grouprow { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.prog-fn-pill--ms { letter-spacing: .02em; }
.prog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 14px; }
.prog-two > .card { margin-bottom: 0; padding: 16px 18px; }
@media (max-width: 1050px) { .prog-genrow { grid-template-columns: 1fr; } .prog-two { grid-template-columns: 1fr; } }

.radar-svg { display: block; width: 100%; height: auto; max-width: 304px; margin: 0 auto; overflow: visible; }

.hbars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.hbar {
  display: grid; grid-template-columns: 200px 1fr 36px;
  gap: 12px; align-items: center;
}
.hbar__label {
  font-size: 13px; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hbar__track {
  position: relative;
  height: 14px; background: var(--medium-gray); border-radius: 999px;
  overflow: hidden;
}
.hbar__fill {
  display: block; height: 100%;
  border-radius: 999px; transition: width 200ms ease;
}
.hbar__value {
  font-size: 13px; font-weight: 700; color: var(--navy);
  text-align: right;
}

@media (max-width: 1100px) {
  .hbar { grid-template-columns: 140px 1fr 36px; }
}

/* 16.65.0 (⑧a §D): the .tl__* family is gone. ⑦b kept the EVENT row when
   it removed the Progress timeline because index.html still rendered it
   for the dashboard's "Recent activity" card; that card is now removed
   too, and this was its last caller. Nothing else in the app draws a
   timeline row. */

/* Recorded whole-profile maturity; gaps never imply zero or a forecast. */
.prog-history { padding: 18px 22px; margin-bottom: 14px; min-width: 0; }
.prog-history .prog-functions__head { flex-wrap: wrap; gap: 8px; }
.prog-history__basis, .prog-history__notice { color: var(--text-secondary); font-size: 13px; line-height: 1.55; max-width: 85ch; }
.prog-history__meta { display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 18px 0; align-items: center; }
.prog-history__label { display: block; font-size: 13px; margin-bottom: 4px; }
.prog-history__meta strong { display: block; font-size: 24px; color: var(--navy); }
.prog-history__meta small { font-size: 13px; font-weight: 400; }
.prog-history__asof { margin: 0 0 0 auto; font-size: 13px; color: var(--text-secondary); }
.prog-history__plot { overflow-x: auto; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--off-white); }
.prog-history__plot:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.prog-history__svg { display: block; width: 100%; min-width: 560px; max-width: 840px; max-height: 260px; margin-inline: auto; }
.prog-history__svg text { fill: var(--text-secondary); font-family: inherit; font-size: 12px; }
.prog-history__grid { stroke: var(--medium-gray); stroke-width: .7; }
.prog-history__lane path { stroke: currentColor; stroke-width: 2; }
.prog-history__lane circle, .prog-history__lane rect { fill: currentColor; }
.prog-history__label--doc, .prog-history__lane--doc { color: var(--navy); }
.prog-history__label--impl, .prog-history__lane--impl { color: var(--teal); }
.prog-history__lane--impl path { stroke-dasharray: 5 3; }
.prog-history__legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; margin: 8px 0 0; }
.prog-history__range { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.prog-history__observations { margin-top: 16px; font-size: 13px; }
.prog-history__observations summary { cursor: pointer; color: var(--navy); font-weight: 600; padding-block: 6px; }
.prog-history__table-wrap { overflow-x: auto; }
.prog-history__table-wrap:focus-visible, .prog-history__observations summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.prog-history__observations table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prog-history__observations th, .prog-history__observations td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--medium-gray); }
.prog-history__observations td:not(:first-child) { white-space: nowrap; }

/* Recorded work and score movement answer separate questions, with one range. */
.prog-charts-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.prog-charts-header h2 { margin: 0; }
.prog-period { display: inline-flex; border: 1px solid var(--medium-gray); border-radius: 8px; padding: 3px; gap: 3px; background: var(--white); }
.prog-period a { padding: 7px 12px; border-radius: 5px; font-size: 13px; text-decoration: none; color: var(--text-secondary); }
.prog-period a[aria-current] { background: var(--navy); color: var(--white); }
.prog-score-changes { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 16px; font-size: 13px; }
.prog-score-changes p { margin: 0; }
.prog-activity-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.prog-activity-totals > div { border-left: 2px solid var(--medium-gray); padding-left: 12px; min-width: 0; }
.prog-activity-totals span, .prog-activity-totals small { display: block; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.prog-activity-totals strong { display: block; color: var(--navy); font-size: 24px; font-variant-numeric: tabular-nums; }
.prog-activity-plot { overflow-x: auto; padding: 8px 8px 4px; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--off-white); }
.prog-activity-bars { display: grid; grid-template-columns: repeat(var(--activity-days),minmax(16px,1fr)); min-width: max-content; height: 188px; padding: 20px 0 26px; gap: 2px; }
.prog-activity-bars > a { min-width: 16px; position: relative; display: flex; flex-direction: column; justify-content: end; border-bottom: 1px solid var(--medium-gray); text-decoration: none; }
.prog-activity-bars > a[aria-current] { background: #DCEEEB; box-shadow: inset 0 -2px var(--teal); }
.prog-activity-bars > a:hover { background: #E6ECEF; }
.prog-activity-bars time { position: absolute; bottom: -23px; left: 0; color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.prog-activity-bars > a:last-child time { left: auto; right: 0; }
.prog-activity-bar { display: flex; flex-direction: column; gap: 1px; min-height: 0; position: relative; }
.prog-activity-bar[data-count]::before { content: attr(data-count); position: absolute; top: -20px; left: 0; width: 100%; text-align: center; font-size: 13px; color: var(--navy); }
.prog-activity-bar--scans { background: var(--navy); }
.prog-activity-bar--assessments { background: var(--teal); }
.prog-activity-bar--approvals { background: #A66913; }
.prog-activity-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; margin-top: 10px; }
.prog-activity-legend span { display: inline-flex; align-items: center; gap: 6px; }
.prog-activity-legend i { width: 9px; height: 9px; border-radius: 2px; }
.prog-activity-detail { border-top: 1px solid var(--medium-gray); margin-top: 18px; padding-top: 14px; }
.prog-activity-detail h3 { font-size: 15px; margin: 0 0 10px; }
.prog-activity-detail ul { list-style: none; padding: 0; margin: 0; }
.prog-activity-detail li { display: flex; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--medium-gray); padding: 8px 0; font-size: 13px; }
.prog-activity-detail li > time { flex: 0 0 92px; color: var(--text-secondary); }
.prog-activity-detail li small { display: block; font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }
.prog-activity-plot:focus-visible, .prog-activity-bars a:focus-visible, .prog-period a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Workbook criteria: recorded results above, fixed thresholds below. */
.workbook-criteria { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 12px; margin: 20px 0; }
.workbook-criterion { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--medium-gray); border-radius: 10px; padding: 16px; background: var(--off-white); }
.workbook-criterion h3 { font-size: 15px; line-height: 1.4; color: var(--navy); margin: 0 0 12px; }
.workbook-criterion__result { margin-bottom: 12px; }
.workbook-criterion__result strong { display: block; font-size: 28px; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; }
.workbook-criterion__result small { font-size: 15px; font-weight: 400; color: var(--text-secondary); }
.workbook-criterion__result span, .workbook-criterion p, .workbook-criterion__state { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.workbook-criterion p { margin: auto 0 0; border-top: 1px solid var(--medium-gray); padding-top: 10px; }
.workbook-criterion p b { display: block; color: var(--navy); }
.workbook-criterion__state { margin-top: 8px; }
.workbook-criterion[data-state="ok"] { border-top: 3px solid var(--teal); }
.workbook-criterion[data-state="bad"] { border-top: 3px solid #A66913; }
.workbook-criterion[data-state="unknown"] { border-top: 3px solid var(--medium-gray); }
/* ── Connections page ─────────────────────────────────────────────── */
/* 16.57.0 (⑦b §4): the ⑥d treatment, applied to the three merged
   Integrations sections. `align-items: start` was already here (16.53.0),
   so the panels never stretched — what was actually being spent was
   PADDING: eight cards at 20/22 with a 16px title and a 14px form gap,
   under section headings and rules that cost another 50px apiece. The
   card titles drop to the ⑥d card-heading size, which also restores the
   hierarchy they had lost against the 16px .section-title above them. */
.conn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
  margin-bottom: 11px;
  align-items: start;
}
/* Vendor groups (17.1.0; columns 17.1.1; accordion 17.1.3 mock variant A) —
   each group is a <details> grid item of .conn-grid: chevron + vendor mark +
   name + a language-free ok/total chip in the summary, stacked cards in the
   body. Open by default; collapse state kept per vendor in localStorage. */
details.conn-vendor {
  border: 1px solid var(--medium-gray); border-radius: 10px;
  background: #fbfcfe; align-self: start;
}
details.conn-vendor > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; cursor: pointer; list-style: none; user-select: none;
}
details.conn-vendor > summary::-webkit-details-marker { display: none; }
.conn-chev {
  width: 15px; height: 15px; flex: none;
  color: var(--muted, #6b7280); transition: transform .15s;
}
details.conn-vendor[open] > summary .conn-chev { transform: rotate(90deg); }
.conn-vlogo {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.conn-vendor__count { margin-left: auto; }
.conn-vendor__body { display: grid; gap: 11px; padding: 2px 12px 12px; }
.conn-group {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted, #6b7280);
  margin: 0;
}
.conn-card { padding: 14px 15px; margin-bottom: 0; }
.conn-card__head {
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
}
.conn-card__title-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.conn-card__title { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
/* `.small` and `.subtle` carry no size of their own anywhere in this
   stylesheet, so every explanatory line on this page was rendering at the
   browser's default 16px — bigger than the card headings it sat under. */
.connections-page .small, .connections-page .subtle,
.connections-page .muted.small { font-size: 12px; line-height: 1.5; }
.connections-page p { margin: 0 0 8px; }

.conn-form { display: grid; gap: 10px; }
.conn-form__actions {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .conn-grid { grid-template-columns: 1fr; }
}

.conn-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.conn-consent-state .conn-chip {
  white-space: normal; max-width: 100%; overflow-wrap: anywhere;
}
/* 16.52.0: the scan-history + connector status badges use the one tinted
   label system (skin spec §E). The outline went with it - a tint carries
   the state on its own, and the border was the only thing making a row of
   "Interrupted" chips look like a row of errors. */
.conn-chip--ok    { background: var(--tint-ok-bg);   color: var(--tint-ok-ink);   border: none; }
.conn-chip--saved { background: var(--tint-med-bg);  color: var(--tint-med-ink);  border: none; }
.conn-chip--err   { background: var(--tint-crit-bg); color: var(--tint-crit-ink); border: none; }
.conn-chip--idle  { background: var(--tint-mute-bg); color: var(--tint-mute-ink); border: none; }

.conn-test-result { transition: color 200ms ease; }
.conn-test-result--ok  { color: var(--green-dark); }
.conn-test-result--err { color: var(--red); }

/* 16.65.0 (⑧a §B): the Graph permission manifest, collapsed inside the M365
   card. Same quiet dashed-box idiom as .conn-more below - it is the same kind
   of thing, a list you open when you need it - at card-interior scale. */
.conn-perms {
  margin-top: 11px; padding: 8px 11px;
  background: var(--off-white);
  border: 1px dashed var(--medium-gray); border-radius: 9px;
}
.conn-perms > summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 12.5px;
}
.conn-perms .perm-list { margin: 8px 0 6px; padding-left: 18px; }
.conn-perms .perm-list li { margin-bottom: 3px; }

.conn-more {
  margin-top: 11px;
  background: var(--off-white);
  border: 1px dashed var(--medium-gray);
  border-radius: 10px;
  padding: 9px 14px;
}
.conn-more > summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  font-size: 13px;
}
.conn-more__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 9px; margin-top: 10px;
}
/* 16.57.0 (⑦b §4): SCOPED. The dashboard's connector strip claimed the same
   `.conn-mini` name lower down the file (16.52.0) and, being later, won -
   the Phase-2 cards here were inheriting `padding: 0` and `display: flex`
   from a rule written for a pill list. Scoping to the grid these actually
   live in settles it without renaming a class two pages read. */
.conn-more__grid .conn-mini {
  background: var(--white); border: 1px solid var(--medium-gray);
  border-radius: 8px; padding: 8px 11px;
  display: grid; gap: 3px; margin: 0; list-style: none;
}

/* ── Dashboard ─────────────────────────────────────────────────────── */
/* 16.56.0 (⑦a §e): `align-items: start`. A grid stretches its items by
   default, so the maturity ladder was as tall as whatever the left column
   happened to contain - five rows of content in a card sized by the
   function bars plus the machinery panel, with the difference showing as
   dead white space under "Your score". Nothing inside the ladder was ever
   constrained (no fixed height, no inner scroll); the constraint was the
   ROW. Same one-line fix, and the same reasoning, as the ⑥d card grids. */
/* 17.44.0 (feedback batch ③): `minmax(0, 1fr)`, not `1fr`. The file already
   learned this once, at the ≤640px collapse below: `1fr` is
   `minmax(auto, 1fr)`, so a track is never allowed narrower than its
   content's MIN-content - and the key-measure tile's failing list is a
   nowrap-with-ellipsis line whose min-content contribution is the whole
   requirement title. Measured at 1440px with `1fr 1fr`: the tile claimed
   770px and squeezed the maturity ladder beside it to 350. The ellipsis was
   already there to make this text shrink; `minmax(0, …)` is what lets it. */
/* 17.47.0 (row-alignment feedback): `stretch`, not `start`. ⑥d's `start` was
   the right answer to a DIFFERENT problem — a grid stretching a short card to
   the height of a tall neighbour and leaving the difference as void under its
   last line. The fix for that is not to let the cards end wherever their
   content ends (which is what `start` does, and what made row 2 read as two
   cards of unrelated heights and row 3 as three); it is to stretch them and
   give each one a region that is ALLOWED to carry the extra height. Both
   halves ship together: `stretch` here, the flex columns below. */
.dashboard-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
/* 17.44.0 (feedback batch ③): the collage's two rows. Row 2 is the plain
   1fr 1fr above (maturity ladder · key measures); row 3 is half / quarter /
   quarter. Declared HERE, before the ≤1100px collapse below, so the stack
   is inherited from .dashboard-row rather than restated — the modifier owns
   one property and nothing else. */
.dashboard-row--thirds {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}
/* The last card's help must end at its mark in the multi-column layout.
   Once cards stack, centering keeps the same bubbles away from the left edge;
   the existing phone rule still supplies its fixed bottom help. */
@media (min-width: 1101px) {
  .dashboard-row--thirds [data-help].qhelp--dashboard-end::after {
    left: auto; right: -4px; transform: none;
  }
}
/* 17.47.0 (row-alignment feedback): row 3 opens on ONE heading and ONE top
   rhythm. "By function" wore .prog-functions__head h2 (14px sentence-case
   navy) and the two quarter cards wore .kpi-label (11.5px uppercase muted
   with tracking), so three cards side by side started their content on three
   different lines and read as three unrelated widgets. The shared style is
   By function's, because it is the one a whole page already uses.
   Scoped to the row on purpose: the key-measures tile in row 2 keeps
   .kpi-label, the KPI idiom it was drawn in.
   The three numbers that put the first content row on one line: the same
   card padding, an explicit heading line-height (the qhelp mark inside a
   .kpi-label is 15px and would otherwise size that line box differently from
   an h2's), and 10px of air below the heading - .kpi-card's own column gap,
   which .prog-functions__head's margin is matched to here. */
.dashboard-row--thirds > .card { padding: 18px 22px; }
.dashboard-row--thirds .prog-functions__head { margin-bottom: 10px; }
.dashboard-row--thirds .prog-functions__head h2,
.dashboard-row--thirds .kpi-label {
  font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--navy);
  text-transform: none; letter-spacing: normal;
  /* TWO LINES, always. "Documentation vs implementation" does not fit on one
     line of a quarter-width card and "Where do we stand" does, so without a
     reservation the third card's content started 19px below the second's -
     the mismatch this section exists to remove. It is a line count, not a
     pixel height: it follows the font-size and line-height above, and it
     reserves rhythm rather than fixing the CARD, which is still exactly as
     tall as the row's tallest content. */
  min-height: 2.8em;
}
/* ⑧a §D dropped .dashboard-gaps and .dashboard-recent from this list with
   the two cards that wore them; 17.44.0 dropped .dashboard-conn2 with the
   connections panel, and .dashboard-col with the column that stacked the
   panel under the function bars. */
/* 17.47.0 (row-alignment feedback) — `display: flex` here is the other half
   of `stretch` above. A stretched card has to decide WHERE its extra height
   goes, or it goes under the last line as a void, which is the whole
   complaint. Each card is a flex column and its LIST is the one region
   allowed to grow: the ladder in the maturity card, the function bars in
   "By function", the failing rows in "Key measures". Not one height,
   min-height or max-height is declared — the row is still exactly as tall as
   its tallest card's content wants. */
.dashboard-fn {
  padding: 18px 22px;
  display: flex; flex-direction: column;
}
.dashboard-fn .hbars { flex: 1 1 auto; }
/* Flex items do NOT collapse margins. The heading's margin-bottom and each
   list's own margin-top used to overlap in a block card; the moment the card
   became a column they started adding up, which pushed the first content row
   of every one of these cards down by its own margin. The heading owns the
   rhythm, so the list drops its top margin - and the "no data yet" paragraph
   drops both, because a UA margin is nobody's rhythm. */
.dashboard-fn > .hbars { margin-top: 0; }
.dashboard-fn > p { margin: 0; }
.conn-mini { list-style: none; padding: 0; margin: 11px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }

/* 17.44.0 (feedback batch ③): the "Connections & automation" tile's whole
   family (.mach*, and the .conn-dot* traffic light it was the only caller
   of) went with the tile — the dashboard no longer carries a connector
   panel, and the Integrations page has always had its own. The two
   ≤640px blocks that tuned .mach for a phone went with it. */
/* The dashboard's one header action (16.54.0 §B). */
.page-header__act { display: flex; align-items: center; gap: 8px; flex: none; }

/* ── Start here: guided plan (16.21.0) ────────────────────────── */
.sh-card{padding:18px 22px;margin-bottom:14px}

/* 2026-10-16 (wave 10): the Start-here band (.shb*, .sh-here, .sh-bar) and its Not now / Hide controls (.sh-ctl, .sh-x)
   left the NIS2 dashboard in wave 4; their rules went with them. The welcome card below (.sh-card, .sh-chk*) is what is left. */
/* first-run checklist */
.sh-chk{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.sh-chki{display:flex;align-items:center;gap:12px;border:1px solid var(--medium-gray);border-radius:10px;padding:10px 14px}
.sh-chki.done{opacity:.62;background:var(--off-white)}
.sh-chkc{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none;
  border:2px solid var(--medium-gray);color:transparent;font-size:12px;font-weight:800}
.sh-chki.done .sh-chkc{background:var(--green);border-color:var(--green);color:#fff}
.sh-chkt{font-size:13px;font-weight:600;color:var(--navy)}
.sh-chkt small{display:block;font-size:11px;font-weight:400;color:var(--text-muted)}
.sh-chki .btn{margin-left:auto}
.sh-hint{font-size:11px;color:var(--text-muted);margin-top:10px}

/* ── maturity-levels ladder (16.14.0) ─────────────────────────── */
.matladder { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.matrow {
  position: relative;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--medium-gray); border-radius: 9px;
  background: var(--off-white); opacity: .62; transition: opacity .12s, box-shadow .12s;
}
.matrow.is-reached { opacity: 1; }
.matrow[data-tip] { cursor: help; }
/* richer hover explanation, anchored to the ROW'S OWN left edge rather than
   the viewport's - it used to open `right: calc(100% + 12px)`, i.e. into
   whatever sits to the left of the ladder, which at desktop width is the
   navy sidebar (Alex's screenshot: every level's tip painted over it). A
   left:0 box on a `position: relative` row can never start further left
   than the row itself, so it can never reach past the card's own edge.
   Opens BELOW by default; the last two rows flip it above, so the tip
   never spills out from under the card's own bottom edge. */
.matrow[data-tip]::after {
  /* 2026-09-13 (task 1): the tip is now two lines, "Documentation: …" and
     "Implementation: …", joined by a real \n in data-tip - pre-line is what
     turns that into two paragraphs instead of one run-on sentence. */
  content: attr(data-tip); white-space: pre-line; position: absolute;
  left: 0; right: auto; top: calc(100% + 8px); z-index: 40;
  width: 280px; max-width: calc(100% - 4px);
  background: var(--navy); color: #fff; font-size: 11px; line-height: 1.45; font-weight: 500;
  padding: 9px 11px; border-radius: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.20);
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
/* Exactly 5 fixed levels, always rendered 5→1 (docs/mockups): the last two
   in the DOM are levels 2 and 1, the rows closest to the card's bottom edge,
   so a tip opening below them would spill out of the card. Flipped above
   instead - still never past the card's left edge, same `left: 0`. */
.matrow[data-tip]:nth-last-child(-n+2)::after {
  top: auto; bottom: calc(100% + 8px);
}
.matrow[data-tip]:hover { opacity: 1; z-index: 41; }
.matrow[data-tip]:hover::after { opacity: 1; }
.matrow__lv {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--medium-gray);
  background: var(--white); border: 2px solid var(--medium-gray); font-variant-numeric: tabular-nums;
}
.matrow.is-reached .matrow__lv { color: #fff; background: var(--lvc); border-color: var(--lvc); }
.matrow__name { font-weight: 700; color: var(--navy); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.matrow__desc { display: block; font-size: 11px; color: var(--text-secondary); line-height: 1.35; margin: 1px 0 5px; }
.matrow__bar { display: block; height: 5px; border-radius: 3px; background: var(--medium-gray); overflow: hidden; }
.matrow__bar i { display: block; height: 100%; background: var(--lvc); border-radius: 3px; }
.matrow.is-current {
  opacity: 1; border-color: var(--lvc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lvc) 28%, transparent);
  background: var(--white);
}
.matrow__here {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--lvc); border-radius: 9px; padding: 1px 7px;
}
/* 2026-09-13 (task 1): small D/I badges on the row matching the current
   floored Documentation / Implementation level - independent of is-current,
   which still marks the floored BLENDED overall on its own row. */
.matrow__marks { display: inline-flex; gap: 3px; margin-left: 6px; }
.matrow__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 4px; font-size: 9px; font-weight: 800;
  color: #fff; line-height: 1; cursor: default;
}
.matrow__mark--doc { background: var(--navy); }
.matrow__mark--impl { background: var(--teal-dark); }

@media (max-width: 1100px) {
  .dashboard-row { grid-template-columns: 1fr; }
}

/* ── 16.2.0 scoring truth: provenance chips + scan headline tile ───── */
/* Source chips: ⚙ scan-derived / ✎ assessed / ◉ manual override. Sit next
   to implementation cells (dashboard function rows, scan tile label). */
.score-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 1.5;
  white-space: nowrap; vertical-align: middle; cursor: default;
}
.score-chip--scan     { background: #E8F1FD; color: #1B5CB8;            border: 1px solid #C7DCF7; }
.score-chip--assessed { background: #E0F5E9; color: var(--green-dark);  border: 1px solid #BDE5C9; }
.score-chip--override { background: #FFF5E0; color: #A35A00;            border: 1px solid #F6E2B8; }

/* Scan maturity tile — 5th headline card, rendered only when a scan exists */
@media (min-width: 1001px) {
  /* matches the .prog-summary breakpoint at max-width:1000px above */
}

/* Dashboard function rows gain D/I + chips columns (progress page keeps
   the shared 3-column .hbar layout untouched). 16.5.0: FIXED column
   widths — an auto column let each row's D/I+chips width squeeze the
   track differently, so bars/values/chips never lined up. */
/* 16.56.0 (⑦a §d): a SIXTH fixed column for the row's help mark. Same
   16.5.0 lesson as the D/I and chip columns - an inline mark inside
   .hbar__label would be eaten by that cell's ellipsis, and an auto column
   would let each row's mark sit at a different x. */
.dashboard-fn .hbar {
  grid-template-columns: 132px minmax(0, 1fr) 42px 84px 86px 16px;
  gap: 9px;
}
/* The whole label is the drill-down link into the Progress page's
   expandable detail; it must not read as a coloured link inside a row that
   is already carrying a coloured pill and a coloured bar. */
.hbar__link { color: inherit; display: inline; }
.hbar__link:hover { color: var(--teal); text-decoration: underline; }
.hbar__di {
  font-size: 11.5px; color: var(--text-secondary); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hbar__chips {
  display: flex; gap: 4px; align-items: center; white-space: nowrap;
}
@media (max-width: 1250px) {
  .dashboard-fn .hbar { grid-template-columns: 120px minmax(0, 1fr) 46px 92px 96px 16px; }
}

/* Assurance profiles — out-of-profile rows stay visible but muted */
.req--oop { opacity: 0.45; }
.req--oop .req__link { pointer-events: auto; }   /* still clickable → detail explains */
.req__oop-chip {
  font-size: 0.68rem; padding: 1px 7px; border-radius: 9px;
  background: #6b72801a; color: #6b7280; border: 1px solid #6b728055;
  text-transform: uppercase; letter-spacing: .03em;
}

/* docgen-v3 — template-class badges + gallery sections (Auto vs Describe) */
.tplgallery h2 { margin: 30px 0 6px; }
.tplgallery h2 + .subtle { margin: 0 0 14px; }
.tplbadge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; vertical-align: middle; margin-left: 6px;
}
.tplbadge--derived {
  background: var(--light-gray); color: var(--navy);
  border: 1px solid var(--medium-gray);
}
.tplbadge--narrative {
  background: #2a9d8f1f; color: var(--teal-dark);
  border: 1px solid #2a9d8f66;
}

/* ── 16.2.3: templates search slicer + findings measure pill ─────────── */
.tplsearch {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
}
.tplsearch input[type="search"] {
  flex: 1; max-width: 480px; padding: 9px 12px;
  border: 1px solid var(--medium-gray); border-radius: 8px;
  font-family: inherit; font-size: 14px;
}
.tplsearch input[type="search"]:focus {
  outline: none; border-color: var(--teal);
}
.measure-pill {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  background: #E0F5F2; color: var(--teal-dark);
  font-size: 11px; font-weight: 700;
}

/* ── 16.3.0: shared background-job progress card (jobs.js) ───────────── */
.job-card {
  background: var(--white); border: 1px solid var(--medium-gray);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0;
}
.job-card__msg { font-size: 13px; font-weight: 600; color: var(--navy); }
.job-card__bar {
  margin-top: 8px; background: var(--medium-gray);
  border-radius: 999px; height: 6px; overflow: hidden;
}
.job-card__fill {
  background: var(--teal); height: 100%; border-radius: 999px;
  transition: width 200ms ease;
}
.job-card__note { margin-top: 6px; font-size: 12px; color: var(--text-muted); }

/* ── 16.4.0: Import Docs — collapsible source cards + future mock-ups ── */
.conn-disclose > summary {
  list-style: none; cursor: pointer; position: relative;
  padding-right: 84px;   /* room for the Configure/Close affordance */
}
.conn-disclose > summary::-webkit-details-marker { display: none; }
.conn-summary__cta {
  position: absolute; top: 0; right: 0;
  font-size: 12px; font-weight: 600; color: var(--teal);
}
.conn-summary__cta::before { content: "Configure ▾"; }
.conn-disclose[open] > summary .conn-summary__cta::before { content: "Close ▴"; }
.conn-disclose[open] > summary { margin-bottom: 12px; }
.conn-disclose > summary:hover .conn-summary__cta { text-decoration: underline; }

.conn-card--soon { opacity: 0.62; }
.conn-card--soon .conn-card__title { color: var(--text-secondary); }
.conn-chip--soon {
  background: #EEF1F6; color: var(--text-muted);
  font-weight: 600; letter-spacing: 0.02em;
}

/* ── 16.4.1: control→template shortcut (requirement detail, Evidence card) ── */
.gen-evidence {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--medium-gray);
}
.gen-evidence__head {
  font-size: 13px; font-weight: 650; color: var(--navy); margin-bottom: 8px;
}
.gen-evidence__row { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-evidence__row .btn { text-align: left; }
.gen-evidence__mode { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ── 16.4.1: gallery cards — uniform height, chips collapse past 4 ── */
.tplcard__extra { display: contents; }
.tplcard__targets.is-collapsed .tplcard__extra { display: none; }
.tplchip--more {
  cursor: pointer; background: var(--white); color: var(--teal);
  border: 1px dashed var(--teal); font-family: inherit;
}
.tplchip--more:hover { background: var(--light-gray); }

/* ── 16.4.4 (G): branded stroke icons replace emoji ──────────────────── */
.ic { vertical-align: -2px; }
.btn .ic { margin-right: 2px; }
.score-chip .ic { vertical-align: -1px; }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  vertical-align: 0;
}
.dot--red   { background: #dc2626; }
.dot--amber { background: #d97706; }
.dot--green { background: #16a34a; }
/* 16.4.4: Overall-maturity card key/value rows (replaces wrapping prose) */

/* ── 16.32.0: dashboard KPI strip (one card = one question) ──────────
   Replaces the four .prog-summary tiles on index.html ONLY; the progress
   page keeps .prog-summary untouched. The three data colours below come
   from the approved mock and were validated for colour-vision deficiency
   against the card background - do not substitute brand greens/ambers. */
:root {
  --kpi-good: #1D7A3E;      /* assessed / on-target fill */
  --kpi-warn: #CE7A1E;      /* in progress */
}
/* 17.44.0 (feedback batch ③): .kpi-strip is gone. 2026-10-16 (wave 10): .kpi-card went too; what is left of this
   family is the key-measures tile's verdict / label / context / foot and the trend line in "Primul lucru". */

/* ── Key measures tile ──────────────────────────────────────────────
   One verdict, in the product's ok/crit tint pairs, because it reports a PASS
   or a FAIL and gold would be a third status colour. */

.kpi-verdict { font-size: 12.5px; line-height: 1.45; border-radius: 8px;
               padding: 8px 10px; }
.kpi-verdict--red   { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.kpi-verdict--amber { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.kpi-verdict--green { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }

.kpi-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 700;
}

.kpi-ctx { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
/* 16.36.0 trend line: a direction, not a verdict - muted by default, and
   coloured only when the posture actually moved. */
.kpi-delta {
  font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.kpi-delta--up   { color: var(--kpi-good); }
.kpi-delta--down { color: var(--kpi-warn); }

.kpi-foot {
  font-size: 12px; color: var(--text-muted); margin-top: auto;
  border-top: 1px dashed var(--medium-gray); padding-top: 8px;
}
.kpi-foot abbr {
  cursor: help; text-decoration: underline dotted; color: inherit;
}

/* 17.44.0 (feedback batch ③): the stacked coverage bar (.kpi-seg*) and its
   legend (.kpi-legend, .kpi-dot*) went with the "Assessment coverage" tile.
   The --kpi-good / --kpi-warn tokens stay: the trend line reads them. */

/* 17.44.0 (feedback batch ③): "What to do next" left the dashboard, and its whole family (.kpi-card--act, .kpi-act*,
   .kpi-acts*) with it. 2026-10-16 (wave 10): the dashboard-only KPI card family (.kpi-card, .kpi-two*, .kpi-keylist*,
   .kpi-dim*, .kpi-tbar*, .kpi-chip*, .kpi-hero*) and the Start-here band (.shb*) are gone; "Primul lucru" replaced them. */

/* ── 16.7.0 (E4): floating in-app assistant widget ───────────────────── */
/* app.css declares no other z-index (sticky sidebar sits at auto), so
   1000 puts the widget above every page surface. */
#opti-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1000; }
#opti-chat-launcher {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.35);
}
#opti-chat-launcher:hover { background: var(--assistant-hover); }
#opti-chat-launcher .ic { vertical-align: 0; }
#opti-chat-panel {
  position: absolute; right: 0; bottom: 68px;
  /* 16.7.1: 380px felt cramped (user feedback) - modest bump, still
     mobile-safe via the viewport max-width. */
  width: 460px; max-width: calc(100vw - 24px);
  max-height: 600px;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--medium-gray); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.22);
  overflow: hidden;
}
#opti-chat-panel[hidden] { display: none; }
/* 19.4.4 (phone): the page keeps room under its last line for the button (20px inset + 56px + a line of air), and
   assistant.js lifts or moves the button to wherever no control sits under it once the page is still. */
@media (max-width: 599.5px) {
  #opti-chat { bottom: calc(20px + var(--opti-chat-lift, 0px)); transition: bottom .18s ease, left .18s ease; }
  #opti-chat[data-side="left"] { right: auto; left: 20px; }
  #opti-chat[data-side="left"] #opti-chat-panel { right: auto; left: 0; }
  #opti-chat[data-side="left"] .opti-chat-back { right: auto; left: 68px; }
  #opti-chat[data-away] { opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  #opti-chat[data-away]:focus-within { opacity: 1; pointer-events: auto; }
}
@media (max-width: 599.5px) and (prefers-reduced-motion: reduce) { #opti-chat { transition: none; } }
.opti-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 12px;
  background: var(--navy); color: var(--white);
}
#opti-chat-title {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.opti-chat-head__actions {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.opti-chat-headbtn {
  border: 1px solid var(--text-on-dark-muted); border-radius: 6px;
  background: transparent; color: var(--text-on-dark-muted);
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 3px 8px; cursor: pointer;
}
.opti-chat-headbtn:hover { background: var(--assistant-hover); color: var(--white); }
.opti-chat-headbtn:focus-visible { outline-color: var(--focus-ring-on-dark); }
.opti-chat-headbtn--icon { display: inline-flex; align-items: center; padding: 4px; }
/* 17.16.0: the conversation picker. Drops between the head and the message
   pane; the pane keeps its own scroll, so the list is capped rather than
   allowed to push the composer off the panel. */
#opti-chat-history {
  max-height: 220px; overflow-y: auto; flex-shrink: 0;
  border-bottom: 1px solid var(--medium-gray); background: var(--white);
}
#opti-chat-history[hidden] { display: none; }
.opti-chat-histempty {
  margin: 0; padding: 14px 12px; font-size: 12px; color: var(--text-secondary);
}
.opti-chat-histrow {
  display: flex; align-items: stretch; gap: 6px;
  padding: 4px 8px 4px 4px;
  border-bottom: 1px solid var(--light-gray);
}
.opti-chat-histrow:last-child { border-bottom: none; }
.opti-chat-histopen {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  border: none; background: transparent; cursor: pointer;
  font: inherit; text-align: left; padding: 6px 8px; border-radius: 6px;
}
.opti-chat-histopen:hover { background: var(--off-white); }
.opti-chat-histtitle {
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.opti-chat-histmeta { font-size: 11px; color: var(--text-secondary); }
.opti-chat-histdel {
  flex-shrink: 0; align-self: center;
  border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); color: var(--text-secondary);
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 4px 8px; cursor: pointer;
}
.opti-chat-histdel:hover { border-color: var(--red); color: var(--red); }
#opti-chat-messages {
  /* min-height overrides the flex auto minimum so the pane scrolls inside
     the panel's max-height instead of pushing the form off the bottom. */
  flex: 1; min-height: 140px; overflow-y: auto;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: var(--off-white);
}
.opti-chat-msg {
  max-width: 85%; padding: 8px 11px; border-radius: 10px;
  font-size: 13px; line-height: 1.45; overflow-wrap: break-word;
}
.opti-chat-msg p { margin: 0 0 6px; }
.opti-chat-msg p:last-child { margin-bottom: 0; }
.opti-chat-msg ul { margin: 0 0 6px; padding-left: 18px; }
.opti-chat-msg ul:last-child { margin-bottom: 0; }
/* 16.8.1: linkified tenant paths - clean labels, brand accent, no GUID. */
.opti-chat-link {
  color: var(--navy); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; word-break: break-word;
}
.opti-chat-link:hover { color: var(--action-fill); }
.opti-chat-msg--user {
  align-self: flex-end; background: var(--navy); color: var(--white);
  border-bottom-right-radius: 3px;
}
.opti-chat-msg--assistant {
  align-self: flex-start; background: var(--white); color: var(--text-primary);
  border: 1px solid var(--medium-gray);
  border-bottom-left-radius: 3px;
}
/* Answer export: a quiet control under a FINISHED assistant answer. The
   assistant offers nothing and produces nothing - this is the widget's own
   affordance, so it reads as chrome rather than as part of the answer. */
.opti-chat-msgtools { margin-top: 6px; }
.opti-chat-dl {
  border: 1px solid var(--medium-gray); border-radius: 999px;
  background: var(--white); color: var(--text-secondary);
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 2px 9px; cursor: pointer;
}
.opti-chat-dl:hover { border-color: var(--action-fill); color: var(--action-fill); }
.opti-chat-dl:disabled { opacity: 0.55; cursor: default; }
.opti-chat-dots { display: inline-flex; gap: 4px; }
.opti-chat-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dark-gray);
  animation: opti-chat-pulse 1.1s infinite ease-in-out;
}
.opti-chat-dots i:nth-child(2) { animation-delay: 0.18s; }
.opti-chat-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes opti-chat-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  40%      { opacity: 1;    transform: translateY(-2px); }
}
#opti-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 12px 10px; background: var(--off-white);
}
#opti-chat-chips[hidden] { display: none; }
.opti-chat-chip {
  border: 1px dashed var(--action-fill); border-radius: 999px;
  background: var(--white); color: var(--action-fill);
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 10px; cursor: pointer; text-align: left;
}
.opti-chat-chip:hover { background: var(--light-gray); }
#opti-chat-form {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--medium-gray); background: var(--white);
}
#opti-chat-input {
  flex: 1; min-width: 0;
  border: 1px solid var(--medium-gray); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13px;
  color: var(--text-primary);
}
#opti-chat-input:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.25);
}
#opti-chat-input:disabled, #opti-chat-send:disabled { opacity: 0.55; cursor: default; }
#opti-chat-send {
  border: none; border-radius: 8px; cursor: pointer;
  background: var(--action-fill); color: var(--white);
  font: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 14px;
}
#opti-chat-send:hover:enabled { background: var(--action-hover); }

/* 16.10.0: sidebar language switch (EN / RO) */
.langswitch { display: flex; gap: 6px; margin-bottom: 8px; }
.langswitch__opt {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 7px; text-decoration: none;
  color: var(--sidebar-text); background: transparent;
  border: 1px solid var(--border-subtle);
}
.langswitch__opt:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.langswitch__opt.is-on { background: var(--brand-primary); color: #fff; border-color: transparent; }
.langswitch .flagsvg {
  width: 20px; height: 14px; border-radius: 2px; display: block; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.langswitch .flagsvg--txt {
  width: auto; height: auto; font-size: 10px; font-weight: 800;
  box-shadow: none; opacity: .8;
}
.langswitch__opt.is-on .flagsvg { box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.langswitch__code { line-height: 1; }

/* ── 16.33.0: Results page — triage / remediation plan / all findings ──
   Namespaced `rz-` so nothing here can leak into the other tables. The
   severity colours are the CVD-validated set introduced with the 16.32.0
   KPI strip; the `ok` slug is the synthetic "healthy" bucket (status
   Compliant), which the severity chips never filter. */
:root {
  /* 16.52.0: retuned onto the brand's tinted label pairs (skin spec §E).
     These variables are the single source for severity across Results, the
     Remediation register AND the calendar's overdue text, so changing them
     here is what moves all three onto the softened palette at once. */
  --rz-crit: var(--tint-crit-ink);  --rz-crit-soft: var(--tint-crit-bg);
  --rz-high: var(--tint-high-ink);  --rz-high-soft: var(--tint-high-bg);
  --rz-med:  var(--tint-med-ink);   --rz-med-soft:  var(--tint-med-bg);
  --rz-low:  var(--tint-sky-ink);   --rz-low-soft:  var(--tint-sky-bg);
  --rz-info: var(--tint-mute-ink);  --rz-info-soft: var(--tint-mute-bg);
  --rz-ok:   var(--tint-ok-ink);    --rz-ok-soft:   var(--tint-ok-bg);
  --rz-line: #E5E8EF;  --rz-track:     #EDF0F5;
}
.is-hidden { display: none !important; }

.rz-meta { color: var(--text-secondary); font-size: 13px; margin-top: 3px; }
.rz-meta b { color: var(--navy); font-weight: 650; }

/* 16.55.0 (⑥d §D): ONE toolbar row. Severity chips + search + the source
   dropdown + the matrix toggle + the view switch, in that reading order.
   It wraps rather than scrolls, so a narrow window loses nothing. */
.rz-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
/* 17.2.3: the severity chips gained a wrapper so the phone tier can keep
   them together as one scrolling row (docs/mobile_polish_spec.md §2). At
   this width the wrapper must not exist: `display: contents` generates no
   box at all, so the five chips stay direct flex children of the toolbar
   and every pixel of the desktop row is the pixel it was. The media block
   at the foot of this file is where it becomes a real element.
   Not `.rz-sevrow`: that was one of the three rows ⑥d collapsed into this
   toolbar (16.55.0), and the name is pinned as retired. */
.rz-sevs { display: contents; }
.rz-sev {
  border: 1px solid var(--medium-gray); background: var(--white);
  border-radius: 20px; padding: 4px 11px; font: inherit; font-size: 12px;
  font-weight: 650; cursor: pointer; color: var(--text-secondary);
  display: inline-flex; gap: 6px; align-items: center;
  font-variant-numeric: tabular-nums;
}
.rz-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rz-dot--crit { background: var(--rz-crit); } .rz-dot--high { background: var(--rz-high); }
.rz-dot--med  { background: var(--rz-med); }  .rz-dot--low  { background: var(--rz-low); }
.rz-dot--info { background: var(--rz-info); }
.rz-sev.is-on { border-color: currentColor; }
.rz-sev--crit.is-on { color: var(--rz-crit); background: var(--rz-crit-soft); }
.rz-sev--high.is-on { color: var(--rz-high); background: var(--rz-high-soft); }
.rz-sev--med.is-on  { color: var(--rz-med);  background: var(--rz-med-soft); }
.rz-sev--low.is-on  { color: var(--rz-low);  background: var(--rz-low-soft); }
.rz-sev--info.is-on { color: var(--rz-info); background: var(--rz-info-soft); }
.rz-sumline { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.rz-sumline b { color: var(--navy); }

.rz-vtoggle { display: inline-flex; border: 1px solid var(--medium-gray); border-radius: 8px; overflow: hidden; }
.rz-vtoggle button {
  padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 650;
  cursor: pointer; color: var(--text-secondary); background: var(--white); border: none;
}
.rz-vtoggle button.is-on { background: var(--teal); color: var(--white); }

.rz-search {
  flex: 1 1 200px; border: 1px solid var(--medium-gray); border-radius: 8px;
  background: var(--white); color: var(--text-primary); padding: 6px 11px;
  font: inherit; font-size: 13px;
}
.rz-search:focus { outline: none; border-color: var(--teal); }
/* The source filter: one <select> where seven chips used to sit. */
.rz-fsel {
  border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white);
  color: var(--text-secondary); padding: 6px 10px; font: inherit; font-size: 12.5px;
  max-width: 190px;
}
.rz-fsel:focus { outline: none; border-color: var(--teal); }
.rz-fchip {
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--text-secondary); border-radius: 8px; padding: 6px 11px;
  font: inherit; font-size: 12.5px; cursor: pointer;
}
.rz-fchip.is-on { border-color: var(--teal); color: var(--teal-dark); background: #E0F5F2; }
.rz-fchip--clear.is-on, .rz-fchip--clear { border-color: var(--rz-low); color: var(--navy); background: var(--rz-low-soft); }

/* Measures x severity matrix — every row is a filter.
   16.55.0 (⑥d §D): compact, and TINTED ONLY WHERE THERE IS SOMETHING. The
   full-column wash repeated what the column header already said while
   giving every zero the same visual weight as a real count; the tint now
   rides a chip around the number itself, and a zero is a faint dot. */
.rz-mxwrap { margin-bottom: 14px; }
.rz-matrix {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--rz-line); border-radius: 10px; overflow: hidden;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.rz-matrix th, .rz-matrix td { padding: 4px 8px; text-align: center; border-top: 1px solid var(--rz-line); }
.rz-matrix thead th {
  border-top: none; color: var(--text-muted); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.rz-matrix td:first-child, .rz-matrix th:first-child { text-align: left; }
.rz-matrix tbody tr { cursor: pointer; }
.rz-matrix tbody tr:hover td, .rz-matrix tbody tr.is-on td { background: var(--off-white); }
.rz-matrix tbody tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.rz-mname { font-weight: 600; color: var(--text-primary); }
.rz-z { color: var(--text-muted); }
.rz-n {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 4px;
  font-weight: 700;
}
.rz-n--crit { background: var(--rz-crit-soft); color: var(--rz-crit); }
.rz-n--high { background: var(--rz-high-soft); color: var(--rz-high); }
.rz-n--med  { background: var(--rz-med-soft);  color: var(--rz-med); }
.rz-n--low  { background: var(--rz-low-soft);  color: var(--rz-low); }
.rz-n--info { background: var(--rz-info-soft); color: var(--rz-info); }
.rz-n--ok   { background: transparent; color: var(--text-secondary); font-weight: 600; }
.rz-matrix tfoot td { font-weight: 700; background: var(--rz-track); cursor: pointer; }

/* Measure group / quiet group (native <details>, 16.28.2 idiom). */
.rz-grp {
  background: var(--white); border: 1px solid var(--rz-line); border-radius: 10px;
  margin-bottom: 14px; overflow: hidden;
}
.rz-grp > summary {
  list-style: none; cursor: pointer; padding: 12px 16px;
  display: flex; gap: 12px; align-items: baseline;
}
.rz-grp > summary::-webkit-details-marker { display: none; }
.rz-gname { font-weight: 650; font-size: 14.5px; color: var(--navy); }
.rz-gcounts { font-size: 12.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.rz-garrow { margin-left: auto; color: var(--text-muted); font-size: 12px; transition: transform .15s; }
.rz-grp[open] > summary .rz-garrow { transform: rotate(180deg); }
.rz-quiet { background: transparent; border-style: dashed; }
.rz-quiet > summary .rz-gname { color: var(--text-secondary); font-weight: 600; font-size: 13.5px; }
.rz-quiet .rz-frow > summary { padding-top: 8px; padding-bottom: 8px; }

/* ── 16.58.0 (⑦c §1): grouping ────────────────────────────────────────
   The toggle is a LINK pair (the grouping is a server-side render), so it
   borrows the .rz-vtoggle look without borrowing its markup. */
.rz-gsel { display: inline-flex; align-items: center; gap: 6px; }
.rz-glabel { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.rz-gopt {
  border: 1px solid var(--medium-gray); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 650; color: var(--text-secondary);
  background: var(--white); text-decoration: none;
}
.rz-gopt:hover { border-color: var(--teal); color: var(--teal-dark); }
.rz-gopt.is-on { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* A CyFun function's categories, INSIDE its (collapsed-by-default) group.
   A quiet band, not a second disclosure: two clicks to reach a finding is
   a filing cabinet, not a triage queue. */
.rz-sub + .rz-sub { border-top: 1px solid var(--rz-line); }
.rz-subhead {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 8px 16px; background: var(--off-white);
}
.rz-subhead b { font-size: 12.5px; font-weight: 650; color: var(--text-secondary); }
.rz-subnote { padding: 8px 16px; margin: 0; font-size: 12px; color: var(--text-secondary); }

/* ── 16.58.0 (⑦c §3): the embedded AI analysis ───────────────────────── */
.rz-aiquiet {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin: 18px 0 4px; padding: 10px 14px; border: 1px dashed var(--rz-line);
  border-radius: 10px; font-size: 12.5px; color: var(--text-secondary);
}
.rz-aihead { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.rz-aihead .section-title { margin-bottom: 0; }
.rz-aiact { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.rz-stale {
  margin: 8px 0 12px; padding: 8px 12px; font-size: 12.5px;
  border-left: 3px solid var(--rz-med); background: var(--rz-med-soft);
  color: var(--text-secondary); border-radius: 0 8px 8px 0;
}
/* 16.67.0 (⑧c §3): the embedded "the last run failed" line. Deliberately
   .rz-stale's shape in the CRITICAL tint rather than a card: this sits under
   a findings list, and a red card there would read as a finding. Inside the
   dashed .rz-aiquiet box it takes the whole row so the retry button beside
   it keeps its own line. */
.rz-aifail {
  flex: 1 1 100%;
  margin: 0 0 8px; padding: 8px 12px; font-size: 12.5px;
  border-left: 3px solid var(--rz-crit); background: var(--rz-crit-soft);
  color: var(--text-secondary); border-radius: 0 8px 8px 0;
}
.rz-aifail .ic { vertical-align: -2px; color: var(--rz-crit); }
.rz-planlink { margin: 12px 0; font-size: 13px; color: var(--text-secondary); }
.rz-grp--ai > summary { padding: 10px 16px; }
.ai-md--sect > summary { padding: 4px 0; }

/* ── 16.69.0 (⑧d §4): AI-rendered markdown ──────────────────────────────
   These rules were an inline <style> block at the foot of
   _ai_analysis_body.html. That partial was included by the standalone /ai
   page as well as by the embedded block on /results (16.71.0 retired the
   former), so the block was injected into Results as a second stylesheet
   on every render - and, being written
   before the reskin, it was painting the AI's own prose in the 16.52.0
   palette while the page around it had moved on. One copy, in the one
   stylesheet, on the tokens: a heading here is the same navy as a heading
   anywhere else, by construction rather than by luck. */
.ai-md__body h1, .ai-md__body h2, .ai-md__body h3 {
  margin: 14px 0 8px; color: var(--navy); font-weight: 700;
}
.ai-md__body h1 { font-size: 1.15em; }
.ai-md__body h2 { font-size: 1.05em; }
.ai-md__body h3 { font-size: 0.98em; }
.ai-md__body p { margin: 6px 0; line-height: 1.5; }
.ai-md__body ul, .ai-md__body ol { margin: 6px 0 6px 22px; }
.ai-md__body li { margin: 3px 0; line-height: 1.45; }
.ai-md__body table, .ai-md__body .md-table {
  border-collapse: collapse; margin: 10px 0; width: 100%;
  font-size: 0.92em; background: var(--white);
}
.ai-md__body th {
  background: var(--light-gray); border: 1px solid var(--medium-gray);
  padding: 8px 10px; text-align: left; font-weight: 600; color: var(--navy);
}
.ai-md__body td {
  border: 1px solid var(--medium-gray); padding: 7px 10px; vertical-align: top;
}
.ai-md__body tr:nth-child(even) td { background: var(--off-white); }
.ai-md__body code {
  background: var(--light-gray); padding: 1px 6px; border-radius: 4px;
  font-size: 0.9em; color: var(--navy);
}
.ai-md__body pre {
  background: var(--light-gray); padding: 10px; border-radius: 6px;
  overflow-x: auto; font-size: 0.88em;
}
.ai-md__body blockquote {
  border-left: 3px solid var(--teal); padding: 4px 12px; margin: 8px 0;
  color: var(--text-secondary); background: var(--tint-ok-bg);
}
.ai-md__body strong { color: var(--navy); }

.ai-md--measure summary { padding: 4px 0; }

/* ── 16.55.0 (⑥d §B): the shared list-row type system ──────────────────
   One rule for every list row on the product: the title is near-black
   13.5px/600 clamped to two lines, the meta line is 11.5px muted, and the
   left status bar is 3px. BOLD NAVY IS RESERVED FOR PAGE AND PANEL
   HEADINGS from here on - when 44 rows shouted in navy, the headings that
   organise them stopped being findable, which is the whole complaint.
   The clamp lives on an inner span so it cannot swallow the meta line. */
.rz-t, .rr-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Finding rows. */
.rz-frow { border-top: 1px solid var(--rz-line); }
.rz-frow > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 9px 16px 9px 12px;
}
.rz-frow > summary::-webkit-details-marker { display: none; }
.rz-stripe { width: 3px; height: 26px; border-radius: 2px; background: var(--rz-info); }
.rz-stripe--crit { background: var(--rz-crit); } .rz-stripe--high { background: var(--rz-high); }
.rz-stripe--med { background: var(--rz-med); }   .rz-stripe--low  { background: var(--rz-low); }
.rz-stripe--ok  { background: var(--rz-ok); }
.rz-ft { font-size: 13.5px; font-weight: 600; color: var(--text-primary); min-width: 0; line-height: 1.35; }
.rz-ft small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; margin-top: 1px; }
.rz-fright {
  display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap;
}
.rz-tag {
  font-size: 11.5px; font-weight: 600; padding: 2.5px 10px; border-radius: 6px;
  white-space: nowrap;
}
/* 16.55.0: .rz-tag--src and .rz-tag--effort are gone with the boxes they
   styled - source and effort are plain text in the meta line now. */
.rz-tag--crit { background: var(--rz-crit-soft); color: var(--rz-crit); }
.rz-tag--high { background: var(--rz-high-soft); color: var(--rz-high); }
.rz-tag--med  { background: var(--rz-med-soft);  color: var(--rz-med); }
.rz-tag--low  { background: var(--rz-low-soft);  color: var(--rz-low); }
.rz-tag--info { background: var(--rz-info-soft); color: var(--rz-info); }
.rz-tag--ok   { background: var(--rz-ok-soft);   color: var(--rz-ok); }
.rz-qw {
  font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 20px;
  background: var(--rz-ok-soft); color: var(--rz-ok); white-space: nowrap;
}

/* The gap readout is on the COLLAPSED row: triage without a single click.
   It is a grid item of the summary, spanning from the title column to the
   end so it sits under the title rather than beside the tags. */
.rz-gapline {
  grid-column: 2 / -1; font-size: 12px; color: var(--text-secondary);
  margin-top: -2px; line-height: 1.4;
}
.rz-now { color: var(--rz-crit); font-weight: 650; }
.rz-want { color: var(--rz-ok); font-weight: 650; }
.rz-arr { color: var(--text-muted); padding: 0 4px; }

.rz-fbody { padding: 4px 16px 16px 28px; display: grid; gap: 12px; font-size: 13.5px; }
.rz-fbody p { margin: 0; color: var(--text-secondary); max-width: 72ch; }
.rz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.rz-cell { border: 1px solid var(--rz-line); border-radius: 8px; padding: 8px 12px; }
.rz-k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 2px;
}
.rz-cell--now .rz-v { color: var(--rz-crit); font-weight: 650; }
.rz-cell--want .rz-v { color: var(--rz-ok); font-weight: 650; }
.rz-fix { background: #E0F5F2; border-radius: 8px; padding: 10px 14px; max-width: 640px; color: var(--navy); }
.rz-fix .rz-k { color: var(--teal-dark); }
.rz-flinks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.rz-flinks a { color: var(--teal-dark); font-weight: 650; }
.rz-art { color: var(--text-muted); }

/* 16.71.0 (⑦k §1): the LLM's per-finding detail, on the expanded plan row.
   Deliberately quieter than .rz-fix beside it: the recommendation is the
   scanner's own finding, this is generated advice about it. Same box idiom,
   neutral fill, one navy edge - not a second accent colour. */
.rz-aistep {
  background: var(--light-gray); border-left: 3px solid var(--navy);
  border-radius: 8px; padding: 10px 14px; max-width: 640px;
  display: grid; gap: 8px;
}
.rz-aistep .rz-k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--navy); }
.rz-aistale { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.rz-aistale code { font-size: 11px; }
.rz-aistep ol { margin: 0; padding-left: 20px; color: var(--text-secondary); display: grid; gap: 4px; }
.rz-aimeta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); }
.rz-aimeta b { color: var(--navy); font-weight: 650; }

/* Remediation phases — severity-tinted bands. */
.rz-phase {
  border-radius: 10px; border: 1px solid var(--rz-line); background: var(--white);
  margin-bottom: 14px; overflow: hidden;
}
.rz-ph { display: flex; gap: 12px; align-items: baseline; padding: 11px 16px; flex-wrap: wrap; }
.rz-ph-empty { padding: 10px 16px; font-size: 12.5px; color: var(--text-secondary); }
.rz-ph b { font-size: 13.5px; color: var(--navy); }
.rz-phase--crit .rz-ph { background: var(--rz-crit-soft); } .rz-phase--crit .rz-ph b { color: var(--rz-crit); }
.rz-phase--high .rz-ph { background: var(--rz-high-soft); } .rz-phase--high .rz-ph b { color: var(--rz-high); }
.rz-phase--med  .rz-ph { background: var(--rz-med-soft); }  .rz-phase--med  .rz-ph b { color: var(--rz-med); }
.rz-phase--low  .rz-ph { background: var(--rz-low-soft); }  .rz-phase--low  .rz-ph b { color: var(--rz-low); }
.rz-win {
  font-size: 12px; color: var(--text-secondary); margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* All-findings table — sortable, same filters. */
.rz-alltab {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--rz-line); font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.rz-alltab th, .rz-alltab td { padding: 7px 10px; border-top: 1px solid var(--rz-line); text-align: left; }
.rz-alltab thead th {
  border-top: none; color: var(--text-muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  white-space: nowrap; user-select: none;
}
.rz-alltab thead th[data-sort-dir="asc"]::after  { content: " ▴"; }
.rz-alltab thead th[data-sort-dir="desc"]::after { content: " ▾"; }
.rz-alltab tbody tr:hover td { background: var(--off-white); }
.rz-cx { color: var(--text-secondary); }

.rz-empty { color: var(--text-secondary); padding: 18px 2px; font-size: 13.5px; }

/* ── 16.37.0: Remediation register ─────────────────────────────────────
   Namespaced `rr-` and built on the SAME severity variables the Results
   redesign defines above (--rz-crit …): one gap has one colour wherever it
   is rendered. The register adds two ideas Results has no use for — an
   accepted-risk note (violet, the only non-severity accent on the page) and
   a provenance timeline whose dots say who acted: grey a human, teal a
   scan, red a regression. */
:root {
  --rr-acc: #5B4FB3;  --rr-acc-soft: #ECEAF7;
}

.rr-meta { color: var(--text-secondary); font-size: 13px; margin-top: 3px; }
.rr-meta b { color: var(--navy); font-weight: 650; }
.rr-record-scope { margin-bottom: 16px; padding: 12px 16px; border-left: 3px solid var(--green);
  background: var(--off-white); border-radius: 6px; overflow-wrap: anywhere; }
.rr-record-scope p { margin: 0 0 6px; }
.rr-record-scope a { display: inline-block; margin-top: 2px; }

/* Status chips = the summary AND the filter. */
.rr-strow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rr-st {
  border: 1px solid var(--medium-gray); background: var(--white);
  border-radius: 20px; padding: 5px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.rr-st.is-on { border-color: var(--teal); color: var(--teal-dark); background: #E0F5F2; }
.rr-st--over { color: var(--rz-crit); }
.rr-st--over.is-on {
  border-color: var(--rz-crit); background: var(--rz-crit-soft); color: var(--rz-crit);
}
.rr-sumline { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.rr-sumline b { color: var(--navy); }

.rr-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rr-search {
  flex: 1 1 220px; border: 1px solid var(--medium-gray); border-radius: 8px;
  background: var(--white); color: var(--navy); padding: 7px 12px; font-size: 13.5px;
}
.rr-search:focus { outline: none; border-color: var(--teal); }
.rr-fsel {
  border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white);
  color: var(--text-secondary); padding: 7px 12px; font-size: 13px;
}

/* Item rows — native <details>, same idiom as the Results finding rows. */
.rr-item {
  background: var(--white); border: 1px solid var(--rz-line); border-radius: 10px;
  margin-bottom: 10px; overflow: hidden;
}
/* 16.55.0 (⑥d §B+§C): three columns, not six. The right-hand cells are
   CONDITIONAL now - no owner, no due chip layout to reserve - so they live
   in one flex group that simply renders what is true. */
.rr-item > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  gap: 10px; align-items: baseline; padding: 9px 16px 9px 12px;
}
.rr-item > summary::-webkit-details-marker { display: none; }
.rr-stripe { width: 3px; height: 30px; border-radius: 2px; background: var(--rz-info); }
.rr-stripe--crit { background: var(--rz-crit); } .rr-stripe--high { background: var(--rz-high); }
.rr-stripe--med { background: var(--rz-med); }   .rr-stripe--low  { background: var(--rz-low); }
.rr-stripe--info { background: var(--rz-info); } .rr-stripe--ok   { background: var(--rz-ok); }
.rr-it { font-size: 13.5px; font-weight: 600; color: var(--text-primary); min-width: 0; line-height: 1.35; }
.rr-it small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; margin-top: 1px; }
.rr-right { display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap; }
/* The enumeration the row title dropped: still evidence, one click away. */
.rr-more { color: var(--teal-dark); font-weight: 650; font-size: 12.5px; white-space: nowrap; }
.rr-enum { font-size: 12px; color: var(--text-secondary); line-height: 1.55; max-width: 92ch; }

.rr-pill {
  font-size: 11.5px; font-weight: 600; padding: 2.5px 10px; border-radius: 6px;
  white-space: nowrap;
}
/* No .rr-pill--open: "Open gap" is the left bar plus the header count, never
   a per-row chip (16.55.0, ⑥d §C). The three that remain are all states
   somebody CHOSE. */
.rr-pill--prog { background: var(--tint-sky-bg); color: var(--tint-sky-ink); }
.rr-pill--acc  { background: var(--rr-acc-soft); color: var(--rr-acc); }
.rr-pill--res  { background: var(--rz-ok-soft); color: var(--rz-ok); }

/* An owner renders ONLY when there is one (16.55.0): the italic
   "unassigned" was the same six characters on 44 rows and told nobody
   anything the empty space does not. */
.rr-owner {
  font-size: 12px; color: var(--text-secondary); display: inline-flex;
  gap: 6px; align-items: center; white-space: nowrap;
}
.rr-owner i {
  width: 18px; height: 18px; border-radius: 50%; background: #E0F5F2;
  color: var(--teal-dark); font-style: normal; font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.rr-due {
  font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Overdue is the one date that earns colour: someone promised and missed. */
.rr-due--over { color: var(--rz-crit); font-weight: 700; }
.rr-reg {
  font-size: 11px; font-weight: 700; color: var(--rz-high);
  background: var(--rz-high-soft); border-radius: 20px; padding: 1px 8px;
  white-space: nowrap;
}

.rr-body { padding: 4px 16px 16px 28px; display: grid; gap: 12px; font-size: 13.5px; }
.rr-gapline { font-size: 12.5px; color: var(--text-secondary); }
.rr-now { color: var(--rz-crit); font-weight: 650; }
.rr-want { color: var(--rz-ok); font-weight: 650; }
.rr-arr { color: var(--text-muted); padding: 0 4px; }

/* Provenance timeline — the item's whole life, dot-coded by who acted. */
.rr-tl {
  display: flex; flex-direction: column; gap: 6px;
  border-left: 2px solid var(--rz-line); padding-left: 14px; margin-left: 4px;
}
.rr-tl > div { font-size: 12.5px; color: var(--text-secondary); position: relative; }
.rr-tl > div::before {
  content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--text-muted);
}
.rr-tl > div.ev--auto::before { background: var(--teal); }
.rr-tl > div.ev--bad::before { background: var(--rz-crit); }
.rr-tl b { color: var(--navy); }

.rr-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.rr-links a { color: var(--teal-dark); font-weight: 650; }

.rr-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rr-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.rr-form--wide { flex: 0 1 320px; }
.rr-btn {
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--text-secondary); border-radius: 8px; padding: 6px 13px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.rr-btn--p { background: var(--teal); border-color: var(--teal); color: var(--white); }
.rr-in {
  border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white);
  color: var(--navy); padding: 5px 10px; font-size: 12.5px; min-width: 0;
}
.rr-form--wide .rr-in { flex: 1 1 auto; }

.rr-accnote {
  background: var(--rr-acc-soft); border-radius: 8px; padding: 9px 13px;
  font-size: 12.5px; color: var(--text-secondary);
}
.rr-accnote b { color: var(--rr-acc); }
.rr-accept {
  background: var(--off-white); border: 1px solid var(--rz-line);
  border-radius: 8px; padding: 12px 14px; max-width: 560px;
}
.rr-accept-form { display: grid; gap: 10px; margin: 0; }
.rr-lbl {
  display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: var(--navy);
}
.rr-lbl textarea, .rr-lbl input, .rr-lbl select {
  border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white);
  color: var(--navy); padding: 7px 10px; font-size: 13px; font-weight: 400;
  font-family: inherit; width: 100%;
}
.rr-hint { margin: 0; font-size: 12px; color: var(--text-muted); }
/* 2026-10-04: the accept panel's optional approval block. */
.rr-approval { display: grid; gap: 10px; margin: 0; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--rz-line); border-radius: 8px; }
.rr-approval legend { padding: 0 4px; font-size: 12px; font-weight: 650; color: var(--navy); }

/* ── 16.69.0 (⑧d §2): the group family is .rz-grp, once ─────────────────
   The register carried a complete second copy of the Results disclosure:
   .rr-grp (dashed + transparent) for the resolved archive, .rr-grp--q
   (solid + white + a loud name) for the queue, and .rr-sub/.rr-subhead for
   the category band inside a group - which is the point at which "the same
   shape as the Results sub-band" stopped being a comment and became a
   convergence override maintained by hand.
   All four are the rz- family's existing states: .rz-grp is the solid one,
   .rz-grp + .rz-quiet is the dashed one, .rz-sub/.rz-subhead is the band.
   What survives here is the two rules that are genuinely the register's,
   because they are about the register's OWN children (.rr-item, .rr-stripe)
   and can therefore never reach a Results group. */
.rz-grp .rr-item { border-radius: 8px; margin: 8px 12px; }
/* The worst-severity stripe on a group header: taller than a text baseline,
   so it centres itself rather than dragging the summary's alignment (and
   with it every Results group) off baseline. */
.rz-grp > summary .rr-stripe { height: 20px; flex: 0 0 auto; align-self: center; }

.rr-empty { color: var(--text-secondary); padding: 18px 2px; font-size: 13.5px; }

/* The Results plan-view "Tracked" chip: muted on purpose — it is provenance,
   not a call to action, and the row's own severity must stay the loudest
   thing on the line. */
.rz-trk {
  font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 20px;
  background: var(--rz-track); color: var(--text-secondary); white-space: nowrap;
  text-decoration: none;
}
.rz-trk:hover, .rz-trk:focus-visible { color: var(--teal-dark); }
.rz-trk--over { background: var(--rz-crit-soft); color: var(--rz-crit); }

/* ── Audit binder (16.39.0) ─────────────────────────────────────────────
   The contents list is a promise: every line is a folder the zip really
   carries (the counts come straight from the binder manifest), so it reads
   as a checklist rather than as marketing. */
.binder-contents {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 18px; font-size: 13px; color: var(--text-secondary);
}
.binder-contents li { position: relative; padding-left: 16px; }
.binder-contents li.is-missing { color: var(--text-secondary); }
.binder-contents li.is-missing::before { content: "○"; color: var(--text-secondary); }
.binder-contents li.is-missing a { font-weight: 600; }
.binder-contents li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--teal-dark); font-weight: 700;
}
.binder-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 14px;
}
.binder-baseline {
  display: inline-flex; gap: 7px; align-items: center;
  font-size: 13px; color: var(--text-secondary);
}
.binder-baseline select {
  font-size: 13px; padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--medium-gray); background: var(--white);
  color: var(--navy);
}

/* ── Audit: "From the auditor" — the questionnaire fill (16.40.0) ────────
   The colour grammar carries the non-negotiable: an answered slot is green,
   a slot still waiting on a human is neutral, and a slot the platform CANNOT
   answer is amber with an empty box. Amber is louder than neutral on
   purpose — those are the ones a reviewer must not skim past. */
.af-msg p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.af-msg--bad  { border-left: 3px solid var(--red); }
.af-msg--warn { border-left: 3px solid var(--amber); }

.af-drop-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.af-drop {
  flex: 1 1 320px; display: block; cursor: pointer; text-align: center;
  border: 2px dashed var(--medium-gray); border-radius: 10px; padding: 20px;
  color: var(--text-secondary); font-size: 13.5px;
}
.af-drop:hover, .af-drop.is-over {
  border-color: var(--teal); background: var(--off-white);
}
.af-drop b { display: block; font-size: 14.5px; color: var(--text-primary); margin-bottom: 3px; }
.af-drop span { display: block; max-width: 62ch; margin: 0 auto; }
.af-drop small { display: block; margin-top: 6px; color: var(--text-muted); }
/* The whole card is the picker: the bare input would be a second, uglier one. */
.af-drop input[type="file"] { position: absolute; width: 1px; height: 1px;
  opacity: 0; overflow: hidden; }

.af-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.af-name { font-weight: 650; font-size: 14.5px; }
/* 16.41.0 — the Word half says beta on the card and again above the download
   button. A format that can surprise a tenant must not do it quietly. */
.af-beta {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  color: var(--amber); border: 1px solid var(--amber); background: #FFF8E7;
}
.af-note {
  margin: 8px 0 0; font-size: 12.5px; color: var(--text-secondary);
  max-width: 78ch;
}
.af-note--beta { border-left: 3px solid var(--amber); padding-left: 10px; }
.af-meta { font-size: 12.5px; color: var(--text-muted); }
.af-right { margin-left: auto; }
.af-bar {
  height: 8px; background: var(--medium-gray); border-radius: 4px;
  margin: 10px 0 4px; overflow: hidden;
}
.af-bar span { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.af-stats { font-size: 12.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.af-stats b { color: var(--text-primary); }
.af-nodata { color: var(--amber); font-weight: 600; }

.af-slot {
  border: 1px solid var(--medium-gray); border-radius: 10px;
  margin-top: 12px; overflow: hidden;
}
.af-slot--accepted, .af-slot--edited, .af-slot--user_written {
  border-color: var(--green);
}
.af-slot--no_data { border-color: var(--amber); }
.af-where {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 700; padding: 8px 14px 0;
}
.af-q { font-size: 13.5px; font-weight: 600; padding: 2px 14px 8px; }
.af-a {
  display: block; width: calc(100% - 28px); margin: 0 14px 10px;
  padding: 10px 13px; border-radius: 8px; font-size: 13.5px;
  font-family: inherit; line-height: 1.45; color: var(--text-primary);
  border: 1px solid transparent; background: #E8F4F2; resize: vertical;
}
.af-a:focus { outline: none; border-color: var(--teal); background: var(--white); }
.af-slot--accepted .af-a, .af-slot--edited .af-a,
.af-slot--user_written .af-a { background: #E8F5E9; }
.af-slot--skipped .af-a { background: var(--light-gray); color: var(--text-secondary); }
.af-a--none {
  background: #FDF3E7; color: var(--text-secondary); font-style: italic;
  border: 0; padding: 10px 13px;
}
.af-a--write { background: var(--white); border-color: var(--amber); }
.af-slot.is-dirty .af-a { background: var(--white); border-color: var(--teal); }

.af-src { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.af-chip {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  background: var(--medium-gray); color: var(--text-secondary);
}
.af-chip--document { background: #E8F4F2; color: var(--teal-dark); }
.af-chip--scan     { background: #E8F5E9; color: var(--green-dark); }
.af-chip--evidence { background: #EAF3FB; color: #2C6CA8; }
.af-chip--none     { background: #FDF3E7; color: #B3641A; }

.af-acts { display: flex; gap: 8px; padding: 0 14px 12px; align-items: center;
  flex-wrap: wrap; }
.af-acts .btn { padding: 5px 12px; font-size: 12.5px; }
.af-state { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.af-state--ok    { color: var(--green-dark); }
.af-state--pend  { color: var(--text-muted); }
.af-state--skip  { color: var(--text-secondary); font-weight: 600; }
.af-state--needs { color: #B3641A; }

.af-apply {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--medium-gray);
}
.af-check {
  font-size: 13px; color: var(--text-secondary);
  display: inline-flex; gap: 7px; align-items: center;
}
.af-delete { margin-top: 10px; }
.af-delete .btn { font-size: 12px; padding: 4px 10px; color: var(--text-muted); }

/* ── 16.50.0: Compliance calendar ──────────────────────────────────────
   Four card bands, one row per dated obligation, per the approved Arc 4
   mock. The row is chip · title with its inline source · right-aligned
   when. Bands are never hidden by the filter chips — only their rows are,
   and the header count follows (calendar.js). */
.cal-meta { color: var(--text-secondary); font-size: 13px; margin-top: 3px; }

.cal-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-fchip {
  border: 1px solid var(--medium-gray); background: #fff; cursor: pointer;
  border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); font-family: inherit;
}
.cal-fchip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

.cal-band {
  background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px;
  margin-bottom: 14px; overflow: hidden;
}
.cal-bhead {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--medium-gray);
}
.cal-bhead h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.cal-bcount {
  background: var(--light-gray); border-radius: 10px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
}
/* An empty Overdue band is the good news, so the heading is loud either way. */
.cal-band--overdue .cal-bhead h2 { color: var(--rz-crit); }

.cal-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--light-gray);
}
.cal-row:last-child { border-bottom: none; }
.cal-title { font-size: 13.5px; min-width: 0; }
.cal-title a { color: var(--navy); border-bottom: 1px dotted var(--medium-gray); }
.cal-title a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.cal-src { font-size: 11px; color: var(--text-muted); }
.cal-src::before { content: "· "; }
.cal-when {
  margin-left: auto; font-size: 12px; color: var(--text-secondary);
  white-space: nowrap;
}
.cal-when--over { color: var(--rz-crit); font-weight: 700; }

/* 16.52.0: the kind chips joined the one label system (skin spec §E) -
   tinted, sentence case, same metrics as .pill. A calendar is read as a
   list, and six solid colours down the left edge read as six alarms. */
.cal-chip {
  flex: 0 0 auto; border-radius: 6px; padding: 2.5px 10px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
/* 17.41.0: an unfiled DNSC filing. Crit, and it is the only DERIVED kind
   that gets the loud end of the palette: every other row on this page is a
   date the organisation set itself, and this one is a date the law set. */
.cal-chip--inc { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.cal-chip--doc { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
/* 17.4.3: "source changed" is a document row that is NOT a cadence falling
   due, so it reads warmer than a review and calmer than remediation. */
.cal-chip--srcchg { background: var(--tint-med-bg); color: var(--tint-med-ink); }
/* 17.6.0: the proof ledger's due dates. Sky, so a month with both reads as
   two colours rather than two shades of amber. */
.cal-chip--proof { background: var(--tint-sky-bg); color: var(--tint-sky-ink); }
.cal-chip--rr  { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.cal-chip--ev  { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
/* 16.51.0: the three custom kinds. Deliberately the calmest colours on the
   page - a date somebody typed is not an alarm, and the derived rows have to
   keep the loud end of the palette. */
.cal-chip--audit    { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.cal-chip--training { background: var(--tint-sky-bg);  color: var(--tint-sky-ink); }
.cal-chip--other    { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
/* 2026-10-10 (round 2, lane L): a supplier's periodic review. Navy, the pair
   of the "Audits & training" chip group it filters with - the seven tint pairs
   are all in use, and a review of a third party is read with the audits. */
.cal-chip--sup { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }

.cal-none {
  margin: 0; padding: 12px 16px; font-size: 12.5px; font-style: italic;
  color: var(--text-muted);
}

/* ── 16.51.0: custom events + the ICS subscription box ──────────────────
   Both are secondary to the four bands: the add form is folded away behind
   a summary, and the subscribe card sits after everything, because the
   common visit to this page is a read. */
.cal-add { margin-bottom: 14px; }
.cal-add-toggle {
  display: inline-block; cursor: pointer; font-size: 12.5px; font-weight: 600;
  color: var(--teal-dark); list-style: none; padding: 2px 0;
}
.cal-add-toggle::-webkit-details-marker { display: none; }
.cal-add-toggle:hover { text-decoration: underline; }
.cal-add-form {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end;
  background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px;
  padding: 14px 16px; margin-top: 8px;
}
.cal-fld { display: flex; flex-direction: column; gap: 4px; }
.cal-fld > span { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.cal-fld input, .cal-fld select {
  border: 1px solid var(--medium-gray); border-radius: 6px; padding: 5px 8px;
  font-size: 13px; font-family: inherit; color: var(--text-primary);
}
.cal-fld--wide { flex: 1 1 260px; }
.cal-fld--wide input { width: 100%; }
.cal-check {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--text-secondary); padding-bottom: 5px;
}

/* The delete affordance exists only on rows this page owns, so it stays
   quiet until the row is hovered - a permanent × on every custom row would
   read as the point of the row. */
.cal-del { margin: 0; line-height: 0; }
.cal-del-btn {
  border: none; background: none; cursor: pointer; font-size: 16px;
  line-height: 1; padding: 0 2px; color: var(--medium-gray);
  font-family: inherit;
}
.cal-row:hover .cal-del-btn { color: var(--text-muted); }
.cal-del-btn:hover { color: var(--rz-crit); }

/* 16.57.0 (⑦b §2): the box moved from under the four bands to the top of
   the page and became a disclosure - closed it is one quiet line, so
   promoting it costs the reader nothing. `margin-top` went with the move. */
.cal-sub {
  background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 12px;
}
.cal-sub-toggle { cursor: pointer; list-style: none; }
.cal-sub-toggle::-webkit-details-marker { display: none; }
.cal-sub-toggle::after { content: "▾"; margin-left: 6px; color: var(--text-muted); font-size: 11px; }
.cal-sub[open] > .cal-sub-toggle::after { content: "▴"; }
.cal-sub[open] > .cal-sub-toggle { margin-bottom: 8px; }
.cal-sub h2 { display: inline; margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.cal-sub-url {
  margin: 0 0 6px; padding: 8px 10px; background: var(--light-gray);
  border-radius: 6px; overflow-wrap: anywhere;
}
.cal-sub-url code { font-size: 12px; color: var(--navy); }
.cal-sub-once { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.cal-sub-warn { margin: 0 0 10px; font-size: 12px; color: var(--text-secondary); }

/* ── 16.62.0 (⑦f): the timeline view ───────────────────────────────────
   Everything here is positioned from a percentage the SERVER computed
   (services/calendar_timeline.py) and printed into a style="left:…%".
   The drawing stays absolute children of a relative track; the optional
   top scrollbar only measures the scroll container, never date positions. */

/* 16.69.0 (⑧d §2): the view switch WEARS .rz-gsel/.rz-gopt now instead of
   carrying a cal- copy of them. The copy said in its own comment that it
   "borrows the .rz-gopt look" - which is exactly the state two families are
   in the moment before they drift apart. */

.cal-tl {
  /* The label gutter, shared by the axis, every row and the gridline layer:
     one number, so the lines cannot drift off the dates they mark. */
  --tl-gutter: 290px;
  background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px;
  overflow: hidden;
}
.cal-tl-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--medium-gray);
}
.cal-tl-head h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.cal-tl-range { font-size: 11.5px; color: var(--text-muted); }
.cal-tl-head .cal-bcount { margin-left: auto; }

/* The PANEL scrolls sideways on a narrow screen, never the page. */
.cal-tl-scroll { overflow-x: auto; }
.cal-tl-inner { min-width: 1800px; padding: 0 16px 14px; }
.cal-tl-scroll-tools { border-bottom: 1px solid var(--medium-gray); }
.cal-tl-scroll-label {
  display: block; padding: 6px 16px 2px; font-size: 13px; color: var(--text-secondary);
}
.cal-tl-scroll-top {
  overflow-x: scroll; overflow-y: hidden; min-height: 24px;
  background: var(--light-gray); scrollbar-color: var(--text-muted) var(--light-gray);
}
.cal-tl-scroll-top > div { height: 1px; }
.cal-tl-scroll-top:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.cal-tl-axis, .cal-tl-row {
  display: grid; grid-template-columns: var(--tl-gutter) 1fr; align-items: center;
}
/* Two lines, not one: the today marker and a month tick can be four days
   apart, and on one line they overlap into an unreadable smear whenever the
   week happens to straddle a month boundary. */
.cal-tl-axis {
  height: 34px; border-bottom: 1px solid var(--medium-gray); background: #fff;
}
.cal-tl-track { position: relative; height: 100%; }
.cal-tl-tick, .cal-tl-now {
  position: absolute; font-size: 10.5px; white-space: nowrap;
  transform: translateX(-50%);
}
.cal-tl-tick { top: 3px; color: var(--text-muted); }
.cal-tl-now { top: 18px; color: var(--tint-crit-ink); font-weight: 700; }

.cal-tl-body { position: relative; padding-top: 4px; }
.cal-tl-lines {
  position: absolute; left: var(--tl-gutter); right: 0; top: 0; bottom: 0;
  pointer-events: none;
}
.cal-tl-line, .cal-tl-nowline {
  position: absolute; top: 0; bottom: 0; width: 1px;
}
.cal-tl-line { background: var(--light-gray); }
/* Today is the one line that is not a gridline, so it is the one line that
   is coloured - the softened alert red the rest of the product uses. */
.cal-tl-nowline { background: var(--tint-crit-ink); opacity: .55; width: 2px; }

.cal-tl-lane { position: relative; z-index: 1; padding: 6px 0 2px; }
.cal-tl-lhead { display: flex; align-items: center; gap: 6px; padding: 4px 0 2px; }
.cal-tl-lhead { position: sticky; left: 16px; width: var(--tl-gutter); background: #fff; z-index: 2; }

.cal-tl-row { min-height: 22px; }
/* Title first and elastic, the date pinned after it: a long document name
   must lose its tail rather than push the date it is due out of the row. */
.cal-tl-lbl {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  padding-right: 14px; font-size: 12.5px;
  position: sticky; left: 16px; z-index: 2; height: 100%; background: #fff;
  box-shadow: -16px 0 #fff; border-right: 1px solid var(--medium-gray);
}
.cal-tl-lbl a {
  color: var(--navy); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-tl-lbl a:hover { color: var(--teal-dark); }
.cal-tl-when {
  flex: 0 0 auto; margin-left: auto; font-size: 11px; color: var(--text-muted);
  white-space: nowrap;
}
.cal-tl-row .cal-tl-track { height: 22px; }

/* The mark: a short bar, not a duration - a calendar entry is a DAY, and a
   bar with a width would be inventing a range nobody recorded. */
.cal-tl-bar {
  position: absolute; top: 7px; left: 0; width: 9px; height: 9px;
  border-radius: 3px; transform: translateX(-50%);
  background: var(--tint-mute-ink); display: block;
}
.cal-tl-bar:hover { outline: 2px solid var(--teal); outline-offset: 1px; }
.cal-tl-bar--incident   { background: var(--tint-crit-ink); }
.cal-tl-bar--doc_review { background: var(--tint-ok-ink); }
.cal-tl-bar--source_changed { background: var(--tint-med-ink); }
.cal-tl-bar--proof      { background: var(--tint-sky-ink); }
.cal-tl-bar--supplier_review { background: var(--tint-navy-ink); }
.cal-tl-bar--register   { background: var(--tint-high-ink); }
.cal-tl-bar--evidence   { background: var(--tint-med-ink); }
.cal-tl-bar--audit      { background: var(--tint-navy-ink); }
.cal-tl-bar--training   { background: var(--tint-sky-ink); }
.cal-tl-bar--other      { background: var(--tint-mute-ink); }
/* Overdue outranks the kind colour: it is the one state on this page that
   means somebody already missed a date. Softened, per the skin spec. */
.cal-tl-bar.is-over { background: var(--tint-crit-ink); }
/* Pinned to an edge because its date is outside the window - drawn as a
   chevron so it never reads as a date that happens to fall exactly there. */
.cal-tl-bar.is-clamped { border-radius: 2px; width: 6px; opacity: .8; }

/* ── 16.52.0: Branding card (Settings) ─────────────────────────────────
   The preview sits on navy because that is the only background the logo
   will ever be seen against - a white-on-white preview would let an admin
   upload an invisible logo and only find out from the sidebar. */
.brandcard-preview {
  background: var(--brand-primary); border-radius: 8px;
  padding: 14px 16px; margin: 10px 0; display: flex; align-items: center;
}
.brandcard-preview img { max-width: 180px; max-height: 54px; height: auto; display: block; }
.brandcard-meta { font-size: 11.5px; color: var(--text-muted); margin: 0 0 10px; }
.brandcard-err {
  background: var(--tint-crit-bg); color: var(--tint-crit-ink);
  border-radius: 6px; padding: 8px 12px; font-size: 12.5px; font-weight: 600;
  margin: 0 0 10px;
}
.brandcard-forms { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.brandcard-forms form { margin: 0; }
/* 16.56.0 (⑦a §c): one extra line inside an existing card, divided from what
   is above it rather than boxed off from it — a setting, not a section. */
.set-line {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--medium-gray);
}
.set-line form { margin: 0; }
.set-line > .muted { flex: 1 1 200px; }

/* ═══════════════════════════════════════════════════════════════════════
   16.68.0 (⑦i) — the shared audit report
   ═══════════════════════════════════════════════════════════════════════
   Two audiences, one stylesheet. `.sh-*` is the Reports-hub card an admin
   uses (inside the shell, beside the binder and the fills); `.sr-*` is the
   two OUTSIDER pages — the mailbox gate and the frozen viewer — which have
   no shell around them at all and so have to bring their own page frame.
   They share this file rather than inlining their own because an auditor
   looking at a tenant's posture should be looking at the tenant's product,
   with the same type, the same pills and the same tints as everything else. */

/* ── The hub card ───────────────────────────────────────────────────── */
.sh-form { margin-top: 4px; }
.sh-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sh-field { flex: 1 1 260px; display: block; }
.sh-field--narrow { flex: 0 1 150px; }
.sh-label {
  display: block; font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.sh-field input, .sh-field select {
  width: 100%; padding: 7px 9px; font: inherit; font-size: 13px;
  border: 1px solid var(--medium-gray); border-radius: 6px;
  background: var(--white); color: var(--text-primary);
}
.sh-field input:disabled, .sh-field select:disabled { background: var(--light-gray); }
.sh-go { flex: 0 0 auto; }
.sh-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; }
.sh-sub { display: block; color: var(--text-secondary); font-size: 11.5px; margin-top: 2px; }
.sh-note {
  margin: 12px 0 0; padding: 8px 10px; font-size: 11.5px;
  color: var(--text-secondary); background: var(--light-gray);
  border: 1px dashed var(--medium-gray); border-radius: 6px;
}
.sh-list { list-style: none; margin: 6px 0 0; padding: 0; }
.sh-item {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--light-gray); font-size: 13px;
}
.sh-item__who { flex: 1 1 240px; min-width: 0; }
.sh-item__sub, .sh-item__exp { display: block; font-size: 11.5px; color: var(--text-secondary); }
.sh-item__exp { flex: 0 0 auto; }
.sh-item form { margin: 0; }
.sh-revoke { color: var(--red); border: 1px solid var(--tint-crit-bg); background: var(--white); }
.sh-revoke:hover { background: var(--tint-crit-bg); }

/* ── The outsider pages ─────────────────────────────────────────────── */
.sr-body { background: var(--light-gray); padding: 0 0 48px; }
.sr-page { max-width: 1080px; margin: 26px auto; padding: 0 14px; }

/* The gate (mock S2): one narrow card, centred, and nothing else on the
   page — every pixel of chrome would be a pixel of information about a
   tenant, handed to whoever typed an address in. */
.sr-gate {
  max-width: 460px; margin: 12vh auto; background: var(--white);
  border-radius: 12px; padding: 28px; text-align: center;
  box-shadow: 0 8px 30px rgba(0, 31, 91, .14);
}
.sr-gate__brand {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy); font-size: 14px; margin-bottom: 4px;
}
.sr-gate__sub, .sr-gate__sent { color: var(--text-secondary); font-size: 12.5px; margin: 0 0 16px; }
.sr-gate__form { margin: 18px 0 0; text-align: left; }
.sr-gate__label {
  display: block; font-family: var(--font-display); font-size: 11.5px;
  font-weight: 600; color: var(--navy); margin: 10px 0 4px;
}
.sr-gate__input {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 13px;
  border: 1px solid var(--medium-gray); border-radius: 6px; background: var(--white);
}
.sr-gate__input--code {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: 8px; text-align: center; color: var(--navy);
}
.sr-gate__btn { width: 100%; margin-top: 14px; justify-content: center; }
.sr-gate__again { margin: 10px 0 0; }
.sr-gate__link {
  background: none; border: none; padding: 0; font: inherit; font-size: 12px;
  color: var(--navy); text-decoration: underline; cursor: pointer;
}
.sr-note {
  margin: 16px 0 0; padding: 8px 10px; text-align: left; font-size: 11.5px;
  color: var(--text-secondary); background: var(--light-gray);
  border: 1px dashed var(--medium-gray); border-radius: 6px;
}
.sr-note--warn {
  background: var(--tint-med-bg); color: var(--tint-med-ink);
  border: 1px solid var(--tint-med-bg); font-weight: 600; text-align: left;
}

/* The viewer (mock S3): navy header carrying the TENANT's identity, our
   credit opposite it, and the frozen-snapshot banner directly under both —
   the reader should not be able to scroll past what it is they are reading. */
.sr-head {
  background: var(--navy); color: var(--white); border-radius: 10px 10px 0 0;
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.sr-head__logo { max-height: 40px; max-width: 160px; height: auto; display: block; }
.sr-head__disc {
  width: 40px; height: 40px; border-radius: 9px; background: var(--green);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; flex: 0 0 auto;
}
.sr-head__who { min-width: 0; }
.sr-head__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sr-head__meta { color: var(--text-on-dark-muted); font-size: 12px; margin-top: 2px; }
.sr-head__credit {
  margin-left: auto; text-align: right; font-size: 11px;
  color: var(--text-on-dark-muted); font-family: var(--font-display);
}
.sr-head__credit b { display: block; color: var(--white); }
.sr-banner {
  background: var(--tint-navy-bg); color: var(--tint-navy-ink);
  font-family: var(--font-display); font-size: 12px; padding: 7px 20px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.sr-banner__end { margin-left: auto; }
.sr-body-panel {
  background: var(--white); border: 1px solid var(--medium-gray);
  border-top: none; border-radius: 0 0 10px 10px; padding: 20px;
}
.sr-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.sr-kpi { border: 1px solid var(--light-gray); border-radius: 8px; padding: 12px 14px; }
.sr-kpi__n {
  font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy);
}
.sr-kpi__l { font-family: var(--font-display); font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.sr-sec { margin-top: 22px; }
.sr-sec__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.sr-sec__head h2 { margin: 0; font-size: 15px; color: var(--navy); }
.sr-sec__note { color: var(--text-secondary); font-size: 12px; }
.sr-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--medium-gray); border-radius: 6px; overflow: hidden; }
.sr-toggle__opt {
  padding: 4px 11px; font-family: var(--font-display); font-size: 11.5px;
  font-weight: 700; color: var(--navy); text-decoration: none; background: var(--white);
}
.sr-toggle__opt.is-on { background: var(--navy); color: var(--white); }
.sr-group { border: 1px solid var(--light-gray); border-radius: 8px; margin-top: 10px; }
.sr-group > summary {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
}
.sr-group > summary b { font-family: var(--font-display); color: var(--navy); }
.sr-group__counts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sr-group__n { margin-left: auto; color: var(--text-secondary); font-size: 12px; }
.sr-group--quiet > summary b { color: var(--text-secondary); }
.sr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sr-table th, .sr-table td {
  text-align: left; padding: 7px 14px; border-top: 1px solid var(--light-gray);
  vertical-align: top;
}
.sr-table th { font-family: var(--font-display); font-size: 11px; color: var(--text-secondary); }
.sr-table__sev { width: 108px; }
.sr-table__meta { width: 210px; color: var(--text-secondary); }
.sr-table__d { color: var(--text-secondary); margin-top: 2px; }
.sr-table--matrix { border: 1px solid var(--light-gray); border-radius: 8px; margin-top: 10px; }
.sr-table--matrix td:not(:first-child), .sr-table--matrix th:not(:first-child) { text-align: right; width: 74px; }
.sr-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.sr-phase { border: 1px solid var(--light-gray); border-radius: 8px; padding: 12px 14px; }
.sr-phase__t { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: var(--navy); }
.sr-phase__n { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); }
.sr-phase__e { font-size: 11.5px; color: var(--text-secondary); }
.sr-empty, .sr-foot { color: var(--text-secondary); font-size: 12px; margin: 12px 0 0; }
.sr-foot { border-top: 1px solid var(--light-gray); padding-top: 12px; margin-top: 22px; }

/* ── 16.73.0: /manual ──────────────────────────────────────────────────────
   The product manual: the sidebar-footer entry button (.helpswitch, the same
   visual idiom as .langswitch__opt beside it) and the TOC-rail + article
   layout (man-*). Everything the page needs is namespaced man- because the
   chapter BODIES are authored HTML in app/manual_content.py: a body that
   reached for a generic class (.callout, .steps) would be styled by whatever
   the rest of the app happens to mean by that name today. */

/* Entry point — sits beside the language flags in the sidebar footer, inside
   the same .langswitch row. Three chips do not fit across a 250px sidebar, so
   the row has to wrap: the Manual chip drops onto its own line under EN/RO,
   which is exactly how the approved mockup rendered. This is the one rule in
   the block that touches a class outside the man-/helpswitch namespace, and it
   lives here rather than up at .langswitch so the whole /manual change stays
   findable in one place. */
.langswitch { flex-wrap: wrap; }

.helpswitch {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: 7px; text-decoration: none;
  color: var(--sidebar-text); background: transparent;
  border: 1px solid transparent;
}
.helpswitch:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); text-decoration: none; }
/* 2026-09-19 (owner decision, item 11): the chip for the page you are ON -
   today only the guide's, on /quickstart. Deliberately the SAME two tokens
   .navitem.is-active up in the nav paints itself with, and nothing else: one
   "you are here" look for the whole sidebar, chip or row. The chip keeps its
   own border and shape; only the fill, the ink and the weight change. Same
   specificity as the :hover above and declared after it, so the current page
   keeps its mark under the cursor rather than flickering back to hover. */
.helpswitch.is-active {
  background: var(--sidebar-selected);
  color: var(--sidebar-text-active);
  font-weight: 800;
}
.helpswitch svg { width: 14px; height: 14px; }
.helpswitch .helpswitch__ext { width: 10px; height: 10px; opacity: .6; }

/* 19.4.6: the manual's RO/EN switch. */
.man-langs { display: flex; gap: 4px; align-items: center; }
.man-langs .is-active { font-weight: 700; border-color: var(--focus-ring); }

/* Search box in the page header. */
.man-search { position: relative; }
.man-search input {
  width: 320px; max-width: 100%; padding: 10px 12px 10px 36px;
  border-radius: 8px; border: 1px solid var(--medium-gray);
  background: var(--white); font: inherit;
}
.man-search input:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(88, 191, 228, .25);
}
.man-search__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted);
}
.man-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: ui-monospace, Menlo, monospace; font-size: 10px;
  color: var(--text-muted); border: 1px solid var(--medium-gray);
  border-radius: 4px; padding: 1px 5px; background: var(--off-white);
}

/* 2026-09-19 (owner): the way back into the app, above the TOC rail. The
   button itself is the shared .btn--secondary - the only thing this rule
   buys is the clearance the grid below does not give it. */
.man-back { margin-bottom: 14px; }

/* Layout: sticky TOC rail + article column. */
.man { display: grid; grid-template-columns: 248px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .man { grid-template-columns: 1fr; } }

.man-toc {
  background: var(--white); border: 1px solid var(--medium-gray);
  border-radius: 10px; padding: 10px 8px;
  position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
}
.man-toc__group {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted);
  padding: 12px 12px 4px;
}
.man-toc__group:first-child { padding-top: 4px; }
.man-toc a {
  display: block; padding: 7px 12px; border-radius: 7px;
  color: var(--text-primary); font-size: 13.5px;
}
.man-toc a:hover { background: var(--light-gray); text-decoration: none; }
.man-toc a.is-on { background: var(--tint-navy-bg); color: var(--tint-navy-ink); font-weight: 700; }
.man-toc__empty { padding: 10px 12px; font-size: 12.5px; color: var(--text-muted); }
/* Set by manual.js on filtered-out entries; also what hides the chapters the
   reader is not on. With JS off nothing carries it, so everything renders. */
.man-hidden { display: none; }

/* min-width:0 or a long unbroken string in a chapter blows the grid column
   out past the viewport instead of wrapping inside it. */
.man-arts { min-width: 0; }
.man-art {
  background: var(--white); border: 1px solid var(--medium-gray);
  border-radius: 10px; padding: 28px 32px 22px; max-width: 860px;
  /* A link to /manual#whats-new lands on the chapter; on the phone the 56px sticky top bar would cover its head. */
  scroll-margin-top: 72px;
}
/* JS off: every chapter renders in reading order, so they need separating. */
.man-art + .man-art { margin-top: 18px; }

.man-crumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.man-crumbs b { color: var(--text-secondary); font-weight: 600; }
.man-art h2 { margin: 0 0 4px; font-size: 22px; color: var(--navy); font-weight: 700; }
.man-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.man-art p { line-height: 1.65; color: var(--text-primary); margin: 0 0 14px; }
.man-art h3 { font-size: 15px; color: var(--navy); margin: 22px 0 8px; }
.man-art ul { line-height: 1.65; margin: 0 0 14px; padding-left: 20px; }
.man-art ul li { margin-bottom: 6px; }

/* Numbered step list. */
.man-steps { counter-reset: manstep; list-style: none; padding: 0; margin: 0 0 14px; }
.man-steps li {
  counter-increment: manstep; position: relative;
  padding: 0 0 14px 40px; line-height: 1.6;
}
.man-steps li::before {
  content: counter(manstep); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint-navy-bg); color: var(--tint-navy-ink);
  font-weight: 700; font-size: 13px; display: grid; place-items: center;
  font-family: var(--font-display);
}
.man-steps li + li::after {
  content: ""; position: absolute; left: 12.5px; top: -12px;
  width: 1px; height: 10px; background: var(--medium-gray);
}

/* Callouts: tip / note / warning. */
.man-callout {
  display: flex; gap: 10px; border-radius: 8px; padding: 12px 14px;
  margin: 0 0 14px; font-size: 13px; line-height: 1.55;
}
.man-callout svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.man-callout--tip  { background: var(--tint-ok-bg);  color: var(--tint-ok-ink); }
.man-callout--note { background: var(--tint-sky-bg); color: var(--tint-sky-ink); }
.man-callout--warn { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.man-callout a { color: inherit; text-decoration: underline; }

/* Landing tiles (the Welcome chapter). */
.man-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 16px; }
@media (max-width: 900px) { .man-tiles { grid-template-columns: 1fr; } }
.man-tile {
  border: 1px solid var(--medium-gray); border-radius: 10px; padding: 14px;
  background: var(--white); color: var(--text-primary); display: block;
}
.man-tile:hover { border-color: var(--brand-sky); box-shadow: 0 1px 6px rgba(0, 31, 91, .08); text-decoration: none; }
.man-tile b {
  display: flex; align-items: center; gap: 8px; color: var(--navy);
  font-size: 13.5px; font-family: var(--font-display);
}
.man-tile b svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.man-tile span { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* Related-in-group links + prev/next pager. */
.man-rel { border-top: 1px solid var(--medium-gray); margin-top: 22px; padding-top: 14px; }
.man-rel h4 {
  margin: 0 0 8px; font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted);
  font-family: var(--font-display);
}
.man-rel a { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-size: 13px; }
.man-rel a svg { width: 14px; height: 14px; flex: none; }

.man-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.man-pager a {
  flex: 1; max-width: 46%; border: 1px solid var(--medium-gray);
  border-radius: 8px; padding: 10px 14px; color: var(--text-primary);
}
.man-pager a:hover { border-color: var(--brand-sky); text-decoration: none; }
.man-pager a span { display: block; font-size: 11px; color: var(--text-muted); }
.man-pager a b { color: var(--navy); font-size: 13.5px; }
.man-pager a.man-pager--next { text-align: right; margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════════════
   Increment 4 (docs/portfolio_invite_licensing_spec.md) — the portfolio
   surface, drawn to docs/mockups/portfolio_mgmt_mock.html.

   Deliberately small. The mock's frame IS the product's .card, its table IS
   .data-table, and its status pills ARE the .chip--ok/--due/--over the
   licence cell has used since 17.10.0 — so everything below is the handful
   of shapes the mock adds and nothing else: the navy HOME badge, the neutral
   identity/role pill, the tinted sub-row, the action cluster and the
   collapsed legacy block. Re-declaring a palette here would have given the
   portfolio its own colours, which is the one thing a management screen must
   not have.
   ═══════════════════════════════════════════════════════════════════════ */
.pf-who { display: flex; gap: 12px; align-items: center; }

.pf-filters { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.pf-filters__q { flex: 1 1 240px; max-width: 340px; }
.pf-filters input, .pf-filters select {
  font: inherit; font-size: 12.5px; padding: 7px 10px;
  border: 1px solid var(--medium-gray); border-radius: 8px; background: #fff;
}
.pf-count { margin: 0 0 8px; }

.pf__t td { vertical-align: middle; }
.pf__name { font-weight: 700; color: var(--brand-primary, #001F5B); }
.pf__sub { margin-top: 1px; }
/* The GUID's new home. A closed <details> is one line of chrome and no
   JavaScript; the title attribute on the name covers the hover case. Kept
   deliberately quiet - it is a lookup an admin performs once a month, not a
   column, and the row's job is the tenant's NAME. */
.pf__id { margin-top: 2px; }
.pf__id > summary { cursor: pointer; font-size: 10px; list-style: none;
                    letter-spacing: .04em; text-transform: uppercase; opacity: .65; }
.pf__id > summary:hover { opacity: 1; }
.pf__id > summary::-webkit-details-marker { display: none; }
.pf__id code { word-break: break-all; font-size: 10.5px; }

/* HOME. The one place the portfolio spends a solid brand colour, because it
   marks the one row that behaves differently: no licence, no extend, no
   suspend. */
.pf-chip--home {
  background: var(--brand-primary, #001F5B); color: #fff;
  letter-spacing: .04em; margin-left: 4px;
}
/* Identity and role pills: NEUTRAL on purpose. Neither answers a question
   about health, so neither may borrow the ok/due/over tints that do. */
.pf-chip--id { background: #eef2f9; color: var(--brand-primary, #001F5B); }

.pf-actrow { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.pf-actrow > form { display: inline; margin: 0; }
.pf-danger { color: var(--color-danger, #c0392b); }

.pf__subrow > td { background: #fbfcfe; }
.pf-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pf-sub > form { display: inline; margin: 0; }
.pf-sub select { font: inherit; font-size: 11.5px; padding: 3px 7px; border: 1px solid var(--medium-gray); border-radius: 7px; background: #fff; }

.pf-legacy { margin-top: 16px; }
.pf-legacy > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pf-legacy__body { margin-top: 14px; }

/* ── 17.57.62: the tenant risk register (services/risk_register.py) ─────
   Three pages, one small family, prefixed `rk2-` because `rk-` is the
   Company page's methodology card and `rr-` the remediation register. The
   list page borrows the incident register's card chrome (.inc-chead,
   .inc-fld, .inc-form) and adds what a risk register needs that an incident
   register does not: a counter strip, a 5 x 5 heat map, a score badge tinted
   by REG-RISK-001's band, and a table.

   Placed ABOVE the 17.2.2 mobile-unlock section on purpose (its sweep in
   tests/test_mobile_unlock.py wants nothing but phone rules between its
   banner and the 17.2.6 one), and NEW selectors only:
   tests/support/css.py reads the FIRST block for a selector, and a media
   query adds no specificity, so a base rule written after the phone
   block would win the cascade over it. The phone rules live in the
   collapse tier below, not in a block of their own. */

/* The counter strip: four tiles, the number first. */
.rk2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rk2-tile { background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.rk2-tile__n { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.rk2-tile__l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); margin-top: 2px; }
.rk2-tile__sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; overflow-wrap: anywhere; }
.rk2-tile--crit .rk2-tile__n { color: var(--tint-crit-ink); }
.rk2-tile--warn .rk2-tile__n { color: var(--tint-high-ink); }
/* 2026-10-09 (the supplier register, TPRM build 1): five tiles share a row
   where they fit. Same specificity as .rk2-tiles and written BEFORE the phone
   block below, so the phone rule's two columns still win at 640px and under. */
.rk2-tiles--five { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* 2026-10-12 (the DORA records page, owner: "Can we center these better?"):
   three tiles share the row in three equal columns instead of sitting in three
   of the default four with a gap on the right. Two classes, so the 640px
   tier's two-up rule below does not leave the third tile alone on a row; the
   599px tier (Kit K3 block) drops it to one column. */
.rk2-tiles.rk2-tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 2026-10-12 (the Implementation register, owner: "recenter this one too"):
   a strip whose tiles share the row equally whatever their number (five, or
   six when a practice is disabled), three to a row under 1100 px; the 599px
   tier drops it to one column. */
.rk2-tiles.rk2-tiles--fill { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .rk2-tiles.rk2-tiles--fill { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Same note: the function chips in a supplier table cell may wrap, so a long
   function name narrows its column instead of widening the whole table. */
.rk2-table [data-functions] .rk2-chip { white-space: normal; }

/* The heat map beside the candidates tray. */
.rk2-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.rk2-heatcard, .rk2-cands-card { margin-bottom: 0; min-width: 0; }
.rk2-heat { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.rk2-heat th { font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: center; padding: 0; }
.rk2-heat__cell { height: 34px; text-align: center; font-size: 13px; font-weight: 700; border-radius: 6px; }
.rk2-heat__cell--low      { background: var(--tint-sky-bg);  color: var(--tint-sky-ink); }
.rk2-heat__cell--medium   { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.rk2-heat__cell--high     { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.rk2-heat__cell--critical { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.rk2-heat__cell--unknown  { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.rk2-axis { font-size: 11px; color: var(--text-muted); margin: 8px 0 0; }
.rk2-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 11.5px; color: var(--text-secondary); margin: 8px 0 0; }
.rk2-legend__k { white-space: nowrap; }

/* The score badge: the number, tinted by its band. */
.rk2-score { display: inline-block; min-width: 30px; text-align: center; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rk2-score--unknown  { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.rk2-score--low      { background: var(--tint-sky-bg);  color: var(--tint-sky-ink); }
.rk2-score--medium   { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.rk2-score--high     { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.rk2-score--critical { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.rk2-li { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.rk2-scorecell { white-space: nowrap; }

/* Status pills, by services/risk_register.STATUS_SLUG. */
.rk2-pill--ass    { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.rk2-pill--trt    { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.rk2-pill--done   { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.rk2-pill--acc    { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.rk2-pill--pend   { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.rk2-pill--closed { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.rk2-pill--sup    { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }

/* Chips: the filter links and the provenance / source chips. */
.rk2-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 14px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; background: var(--light-gray); color: var(--text-secondary); border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.rk2-chip:hover { text-decoration: none; background: var(--medium-gray); }
.rk2-chip.is-on { border-color: var(--teal); color: var(--teal-dark); background: #E0F5F2; }
.rk2-chip--src  { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.rk2-chip--warn { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.rk2-chip--over { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.rk2-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rk2-sumline { margin-left: auto; font-size: 12px; color: var(--text-secondary); }
.rk2-prov { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rk2-meta .pill { vertical-align: middle; }

/* The table. */
.rk2-tablecard { padding: 0; overflow: hidden; }
.rk2-empty { margin: 0; padding: 16px 18px; }
.rk2-empty[data-empty-declare] { padding-top: 0; }
.rk2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk2-table th, .rk2-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--light-gray); vertical-align: top; }
.rk2-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); background: var(--off-white); }
.rk2-table tbody tr:last-child td { border-bottom: none; }
.rk2-table a { color: var(--navy); border-bottom: 1px dotted var(--medium-gray); }
.rk2-table a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.rk2-row--closed td { color: var(--text-muted); }
.rk2-row--closed a { color: var(--text-muted); }
.rk2-row--urgent { box-shadow: inset 3px 0 0 var(--tint-crit-ink); }
.rk2-id { white-space: nowrap; }
.rk2-metaline { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.rk2-review { white-space: nowrap; }
.rk2-review--over { color: var(--tint-crit-ink); font-weight: 600; }

/* 2026-10-12 (the DORA records page, owner: "add them as individual cards for
   easier tracking?"): one card per record instead of a table row - three per
   row on a desktop, two on a tablet, one under 600 px (the 599px tier). The
   card is an <article> named by its title; its fields are dt/dd pairs, the
   label above the value as the K3 phone card prints them; the ID and the date
   stay on one line. An overdue card keeps the inset red bar rk2-row--urgent
   gave the row, the
   next-due state is the K6 clock chip (inc-clock--over / --run), and every
   button in a card is a 44 px tap target (K4). */
.rk2-reclist .rk2-empty { padding: 0; }
.rk2-reccards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rk2-reccard { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); font-size: 13px; }
.rk2-reccard--urgent { box-shadow: inset 3px 0 0 var(--tint-crit-ink); }
.rk2-reccard--closed { background: var(--off-white); color: var(--text-secondary); }
.rk2-reccard__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.rk2-reccard__t { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.rk2-reccard--closed .rk2-reccard__t { color: var(--text-secondary); }
.rk2-reccard__idl { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk2-reccard time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk2-reccard__f { margin: 0; display: grid; gap: 8px; }
.rk2-reccard__fld { min-width: 0; }
.rk2-reccard__f dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.rk2-reccard__f dd { margin: 2px 0 0; min-width: 0; overflow-wrap: anywhere; }
/* 2026-10-19 (lane B): the awareness record's completion bar, drawn by _awareness_records.html. */
.aw-progress { display: block; width: 100%; max-width: 160px; height: 8px; margin-bottom: 4px; accent-color: var(--green); }
.rk2-reccard__due dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rk2-reccard__acts { margin-top: auto; }
.rk2-reccard__acts form { margin-top: 8px; }
.rk2-reccard .btn--xs, .rk2-reccard .rk2-inline input[type="text"] { min-height: 44px; }
.rk2-reccard .btn--xs { display: inline-flex; align-items: center; }
@media (max-width: 1024px) {
  .rk2-reccards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 2026-10-12 (the Implementation register as cards, _proof_ledger.html): the
   same card family. A card with a panel open (attach, settings, history, the
   removal confirm) spans the whole row so the form is never a third wide; the
   action buttons share their line and are 44 px tap targets (K4); a long
   "what counts as proof" folds behind a native <details> Show more / less. */
.rk2-reccard.is-open { grid-column: 1 / -1; }
.rk2-reccard__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rk2-reccard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.rk2-reccard__btns .btn { flex: 1 1 0; justify-content: center; text-align: center; }
.rk2-reccard .btn--sm { min-height: 44px; display: inline-flex; align-items: center; }
.rk2-reccard__links { flex-direction: column; }
.rk2-reccard__links a { display: inline-flex; align-items: center; min-height: 44px; }
.rk2-reccard .evproof__what { max-width: none; }
.rk2-reccard .evproof__panel { background: var(--off-white); border-radius: 8px; }
.evproof__more > summary { cursor: pointer; list-style: none; }
.evproof__more > summary::-webkit-details-marker { display: none; }
.evproof__more-l, .evproof__less-l { font-weight: 600; color: var(--navy); text-decoration: underline; white-space: nowrap; }
.evproof__more .evproof__less-l, .evproof__more[open] .evproof__more-l, .evproof__more[open] .evproof__more-p { display: none; }
.evproof__more[open] .evproof__less-l { display: inline; }
.evproof__more[open] > summary { order: 2; }
.evproof__more[open] { display: flex; flex-direction: column; }
h3.evproof__secthead { margin: 18px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
h3.evproof__secthead a { text-transform: none; letter-spacing: normal; }
/* 2026-10-12 (the DORA requirements list as cards, dora.html; replaces the
   rk2-tablecard--dora table rules): the id in a card's heading is its link and
   a 44 px tap target (K4), and the control chips may wrap inside a narrow card
   so a long id never pushes the page sideways. */
.rk2-reccard a[data-dora-req-link] { display: inline-flex; align-items: center; min-height: 44px; }
/* 2026-10-12 (owner: "smaller expandable cards? with a filter/search
   option?"): the compact requirement card is a <details> - tighter padding, a
   15 px title, the summary its head (a 44 px target) and the Controls block
   behind it; the chips are unchanged. The search row sits above the pillars,
   the Expand all / Collapse all pair at the right of each pillar's heading
   (44 px, K4). Whatever the search or the script hides carries [hidden], which
   these display rules would otherwise override. */
[data-dora-root] [hidden] { display: none; }
.rk2-reccard--compact { display: block; padding: 8px 12px; }
.rk2-reccard__sum { display: flex; flex-direction: column; gap: 2px; min-height: 44px; cursor: pointer; list-style: none; }
.rk2-reccard__sum::-webkit-details-marker { display: none; }
.rk2-reccard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.rk2-reccard--compact .rk2-reccard__t { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-primary); overflow-wrap: anywhere; }
.rk2-reccard--compact[open] > .rk2-reccard__sum { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.rk2-reccard--compact:focus-within { border-color: var(--navy); }
.rk2-reclist > .inc-chead { flex-wrap: wrap; }
.rk2-reclist__acts { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rk2-reclist__acts .btn { min-height: 44px; display: inline-flex; align-items: center; }
.rk2-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.rk2-search__q { flex: 1 1 260px; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--medium-gray); border-radius: 8px; font: inherit; }
.rk2-reccard [data-functions] > div { margin-top: 6px; }
.rk2-reccard [data-functions] > div:first-child { margin-top: 0; }
.rk2-reccard [data-functions] .rk2-chip { white-space: normal; margin: 4px 4px 0 0; }

/* The candidates tray. */
.rk2-cands { list-style: none; margin: 0; padding: 0; }
.rk2-cand { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
.rk2-cand:last-child { border-bottom: none; padding-bottom: 0; }
.rk2-cand__body { flex: 1 1 240px; min-width: 0; font-size: 13px; }
.rk2-cand__body p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-secondary); white-space: pre-wrap; }
.rk2-cand__acts { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.rk2-dismiss > summary { list-style: none; cursor: pointer; }
.rk2-dismiss > summary::-webkit-details-marker { display: none; }
.rk2-candbox { margin-bottom: 14px; font-size: 13px; }
.rk2-candbox__sum { margin: 8px 0 0; color: var(--text-secondary); white-space: pre-wrap; }

/* Forms: the create form's rows and the detail page's small action forms. */
.rk2-form { display: flex; flex-direction: column; gap: 12px; }
.rk2-import-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px 24px; }
.rk2-import-columns .inc-fld { min-width: 0; }
.rk2-import-columns select { width: 100%; min-width: 0; max-width: 100%; }
.rk2-import-probabilities { border-top: 1px solid var(--border); padding-top: 16px; }
.rk2-import-option { padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.rk2-import-option small, .rk2-import-rating, .rk2-import-source { overflow-wrap: anywhere; }
.rk2-import-source summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.rk2-import-source__values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 16px 28px; }
.rk2-import-source__values > div { min-width: 0; }
.rk2-import-source__values dt, .rk2-import-row-source dt { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.rk2-import-source__values dd, .rk2-import-row-source dd { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rk2-import-converted { font-weight: 700; white-space: nowrap; }
.rk2-import-conversions { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-left: 18px; }
.rk2-import-row-source { margin-top: 8px; min-width: 160px; max-width: 32rem; }
.rk2-import-row-source dt { margin-top: 8px; }
.rk2-frow { display: flex; gap: 12px; flex-wrap: wrap; }
.rk2-frow > .inc-fld { flex: 1 1 160px; min-width: 0; }
.rk2-frow > .rk2-fld--half { flex: 1 1 280px; }
.rk2-frow > .rk2-fld--rating { flex: 0 1 120px; }
.rk2-frow > .rk2-fld--reason { flex: 1 1 320px; }
.rk2-frow > .rk2-fld--btn { flex: 0 0 auto; }
.rk2-frow--forms { align-items: flex-start; }
.rk2-ratings { margin: 0; }
.rk2-actform { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--light-gray); }
.rk2-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rk2-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rk2-inline input[type="text"], .rk2-inline select { flex: 1 1 220px; min-width: 0; padding: 6px 9px; border: 1px solid var(--medium-gray); border-radius: 6px; font-family: inherit; font-size: 12.5px; }
.rk2-inline input[type="date"] { padding: 5px 8px; border: 1px solid var(--medium-gray); border-radius: 6px; font-family: inherit; font-size: 12.5px; }
.rk2-inline__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
/* 2026-10-04 (rollout build 1): a label that wraps a select (the Document
   filter of the bulk declaration page) widened a phone by the longest option;
   the label may shrink and its select with it. */
.rk2-inline__lbl:has(> select) { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.rk2-inline__lbl > select { max-width: 100%; }
/* 19.4.4: a free-text field with its caption above it (the withdrawal reason in the declarations table). */
.rk2-inline__lbl--text { flex: 1 1 220px; min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; gap: 3px; }
.rk2-inline__lbl--text > input[type="text"] { width: 100%; box-sizing: border-box; }
/* 19.4.5: in the column label the 220px flex-basis of .rk2-inline input became a HEIGHT (a 220px-tall box). */
.rk2-inline__lbl--text > input[type="text"] { flex: 0 0 auto; }
.rk2-withdraw > summary { display: inline-block; cursor: pointer; list-style: none; }
.rk2-withdraw > summary::-webkit-details-marker { display: none; }
.rk2-withdraw[open] > summary { margin-bottom: 6px; }
.rk2-inline.inc-entryform { margin-top: 0; padding-top: 0; border-top: none; }
.rk2-ttl { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.rk2-hint { margin: 0; font-size: 11.5px; color: var(--text-muted); }
.rk2-hint a { color: var(--text-secondary); }
.rk2-notice { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; background: var(--tint-med-bg); color: var(--tint-med-ink); }
/* 2026-10-03 — the control picker (_control_picker.html) on the exception
   form: a search box over a native <select multiple>. The list is a listbox,
   not a drop-down, so it gets a height and full width; the bar under it
   carries the selection count and the Clear button. */
.rk2-cpick__search, .rk2-cpick__list { width: 100%; box-sizing: border-box; }
.rk2-cpick__list { min-height: 9em; }
.rk2-cpick__list optgroup { font-weight: 600; }
.rk2-cpick__list option { font-weight: 400; padding: 2px 4px; }
.rk2-cpick__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* The accept panel: shut until asked for, the remediation register's idiom. */
.rk2-panel { margin-top: 12px; }
.rk2-panel > summary { list-style: none; cursor: pointer; display: inline-flex; }
.rk2-panel > summary::-webkit-details-marker { display: none; }
.rk2-panel[open] > summary { margin-bottom: 10px; }

/* The detail page: the assessment's definition list and the score boxes. */
.rk2-dl { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.rk2-dl dt { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.rk2-dl dd { margin: 0; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rk2-scores { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.rk2-scorebox { flex: 1 1 180px; min-width: 0; border: 1px solid var(--medium-gray); border-radius: 8px; padding: 10px 12px; }
.rk2-scorebox__l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.rk2-scorebox__v { display: block; font-size: 18px; font-weight: 700; color: var(--navy); margin: 4px 0 2px; }
.rk2-scorebox__v--text { font-size: 13.5px; }
.rk2-scorebox__b { display: block; font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }

/* The acceptance block. */
.rk2-acc { background: var(--off-white); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.rk2-acc--pending_ratification { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.rk2-acc__line { margin-top: 4px; }
.rk2-acc__reason { margin: 6px 0 0; color: var(--text-secondary); font-style: italic; }

/* Links and the timeline. */
.rk2-links { list-style: none; margin: 0 0 10px; padding: 0; }
.rk2-links li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 4px 0; }
.rk2-links form { display: inline; margin: 0; }
.rk2-tl { list-style: none; margin: 12px 0 0; padding: 0; }
.rk2-tl li { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--light-gray); }
.rk2-tl li:last-child { border-bottom: none; }
.rk2-tl-when { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; min-width: 82px; }
.rk2-tl-kind { font-weight: 600; color: var(--navy); min-width: 120px; }
.rk2-tl-detail { flex: 1 1 200px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rk2-tl-who { color: var(--text-muted); font-size: 11.5px; }

/* ═══════════════════════════════════════════════════════════════════════
   17.2.2 — the mobile unlock (docs/mobile_unlock_spec.md)
   ═══════════════════════════════════════════════════════════════════════
   The PO decision this whole section is written under: a responsive pass,
   not a second site, and the desktop stays PIXEL-IDENTICAL. That is why
   everything below except the two `display: none` declarations that hide
   the new chrome sits inside a `max-width` media block, and why no rule
   here re-opens .shell / .sidebar / .main at the top level. The two
   exceptions are the new elements themselves - a top bar and a backdrop
   that did not exist before this increment and render nothing above the
   breakpoint, so hiding them cannot move a desktop pixel.
   tests/test_mobile_unlock.py is the gate on all of that.

   The audit this answers measured, at a 375px device: 739px of virtual
   viewport on the dashboard, 682 on /results, 633 on /remediation, 576 on
   /calendar and 488 on /integrations - a page that is wider than the phone
   is a page every reader scrolls sideways to finish. */

/* Mobile-only chrome. Absent from the desktop layout entirely. */
.mtop { display: none; }
.drawer-backdrop { display: none; }

/* ── ≤768px: the sidebar becomes a drawer ──────────────────────────────
   The 250px rail is the single largest viewport forcer in the product: at
   375px it spends two thirds of the screen on navigation and leaves the
   content column too narrow to set a sentence in. Off-canvas by TRANSFORM
   rather than `display: none`, so the nav stays in the accessibility tree
   and the open/close is a state a screen reader can follow (the button's
   aria-expanded, the drawer's aria-hidden - both wired in base.html). */
@media (max-width: 768px) {
  /* Two columns become one document flow: the drawer is fixed and out of
     flow, so nothing is left holding a 250px track open. */
  .shell { display: block; }

  .mtop {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 45;
    min-height: 52px; padding: 8px 12px;
    background: var(--sidebar-bg); color: var(--sidebar-text-active);
  }
  .mtop__burger {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--sidebar-text-active);
  }
  .mtop__burger:hover { background: var(--sidebar-hover); }
  .mtop__burger svg { width: 22px; height: 22px; display: block; }
  .mtop__logo { height: 24px; width: auto; max-width: 60vw; display: block; }
  .mtop__ident {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--sidebar-text-active);
  }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 268px; max-width: 84vw; height: 100dvh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  /* The page behind an open drawer must not scroll under the reader's
     thumb. Released the moment the drawer closes; nothing persists. */
  body.drawer-open { overflow: hidden; }

  body.drawer-open .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0, 12, 40, .45);
  }

  /* 28px of side padding on a 375px screen is a tenth of the reader's
     screen spent on nothing. */
  .main { padding: 16px 14px; }
  .shell-header { display: none; }
}
/* 19.4.4: room under the page's last line for the floating assistant button (see its block above). */
@media (max-width: 599.5px) { .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Motion is a nicety here, and a drawer that slides is the one place in
   this stylesheet where that matters enough to say so. */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ── ≤640px: the collapse tier ──────────────────────────────────────────
   The drawer alone does not make the pages fit: the grids, filter rows and
   KPI strips underneath were laid out for the width the sidebar used to
   leave, and several of them carry FIXED tracks whose min-content keeps
   inflating the viewport even after the rail is gone. Each rule below was
   found with a computed-style sweep of the five audit pages, not guessed;
   the selector comment says which page produced it. */
@media (max-width: 640px) {
  .prog-history { padding: 16px; }
  .prog-history__asof { margin-left: 0; flex-basis: 100%; }
  .prog-activity-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workbook-criteria { grid-template-columns: 1fr; }
  /* 17.57.62: the risk register (risks.html, risk_detail.html). The four
     tiles go two-up, the heat map and the candidates stack, and the table
     scrolls inside its own wrapper rather than widening the page - the
     17.2.2 rule: a page is only as narrow as its widest unscrollable child.
     Inside THIS block rather than a block of its own, because the suite's
     CSS reader takes the LAST phone tier and a third one would move it. */
  .rk2-tiles { grid-template-columns: 1fr 1fr; }
  .rk2-grid { grid-template-columns: minmax(0, 1fr); }
  .rk2-tblwrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .rk2-table { min-width: 860px; }
  .rk2-dl { grid-template-columns: minmax(0, 1fr); }
  .rk2-scorebox { flex-basis: 100%; }

  /* 17.6.3: the card summary's state cluster stacks under the name */
  .doc-card__summary { flex-wrap: wrap; }
  .doc-card__state { justify-content: flex-start; margin-left: 0; flex-basis: 100%; }

  /* Every page. The header is a nowrap flex row of an <h1> and an action
     cluster; on /results that cluster alone is 275px, so the row was
     pushing the page 48px past the device on its own. */
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-header__act { flex-wrap: wrap; }

  /* 17.5.0 sources strip. Four columns holding an icon, a site URL, chips
     and three buttons is 480px of guaranteed width; at 375px the row stacks
     and the icon column goes, which is the only part that carries nothing. */
  .evsrc__row { grid-template-columns: minmax(0, 1fr); }
  .evsrc__icon { display: none; }
  .evsrc__acts .btn { flex: 1 1 auto; }

  /* 17.6.0 proof ledger. Seven columns of a compliance table cannot be
     made narrow, so at 375px the table stops being a table: each row is a
     card and every cell prints its own header from data-l. The three-door
     question stacks for the same reason - three 1fr doors at 375px are
     three unreadable columns. */
  .evproof__t, .evproof__t tbody, .evproof__t tr, .evproof__t td { display: block; width: 100%; }
  .evproof__t thead { display: none; }
  .evproof__row { border: 1px solid var(--light-gray); border-radius: 10px; margin-bottom: 10px; }
  .evproof__t td { border-bottom: 0; padding: 6px 12px; }
  .evproof__t td[data-l]::before {
    content: attr(data-l) " "; display: block;
    font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
  }
  .evproof__t td:empty { display: none; }
  .evproof__acts { justify-content: flex-start; }
  .evproof__acts .btn { flex: 1 1 auto; text-align: center; }
  .evproof__what { max-width: none; }
  .evproof__doors { grid-template-columns: minmax(0, 1fr); }

  /* Dashboard. `1fr` is `minmax(auto, 1fr)`, so the 1100px collapse to one
     column did NOT stop the column's min-content from sizing the track -
     the row was 461px wide inside a 319px content column. minmax(0, 1fr)
     is the whole fix; the .hbar rule below is what makes the 0 survivable. */
  .dashboard-row { grid-template-columns: minmax(0, 1fr); }

  /* Dashboard + Progress. Six FIXED columns (132/42/84/86/16 plus gaps =
     415px of guaranteed width) were the row's real forcer. Alignment
     across rows was the point of those columns (16.5.0); at this width
     there is no column to align because the row wraps, so the grid becomes
     a wrapping flex line: label on its own line, bar and numbers under it. */
  .hbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px;
  }
  .hbar__label { flex: 1 1 100%; white-space: normal; }
  .hbar__track { flex: 1 1 110px; }
  .hbar__value, .hbar__di, .hbar__chips { flex: 0 0 auto; }

  /* Every page, and the subtlest forcer the sweep turned up: the ⑧c help
     bubbles. `[data-help]::after` is a 260px absolutely-positioned box
     anchored to a 15px mark, and an out-of-flow box still contributes to
     its ancestors' scrollable overflow even while it is invisible - so
     every (?) near the right of a column was quietly widening the page by
     up to 64px, hover or no hover. Fixed positioning takes it out of the
     document's overflow entirely, and a full-width bar pinned to the foot
     of the screen is the readable shape for a 150-character sentence on a
     phone anyway: a 260px bubble tethered to a mark has nowhere to go at
     this width without hanging off one edge or the other. */
  [data-help]::after,
  [data-help].qhelp--end::after {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto;
    transform: none; width: auto; max-width: none;
  }
  /* The header marks that open downward on wider screens take the same
     bottom bar here; their own rule outranks the plain [data-help] one. */
  [data-help].qhelp--below::after { top: auto; bottom: 12px; }

  /* Results. The NIS2/CyFun matrix is a table of counts: collapsing it
     would destroy the comparison it exists to make, so the WRAPPER
     scrolls and the page does not (the .cal-tl-scroll precedent). */
  .rz-mxwrap { overflow-x: auto; }

  /* Integrations. Same minmax(0, 1fr) story as the dashboard row: the
     vendor accordions' min-content was sizing a 780px track inside a
     319px column. */
  .conn-grid { grid-template-columns: minmax(0, 1fr); }
  .conn-more__grid { grid-template-columns: minmax(0, 1fr); }
  /* …and once more one level down, for the same reason. The Ansible card
     carries a <pre> of a cron line: the block already scrolls on its own
     (`overflow-x: auto`), but an auto grid track is sized by min-content
     regardless, so the accordion body was 754px wide around a panel that
     was perfectly happy to be 345. */
  .conn-vendor__body, .conn-form { grid-template-columns: minmax(0, 1fr); }
  /* A <select> is as wide as its widest option unless it is told not to
     be, and "App Service Managed Identity (recommended)" is 326px of it. */
  .conn-form input, .conn-form select, .conn-form textarea { max-width: 100%; }

  /* Keep filing cards in this shared phone tier. The tbody selectors keep
     narrow padding ahead of the later base table rules in the cascade. */
  .inc-filings, .inc-filings tbody, .inc-filings tr,
  .inc-filings th, .inc-filings td { display: block; width: 100%; min-width: 0; }
  .inc-filings tr { padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
  .inc-filings tr:last-child { border-bottom: none; }
  .inc-filings tbody th, .inc-filings tbody td { padding: 5px 0; border-bottom: none; overflow-wrap: anywhere; }
  .inc-filings .inc-due { white-space: normal; }
  .inc-filings .btn { max-width: 100%; white-space: normal; }
  .inc-fileform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .inc-fileform input, .inc-submitted input { max-width: 100%; min-width: 0; }

  /* Increment 4's portfolio rules sit HERE - inside 17.2.2's fit tier and
     ABOVE the 17.2.3 read slice - rather than at the end of the block. The
     read slice promises a phone reader is never shown less than a desktop
     one (tests/test_mobile_polish pins it as a grep for display:none), and
     the stacked table legitimately drops the table HEAD, whose labels move
     onto the cells themselves. It is a FIT rule, so it lives with the fit
     rules. */
  /* Increment 4 (portfolio spec) - the portfolio table. Six columns of
     tenant, identity, status, licence, users and three buttons cannot be
     made narrow, so at 375px the table stops being a table: each row is a
     card and every cell prints its own header from data-l. Exactly the
     .evproof__t idiom two blocks up, and for exactly its reason - nothing is
     hidden, a phone reader gets the same six answers about the same tenant.
     The filter bar stacks so its two selects are full-width targets rather
     than 90px slivers. */
  .pf-filters { flex-direction: column; align-items: stretch; }
  /* The flex BASIS has to go with the direction. `flex: 1 1 240px` sizes the
     main axis, and once the bar is a column that axis is the HEIGHT - the
     search box grew into a 240px-tall well. */
  .pf-filters__q { flex: 0 0 auto; }
  .pf-filters__q, .pf-filters select { max-width: none; width: 100%; }
  .pf-filters .btn { align-self: flex-start; }
  .pf__t, .pf__t tbody, .pf__t tr, .pf__t td { display: block; width: 100%; }
  .pf__t thead { display: none; }
  .pf__row { border: 1px solid var(--medium-gray); border-radius: 10px; margin-bottom: 10px; }
  .pf__t td { border-bottom: 0; padding: 6px 12px; }
  .pf__t td[data-l]::before {
    content: attr(data-l) " "; display: block;
    font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
  }
  .pf__t td:empty { display: none; }
  .pf-actrow { justify-content: flex-start; }
  .pf-actrow .btn, .pf-actrow > form { flex: 1 1 auto; }
  .pf-actrow .btn { width: 100%; text-align: center; }
  /* The sub-rows are their own cards, tucked under the row they belong to:
     a colspan means nothing once the table is a stack. */
  .pf__subrow { border: 1px solid var(--medium-gray); border-radius: 10px; margin: -6px 0 10px; }
  .pf-sub { flex-direction: column; align-items: stretch; }
  .pf-sub .btn, .pf-sub > form { width: 100%; text-align: center; }
  .pf-sub select { width: 100%; }
  /* 2026-09-15: one limit is one `.pf-lim` group (see the small-fixes block
     near the foot of this file). Stacked, the group IS the line, so it fills
     it and spreads its own pieces rather than bunching them at the left.
     Written here, in `.pf-sub`'s own stacking rule, rather than as a second
     640px media block at the foot of the sheet: tests/support/css.py and
     tests/test_portfolio_ui.py both read the LAST 640px block in the file as
     the collapse tier, and a second one would shadow it. For the same
     reason neither comment spells that at-rule out literally - the portfolio
     helper searches the RAW text, comments included. */
  .pf-lim { display: flex; width: 100%; min-width: 0; justify-content: space-between; }
  .pf-who { flex-wrap: wrap; }

  /* ═════════════════════════════════════════════════════════════════════
     17.2.3 — the read slice (docs/mobile_polish_spec.md)
     ═════════════════════════════════════════════════════════════════════
     17.2.2 made every page FIT a phone. Everything below makes the five
     read-mostly surfaces good on one: dashboard, results, the remediation
     register, the calendar and the two pages an outsider reads.

     Written INSIDE 17.2.2's collapse tier rather than in a second block of
     its own, and that is a decision: 640px is the product's phone boundary,
     and a stylesheet with two identical breakpoints is two places to
     remember. Same iron rule as 17.2.2 - nothing here escapes the media
     query, so the desktop cannot move.

     The rule this whole section is written under is "stack, never hide".
     Every fix below takes a row that was laid out side by side at 1280px
     and puts its parts on separate lines; not one of them removes anything
     from the page, because a phone reader is reading the SAME report. */

  /* ── Touch targets ────────────────────────────────────────────────────
     40px is the floor, reached with padding rather than markup. Listed by
     name rather than applied to `a, button` wholesale: a link inside a
     sentence is not a target, and giving every inline anchor a 40px box
     would re-flow the prose this increment is trying to make readable.
     The (?) mark is the one deliberate omission - it is 15px because it
     sits INSIDE labels, and growing it would push apart the very words it
     annotates; it is also the one control whose payload is a bar across
     the whole foot of the screen, so a near miss costs a second tap. */
  .btn, .rz-sev, .rz-fchip, .rz-gopt, .rr-st, .cal-fchip, .rz-vtoggle button,
  .sr-toggle__opt {
    min-height: 40px;
  }
  .rz-search, .rz-fsel, .rr-search, .rr-fsel, .rr-in, .rr-btn,
  .cal-fld input, .cal-fld select, .sr-gate__input {
    min-height: 40px;
  }
  /* Links that are the row's whole job. inline-flex so the padding is a
     hit area rather than a gap in a paragraph. */
  .hbar__link, .prog-functions__head > a, .cal-add-toggle,
  .sr-gate__link, .cal-del-btn, .rz-flinks a, .rr-links a {
    display: inline-flex; align-items: center; min-height: 40px;
  }

  /* ── A table that cannot collapse scrolls in its own wrapper ──────────
     17.2.2 shipped this for the Results matrix; three more tables need it,
     and one of them (the shared report's statement of coverage) was
     forcing a 466px viewport on a page an auditor opens from their mail.

     The fade is Lea Verou's scroll-shadow: two cover gradients painted in
     the container's own background scroll WITH the content (`local`) and
     two shadows painted over the edges do not (`scroll`), so each hint
     appears only while there is something in that direction. A fade that
     is always on says "there is more" even at the end of the table, which
     is the one moment it is wrong. */
  .rz-mxwrap, .rz-tabwrap, .sr-mxwrap, .cal-tl-scroll {
    overflow-x: auto;
    background:
      linear-gradient(to right, var(--white), rgba(255, 255, 255, 0))
        left center / 24px 100% no-repeat local,
      linear-gradient(to left, var(--white), rgba(255, 255, 255, 0))
        right center / 24px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 31, 91, .17), rgba(0, 31, 91, 0))
        left center / 11px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 31, 91, .17), rgba(0, 31, 91, 0))
        right center / 11px 100% no-repeat scroll,
      var(--white);
  }
  /* …and the two tables that paint their OWN white hand it back, because a
     background belongs to the deepest box that draws one: a child's paint
     covers its parent's, so a table with `background: var(--white)` hides
     the hint its wrapper is drawing. The white above is the same white. */
  .rz-matrix, .rz-alltab { background: transparent; }

  /* ── 1. Dashboard ────────────────────────────────────────────────────
     The KPI strip is already one column here (the 560px rule) and 17.2.2
     unpinned the measures grid; what is left is the two rows that still
     read as desktop rows. */

  /* A card header is an <h2> and a link with `justify-content: space-
     between` and no wrap, so "Maturity levels" and "CyberFundamentals 1-5
     scale" were two columns of two words each. */
  .prog-functions__head { flex-wrap: wrap; gap: 2px 10px; }

  /* The function bars' label line is a link (17.2.2 gave it the whole
     first line); the tick and the chips that follow it wrap under. */
  .hbar__link { gap: 7px; }

  /* 17.44.0 (feedback batch ④): the key column, on a phone. Its 62px track
     plus the label's 150px minimum plus the score's 50px left the maturity
     BAR exactly 0px wide at 375px - measured, and the bar is the row. So the
     chip drops to a line of its own, right-aligned under the row it belongs
     to, and the three columns that were there before go back to what they
     were. Desktop is untouched. */
  .prog-fnbars .mrow--key {
    grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr) 46px;
    row-gap: 3px;
  }
  .prog-fnbars .mkey { grid-column: 1 / -1; justify-self: end; }

  /* 17.44.0 (feedback batch ③): the connections panel's two-line phone
     treatment, and the note about the "what to do next" queue needing no
     rule at all, went with their tiles. Both live on other pages now and
     are covered by those pages' own rules. */

  /* ── 2. Results (triage) ─────────────────────────────────────────────
     One toolbar row of nine controls becomes a column of full-width ones,
     with the severity chips - which are the page's summary as much as its
     filter - kept together as a single row that scrolls. */
  /* Two things travel with the direction change, and both are the same
     mistake if they are left behind. `flex-wrap: wrap` on a COLUMN wraps
     into a second column - a nine-control toolbar laid out as a grid
     nobody asked for. And a `flex` shorthand written for a row (the search
     field's `1 1 200px`) is a MAIN-AXIS basis: rotate the axis and the
     search box becomes 200px TALL and then grows. Every child is sized by
     its content down this axis. */
  .rz-toolbar, .rr-filters {
    flex-direction: column; flex-wrap: nowrap; align-items: stretch;
  }
  .rz-toolbar > *, .rr-filters > * { flex: 0 0 auto; }
  .rz-sevs {
    display: flex; gap: 6px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .rz-sevs .rz-sev { flex: 0 0 auto; }
  /* …and the source select's desktop cap comes off with them: 190px was
     there to stop one <option> from owning half a toolbar ROW. */
  .rz-search, .rz-fsel { width: 100%; max-width: none; }
  /* `margin-left: auto` is how a flex ROW pushes a summary to its far end;
     in a column it indents the whole line instead. */
  .rz-sumline, .rr-sumline { margin-left: 0; }
  .rz-vtoggle { align-self: stretch; }
  .rz-vtoggle button { flex: 1 1 0; justify-content: center; }

  /* A finding row: the title takes the full width and the status pill
     wraps under it, instead of a 108px pill squeezing the sentence into a
     three-word column. The gap readout already spans 2 / -1, so it keeps
     its place under both. */
  .rz-frow > summary, .rr-item > summary { grid-template-columns: 3px minmax(0, 1fr); }
  .rz-fright, .rr-right {
    grid-column: 2 / -1; flex-wrap: wrap; white-space: normal;
    align-items: center; row-gap: 4px;
  }
  /* …and the two-line clamp comes off with it. At this width the clamp
     was eating the second half of most titles, and a hidden half-sentence
     is the one thing this increment does not do. */
  .rz-t, .rr-t { display: block; overflow: visible; }
  /* Current / Expected side by side is two 150px columns of wrapped
     fragments; one under the other is two readable lines. */
  .rz-compare { grid-template-columns: minmax(0, 1fr); }

  /* ── 3. Remediation register ─────────────────────────────────────────
     The row fix above is shared with Results (same three-column summary,
     same failure). What is left is the filters and the group headers.

     The register's rows carry an owner's e-mail AND a due date in one
     nowrap group, which is ~270px of a 375px screen: the title column was
     measuring ZERO pixels wide.
     (.rr-filters stacks with .rz-toolbar above - same shape, same fix.) */
  .rr-search, .rr-fsel { width: 100%; }
  .rr-form--wide { flex: 1 1 100%; }
  .rr-form { flex-wrap: wrap; }
  .rr-in { flex: 1 1 100%; }
  .rr-lbl input, .rr-lbl textarea { width: 100%; }

  /* Group headers stay put while their queue scrolls under them, so a
     reader thirty rows into Protect can still see which group they are
     in. 56px is the mobile top bar 17.2.2 added, which is itself sticky.
     `overflow: hidden` on the group would make the summary's scrollport
     the group box rather than the page, which is a sticky that never
     sticks - the radius it was clipping is on the summary now instead. */
  .rz-grp { overflow: visible; }
  .rz-grp > summary {
    position: sticky; top: 56px; z-index: 3;
    background: var(--white); border-radius: 10px 10px 0 0;
  }
  .rz-quiet > summary { background: var(--light-gray); }

  /* ── 4. Calendar ─────────────────────────────────────────────────────
     The agenda IS the month list, and it is already the default render -
     nothing here changes which view the server chooses. The timeline keeps
     its own scroller (it now shares the fade above); the agenda rows stop
     reserving a right-hand column for the date. */
  .cal-row { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
  .cal-title { flex: 1 1 170px; }
  .cal-src { display: block; }
  .cal-src::before { content: none; }   /* 19.4.4: the separator has nothing to separate once the line sits under the title */
  .cal-when { margin-left: 0; }
  .cal-tl { --tl-gutter: 174px; }
  .cal-tl-inner { min-width: 780px; }
  .cal-tl-row .cal-tl-lbl { flex-direction: column; align-items: stretch; gap: 2px; padding-block: 4px; }
  .cal-tl-row .cal-tl-when { margin-left: 0; align-self: flex-start; }
  /* The row's one link, and the row is the only thing on the line - so it
     gets the padding. inline-block rather than inline-flex because the
     title still has to wrap INSIDE the anchor, and the dotted rule moves
     from a border (which the padding would push 11px below the words) to a
     text decoration, which stays where the reader expects it. */
  .cal-title a {
    display: inline-block; max-width: 100%; padding: 11px 0;
    border-bottom: none;
    text-decoration: underline dotted var(--medium-gray);
    text-underline-offset: 3px;
  }
  .cal-title a:hover { text-decoration-color: var(--teal); }
  /* A 13px checkbox is not a target on any phone. */
  .cal-check { min-height: 40px; }
  .cal-check input[type="checkbox"] { width: 22px; height: 22px; }
  /* The add-event form: four fields on one line is four unusable fields. */
  .cal-add-form { flex-direction: column; align-items: stretch; }
  .cal-fld, .cal-fld--wide { flex: 1 1 auto; }
  .cal-fld input, .cal-fld select { width: 100%; }

  /* ── 5. Shared report + gate — the pages an outsider reads ───────────
     Never audited at 375px before this increment, and the worst offender
     in the product: the statement-of-coverage table's seven columns forced
     the whole page to 466px, so an auditor opening the link on a phone
     scrolled sideways through somebody else's compliance report. The
     wrapper above fixes the width; everything here is the rest of it. */
  .sr-page { margin: 12px auto; padding: 0 10px; }
  .sr-head { flex-wrap: wrap; padding: 14px 16px; gap: 10px 12px; }
  .sr-head__credit { margin-left: 0; text-align: left; flex: 1 1 100%; }
  .sr-banner { padding: 8px 16px; gap: 2px 12px; }
  .sr-banner__end { margin-left: 0; }
  .sr-body-panel { padding: 16px 14px; }
  .sr-sec__head { align-items: flex-start; }
  .sr-toggle, .sr-group__n { margin-left: 0; }
  .sr-group > summary { min-height: 40px; }
  /* 108px + 210px of fixed columns out of 347px left 29px for the finding
     title, which rendered one word per line. The severity pill and the
     status line size themselves at this width. */
  .sr-table__sev, .sr-table__meta { width: auto; }
  .sr-table th, .sr-table td { padding: 8px 10px; }
  .sr-table--matrix { margin-top: 0; }
  .sr-mxwrap { margin-top: 10px; }

  /* The gate. One card on an empty screen, so the only thing between it
     and the phone's edge is its own margin. */
  .sr-gate { margin: 6vh 10px; padding: 24px 18px; }
  .sr-gate__input { padding: 10px 12px; }
  /* letter-spacing puts a trailing gap after the sixth digit, which reads
     as an off-centre field on a box this narrow. */
  .sr-gate__input--code { letter-spacing: 6px; padding-left: 18px; }
  .sr-gate__link { padding: 0 6px; }

  /* ── The help bar, finished (17.2.2 carry-over) ──────────────────────
     17.2.2 turned `[data-help]::after` into a bar across the foot of the
     screen because a 260px absolutely-positioned bubble was widening every
     page it appeared on. That was a fix, not a design: the bar arrived with
     a tethered bubble's padding, no way to tell it apart from the page
     under it, and nothing saying how to make it go away.

     ::before is the backdrop AND the label: one box, dimming the page and
     placing a small-caps caption in the strip BELOW the bar (both are
     anchored to the bottom of the screen, so the caption lands under a bar
     of any height). It sits under the bar in the stack, which is what lets
     the same box dim the page without dimming the bar.

     The caption reads from `data-help-label`, which _help.html renders
     through the catalogue - CSS `content` cannot reach the translations,
     so a word written here would be the one thing on a Romanian phone that
     speaks English. A carrier without the attribute simply gets a
     backdrop and no caption. */
  [data-help]::before {
    content: attr(data-help-label);
    position: fixed; inset: 0; z-index: 58;
    display: flex; align-items: flex-end;
    padding: 0 0 calc(11px + env(safe-area-inset-bottom, 0px)) 26px;
    background: rgba(0, 12, 40, .42);
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    font-variant-caps: all-small-caps; text-transform: lowercase;
    text-align: left; color: rgba(255, 255, 255, .72);
    pointer-events: none; opacity: 0; visibility: hidden;
    transition: opacity .1s ease;
  }
  [data-help]:hover::before,
  [data-help]:focus::before,
  [data-help]:focus-within::before { opacity: 1; visibility: visible; }

  [data-help]::after,
  [data-help].qhelp--end::after {
    left: 10px; right: 10px; top: auto;
    /* Above the caption strip, and clear of the home indicator under it. */
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    z-index: 59;
    padding: 13px 44px 13px 16px;
    font-size: 13px; line-height: 1.5; border-radius: 12px;
    box-shadow: 0 -8px 34px rgba(0, 12, 40, .34);
    /* The close affordance. A glyph rather than a word (nothing in CSS can
       be translated) and decoration rather than a control: the bar closes
       on the next tap anywhere, because it is open only while its mark has
       hover or focus. The 44px of right padding above is its room. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 14px;
    background-size: 15px 15px;
  }
  [data-help].qhelp--below::after { top: auto; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

  /* UI19 Controls help clears the assistant launcher's 20px inset + 56px diameter.
     Keep this owned override in the established phone collapse tier. */
  [data-ui-family="controls"] .main [data-help]::after { bottom: 96px; }

  /* ── 17.2.4 — document registry rows (Alex's phone screenshot) ───────
     At phone width the title column shrank toward zero and its wrapped
     words painted under the chips. Same recipe as the register rows: a
     stacked card - identity + chips first, then the title, then state +
     action on one line, button pushed right. The code pill is too wide to
     share a line with the title.

     17.50.0: the desktop row became a shared GRID, so this tier collapses
     the tracks rather than re-wrapping a flex line. `order` still does the
     stacking (grid honours it), and the spanning members are what force a
     new row - which is why the four numbers below moved by one each: the
     Primary/Supporting cell and the language cell are placed here too,
     where the flex version simply let them fall where they landed. */
  .reg-row, .reg-row--nis2 {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 7px; column-gap: 10px;
  }
  .reg-maps { order: 1; justify-self: end; }
  .reg-prim, .reg-supp { order: 2; grid-column: 1 / -1; }
  .reg-title { order: 3; grid-column: 1 / -1; }
  /* Three lines rather than two: the column is the full width of a phone
     here, so the same sentence needs fewer characters cut, not more. */
  .reg-title small { max-width: none; -webkit-line-clamp: 3; line-clamp: 3; }
  .reg-status { order: 4; }
  .reg-row > .btn { order: 5; justify-self: end; min-height: 40px;
                    display: inline-flex; align-items: center;
                    justify-content: center; }
  /* 17.57.17: a row with two actions stacks where the single button used to,
     and the touch target is restated on its members so BOTH of them get it.
     Its own rule rather than a group with the line above, because that line
     is pinned by name (test_the_registry_row_is_unchanged_by_the_new_statuses). */
  .reg-row > .reg-acts { order: 5; justify-self: end; }
  .reg-acts > .btn { min-height: 40px; display: inline-flex;
                     align-items: center; justify-content: center; }
  .reg-lang { order: 6; grid-column: 1 / -1; }
  /* Alex's phone (POL-ISMS-001 and siblings with a recorded language + the
     workspace-default toggle): the row also matches the `@container
     (max-width: 1050px)` query below, whose `.reg-row > .reg-lang {
     grid-column: 1 }` is TWO classes to this tier's bare `.reg-lang` ONE -
     more specific, so it wins regardless of which block comes first in the
     file, and it pairs the language cell with the status cell in a track as
     narrow as ~20px at phone width. `English` has nowhere to break (a single
     word, `overflow-wrap: normal` below) so it overflowed rightward, under
     the action buttons - "the chip clipped to E" was the first letter still
     showing before the button's own background covered the rest. Matching
     its specificity here restores the full-width row this tier already
     intended; rows with no toggle never shrank the column enough to show it. */
  .reg-card .reg-row > .reg-lang, .reg-card .reg-row--nis2 > .reg-lang {
    grid-column: 1 / -1;
  }
  .reg-status small { display: inline; margin-left: 4px; }

  /* ── 17.2.5 — AI-analysis markdown tables (Alex's phone screenshots) ──
     The report body's tables are born from markdown at render time, so
     no template wrapper exists to scroll them. Under the tier the TABLE
     is its own scroll container: columns keep their natural widths and
     the finger scrolls the table, never the page. Desktop unaffected. */
  .ai-md__body table, .ai-md__body .md-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── 17.4.0 — the evidence library's collapsed row ───────────────────
     The summary carries the filename, the validity pill, the control
     count and now the client-document chips. At 375px that is more than
     one line, and the first thing a nowrap flex row gives up is the
     FILENAME - the one fact the collapsed row exists to show (Alex's
     phone: a row with no name and a chip rendered as a circle). Same
     recipe as the 17.2.3 register row: the name keeps line one, the
     chips take line two. Desktop is untouched - the row fits there. */
  .doc-card__summary { flex-wrap: wrap; row-gap: 6px; }
  .doc-card__name { flex: 1 1 auto; }

  /* ── 17.4.0 rider — the EXPANDED evidence card (chip task, latent since
     16.57.0): .doc-card__mappings is a grid with no explicit column, so
     its auto track grows to the max-content width of the longest
     unwrapped mapping text (676-776px measured) - the same
     minmax(0,1fr) disease 17.2.2 cured in five other grids. The 17.2.2/3
     audits measured collapsed views only, which is how it hid. */
  .doc-card__mappings { grid-template-columns: minmax(0, 1fr); }
  .mapping { min-width: 0; }
  .mapping__head { flex-wrap: wrap; row-gap: 4px; }
  .mapping__sub {
    white-space: normal; overflow: visible; text-overflow: clip;
    flex: 1 1 100%;
  }
  .mapping__why { overflow-wrap: anywhere; }
  .add-mapping { grid-template-columns: minmax(0, 1fr); }
  .add-mapping__label { white-space: normal; }

  /* 17.4.4. The decision overlay is a MODAL, so it is the one thing on a
     375px screen that cannot be scrolled sideways out of trouble: the option
     card stacks to a single column, its icon shrinks and its chevron moves
     to the end of the stack. Nothing is hidden - 17.2.3's ground rule holds
     here too, and a phone reader gets the same three doors with the same
     words on each of them. */
  .dov-wrap { padding: 12px 8px; }
  .dov { padding: 16px 14px 14px; }
  .dov__opt { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  :is(#dov,.dov--page) .dov__opt{gap:var(--space-2);padding:var(--space-3)}
  .dov__ic { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
  .dov__go { text-align: right; }
  /* 19.4.3. On the wrong-document question the verb ("Deschide", "Continuă")
     is a right-hand call to action on a wide screen. In the single column it
     used to land ABOVE the title (its grid-row is pinned to row 1), reading
     as an eyebrow that repeated the card's own title. It follows the body
     here, at the end of the card. The language screen keeps its own
     placement. */
  #dov-mismatch .dov__opt { grid-template-columns: minmax(0, 1fr); }
  #dov-mismatch .dov__cta { grid-column: 1; grid-row: auto; justify-self: end; }
  .dov__foot { flex-direction: column; align-items: flex-start; }

  /* 17.4.5. Two new blocks of markup on the library, measured at 375px with
     the version groups both open and closed. The version row is the risky
     one: it carries a date, an uploader name, a sha and two buttons on one
     line, and its chips carry SLOT TITLES - arbitrary text that .chip--slot
     refuses to wrap on the desktop row it was drawn for. Under the tier the
     action cluster keeps its own line rather than pushing the row wide, and
     the confirmation's buttons stack full width so the destructive one is
     never a 30px sliver against the screen edge. */
  .doc-ver__acts { margin-left: 0; flex: 1 1 100%; }
  .doc-ver__acts .btn { flex: 1 1 auto; text-align: center; }
  .doc-ver__head { row-gap: 6px; }
  .doc-rm__acts > form, .doc-rm__acts > .btn { flex: 1 1 100%; }
  .doc-rm__acts .btn { width: 100%; text-align: center; }
  .doc-card__vers { flex: 0 0 auto; }

  /* 17.4.6. The applied-edits rows carry an affordance now, inside a rail
     that is the full 375px on a phone. The key column stops reserving 96px
     it cannot spare, the action takes its own line rather than squeezing the
     edit's text into a column of single words, and the revert confirmation
     stacks full width like every other destructive answer in the product.
     Nothing is hidden: the same rows, the same question, the same words. */
  .wsx-ov .k { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .wsx-ov__act { flex: 1 1 100%; margin-left: 0; }
  .wsx-ov__act .btn { width: 100%; text-align: center; }
  .wsx-ov__act > form { width: 100%; }
  .wsx-ovc__acts > form, .wsx-ovc__acts > .btn { flex: 1 1 100%; }
  .wsx-ovc__acts .btn { width: 100%; text-align: center; }

  /* 17.57.83 /quickstart. In THIS block rather than a phone tier of its own:
     640px is the product's one phone boundary (17.2.3's rule), and
     tests/support/css reads the LAST media block with that prelude, so a new
     one at the foot of the file would quietly become "the collapse tier" for
     every mobile assertion in the suite.
     The guide's stage header stacks its CTA under the title rather than
     beside it, and the journey strip's own 560px tier (above) already
     drops to three columns before this one fires. */
  .gd-stage__head { flex-direction: column; align-items: flex-start; }

  /* 17.50.0 - the tenant-reset danger zone (docs/tenant_reset_spec.md).
     INSIDE this tier, per the warning above: a second block with this same
     prelude at the foot of the file would become "the collapse tier" for
     every mobile assertion in the suite, and two tests count the preludes to
     make sure nobody adds one. The card's body is a row on desktop; here the
     button goes under the paragraph and the two-column ledger stacks. */
  .danger__body { flex-direction: column; }
  .danger__body p { max-width: none; }
  /* The CARD's button only. `.btn-danger` alone would also stretch the
     modal's arm button, and its row is `justify-content: flex-end` - the
     Cancel beside it went off the left edge of the dialog. */
  .danger__body .btn-danger { margin-left: 0; width: 100%; }
  .reset-cols { flex-direction: column; }
  .reset-overlay { padding: 18px 12px; }
  .reset-modal { padding: 18px 16px; }
  .reset-modal__row { flex-direction: column-reverse; }
  .reset-modal__row .btn-ghost,
  .reset-modal__row .btn-danger { width: 100%; margin-left: 0; }

  /* ── 17.57.44, the mobile pass ────────────────────────────────────────
     The PO's phone showed the CONSOLE pages zoomed out, and the cause was
     measurable rather than aesthetic: /manage/users renders its six-column
     `.data-table.console-table` at its 803px min-content width inside a
     345px card with nothing to scroll it, so Safari widens the VISUAL
     VIEWPORT to fit the widest unscrollable child (838px measured; 938 on
     /manage/tenants, 854 on /portfolio/activity, 651 on /manage/platform)
     and shrinks every glyph on the page. 17.2.2 fixed the tables it audited
     this way; these are the ones its five audit pages never opened.

     Everything below is inside the collapse tier on purpose rather than in
     a second `@media (max-width: 640px)` of its own - 640px is the
     product's ONE phone boundary, and tests/support/css.py reads the LAST
     block with that prelude, so a second one would silently take the whole
     mobile suite's assertions with it. */

  /* The generic wide-table scroller. `.table-wrap` rides the same rule
     because it was already in _dnsc_reference_limits.html with NO rule
     behind it outside `.dnsc-export .dnsc-values` - a wrapper that wrapped
     nothing. No `min-width` on the table: `.data-table{width:100%}` cannot
     shrink below its min-content width, which is the width the columns
     need, so the wrapper scrolls and the cells stay legible.
     It is only a scroll container HERE: `overflow-x:auto` computes
     `overflow-y` to `auto` too, and at desktop width that would re-parent
     the sticky `.console-table thead` to the wrapper and kill the frozen
     header the consoles rely on. */
  .tblwrap, .table-wrap {
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .tblwrap > .console-table { overflow-wrap: normal; word-break: normal; }

  /* Control page, "Previous run". Four columns inside a card that carries
     `overflow-wrap:anywhere` (it needs it for long provenance labels)
     collapsed to 315px by breaking words mid-glyph - "Previo/us",
     "Documentati/on", "2 → Not". The wrapper above gives it room; this
     stops the mid-word breaks manufacturing a narrow min-content width in
     the first place. */
  .previous-run__table {
    width: auto; min-width: 100%; overflow-wrap: normal; word-break: normal;
  }
  .previous-run__table th, .previous-run__table td { white-space: nowrap; }

  /* Control page, the evidence row. `.evidence` is a three-column grid
     that already collapsed to one column, which put Remove, Download /
     Preview and Check readiness on three separate lines at three different
     rhythms. `display:contents` on the two action containers lifts their
     buttons into the row's own wrapping flex line, so the four actions are
     ONE row that wraps, at one size. The hx-target divs and the validity
     pill (already a full-width bar in the collapsed grid) keep their own
     lines, which is what leaves the buttons a line to pack into. */
  .detail .evidence {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  }
  .detail .evidence > * { min-width: 0; overflow-wrap: anywhere; }
  .detail .evidence > .evidence__name,
  .detail .evidence > .evidence__meta,
  .detail .evidence > .evidence__why,
  .detail .evidence > .ev-pill { flex: 1 0 100%; }
  .detail .evidence__actions,
  .detail .evidence__readiness { display: contents; }
  .detail .evidence__actions > div,
  .detail .evidence__readiness > div { flex: 1 0 100%; margin-top: 0; }
  /* One size for every action in the row, whatever size class the markup
     gave it - btn--xs here was 12px text in a 28px box beside a 40px one. */
  .detail .evidence .btn {
    min-height: 40px; padding: 6px 14px; font-size: 13px; justify-content: center;
  }

  /* Document workspace: the Records panel's two-line row (id + chip, then the
     wrapped title) is the same shape here as on the desktop rail since
     17.57.45 - only the tap target grows. `stretch` is what keeps the state
     chip right-aligned to the first line inside the column-flex head. */
  .wsx-rec__head { align-items: stretch; min-height: 44px; }
  /* The clamp is the desktop default since 17.57.45, but the phone tier keeps
     stating it: this is the rule 17.57.44 shipped for the 206px rail and
     `test_mobile_layout_rules` pins it here, where a reader looking for the
     phone behaviour will look. */
  .wsx-rec__lbl {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 2026-10-04 (guidance pilot): the pilot cards' guide link gets a thumb-sized
     line; their text lines wrap like the head's title (base rule). */
  .wsx-rec-guide a { display: inline-block; padding: 8px 0; }
  .wsx-in { min-height: 40px; }
  .wsx-send { width: 40px; height: 40px; }

  /* Controls / Registry / console filters: a 190x24 search box sharing a
     line with the filter chips. Its own full-width line, at 40px. */
  .control-search, .ctrl-toolbar__search, .table-filter {
    flex: 1 0 100%; width: 100%; min-width: 0; min-height: 40px;
  }
  .console-input--email, .console-input--id,
  .console-form select, .add-mapping__select,
  .upload-form input,
  /* .form-row is the product's standard label-over-field pair (settings,
     automation, the control page's target/comments); its fields measured
     37-39px, which is a near miss rather than a design. */
  .form-row input:not([type="checkbox"]):not([type="radio"]),
  .form-row select, .form-row textarea { min-height: 40px; }

  /* Chips keep chip proportions - a 40px filter pill is a different design
     - but get enough height to hit. The two controls that cannot grow
     without becoming a different control get an invisible padded hit area
     instead of a new size: the 36x20 toggle switch, and the inline Copy
     next to a GUID (14px tall, and the narrowest target in the product). */
  .owner-filter__btn, .reg-gopt {
    min-height: 32px; display: inline-flex; align-items: center;
  }
  .lswitch, .id-copy { position: relative; }
  .lswitch::before, .id-copy::before {
    content: ""; position: absolute; inset: -11px -8px;
  }
  /* The id cell packs `b1e1cb2d…` and Copy onto one line with no break
     opportunity between them, so in the now-narrower console column the
     inline-block Copy shrank to fit and clipped its own label. */
  .id-copy { min-width: max-content; white-space: nowrap; }
}

/* ═══════════════════════════════════════════════════════════════════════
   UI19 — desktop navigation rail. Mobile keeps its independent drawer.
   ═══════════════════════════════════════════════════════════════════════ */
.sb-collapse { display: none; }
.sb-expand { display: none; }

@media (min-width: 769px) {
  .sb-collapse, .sb-expand {
    display: grid; place-items: center;
    position: absolute; top: 12px; right: 8px;
    width: 36px; height: 36px; border-radius: 6px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--text-muted-readable);
  }
  .sb-collapse:hover, .sb-expand:hover {
    color: var(--action-fill); background: var(--sidebar-hover);
  }
  .sb-collapse svg, .sb-expand svg { width: 16px; height: 16px; }
  .sb-expand { display: none; }
  body.sidebar-collapsed .shell { grid-template-columns: 64px minmax(0, 1fr); }
  body.sidebar-collapsed .sb-collapse { display: none; }
  body.sidebar-collapsed .sb-expand { display: grid; right: 13px; }
  body.sidebar-collapsed .sidebar__brand { min-height: 48px; height: 48px; padding: 0; }
  body.sidebar-collapsed .sidebar__brand > *,
  body.sidebar-collapsed .navitem__label,
  body.sidebar-collapsed .usercard__label,
  body.sidebar-collapsed .shell-help__toggle span {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body.sidebar-collapsed .sidebar__nav { padding: 8px; }
  body.sidebar-collapsed .navgroup { margin: 6px 0; padding-top: 6px; border-top: 1px solid var(--border-subtle); }
  body.sidebar-collapsed .navgroup__head { display: none; }
  body.sidebar-collapsed .navitem { justify-content: center; padding: 9px 0; }
  body.sidebar-collapsed .navitem__pill { right: 2px; width: 3px; }
  body.sidebar-collapsed .sidebar__footer { padding: 8px 8px 0; }
  body.sidebar-collapsed .usercard__id { padding: 6px 0; justify-content: center; }
  body.sidebar-collapsed .usercard__chev { display: none; }
  body.sidebar-collapsed .shell-help { padding-bottom: 0; }
  body.sidebar-collapsed .shell-help__toggle { position: static; display: flex; min-height: 40px; align-items: center; justify-content: center; }
  body.sidebar-collapsed .shell-help__toggle > svg { width: 20px; height: 20px; }
  body.sidebar-collapsed .shell-help__toggle .shell-help__chevron { display: none; }
  body.sidebar-collapsed .shell-help .langswitch {
    position: fixed; z-index: 75; width: 232px; max-width: calc(100vw - 80px);
    padding: 8px; background: var(--surface-panel); border: 1px solid var(--border-subtle);
    border-radius: 9px; box-shadow: 0 8px 24px rgba(0,31,91,.14);
  }
}

/* ── 17.12.0 — the sign-in door's look (mock: signin_door_mock.html).
   A branded navy ground with two quiet radial glows, one floating card.
   Own .door-* family: the sr-gate look stays untouched for the shared
   report gate and the invite page. Single-theme by design - the door
   commits to the brand ground. */
.door-body { margin: 0; min-height: 100vh; font-family: inherit;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(88, 191, 228, .18), transparent 55%),
    radial-gradient(100% 80% at -10% 110%, rgba(0, 147, 96, .14), transparent 50%),
    linear-gradient(160deg, #001F5B 0%, #0A2E73 55%, #123a85 100%); }
.door { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 44px 16px 28px;
  position: relative; }
.door__back { position: absolute; top: 18px; left: 20px; color: #9db2dd;
  font-size: 13px; text-decoration: none; }
.door__back:hover { color: #fff; text-decoration: none; }
.door__brand { text-align: center; margin-bottom: 26px; }
.door__mark { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #00b273);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 147, 96, .35); }
.door__word { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.door__word span { color: #58BFE4; }
.door__tag { color: #9db2dd; font-size: 11px; margin-top: 3px; letter-spacing: .06em; }
.door__card { width: 100%; max-width: 360px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 15, 45, .35); padding: 26px 24px 22px; }
.door__h { font-size: 17px; color: var(--navy); margin: 0 0 2px; }
.door__sub { color: var(--text-muted); font-size: 12.5px; margin: 0 0 16px; }
.door__sub b { color: var(--text-primary); }
.door__email { font-size: 13px; color: var(--text-primary); background: var(--off-white);
  border-radius: 9px; padding: 9px 12px; margin: 0 0 14px; overflow-wrap: anywhere; }
.door__label { display: block; font-size: 11px; font-weight: 700; color: var(--navy);
  margin-bottom: 5px; }
.door__input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px;
  padding: 11px 12px; border: 1.5px solid var(--light-gray); border-radius: 9px; }
.door__input:focus { outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 147, 96, .12); }
.door__input--code { text-align: center; font-size: 24px; letter-spacing: .55em;
  padding-left: calc(12px + .55em); font-variant-numeric: tabular-nums; }
.door__go { display: block; width: 100%; box-sizing: border-box; margin-top: 12px;
  font: inherit; font-size: 14px; font-weight: 700; text-align: center;
  padding: 11px 0; border: 0; border-radius: 9px; background: var(--green);
  color: #fff; cursor: pointer; text-decoration: none; }
.door__go:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.door__hint { color: var(--text-muted); font-size: 11.5px; margin: 12px 0 0;
  line-height: 1.5; }
.door__again { margin: 12px 0 0; text-align: center; }
.door__link { border: 0; background: none; font: inherit; font-size: 12.5px;
  font-weight: 600; color: var(--green); cursor: pointer; text-decoration: none; }
.door__link:hover { text-decoration: underline; }
.door__foot { margin-top: 26px; color: #8ca3d8; font-size: 11px; text-align: center; }
.door__foot b { color: #b9c9ef; font-weight: 600; }
/* 17.12.1 — the code screen's address line, and the request-access exit */
.door__for { margin: 14px 0 0; text-align: center; font-size: 12px;
  color: var(--text-muted); overflow-wrap: anywhere; }
.door__request { margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--light-gray); }
.door__request .door__hint { margin: 0 0 8px; text-align: center; }
.door__go--ghost { background: #fff; color: var(--navy);
  border: 1.5px solid var(--light-gray); }
.door__go--ghost:hover { background: var(--off-white); color: var(--navy);
  border-color: var(--navy); }

/* ── Document-language arc, increment 1 — the language surfaces ──────────
   docs/mockups/docs_language_mock.html surfaces 1, 2 and 6, translated out
   of the mock's throwaway CSS into this stylesheet's own variables and the
   .dov* overlay idiom 17.4.4 established. Two dialogs share one block
   because they ask the same question in two moments: .doclang-modal is the
   save warning on the Settings tile, .langpop is the first-login popup on
   the dashboard, and a rule that drifted between them would be the product
   describing one choice two ways. */
.doclang-modal, .langpop {
  position: fixed; inset: 0; z-index: 80; display: grid;
  place-items: start center; overflow-y: auto; padding: 24px 12px;
  background: rgba(10, 20, 45, .45);
}
/* The same author-display trap .dov-wrap documents: the display rule above
   would beat the UA's [hidden] { display: none } and both dialogs would be
   open on every page load. */
.doclang-modal[hidden], .langpop[hidden] { display: none; }
.doclang-modal__box, .langpop__box {
  position: relative; width: 100%; max-width: 620px; margin-top: 6vh;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 31, 91, .35);
  padding: 20px 22px 18px;
}
.doclang-modal__box h3, .langpop__box h3 {
  margin: 0 0 10px; font-size: 17px; color: var(--navy);
}
.doclang-modal__list {
  border: 1px solid var(--light-gray); border-radius: 10px;
  margin: 12px 0; max-height: 220px; overflow-y: auto;
}
.doclang-modal__list label {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 9px 12px; border-top: 1px solid var(--light-gray);
  font-size: 13px; cursor: pointer;
}
.doclang-modal__list label:first-child {
  border-top: 0; background: var(--off-white);
}
.doclang-modal__list input[disabled] + span { color: var(--text-muted); }
.doclang-modal__actions, .langpop__actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px;
  flex-wrap: wrap;
}
/* The popup's read-only line for an invited member: the workspace's document
   language is a fact they are told, not a control they are offered. */
.langpop__told {
  background: var(--off-white); border: 1px solid var(--light-gray);
  border-radius: 10px; padding: 10px 13px; font-size: 12.5px;
  color: var(--text-muted); margin: 12px 0;
}
@media (max-width: 560px) {
  .doclang-modal__box, .langpop__box { margin-top: 0; padding: 16px; }
}
/* Pages-ranked wave, lane Q-FIRST: the first-visit dialog can be closed. The X is
   a plain form post in the corner of the box (the What's new dialog's shape), a
   44 px target on a phone; the title leaves it room. */
.langpop__box h3 { padding-right: 44px; }
.langpop__closeform { position: absolute; top: 10px; right: 10px; margin: 0; }
.langpop__close {
  width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--text-muted); border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; font: inherit;
}
.langpop__close:hover, .langpop__close:focus-visible { background: var(--light-gray); color: var(--navy); }
@media (max-width: 560px) {
  .langpop__closeform { top: 6px; right: 6px; }
  .langpop__close { width: 44px; height: 44px; }
}

/* ── Document-language arc, increment 2 — the override and the read-only
   secondary. docs/mockups/docs_language_mock.html surfaces 3 and 4, in this
   stylesheet's own variables. Two surfaces, one vocabulary: a CHIP always
   says which language a document is controlled in and whether that is the
   workspace default or this document's own override, and every read-only
   translation is drawn on a tinted ground so that "you cannot edit this" is
   visible before anything is clicked. */
.reg-lang { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  justify-items: start; gap: 6px; min-width: 0; }
.reg-lang .lchip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--off-white); color: var(--navy); white-space: normal;
  /* Belt-and-suspenders alongside the phone-tier grid-column fix above: a
     single unbreakable word ("English") should wrap rather than overflow
     the column into whatever sits beside it, same as `.reg-language-confirm`
     just below already does. */
  min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.reg-lang .reg-language-confirm { flex-basis: 100%; order: 2; font-size: 11.5px;
  line-height: 1.35; overflow-wrap: anywhere; }
.reg-lang .lchip.is-ov { background: #e7f6fc; color: #1179a3; }
.reg-lang .lchip i { font-style: normal; font-weight: 500; opacity: .7;
  font-size: 10.5px; }
.reg-langf { display: inline-flex; margin: 0; }
/* Registry controls stay inside their own track. At constrained card widths,
   use explicit card rows instead of allowing the title track to collapse. */
.reg-card { container-type: inline-size; }
@container (max-width: 1050px) {
  .reg-row, .reg-row--nis2 {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    column-gap: 14px; row-gap: 10px; align-items: start;
  }
  .reg-row > .reg-idcell { order: 0; grid-column: 1; align-items: flex-start; }
  .reg-row > .reg-maps { order: 1; grid-column: 2; justify-self: end; }
  .reg-row > .reg-title { order: 2; grid-column: 1 / -1; }
  .reg-row > .reg-prim, .reg-row > .reg-supp { order: 3; grid-column: 1 / -1; }
  .reg-row > .reg-cnt { order: 4; grid-column: 1; width: 100%; max-width: 220px; }
  .reg-row > .reg-status { order: 5; grid-column: 2; }
  .reg-row > .reg-lang { order: 6; grid-column: 1; }
  .reg-row > .reg-acts, .reg-row > .btn { order: 7; grid-column: 2; justify-self: stretch; }
  .reg-row > .reg-title small { max-width: none; }
}
@container (max-width:420px){
  /* Long localized status/action labels must not collapse the identity track. */
  .reg-row,.reg-row--nis2{grid-template-columns:minmax(118px,1fr) minmax(0,1fr)}
}
/* The toggle is a real submit button with no label: the state is in the chip
   beside it, and a second copy of the state in the control would be a second
   thing to keep true. */
.lswitch { position: relative; width: 36px; height: 20px; border: 0; padding: 0;
  border-radius: 999px; background: var(--light-gray); cursor: pointer;
  flex: none; transition: background .15s; }
.lswitch::after { content: ""; position: absolute; top: 2.5px; left: 3px;
  width: 15px; height: 15px; border-radius: 50%; background: #fff;
  transition: left .15s; }
.lswitch.is-on { background: var(--green); }
.lswitch.is-on::after { left: 18px; }
.lswitch:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* The editor's switch (mock surface 4). Segmented, because the two sides are
   two views of ONE document and not two documents. */
.wsx-langsw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 10px; }
.wsx-langsw__b { display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--light-gray); border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; text-decoration: none; }
.wsx-langsw__b + .wsx-langsw__b { margin-left: -9px;
  border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wsx-langsw__b:first-child { border-top-right-radius: 0;
  border-bottom-right-radius: 0; }
.wsx-langsw__b.is-active { background: var(--navy); border-color: var(--navy);
  color: #fff; }
.wsx-langsw a.wsx-langsw__b.is-active { color: #fff; }
.wsx-langsw__b:hover { border-color: var(--navy); text-decoration: underline; }
.wsx-langsw__b:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.wsx-langsw__b i { font-style: normal; font-weight: 500; opacity: .75;
  font-size: 11px; }
.wsx-langf { display: inline-flex; margin: 0; }
.wsx-original-language { flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.wsx-original-language > * { min-width: 0; max-width: 100%; }
.wsx-langsw .wsx-langf { max-width: 100%; }
.wsx-original-language .btn, .wsx-langsw .wsx-langf .btn { white-space: normal; text-align: left; }

/* The staleness banner + the read-only ground. */
.wsx-tbanner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--off-white); border: 1px dashed var(--light-gray);
  border-radius: 10px; padding: 9px 14px; font-size: 12.5px;
  color: var(--medium-gray); margin-bottom: 10px; }
.wsx-tempty { font-size: 12.5px; color: var(--medium-gray); margin: 8px 2px; }
.wsx-page--ro { background: var(--off-white); }
#ws-tdownload[hidden], #ws-tempty[hidden], #ws-tgate[hidden] { display: none !important; }
#ws-tstate, #ws-tempty { color: var(--navy); overflow-wrap: anywhere; }
#ws-tpage { min-width: 0; overflow-wrap: anywhere; overflow-x: auto; }
.wsx-tnote { font-size: 11.5px; color: var(--text-secondary); margin: 8px 2px; }
.wsx-tgate { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; background: #fff7e6; border: 1px solid #e6b74a;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #7a5a10;
  margin: 10px 0; }

/* ── Document-language arc, increment 3 — the binder's language rule and the
   fillings' info line. docs/mockups/docs_language_mock.html surfaces 4 and 5.
   The chip vocabulary is increment 2's, extended by exactly two states: a
   green one for "this reached the binder" and an amber one for "this did
   not, and here is why". Amber rather than red on purpose — an excluded
   document is a task, not a fault. */
.doclang-note { font-size: 12.5px; color: var(--text-secondary);
  margin: 10px 0 0; }
.doclang-note a { font-weight: 600; }
.binder-lang { margin-top: 14px; overflow-x: auto; }
.binder-langtab td { font-size: 13px; vertical-align: middle; }
.binder-langtab td:last-child { white-space: normal; }
/* 19.4.5: the pill nowrap clipped "excluded: adopted file, no approved OptiApp copy" on a phone. */
.binder-langtab .pill { white-space: normal; max-width: 100%; }
.binder-langtab tr.is-excluded td:first-child { color: var(--medium-gray); }
.binder-langtab .lchip { display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--off-white); color: var(--navy); white-space: nowrap; }
.binder-langtab .lchip.is-ov { background: #e7f6fc; color: #1179a3; }
.binder-langtab .lchip.is-ok { background: #e8f6ec; color: #1c6b34; }
.binder-langtab .lchip.is-warn { background: #fff7e6; color: #7a5a10; }
.binder-langtab .lchip i { font-style: normal; font-weight: 500; opacity: .7;
  font-size: 10.5px; }

/* ── 17.41.0: the DNSC incident register (docs/dnsc_incident_spec.md §1c) ─
   Three surfaces, one small family. The register list borrows the calendar's
   band/row metrics deliberately - an incident deadline and a policy review
   are both "a thing owed by a date", and two pages that answer that question
   in two different shapes are two pages nobody learns.

   The one thing this family adds is the CLOCK CHIP: three of them per row,
   in the order the law puts them, coloured by how much time is left. Green
   is not in the palette here on purpose - a filing that has not been made is
   never reassuring, it is merely not yet late. */
.inc-meta { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }

.inc-strow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px; }
.inc-st { border-radius: 14px; padding: 4px 12px; font-size: 12px;
  font-weight: 600; background: var(--light-gray);
  color: var(--text-secondary); }
.inc-st--live { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.inc-st--over { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.inc-sumline { margin-left: auto; font-size: 12px; color: var(--text-secondary); }

.inc-band { background: #fff; border: 1px solid var(--medium-gray);
  border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.inc-bhead { display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--medium-gray); }
.inc-band--closed > .inc-bhead { cursor: pointer; list-style: none; }
.inc-bhead h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }

.inc-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--light-gray); flex-wrap: wrap; }
.inc-row:last-child { border-bottom: none; }
/* The left stripe is the row's loudest clock, so a list of ten incidents can
   be read for "which of these is late" without reading a single word. */
.inc-row--overdue { box-shadow: inset 3px 0 0 var(--tint-crit-ink); }
.inc-row--soon    { box-shadow: inset 3px 0 0 var(--tint-high-ink); }
.inc-title { font-size: 13.5px; min-width: 0; display: flex;
  flex-direction: column; gap: 2px; }
.inc-title a { color: var(--navy); border-bottom: 1px dotted var(--medium-gray); }
.inc-title a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.inc-src { font-size: 11px; color: var(--text-muted); }
.inc-clocks { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.inc-noclock { font-size: 11.5px; color: var(--text-muted); font-style: italic; }

.inc-clock { border-radius: 6px; padding: 2.5px 9px; font-size: 11.5px;
  white-space: nowrap; background: var(--tint-mute-bg);
  color: var(--tint-mute-ink); }
.inc-clock b { font-weight: 700; }
.inc-clock--run   { background: var(--tint-navy-bg); color: var(--tint-navy-ink); }
.inc-clock--soon  { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.inc-clock--over  { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.inc-clock--filed { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
/* incident detail: the three clocks as one timeline (slice 3.3, 2026-10-11) */
.ckl { display: flex; gap: 3px; margin: 8px 0 4px; }
.ckl__seg { display: block; min-width: 0; padding: 6px 8px; border-radius: 8px; font-size: 11.5px; background: var(--light-gray); border-left: 4px solid var(--text-muted); overflow-wrap: anywhere; }
.ckl__seg b, .ckl__seg small { display: block; }
.ckl__seg small { color: var(--text-secondary); }
.ckl__seg--filed { border-color: var(--tint-ok-ink); background: var(--tint-ok-bg); }
.ckl__seg--run { border-color: var(--navy); background: var(--tint-navy-bg); }
.ckl__seg--soon { border-color: var(--tint-high-ink); background: var(--tint-high-bg); }
.ckl__seg--over { border-color: var(--tint-crit-ink); background: var(--tint-crit-bg); }
.ckl__from { margin: 0 0 10px; }
@media (max-width: 600px) { .ckl { flex-direction: column; } .ckl__seg { width: auto !important; } }

.inc-pill--open   { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.inc-pill--cont   { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.inc-pill--res    { background: var(--tint-sky-bg);  color: var(--tint-sky-ink); }
.inc-pill--closed { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }

/* -- the create form + the detail cards -------------------------------- */
.inc-card { margin-bottom: 14px; }
.inc-chead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.inc-chead h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }

.inc-form { display: flex; flex-direction: column; gap: 14px; }
.inc-times { display: flex; gap: 14px; flex-wrap: wrap; }
.inc-fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.inc-fld--wide { width: 100%; }
.inc-fld > span { font-weight: 600; color: var(--navy); }
.inc-fld > small { color: var(--text-muted); font-size: 11px; }
.inc-fld input, .inc-fld textarea, .inc-fld select {
  font-family: inherit; font-size: 13px; padding: 6px 9px;
  border: 1px solid var(--medium-gray); border-radius: 6px; background: #fff;
}
.inc-fld textarea { resize: vertical; }

.inc-crit { border: 1px solid var(--medium-gray); border-radius: 8px;
  padding: 12px 14px; }
.inc-crit legend { font-size: 12.5px; font-weight: 700; color: var(--navy);
  padding: 0 6px; }
.inc-crithint { margin: 0 0 8px; font-size: 11.5px; color: var(--text-muted); }
.inc-check { display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; padding: 3px 0; }
.inc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.inc-filings { width: 100%; border-collapse: collapse; }
.inc-filings th, .inc-filings td { text-align: left; font-size: 13px;
  padding: 8px 10px; border-bottom: 1px solid var(--light-gray);
  vertical-align: top; }
.inc-filings tr:last-child th, .inc-filings tr:last-child td { border-bottom: none; }
.inc-filings th { font-weight: 600; color: var(--navy); }
.inc-filings th small { display: block; font-weight: 400; font-size: 11px;
  color: var(--text-muted); }
.inc-due { white-space: nowrap; color: var(--text-secondary); }
.inc-filing--over .inc-state { color: var(--tint-crit-ink); }
.inc-filing--soon .inc-state { color: var(--tint-high-ink); }
.inc-filing--filed .inc-state { color: var(--tint-ok-ink); }
.inc-portal { margin: 10px 0 0; }

.inc-summary { font-size: 13.5px; white-space: pre-wrap; margin: 0 0 10px; }
.inc-svcs, .inc-crits { margin-top: 10px; }
.inc-lbl { display: block; font-size: 11.5px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 5px; }
/* 17.57.64: the register shell's linked-records list inside a remediation
   row's link strip (.rr-links, a wrapping flex row of links). The label and
   the list's rows join that row - display: contents - so a mapped control
   reads inline beside "View finding", where its anchor sat before the shell
   drew it. Written HERE, after .inc-lbl, and not in the rk2- family above
   the phone tier: tests/support/css.py reads the FIRST block whose text
   matches a selector, and `p.inc-lbl {` placed earlier would be what a
   reader of `.inc-lbl` found. */
.rr-links > p.inc-lbl { margin: 0; align-self: center; }
.rr-links > ul.rk2-links { display: contents; }
.rr-links > ul.rk2-links > li { padding: 0; }
.inc-crits ul { margin: 0; padding-left: 18px; font-size: 13px; }

.inc-statusform, .inc-entryform { display: flex; align-items: flex-end;
  gap: 10px; flex-wrap: wrap; }
.inc-entryform { align-items: center; margin-bottom: 12px; }
.inc-entryform input[type="text"] { flex: 1 1 320px; font-family: inherit;
  font-size: 13px; padding: 6px 9px; border: 1px solid var(--medium-gray);
  border-radius: 6px; }

.inc-tl { list-style: none; margin: 0; padding: 0; }
.inc-tl li { display: flex; gap: 10px; font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid var(--light-gray); flex-wrap: wrap; }
.inc-tl li:last-child { border-bottom: none; }
.inc-tl-when { color: var(--text-muted); font-size: 11.5px; white-space: nowrap;
  min-width: 108px; }
.inc-tl-entry { flex: 1 1 240px; }
.inc-tl-who { color: var(--text-muted); font-size: 11.5px; }

/* ── 17.46.0 (docs/tos_acceptance_spec.md) — the Terms surfaces ───────────
   Three pages, one block: the acceptance interstitial, the hold screen and
   the terms page share a body of legal prose and must not describe it three
   ways. The hold screen reuses .sr-gate unchanged (it is the same shape as
   the licence notice - a short sentence and one way out); only the two
   surfaces that carry the TEXT need width, and that is what .tos-page is. */
.tos-page {
  max-width: 780px; margin: 6vh auto 48px; padding: 28px 30px 24px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 31, 91, .16);
}
.tos-page h1 { font-size: 21px; color: var(--navy); margin: 6px 0 6px; }
.tos-page__meta { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.tos-page__meta a { color: var(--text-secondary); }

/* The interstitial's reading box. A fixed viewport with its own scrollbar,
   not the page's: the checkbox and the button have to stay visible while the
   terms are being read, or "I have read" is a claim the layout worked
   against. Focusable (tabindex on the element) so a keyboard reader can
   scroll it without a mouse. */
.tos-scroll {
  max-height: 46vh; overflow-y: auto; padding: 16px 18px; margin: 0 0 16px;
  border: 1px solid var(--light-gray); border-radius: 10px;
  background: var(--off-white);
}
.tos-scroll:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.tos-body { font-size: 13.5px; line-height: 1.62; color: var(--text-secondary); }
.tos-body h2 { font-size: 14px; color: var(--navy); margin: 18px 0 6px; }
.tos-body h2:first-of-type { margin-top: 4px; }
.tos-body p { margin: 0 0 9px; }
.tos-body ul { margin: 0 0 9px; padding-left: 20px; }
/* The placeholder marker. Deliberately loud: while the lawyer-final text is
   outstanding, every reader of this page must be able to see at a glance
   which paragraphs are structure and which are agreed wording. */
.tos-body .tos-placeholder {
  color: var(--tint-high-ink); background: var(--tint-high-bg);
  border-radius: 6px; padding: 6px 9px; font-size: 12.5px;
}
.tos-body .tos-meta { color: var(--text-muted); font-size: 12px; }

.tos-page__form { margin: 0; }
.tos-page__check {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px;
  color: var(--navy); cursor: pointer;
}
.tos-page__check input { margin-top: 3px; }
.tos-page__foot {
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  margin: 16px 0 0;
}

@media (max-width: 560px) {
  .tos-page { margin: 0; border-radius: 0; padding: 20px 16px; }
  .tos-scroll { max-height: 40vh; padding: 12px 13px; }
}

/* ── 17.57.83: /quickstart — the "Ghid practic" (practical guide) ─────────
   Owner decision 2026-09-18: replaces the "Primii pasi" checklist this
   block used to style (the qs- rules it left behind). Namespaced gd- for
   the reason the manual's block gives for man-: this page is one authored
   artefact and a generic class name here would be restyled by whatever the
   rest of the app decides .step or .card means next release.

   The approved mockup's own tokens map onto the product's: --navy for the
   header and the numbered marks, --tint-ok-bg/ink for a done check line,
   --light-gray/--medium-gray for the screenshot frame, and the same
   .callout idiom the manual uses for its info/warn boxes, forked here as
   .gd-why/.gd-note because this page's callouts carry a bold lead-in the
   shared .callout does not. Nothing else new is introduced. */
/* 2026-09-19 (owner finding on Dev1 17.57.88, item 10): the guide's column
   used to be capped at 760px, so on a wide screen it stopped part-way across
   the main pane while every other `class="page ..."` surface in the product
   (the dashboard, Progress, the template gallery, the evidence library,
   Integrations) ran to the full width - none of them declares a max-width at
   all, and .main's own 28px gutter is the whole of their measure. The guide
   carries the same marker class, so it now carries the same width: the rule
   is left standing, as the place that statement is made, holding only the
   min-width .main and .enire-page already carry for the same reason - a
   wide child (a table, a long unbroken string) must shrink rather than push
   the pane. The .gd-lead paragraph keeps its own 62ch measure
   - that one is a reading length for one paragraph, not a width for the
   page. */
.gd-page { min-width: 0; }
.gd-wrap { padding: 0; }

.gd-head { padding: 8px 0 22px; border-bottom: 1px solid var(--light-gray); margin-bottom: 22px; }
.gd-eyebrow {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 6px; font-weight: 700;
}
.gd-head h1 {
  margin: 0 0 10px; font-size: 26px; font-weight: 700; color: var(--navy);
  font-family: var(--font-display);
}
.gd-lead { margin: 0; font-size: 14.5px; color: var(--text-secondary); max-width: 62ch; line-height: 1.6; }

.gd-journey {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin-top: 18px;
}
.gd-journey__item {
  display: block; text-decoration: none; text-align: center;
  background: var(--light-gray); border: 1px solid var(--medium-gray);
  border-radius: 8px; padding: 8px 6px; font-size: 12px; line-height: 1.25;
  color: var(--navy);
}
.gd-journey__item b { display: block; font-size: 15px; font-family: var(--font-display); }
.gd-journey__item.done { background: var(--tint-ok-bg); border-color: transparent; color: var(--tint-ok-ink); }
@media (max-width: 560px) { .gd-journey { grid-template-columns: repeat(3, 1fr); } }

.gd-stage {
  padding: 22px 0; border-top: 1px solid var(--light-gray);
  scroll-margin-top: 20px;
}
.gd-stage:first-of-type { border-top: 0; }
.gd-stage__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 8px;
}
.gd-stage__head h2 {
  margin: 0; font-size: 19px; font-weight: 700; color: var(--navy);
  font-family: var(--font-display);
}

.gd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: 12.5px; color: var(--text-secondary); }
.gd-meta span { background: var(--light-gray); border-radius: 999px; padding: 3px 10px; }
.gd-meta__score { background: var(--tint-ok-bg); color: var(--tint-ok-ink); font-weight: 600; }

.gd-why {
  border-left: 3px solid var(--teal); background: var(--tint-ok-bg);
  padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 12px;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.55;
}
.gd-why b { color: var(--navy); }
.gd-note {
  border-left: 3px solid var(--amber); background: var(--tint-med-bg);
  padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 12px;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.55;
}
.gd-note b { color: var(--navy); }

.gd-shot {
  margin: 0 0 14px; background: var(--light-gray); border: 1px solid var(--medium-gray);
  border-radius: 10px; padding: 10px;
}
.gd-shot__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.gd-shot__url {
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px;
  color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gd-shot__tag { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.gd-shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--medium-gray); }
.gd-shot figcaption { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

.gd-steps { padding-left: 0; margin: 0 0 14px; list-style: none; counter-reset: gd-s; display: grid; gap: 8px; }
.gd-steps li {
  counter-increment: gd-s; position: relative; padding-left: 34px;
  min-height: 24px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55;
}
.gd-steps li::before {
  content: counter(gd-s); position: absolute; left: 0; top: 1px;
  background: var(--navy); color: var(--white); border-radius: 50%;
  width: 22px; height: 22px; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.gd-good { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
@media (max-width: 560px) { .gd-good { grid-template-columns: 1fr; } }
.gd-good > div { background: var(--light-gray); border: 1px solid var(--medium-gray); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text-secondary); }
.gd-good__h { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; font-weight: 700; }
.gd-good__ok .gd-good__h { color: var(--tint-ok-ink); }
.gd-good__no .gd-good__h { color: var(--red); }

.gd-check {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
  background: var(--light-gray); border: 1px solid var(--medium-gray);
  border-radius: 8px; margin: 0 0 8px; font-size: 13px; color: var(--text-secondary);
}
.gd-check.done { background: var(--tint-ok-bg); border-color: transparent; color: var(--tint-ok-ink); }
.gd-check__mark { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.gd-check.done .gd-check__mark .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.gd-check.todo .gd-check__mark { border: 1.5px solid var(--medium-gray); border-radius: 4px; }

.gd-manual { font-size: 12px; color: var(--text-muted); }
.gd-manual:hover { color: var(--navy); }

/* ═══ 17.50.0 — the tenant reset danger zone ═════════════════════════════
   docs/tenant_reset_spec.md, mock docs/mockups/tenant_reset_mock.html.
   A palette of its OWN rather than the product's --red: the mock's crit
   family is warmer and darker than the score-band red, and the score bands
   are read as data while this is read as a warning. Four tokens, scoped to
   the block, so nothing here can bleed into a chart.
   Present on Dev1 only - the card is not rendered without
   OPTI_TENANT_RESET_ENABLED, and neither is the route it posts to. */
.danger {
  --crit: #B3261E; --crit-ink: #8C1D16; --crit-bg: #FCEEED; --crit-line: #F0C9C6;
  margin-top: 22px; background: var(--white);
  border: 1px solid var(--crit-line); border-radius: 12px; overflow: hidden;
}
.danger__head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--crit-line); background: var(--crit-bg);
}
/* Stroke SVG, like every other icon in the product. No emoji. */
.danger__head svg {
  width: 17px; height: 17px; flex: none; fill: none; stroke: var(--crit);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.danger__head h3 { margin: 0; font-size: 14.5px; color: var(--crit-ink); }
.danger__devbadge {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #8a6d00; background: #F8E9B8; border-radius: 99px; padding: 3px 10px;
}
.danger__body {
  padding: 16px 20px; display: flex; gap: 18px; align-items: flex-start;
}
.danger__body p {
  margin: 0; font-size: 13.5px; color: var(--crit-ink); max-width: 470px;
}
.btn-danger {
  margin-left: auto; flex: none; background: var(--crit); color: var(--white);
  border: 0; border-radius: 7px; padding: 9px 16px; font-size: 13.5px;
  font-weight: 700; cursor: pointer;
}
.btn-danger:hover { background: var(--crit-ink); }
.btn-danger[disabled] { opacity: .45; cursor: not-allowed; }
.btn-danger:focus-visible { outline: 2px solid var(--crit-ink); outline-offset: 2px; }

/* The confirmation dialog. `position: fixed` rather than the mock's inline
   overlay - the mock draws it open beside the card to show both at once; in
   the product it is a modal over the page. */
.reset-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(11, 18, 35, .55);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 44px 16px; overflow-y: auto;
}
.reset-overlay[hidden] { display: none; }
.reset-modal {
  background: var(--white); border-radius: 14px; max-width: 480px; width: 100%;
  border-top: 4px solid var(--crit); box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  padding: 22px 24px;
}
.reset-modal h4 { margin: 0 0 4px; font-size: 16.5px; color: var(--crit-ink); }
.reset-modal__sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 14px; }
/* The ledger. Two columns that say the same thing twice from opposite
   sides, because "what survives" is the half an administrator is actually
   uncertain about. */
.reset-cols { display: flex; gap: 12px; margin-bottom: 14px; }
.reset-col { flex: 1; border-radius: 9px; padding: 10px 12px; font-size: 12.5px; }
.reset-col b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.reset-col ul { margin: 6px 0 0; padding-left: 16px; }
.reset-col li { margin: 2px 0; }
.reset-col--del { background: var(--crit-bg); border: 1px solid var(--crit-line); color: var(--crit-ink); }
.reset-col--keep { background: #EDF7F2; border: 1px solid #CBE7DA; color: #0B5B3E; }
.reset-warnline {
  font-size: 12.5px; color: var(--crit-ink); background: var(--crit-bg);
  border-radius: 7px; padding: 8px 10px; margin: 0 0 14px;
}
.reset-confirm label { display: block; font-size: 12.5px; color: var(--text-primary); margin-bottom: 6px; }
.reset-confirm code { background: var(--light-gray); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.reset-confirm input {
  width: 100%; border: 1.5px solid var(--medium-gray); border-radius: 7px;
  padding: 9px 11px; font-size: 14px; margin-bottom: 14px;
}
.reset-confirm input:focus { outline: none; border-color: var(--crit); }
.reset-modal__row { display: flex; gap: 10px; justify-content: flex-end; }
.btn-ghost {
  background: var(--light-gray); color: var(--text-primary);
  border: 1px solid var(--medium-gray); border-radius: 7px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.btn-ghost:hover { background: var(--medium-gray); }

/* ── console redesign (17.51.0) - begin ──────────────────────────────────
   Management-console visual system (spec 2026-08-18). Every selector in
   this block starts from a console-scoped CLASS - zero bare element
   selectors - so the frozen desktop-layout rules stay untouched by
   construction, not by discipline. Pills reuse the tint token pairs; the
   danger button already exists in the btn family above. */

/* Table rhythm: one pair of vars carries the cell padding everywhere. */
.console-table {
  --ct-pad-y: 7px;
  --ct-pad-x: 12px;
  width: 100%; border-collapse: collapse;
}
.console-table th,
.console-table td { padding: var(--ct-pad-y) var(--ct-pad-x); }
.console-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--white);
  box-shadow: 0 1px 0 var(--medium-gray);
}

/* Action column: a TWO-column grid of small buttons (17.51.1 - the
   five-deep stack made every row five buttons tall). The primary action
   spans the full width on its own line; the licence levers pair up
   below it. The container owns the width so rows line up. */
.console-table .action-cell { text-align: right; vertical-align: top; width: 1%; }
.action-stack {
  display: inline-grid; grid-template-columns: repeat(2, minmax(94px, 1fr));
  gap: 4px; min-width: 196px; text-align: center;
}
.action-stack .btn { width: 100%; padding-top: 4px; padding-bottom: 4px; }
/* Two-phase POSTs sit in the stack as forms; contents lets their buttons
   join the grid directly so every control shares the cell rhythm. */
.action-stack form { display: contents; }
/* The row's first control - Open, or Resend on an invited row - reads as
   THE action and takes the full line; keyed on position, not on colour,
   because an expired row demotes Open to secondary. */
.action-stack > *:first-child,
.action-stack > form:first-child > .btn { grid-column: 1 / -1; }

/* 17.57.25: Portfolio inherits nowrap from the last table cell. Long
   action labels must wrap inside their own grid target, not paint over
   the neighbouring button. The grid gap also replaces the older inline
   button margin, which otherwise pushes Users into the next column. */
.pf__acts .action-stack .btn {
  min-width: 0; white-space: normal; overflow-wrap: anywhere;
  justify-content: center; margin-left: 0; padding-left: 6px; padding-right: 6px;
}

/* Slim separate column for destructive actions (btn--danger lives here). */
.console-table .cell-danger {
  text-align: right; vertical-align: top;
  width: 1%; white-space: nowrap;
}

/* Semantic pill modifiers (compose with .pill): licence/state at a glance. */
.pill--ok    { background: var(--tint-ok-bg);   color: var(--tint-ok-ink); }
.pill--muted { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.pill--warn  { background: var(--tint-med-bg);  color: var(--tint-med-ink); }
.pill--bad   { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }

/* Org ids: first8 in monospace, full GUID on the clipboard via .id-copy. */
.org-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--dark-gray); letter-spacing: .2px;
}
.id-copy {
  border: none; background: transparent; cursor: pointer;
  padding: 0 4px; font-size: 12px; color: var(--navy);
  border-radius: 4px; vertical-align: baseline;
}
.id-copy:hover { background: var(--light-gray); }
.id-copy:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.id-copy.is-copied { color: var(--tint-ok-ink); }

/* Page header pattern: title + row-count chip + the page's primary CTA. */
.page-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.page-head h1 { margin: 0; }
.head-count {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--tint-navy-bg); color: var(--tint-navy-ink);
  font-size: 12px; font-weight: 600;
}
.page-head .head-cta { margin-left: auto; }
/* 19.4.4: the phone stacks the header (.page-header, above); the row's own centring must not centre the stacked title block. */

/* Usage bars for the limits sub-row (plain CSS, no JS). */
.usage-bar {
  height: 6px; max-width: 180px; border-radius: 3px;
  background: var(--medium-gray); overflow: hidden;
}
.usage-bar .usage-bar__fill {
  display: block; height: 100%; border-radius: 3px;
  background: var(--teal-dark);
}
.usage-bar .usage-bar__fill.is-warn { background: var(--amber); }
.usage-bar .usage-bar__fill.is-bad  { background: var(--red); }

/* Licence-health filter chips (spec §C): plain links, active = filled. */
.health-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.health-chip {
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--light-gray); color: var(--text-primary);
  border: 1px solid var(--medium-gray);
}
.health-chip:hover { background: var(--medium-gray); text-decoration: none; }
.health-chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Form utilities: the classes that replace the console's inline styles. */
.console-section { margin-bottom: 16px; }
.console-title { margin-top: 0; font-size: 1rem; }
.console-title--gap { margin-top: 18px; }
.console-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.console-form .field label { display: block; margin-bottom: 2px; }
.console-form input, .console-form select { padding: 6px 10px; font-size: 0.875rem; }
.console-form .grow { flex: 1; min-width: 200px; }
.console-input--id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; width: 260px; max-width: 100%; }
.console-input--email { width: 220px; }
.console-input--days { width: 4.5em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.form-grid label { display: block; margin-bottom: 2px; }
.form-grid input, .form-grid select { width: 100%; padding: 6px 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fieldset-plain { margin: 18px 0 0; border: 0; padding: 0; }
.fieldset-plain legend { padding: 0; margin-bottom: 6px; }
.radio-row { display: block; margin-bottom: 8px; }
.card--error { border-left: 3px solid var(--red); margin-bottom: 16px; }
.table-filter { margin-bottom: 10px; padding: 6px 10px; width: 260px; max-width: 100%;
                border: 1px solid var(--medium-gray); border-radius: 6px; font-size: 14px; }
/* ── console redesign (17.51.0) - end ──────────────────────────────── */
/* 19.4.4 ui lane: the stacked page header is not centred on the phone (every page that uses both classes) */
@media (max-width: 768px) { .page-header.page-head { align-items: stretch; } }

/* ── surfaces round 1 (17.54.0) - begin ──────────────────────────────────
   The console visual system applied to the tenant daily drivers (spec
   2026-08-20 v3). Same contract as the console block above: every
   selector class-scoped, zero bare element selectors, no new colours. */

/* Scan history (chunk 1): the toolbar that replaced the file's inline
   flex, the checkbox column width, and the filter's escape hatch over
   the Alpine older-rows fold. */
.sc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sc-toolbar .table-filter { margin-bottom: 0; flex: 1; max-width: 320px; }
.sc-checkcol { width: 40px; }
.sc-more { margin-top: 8px; }
.sc-note { margin-top: 8px; }
.is-filtering .scan-row--older { display: table-row; }

/* Dashboard (chunk 2): the header's "View full progress" link kept its
   underline; only the inline style moved here. */
.head-link { text-decoration: underline; }

/* Auditor binder (chunk 4): the language-status markers joined the pill
   vocabulary; these two rules carry over the anatomy the lchips drew -
   the baseline row and the small de-italicised sub-label. */
.binder-langtab .pill { display: inline-flex; align-items: baseline; gap: 5px; }
.binder-langtab .pill i { font-style: normal; font-weight: 500; opacity: .7; font-size: 10.5px; }

/* Workspace seed-localization wait card (17.54.2): shown INSTEAD of the
   English seed while the document is rewritten into the workspace's
   language; the spinner reuses the wsxspin keyframes the upload drop
   already ships (with its reduced-motion guard mirrored). */
.wsx-seedwait { padding: 48px 16px; text-align: center; }
.wsx-seedwait__spin::after { content: ""; display: inline-block; width: 22px; height: 22px;
  border: 3px solid var(--teal); border-top-color: transparent; border-radius: 50%;
  animation: wsxspin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .wsx-seedwait__spin::after { animation: none; } }

/* CyFun tree (17.54.4, OptiTester run #6): a requirement row carries id +
   KEY + title + assurance + owner chips + D/I badges - ~490px of nowrap
   flex children on a 283px track at 375px viewport, so the tail spilled
   108px past the screen. Measured live, not guessed: the owner chips
   (190px) are the widest child. Under 480px the row wraps (chips and
   badges drop to a second line); min-width:0 lets the title shrink
   instead of hoarding its longest word. Desktop rows never wrap - the
   column is wider than the children's sum. */
.req__link .req__title { min-width: 0; }
@media (max-width: 480px) {
  .req__link { flex-wrap: wrap; }
  /* The toolbar's search-and-buttons cluster is its own nowrap flex
     row (469px) - the second layer the measurement exposed once the
     rows stopped being the widest thing. */
  .tree-expand { flex-wrap: wrap; }
}
/* ── surfaces round 1 (17.54.0) - end ─────────────────────────────────── */
/* DNSC workbook: a bounded extension of the Reports binder card. */
.dnsc-export { margin-top: 18px; overflow-wrap: anywhere; }
.dnsc-export p { max-width: 90ch; }
.dnsc-selection { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0 10px; }
.dnsc-selection label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-weight: 600; }
.dnsc-selection label:first-child { flex: 1 1 320px; }
.dnsc-selection select, .dnsc-selection input { width: 100%; min-width: 0; max-width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--medium-gray); border-radius: 6px; font: inherit; color: var(--navy); background: var(--white); }
.dnsc-review { border-left: 3px solid var(--amber); padding: 12px 16px; background: var(--light-gray); margin: 16px 0; }
.dnsc-review h4 { margin: 0 0 10px; }
.dnsc-review p { margin: 8px 0; }
.dnsc-missing-fields { padding-left: 20px; margin: 12px 0; }
.dnsc-missing-fields li { margin: 5px 0; }
.dnsc-values { border: 1px solid var(--medium-gray); border-radius: 10px; background: var(--white); margin: 16px 0; }
.dnsc-values > summary { padding: 16px 18px; cursor: pointer; font: 600 16px/1.4 var(--font-display); color: var(--navy); }
.dnsc-values[open] > summary { border-bottom: 1px solid var(--medium-gray); }
.dnsc-export .dnsc-values .table-wrap { margin: 0; max-width: 100%; overflow-x: auto; border-radius: 0 0 10px 10px; }
.dnsc-values table { table-layout: fixed; }
.dnsc-values :is(th, td) { padding: 16px 14px; vertical-align: top; overflow-wrap: anywhere; }
.dnsc-values thead th { position: static; color: var(--dark-gray); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal; }
.dnsc-values tbody th { color: var(--navy); font-size: 13px; }
.dnsc-values tbody tr:last-child > * { border-bottom: 0; }
.dnsc-export .dnsc-values td { white-space: normal; }
.dnsc-control-table thead th:first-child { width: 18%; }
.dnsc-control-table thead th:nth-child(2), .dnsc-control-table thead th:nth-child(3) { width: 22%; }
.dnsc-control-link { display: inline-block; padding: 5px 7px; border-radius: 6px; color: var(--green-dark); background: var(--tint-ok-bg); }
.dnsc-score-value { display: block; margin-bottom: 8px; color: var(--navy); font: 600 24px/1.2 var(--font-display); }
.dnsc-score-value small { font-size: 13px; font-weight: 400; color: var(--dark-gray); }
.dnsc-score-status { display: inline-block; padding: 4px 8px; border-radius: 14px; background: var(--tint-navy-bg); color: var(--navy); font-size: 12px; line-height: 1.4; }
.dnsc-score-status--review { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.dnsc-score-status--missing { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.dnsc-score-note { display: block; margin-top: 8px; color: var(--dark-gray); font-size: 12px; }
.dnsc-score-note strong { color: var(--navy); }
.dnsc-score-source { margin-top: 14px; font-size: 12px; }
.dnsc-score-source summary { cursor: pointer; color: var(--navy); }
.dnsc-score-source dl { padding: 10px; border: 1px solid var(--medium-gray); border-radius: 6px; background: var(--off-white); }
.dnsc-score-source dt { color: var(--dark-gray); margin-top: 8px; }
.dnsc-score-source dt:first-child { margin-top: 0; }
.dnsc-score-source dd { margin: 3px 0 0; }
.dnsc-export .dnsc-control-table td.dnsc-comment { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.dnsc-source, .dnsc-company, .dnsc-values td, .dnsc-review-score { overflow-wrap: anywhere; }
.dnsc-export :is(a, button, select, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--navy, #12304a); outline-offset: 3px; }
/* 2026-09-17: the Reports page's "Accepted risks (exceptions)" table. The
   reason column is the one a reader actually reads, so it takes the width
   the generic data-table would spread evenly; the ratification cell is a
   reference plus a name and may wrap (data-table nowraps a last column for
   action buttons, which this table has none of). */
.risk-exceptions { table-layout: fixed; min-width: 900px; }
.risk-exceptions :is(th, td) { vertical-align: top; white-space: normal; overflow-wrap: break-word; }
.risk-exceptions th:nth-child(1) { width: 7%; }
.risk-exceptions th:nth-child(2) { width: 17%; }
.risk-exceptions th:nth-child(3) { width: 12%; }
.risk-exceptions th:nth-child(4) { width: 13%; }
.risk-exceptions th:nth-child(5) { width: 23%; }
.risk-exceptions th:nth-child(6) { width: 8%; }
.risk-exceptions th:nth-child(7) { width: 10%; }
.risk-exceptions th:nth-child(8) { width: 10%; }
.risk-exceptions td:first-child, .risk-exceptions td:nth-child(6) { white-space: nowrap; }
.risk-exceptions td:last-child { white-space: normal; overflow-wrap: anywhere; }
.risk-exceptions .rx-reason { line-height: 1.5; }
.risk-exceptions .pill { white-space: normal; line-height: 1.4; }
/* 19.0.27 (rollout build 3): the Reports page's "Exceptions by control" table
   (one row per control with an answer: what is on record, the level it allows,
   the exceptions behind it). On a phone each row becomes a small block with its
   cells labelled by their column (data-label), so nothing has to scroll sideways. */
.exceptions-by-control :is(th, td) { vertical-align: top; white-space: normal; overflow-wrap: break-word; }
.exceptions-by-control td:first-child { min-width: 180px; }
.exceptions-by-control .pill { white-space: normal; line-height: 1.4; }
@media (max-width: 600px) {
  .exceptions-by-control thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .exceptions-by-control, .exceptions-by-control tbody, .exceptions-by-control tr, .exceptions-by-control td { display: block; width: 100%; box-sizing: border-box; }
  .exceptions-by-control tr { padding: 10px 0; border-bottom: 1px solid var(--medium-gray); }
  .exceptions-by-control td { padding: 3px 12px; border: 0; overflow-wrap: anywhere; }
  .exceptions-by-control td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--text-muted); }
  .exceptions-by-control td:first-child { min-width: 0; }
}
.dnsc-exception-count { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 14px; background: var(--tint-med-bg); color: var(--tint-med-ink); font-size: 12px; white-space: nowrap; }
@media (max-width: 600px) {
  .dnsc-selection label, .dnsc-selection label:first-child { flex: 1 1 100%; }
  .dnsc-selection .btn, .dnsc-export > .btn { width: 100%; justify-content: center; }
  .dnsc-review { padding: 10px 12px; }
  /* Keep native table relationships while presenting labelled control groups. */
  .dnsc-values thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dnsc-values :is(table, tbody) { display: block; width: 100%; }
  .dnsc-values tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); padding: 8px; border-bottom: 1px solid var(--medium-gray); }
  .dnsc-values tbody tr:last-child { border-bottom: 0; }
  .dnsc-values tbody :is(th, td) { display: block; min-width: 0; padding: 10px 8px; border: 0; }
  .dnsc-values tbody th, .dnsc-values .dnsc-comment { grid-column: 1 / -1; }
  .dnsc-values td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; color: var(--dark-gray); font-size: 12px; font-weight: 600; white-space: normal; }
  .dnsc-control-link { padding: 10px 8px; }
}
/* Incident press editor: separate from the live incident refresh. */
.press-workspace { max-width: 960px; overflow-wrap: anywhere; }
.press-workspace input:not([type=checkbox]):not([type=hidden]), .press-workspace textarea:not([hidden]) { display: block; width: 100%; box-sizing: border-box; min-width: 0; margin: .4rem 0 1rem; font: inherit; padding: 8px 10px; border: 1px solid var(--medium-gray); border-radius: 6px; background: var(--white); }
.press-workspace textarea { font: inherit; line-height: 1.6; resize: vertical; }
.press-workspace label { display: block; margin-top: .6rem; font-weight: 600; color: var(--navy); }
.press-workspace select { margin: .5rem 0 1rem; }
.press-workspace .notice { margin-block: 1rem; padding: 1rem; border: 1px solid currentColor; border-radius: .5rem; }
.press-fact { border-top: 1px solid var(--border, #d9e0e6); padding-top: .5rem; }
.press-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.press-public { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Workspace usage 17.57.27: scoped, exact, server-navigable plots. */
.usage-dashboard { max-width: 1280px; margin-inline: auto; color: #001F5B; overflow-wrap: anywhere; }
.usage-dashboard p, .usage-dashboard figcaption { max-width: 78ch; line-height: 1.55; }
.usage-dashboard figure { margin: 1.2rem 0 1.8rem; }
.usage-dashboard figcaption { color: #5A6478; margin-bottom: 1.2rem; font-size: .9rem; }
.usage-dashboard h2 { font-size: 1.5rem; margin: 0 0 .7rem; }
.usage-dashboard h3 { margin: 2rem 0 .7rem; font-size: 1.15rem; }
.usage-dashboard small { display: block; font-size: .78rem; font-weight: 400; color: #5A6478; margin-top: .2rem; }
.usage-dashboard a { text-underline-offset: .2em; }
.usage-dashboard :focus-visible { outline: 3px solid #00714A; outline-offset: 3px; }
.usage-dashboard .usage-controls { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; padding: 1.2rem; background: #F4F6F9; border-radius: 8px; }
.usage-controls .field { min-width: 0; margin: 0; }
.usage-controls .field:nth-child(2) { flex: 1 1 260px; }
.usage-controls label { display: block; font-weight: 600; margin-bottom: .4rem; }
.usage-controls input, .usage-controls select { width: 100%; min-width: 0; padding: .65rem; font: inherit; border: 1px solid #5A6478; border-radius: 4px; background: #FFFFFF; color: #001F5B; }
.usage-period { display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline; margin-bottom: .4rem; }
.usage-period strong { font-size: 1.3rem; }
.usage-section { padding-block: 1.8rem; border-top: 1px solid #d9dfe8; }
.usage-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.usage-section-head p { margin: 0 0 .6rem; }
.usage-ranking { list-style: none; margin: 0; padding: 0; }
.usage-ranking li { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(80px, 2.3fr) minmax(140px, 1fr); align-items: center; gap: 1rem; margin-block: 1rem; }
.usage-track { position: relative; background: #F4F6F9; height: 18px; border-radius: 2px; }
.usage-fill { display: block; height: 100%; background: #001F5B; border-radius: 2px; }
.usage-fill--unclassified { background: repeating-linear-gradient(135deg, #5A6478 0 3px, #FFFFFF 3px 5px); }
.usage-gap { display: block; text-align: center; border: 1px dashed #5A6478; line-height: 16px; }
.usage-number { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.usage-table-scroll { overflow-x: auto; max-width: 100%; margin-top: 1rem; border: 1px solid #d9dfe8; border-radius: 5px; }
.usage-dashboard table { width: 100%; font-variant-numeric: tabular-nums; margin: 0; }
.usage-dashboard caption { text-align: left; font-weight: 600; padding: .7rem 1rem; background: #F4F6F9; }
.usage-dashboard th, .usage-dashboard td { padding: .8rem 1rem; vertical-align: top; min-width: 100px; }
.usage-dashboard th[scope="row"] { text-align: left; min-width: 180px; }
.usage-month-columns { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; }
.usage-month-columns > a, .usage-day-columns > a { display: flex; flex-direction: column; align-items: center; min-width: 0; text-decoration: none; font-size: .8rem; border-radius: 4px; padding: .4rem .2rem; font-variant-numeric: tabular-nums; }
.usage-month-columns > a[aria-current], .usage-day-columns > a[aria-current] { outline: 2px solid #00714A; background: #F4F6F9; }
.usage-month-columns > a:hover, .usage-day-columns > a:hover { background: #F4F6F9; text-decoration: underline; }
.usage-column-track { display: flex; align-items: end; justify-content: center; height: 130px; width: 100%; margin-block: .5rem; border-bottom: 1px solid #5A6478; }
.usage-column-track > span { display: block; width: 65%; background: #001F5B; min-height: 0; }
.usage-column-track > .usage-column-gap { background: transparent; height: 100%; border-inline: 1px dashed #5A6478; text-align: center; }
.usage-month-columns small { text-align: center; font-size: .68rem; }
.usage-day-columns { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: .4rem; }
.usage-day-columns .usage-column-track { height: 75px; }
.usage-day-columns .usage-column-track > span:not(.usage-column-gap) { background: #00714A; }
.usage-kind-bars { max-width: 900px; }
.usage-kind-bars > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 3fr) minmax(70px, 1fr); align-items: center; gap: .8rem; margin-block: .8rem; }
.usage-kind-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.usage-exact { margin-block: 1.5rem; }
.usage-exact > summary { cursor: pointer; color: #001F5B; font-weight: 600; padding: .65rem 0; }
.usage-warning { border-left: 3px solid #5A6478; padding: .7rem 1rem; background: #F4F6F9; }
.usage-select-hint { padding-block: 1rem; }
@media (max-width: 900px) {
  .usage-month-columns { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem .4rem; }
  .usage-day-columns { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .usage-controls .field, .usage-controls .field:nth-child(2) { flex: 1 1 100%; }
  .usage-ranking li { grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr); gap: .4rem .7rem; margin-block: 1.3rem; }
  .usage-ranking .usage-track { grid-column: 1 / -1; grid-row: 2; }
  .usage-ranking .usage-number { grid-column: 2; grid-row: 1; }
  .usage-month-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-kind-bars > div { grid-template-columns: minmax(90px, 1fr) minmax(30px, 1fr) minmax(60px, .7fr); gap: .5rem; font-size: .85rem; }
  .usage-day-columns { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* Company risk strategy retains controlled-document prose and line breaks. */
.ci-risk-strategy { min-width:0; margin-bottom:24px; }
.ci-risk-strategy p { max-width:78ch; }
.ci-risk-strategy__value, .ci-risk-strategy__fields dd { white-space:pre-wrap; overflow-wrap:anywhere; }
.ci-risk-strategy__fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px; }
.ci-risk-strategy__fields dt { font-weight:600; }
.ci-risk-strategy__fields dd { margin:6px 0 0; }
.ci-risk-strategy__warning { border-left:3px solid var(--warning,#b7791f); padding:8px 12px; }
.ci-risk-strategy .ci-profile__actions { flex-wrap:wrap; }

/* MFA human review follows the existing white workspace and navy/green hierarchy. */
.mfa-review { min-width:0; overflow-wrap:anywhere; }
.mfa-review p { max-width:78ch; }
.mfa-review .page-header { display:block; }
.mfa-review__status { border-left:3px solid var(--teal); padding:12px 16px; background:#f5faf8; margin:12px 0; }
.mfa-review__status[data-review-state="unable_to_verify"], .mfa-review__status[data-review-state="needs_review"] { border-color:#b7791f; background:#fffbf2; }
.mfa-review__status ul { margin:6px 0 0; padding-left:20px; }
.mfa-review__boundary { color:var(--text-secondary); }
.mfa-review__section { background:white; border:1px solid #e2e7ee; border-radius:8px; margin:24px 0; padding:24px; }
.mfa-review__section h2 { margin-top:0; }
.mfa-review__policy { border-top:1px solid #e2e7ee; padding:14px 0; }
.mfa-review__policy summary { cursor:pointer; font-weight:600; color:var(--navy); }
.mfa-review__policy summary span { display:block; font-size:12px; font-weight:400; color:var(--text-secondary); margin-top:4px; }
.mfa-review dl { display:grid; grid-template-columns:minmax(140px,1fr) minmax(0,2fr); gap:8px 20px; max-width:900px; }
.mfa-review dt { color:var(--text-secondary); }
.mfa-review dd { margin:0; white-space:pre-wrap; }
.mfa-review fieldset { border:0; padding:0; min-width:0; }
.mfa-review label { display:block; font-weight:600; margin:12px 0 6px; }
.mfa-review textarea, .mfa-review select, .mfa-review input[type="date"] { width:100%; max-width:100%; box-sizing:border-box; border:1px solid #c9d2df; border-radius:5px; background:white; color:var(--text-primary); padding:10px 12px; font:inherit; }
.mfa-review textarea { resize:vertical; }
.mfa-review input[type="date"] { width:auto; }
.mfa-review__exception { margin:20px 0!important; border-left:2px solid #dbe3ed!important; padding:0 0 12px 16px!important; }
.mfa-review__exception legend { color:var(--navy); font-weight:600; padding:0 8px 0 0; }
.mfa-review__fields { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.evlib__pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:16px 0; }
.mfa-review .mfa-review__evidence-option { display:flex; align-items:flex-start; gap:12px; border-top:1px solid #e2e7ee; padding:12px 0; font-weight:400; }
.mfa-review__evidence-option input { flex:0 0 auto; margin-top:4px; }
.mfa-review__evidence { display:flex; justify-content:space-between; gap:20px; padding:14px 0; border-top:1px solid #e2e7ee; }
.mfa-review small { display:block; color:var(--text-secondary); font-size:12px; margin-top:5px; }
.mfa-review .btn { white-space:normal; margin:12px 0; }
.mfa-review :focus-visible { outline:3px solid #58bfe4; outline-offset:3px; }
.mfa-review__reopen { margin-top:24px; padding-top:12px; border-top:1px solid #e2e7ee; }
.mfa-review__history { border-top:1px solid #e2e7ee; padding:12px 0; }
.mfa-review__history summary { cursor:pointer; }
@media(max-width:600px) {
  .mfa-review__section { padding:16px; }
  .mfa-review__fields, .mfa-review dl { grid-template-columns:minmax(0,1fr); }
  .mfa-review dd { margin-bottom:10px; }
  .mfa-review__evidence { flex-direction:column; gap:8px; }
}

/* Evidence row: download + text preview (control page) */
.evidence__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.evidence__actions > div { flex-basis: 100%; }
.evprev { margin-top: 6px; border: 1px solid var(--border, #d9dee3); border-radius: 6px; background: var(--card, #fff); }
.evprev__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border, #d9dee3); }
.evprev__body { max-height: 420px; overflow: auto; padding: 8px 12px; font-size: 0.92em; }
.evprev__body table { border-collapse: collapse; margin: 6px 0; }
.evprev__body td, .evprev__body th { border: 1px solid var(--border, #d9dee3); padding: 2px 6px; vertical-align: top; }

/* 2026-09-13: the total-average conformity marker. It sits with a number that
   is already on the page (the dashboard hero, the two Progress "Overall"
   cards) and says which side of the PROFILE'S AVERAGE TARGET that number
   falls on - a different question from the per-control progress target the
   bars and ticks around it use. Muted so it reads as a caption rather than a
   third metric; only the verdict word carries colour. */
.avgtgt { margin-top: 4px; font-size: 0.82em; color: var(--text-muted, #6b7280); }
.avgtgt__mark { font-weight: 700; }
.avgtgt__mark--met { color: #1b7f4b; }
.avgtgt__mark--below { color: var(--red); }

/* -- Usage and limits card (Settings, 2026-09-14) ----------------------
   Two lines per limit: the label and used / limit on the first, the bar
   and the reset wording on the second. NOT one four-column row, which is
   what this started as and which the first render refused: the card sits
   in the Settings page's packed COLUMNS (.detail__grid--packed), so it is
   about 300px wide on a laptop, and four columns there hyphenated
   "Files uploaded this month" down four lines and squeezed the bar to
   nothing. Two lines cost one extra line of height and stay readable at
   any width the card can take.

   The bar itself is .usage-bar, which the MSP console already ships: the
   two surfaces show the same fraction of the same allowance, and a second
   bar drawn from its own rules is how one of them ends up amber where the
   other is red. Only its max-width is relaxed here, because this card has
   a whole column and the console has a crowded sub-row.

   The second line is absent entirely for an unlimited row - there is no
   fraction to draw and nothing resets - rather than rendered empty, which
   would leave seven blank lines on an untiered workspace. */
.usage-rows { display: grid; gap: 10px; margin-top: 6px; }
.usage-row__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
}
.usage-row__label { min-width: 0; }
.usage-row__value {
  white-space: nowrap; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.usage-row__value .muted { font-weight: 400; }
.usage-row__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 4px;
}
.usage-row__bar { flex: 1 1 auto; min-width: 0; }
.usage-row__bar .usage-bar { display: block; max-width: 100%; }
.usage-row__reset { flex: 0 1 auto; text-align: right; }
@media (max-width: 420px) {
  /* One more fold: the reset sentence is a whole clause in Romanian and
     would otherwise leave the bar a sliver. */
  .usage-row__meta { flex-direction: column; align-items: stretch; gap: 3px; }
  .usage-row__reset { text-align: left; }
}

/* The console's limits sub-row is a flex row (.pf-sub, above) and
   .usage-bar carries no width of its own - it is a bare span whose only
   child is a percentage-width fill - so every bar in that row measured 0px
   and has been invisible since 17.51.0 shipped the sub-row with two of
   them. Measured, not guessed: getBoundingClientRect on all six reported
   width 0 with fills of 0%, 49%, 88%, 100%, 100%, 0%.

   Fixed here rather than on .usage-bar itself, because the other two
   places it is used (the usage page and the Settings card) are grid or
   block contexts where the element already has a width to fill, and a
   width on the shared class would override them. A fixed basis rather
   than flex:1 so the row's own wrapping is unchanged: this sub-row has
   eight labelled inputs on it and a bar that grew would push one onto a
   line of its own. */
.pf-sub .usage-bar { flex: 0 0 110px; width: 110px; }

/* ── progress cosmetics (2026-09-14) ── */
/* Dev1 screenshot review. Three cosmetic asks, appended here so the lanes
   working elsewhere in this file merge cleanly. The two declarations that
   could NOT be appended (`.prog-summary`'s track count and
   `.prog-keydetails__list a`'s colour) were extended in place instead, for
   the reason the comment beside each gives: tests/support/css.py's `_rule`
   reads the FIRST block for a selector. */

/* 1. The ladder card's score, moved from its foot into its header.
   `margin-right: auto` is what keeps the "CyberFundamentals 1-5 scale" hint
   on the right edge: `.prog-functions__head` is `justify-content:
   space-between`, so without it the score would be pushed to the middle of
   the header instead of sitting against the title. The two colours are the
   product's ok/crit tint INKS - the same pair `.pill--ok` / `.pill--bad`
   and the workbook card's criterion boxes carry - not a new red and green. */
.matscore {
  margin-left: 8px; margin-right: auto;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.matscore--ok { color: var(--tint-ok-ink); }
.matscore--bad { color: var(--tint-crit-ink); }

/* 2. Every control id in the workbook card reads red, because every one of
   them names a gap: the two inline "below criterion" runs, the ids inside
   the two collapsed disclosures, and the id cell of the dashboard's failing
   key-measure rows. Owner correction of 2026-09-14: THE IDS, and nothing
   else. The sentences around them - "Review key measures needing attention
   →", "Learn more about key measures", the failing rows' titles - are not
   gaps and keep the product's link teal and body ink, so this is one class
   on the id elements rather than a colour on their containers.

   One class rather than a rule per container, and a class rather than
   `.muted.small b`: the criteria headings in this same card ("Each key
   measure: D/I mean") are <b> inside the same `.muted.small` divs, and a
   rule on the element would have reddened the criteria too.

   (2026-10-16: the dashboard's `.kpi-keylist` failing rows are gone; the same holds for any id span inside a link that
   sets its own colour - a directly-applied colour beats the anchor's inherited one.) */
.prog-gapid { color: var(--red); }

/* 3. The KPI row: a 2x2 block of the four short cards on the left half, the
   workbook card spanning the right half over both rows. `grid-row: 1 / 3`
   plus the grid's default `align-items: stretch` is what makes the workbook
   card full height of the block rather than a tall card with a gap under it.
   The workbook card is matched on its data attribute rather than
   `:nth-child(5)` so a fifth short card could never silently take its slot. */
.prog-summary > .prog-summary__card:nth-child(1) { grid-column: 1; grid-row: 1; }
.prog-summary > .prog-summary__card:nth-child(2) { grid-column: 2; grid-row: 1; }
.prog-summary > .prog-summary__card:nth-child(3) { grid-column: 1; grid-row: 2; }
.prog-summary > .prog-summary__card:nth-child(4) { grid-column: 2; grid-row: 2; }
.prog-summary > [data-workbook-assessment] { grid-column: 3 / -1; grid-row: 1 / 3; }

/* Below 900px everything stacks, as it did before. The reset repeats the
   nth-child selectors rather than a bare `.prog-summary__card`: the placement
   rules above are (0,3,0) and a (0,2,0) override would lose to them at every
   width. NOT a new phone tier - 640px stays the product's one phone
   boundary (tests/test_mobile_layout_rules.py pins that there are exactly
   two blocks with that prelude). */
@media (max-width: 900px) {
  .prog-summary { grid-template-columns: 1fr; }
  .prog-summary > .prog-summary__card:nth-child(1),
  .prog-summary > .prog-summary__card:nth-child(2),
  .prog-summary > .prog-summary__card:nth-child(3),
  .prog-summary > .prog-summary__card:nth-child(4),
  .prog-summary > [data-workbook-assessment] { grid-column: 1 / -1; grid-row: auto; }
}

/* 4. The maturity ladder keeps its natural height (owner, Dev1, 2026-09-14).
   17.47.0 gave `.dashboard-row` `align-items: stretch` so a short card would
   not sit beside a tall one at two unrelated heights, and paired it with a
   growing region inside each card. On row 2 that made the FIVE LEVEL BOXES
   the growing region: `.dashboard-mat .matrow { flex: 1 1 auto }` (since removed with the
   unused `.dashboard-mat` card) shared the workbook card's surplus height across them, and every box came out padded
   to roughly twice the height of its two lines of text.

   Row 2 only, and by exception rather than by editing the base rule: row 3's
   three cards still open on one rhythm and still stretch, which is the half
   of 17.47.0 that was right. `:not(.dashboard-row--thirds)` is (0,2,0), so
   it beats `.dashboard-row`'s own `stretch` without touching it - and the
   markup is untouched too, which matters because
   tests/routers/test_cleanup_consistency.py pins the literal
   `class="dashboard-row"` on this section.

   The growing regions inside stay exactly as they are: a flex column with no
   surplus hands its children none, so `flex: 1 1 auto` on the ladder rows is
   simply inert here, while `.dashboard-fn .hbars` in row 3 still needs it. */
.dashboard-row:not(.dashboard-row--thirds) { align-items: start; }

/* 5. The workbook card's failing-rows disclosure. `.kpi-foot`'s `margin-top: auto` is inert inside a <details> - it is a
   plain block inside the disclosure now, and the dashed rule above it is the separation it was always drawing.
   (2026-10-16: the `.kpi-keylist` margins restated here went with the dashboard's failing-rows list.) */
.prog-keydetails > .kpi-foot { margin-top: 6px; }

/* ── company docs lane (2026-09-14) ── */
/* Per-file actions on the Company documents card. The row was a name and a
   date with nothing to press; the actions ride INSIDE it, after the meta
   column, so it stays one object the eye reads left to right (icon, name,
   actions) instead of becoming a two-column table of one file. They are quiet
   text links, not buttons: three buttons per row in a card 340px wide would
   outweigh the drop zone above them, and the primary act on this card is
   still "add a file". */
.ci-src__acts { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; flex: none; }
.ci-src__act { font-size: 10.5px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.ci-src__act:hover { text-decoration: underline; }
.ci-src__act--del { color: var(--text-secondary); }
.ci-src__act--del:hover { color: var(--red); }
/* A row that carries actions is one FILE ROW, full width of the card, rather
   than one of two chips sharing a line: the name was already capped at 280px
   of a 340px chip, so two text links beside it pushed the row past the card's
   edge. The name gives up the fixed cap and shrinks to whatever the actions
   leave (min-width:0 is what lets a flex child ellipsise at all). */
.ci-src { max-width: 100%; width: 100%; }
.ci-src .meta { min-width: 0; flex: 1 1 auto; }
.ci-src .name, .ci-src small { max-width: 100%; }
/* The delete confirmation, under the list. The evidence library's
   .doc-rm__confirm shape at this card's smaller scale. */
.ci-rm { margin-top: 10px; border: 1px solid var(--red); border-left-width: 3px;
  border-radius: 0 8px 8px 0; background: #FDF4F5; padding: 9px 11px; }
.ci-rm p { margin: 0 0 5px; font-size: 11.5px; color: var(--text-secondary); }
.ci-rm__q { font-weight: 800; color: var(--navy); font-size: 12.5px; }
.ci-rm__name { font-weight: 700; color: var(--navy); word-break: break-word; }
.ci-rm__err { color: var(--red); font-weight: 700; }
.ci-rm__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ci-rm__acts form { margin: 0; }

/* Risk page, two cards (2026-09-14). The mockup's rules, moved in as they
   were: one grid, two cards, stacked below 900px so the page reads at 375
   without either card ever being narrower than its own buttons. */
.rk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px; align-items: start; }
@media (max-width: 900px) { .rk-grid { grid-template-columns: 1fr; }
  /* Alex's phone shot (17.57.56): once the cards stack, the Methodology
     card's two secondary buttons take the full width like the ENIRE card's. */
  .rk-acts .btn { width: 100%; justify-content: center; text-align: center; } }
.rk-card { padding: 18px 20px; margin-bottom: 0; }
.rk-card h2 { margin: 0 0 2px; font-size: 16px; }
.rk-card h3 { margin: 10px 0 4px; font-size: 12.5px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .04em; }
.rk-doc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
/* The adoption chip. Three states, three readings: a reference we shipped
   (amber - nobody has decided anything yet), the company's own saved method
   (green), or a method mid-change (grey). */
.rk-chip { display: inline-flex; align-items: center; font-size: 10.5px;
  font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 9px; border: 1px solid transparent; }
.rk-chip--ref { background: #FFF4E0; color: #8A5808; border-color: #E8C98A; }
.rk-chip--adopted { background: #E7F5EC; color: #1F7A34; border-color: #A9D8B9; }
.rk-chip--review { background: var(--off-white); color: var(--text-secondary);
  border-color: var(--medium-gray); }
/* The methodology itself, quoted rather than set as another paragraph: it is
   the one piece of text on the card the customer did not write. */
.rk-body { font-size: 12.5px; color: var(--navy); background: var(--off-white);
  border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0;
  padding: 9px 12px; margin: 0 0 12px; white-space: pre-line; }
.rk-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  margin: 0 0 14px; font-size: 12px; }
.rk-fields > div { display: contents; }
.rk-fields dt { color: var(--text-secondary); }
.rk-fields dd { margin: 0; color: var(--navy); font-weight: 700; }
.rk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rk-help { margin: 8px 0 0; }
.rk-sub { margin: 0 0 12px; }
.rk-approvals { font-size: 12px; margin-bottom: 10px; }
/* One primary and two secondaries, one under the other and full width: the
   order of the three IS the order of the work. */
.rk-stack { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.rk-stack .btn { width: 100%; justify-content: center; text-align: center; }
.rk-stack .rk-help { margin: 0 0 2px; }
.rk-note { font-size: 11.5px; color: var(--text-muted); margin: 14px 0 0;
  padding-top: 10px; border-top: 1px solid var(--light-gray); }

/* The Company documents card's text preview page. The extracted text is the
   only thing on it, so it gets the room: a monospace block that wraps rather
   than scrolling sideways, capped so a 200-page policy cannot make the tab
   unusable. */
.cdp__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: space-between; padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray); margin-bottom: 12px; }
.cdp__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cdp__text { margin: 0; max-height: 70vh; overflow: auto; white-space: pre-wrap;
  word-break: break-word; font-size: 12.5px; line-height: 1.55; color: var(--navy);
  background: var(--off-white); border: 1px solid var(--light-gray);
  border-radius: 8px; padding: 12px 14px; }
.cdp__none { margin: 0; }

/* ── promote translation (2026-09-14) ── */
/* "Make Romanian the controlled document". A sibling of the binder gate
   above it and deliberately quieter: the gate is the routine act, this one
   swaps which text an auditor reads, so it is teal rather than amber and its
   confirm step is the only thing on this pane that is ever primary-coloured.
   Same box, same wrap rules and the same flex row as .wsx-tgate, so a pane
   that shows both reads as one column and not two competing banners. */
.wsx-tpromote { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; background: #F2FAFB; border: 1px solid #C7E5EA;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #0F5A66;
  margin: 10px 0; }
.wsx-tpromote form { margin: 0; }
.wsx-tpromote span { min-width: 0; overflow-wrap: anywhere; }
/* The pane's poll hides this with el.hidden when a Refresh makes the record
   unreviewed; `display: flex` above would otherwise win over [hidden], the
   same reason #ws-tgate[hidden] exists. */
#ws-tpromote[hidden] { display: none !important; }
/* The question. It has to be readable BEFORE the button is pressed, so the
   sentence gets the full width and the two answers sit under it. */
.wsx-tpromote.is-ask { display: block; border-left: 3px solid var(--teal); }
.wsx-tpromote.is-ask p { margin: 0 0 8px; line-height: 1.6; }
.wsx-tpromote.is-ask form { display: inline-block; margin-right: 8px; }
/* The one-render banner after a promotion, on the canonical side. Said once,
   in the flow of the page, because what it explains - that the approval on
   the attached file is NOT an approval of these words - is the one thing a
   reader would otherwise get wrong. */
.wsx-pbanner { margin: 8px 0 10px; padding: 9px 14px; border-radius: 10px;
  background: #F2FAFB; border: 1px solid #C7E5EA; border-left: 3px solid var(--teal);
  font-size: 12.5px; line-height: 1.6; color: #0F5A66; overflow-wrap: anywhere; }
.wsx-pbanner b { color: #8a3b0b; }

/* ── workspace redesign (2026-09-14) ── */
/* The document workspace was thirteen boxes in three columns. It is the
   document, and one rail beside it. Everything below draws that: ONE header
   strip, ONE muted notice line, TWO columns, FOUR tabs.

   The two columns keep the class names `.wsx-center` and `.wsx-sidebar`
   alongside their new ones: the column rules those two carry (the flex
   stack, the chat's non-sticky spelling inside a column, the 1100px stack
   order) are unchanged by this redesign and eleven rules already hang off
   them. `.wsx-grid` and `.wsx-rail` are NOT renamed either - document_new.html
   still draws itself with both. */

/* ── 1. ONE header strip ──────────────────────────────────────────────── */
/* Line one is identity + actions, line two the chips: the actions never fall
   to a row of their own, whatever the title or the language does. */
.wsx2-top{gap:7px 10px;margin:0 0 11px;padding-bottom:10px}
.wsx2-top .wsx-h1{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* The doc-id chip: app.css scopes its base rule to `.reg-row .did`, so the
   same declarations are repeated here, unchanged, for the header. */
.wsx2-top .did{font-family:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  font-size:11px;font-weight:600;letter-spacing:-.01em;line-height:1;
  padding:4px 9px 4px 16px;border-radius:6px;border:0;position:relative}
.wsx2-top .did::before{content:"";position:absolute;left:7px;top:50%;transform:translateY(-50%);
  width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.85}
.wsx2-chiprow{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  margin-top:-1px}
.wsx2-top .wsx-vchip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;
  border-radius:6px;line-height:1.3;white-space:nowrap}
.wsx2-top a.wsx-vchip{text-decoration:none}
.wsx2-top a.wsx-vchip:hover{border-color:var(--teal);color:var(--teal-dark)}
.wsx2-top .wsx-acts{gap:7px;flex:0 0 auto}
/* Status and version in ONE chip. Two spans, because the approve handler
   writes each half on its own. */
.wsx2-statuschip{gap:0}
.wsx2-status.is-gen{color:inherit}
.wsx2-ver{font-variant-numeric:tabular-nums}
.wsx2-langchip i{font-style:normal;font-weight:500;opacity:.75}

/* chip menus (language, overflow) */
.wsx2-menu{position:relative;display:inline-block}
.wsx2-menu>summary{list-style:none;cursor:pointer;display:inline-flex}
.wsx2-menu>summary::-webkit-details-marker{display:none}
.wsx2-menu>summary::marker{content:""}
.wsx2-pop{position:absolute;z-index:40;top:calc(100% + 7px);left:0;min-width:288px;
  max-width:min(360px,calc(100vw - 40px));
  background:var(--white);border:1px solid var(--medium-gray);border-radius:10px;
  box-shadow:0 10px 26px -12px #16233b66;padding:5px;display:flex;flex-direction:column;
  gap:2px}
.wsx2-menu--end .wsx2-pop{left:auto;right:0;min-width:210px}
.wsx2-pop>a,.wsx2-pop>button,.wsx2-pop>form>button{font-family:var(--font-body);
  font-size:12px;line-height:1.4;color:var(--navy);text-decoration:none;text-align:left;
  padding:7px 10px;border-radius:7px;display:block;width:100%;border:0;
  background:none;cursor:pointer}
.wsx2-pop>a:hover,.wsx2-pop>button:hover:not(:disabled),
.wsx2-pop>form>button:hover{background:var(--light-gray)}
.wsx2-pop>button:disabled{color:var(--text-muted);cursor:not-allowed}
/* The phone's copy of Download. `.wsx2-only-phone` alone would lose to the
   menu-item rule above it, so the hidden state is written at the same
   specificity and the phone tier flips it back. */
.wsx2-pop>a.wsx2-only-phone{display:none}
.wsx2-pop .wsx2-pop__now{font-size:10px;font-weight:800;letter-spacing:.05em;
  text-transform:uppercase;color:var(--text-muted);padding:5px 10px 3px}
.wsx2-pop .wsx2-pop__sep{height:1px;background:var(--light-gray);margin:4px 3px}
.wsx2-ov{font-size:12px;font-weight:700;line-height:1;border-radius:7px;padding:6px 9px;
  cursor:pointer;border:1px solid var(--medium-gray);background:var(--white);
  color:var(--navy)}
.wsx2-ov:hover{border-color:var(--teal);color:var(--teal-dark)}
/* The language menu is a panel rather than a list: it holds the two sides,
   the preference, the correction and the promotion, and each of those is a
   form the reader may need to read before they use it. */
.wsx2-pop--lang{padding:8px;gap:6px}
.wsx2-pop--lang .wsx-langsw{flex-direction:column;align-items:stretch;gap:4px;margin:0}
.wsx2-pop--lang .wsx-langsw__b{justify-content:space-between;margin:0;border-radius:8px}
.wsx2-pop--lang .wsx-langsw__b:first-child{border-top-right-radius:8px;
  border-bottom-right-radius:8px}
.wsx2-pop--lang .wsx-langsw__b+.wsx-langsw__b{margin-left:0}
.wsx2-pop--lang .wsx-tnote{margin:2px 0;font-size:11px;line-height:1.45}
.wsx2-pop--lang .wsx-langf{margin:0}
.wsx2-pop--lang .wsx-language-correction{margin:0}
.wsx2-pop--lang .wsx-language-correction>summary{cursor:pointer;font-size:12px;
  font-weight:700;color:var(--navy);padding:6px 4px;list-style:none}
.wsx2-pop--lang .wsx-tpromote{display:flex;flex-direction:column;gap:6px;margin:0;
  font-size:11px;line-height:1.45}

/* ── 2. ONE muted notice line ─────────────────────────────────────────── */
/* Three coloured banners became one sentence. The adoption note, the review
   count and the AI-liability notice keep their class names - they are still
   the same three facts - but none of them is a box any more. */
.wsx2-notice{margin:0 0 12px;background:var(--off-white);
  border:1px solid var(--medium-gray);border-radius:9px}
.wsx2-notice>summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;
  gap:9px;padding:8px 12px;font-size:11.5px;line-height:1.5;color:var(--text-secondary)}
.wsx2-notice>summary::-webkit-details-marker{display:none}
.wsx2-notice>summary::marker{content:""}
.wsx2-notice svg{flex:none;margin-top:2px;color:var(--text-muted)}
.wsx2-notice__t{flex:1;min-width:0}
.wsx2-notice__t a{color:var(--teal-dark)}
.wsx2-notice__d{flex:none;font-size:10.5px;font-weight:800;color:var(--text-secondary);
  border:1px solid var(--medium-gray);background:var(--white);border-radius:7px;
  padding:2px 9px;white-space:nowrap}
.wsx2-notice[open] .wsx2-notice__d{border-color:var(--navy);color:var(--navy)}
.wsx2-notice__more{border-top:1px solid var(--medium-gray);padding:9px 12px 10px 33px;
  font-size:11.5px;line-height:1.9;color:var(--text-secondary);background:var(--white);
  border-radius:0 0 8px 8px}
.wsx2-notice__more b{color:var(--navy);font-weight:700;margin-right:6px}
.wsx2-notice__more a{color:var(--teal-dark);text-decoration:none;
  border:1px solid var(--light-gray);border-radius:12px;padding:2px 9px;margin-right:5px;
  white-space:nowrap}
.wsx2-notice__more a:hover{border-color:var(--teal)}
/* 2026-09-15: the long form of the line, under the added-section links. It
   is prose, so its own links are text rather than the jump chips above. */
.wsx2-notice__long{margin:7px 0 0;line-height:1.6}
.wsx2-notice__more .wsx2-notice__long a{border:0;border-radius:0;padding:0;
  margin:0;white-space:normal;text-decoration:underline}
/* 19.0.24: the adoption lists (not covered / conflicts / kept under own
   headings) moved off the line; behind Details they are plain lists. */
.wsx2-notice__grp{margin:8px 0 0}
.wsx2-notice__grp>b{display:block;margin:0 0 2px}
.wsx2-notice__list{margin:0;padding:0 0 0 16px;line-height:1.55;columns:2;column-gap:28px}
.wsx2-notice__list li{break-inside:avoid}
/* The three facts inside the line: still marked, no longer framed. */
.wsx2-notice .wsx-adopted,.wsx2-notice .wsx-review,.wsx2-notice .wsx-srcchg,
.wsx2-notice .wsx-aidisc,.wsx2-notice .wsx2-notice__ai,
.wsx2-notice .wsx-srcnote{display:inline;background:none;
  border:0;padding:0;margin:0;font-size:inherit;line-height:inherit;color:inherit}
.wsx2-notice .wsx-adopted__note,.wsx2-notice .wsx-adopted__warn,
.wsx2-notice .wsx-review__gate,.wsx2-notice .wsx-review__src{display:inline;
  background:none;border:0;padding:0;margin:0;font-size:inherit;
  line-height:inherit}
.wsx2-notice .wsx-adopted__warn,.wsx2-notice .wsx-review__gate{color:#8a6d00;
  font-weight:600}
.wsx2-notice .wsx-review__src{margin-left:3px}
/* 2026-10-18 (owner decision 3): an adopted document's notice is a short
   list - one plain row on what came from the file, then one row per thing to
   act on. The rows are spans inside <summary>, so they are made blocks here;
   the clause spans inside them keep the inline rules of
   ".wsx2-notice .wsx-adopted,..." above. Place after those rules. */
.wsx2-notice__t .wsx2-notice__row{display:block}
.wsx2-notice__t .wsx2-notice__row+.wsx2-notice__row{margin-top:2px}
.wsx2-notice__t .wsx2-notice__act::before{content:"";display:inline-block;
  width:6px;height:6px;margin:0 7px 1px 0;border-radius:50%;background:#8a6d00;
  vertical-align:middle}
/* the accept-before-approval row empties itself (its gate goes `hidden`)
   once every addition is accepted */
.wsx2-notice__t .wsx2-notice__act:has(>[hidden]){display:none}
/* 2026-09-15: the gate is `hidden` on a document with nothing left to
   accept, and `.wsx-review__gate[hidden]` up at the approve fields is the
   SAME specificity as the flattening rule above and loses to it on order -
   so the line printed "0 added sections still need to be accepted" on every
   reviewed document, which is a whole second line of Romanian saying
   nothing. One more class here outranks it. */
.wsx2-notice .wsx-review__gate[hidden]{display:none}

/* ── 3. TWO columns: the document, and ONE tabbed rail ────────────────── */
.wsx2-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;
  align-items:start}
.wsx2-doc{min-width:0}
/* The rail follows the reader down a long document, the way the chat panel
   it replaces already did. */
.wsx2-rail{min-width:0;position:sticky;top:14px}
/* 17.57.81: a sticky rail taller than the viewport used to be CLIPPED
   (overflow:hidden) with no way to reach its tail - the Approve tab's
   readiness list on a document with 30 findings ended mid-list. The panel
   now scrolls inside the viewport instead. */
.wsx2-rail>.wsx-panel{overflow:hidden auto;max-height:calc(100vh - 28px)}
.evread__more>summary{cursor:pointer;list-style:none;padding:4px 0}
.evread__more>summary::-webkit-details-marker{display:none}
.evread__more>summary::before{content:"+ ";font-weight:700}
.evread__more[open]>summary::before{content:"− "}
.wsx2-rail .wsx-msgs{min-height:120px;max-height:340px;flex:0 1 auto}

.wsx2-tabbar{display:flex;gap:2px;padding:4px 4px 0;background:var(--off-white);
  border-bottom:1px solid var(--medium-gray);border-radius:10px 10px 0 0}
.wsx2-tab{flex:1 1 0;min-width:0;font-family:var(--font-display);font-size:10px;
  font-weight:800;letter-spacing:.04em;text-transform:uppercase;line-height:1.3;
  color:var(--text-secondary);background:none;border:0;border-radius:8px 8px 0 0;
  padding:8px 4px 7px;cursor:pointer;text-align:center;
  display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.wsx2-tab:hover{color:var(--navy);background:var(--light-gray)}
.wsx2-tab .n{font-size:9.5px;font-weight:700;letter-spacing:0;background:var(--light-gray);
  border-radius:9px;padding:0 6px;color:var(--text-secondary)}
/* The radios ARE the tab state: four inputs, one CSS sibling rule, and the
   rail works with no JavaScript at all. Off-screen rather than
   `display:none`, so the keyboard can still reach them. */
.wsx2-r{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
.wsx2-r:focus-visible~.wsx2-tabbar{outline:2px solid var(--navy);outline-offset:-2px}
.wsx2-pane{display:none}
#ws-tab-adjust:checked~#ws-pane-adjust{display:flex;flex-direction:column}
#ws-tab-records:checked~#ws-records,
#ws-tab-controls:checked~#ws-pane-controls,
#ws-tab-approve:checked~#ws-mgmt{display:block}
#ws-tab-adjust:checked~.wsx2-tabbar [for=ws-tab-adjust],
#ws-tab-records:checked~.wsx2-tabbar [for=ws-tab-records],
#ws-tab-controls:checked~.wsx2-tabbar [for=ws-tab-controls],
#ws-tab-approve:checked~.wsx2-tabbar [for=ws-tab-approve]{
  background:var(--white);color:var(--navy);box-shadow:inset 0 -2px 0 var(--teal)}
#ws-tab-records:checked~.wsx2-tabbar [for=ws-tab-records] .n{
  background:var(--tint-navy-bg);color:var(--tint-navy-ink)}
/* The panes are not `.wsx-panel` children any more, so the inset the whole
   rail is measured on is restated for them - same 13px line. */
.wsx2-pane>.wsx-qhint{padding:9px 13px 0}
.wsx2-pane>.wsx-qhint:last-child{padding-bottom:11px}
.wsx2-pane>.wsx-srcnote,.wsx2-pane>.wsx-empty{padding-left:13px;padding-right:13px}
.wsx2-pane #ws-sources>.wsx-srcnote,.wsx2-pane #ws-sources>.wsx-empty{
  padding-left:13px;padding-right:13px}
.wsx2-libline{padding:0 13px 6px}
.wsx-records>.wsx-qhint .n{margin-right:6px;vertical-align:1px}

/* A section heading inside a pane - the `.wsx-panel h3` rule, one level in. */
.wsx2-sub{font-family:var(--font-display);font-size:11px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--text-secondary);margin:0;padding:10px 13px;
  border-top:1px solid var(--medium-gray);border-bottom:1px solid var(--medium-gray);
  display:flex;align-items:center;gap:7px}
.wsx2-sub .n{margin-left:auto;font-size:10px;background:var(--light-gray);
  border-radius:10px;padding:1px 7px;color:var(--text-secondary);font-weight:600;
  letter-spacing:0;text-transform:none}
.wsx2-sub .wsx-qbtn{margin-left:auto}
.wsx2-sub+.wsx-qhint{padding-top:9px}
.wsx-qual .wsx2-sub{margin-top:4px}

/* Approve: the readiness result, shown without asking for it. The button it
   replaces asked the reader to request something the server already knows. */
.wsx2-pane>.wsx-readiness{margin:0;padding:10px 13px 0}
.wsx2-pane>.wsx-readiness:has(#ws-readiness-body:empty){padding-bottom:0}

/* 2026-09-18 (owner decision: "I like the approval panel, go ahead") - the
   Approve tab's own copy of the header button, and the summary panel it
   opens. `.wsx-approve-panel` rides on `.wsx-replace` (the house note-box,
   also used for the revert/reset/regen questions) but as a block, not that
   class's row of button + one line of text - a panel with a heading, a
   list and two actions needs its own stack. */
.wsx-approve-mgmt{padding:10px 13px}
.wsx-approve-mgmt>.wsx2-sub{padding:0 0 8px;margin:0 0 8px;border-top:0}
.wsx-approve-panel{display:block;margin-top:8px}
/* 2026-10-04 (19.0.19): the display above outranks the UA's [hidden]{display:none},
   so the "You are approving version N" panel showed before anyone pressed
   Approve. The page script reveals it by removing `hidden` (openApprovePanel). */
.wsx-approve-panel[hidden]{display:none}
.wsx-approve-panel h4{margin:0 0 6px;font-size:12.5px;font-weight:700;color:#6b5400}
.wsx-approve-panel__list{margin:0 0 8px;padding-left:18px;font-size:12px;
  color:#6b5400;line-height:1.5}
.wsx-approve-panel__list li{margin-bottom:2px}
.wsx-approve-panel #ws-approve-warn{margin:0 0 8px;padding:0;color:#8A5A00;font-weight:600}
.wsx-approve-panel__acts{display:flex;gap:8px}
/* 2026-10-04 (19.0.19): the Approve tab's "Found in your document" box. It is
   the metric cards' sky suggestion box (.wsx-rec-sugg: guidance, never a
   record) seated on this tab's own gutter; the quotation is the source's own
   words, set apart by a rule and typographic quotes (the lines of a table row
   keep their breaks). Its text classes are the .wsx-rec-sugg__* ones the
   documents family already raises to 13px; the quote is raised below. */
.wsx-prefill{margin:10px 13px 0}
.wsx-prefill__q{margin:2px 0 8px;padding:2px 0 2px 9px;border-left:3px solid var(--tint-sky-ink);
  font-size:12px;font-style:italic;line-height:1.45;color:var(--text-secondary);
  white-space:pre-line;overflow-wrap:anywhere}
.wsx-prefill__q::before{content:"\201C"}
.wsx-prefill__q::after{content:"\201D"}
.wsx-prefill__c{padding:6px 0 0}
[data-ui-family="documents"] .wsx-prefill__q{font-size:13px}

/* 2026-10-04 (19.0.21): the saved copy is behind its records. A calm warning in
   the amber tint pair the late Last review status already wears (no new
   colour): the header chip beside the records chip, and a band in the Records
   pane and the Approve tab - the sentence, then the "Refresh saved copy"
   button under it, so on a phone the text wraps in full and the button is
   one full-size tap below it. The band is a plain .wsx-qhint (13px in the
   documents family) seated on the pane's 13px gutter; both blocks are always
   in the page and `hidden` when there is nothing to say (refresh regions), so
   [hidden] is restored where a display rule would beat it. The chip is a
   .wsx-vchip, which is nowrap everywhere: this one wraps inside its own width,
   because the Romanian sentence is longer than a phone's chip row. */
.wsx-vchip.is-copy{color:var(--tint-med-ink);border-color:var(--amber);background:var(--tint-med-bg)}
.wsx2-top .wsx-vchip.is-copy{white-space:normal;max-width:100%;overflow-wrap:anywhere}
#ws-copychip[hidden]{display:none!important}
.wsx2-pane>.wsx-copy{margin:9px 13px 0;padding:8px 11px 9px;border-radius:6px;
  background:var(--tint-med-bg);color:var(--tint-med-ink)}
.wsx2-pane>.wsx-copy[hidden]{display:none}
.wsx-copy__line{min-width:0;overflow-wrap:anywhere}
.wsx-copy__nb{white-space:nowrap}
.wsx-copy__btn{margin-top:8px}
.wsx2-pane>.wsx-copy__msg{padding-bottom:0;overflow-wrap:anywhere}
.wsx2-pane>.wsx-copy__msg[hidden]{display:none}

/* The revert stack, as a disclosure at the foot of the tab that made those
   edits. It is the receipt, not the work. */
.wsx2-ovfold{border-top:1px solid var(--medium-gray);margin:0}
.wsx2-ovfold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;
  gap:7px;padding:9px 13px;font-family:var(--font-display);font-size:11px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}
.wsx2-ovfold>summary::-webkit-details-marker{display:none}
.wsx2-ovfold>summary::after{content:"\203A";margin-left:auto;color:var(--text-muted);
  font-weight:700;transition:transform .12s}
.wsx2-ovfold[open]>summary::after{transform:rotate(90deg)}
.wsx2-ovfold>summary .n{font-size:10px;background:var(--light-gray);border-radius:10px;
  padding:1px 7px;color:var(--text-secondary);font-weight:600;letter-spacing:0;
  text-transform:none}
.wsx2-ovfold[hidden]{display:none!important}

/* ── 4. The document column ───────────────────────────────────────────── */
/* Two boxes drawn as one sheet. `#ws-page` is replaced wholesale by every
   preview swap, so the editable field form above it can never live inside
   it - but the reader must not be able to tell. */
.wsx2-paper{border-radius:10px;box-shadow:0 2px 10px -6px #16233b22}
.wsx2-paper>.wsx-page{box-shadow:none}
.wsx2-paper>.wsx2-folds{border-radius:10px 10px 0 0;border-bottom:0;
  padding:22px 40px 0}
.wsx2-paper>.wsx2-folds+.wsx-page{border-top:0;border-radius:0 0 10px 10px;
  padding-top:10px}
/* Three folds, so each of them is one notch tighter than the single Key
   records fold that used to stand alone. */
.wsx-page .ws-keyrec{margin:0 0 2px}
.wsx-page .ws-keyrec>summary{padding:3px 0}
.wsx2-folds .wsx-editor{background:none;border:0}
.wsx2-folds .wsx-fields__list{padding:6px 0 10px}
.wsx2-folds #ws-risk-methodology{margin:0 0 8px;padding:0;border:0;font-size:12px}
.wsx2-folds #ws-risk-methodology h3{padding:0 0 4px;border:0;text-transform:none;
  font-size:13px;margin:0}
/* The front matter, folded like the Key records page above it, with the
   document's measure and function chips at the head of its body - where they
   describe this document's coverage instead of competing with the header's
   four state chips. */
.wsx-page .ws-front__chips{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 10px}
.wsx-page .ws-keyrec.ws-front>summary{padding-bottom:6px}
.wsx-page .ws-keyrec.ws-front+.ws-sec,
.wsx-page .ws-keyrec.ws-front+hr{margin-top:14px}
/* The marker the green "sections added" banner used to carry, on the section
   it is actually about. */
.wsx-page .ws-added{font-size:9.5px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:var(--text-secondary);background:var(--light-gray);
  border-radius:9px;padding:1px 8px;margin-left:8px;vertical-align:2px;
  display:inline-block}

/* ── 5. Phone (and the 1100px stack the workspace already had) ────────── */
@media(max-width:1100px){.wsx2-grid{grid-template-columns:minmax(0,1fr)}
  .wsx2-rail{position:static}}
@media(max-width:640px){
  .wsx2-act--collapse{display:none}
  .wsx2-only-phone{display:block}
  .wsx2-pop>a.wsx2-only-phone{display:block}
  .wsx2-top .wsx-h1{white-space:normal;flex:1 1 100%;font-size:15px}
  .wsx2-top .wsx-acts{flex:1 1 100%;justify-content:flex-start;margin-left:0}
  .wsx2-pop{min-width:min(288px,calc(100vw - 48px))}
  .wsx2-menu--end .wsx2-pop{right:auto;left:0}
  .wsx2-tab{font-size:9px;letter-spacing:.02em;padding:8px 2px 7px}
  .wsx2-paper>.wsx2-folds{padding:16px 16px 0}
  .wsx2-paper>.wsx-page{padding-left:16px;padding-right:16px}
  .wsx2-notice__more{padding-left:14px}
  .wsx2-notice__list{columns:1}
  /* A section label is a whole sentence sometimes. On a phone it wraps
     inside its own pill rather than running off the side of the page. */
  .wsx2-notice__more a{white-space:normal;overflow-wrap:anywhere}
  /* The section's own Accept control sits in its top-right corner, which on
     a phone is where a heading plus a chip would have run into it. */
  .wsx-page .ws-added{display:block;width:fit-content;margin:5px 0 0}
  /* 2026-10-04 (19.0.20, owner on a 390px phone): a Level chip is one
     unbroken line everywhere (.pill is nowrap), so the Key records table's
     Level column took ~158px of a 328px paper and the chips ran past the
     table wrapper's edge - "Opens D3 to D5 (appro". On a phone the chip
     wraps inside its own cell instead, which hands that width back to the
     Statement column and lets the table fit its wrapper. The only pill in a
     .ws-tbl cell is a Level chip (doc_preview._cell); sizes are untouched. */
  .wsx-page .ws-tbl td .pill{white-space:normal;overflow-wrap:break-word;line-height:1.35}

  /* UI19 Documents uses the workspace's existing phone boundary. */
  [data-ui-family="documents"] .wsx-top .wsx-h1{font-size:22px}
  [data-ui-family="documents"] .wsx-acts{max-width:100%;flex-wrap:wrap}
  [data-ui-family="documents"] .wsx2-top{position:relative}
  [data-ui-family="documents"] .wsx2-top .wsx2-menu{position:static}
  [data-ui-family="documents"] .wsx2-top .wsx2-pop{
    left:0;right:auto;top:100%;min-width:0;width:min(360px,100%);max-width:100%;box-sizing:border-box}

  /* ── clearance for the phone tab bar (2026-09-15) ────────────────────
     Under 640px `[data-help]::after` stops being a bubble tethered to its
     mark and becomes a bar across the foot of the SCREEN (17.2.2 took it
     out of the page's overflow; 17.2.5 gave it a backdrop and a caption
     under it). All three are measured from `bottom`, so on THIS page they
     would open underneath the tab bar. Lifted by the bar's height.

     Page-scoped and written as NEW selectors on purpose: the grouped
     `[data-help]::after, [data-help].qhelp--end::after` rule above is read
     verbatim by tests/test_mobile_unlock.py and stays byte-identical.

     They live in the workspace's own phone block rather than in this
     feature's appended block at the foot of the sheet, because the base
     `.wsx2-only-phone{display:none}` rule has to come after the LAST phone
     media block in the file (tests/test_workspace_redesign.py and
     tests/routers/test_usage_limits_routes.py both pin that order) and a
     new phone block down there would jump it. */
  .wsx2 [data-help]::after,
  .wsx2 [data-help].qhelp--end::after,
  .wsx2 [data-help].qhelp--below::after{
    bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
  .wsx2 [data-help]::before{
    padding-bottom:calc(67px + env(safe-area-inset-bottom, 0px))}
}

/* ── small fixes (2026-09-15) ── */
/* Appended at the end of the sheet so the lanes working elsewhere in this
   file merge cleanly - but ABOVE the `.wsx2-only-phone` base rule below,
   which tests/test_workspace_redesign.py pins as the stylesheet's LAST line
   (it has to follow the phone block above to win the cascade). Nothing here
   opens a 640px media block either: tests/support/css.py and
   tests/test_portfolio_ui.py both read the LAST one in the file as the
   collapse tier, and the portfolio helper searches the RAW text - so these
   comments do not spell that at-rule out literally. */

/* The MSP console's Limits sub-row (portfolio.html, 17.57.47). `.pf-sub` is a
   wrapping flex row, and every piece of every limit - the label with its
   input, the "3 of 20 used" sentence, the usage bar - was one of its direct
   children. So a wrap could land BETWEEN a bar and the limit it measures,
   leaving a stray bar sitting on the line above the next limit's name: at
   1024px and at 768px that happened to Scans per day (Fișiere pe lună in
   Romanian), measured on the rendered page.

   One limit is now one `.pf-lim` group: an inline-flex item that does not
   wrap inside itself, so the row can only break between limits. The
   min-width is what makes the group a real unit under flexbox - a flex item
   shrinks to its min-content by default, which for a nowrap group means the
   usage bar and the "x of y used" sentence get squeezed to nothing rather
   than the group being moved to the next line. `.pf-lim` therefore refuses
   to go under 210px (label + 4.5em input + the short sentence + the 110px
   bar `.pf-sub .usage-bar` fixes) and wraps instead.

   Stacked on a phone the group fills its line instead; that override is
   written beside `.pf-sub`'s own stacking rule, for the reason above. */
.pf-lim {
  display: inline-flex; flex-wrap: nowrap; align-items: center;
  gap: 10px; min-width: 210px; flex: 0 1 auto;
}
.pf-lim > label { white-space: nowrap; }

/* 2026-10-12 (portfolio entitlement): the "Regimes available" control under
   the licence in the portfolio row. A wrapping row of its own, so on a phone
   the select, its Save and the "declared DORA" sentence stack instead of
   widening the licence cell. */
.pf-regimes {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-top: 6px;
}
.pf-regimes > label { display: inline-flex; gap: 6px; align-items: center; }

/* The control page's evidence row also changed today - but its two
   declarations were added to `.evidence__name` IN PLACE (above, beside the
   rest of that rule) rather than appended here, because tests/support/css.py's
   `_rule` reads the FIRST block for a selector and a second block down here
   would be invisible to it. Same reason the 2026-09-14 progress cosmetics
   extended two rules in place. */

/* ── end small fixes (2026-09-15) ── */
.wsx2-only-phone{display:none}

/* ── upload failsafe (2026-09-15) ──────────────────────────────────────────
   The control page answers as soon as a file is ATTACHED; the registry-slot
   classification runs behind the response. Two states get said out loud:
   the row that is still waiting for its suggestion, and the re-upload of a
   file the control already holds.

   The chip is deliberately the quietest tint in the system: a row in this
   state is COMPLETE - the evidence is attached and counted - and only its
   suggestion is outstanding. Amber would read as a problem with the file. */
.ev-pill--classifying{background:var(--tint-mute-bg);color:var(--tint-mute-ink)}
/* On the control page's evidence row the chip is the fourth cell of a
   three-track grid, so it would land under the filename and shove the
   actions along. Its own line, like .evidence__readiness above it. */
.evidence .ev-pill--classifying{grid-column:1/-1;justify-self:start}
.ev-pill--classifying::before{
  content:"";display:inline-block;width:6px;height:6px;border-radius:50%;
  margin-right:6px;vertical-align:1px;background:currentColor;
  animation:ev-classifying-pulse 1.4s ease-in-out infinite}
@keyframes ev-classifying-pulse{0%,100%{opacity:.25}50%{opacity:1}}
/* A pulsing dot is a hint, never the message: the words carry it. */
@media(prefers-reduced-motion:reduce){
  .ev-pill--classifying::before{animation:none;opacity:.6}
}
/* "Deja atasat" - a SUCCESS, so the quiet green rather than the warn note
   the 409 used to arrive in. One line, above the upload form it answers. */
.ev-notice{
  background:var(--tint-ok-bg);color:var(--tint-ok-ink);
  border-radius:6px;padding:8px 12px;margin:0 0 12px;
  font-size:12.5px;font-weight:600}
/* 2026-09-16 (audit #22): the same line, for the answer that is a REFUSAL.
   The comments form's 303 can come back saying "nothing was saved", and a
   refusal in the success tint is a sentence the reader has to finish before
   they know which of the two it was. Same token family as .sr-note--warn. */
.ev-notice--warn{
  background:var(--tint-med-bg);color:var(--tint-med-ink)}

/* ── workspace phone tab bar (2026-09-15, PO decision) ──────────────────
   `.wsx2-grid` stacks at 1100px, the document first and the rail second, so
   on a phone the chat under Adjust - and the records, the controls and the
   approval behind it - sit a whole document's scroll below the fold. This
   is that rail's four tabs pinned to the foot of the screen.

   Only the LOOK is here: the behaviour is the `data-ws-tab` handler the
   header chips have used since the 2026-09-14 redesign, and the markup is
   four <a> at the end of doc_workspace.html.

   Appended at the foot of the sheet, NEW selectors only: tests/support/css.py
   reads the FIRST block for a selector, so a second block for one that
   already exists would be invisible to every assertion that names it. The
   two ≤640px rules this feature also needs (the help bar, which only becomes
   a fixed footer down there) are written in the workspace's own phone block
   above instead - see the note beside them. */

/* Above the breakpoint the rail is a column of its own beside the document,
   and there is nothing for a bar to reach. */
.wsx2-phonetabs{display:none}

@media(max-width:1100px){
  /* z-index 50 is deliberate: above the page, below the mobile drawer's
     backdrop (55), the help bar and its backdrop (58/59) and the decision
     overlay (80), so nothing meant to cover the screen is cut in half by a
     strip of tabs. */
  .wsx2-phonetabs{
    display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;
    background:var(--white);border-top:1px solid var(--medium-gray);
    box-shadow:0 -6px 18px rgba(11,18,35,.10);
    padding-bottom:env(safe-area-inset-bottom, 0px)}
  /* Four equal cells. 44px is the tap target; `flex:1 1 0` with
     `min-width:0` keeps a long Romanian label ("Înregistrări") inside its
     own cell instead of pushing the page sideways. */
  .wsx2-phonetabs a{
    flex:1 1 0;min-width:0;min-height:44px;
    display:flex;align-items:center;justify-content:center;
    font-family:var(--font-display);font-size:9.5px;font-weight:800;
    letter-spacing:.02em;text-transform:uppercase;line-height:1.2;
    text-align:center;padding:6px 3px;text-decoration:none;
    color:var(--text-secondary);background:none;
    border-top:2px solid transparent;
    white-space:nowrap;overflow:hidden}
  .wsx2-phonetabs a:hover{color:var(--navy);background:var(--light-gray)}
  .wsx2-phonetabs a:focus-visible{outline:2px solid var(--navy);
    outline-offset:-2px}
  /* The lit cell reads the SAME radio the rail's own tabs read, so the bar
     and the rail can never disagree - and it still works with no JavaScript
     at all. The radios are inside the rail and the bar is the rail's uncle,
     so this is `:has` rather than a sibling combinator (the sheet already
     uses `:has` in five other places). A browser without `:has` drops the
     whole selector and simply gets no highlight: the bar still navigates,
     because a tap is a link and a radio, not a class. */
  .wsx2:has(#ws-tab-adjust:checked) .wsx2-phonetabs a[data-ws-tab="ws-tab-adjust"],
  .wsx2:has(#ws-tab-records:checked) .wsx2-phonetabs a[data-ws-tab="ws-tab-records"],
  .wsx2:has(#ws-tab-controls:checked) .wsx2-phonetabs a[data-ws-tab="ws-tab-controls"],
  .wsx2:has(#ws-tab-approve:checked) .wsx2-phonetabs a[data-ws-tab="ws-tab-approve"]{
    color:var(--navy);background:var(--off-white);border-top-color:var(--teal)}
  /* Room under the last thing on the page for the bar that now covers it -
     45px of bar plus a line of air. */
  .wsx2{padding-bottom:calc(64px + env(safe-area-inset-bottom, 0px))}
  /* The floating assistant is the other fixed thing at the foot of this
     screen (z-index 1000, so it would sit ON the bar rather than under it).
     It is rendered outside the page wrapper, so the hook is the bar's own
     presence rather than a class on an ancestor. */
  body:has(.wsx2-phonetabs) #opti-chat{
    bottom:calc(76px + env(safe-area-inset-bottom, 0px) + var(--opti-chat-lift, 0px))}
}

/* 17.57.84: the file picker in the page's language (static/js/fileinput.js).
   The native control stays focusable and submits the form; it is only
   hidden visually, so keyboard and screen-reader users keep it. */
.fileinput{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:100%}
.fileinput__native{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.fileinput__native:focus-visible + .fileinput__btn{outline:2px solid var(--navy);outline-offset:2px}
.fileinput__name{font-size:13px;color:var(--text-secondary);overflow-wrap:anywhere;min-width:0}

/* Profile people use the page's existing navy/teal palette and type scale. */
.wsx-designated{margin-top:8px;max-width:100%;min-width:0}
.wsx-designated summary{cursor:pointer;font-weight:600;color:var(--navy)}
.wsx-designated p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.wsx-designated fieldset{min-width:0;margin:10px 0;padding:10px;border:1px solid var(--border,#d8e0ed);border-radius:6px}
.wsx-designated fieldset label{display:flex;align-items:flex-start;gap:8px;margin:8px 0;min-width:0}
.wsx-designated fieldset input{flex:0 0 auto;width:auto;margin-top:3px}
.wsx-designated fieldset span{min-width:0;overflow-wrap:anywhere}
.wsx-designated [data-designated-status]:not(:empty){padding:8px;border-left:3px solid var(--teal)}
.ci-people{max-width:960px}
.approver-advisory{margin:14px 0;padding:12px 16px;border:1px solid var(--border,#d8e0ed);border-radius:8px;background:#fafbfd;min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.approver-advisory summary{cursor:pointer;font-weight:600;color:var(--navy);font-size:14px}
.approver-advisory p{margin:8px 0;font-size:14px;line-height:1.5}
.approver-advisory__finding{margin:12px 0;padding:4px 12px;border-left:3px solid var(--border,#d8e0ed)}
.approver-advisory__finding.attention{border-color:#b38519;background:#fffaf0}
.approver-advisory blockquote{margin:8px 0 2px;padding:4px 8px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.approver-advisory small{font-size:12px;color:var(--slate,#536079)}
.approver-advisory form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.approver-advisory :is(summary,button):focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.reg-approver{display:block;font-size:12px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere;color:var(--slate,#536079)}
.reg-approver--attention{color:#825e0d}

/* UI19 documents: application chrome around the unchanged document bodies.
   These boundaries retain the historical source font stack. Candidate source
   lived outside paper at 16px; paper and readonly translation remain 12.5px. */
[data-ui-family="documents"] :is(.wsx-page,.preservation-candidate .preserved-source,#ws-audit-source .preserved-source){
  font-family:"Lato","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif}
[data-ui-family="documents"] :is(.preservation-candidate,#ws-audit-source) .preserved-source{font-size:16px}
[data-ui-family="documents"] :is(.wsx-center,.wsx-rail,.wsx-sidebar){min-width:0}
[data-ui-family="documents"] .wsx-center{background:var(--surface-panel)}
[data-ui-family="documents"] :is(.wsx-grid,.wsx2-grid){gap:var(--space-4)}
[data-ui-family="documents"] .wsx-top{gap:var(--space-2) var(--space-3);margin-bottom:var(--space-4);padding-bottom:var(--space-4)}
[data-ui-family="documents"] .wsx-h1{font-size:24px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;color:var(--navy)}
[data-ui-family="documents"] .wsx-back{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
[data-ui-family="documents"] :is(.wsx-back,.wsx-vchip,.wsx-top .did,.reg-row .did,
  .reg-status,.reg-status small,.reg-optional,.reg-approver,.reg-lang .lchip,.reg-lang .lchip i,
  .reg-langf,.reg-lang .reg-language-confirm,.reg-glabel,.reg-gopt,.reg-row .reg-desc,
  .tplbadge,.tplchip,.tplcard__meta,.wsx2-notice,.wsx2-notice__more,.wsx-qhint,
  .wsx-empty,.wsx-srcnote,.wsx-file,.wsx-file small,.wsx-cg .lbl,.wsx-cg .ids,
  .wsx-cpill,.wsx-cjump,.wsx-cgroup>summary,.wsx-cgroup>summary .n,.wsx-wq__p,
  .wsx-wiz__head span,.wsx-wiz__ramp,.wsx-wq__in,.wsx-field,.wsx-field label,.wsx-field__l,
  .wsx-field__h,.wsx-field__prov,.wsx-rec__id,.wsx-rec__lbl,.wsx-rec__state,
  .wsx-rec-sugg__t,.wsx-rec-sugg__w,.wsx-rec-sugg__n,.wsx-qscore .o,
  .wsx-gap .area,.wsx-gap .why,.wsx-gap .sugg,.wsx-gap-ask,.wsx-gap-dismiss,
  .wsx-field input,.wsx-field select,.wsx-field textarea,.wsx-msg,.wsx-in,
  .wsx2-pop>a,.wsx2-pop>button,.wsx2-pop>form>button,.wsx-langf,.wsx-tbanner,
  .wsx-tempty,.wsx-pbanner,.wsx-tpromote,.dn-about,.dn-hint,.dn-desclabel,.dn-desc,
  .approver-advisory small){font-size:13px}
[data-ui-family="documents"] :is(.wsx-chips .mchip,.wsx-chips .fchip,
  .reg-row .mchip,.reg-row .fchip){font-size:13px;min-width:24px;height:24px;width:auto;padding:0 var(--space-1)}
[data-ui-family="documents"] :is(.wsx-panel h3,.wsx2-sub){font-size:13px;letter-spacing:.03em}
[data-ui-family="documents"] :is(.wsx2-tab,.wsx2-phonetabs a){
  font-size:13px;letter-spacing:0;text-transform:none;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
[data-ui-family="documents"] .wsx2-tab{padding:var(--space-3) var(--space-1);min-height:44px;flex-wrap:wrap}
[data-ui-family="documents"] .wsx2-tab .n{font-size:13px;white-space:nowrap;overflow-wrap:normal;flex:0 0 auto}
[data-ui-family="documents"] .wsx2-tabbar{gap:0;background:var(--surface-page)}
[data-ui-family="documents"] .wsx2-rail>.wsx-panel{max-height:none;overflow:visible}
[data-ui-family="documents"] .wsx2-rail{position:static}
[data-ui-family="documents"] :is(.wsx-panel,.wsx2-paper,.tplcard,.reg-card,.preservation-review){
  border-color:var(--border-subtle);background:var(--surface-panel);border-radius:12px}
[data-ui-family="documents"] .tplcard__title{font-size:18px;line-height:1.4}
[data-ui-family="documents"] .tplcard__desc{font-size:15px;line-height:1.5}
[data-ui-family="documents"] .reg-row{padding-top:var(--space-4);padding-bottom:var(--space-4)}
[data-ui-family="documents"] .reg-row .reg-title{font-size:15px;line-height:1.4}
[data-ui-family="documents"] .reg-row .reg-desc{font-size:13px;line-height:1.5}
[data-ui-family="documents"] .reg-gopt{min-height:36px;white-space:normal}
[data-ui-family="documents"] :is(.wsx2-menu>summary,.wsx2-pop>a,.wsx2-pop>button){min-height:36px;align-items:center}
[data-ui-family="documents"] .preservation-review{padding:var(--space-4);margin-bottom:var(--space-6);border:1px solid var(--border-subtle)}
[data-ui-family="documents"] .preservation-compare{gap:var(--space-4)}
[data-ui-family="documents"] .preservation-review>form{margin-top:var(--space-4);display:grid;gap:var(--space-3)}
[data-ui-family="documents"] .preservation-review select{max-width:100%;min-height:40px}
[data-ui-family="documents"] .wsx-audit__meta{font-size:13px;overflow-wrap:anywhere}
[data-ui-family="documents"] :is(.ws-seced__h,.ws-seced__in,.ws-seced__hint,
  .ws-seced__save,.ws-seced__cancel,.ws-seced__msg){font-size:13px}
@media(hover:none) and (pointer:coarse){
  [data-ui-family="documents"] .ws-secedit{opacity:1;pointer-events:auto;min-width:36px;min-height:36px;
    position:static;margin-left:auto;margin-bottom:var(--space-2)}
  /* 19.4.3: the pencil above is a 36px box in the flow, at the section's right
     edge; the inline Accept is absolutely placed and used to sit 24px from
     that edge, i.e. under the pencil. It stands beside it now: its right edge
     is the pencil's width plus a gap away, on the pencil's own line and as
     tall as it. */
  [data-ui-family="documents"] .ws-secaccept{top:0;right:calc(36px + var(--space-2));min-height:36px}
}
/* UI19 Company and workspace preferences share the shell's field hierarchy. */
:is([data-ui-family="company"],[data-ui-family="settings"]) fieldset { min-width: 0; }
:is([data-ui-family="company"],[data-ui-family="settings"]) .page-header { gap: var(--space-4); }
:is([data-ui-family="company"],[data-ui-family="settings"]) main { overflow-wrap: anywhere; }
:is([data-ui-family="company"],[data-ui-family="settings"]) main .card { padding: var(--space-6); border-color: var(--border-subtle); border-radius: 12px; background: var(--surface-panel); }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(h2,h3) { line-height: 1.35; }
:is([data-ui-family="company"],[data-ui-family="settings"]) .card h3 { font-size: 18px; margin-bottom: var(--space-3); }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(p,label,li) { font-size: 15px; line-height: 1.6; }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(.small,small,.badge,.pill,.chip,.help,.subtle,.conn-chip,.cp-fact__meta,.cp-fact__meta *, .ci-profile__provenance,.enire-sector-choice span,.ci-meter .hint,.ci-meter .l,.ci-src__act,.ci-src .ic,.ci-src .name,.wsx-qchip,.danger__devbadge) { font-size: 13px; }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(input:not(:is([type=checkbox],[type=radio],[type=file],.ci-ident__input)),select,textarea) { max-width: 100%; min-width: 0; font-size: 15px; }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(.btn,input:not([type=checkbox]):not([type=radio]):not([type=file]),select) { min-height: 44px; }
:is([data-ui-family="company"],[data-ui-family="settings"]) main .btn { white-space: normal; }
/* Team's narrow danger column must reserve a whole action label, not one
   character. Keep the Settings touch target and table-local scrolling. */
[data-ui-family="settings"] main .console-table .cell-danger .btn {
  white-space: nowrap; overflow-wrap: normal;
}
:is([data-ui-family="company"],[data-ui-family="settings"]) .form-row { gap: var(--space-2); margin-bottom: var(--space-4); }
:is([data-ui-family="company"],[data-ui-family="settings"]) .form-row > label { font-weight: 600; color: var(--text-primary); }
:is([data-ui-family="company"],[data-ui-family="settings"]) .detail__grid { gap: var(--space-6); }
:is([data-ui-family="company"],[data-ui-family="settings"]) .detail__grid > .card > p,
:is([data-ui-family="company"],[data-ui-family="settings"]) .detail__grid > .card > form > label { font-size: 15px; }
[data-ui-family="company"] :is(.ci-support > .ci-side,.ci-idrow) { gap: var(--space-6); }
/* 19.1.6: a DORA workspace's card columns stack their cards at the grid's own gap. */
[data-ui-family="company"] .ci-identity-editors--dora > .ci-col { gap: var(--space-6); }
[data-ui-family="company"] :is(.ci-profile__fields,.ci-profile__facts) { gap: var(--space-4) var(--space-6); }
@media(min-width:1360px){
  [data-ui-family="company"] :is(.ci-profile__fields,.ci-profile__facts){grid-template-columns:repeat(3,minmax(0,1fr))}
}
[data-ui-family="company"] .ci-profile { padding: var(--space-6); }
[data-ui-family="company"] .ci-ident { flex: 1 1 36rem; }
[data-ui-family="company"] .ci-ident__who { flex: 1; }
[data-ui-family="company"] .ci-ident__name h1 { flex: 1 1 20ch; }
[data-ui-family="company"] .ci-ident__input { width: 100%; font-size: 24px; }
/* The localized picker keeps its native input visually hidden. The identity
   form's older file-field width must not stretch that absolute input. */
[data-ui-family="company"] .ci-identity-editors input.fileinput__native { width: 1px; min-height: 0; padding: 0; }
[data-ui-family="company"] .ci-profile__section { margin-top: var(--space-4); padding-top: var(--space-4); }
[data-ui-family="company"] .ci-people__person { padding: var(--space-4); background: var(--surface-page); border-radius: 8px; }
[data-ui-family="company"] .ci-people__person label { font-size: 13px; font-weight: 600; }
[data-ui-family="company"] .ci-people__person button { color: var(--tint-crit-ink); }
[data-ui-family="company"] .ci-src { flex-wrap: wrap; gap: var(--space-2); }
[data-ui-family="company"] .ci-src__acts { flex-wrap: wrap; margin-left: 0; }
[data-ui-family="company"] .cdp__text { font-size: 15px; line-height: 1.6; }
[data-ui-family="company"] .enire-page .card { margin-block: var(--space-6); }
[data-ui-family="settings"] .doclang-modal__box { max-height: calc(100dvh - 32px); overflow-y: auto; }
[data-ui-family="settings"] .danger { margin-top: var(--space-8); }
:is([data-ui-family="company"],[data-ui-family="settings"]) main :is(.rk-chip,.inc-meta,.btn--xs,.org-id,.id-copy,th,.conn-vlogo,.conn-group,.formfield__hint,.formfield__hint code,summary) { font-size: 13px; }

/* UI19 operational registers. Preserve table-local scrolling and existing
   disclosure/filter hooks; action groups share the same flexible rhythm. */
[data-ui-family="registers"] .register-ui-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
[data-ui-family="registers"] .register-ui-detail { min-width: 0; }
[data-ui-family="registers"] main { overflow-wrap: anywhere; }
[data-ui-family="registers"] main .card { padding: var(--space-6); border-color: var(--border-subtle); border-radius: 12px; background: var(--surface-panel); }
[data-ui-family="registers"] main :is(p,label,li,dd,td) { font-size: 15px; line-height: 1.6; }
[data-ui-family="registers"] main :is(h2,h3) { line-height: 1.35; }
[data-ui-family="registers"] main h3 { font-size: 18px; }
[data-ui-family="registers"] main :is(.small,small,.badge,.pill,.rk2-chip,.rk2-axis,.rk2-metaline,.rk2-score,.rk2-scorebox__l,.rk2-scorebox__b,.rk2-tile__l,.rk2-tile__sub,.rk2-legend,.rk2-sumline,.inc-meta,.inc-src,.inc-clock,.inc-lbl,.inc-genat,.inc-filedby,.inc-crithint,.cal-src,.cal-chip,.cal-when,.cal-bcount,.cal-meta,.cal-none,.cal-tl-range,.cal-tl-month,.cal-tl-date,.rr-st,.rr-sumline,.rr-meta,.rr-lbl,.rr-hint,.rz-glabel,.rz-gopt,th,summary,.btn--xs) { font-size: 13px; }
[data-ui-family="registers"] main :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { min-width: 0; max-width: 100%; font-size: 15px; }
[data-ui-family="registers"] main :is(.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=file])) { min-height: 44px; }
[data-ui-family="registers"] main .btn { white-space: normal; }
[data-ui-family="registers"] :is(fieldset,.rk2-frow,.inc-times,.rk2-import-columns,.cal-title,.inc-title) { min-width: 0; }
[data-ui-family="registers"] :is(.rk2-tblwrap,.cal-tl-scroll) { max-width: 100%; overflow-x: auto; }
[data-ui-family="registers"] .rk2-table { min-width: 1000px; overflow-wrap: normal; }
[data-ui-family="registers"] .rk2-table :is(th,.rk2-id,.rk2-review) { white-space: nowrap; }
[data-ui-family="registers"] .rk2-table .rk2-risk { min-width: 18rem; overflow-wrap: anywhere; }
/* 2026-10-14, lane G: at a 1,440 px viewport (about 1,080 px of table region
   beside the sidebar) the nine columns' narrowest layout was 1,174 px, so the
   register scrolled inside its card and "Next review" was cut mid-word with
   no cue. The columns now give way where wrapping costs least: 8 px side
   padding instead of 12 (the outer cells keep 12 to line up with the card),
   the title column's floor drops from 18rem to 15rem, the owner (an e-mail
   address, one long word) may break inside the address but keeps 11.5rem so a
   usual address breaks at most once, and the status chip may wrap onto two
   lines ("Awaiting / treatment"). Measured: 1,174 px before, 1,079 px (the
   region's own width) after, at 1,440 (tests/test_risks_table_visual.py).
   Scoped to the risk register ([data-risk-root]) because the other register
   tables share .rk2-table with other columns; column 4 (Owner) is addressed by
   position because adding a class would change the NIS2 register's markup,
   whose pages stay byte-identical. From 600 px up only, so the phone tier's
   rules are left exactly as they were. */
@media (min-width: 600px) {
  [data-ui-family="registers"] [data-risk-root] .rk2-table :is(th, td) { padding-left: 8px; padding-right: 8px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table :is(th, td):first-child { padding-left: 12px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table :is(th, td):last-child { padding-right: 12px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table .rk2-risk { min-width: 15rem; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table tbody td:nth-child(4) { min-width: 11.5rem; overflow-wrap: anywhere; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table .pill { white-space: normal; }
}
/* Where a register table must still scroll (between the phone card layout
   and about 1,300 px), the scroll is shown, not silent: a shadow on the edge
   that has more columns behind it (the classic background-attachment
   local/scroll pair, so it needs no script) and a thin, always-drawn bar. */
[data-ui-family="registers"] .rk2-tblwrap {
  background:
    linear-gradient(to right, var(--surface-panel) 30%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface-panel) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) right center / 12px 100% no-repeat scroll;
  scrollbar-width: thin;
}
[data-ui-family="registers"] .rk2-dl dd { min-width: 0; }
[data-ui-family="registers"] .cal-tl-head { flex-wrap: wrap; }
[data-ui-family="registers"] .cal-tl-head h2 { flex-shrink: 0; overflow-wrap: normal; }
[data-ui-family="registers"] .rr-accnote { font-size: 13px; }
[data-ui-family="registers"] main :is(.cal-fchip,.rr-owner,.rr-owner i,.cal-tl-lbl,.cal-tl-when,.cal-tl-now) { font-size: 13px; }
[data-ui-family="registers"] main :is(legend,dt,.rk2-li,.rk2-hint,.rk2-tl-when,.rk2-tl-who,.inc-st,.inc-sumline,.inc-noclock,.inc-tl-when,.inc-tl-who,.rr-more,.rr-enum,.rr-gapline,.rr-tl > div,.rr-due,.rr-pill,.rr-btn,.rz-gcounts,.rz-garrow,.rz-subhead b,.cal-fld > span,.cal-tl-label,.cal-tl-tick,.cal-tl-bar,.cal-tl-empty) { font-size: 13px; }
[data-ui-family="registers"] .press-workspace .card + .card { margin-top: var(--space-6); }
@media (max-width: 768px) {
  [data-ui-family="registers"] main .card { padding: var(--space-4); }
  [data-ui-family="registers"] .register-ui-actions > :is(input,select) { flex: 1 1 12rem; }
}

.ci-people>p{max-width:76ch}
.ci-people__role{padding:14px 0;border-bottom:1px solid var(--border,#d8e0ed)}
.ci-people__role>summary{cursor:pointer;font-weight:600;color:var(--navy)}
.ci-people__role p,.ci-people__role li{overflow-wrap:anywhere}
.ci-people__form{display:grid;gap:12px;padding-top:8px}
.ci-people__person{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:12px;align-items:start;margin-bottom:12px}
.ci-people__person label,.ci-people__default{display:grid;gap:5px;min-width:0;font-size:14px}
.ci-people input:not([type=checkbox]),.ci-people textarea,.ci-people select{box-sizing:border-box;width:100%;max-width:100%;border:1px solid var(--border,#d8e0ed);border-radius:6px;padding:9px;font:inherit;background:#fff;color:var(--navy)}
.ci-people__person button{margin-top:25px}
.ci-people__default{max-width:480px}
.ci-people__form>button{justify-self:start}
.ci-people__confirm{display:flex;gap:8px;align-items:start;max-width:70ch}
.ci-people__confirm[hidden]{display:none}
.ci-people [data-people-status]:not(:empty){padding:10px;border-left:3px solid var(--teal);overflow-wrap:anywhere}
.ci-people :is(input,textarea,select,button,summary):focus-visible{outline:2px solid var(--navy);outline-offset:2px}
@media(max-width:650px){.ci-people__person{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0;border-bottom:1px solid var(--border,#d8e0ed)}.ci-people__person button{margin-top:0;justify-self:start}.ci-people__role{min-width:0}}

/* UI19 Dashboard and Progress: the shell's light surfaces and reading scale.
   Scope by family so other page migrations can keep their existing layout. */
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .page-header {
  margin-bottom: var(--space-6);
}
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .page-header__context {
  min-width: 0; overflow-wrap: anywhere;
}
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .card {
  min-width: 0; padding: var(--space-6); box-shadow: none;
  background: var(--surface-panel); border-color: var(--border-subtle);
}
[data-ui-family="dashboard"] .dashboard-row,
[data-ui-family="progress"] .prog-summary {
  min-width: 0; gap: var(--space-4); margin-bottom: var(--space-6);
}
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .prog-functions__head {
  flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4);
}
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .prog-functions__head h2,
[data-ui-family="dashboard"] .kpi-label {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  line-height: 1.4; color: var(--navy); text-transform: none; letter-spacing: normal;
}

/* Completed-setup guidance must wrap its text/bar together at phone widths. */

:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .page [data-help]::after {
  font-size: 13px;
}
:is([data-ui-family="dashboard"], [data-ui-family="progress"]) :is(
  .small, .prog-keydetails, .prog-fn-pill, .avgtgt, .score-chip, .keybadge,
  .kpi-ctx, .kpi-foot, .kpi-verdict,
  .matrow__desc, .matrow__here, .matrow__mark, .hbar__di,
  .sh-hint, .sh-chkt small,
  .prog-leg, .mcov, .mval, .mctl-id, .mkey--none, .prog-gap__pill, .prog-gap__metric) {
  font-size: 13px; line-height: 1.5;
}

:is([data-ui-family="dashboard"], [data-ui-family="progress"]) :is(.prog-fn-pill, .mctl-id, .prog-gap__pill) {
  font-family: var(--font-display);
}

:is([data-ui-family="dashboard"], [data-ui-family="progress"]) .prog-keydetails summary {
  padding-block: var(--space-1); overflow-wrap: anywhere;
}
[data-ui-family="dashboard"] .matrow { opacity: 1; padding: var(--space-3); }
[data-ui-family="dashboard"] .matrow__lv { color: var(--navy); background: var(--surface-panel); }
[data-ui-family="dashboard"] .matrow.is-reached .matrow__lv { color: var(--navy); background: var(--tint-ok-bg); }
[data-ui-family="dashboard"] .matrow__name { font-size: 15px; flex-wrap: wrap; }
[data-ui-family="dashboard"] .matrow__desc { margin: var(--space-1) 0 var(--space-2); }
[data-ui-family="dashboard"] .matrow[data-tip]::after { font-size: 13px; }
[data-ui-family="dashboard"] .matscore { margin-left: 0; }

[data-ui-family="dashboard"] .dashboard-fn .hbar {
  grid-template-columns: minmax(40px,1fr) 48px max-content max-content 16px;
  gap: var(--space-2); padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}
[data-ui-family="dashboard"] .dashboard-fn .hbar:last-child { border-bottom: 0; }
[data-ui-family="dashboard"] .hbar__label {
  grid-column: 1 / -1; font-size: 15px; white-space: normal; overflow: visible;
}
[data-ui-family="dashboard"] .hbar__value { font-size: 13px; }
[data-ui-family="dashboard"] .hbar__track { height: 8px; }

[data-ui-family="progress"] .prog-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
[data-ui-family="progress"] .prog-summary__label {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--navy); text-transform: none; letter-spacing: normal; line-height: 1.4;
}
[data-ui-family="progress"] .prog-summary__value {
  font-family: var(--font-display); font-size: 32px; margin-top: var(--space-3);
  font-variant-numeric: tabular-nums;
}
[data-ui-family="progress"] .prog-summary__value--verdict { font-size: 20px; line-height: 1.4; }
[data-ui-family="progress"] .prog-workbook__criteria { gap: var(--space-2); margin-top: var(--space-4); }
[data-ui-family="progress"] .prog-workbook__footer {
  border-top: 1px solid var(--border-subtle); padding-top: var(--space-3);
}
[data-ui-family="progress"] :is(.prog-general, .prog-history, .prog-two) { margin-bottom: var(--space-6); }
[data-ui-family="progress"] .prog-two { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); }
[data-ui-family="progress"] .prog-genrow { grid-template-columns: minmax(220px,280px) minmax(0,1fr); gap: var(--space-6); }
[data-ui-family="progress"] .mrow { grid-template-columns: minmax(0,1.5fr) minmax(40px,1fr) 48px; padding-block: var(--space-2); }
[data-ui-family="progress"] .prog-fnbars .mrow--key { grid-template-columns: minmax(0,1.5fr) minmax(40px,1fr) 48px 64px; }
[data-ui-family="progress"] .mlabel { font-size: 15px; flex-wrap: wrap; row-gap: var(--space-1); }
[data-ui-family="progress"] .mlabel.mcat-l { font-size: 13px; }
[data-ui-family="progress"] .mctl-l { flex-wrap: wrap; }
[data-ui-family="progress"] .prog-grouprow { margin-bottom: var(--space-4); }
[data-ui-family="progress"] .rz-gsel { flex-wrap: wrap; }
[data-ui-family="progress"] :is(.rz-glabel, .rz-gopt) { font-size: 13px; }
[data-ui-family="progress"] .prog-history__meta { gap: var(--space-4) var(--space-8); margin-block: var(--space-6); }
[data-ui-family="progress"] .prog-history__meta strong { font-family: var(--font-display); font-size: 28px; font-variant-numeric: tabular-nums; }
[data-ui-family="progress"] .prog-history__notice {
  padding: var(--space-3) var(--space-4); border-left: 3px solid var(--border-subtle);
  background: var(--surface-page);
}
[data-ui-family="progress"] .prog-history__svg text { font-size: 13px; }
[data-ui-family="progress"] .prog-history__svg { min-width: 720px; }
[data-ui-family="progress"] .radar-svg text { font-size: 13px; }
[data-ui-family="progress"] .prog-gap { grid-template-columns: auto minmax(0,1fr) auto; }
[data-ui-family="progress"] .prog-gap__title { font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 641px) {
  :is([data-ui-family="dashboard"], [data-ui-family="progress"]) .page [data-help]::after { max-width: 320px; }
  /* Coverage sits at the label's right edge after narrow-layout wrapping.
     Keep even hidden help inside the page's scrollable bounds. */
  [data-ui-family="progress"] .mcov[data-help]::after { left: auto; right: -4px; transform: none; }
}
@media (max-width: 1200px) {
  [data-ui-family="progress"] :is(.prog-genrow, .prog-two) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  [data-ui-family="progress"] .prog-summary { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
  :is([data-ui-family="dashboard"], [data-ui-family="progress"]) .card { padding: var(--space-4); }
  [data-ui-family="dashboard"] .dashboard-fn .hbar { display: flex; flex-wrap: wrap; }
  [data-ui-family="dashboard"] .hbar__label { flex-basis: 100%; }
  [data-ui-family="dashboard"] .hbar__track { flex: 1 1 80px; }
  
  [data-ui-family="progress"] .mrow { grid-template-columns: minmax(0,1fr) 48px; }
  [data-ui-family="progress"] .prog-fnbars .mrow--key { grid-template-columns: minmax(0,1fr) 48px 64px; }
  [data-ui-family="progress"] :is(.mlabel, .mctl-l) { grid-column: 1 / -1; }
  [data-ui-family="progress"] .prog-history__asof { margin-left: 0; flex-basis: 100%; }
  [data-ui-family="progress"] .prog-gap { grid-template-columns: minmax(0,1fr); gap: var(--space-2); }
  [data-ui-family="progress"] .prog-gap__pill { justify-self: start; }
}

/* UI19 Controls and scans: readable operational rows, intact score meaning. */
:is([data-ui-family="controls"], [data-ui-family="scans"]) .main .card {
  padding: var(--space-6); min-width: 0;
}
:is([data-ui-family="controls"], [data-ui-family="scans"]) .page-header { gap: var(--space-4); }
:is([data-ui-family="controls"], [data-ui-family="scans"]) .main :is(small, th, .small, .subtle, .badge, .pill, .btn--xs) {
  font-size: 13px;
}
:is([data-ui-family="controls"], [data-ui-family="scans"]) .main [data-help]::after { font-size: 13px; }
[data-ui-family="controls"] .detail__grid {
  grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4);
}
[data-ui-family="controls"] .detail__grid > .card :is(h2,h3) {
  font-size: 18px; line-height: 1.4; margin-bottom: var(--space-3);
}
[data-ui-family="controls"] .detail__grid > .card > p,
[data-ui-family="controls"] :is(.req-body,.req-explain) { font-size: 15px; line-height: 1.6; }
[data-ui-family="controls"] :is(.req-guide__p,.req-guide__line,.req-guide__list,.req-guide__note,.req-guide__h) { font-size: 14px; line-height: 1.55; }
[data-ui-family="controls"] .detail__grid :is(label,.small,.subtle) { font-size: 13px; }
[data-ui-family="controls"] .controls__layout { grid-template-columns: minmax(0,1fr) 300px; gap: var(--space-4); }
[data-ui-family="controls"] .ctrl-toolbar { gap: var(--space-3); margin-bottom: var(--space-4); }
[data-ui-family="controls"] .ctrl-toolbar__row,
[data-ui-family="controls"] .ctrl-toolbar .function-tabs { flex-wrap: wrap; }
[data-ui-family="controls"] :is(.owner-filter,.tree-expand) { flex-wrap: wrap; }
[data-ui-family="controls"] .ctrl-toolbar__search { min-width: 0; max-width: 100%; }
[data-ui-family="controls"] .control-search { width: 100%; min-width: 0; }
[data-ui-family="controls"] :is(.control-search,.rz-glabel,.rz-gopt,.kpi__label,.hint__key,.keybadge) { font-size: 13px; }
[data-ui-family="controls"] :is(.ownership-badge__label,.assurance-basic,.assurance-important,.assurance-essential,.req-keynote,.req-explain-label) { font-size: 13px; }
[data-ui-family="controls"] :is(.evidence__meta,.ev-pill) { font-size: 13px; }
[data-ui-family="controls"] .tree { padding: var(--space-4); }
[data-ui-family="controls"] .cat > summary { font-size: 15px; padding-block: var(--space-3); }
[data-ui-family="controls"] .sub > summary { font-size: 13px; padding-block: var(--space-2); }
[data-ui-family="controls"] .req__link { font-size: 13px; padding: var(--space-3) var(--space-2); flex-wrap: wrap; }
[data-ui-family="controls"] .req__title { flex: 1 1 240px; overflow-wrap: anywhere; }
[data-ui-family="controls"] :is(.req__key,.req__assurance,.own-chip,.owner-filter__btn,.owner-filter__label) { font-size: 13px; }
[data-ui-family="controls"] .req__link .badges { margin-left: auto; }
[data-ui-family="controls"] .score-row { gap: var(--space-4); }
[data-ui-family="controls"] .score-card { flex: 1 1 220px; padding: var(--space-4); }
[data-ui-family="controls"] .score-card .big { font-family: var(--font-display); font-size: 28px; }
[data-ui-family="controls"] .score-card.good { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
[data-ui-family="controls"] .score-card.bad { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
[data-ui-family="controls"] .mfa-review .page-header { display: block; }
[data-ui-family="controls"] .mfa-review__section { padding: var(--space-6); }
[data-ui-family="controls"] .mfa-review__policy summary span { font-size: 13px; }
[data-ui-family="scans"] :is(.rz-sev,.rz-fsel,.rz-fchip,.rz-gopt,.rz-glabel,.rz-vtoggle button) { font-size: 13px; }
[data-ui-family="scans"] :is(.rz-matrix td,.rz-n,.rz-z,.rz-tag,.rz-gcounts,.rz-garrow,.keybadge,
  .rz-now,.rz-arr,.rz-want,.rz-k,.rz-aiact,.conn-chip,.rz-win,.rz-alltab,
  .rz-ph-empty,.rz-aimeta,.rz-aistale code,.rz-qw,.measure-pill) { font-size: 13px; }
[data-ui-family="scans"] .rz-toolbar { gap: var(--space-3); }
[data-ui-family="scans"] :is(.sc-toolbar,.rz-aihead,.rz-aiact) { flex-wrap: wrap; gap: var(--space-3); }
[data-ui-family="scans"] .rz-vtoggle { max-width: 100%; }
[data-ui-family="scans"] .rz-vtoggle button { min-width: 0; white-space: normal; }
[data-ui-family="scans"] .rz-grp > summary { font-size: 15px; }
[data-ui-family="scans"] .ai-md__body { font-size: 15px; line-height: 1.6; }
[data-ui-family="scans"] :is(.rz-stale,.rz-aifail) { padding: var(--space-3) var(--space-4); font-size: 13px; }
[data-ui-family="scans"] .scan-diff-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); }
@media (min-width: 641px) {
  /* Score help sits at the row's right edge, including at actual 200% zoom. */
  [data-ui-family="controls"] .tree .badges [data-help]::after { left: auto; right: -4px; transform: none; }
}
@media (min-width: 641px) and (max-width: 1100px), (min-width: 641px) and (max-height: 560px) {
  /* A wrapping toolbar has no stable left/right-most chip. Keep its focused
     help viewport-bounded, as in the existing narrow-screen help treatment.
     The score badges at a row's right edge take the same bar in a narrow or a
     short window (actual 200% zoom on a laptop is both): a bubble tethered
     above a badge that has scrolled to the foot of the screen lands on the
     assistant launcher, and where the badge sits depends on how far the page
     above it has grown (the list kit's sort row moved it). The bar sits 96px
     up, clear of the launcher's 20px inset + 56px diameter, wherever the
     badge is. */
  [data-ui-family="controls"] :is(.ctrl-toolbar, .tree .badges) [data-help]::after {
    position: fixed; left: 16px; right: 16px; top: auto; bottom: 96px;
    width: auto; max-width: none; transform: none; box-sizing: border-box;
  }
}
@media (max-width: 1100px) {
  [data-ui-family="controls"] .controls__layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
  :is([data-ui-family="controls"], [data-ui-family="scans"]) .main .card,
  [data-ui-family="controls"] .mfa-review__section { padding: var(--space-4); }
  [data-ui-family="controls"] .detail__grid { grid-template-columns: minmax(0,1fr); }
  [data-ui-family="controls"] .tree { padding: var(--space-2); }
  [data-ui-family="controls"] .sub { margin-left: var(--space-2); }
  [data-ui-family="controls"] .reqs { margin-left: var(--space-2); }
  [data-ui-family="controls"] :is(.cat,.sub) > summary { flex-wrap: wrap; }
  [data-ui-family="controls"] .req__title { flex-basis: 100%; }
  [data-ui-family="scans"] .scan-diff-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-ui-family="scans"] .sc-toolbar .table-filter { max-width: none; flex-basis: 100%; }
  [data-ui-family="scans"] .rz-toolbar > * { min-width: 0; max-width: 100%; }
  [data-ui-family="scans"] .rz-gsel { flex-wrap: wrap; }
}

/* UI19 Evidence: the file remains the unit of identity; disclosure reveals work. */
[data-ui-family="evidence"] .evidence-ui-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
}
[data-ui-family="evidence"] .evidence-ui-title { min-width: 0; overflow-wrap: anywhere; }
[data-ui-family="evidence"] .evlib__views .rz-gopt.is-on { background: var(--action-fill); border-color: var(--action-fill); color: #fff; }
[data-ui-family="evidence"] .evlib .card { padding: var(--space-6); }
[data-ui-family="evidence"] .evlib .doc-card { padding: 0; margin-bottom: var(--space-3); }
[data-ui-family="evidence"] .doc-card__summary { padding: var(--space-4); gap: var(--space-3); }
[data-ui-family="evidence"] .doc-card__body { padding: var(--space-4); }
[data-ui-family="evidence"] .doc-card__mappings { grid-template-columns: minmax(0,1fr); }
[data-ui-family="evidence"] .mapping { min-width: 0; }
[data-ui-family="evidence"] .mapping__sub { white-space: normal; overflow-wrap: anywhere; }
[data-ui-family="evidence"] .doc-card__name { font-size: 15px; white-space: normal; }
[data-ui-family="evidence"] .doc-card__head { gap: var(--space-4); flex-wrap: wrap; }
[data-ui-family="evidence"] .doc-card__actions { gap: var(--space-2); flex-wrap: wrap; white-space: normal; min-width: 0; max-width: 100%; }
[data-ui-family="evidence"] .evlib__dropzone { background: var(--surface-panel); padding: var(--space-6); }
[data-ui-family="evidence"] .evlib__dropzone:is(:hover,.evlib__dropzone--picked,.is-over) { background: var(--tint-ok-bg); }
[data-ui-family="evidence"] .evlib__dropzone-inner { grid-template-columns: auto minmax(0,1fr); gap: var(--space-2) var(--space-4); }
[data-ui-family="evidence"] .evlib__dropzone-title { overflow-wrap: anywhere; font-size: 15px; }
[data-ui-family="evidence"] :is(.rz-gopt,.rz-fchip,.keybadge,.pill,.chip,.ev-pill,.btn--xs,.small,.help,small,
  .doc-card__sub,.doc-card__meta,.doc-card__count,.evlib__dropzone-sub,.evlib__validity-label,
  .doc-vers__toggle,.doc-ver__date,.doc-ver__by,.doc-ver__sha,
  .evlib__validity-hint,.evproof__sum .s,.evproof__what,.evproof__why,.evproof__hint,.evproof__histrow,
  .evproof__f,.evproof__panel > p,.evproof__door b,.evproof__door span,.evproof__t th,.evproof__secthead td,
  .ev-validity-edit__label,.ev-validity-edit__hint,.ev-validity-edit__toggle,
  .add-mapping__label,.mapping__pill,.mapping__why,.slotmap__label,.slotmap__why,.slotmap__done,
  .slotmap__confirm p,.slotmap__note,.mapping__note) { font-size: 13px; }
[data-ui-family="evidence"] .evidence-ui-validity { white-space: normal; }
[data-ui-family="evidence"] .evproof__sum { background: var(--surface-panel); border-color: var(--border-subtle); }
[data-ui-family="evidence"] .evproof__sum .s { padding: var(--space-3) var(--space-4); }
[data-ui-family="evidence"] .evproof__sum .s.is-bad b { color: var(--tint-crit-ink); }
[data-ui-family="evidence"] .evproof__sum .s.is-warn b { color: var(--tint-high-ink); }
[data-ui-family="evidence"] .evproof__name { font-size: 15px; }
[data-ui-family="evidence"] .evidence-proof-scroll { max-width: 100%; overflow-x: auto; }
[data-ui-family="evidence"] .evproof__t td[data-l]::before { font-size: 13px; letter-spacing: normal; text-transform: none; }
[data-ui-family="evidence"] .evproof__f { min-width: 0; max-width: 100%; }
[data-ui-family="evidence"] .evproof__f :is(input,select) { min-width: 0; max-width: 100%; }
[data-ui-family="evidence"] :is(.evread,.evprev,.evidence-outcome) { min-width: 0; overflow-wrap: anywhere; }
[data-ui-family="evidence"] .evidence-outcome { padding: var(--space-6); }
[data-ui-family="evidence"] .evidence-outcome :is(p,li) { font-size: 15px; line-height: 1.6; }
[data-ui-family="evidence"] .doc-rm__confirm p { font-size: 15px; line-height: 1.6; }
[data-ui-family="evidence"] .evcoverage :is(small,.subtle,.keybadge,.chip) { font-size: 13px; }
[data-ui-family="evidence"] .evcoverage .dnsc-reference-limits th { font-size: 13px; }
@media (max-width: 768px) {
  [data-ui-family="evidence"] .evlib .card:not(.doc-card),
  [data-ui-family="evidence"] .evidence-outcome { padding: var(--space-4); }
  [data-ui-family="evidence"] .doc-card__summary { flex-wrap: wrap; }
  [data-ui-family="evidence"] .doc-card__state { max-width: 100%; }
  [data-ui-family="evidence"] .evlib__views .rz-gopt { white-space: normal; }
}

/* UI19 administration and support: operational density with readable metadata. */
:is([data-ui-family="administration"], [data-ui-family="support"]) main .card {
  padding: var(--space-6); border-color: var(--border-subtle);
}
:is([data-ui-family="administration"], [data-ui-family="support"]) .page-header { gap: var(--space-4); }
:is([data-ui-family="administration"], [data-ui-family="support"]) main :is(
  small,.small,.subtle,.muted,.pill,.chip,.health-chip,.id-copy,.org-id,.head-count,.btn--small,.data-table th,
  .pf__t td,.pf__name,.usage-dashboard small) { font-size: 13px; }
[data-ui-family="administration"] .console-table { width: 100%; --ct-pad-y: 12px; --ct-pad-x: 16px; }
[data-ui-family="administration"] .action-stack {
  display: inline-grid; grid-template-columns: repeat(2, minmax(94px, 1fr)); gap: 8px;
}
[data-ui-family="administration"] .action-stack form { display: contents; }
[data-ui-family="administration"] .action-stack > *:first-child,
[data-ui-family="administration"] .action-stack > form:first-child > .btn { grid-column: 1 / -1; }
[data-ui-family="administration"] .console-table .cell-danger {
  border-left: 1px solid var(--border-subtle); background: var(--tint-crit-bg);
}
[data-ui-family="administration"] :is(.console-form,.pf-filters,.usage-controls) { gap: var(--space-3); }
[data-ui-family="administration"] :is(.console-form,.form-grid) :is(input,select) { max-width: 100%; min-width: 0; }
:is([data-ui-family="administration"], [data-ui-family="support"]) main :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) {
  font-family: var(--font-body); font-size: 15px; color: var(--text-body);
  padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--surface-panel);
}
[data-ui-family="administration"] .pf__id :is(summary,code) { font-size: 13px; }
[data-ui-family="administration"] :is(.usage-month-columns,.usage-day-columns) > a { font-size: 13px; }
[data-ui-family="administration"] .console-form .grow { min-width: 0; flex-basis: 240px; }
[data-ui-family="administration"] .console-section { margin-bottom: var(--space-6); }
[data-ui-family="administration"] .pf__subrow > td { white-space: normal; }
[data-ui-family="administration"] .pf-sub { min-width: 0; overflow-wrap: anywhere; }
[data-ui-family="administration"] .pf-sub select { font-size: 13px; }
[data-ui-family="administration"] .console-title { font-family: var(--font-display); font-size: 20px; }
[data-ui-family="administration"] .usage-dashboard { color: var(--navy); }
[data-ui-family="administration"] .usage-section { padding: var(--space-6); border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface-panel); margin-block: var(--space-4); }
[data-ui-family="administration"] .usage-dashboard .usage-controls { background: var(--surface-panel); }
[data-ui-family="administration"] .usage-table-scroll { background: var(--white); }
[data-ui-family="support"] .bug-report-form { gap: var(--space-4); }
[data-ui-family="support"] .bug-report-form :is(p,h2) { margin: 0; }
[data-ui-family="support"] .bug-report-context { gap: var(--space-2) var(--space-4); }
[data-ui-family="support"] .bug-report-reference { font-size: 13px; font-family: var(--font-mono, monospace); overflow-wrap: anywhere; }
[data-ui-family="support"] .bug-report-row { padding: var(--space-4); border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface-panel); margin-block: var(--space-3); }
[data-ui-family="support"] .bug-report-row h2 { font-family: var(--font-display); font-size: 20px; }
[data-ui-family="support"] .bug-report-notice { border-left: 3px solid currentColor; }
@media (max-width: 1100px) {
  /* The expanded desktop sidebar leaves less room before the drawer boundary. */
  [data-ui-family="administration"] .tblwrap { max-width: 100%; overflow-x: auto; }
  [data-ui-family="administration"] .tblwrap > .console-table { overflow-wrap: normal; word-break: normal; }
  /* Scan history also needs a local scroller between the phone and drawer tiers. */
  [data-ui-family="scans"] .tblwrap { max-width: 100%; overflow-x: auto; }
  [data-ui-family="scans"] .tblwrap > .console-table { overflow-wrap: normal; word-break: normal; }
}
@media (max-width: 768px) {
  :is([data-ui-family="administration"], [data-ui-family="support"]) main .card,
  [data-ui-family="administration"] .usage-section { padding: var(--space-4); }
  [data-ui-family="administration"] .action-stack { max-width: 100%; }
  [data-ui-family="administration"] .usage-controls .field { min-width: 0; width: 100%; }
  [data-ui-family="administration"] .usage-controls :is(input,select) { max-width: 100%; }
}

/* UI19 standalone access. No authenticated shell or tenant-specific branding. */
body[data-ui-family="access"] {
  display: flow-root; margin: 0; padding: 0; min-height: 100vh;
  background: var(--surface-page); color: var(--text-body); font-size: 15px;
}
[data-ui-family="access"] main { min-width: 0; overflow-wrap: anywhere; }
[data-ui-family="access"] .access-logo {
  display: block; width: 164px; max-width: 100%; height: auto; margin: 0 auto 24px;
}
[data-ui-family="access"] :is(.sr-gate,.access-page,.tos-page,.door__card) {
  background: var(--surface-panel); border: 1px solid var(--border-subtle);
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,31,91,.05); padding: 32px;
}
[data-ui-family="access"] :is(.sr-gate,.access-page) {
  width: calc(100% - 32px); max-width: 480px; margin: 8vh auto 32px; text-align: left;
}
[data-ui-family="access"] .tos-page { width: calc(100% - 32px); margin: 32px auto; }
[data-ui-family="access"] .door { min-height: 100vh; padding: 32px 16px; }
[data-ui-family="access"] .door__card { max-width: 440px; }
[data-ui-family="access"] .door__back {
  position: static; align-self: flex-start; margin-bottom: 24px;
  color: var(--action-fill); min-height: 44px; display: inline-flex; align-items: center;
}
[data-ui-family="access"] .door__brand { margin-bottom: 24px; }
[data-ui-family="access"] .door__brand .access-logo { margin-bottom: 12px; }
[data-ui-family="access"] :is(.door__word,.door__word span) { color: var(--navy); }
[data-ui-family="access"] :is(.door__tag,.door__foot,.door__foot b) { color: var(--text-secondary); font-size: 13px; }
[data-ui-family="access"] :is(h1,.door__h) { color: var(--navy); font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
[data-ui-family="access"] .sr-gate__brand { font-size: 20px; line-height: 1.35; margin-bottom: 16px; }
[data-ui-family="access"] :is(.door__sub,.sr-gate__sub,.sr-gate__sent,.sr-note,.door__email,.tos-page__check) {
  font-size: 15px; line-height: 1.6; color: var(--text-secondary);
}
[data-ui-family="access"] :is(.door__hint,.door__for,.tos-page__meta) { font-size: 13px; color: var(--text-secondary); }
[data-ui-family="access"] :is(.door__label,.sr-gate__label) { font-size: 15px; margin-bottom: 8px; }
[data-ui-family="access"] :is(.door__input,.sr-gate__input) {
  min-height: 44px; font-size: 16px; border: 1px solid var(--border-subtle); border-radius: 6px;
}
[data-ui-family="access"] :is(.door__input--code,.sr-gate__input--code) { font-size: 24px; }
[data-ui-family="access"] :is(.door__go,.sr-gate__btn) {
  min-height: 44px; font-size: 15px; padding: 10px 16px; white-space: normal;
  background: var(--action-fill); color: var(--white); border-radius: 6px;
}
[data-ui-family="access"] .door__go--ghost {
  background: var(--surface-panel); color: var(--navy); border: 1px solid var(--border-subtle);
}
[data-ui-family="access"] :is(.door__link,.sr-gate__link) {
  font-size: 15px; color: var(--action-fill); min-height: 44px; display: inline-flex;
  align-items: center; justify-content: center; padding: 8px 4px;
}
[data-ui-family="access"] .door__input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
[data-ui-family="access"] .sr-note { padding: 12px 16px; border-style: solid; }
[data-ui-family="access"] .sr-note--warn { color: var(--tint-high-ink); }
[data-ui-family="access"] .access-page > p { color: var(--text-secondary); line-height: 1.6; }
[data-ui-family="access"] .access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Caller-provided actions retain their trusted HTML and destinations. */
[data-ui-family="access"] .access-actions a { min-height: 44px; display: inline-flex; align-items: center; }
[data-ui-family="access"] .access-actions a[style*="background"] { background: var(--action-fill) !important; }
[data-ui-family="access"] .access-actions a:not([style*="background"]) { color: var(--action-fill) !important; }
[data-ui-family="access"] .tos-scroll { border-color: var(--border-subtle); max-height: 46vh; }
@media (max-width: 560px) {
  [data-ui-family="access"] :is(.sr-gate,.access-page,.tos-page) { margin: 16px auto; padding: 24px 20px; }
  [data-ui-family="access"] .door__card { padding: 24px 20px; }
  [data-ui-family="access"] .door { padding: 24px 16px; }
}
@media (max-height: 650px) {
  [data-ui-family="access"] .door { justify-content: flex-start; }
}

/* UI19 reports and guidance. The email preview subtree keeps its own HTML
   and typography; only its separate preview chrome joins this family. */
.report-page, .report-preview-chrome { min-width: 0; }
.report-page > .report-layout { display: grid; grid-template-columns: 184px minmax(0,1fr); gap: 28px; align-items: start; }
.report-page .report-section-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.report-page .report-section-nav a { display: block; padding: 12px; border: 0; border-radius: 6px; background: transparent; white-space: normal; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.report-page .report-section-nav a:is(:hover,:focus-visible) { color: var(--action-fill); background: var(--sidebar-selected); }
.report-page .report-workspace { min-width: 0; }
.report-page .report-workspace > .section-title { padding-top: 24px; border-top: 1px solid var(--border-subtle); margin-top: 40px; }
.report-page .report-workspace > .section-title:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.report-page .report-workspace > .card { box-shadow: none; margin-bottom: 20px; }
.report-page .report-workspace :is(#dnsc-workbook,#remediation-plan) { scroll-margin-top: 88px; }
.report-page .report-workspace > .detail__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.report-page .report-workspace > .detail__grid > .card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 24px; border-radius: 0; margin: 0; box-shadow: none; border-width: 0 0 1px; padding: 24px 0; background: transparent; }
.report-page .report-workspace > .detail__grid > .card :is(h3,p) { grid-column: 1; margin: 0; }
.report-page .report-workspace > .detail__grid > .card > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 1100px) {
  .report-page > .report-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .report-page .report-section-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 600px) {
  .report-page .report-workspace > .detail__grid > .card { grid-template-columns: minmax(0,1fr); }
  .report-page .report-workspace > .detail__grid > .card > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
.report-page :is(.small,small,.pill,.badge,.subtle,.doclang-note,.binder-langtab i,
  .dnsc-values thead th,.dnsc-score-status,.dnsc-score-note,.dnsc-score-source,
  .dnsc-exception-count,.rz-gopt),
.report-preview-chrome .small { font-size: 13px; }
.report-page :is(.card,.table-wrap) { min-width: 0; }
.report-page :is(.card p,.binder-contents li) { line-height: 1.6; }
.report-page .section-title { margin-top: 32px; scroll-margin-top: 80px; }
.report-page .dnsc-values td[data-label]::before { font-size: 13px; }
.report-page :is(input,select,textarea) { max-width: 100%; }
.report-page #plan-rows .table-wrap { max-width: 100%; overflow-x: auto; }
.report-page #plan-rows input { min-width: 140px; }
.report-page #plan-rows textarea { min-width: 200px; }
.report-page .binder-contents { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
[data-ui-family="reports"] .sr-page :is(.sr-note,.sr-snapshot,.sr-head__credit,.sr-head__meta,.sr-banner,
  .sr-kpi__l,.sr-sec__note,.sr-toggle__opt,.sr-group__n,.sr-table,.sr-table th,.sr-phase__t,
  .sr-phase__e,.sr-empty,.sr-foot,.rz-gopt,.rz-fchip,.pill,.badge,.small,small) { font-size: 13px; }
[data-ui-family="reports"] .sr-page { overflow-wrap: anywhere; }
[data-ui-family="help"] :is(.man-root,.gd-page) { min-width: 0; }
[data-ui-family="help"] :is(.man-toc__group,.man-toc__empty,.man-meta,.man-crumbs,
  .man-tile span,.man-rel h4,.man-pager span,.gd-eyebrow,.gd-journey__item,.gd-meta,
  .gd-shot__url,.gd-shot__tag,.gd-shot figcaption,.gd-good__h,.gd-manual) { font-size: 13px; }
[data-ui-family="help"] .man-toc__group { letter-spacing: .04em; }
[data-ui-family="help"] .man { gap: 24px; grid-template-columns: 248px minmax(0,1fr); }
[data-ui-family="help"] .man-art { padding: 24px 32px; }
[data-ui-family="help"] :is(.gd-lead,.gd-steps li,.gd-why,.gd-note) { font-size: 15px; }
[data-ui-family="help"] .gd-shot__bar { flex-wrap: wrap; }
[data-ui-family="help"] .gd-shot__url { white-space: normal; overflow-wrap: anywhere; }
[data-ui-family="help"] .gd-stage { scroll-margin-top: 80px; }
@media (max-width: 900px) {
  [data-ui-family="help"] .man { grid-template-columns: minmax(0,1fr); }
  [data-ui-family="help"] .man-toc { position: static; max-height: 280px; }
}
@media (max-width: 560px) {
  [data-ui-family="help"] .man-art { padding: 20px 16px; }
  .report-page #plan-approval :is(table,tbody,tr,th,td) { display: block; width: 100%; }
  .report-page #plan-approval th { padding-bottom: 4px; }
  .report-page #plan-approval td { padding-top: 4px; }
}
@media print {
  .report-page > .report-layout { display: block; }
  .report-page .report-section-nav { display: none; }
  .report-page .page-header__act, .report-preview-chrome .btn { display: none !important; }
  [data-ui-family="reports"] .sr-head { break-inside: avoid; }
  [data-ui-family="help"] .man-toc, [data-ui-family="help"] .man-search,
  [data-ui-family="help"] .man-back { display: none; }
  [data-ui-family="help"] .man { display: block; }
  [data-ui-family="help"] .man-art { display: block; max-width: none; }
}

/* Workspace risk-band form: existing register controls and severity colors. */
[data-ui-family="registers"] .rb-config { max-width: 900px; padding: 24px; }
.rb-config__rows { display: grid; gap: 16px; margin: 24px 0; }
.rb-config__row { display: grid; grid-template-columns: 32px minmax(150px, 1fr) 150px 150px; gap: 16px; align-items: end; }
.rb-config__field { min-width: 0; }
.rb-config__field input { width: 100%; min-width: 0; }
.rb-config__range { font-size: 13px; }
/* Stack before the expanded sidebar leaves less than the four-column minimum. */
@media (max-width: 960px) {
  [data-ui-family="registers"] .rb-config { padding: 16px; }
  .rb-config__row { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
  .rb-config__row > .rb-config__field:nth-child(3), .rb-config__range { grid-column: 2; }
}

/* ═══ 19.0.31 (partner portals) ═══════════════════════════════════════════
   Everything below applies to a partner portal only (or to the new pages).
   A partner's uploaded logo is served from /brand/logo, so the attribute
   selector reaches it and never the standard service's Optimizor logo, whose
   rules above stay as they were. Uploads arrive at every aspect ratio: a
   square one used to fill the 148px sidebar width and stand 148px tall. */
.sidebar__brand img[src^="/brand/logo"] {
  width: auto; height: auto; max-width: 148px; max-height: 40px; object-fit: contain;
}
.mtop__logo[src^="/brand/logo"] { max-height: 32px; object-fit: contain; }
[data-ui-family="access"] .access-logo[src^="/brand/logo"] {
  width: auto; height: auto; max-width: min(100%, 240px); max-height: 72px; object-fit: contain;
}

/* The hosting provider's engineer page (/support-access): a console page with
   no console around it, so the partner's mark sits on top and the request form
   is one ~640px column of the app's own label-over-field pairs. */
.sa-brand { margin: 0 0 18px; }
.sa-brand__logo { display: block; width: auto; height: auto; max-width: 200px; max-height: 40px; object-fit: contain; }
.sa-form { max-width: 640px; }
.sa-form .form-row > :is(input, select, textarea) { max-width: 100%; }
.sa-form .form-row > textarea { width: 100%; min-height: 0; resize: vertical; font-family: inherit; }
.sa-form__id { width: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sa-form__short { align-self: flex-start; min-width: 160px; }

/* /portfolio/connection: two fields per row (a 36-character GUID needs half
   the card, not a quarter), one per row on a phone (auto-fit, so no second
   phone breakpoint: tests/test_mobile_layout_rules.py allows only the one); sender address on its own
   row. The notices carry the app's success / warning tints. */
.pp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px 20px; }
.pp-fields > div { min-width: 0; }
.pp-fields__wide { grid-column: 1 / -1; }
.pp-fields label { display: block; margin-bottom: 2px; }
.pp-fields :is(input, select) { width: 100%; max-width: 100%; min-width: 0; }
.pp-fields input[name="tenant_id"], .pp-fields input[name="client_id"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
}
.pp-notice {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; border: 1px solid;
  border-left-width: 4px; overflow-wrap: anywhere;
}
.pp-notice--ok   { background: var(--tint-ok-bg);   color: var(--tint-ok-ink);   border-color: var(--tint-ok-ink); }
.pp-notice--warn { background: var(--tint-med-bg);  color: var(--tint-med-ink);  border-color: var(--tint-med-ink); }
.pp-notice--crit { background: var(--tint-crit-bg); color: var(--tint-crit-ink); border-color: var(--tint-crit-ink); }

/* /portfolio/brand: the logo as it appears on the two light grounds it is
   shown on, with the same height caps as the real places (72px, 40px). */
.brandpv { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0; }
.brandpv__item { margin: 0; flex: 1 1 240px; max-width: 360px; }
.brandpv__ground {
  border: 1px solid var(--border-subtle); border-radius: 8px; padding: 18px 16px;
  min-height: 112px; display: flex; align-items: center; justify-content: center;
}
.brandpv__ground--page { background: var(--surface-page); }
.brandpv__ground--side { background: var(--sidebar-bg); justify-content: flex-start; }
.brandpv__img { width: auto; height: auto; max-width: 100%; object-fit: contain; display: block; }
.brandpv__img--page { max-height: 72px; max-width: min(100%, 240px); }
.brandpv__img--side { max-height: 40px; max-width: 148px; }
.brandpv figcaption { margin-top: 6px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* /portfolio/partners/<slug>: the month controls in one row, and the licence
   cell as two lines (kind and state, then the dates which never break). */
.pp-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin: 8px 0 4px; }
.pp-controls__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.pp-controls__month label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.pp-controls__month input { width: 11rem; max-width: 100%; }
.pp-controls__hint { margin: 0 0 12px; }
.pp-lic, .pp-lic__dates { display: block; white-space: nowrap; }
.pp-lic__dates { font-size: 13px; margin-top: 2px; }
[data-ui-family="administration"] .console-table.pp-consumption { --ct-pad-x: 10px; }
.pp-perms code, .pp-fields ~ p code { overflow-wrap: anywhere; }

/* ═══ 19.0.32 (training space): banner, step rail, reduced menu ═══════════
   The training space runs on the app's REAL screens, so everything on them
   keeps the app's own cards, sizes and colours (the owner approved the
   mockup in that version). Only these three pieces are new: the band that
   says where you are, the rail that says what to click next, and the menu
   cut down to what the path uses. Nothing here is fixed or sticky on
   purpose: an in-flow strip cannot cover the page's own controls at any
   width, which is the one thing the rail must never do. */
.trn-band {
  --trn-bg: #1D3A8A; --trn-ink: #FFFFFF; --trn-ink-soft: #DCE5F7;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding: 10px 28px; background: var(--trn-bg); color: var(--trn-ink);
  font-size: 14px; line-height: 1.45;
}
.trn-band p { margin: 0; flex: 1 1 320px; min-width: 0; }
.trn-band__tag {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; margin-right: 6px;
}
.trn-band__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.trn-band__allow { margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--trn-ink-soft); font-size: 13px; }
.trn-band__allow span { white-space: nowrap; }
.trn-band__form { margin: 0; }
.trn-band :where(a, button, summary):focus-visible { outline: 2px solid var(--focus-ring-on-dark); outline-offset: 2px; }
.trn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent;
  font: 700 14px/1.2 var(--font-display); cursor: pointer; text-decoration: none;
  list-style: none;
}
.trn-btn::-webkit-details-marker { display: none; }
.trn-btn:hover { text-decoration: none; }
.trn-btn--light { background: #FFFFFF; color: var(--trn-bg); border-color: #FFFFFF; }
.trn-btn--light:hover { background: #E8EEFB; }
.trn-btn--line { background: transparent; color: var(--trn-ink); border-color: rgba(255,255,255,.6); }
.trn-btn--line:hover { background: rgba(255,255,255,.12); }
.trn-btn--danger { background: var(--red); color: #FFFFFF; border-color: var(--red); }
.trn-btn--danger:hover { background: var(--red-dark); }
.trn-startover { position: relative; }
.trn-startover[open] > summary { background: rgba(255,255,255,.12); }
.trn-startover__pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: min(340px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 10px;
  background: var(--surface-panel); color: var(--text-primary);
  border: 1px solid var(--border-subtle); box-shadow: 0 8px 24px rgba(0,31,91,.18);
  font-size: 14px;
}
.trn-startover__pop p { margin: 0 0 10px; flex: none; }
.trn-startover__pop form { margin: 0; }
.trn-startover--card .trn-startover__pop { right: auto; left: 0; }
.trn-startover--card > summary { background: var(--surface-panel); color: var(--navy); border-color: var(--medium-gray); }
.trn-startover--card > summary:hover { background: var(--light-gray); }
.trn-startover--card :where(summary):focus-visible { outline: 2px solid var(--focus-ring); }

/* The compact strip under the banner: one step at a time, in flow. */
.trn-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 16px; padding: 10px 14px; border-radius: 10px;
  background: var(--tint-navy-bg); color: var(--tint-navy-ink);
  border: 1px solid var(--medium-gray); font-size: 14px; line-height: 1.45;
}
.trn-strip__step { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; flex: 1 1 320px; min-width: 0; }
.trn-strip__step[hidden] { display: none; }
.trn-strip__n {
  font: 800 12px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #FFFFFF; white-space: nowrap;
}
.trn-strip__t { font-family: var(--font-display); color: var(--navy); }
.trn-strip__h { flex: 1 1 260px; min-width: 0; color: var(--text-primary); }
.trn-strip__done { font-weight: 700; color: var(--tint-ok-ink); }
.trn-strip__note { display: block; margin-top: 4px; font-weight: 700; color: var(--tint-high-ink); }
.trn-strip__h strong { color: var(--navy); }
.trn-home__notice { margin-bottom: 18px; }
/* 19.0.33: the Records tab in training puts the control the training reads first and says so. */
.wsx-rec--training { border: 2px solid var(--navy); }
.wsx-trn-mark { display: block; font-size: 11px; font-weight: 800; color: var(--tint-navy-ink); background: var(--tint-navy-bg); border-radius: 6px; padding: 3px 7px; margin-top: 3px; }
.wsx-trn-others { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--light-gray); color: var(--text-muted); }
.trn-strip__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* The full rail (training home): the app's own card, the mockup's rows. */
.trn-home { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.trn-home__rail { flex: 0 0 300px; max-width: 100%; align-self: flex-start; }
.trn-home__side { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.trn-rail__count { margin: -8px 0 14px; color: var(--text-secondary); font-size: 14px; }
.trn-rail__head { margin: 0 0 14px; font: 800 13px/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.trn-rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.trn-rail__item { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text-secondary); }
.trn-rail__item.is-current { color: var(--navy); font-weight: 800; }
.trn-rail__dot {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--medium-gray); color: var(--text-secondary); font: 700 14px/1 var(--font-display);
}
.trn-rail__item.is-done .trn-rail__dot { background: var(--action-fill); border-color: var(--action-fill); color: #FFFFFF; }
.trn-rail__item.is-current .trn-rail__dot { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.trn-rail__dot svg { width: 14px; height: 14px; display: block; }
.trn-coach { border: 2px solid var(--navy); }
.trn-coach h2 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.trn-coach p { margin: 0 0 14px; }
.trn-coach--done { border-color: var(--action-fill); }
.trn-coach__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trn-coach__acts form { margin: 0; }
.trn-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.trn-muted { color: var(--text-secondary); font-size: 14px; }
.trn-vh { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* wow10 letters (2026-10-16): the OUG 155/2024 provision inside a NIS2 letter chip - in the chip's text for a screen reader and a copy, out of the 16px square. */
.nis2-vh { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The reduced menu: the app's own nav items, plus a button that looks like one. */
.trn-menu__form { margin: 0; }
.trn-menu__btn {
  width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-family: inherit;
}
.trn-menu__sep { height: 1px; margin: 8px 6px; background: var(--border-subtle); }
.trn-entry__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.trn-entry__acts form { margin: 0; }

@media (max-width: 768px) {
  .trn-band { padding: 10px 16px; }
  .trn-home__rail { flex-basis: 100%; }
  .trn-strip__nav { margin-left: 0; }
}

/* 19.0.34: what a PUBLISHED Terms text can contain beyond the shipped one
   (h3/h4, numbered lists, tables, bold and italic), in the same voice as the
   rules above. */
.tos-body h3 { font-size: 13.5px; color: var(--navy); margin: 14px 0 5px; }
.tos-body h4 { font-size: 13px; color: var(--navy); margin: 12px 0 4px; }
.tos-body ol { margin: 0 0 9px; padding-left: 22px; }
.tos-body li > ul, .tos-body li > ol { margin: 4px 0 0; }
.tos-body .tos-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.tos-body .tos-table th, .tos-body .tos-table td {
  border: 1px solid var(--border-subtle); padding: 5px 8px; text-align: left; vertical-align: top;
}
.tos-body .tos-table th { background: var(--off-white); color: var(--navy); }

/* 19.0.34: the Terms page on the portfolio (terms_publish.html) and the body
   of a published version. The published body gets its own heading scale so a
   document's title (Heading 1 becomes h2) stands above its articles (h3);
   the built-in v1.0 text keeps the .tos-body rules above. */
.terms-pub__status { margin: 0 0 16px; }
.terms-pub__upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.terms-pub__upload label { display: flex; flex-direction: column; gap: 6px; }
.terms-pub__publish { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.terms-pub__publish label:not(.tos-page__check) { display: flex; flex-direction: column; gap: 6px; }
.terms-pub__publish .sr-note { margin: 0; align-self: stretch; }
.terms-pub__publish .tos-page__check input { width: 18px; height: 18px; }
.terms-pub__discard { margin-top: 10px; }
.tos-body--published h2 { font-size: 17px; margin: 6px 0 10px; }
.tos-body--published h3 { font-size: 14px; margin: 18px 0 6px; }
.tos-body--published h4 { font-size: 13.5px; margin: 14px 0 5px; }

/* DORA round 3, wave 3 (lane AE): the static inline styles of the round-3
   tenant templates, as classes. The look is unchanged: every value below is the
   value the style="..." attribute carried. Computed widths and offsets (the bar
   segments, a marker's position) stay inline in their templates, because they
   come from data. */

/* "Sharing with the competent authority" on My Company (_supervisory_sharing.html) */
.ci-share__lead { margin-top: 0; }
.ci-share__packs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.ci-share__line { margin: 4px 0 0; }
.ci-share__save { margin-top: 14px; }
.ci-share__h { margin: 18px 0 6px; font-size: 14px; }
.ci-share__list { margin: 0; padding-left: 18px; }
.ci-share__none { margin: 0; }

/* The per-pack preview an entity sees of what its authority reads (sharing_preview.html) */
.shp-grid { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); border-top: 1px solid var(--medium-gray); }
.shp-label { padding: 8px 12px; border-bottom: 1px solid var(--medium-gray); font-weight: 700; }
.shp-value { padding: 8px 12px; border-bottom: 1px solid var(--medium-gray); min-width: 0; overflow-x: auto; }
.shp-label-wide { grid-column: 1 / -1; padding: 12px 12px 6px; font-weight: 700; }
.shp-value-wide { grid-column: 1 / -1; padding: 0 12px 12px; border-bottom: 1px solid var(--medium-gray); min-width: 0; overflow-x: auto; }
.shp-table { margin: 0; }
.shp-note { margin-top: 0; }
.shp-scroll { overflow-x: auto; }
.shp-actions { margin-top: 14px; }

/* The demonstration sector card on the portfolio (_demo_sector_card.html) */
.pf-demo { margin-top: 14px; }
.pf-demo__title { margin-top: 0; }
.pf-demo__lead { margin-top: 0; }
.pf-demo__note { margin-bottom: 0; }

/* Requirements coverage on a DORA workspace's Progress page (_progress_dora.html) */
#dora-progress-coverage .mtrack { margin: 8px 0; }
.prog-dora__pillars { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 24px; }
/* DORA round 3, wave 3 fold: the sharing preview's nested table on a phone - the
   generic register table squeezed to one letter per column at 390 px; it now keeps
   its natural width inside the scrolling body (lane AA's finding). */
.shp-scroll .data-table { width: max-content; min-width: 100%; }

/* Wow-1 authority lane (2026-10-10): the sharing preview draws a pack with the
   authority's own markup (templates/_authority_packs.html, styled by
   authority.css, which sharing_preview.html links for that case). The wrapper is
   a tenant card, not the authority's page ground, so it keeps the card's own
   white. Its card-per-row layout under 600 px is the kit's K3 rule below (it
   began here as .shp-cards and was folded into the global rule on 2026-10-11);
   the preview's template already labels every cell. The generic tree's
   .shp-scroll above is for any other shape. */
.card .shp-pack.av-body { background: transparent; font-size: inherit; line-height: inherit; }
.shp-pack .av-table thead th { white-space: nowrap; }
/* Wave 3, leftover lane L1: the preview's incident rows open the entity's own record, so the date is a link and
   reads as one (authority.css keeps it inherited on the authority's own page, where it opens that page's list). */
.shp-pack .av-table--incidents tbody th[scope="row"] a { color: var(--action-fill); }

/* Kit K3 (pages ranked, board 13, owner's D3, 2026-10-11): ONE card-per-row
   rule for every register table, in both regimes. Under 600 px an .av-table, a
   .rk2-table or a .data-table whose cells carry data-label (their column head)
   lays out as one card per row: the head row stays for screen readers and moves
   out of sight, each row is a bordered block, and each cell prints its
   data-label above its value. The rule is keyed on the CELLS, so a table whose
   cells carry no data-label keeps today's horizontal scroll until a slice labels
   it, and a browser without :has() drops the rule and scrolls too. Three
   carve-outs, each pinned by tests/test_kit_css.py:
   - .console-table (the MSP/tenant consoles and the three labelled NIS2 tables
     on /auditor, /remediation and the DNSC workbook preview) keeps its own phone
     contract: the .tblwrap scroll and the sticky head pinned by
     tests/test_mobile_layout_rules.py, and the two 600px blocks above.
   - #dora-req-controls (dora_requirement.html) and .req-dora (_dora_serves.html)
     carried a local stacking block in their template and were carved out until
     board 12 (pages ranked, slice 4.2, 2026-10-11) removed those blocks; the
     rule now lays out both tables like every other register table.
   The scroll wrapper around a card table stops being a scroll container, so
   the chips' tap areas (K4) are not clipped at the first and last row. */
@media (max-width: 599px) {
  :is(.av-scroll, .rk2-tblwrap, .shp-scroll):has(:is(.av-table, .rk2-table, .data-table:not(.console-table)) td[data-label]) { overflow: visible; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) { display: block; width: auto; min-width: 0; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) :is(tbody, tr, th, td) { display: block; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) tbody tr { margin: 0 0 12px; padding: 4px 12px 8px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) tbody tr:hover { background: var(--white); }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) :is(th, td) { padding: 4px 0; border-bottom: 0; white-space: normal; min-width: 0; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) tbody th[scope="row"] { padding: 8px 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; overflow-wrap: anywhere; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text-muted-readable); }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) td > .av-rep__d { white-space: normal; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]) .av-pillar__bar { min-width: 0; }
  /* 2026-10-12 (the DORA records page and the Implementation register): the
     three-tile and the fill strips and the record
     cards go to one column on a phone (base rules beside .rk2-tiles--five and
     after .rk2-review--over). In this block because the tier is one block. */
  .rk2-tiles.rk2-tiles--three { grid-template-columns: minmax(0, 1fr); }
  .rk2-reccards { grid-template-columns: minmax(0, 1fr); }
  .rk2-tiles.rk2-tiles--fill { grid-template-columns: minmax(0, 1fr); }
}

/* Kit K4 (board 13, 2026-10-11): a 44 px tap target on every chip in a list or
   table, with no visual change. A chip's own box stays 22-26 px tall; a
   transparent ::after extends its hit area 10 px above and below and not one
   pixel sideways, so two chips side by side are each hit at their own centre,
   and a chip stacked under another reaches at most 6 px into its neighbour's
   box, never its centre. Only an interactive chip gets the extension: the <a>
   or <button> that carries the class, or the chip sitting directly inside one.
   A plain status chip has nothing to tap and must not shadow the link beside
   it. `position: relative` is new on all four classes; none had a position or
   a pseudo-element rule before (app.css and authority.css, 2026-10-11). The
   clock chip (K6) belongs to the clock lane. */
.chip, .rk2-chip, .av-chip, .av-tag { position: relative; }
:is(a, button):is(.chip, .rk2-chip, .av-chip, .av-tag)::after,
:is(a, button) > :is(.chip, .rk2-chip, .av-chip, .av-tag)::after { content: ""; position: absolute; inset: -10px 0; }

/* -- the shared kit (board 13, 2026-10-11): K1 tile link, K7 gauge, K8 timeline lanes ---- */
a.rk2-tile { display: block; color: inherit; text-decoration: none; min-height: 44px; }
.rk2-minimap td { text-align: center; }
.rk2-minimap thead th:not(:first-child) { text-align: center; }
.rk2-table th[scope="row"] .rk2-metaline { white-space: normal; }
.rk2-gauge { display: inline-flex; flex-direction: column; align-items: center; }
.rk2-gauge svg { width: 150px; height: auto; }
.rk2-gauge__l { font-size: 12px; color: var(--text-muted-readable); text-align: center; }
.rk2-empty.empty .btn { margin-top: 8px; }
.tl { margin-top: 6px; max-width: 100%; overflow: hidden; }
.tl__lane { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--border-subtle); }
.tl__name { padding-right: 12px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.tl__track {
  position: relative; height: 44px; border-left: 1px solid var(--border-subtle);
  background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.tl__m { position: absolute; top: 50%; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); display: block; }
.tl__m::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text-muted-readable); }
.tl__m--open::before { background: var(--white); border: 3px solid var(--tint-partly-ink, var(--text-muted-readable)); width: 10px; height: 10px; margin: -8px 0 0 -8px; }
.tl__m--over::before { background: var(--tint-crit-ink); }
.tl__ax { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4px; font-size: 12px; color: var(--text-muted-readable); }
@media (min-width: 600px) {
  .tl__lane { grid-template-columns: 150px minmax(0, 1fr); }
  .tl__ax { grid-template-columns: 150px repeat(12, 1fr); }
}

/* -- moved out of the pages that carried them in <style> blocks (pages ranked, wave 3, leftover lane L1,
   2026-10-11), unchanged: the DORA home (index_dora.html) and the risk heat map (risks.html, slice 3.2) ---- */
/* 2026-10-12 (owner: the NIS2 dashboard "to also look like the dora one"): the home's rules hang off the
   neutral `.home-board` class, which BOTH homes carry (index_dora.html beside .dora-home, index.html beside
   .nis2-home), instead of `.dora-home`; nothing was forked and no rule changed but its scope. `.dh-*` reads
   "dashboard home".
   2026-10-13 (owner: "adding the old Dashboard for NIS2 only and show the new one when Dora is enabled
   only"): the NIS2 dashboard (index.html) is the pre-19.1.0 page again, so only the DORA home carries
   `.home-board` now; the rules stay under that scope, unchanged, and the NIS2 home's own rules are gone. */
  .home-board .dh-row { align-items: start; }
  .home-board .dh-row--hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .home-board .dh-row--single { grid-template-columns: minmax(0, 1fr); }
  @media (max-width: 1100px) { .home-board .dh-row--hero { grid-template-columns: minmax(0, 1fr); } }
  .home-board .dh-card { padding: 18px 22px; min-width: 0; }
  .home-board .dh-card .prog-functions__head { gap: 10px; flex-wrap: wrap; }
  .home-board .dh-unavailable { margin: 0; }
  .home-board .dh-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .home-board .dh-line { margin-top: 2px; }

  /* The coverage hero. The bar is three segments that add up to 100%; the
     colours are the compliance pills' (met = green, partly = amber, missing =
     red) and every segment is also said in words by the legend and the
     counts, so colour is never the only carrier. */
  .home-board .dh-total { margin: 0 0 10px; font-size: 14px; color: var(--text-secondary); }
  .home-board .dh-total__n { font-size: 30px; line-height: 1; font-weight: 700; color: var(--navy);
    font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-right: 2px; }
  .home-board .dh-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--medium-gray); }
  .home-board .dh-bar > i { display: block; height: 100%; }
  .home-board .dh-bar--sm { height: 8px; border-radius: 4px; }
  .home-board .dh-bar__met { background: var(--green-dark); }
  .home-board .dh-bar__partly { background: var(--amber); }
  .home-board .dh-bar__missing { background: var(--red); }
  .home-board .dh-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap;
    gap: 4px 18px; font-size: 12.5px; color: var(--text-secondary); }
  .home-board .dh-legend li { display: flex; align-items: center; gap: 6px; }
  .home-board .dh-legend b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .home-board .dh-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .home-board .dh-sw--met { background: var(--green-dark); }
  .home-board .dh-sw--partly { background: var(--amber); }
  .home-board .dh-sw--missing { background: var(--red); }
  .home-board .dh-pillars { list-style: none; margin: 16px 0 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
  .home-board .dh-pillar { border: 1px solid var(--medium-gray); border-radius: 8px; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--surface-panel); }
  .home-board .dh-pillar__name { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.35; }
  .home-board .dh-pillar__name:hover { text-decoration: underline; }
  .home-board .dh-pillar__n { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  .home-board .dh-pillar__n b { font-size: 18px; color: var(--navy); }
  .home-board .dh-pillar__counts { font-size: 12px; }
  .home-board .dh-note { margin: 12px 0 0; font-size: 12.5px; }

  /* Slice 3.2 (D23, K7): the gauge beside the three-state bar. The gauge is
     one link (the requirements met); the legends are links where they count
     something; the links keep the text colour, so a card does not turn blue. */
  .home-board .dh-cov { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
  .home-board .dh-gauge { color: var(--navy); text-decoration: none; flex: none; display: inline-flex; border-radius: 8px; }
  .home-board .dh-gauge:hover, .home-board .dh-gauge:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
  .home-board .dh-gauge .rk2-gauge svg { width: 132px; }
  .home-board .dh-cov__bars { flex: 1 1 260px; min-width: 0; }
  .home-board .dh-legend a, .home-board .dh-legend__none { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
  .home-board .dh-legend a:hover { text-decoration: underline; }
  .home-board .dh-trend { margin: 10px 0 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
  .home-board .dh-trend b { color: var(--navy); }
  .home-board .dh-pillar__n a, .home-board .dh-pillar__counts a { color: inherit; }
  .home-board a.dh-kv { color: var(--text-secondary); text-decoration: none; }
  .home-board a.dh-kv:hover b { text-decoration: underline; }
  .home-board .dh-recs a.dh-recs__name { text-decoration: none; }
  .home-board .dh-recs a.dh-recs__name:hover { text-decoration: underline; }

  /* Slice 3.2 (D24): the risk card's compact heat map; three cards in the
     row once it exists. The cells' 44 px rule and link style are risks.html's
     (shared), restated here because that page's rule sits in its own markup. */
  .home-board .dh-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 1100px) { .home-board .dh-row--three { grid-template-columns: minmax(0, 1fr); } }
  /* 2026-10-12: the requests card joined the deadlines/steps row (index_dora.html); with the risk card
     that row holds four cards - four columns wide, two by two at tablet, one column on a phone. */
  .home-board .dh-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 1400px) { .home-board .dh-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 1100px) { .home-board .dh-row--four { grid-template-columns: minmax(0, 1fr); } }
  .home-board .dh-heat { border-spacing: 2px; }
  .home-board .dh-heat .rk2-heat__td { padding: 0; }
  .home-board .dh-heat .rk2-heat__cell { height: 44px; }
  .home-board .dh-heat a.rk2-heat__cell { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
  .home-board .dh-heat a.rk2-heat__cell:hover, .home-board .dh-heat a.rk2-heat__cell:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
  .home-board .dh-heat__axis { margin-top: 8px; }

  /* K4 on a phone: every link in a card is a 44 px tap target. Text links
     become inline-flex boxes of that height; the deadline and step rows are
     already that tall. */
  @media (max-width: 600px) {
    .home-board .card a:not(.btn):not(.dh-gauge):not(.rk2-heat__cell):not(.dh-dl__what):not(.dh-kv) {
      display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; }
    .home-board a.dh-kv, .home-board .dh-dl__what { min-height: 44px; }
    .home-board .btn { min-height: 44px; display: inline-flex; align-items: center; }
    .home-board .dh-legend { gap: 0 14px; }
    .home-board .dh-pillar { gap: 2px; }
  }

  /* What is owed to the supervisor: three blocks, a rule between them. */
  .home-board .dh-owed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
  .home-board .dh-owed__item { display: flex; flex-direction: column; gap: 4px; padding: 11px 0;
    border-bottom: 1px solid var(--medium-gray); font-size: 13px; }
  .home-board .dh-owed__item:first-child { padding-top: 0; }
  .home-board .dh-owed__item:last-child { border-bottom: 0; padding-bottom: 0; }
  .home-board .dh-owed__item > b { color: var(--text-primary); font-size: 13.5px; }
  .home-board .dh-kv { display: flex; justify-content: space-between; gap: 10px; color: var(--text-secondary); }
  .home-board .dh-kv b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .home-board .dh-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .home-board .dh-recs li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 12px;
    align-items: baseline; }
  .home-board .dh-recs__name { color: var(--text-primary); }
  .home-board .dh-recs__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--text-secondary); }
  @media (max-width: 420px) { .home-board .dh-recs li { grid-template-columns: minmax(0, 1fr); } }

  /* Next deadlines. */
  .home-board .dh-dl { list-style: none; margin: 0; padding: 0; }
  .home-board .dh-dl__row { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) auto; gap: 4px 12px;
    align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--medium-gray); font-size: 13px; }
  .home-board .dh-dl__row:first-child { padding-top: 0; }
  .home-board .dh-dl__row:last-child { border-bottom: 0; padding-bottom: 0; }
  .home-board .dh-dl__date { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
  .home-board .dh-dl__date small { font-weight: 400; color: var(--text-secondary); }
  .home-board .dh-dl__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none; color: var(--text-primary); }
  .home-board .dh-dl__what:hover b { text-decoration: underline; }
  .home-board .dh-dl__what small { color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
  .home-board .dh-dl__row.is-overdue .dh-dl__date { color: var(--red); }
  .home-board .dh-more { margin: 10px 0 0; font-size: 12.5px; }

  /* Next steps. */
  .home-board .dh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
  .home-board .dh-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--medium-gray); }
  .home-board .dh-step:first-child { padding-top: 0; }
  .home-board .dh-step:last-child { border-bottom: 0; padding-bottom: 0; }
  .home-board .dh-step__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: var(--navy); background: var(--tint-navy-bg); }
  .home-board .dh-step.is-done .dh-step__mark { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
  .home-board .dh-step__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; }
  .home-board .dh-step__body small { font-size: 12px; }
  .home-board .dh-step.is-done .dh-step__body b { color: var(--text-secondary); font-weight: 600; }
  .home-board .dh-steps-card--welcome { border-color: var(--teal); margin-bottom: 14px; }

  /* The dashed card. It reads as "for reference": the same card, quieter. */
  .home-board .card--reference { background: var(--off-white); border: 1px dashed #B9C2D0; }
  .home-board .dh-ref { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }
  .home-board .dh-ref__main { flex: 1 1 320px; min-width: 0; }
  .home-board .dh-ref h2 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text-secondary); }
  .home-board .dh-ref p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; }
  .home-board .dh-ref__score { font-size: 24px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em; white-space: nowrap; }
  .home-board .dh-ref__score small { font-size: 14px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
  .home-board .dh-ref a { font-weight: 700; font-size: 13px; }

  /* Slice 3.2 (K4): a linked cell is a 44 px tap target that fills its
     cell; the empty cells grow with the row so the grid stays even. */
  .rk2-heat .rk2-heat__td { padding: 0; }
  .rk2-heat .rk2-heat__cell { height: 44px; }
  .rk2-heat a.rk2-heat__cell { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
  .rk2-heat a.rk2-heat__cell:hover, .rk2-heat a.rk2-heat__cell:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* ═══════════════════════════════════════════════════════════════════════
   wow4 W0-TABLES (2026-10-14): the shared table behaviour between a phone
   and a desktop, appended as one block (the fold resolves app.css as main's
   file plus each lane's tail; nothing above this line moved).

   The wow run (13 October) measured 73 pages whose tables were built for
   1440 px: at 1000 px the register tables hid their last columns and their
   action buttons in an inner scroll (the supplier register's tables 1000 px
   wide in a 690 px card, the authority incidents table 1231 px inside a
   980 px card, the findings' "Close finding" button out of sight), and at
   375 px every unlabelled table scrolled sideways. The kit's K3 rule (the
   599px tier above, owner's D3) already lays a LABELLED table out as one
   card per row under 600 px. This block adds the tiers above it:

   1. ≤ 1279 px: the declared minimum widths give way. `[data-ui-family=
      "registers"] .rk2-table { min-width: 1000px }`, the 640px tier's
      860px, authority.css's 900/960px per table and `.ar-table`'s 560px
      forced a scroll in any card narrower than that, whatever the content
      (every table on the supplier register measured exactly 1000 px at
      1000 px). A table is now as wide as its content needs; one that still
      cannot fit scrolls inside its wrapper, which SHOWS that it scrolls (3).
   2. 600-1100 px (the 1000 px board): a labelled table with SIX OR MORE
      columns lays out as cards whose fields flow in a grid of label/value
      pairs (three or four across at 1000 px) under its title cell. Keyed on
      the cells like K3 (`:has(td[data-label])`: an unlabelled table keeps
      its scroll until a wave-1 lane labels it) and on the head row
      (`thead th:nth-child(6)`): a five-column table fits at 1000 px once
      rule 1 lets it wrap, and stays a table. Every cell stays visible, the
      action column with them; a functions cell and an actions cell take a
      full line of the card.
   3. The scroll affordance: a wrapper that still scrolls paints a shadow at
      the edge that has more (background-attachment: local), so a clipped
      table never looks complete. The covers are the panel's own colour.
   4. ≤ 1100 px: the page header's action cluster may shrink and wrap its
      buttons (`flex: none` sized it to its content, 847 px on the supplier
      register at 1000 px: the "Adaugă" button read "Ada" and the page was
      115 px wider than the screen).
   5. < 600 px: `.ar-scroll` (the authority's requests and findings tables)
      joins the three wrappers K3 un-scrolls. Written as 599.98px because
      tests/test_kit_css.py pins ONE `@media (max-width: 599px)` block.
   Pinned by tests/test_wow4_tables.py. */

/* 3. the affordance, on every table wrapper, at every width */
.rk2-tblwrap, .av-scroll, .shp-scroll, .ar-scroll {
  background-image:
    linear-gradient(to right, var(--surface-panel) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, var(--surface-panel) 30%, rgba(255, 255, 255, 0)),
    radial-gradient(farthest-side at 0 50%, rgba(15, 31, 61, .18), rgba(15, 31, 61, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(15, 31, 61, .18), rgba(15, 31, 61, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* 1. ≤ 1279 px: the declared minimum widths give way to the content, and a
      register's head cells may wrap (the family's nowrap on `th` kept a
      five-column table 937 px wide in a 690 px card at 1000 px) */
@media (max-width: 1279px) {
  :is(.rk2-tblwrap, .av-scroll, .shp-scroll, .ar-scroll) > :is(.rk2-table, .av-table, .data-table) { min-width: 0; }
  [data-ui-family="registers"] .rk2-tblwrap > .rk2-table th { white-space: normal; }
}

/* 4. ≤ 1100 px: the header's action cluster shrinks and wraps its buttons */
@media (max-width: 1100px) {
  .page-header__act { flex: 0 1 auto; min-width: 0; max-width: 100%; }
}

/* 2. 600-1100 px: a labelled table of six or more columns lays out as cards */
@media (min-width: 600px) and (max-width: 1100px) {
  :is(.rk2-tblwrap, .av-scroll, .shp-scroll, .ar-scroll):has(:is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6))) { overflow: visible; background: none; }
  .rk2-tablecard:has(:is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6))) { padding: 10px 10px 0; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) { display: block; width: auto; min-width: 0; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody { display: block; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 18px; align-items: start; margin: 0 0 10px; padding: 10px 14px 12px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr:hover, :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr:hover td { background: var(--white); }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr > :is(th, td) { display: block; padding: 0; border-bottom: 0; white-space: normal; min-width: 0; max-width: none; overflow-wrap: anywhere; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr > th[scope="row"] { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; font-weight: 600; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) tbody tr > :is(td[data-functions], td.ar-actions-cell) { grid-column: 1 / -1; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text-muted-readable); margin-bottom: 1px; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) td > .av-rep__d { white-space: normal; }
  :is(.av-table, .rk2-table, .data-table:not(.console-table)):has(td[data-label]):has(thead th:nth-child(6)) .av-pillar__bar { min-width: 0; }
}

/* 5. < 600 px: the authority's .ar-scroll joins the wrappers K3 un-scrolls */
@media (max-width: 599.98px) {
  .ar-scroll:has(.data-table:not(.console-table) td[data-label]) { overflow: visible; background: none; }
}

/* -- wow4 W0-SCREEN (2026-10-14): the closed explainer fold, the timeline axis and today line, the
   zero-data sentences. Appended, nothing above reordered. ---------------------------------------- */
/* The explainer fold (_kit_fold.html): one line when closed; "More" flips to "Less" on [open]. */
.kfold { margin: 0; }
.kfold > .kfold__s { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 10px; min-height: 44px; padding: 0; font-size: 14px; line-height: 1.4; }
.kfold > .kfold__s::-webkit-details-marker { display: none; }
.kfold__t { font-weight: 700; color: var(--navy); }
.kfold__lead { color: var(--text-secondary); flex: 1 1 200px; min-width: 0; }
.kfold__more { color: var(--teal, #0F9D8F); font-weight: 600; white-space: nowrap; margin-left: auto; }
.kfold__more::after { content: " \25BE"; }
.kfold[open] .kfold__more::after { content: " \25B4"; }
.kfold__close, .kfold[open] .kfold__open { display: none; }
.kfold[open] .kfold__close { display: inline; }
.kfold__b { padding-top: 6px; }
.kfold__b > p:last-child { margin-bottom: 0; }
.kfold > .kfold__s:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.inc-card--fold { padding-top: 6px; padding-bottom: 6px; }
/* The timeline axis (K8): twelve slots under the twelve columns at every width. Above 600 px the
   axis is offset by the 150 px name column instead of carrying a thirteenth slot (the slot that put
   "Jan" under the names and read every mark a month late at 1440 and 1000 px). */
/* Phone first (the one 599 px tier of app.css stays the card rule's): twelve labels in 340 px are
   small and clipped with an ellipsis, and the today label is a plain right-aligned line; from 600 px
   the axis is offset by the name column and the label sits under its line. */
.tl__ax { font-size: 10.5px; }
.tl__ax > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 1px; }
/* The today line: through every track, under the marks (overdue keeps its red), named under the axis. */
.tl__now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--navy); margin-left: -1px; opacity: .55; pointer-events: none; }
.tl__m { z-index: 1; }
.tl__today { position: relative; min-height: 18px; font-size: 12px; color: var(--navy); text-align: right; }
.tl__today__l { position: static; display: block; white-space: nowrap; font-weight: 600; }
.tl__today__l::before { content: ""; display: inline-block; width: 10px; border-top: 2px dashed var(--navy); vertical-align: middle; margin-right: 4px; opacity: .55; }
@media (min-width: 600px) {
  .tl__ax { grid-template-columns: repeat(12, 1fr); margin-left: 150px; font-size: 12px; }
  .tl__ax > span { padding-left: 3px; }
  .tl__today { margin-left: 150px; height: 18px; text-align: left; }
  .tl__today__l { position: absolute; top: 0; display: inline; transform: translateX(-50%); }
}
.tl.tl--none { margin: 6px 0 0; overflow: visible; }
/* The zero-data sentences: the gauge's, the bar's, the strip's. */
.rk2-gauge--none { display: block; }
.rk2-gauge--none .rk2-gauge__l { font-size: 13px; color: var(--text-secondary); text-align: left; }
.dh-bar--none { margin: 0 0 6px; }
.avl-strip--none .avl-strip__none { margin: 6px 0 0; }
.avl-strip__bar[data-today] { stroke: var(--navy); stroke-width: 1.5; }
.avl-strip__today { color: var(--navy); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   wow4 W1-A (2026-10-14): the BNR authority pages' finish. Appended, nothing above moved.
   authority.css loads after this file, so each rule that must beat one of its own is written
   under `body.av-body` (one class more). No new media width: 960 px is authority.css's own tier,
   599.5px is the phone width here (599.98px is the table tiers' and is pinned to ONE block by tests/test_wow4_tables.py;
   tests/test_kit_css.py pins one 599px block), 600px the table tiers' desktop edge.
   1. the header's one action sits beside the title (`.av-head--act`, `.ar-head`'s own rule stays);
   2. the sub-navigation wraps instead of scrolling out of sight at 375 px;
   3. the entities table: LEI under the name, type over framework, the chip label word is always
      the column head's (cells carry data-label now), a thin coverage bar under the chip;
   4. the sector trend restacks per indicator at 375 px (it lost its October column);
   5. a tile that filters the list is lit (`rk2-tile--on`); the chip fold of the long chip rows;
   6. the access log: the date on one line; 7. the incidents legend: dot and word on one line;
   8. one request: the summary line, the divergence tag; the compose form's sticky action bar;
   9. the sector map: an intensity step per count, and one card per function at 375 px;
   10. one entity: the state strip, an open major incident first.
   Pinned by tests/test_wow4_w1a.py. */

/* 1. header with its one action */
body.av-body .av-head--act { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
body.av-body .av-head--act > div:first-child { flex: 1 1 280px; min-width: 0; }
body.av-body .av-head--act > .page-header__act { flex: 0 0 auto; }

/* 2. the sub-navigation wraps (≤ 960 px) */
@media (max-width: 960px) {
  body.av-body .av-nav { flex-wrap: wrap; overflow-x: visible; }
  body.av-body .av-nav__item { flex: 1 1 auto; white-space: normal; text-align: center; }
}

/* 3. the entities table */
body.av-body .av-table--entities { min-width: 0; }
body.av-body .av-table--entities .av-lei, body.av-body .av-table--entities .av-fw { display: block; font-weight: 400; }
body.av-body .av-table--entities .av-lei { margin-top: 2px; font-size: 12px; white-space: nowrap; }
body.av-body .av-table--entities .av-fw { font-size: 12.5px; }
body.av-body .av-table--entities .av-chip__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.av-body .av-bar--cov { width: 72px; height: 6px; margin-top: 4px; }

/* 4. the trend, per indicator at a phone width */
@media (max-width: 599.5px) {
  body.av-body .av-trend__table { display: block; overflow: visible; width: auto; }
  body.av-body .av-trend__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.av-body .av-trend__table tbody { display: block; }
  body.av-body .av-trend__table tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--av-line); }
  body.av-body .av-trend__table tbody th { grid-column: 1 / -1; padding: 0 0 2px; border: 0; }
  body.av-body .av-trend__table tbody td { display: block; padding: 0; border: 0; white-space: normal; font-size: 15px; }
  body.av-body .av-trend__table td[data-label]::before { content: attr(data-label); display: block; font: 600 11px/1.3 var(--font-body); color: var(--text-muted-readable); }
}

/* 5. a tile that filters is lit; the chip fold */
.rk2-tile.rk2-tile--on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--tint-navy-bg); }
.av-chipfold { margin: 0 0 12px; }
.av-chipfold .rk2-filters { margin-top: 4px; }
.av-chipfold__l { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--text-muted-readable); }

/* 6. the access log: the date does not wrap (from 600 px; the card rule lays it out below) */
@media (min-width: 600px) {
  .av-table--log td.avl-when, .av-table--log tbody th[scope="row"] { white-space: nowrap; }
}

/* 7. the legend: a dot and its word are one item */
.av-legend__i { display: inline-block; white-space: nowrap; }

/* 8. one request; the compose form's action bar stays in reach */
.ar-summary { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.ar-diverge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--tint-high-bg); color: var(--tint-high-ink); }
.ar-card > .ar-close { margin-top: 12px; }
.ar-actions--sticky { position: sticky; bottom: 0; z-index: 3; padding: 10px 0; background: var(--surface-page, #fff); border-top: 1px solid var(--border-subtle); }

/* 9. the sector map: an intensity step per count; one card per function at a phone width */
.av-map__cell--hi a { background: var(--navy); color: var(--white, #fff); }
.av-map__cell--mid a { background: #B9C6E4; }
@media (max-width: 599.5px) {
  body.av-body .av-map--wide { overflow: visible; }
  body.av-body .av-map .av-map__table, body.av-body .av-map--wide .av-map__table { display: block; width: auto; min-width: 0; table-layout: auto; }
  body.av-body .av-map .av-map__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.av-body .av-map .av-map__table tbody { display: block; }
  body.av-body .av-map .av-map__table tbody tr { display: block; margin: 0 0 12px; padding: 4px 12px 8px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); }
  body.av-body .av-map .av-map__table tbody th { display: block; width: auto; padding: 8px 0 6px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; overflow-wrap: break-word; }
  body.av-body .av-map .av-map__table td { padding: 0; border: 0; }
  body.av-body .av-map .av-map__table td.av-map__cell:not([data-label]), body.av-body .av-map .av-map__table td.av-map__n { display: none; }
  body.av-body .av-map .av-map__table td.av-map__cell[data-label] { display: inline-flex; align-items: center; gap: 6px; margin: 6px 12px 0 0; text-align: left; }
  body.av-body .av-map .av-map__table td.av-map__cell[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--text-body); }
}

/* 10. one entity: the state strip; an open major incident comes before the register */
.av-statestrip { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.av-pack--first { order: -1; }
/* -- wow4 W1-F (2026-10-14): the platform pages, the role wall and the training space, appended as one block.
   Nothing above this line moved. No new media tier: the one phone block below is written as 599.9px (a hair under the kit's 600px, the same phone) for the
   reason W0-TABLES gave: tests/test_kit_css.py and tests/test_wow4_tables.py pin the 599px and 599.98px blocks to ONE each; this is
   not a new breakpoint.

   1. The console tables (`.console-table`) are carved out of the kit's card rule by its contract (the .tblwrap
      scroll and the sticky head are pinned by tests/test_mobile_layout_rules.py). A console table that opts in
      with `data-cards` (every cell carries data-label, as the kit's rule asks) lays out as one card per row
      under 600 px, inside its unchanged .tblwrap, which stops scrolling for it. At 600-1100 px these tables fit
      by having fewer columns (the id behind Copy, uniform columns left out), not by cards.
   2. The summary strip (Manage Platform), the state line (Manage Users), the row menu (Manage Tenants), the
      Copy button's tap size, the role wall, the training rail's phone form. */
[data-ui-family="administration"] .id-copy { min-height: 36px; min-width: 44px; padding-inline: 10px; vertical-align: middle; }
.pf-strip { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 0 0 var(--space-4); padding: 0; }
.pf-strip > div { display: flex; flex-direction: column; min-width: 0; }
.pf-strip dt { font-size: 13px; color: var(--text-muted-readable); }
.pf-strip dd { margin: 0; font: 700 18px/1.3 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.mu-state { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }
.trn-rail-fold { display: none; }
.trn-menu__sub { display: block; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--text-secondary); white-space: normal; }
.trn-home__back { margin-left: 10px; vertical-align: middle; }
.rw { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; }
.rw__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--tint-navy-bg, #E8EEFB); }
.rw__b { min-width: 0; }
.rw__t { margin: 0 0 4px; font: 700 18px/1.3 var(--font-display); color: var(--navy); }
.rw__s, .rw__ask, .rw__more { margin: 0 0 6px; overflow-wrap: anywhere; }
.pf-state { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }
.health-chip__n { font-weight: 700; margin-left: 2px; }
.nt-advanced { margin: 14px 0 6px; }
.nt-advanced > summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.nt-advanced[open] > summary { margin-bottom: 10px; }
.usage-zero { margin: 6px 0 10px; }
.mu-group > th { text-align: left; background: var(--surface-panel); font-family: var(--font-display); color: var(--navy); border-top: 2px solid var(--border-subtle); }
.mt-name { font-weight: 600; text-align: left; }
[data-ui-family="administration"] [data-closed-reason] { white-space: normal; max-width: 220px; text-align: left; }
.mt-name__t { margin-right: 6px; overflow-wrap: anywhere; }
.row-menu { margin-top: 8px; text-align: right; }
.row-menu > summary { list-style: none; cursor: pointer; display: inline-block; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu__b { margin-top: 6px; }
.row-menu__b form { margin: 0; }
@media (max-width: 599.9px) {
  [data-ui-family="administration"] :is(.tblwrap, .usage-table-scroll):has(> .console-table[data-cards]) { overflow: visible; background: none; }
  [data-ui-family="administration"] .console-table[data-cards] { display: block; width: auto; min-width: 0; }
  [data-ui-family="administration"] .console-table[data-cards] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-ui-family="administration"] .console-table[data-cards] :is(tbody, tr, th, td) { display: block; }
  [data-ui-family="administration"] .console-table[data-cards] tbody tr { margin: 0 0 12px; padding: 4px 12px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); }
  [data-ui-family="administration"] .console-table[data-cards] tbody tr:hover { background: var(--white); }
  [data-ui-family="administration"] .console-table[data-cards] :is(th, td) { padding: 4px 0; border-bottom: 0; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  [data-ui-family="administration"] .console-table[data-cards] tbody th[scope="row"] { padding: 8px 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; }
  [data-ui-family="administration"] .console-table[data-cards] td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text-muted-readable); }
  [data-ui-family="administration"] .console-table[data-cards] .cell-danger { border-left: 0; background: none; padding-top: 8px; width: auto; }
  [data-ui-family="administration"] .console-table[data-cards] .cell-danger .btn { width: auto; white-space: nowrap; writing-mode: horizontal-tb; }
  [data-ui-family="administration"] .console-table[data-cards] .action-cell { text-align: left; width: auto; }
  [data-ui-family="administration"] .console-table[data-cards] tbody tr.mu-group { margin: 16px 0 6px; padding: 0; border: 0; background: none; }
  [data-ui-family="administration"] .console-table[data-cards] tr.mu-group > th { border: 0; padding: 0; font-size: 16px; }
  /* the training space on a phone: the current step's card first, the list behind one line, the band one line + its buttons */
  .trn-home { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .trn-home__side { order: 1; flex: none; width: 100%; }
  .trn-home__rail { order: 2; flex: none; width: 100%; }
  .trn-rail--wide, .trn-home__rail .trn-rail__count, .trn-home__rail .trn-rail__head { display: none; }
  .trn-rail-fold { display: block; }
  .trn-rail-fold > summary { cursor: pointer; font-weight: 800; color: var(--navy); list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; min-height: 36px; align-items: center; }
  .trn-rail-fold > summary::-webkit-details-marker { display: none; }
  .trn-rail-fold__t { font-weight: 600; color: var(--teal, #0F9D8F); }
  .trn-rail-fold[open] > .trn-rail { margin-top: 10px; }
  .trn-band { padding: 8px 12px; gap: 6px 10px; }
  .trn-band > p { flex: 1 1 100%; white-space: normal; font-size: 13px; }  /* two lines, not an ellipsis (wow5, lane platform) */
  .trn-band__allow { display: none; }
  .trn-band__right { flex: 1 1 100%; flex-wrap: nowrap; gap: 8px; }
  [data-ui-family="administration"] .usage-table-scroll caption { display: block; width: auto; white-space: normal; text-align: left; overflow-wrap: anywhere; }
  [data-ui-family="administration"] .id-copy { min-height: 40px; }
  [data-ui-family="administration"] :is(.pf__t, .console-table) .btn--small, [data-ui-family="administration"] .health-chip { min-height: 36px; }
  [data-ui-family="administration"] .row-menu { text-align: left; }
}

/* -- wow4 W1-D (2026-10-14): the document pages' first screen - the templates gallery's state
   line, zero-match sentence and recommended / generated cards; the register's state line and the
   tiles that open the rows they count; the integrations technical fold. Appended, nothing above
   reordered, no new media tier. ---------------------------------------------------------------- */
.tplstrip { margin: 4px 0 0; }
.tplnone { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  color: var(--text-secondary); font-size: 14px; }
.tplcard--rec { border-color: var(--teal, #0F9D8F); box-shadow: 0 0 0 1px var(--teal, #0F9D8F) inset; }
.tplcard--done { background: var(--light-gray, #f6f7f9); }
.tplcard__state { margin-left: 4px; }
.tplgallery .kfold { margin: 0 0 14px; }
a.tplchip { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
a.tplchip:hover, a.tplchip:focus-visible { border-color: var(--teal, #0F9D8F); color: var(--navy); }
.reg-state { margin: 4px 0 0; }
.reg-cov .cov { position: relative; }
.reg-cov .cov .cov__go { position: absolute; inset: 0; border-radius: inherit; }
.reg-cov .cov:hover { border-color: var(--teal, #0F9D8F); }
.reg-cov .cov .cov__go:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.reg-row .btn--sm, .reg-acts .btn--sm { min-height: 32px; }
.page .kfold + .reg-cov, .page .kfold + .tree-toolbar { margin-top: 14px; }
/* the assistant panel's one sentence above its starters */
.opti-chat-hello { flex: 1 0 100%; margin: 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
/* the guide's state line: the step the reader is at, and the one button */
.gd-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-weight: 600; color: var(--navy); }
/* the document connectors' Configure / Close affordance reads in the page's language (data-open / data-close) */
.conn-summary__cta[data-open]::before { content: attr(data-open); }
.conn-disclose[open] > summary .conn-summary__cta[data-close]::before { content: attr(data-close); }
/* the hidden attribute wins over the flex display of the zero-match line; the evidence strip wraps at phone width */
.tplnone[hidden] { display: none; }
.evlib__sum { flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════
   wow4 W1-E (2026-10-14): sharing, company and setup pages. One appended
   block; no media tier added (the Team tables answer to their own width with
   a container query, not a viewport tier).
   ═══════════════════════════════════════════════════════════════════════ */
/* the sharing previews */
.shp-fold { margin: 0 0 10px; }
.shp-what { margin: 0 0 8px; }
.av-table--suppliers td:nth-child(4) { white-space: nowrap; }
/* the request's deadline line (answer page header) */
.ar-deadline { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
/* My Company: the sharing summary and the first step */
.ci-sharebar, .ci-firststep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; }
.ci-meter__act { margin-top: 8px; }
.ci-meter__link { color: inherit; text-decoration: underline; }
.ci-share__first { margin: 0 0 10px; }
.ci-share__first .ci-share__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* Setup -> Risk: the status line, the definition list that stacks label over value, the folded optional card */
.rk-status { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 14px; font-size: 14px; }
.rk-fields { grid-template-columns: minmax(0, 1fr); }
.rk-fields > div { display: block; }
.rk-fields dd { overflow-wrap: anywhere; margin-bottom: 4px; }
.rk-fold { margin: 0; }
.rk-fold__s { cursor: pointer; font-weight: 600; color: var(--navy); padding: 4px 0 10px; }
/* the technical details that moved behind a fold (tenant id, AI and search endpoints) */
.ut-tech { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-secondary); }
.ut-tech > summary { cursor: pointer; display: inline-block; }
/* Settings: cards size to their content (a form no longer sinks to the card's bottom, leaving a hole under the heading) */
.settings-grid { align-items: start; }
.settings-grid > .card > form:last-child { margin-top: 0; }
/* Automation: a checkbox row reads as a switch, label left, switch right */
.auto-grid .form-row:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.auto-grid .form-row > input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 22px; margin: 0; border: 0; border-radius: 11px; background: var(--medium-gray); position: relative; cursor: pointer; }
.auto-grid .form-row > input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); }
.auto-grid .form-row > input[type="checkbox"]:checked { background: var(--teal); }
.auto-grid .form-row > input[type="checkbox"]:checked::after { left: 21px; }
.auto-grid .form-row > input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.auto-grid .form-row > input[type="checkbox"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* Team: the member and invitation tables become a card per row when their own box is narrow */
.ut-wrap { container-type: inline-size; }
@container (max-width: 560px) {
  .ut-table { min-width: 0; }
  .ut-table, .ut-table tbody, .ut-table tr, .ut-table th, .ut-table td { display: block; width: auto; }
  .ut-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ut-table tbody tr { margin: 0 0 10px; padding: 6px 12px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white); }
  .ut-table th, .ut-table td { padding: 3px 0; border-bottom: 0; white-space: normal; }
  .ut-table .ut-who { font-weight: 600; overflow-wrap: anywhere; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
  .ut-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text-muted-readable); }
  .ut-table .cell-danger, .ut-table .action-cell { padding-top: 6px; }
  /* 19.4.4: the role editor names its own field ("Workspace role"), so the card's "Role" caption above it is dropped. */
  .ut-table td.ut-role-edit::before { display: none; }
}
/* the requests table's title cell is the row head (th scope="row") and keeps the look of the cell it replaced */
.ar-entity .rk2-table tbody th.rk2-risk { font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.ar-entity .rk2-table tbody tr:last-child th { border-bottom: none; }

/* -- wow4 W1-B (2026-10-14): the registers' finish. Appended, nothing above reordered; no new media tier
   (the 600 px edge the file already uses, written 599.98 like W0's). ----------------------------------- */
/* Suppliers: the filter chips, sort and search behind one "Filters" control on a phone (a checkbox and its
   label, no script); from 600 px the control is gone and the chips are always shown. */
.flt-label { display: none; margin: 0 0 8px; }
.flt-toggle:focus-visible + .flt-label { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 599.9px) {
  .flt-label { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; }
  .flt-body { display: none; }
  .flt-toggle:checked ~ .flt-body { display: block; }
  /* the concentration map: one card per function listing only the suppliers that support it */
  .rk2-minimap td.rk2-mapcell[data-on="0"] { display: none !important; }
}
/* the map: a supporting cell is filled (green), the only supplier of a function amber; an empty cell is empty */
.rk2-minimap td.rk2-mapcell--on { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.rk2-minimap td.rk2-mapcell--sole { background: var(--tint-med-bg); color: var(--tint-med-ink); }
/* the risk register's "needs a decision" list beside the heat map */
.rk2-decisions { list-style: none; margin: 0; padding: 0; }
.rk2-decisions li { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.rk2-decisions li:last-child { border-bottom: 0; }
.rk2-decisions small { display: block; }
/* dates stay on one line in the exception tables; the validity line of an exception */
.rk2-table td.rk2-date { white-space: nowrap; }
.rk2-validity { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); }
/* the folds the new forms sit in (supplier "Complete later", DORA record forms, the add-function form) */
.rk2-later { margin-top: 10px; }
.rk2-later > summary { list-style: none; cursor: pointer; display: inline-flex; margin-bottom: 8px; }
.rk2-later > summary::-webkit-details-marker { display: none; }
details.inc-card > summary.inc-chead { cursor: pointer; list-style: none; margin-bottom: 0; }
details.inc-card > summary.inc-chead::-webkit-details-marker { display: none; }
details.inc-card[open] > summary.inc-chead { margin-bottom: 10px; }
details.rk2-cands-card > summary.inc-chead { cursor: pointer; list-style: none; }
details.rk2-cands-card > summary.inc-chead::-webkit-details-marker { display: none; }
details.rk2-cands-card[open] > summary.inc-chead { margin-bottom: 10px; }
/* the "Record" menu of the DORA records page */
.rk2-menu { position: relative; }
.rk2-menu > summary { list-style: none; cursor: pointer; display: inline-flex; }
.rk2-menu > summary::-webkit-details-marker { display: none; }
.rk2-menu__list { position: absolute; right: 0; z-index: 20; margin: 4px 0 0; padding: 6px; list-style: none; min-width: 240px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 31, 91, .14); }
.rk2-menu__list a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 6px; color: var(--navy); text-decoration: none; }
.rk2-menu__list a:hover, .rk2-menu__list a:focus-visible { background: var(--tint-navy-bg); }
/* the incident detail's reporting rows: the label column keeps a readable width at 1000 px and the
   native file input never pushes the card past its edge */
.inc-filings .inc-due { white-space: normal; }
.inc-filings .inc-fileform { display: flex; flex-wrap: wrap; gap: 6px; }
.inc-filings .inc-fileform input[type=text] { flex: 1 1 130px; min-width: 0; width: auto; }
.inc-filings .inc-act .btn { white-space: normal; max-width: 100%; }
@media (min-width: 600px) {
  /* from 600 px the four columns share the card by fixed shares and wrap their words (the table used to size to its widest cell and ran past the card at 1000 px) */
  .inc-filings { table-layout: fixed; }
  .inc-filings th { width: 25%; }
  .inc-filings .inc-due { width: 15%; }
  .inc-filings .inc-state { width: 26%; }
  .inc-filings td { overflow-wrap: anywhere; }
}
.inc-filings .inc-act { min-width: 0; }
/* -- wow4 W1-C (2026-10-14): the dashboards lane (DORA home, requirements, requirement, implementation
   register, calendar, remediation, maturity reference, control, NIS2 home, progress). Appended, nothing
   above reordered; no new media tier. -------------------------------------------------------------- */
/* DORA home: the next-deadlines row never breaks a word. Date and the Restant chip share the first line,
   the title takes the whole second one (a narrow card of the four-wide row no longer squeezes it). */
.home-board .dh-dl__row { grid-template-columns: minmax(0, 1fr) auto; }
.home-board .dh-dl__date { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.home-board .dh-dl__row > span:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
.home-board .dh-dl__what { grid-column: 1 / -1; grid-row: 2; }
.home-board .dh-dl__what b, .home-board .dh-dl__what small { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.home-board .dh-dl__what small { overflow-wrap: break-word; }
.home-board .dh-pending { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.home-board .dh-pending p { margin: 0 0 8px; }

/* Calendar: one toolbar row (the Agenda / Timeline switch + the chips), the 30-day strip, and a row that
   puts its date beside its kind chip and its title on a line of its own when the band is narrow (a
   container query on the band, not a new media tier). */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.cal-toolbar .cal-chips { margin-bottom: 0; flex: 1 1 320px; min-width: 0; }
.cal-strip { background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px; padding: 10px 14px 12px; margin-bottom: 14px; }
.cal-strip__t { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.cal-strip__days { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }
.cal-strip__days li > a, .cal-strip__days li > span { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 40px; border-radius: 6px; color: var(--text-secondary); text-decoration: none; }
.cal-strip__days li > a:hover, .cal-strip__days li > a:focus-visible { background: var(--light-gray); outline: 2px solid var(--navy); outline-offset: -2px; }
.cal-strip__d small { font-size: 11px; font-variant-numeric: tabular-nums; }
.cal-strip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--light-gray); display: block; }
.cal-strip__d.has-due .cal-strip__dot { background: var(--navy); }
.cal-strip__d.is-today > a, .cal-strip__d.is-today > span { box-shadow: inset 0 0 0 1px var(--navy); }
.cal-strip__d.is-weekend small { opacity: .65; }
.cal-strip__over { grid-column: span 2; }
.cal-strip__over > a { background: var(--tint-crit-bg); color: var(--tint-crit-ink); padding: 0 8px; }
.cal-strip__over b { font-size: 15px; line-height: 1; }
.cal-strip__over small { font-size: 10.5px; white-space: nowrap; }
.cal-band { container-type: inline-size; }
@container (max-width: 640px) {
  .cal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 0; }
  .cal-row > .cal-chip { grid-column: 1; grid-row: 1; justify-self: start; }
  .cal-row > .cal-when { grid-column: 2; grid-row: 1; margin-left: 10px; justify-self: end; }
  .cal-row > .cal-del { grid-column: 3; grid-row: 1; margin-left: 8px; }
  .cal-row > .cal-title { grid-column: 1 / -1; grid-row: 2; flex: none; }
}
/* Remediation: the queue opens on its worst group; grouping and sorting sit in a closed fold. */
.rr-tools { flex: 1 1 100%; }
.rr-tools__s { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px;
  font-weight: 600; color: var(--teal, #0F9D8F); }
.rr-tools__s::-webkit-details-marker { display: none; }
.rr-tools__s::after { content: " \25BE"; margin-left: 4px; }
.rr-tools[open] > .rr-tools__s::after { content: " \25B4"; }
.rr-tools__b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 6px; }
/* Maturity reference and controls: the one summary row and the empty state. */
.ctrl-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; background: #fff; border: 1px solid var(--medium-gray);
  border-radius: 10px; padding: 12px 18px; margin-bottom: 14px; }
.ctrl-summary__fig { margin: 0; font-size: 14px; color: var(--text-secondary); }
.ctrl-summary__fig b { font-size: 28px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ctrl-summary__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--text-secondary); }
.ctrl-summary__list b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ctrl-summary__list a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: inherit; }
.ctrl-empty { margin-bottom: 14px; }
.ctrl-empty p { margin: 0 0 10px; }
.ctrl-empty__acts { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.ctrl-catalogue { margin: 0 0 14px; }
.ctrl-catalogue__s { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.ctrl-catalogue__s::-webkit-details-marker { display: none; }
.kpi__value a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
/* One control: the state strip (two five-step scales with the target marked, the target, the DORA count and the one
   primary action) and the template chips behind a fold while the control has no evidence. */
.req__ttl { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; margin: 4px 0 0; color: var(--navy); }
.ctrl-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 10px 0 6px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--medium-gray); border-radius: 10px; }
.ctrl-state__fig { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 120px; }
.ctrl-state__fig:hover b, .ctrl-state__fig:focus-visible b { text-decoration: underline; }
.ctrl-state__l { font-size: 12px; color: var(--text-secondary); }
.ctrl-state__fig b { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.ctrl-state__t { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.ctrl-state__t b { color: var(--text-primary); }
.ctrl-state__act { margin-left: auto; }
.ctrl-state__none { margin: 0 0 8px; font-size: 13px; }
.ctrl-scale { display: inline-flex; gap: 3px; }
.ctrl-scale i { width: 22px; height: 8px; border-radius: 3px; background: var(--medium-gray); display: block; position: relative; }
.ctrl-scale i.on { background: var(--green-dark); }
.ctrl-scale i.tgt::after { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 18px; margin-left: -1px; background: var(--navy); border-radius: 1px; }
.gen-fold { margin-top: 10px; }
.gen-fold__s { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--teal, #0F9D8F); }
.gen-fold__s::-webkit-details-marker { display: none; }
/* Implementation register: the coverage bar, the status groups, the first-proof card and the compact card on a
   narrow band (container query on the group). */
.evhead__views { margin: 4px 0 12px; }
.evproof__bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--medium-gray); margin: 0 0 14px; }
.evproof__bar > i { display: block; height: 100%; }
.evproof__bar--cur { background: var(--green-dark); }
.evproof__bar--soon { background: var(--amber); }
.evproof__bar--over { background: var(--red); }
.evproof__bar--none { background: var(--medium-gray); }
.evproof__first { margin: 0 0 14px; }
.evproof__first p { margin: 0 0 10px; }
.evproof__grp { margin: 0 0 12px; container-type: inline-size; }
.evproof__grps { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--navy); }
.evproof__grps::-webkit-details-marker { display: none; }
.evproof__grps::before { content: "\25B8"; color: var(--text-secondary); }
.evproof__grp[open] > .evproof__grps::before { content: "\25BE"; }
.evproof__rest { margin-top: 10px; }
.evproof__rest > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--teal, #0F9D8F); }
@container (max-width: 560px) {
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld:not(:last-child) { display: none; }
  .evproof__row:not(.is-open) .evproof__what { display: none; }
  /* 19.4.4: the collapsed card keeps the control and the next due date, which is what a reader scans for, on one
     compact line above the state (frequency and last proof stay on the full card). */
  .evproof__row:not(.is-open) .rk2-reccard__f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld.rk2-reccard__fld--ctl,
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld.rk2-reccard__due { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; order: -1; }
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld--ctl dd,
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__due dd { margin: 0; }
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld--st { flex-basis: 100%; }
  .evproof__row:not(.is-open) .rk2-reccard__f > .rk2-reccard__fld.rk2-reccard__due--none { display: none; }
}
/* Requirements: the pillar bars (strip and heads), the folds and the collapsed list. */
.dr-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.dr-unmapped { margin: 8px 0 12px; }
.dr-strip { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dr-strip__p { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--medium-gray); border-radius: 8px; min-width: 0; }
.dr-strip__n { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.35; }
.dr-strip__n:hover { text-decoration: underline; }
.dr-strip__c { font-size: 12.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dr-strip__c b { font-size: 16px; color: var(--navy); }
.dr-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--medium-gray); min-width: 60px; }
.dr-bar > i { display: block; height: 100%; }
.dr-bar__met { background: var(--green-dark); }
.dr-bar__partly { background: var(--amber); }
.dr-bar__missing { background: var(--red); }
.dr-bar--pillar { flex: 0 1 160px; }
.dr-pillar__s { cursor: pointer; list-style: none; flex-wrap: wrap; row-gap: 6px; }
.dr-pillar__s::-webkit-details-marker { display: none; }
.dr-pillar__s::before { content: "\25BE"; color: var(--text-secondary); margin-right: 4px; }
.dr-pillar:not([open]) > .dr-pillar__s::before { content: "\25B8"; }
.dr-pillar:not([open]) .rk2-reclist__acts { display: none; }
.dr-all { margin: 0 0 14px; }
.dr-all__s { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.dr-about__s { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; min-height: 44px; }
.dr-about__s::-webkit-details-marker { display: none; }
.dr-about__s h2 { margin: 0; display: inline; }
.dr-about[open] > .dr-about__s { margin-bottom: 8px; }
.dr-gaugelink { color: inherit; text-decoration: none; display: inline-block; }
/* NIS2 home: the attention strip and the neutral (grey) ladder while nothing is scored. */
.att-strip { margin: 0 0 14px; padding: 12px 18px; }
.att-strip__t { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.att-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; }
.att-strip__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--text-primary); text-decoration: none; }
.att-strip__list a:hover { text-decoration: underline; }
.att-strip__list b { font-size: 20px; color: var(--red); font-variant-numeric: tabular-nums; }
.matladder--neutral .matrow__bar > i { background: var(--medium-gray) !important; }
.matladder--neutral .matrow { --lvc: var(--medium-gray) !important; }

.workbook-criterion__result a { color: inherit; text-decoration: none; }
.workbook-criterion__result a:hover { text-decoration: underline; }
/* Activity: the chart fits the card (no sideways scroll, so the axis is never clipped), the heading is the page's H1,
   the recent days are chips and the tiles say a state in words. */
.prog-activity-bars { grid-template-columns: repeat(var(--activity-days), minmax(0, 1fr)); min-width: 0; gap: 1px; }
.prog-activity-bars > a { min-width: 0; }
.prog-history h1 { font-size: 22px; margin: 0; }
.crumbs { font-size: 13px; margin: 0 0 10px; color: var(--text-secondary); }
.prog-activity-na { font-size: 15px !important; font-weight: 600; color: var(--text-secondary) !important; }
.prog-activity-totals strong a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.prog-activity-recent { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.prog-activity-recent a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--medium-gray);
  border-radius: 20px; font-size: 13px; text-decoration: none; color: var(--text-primary); background: #fff; }
.prog-activity-recent a[aria-current] { background: #DCEEEB; border-color: var(--teal); }
/* 19.2.1: the posture's cap sentence under a requirement's controls table
   stands off the table (it sat flush against it) and carries no bold prefix:
   the sentence already says "Held at partly met". */
.dora-cap{margin-top:12px}
/* demo-fixes P */
/* The account line at the foot of the sidebar keeps to one line with an ellipsis.
   (The chat launcher's overlap at 375px is left: the layout guards allow no new
   top-level rule on .main or a second phone tier.) */
.sidebar__footer, .usercard { min-width: 0; max-width: 100%; }
.usercard__id { overflow: hidden; }
.usercard__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* wow5 DOCS */
/* Templates gallery: the state strip (three tiles that filter the grid), the POST button in the card foot and in the header slot. */
.tplstate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.tplstate__t { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--medium-gray); border-radius: 10px; background: var(--white); color: var(--text-primary); text-decoration: none; font-size: 13px; }
.tplstate__t b { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.tplstate__t:hover { border-color: var(--teal, #0F9D8F); }
.tplstate__t.is-on { background: #DCEEEB; border-color: var(--teal, #0F9D8F); }
.tplstate__all { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.tplcard__start { margin: 0; }
.page-header__act form { margin: 0; }
/* Document register: the empty state (three lines + the catalogue under a fold), the legend, the bar that opens the controls, the English-title label. */
.reg-preview { margin: 0 0 14px; padding: 0 0 0 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.reg-all { margin: 0 0 14px; }
.reg-all__s { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.reg-legend { font-size: 12px; margin: -6px 0 12px; }
.reg-none { margin: 0 0 12px; }
.reg-bar--link { display: block; text-decoration: none; }
.reg-bar--link:hover, .reg-bar--link:focus-visible { outline: 2px solid var(--teal, #0F9D8F); outline-offset: 2px; }
.reg-title__lang { font-weight: 400; color: var(--text-muted); font-size: 11px; margin-left: 4px; }
/* Manual: the returning reader line and the start chapters of the no-result state. */
.man-resume { margin: 10px 0 0; font-size: 14px; color: var(--text-secondary); }
.man-resume a { font-weight: 600; }
.man-toc__starts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Ghid practic: the quiet training link beside the one button, the training card in the header row, the folded steps. */
.gd-quiet { font-weight: 400; font-size: 13px; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.gd-trn .trn-entry { margin: 12px 0 0; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.gd-trn .trn-entry h2 { font-size: 14px; margin: 0; }
.gd-trn .trn-entry p { margin: 0; flex: 1 1 240px; }
.gd-trn .trn-entry__acts { margin: 0; }
.gd-trn .trn-entry .btn--primary { background: transparent; color: var(--teal-dark, #0b7a6e); border: 1px solid var(--medium-gray); box-shadow: none; }
.gd-fold { margin: 0; }
.gd-fold__s { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--teal, #0F9D8F); list-style: none; }
.gd-fold__s::-webkit-details-marker { display: none; }
.gd-fold__s::before { content: "\25B8"; margin-right: 6px; color: var(--text-secondary); }
.gd-fold[open] > .gd-fold__s::before { content: "\25BE"; }
.gd-fold[open] > .gd-fold__s { display: none; }
/* The way back from a page the practical guide opened. */
.guide-back { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 8px; padding: 0 12px; border: 1px solid var(--medium-gray); border-radius: 20px; background: var(--white); font-size: 13px; color: var(--text-primary); text-decoration: none; }
.guide-back:hover { border-color: var(--teal, #0F9D8F); }
/* Evidence: 44 px tap targets on the mapping x. */
.evlib .iconbtn { min-width: 44px; min-height: 44px; }
/* Document workspace: the one sentence and the one button above a draft whose records are missing. */
.wsx-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--amber, #d98c00); border-radius: 10px; background: #fff8e6; font-size: 14px; color: var(--text-primary); }

/* wow5 SHARING (2026-10-14): the entity's side of sharing, My Company, the requests pages and the setup pages.
   Appended, nothing above reordered; no media tier added (the shell and card rules below use the existing tiers
   or none). */
/* the shell's account line wraps instead of clipping with an ellipsis (it clipped a 24-letter email at 1000 px) */
.usercard__label { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.25; }
.id-copy { min-height: 44px; min-width: 44px; }
/* the sharing previews: an empty pack is one sentence and one button; the ESA / ISO annotations read as a light aside */
.shp-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 0; padding: 14px 16px; border: 1px dashed var(--medium-gray); border-radius: 10px; background: var(--white); }
.shp-empty p { margin: 0; flex: 1 1 280px; min-width: 0; }
.shp-pack .av-mono.av-muted { font-size: .78em; font-weight: 400; opacity: .65; }
/* the incidents preview at 1000: the hidden header row of the card layout takes no width */
@media (min-width: 600px) and (max-width: 1100px) {
  .shp-pack .av-table:has(td[data-label]):has(thead th:nth-child(6)) thead tr { display: block; width: 1px; overflow: hidden; }
}
/* the requests pages: a banner button is white on green, never an underlined link colour; the two counts are links */
.ar-note a.btn { text-decoration: none; }
.ar-note a.btn--primary { color: var(--white); }
.ar-note__what { display: block; margin: 4px 0 8px; font-weight: 400; }
.ar-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-size: 14px; }
.ar-jump__a { text-decoration: none; color: var(--navy); }
.ar-jump__a b { font-size: 16px; }
.ar-jump__a:hover { text-decoration: underline; }
/* My Company: a header that wraps at a phone width, the facts the app holds, the folded settings, the sharing strip */
.ci-ident { flex-wrap: wrap; }
.ci-ident__who { max-width: 100%; }
.ci-meter .bar.ci-bar--none { display: none; }
.ci-sharebar__count { color: inherit; text-decoration: none; }
.ci-sharebar__count:hover { text-decoration: underline; }
.ci-factsum { margin: 0 0 14px; padding: 12px 16px; }
.ci-factsum h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: 16px; }
.ci-factsum__all { font-size: 13px; font-weight: 600; }
.ci-factsum__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; }
.ci-factsum__list > div { min-width: 0; }
.ci-factsum__list dt { font-size: 12px; font-weight: 600; color: var(--text-muted-readable); }
.ci-factsum__list dd { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-cfold { margin: 0; }
.ci-cfold__s { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--teal); min-height: 32px; display: flex; align-items: center; }
.ci-profile-read--none { display: none; }
.ci-profile__ask { color: inherit; text-decoration: underline dotted; }
.ci-viewer-share { margin: 0 0 14px; }
/* Setup: Risk, Team, Automation, Settings */
.rk-top { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.rk-top li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 8px; }
.rk-tol { margin: 6px 0 4px; }
.rk-fold--src { margin: 0 0 8px; }
.rk-status--empty { align-items: center; gap: 8px 14px; padding: 10px 14px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; }
.ut-solo, .auto-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; }
.ut-self { display: block; margin-top: 4px; }
.auto-next { margin: 0 0 8px; }
.set-applies { margin: 10px 0 0; }

/* wow5 platform (2026-10-14): the platform pages' finish, appended as one block. No new media tier: the one
   599.9px block is the wow4 W1-F phone tier (the kit's cards), reused. */
.wc-rule { margin: 4px 0 0; max-width: 72ch; }
.pf-filtered { margin: 0 0 10px; padding: 6px 10px; border-radius: 6px; background: var(--light-gray, #F1F4F8); }
.pf-strip dd a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.usage-delta { margin-left: 6px; font-weight: 500; }
.usage-top { font-size: 15px; font-weight: 600; }
.usage-zero-fold { margin-top: 10px; }
.usage-zero-fold > summary { cursor: pointer; font-weight: 600; color: var(--navy, #001F5B); min-height: 36px; }
.pf-demo-fold { margin-top: 14px; }
.pf-demo-fold > summary { cursor: pointer; font-size: 13px; color: var(--text-secondary, #5b6b86); }
.nt-delivery { margin-top: 14px; }
.terms-pending { margin: 10px 0 4px; }
.terms-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 0; padding: 0; }
.terms-chips .chip { text-decoration: none; }
.terms-empty { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mu-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.mu-filter input[type="search"] { flex: 1 1 220px; min-width: 0; }
#add-admin:target { outline: 2px solid var(--teal, #0F9D8F); outline-offset: 6px; border-radius: 6px; }
/* Manage Tenants: the Actions column keeps room for its widest form ("Convert to paid") so no button touches the card edge */
#tbl-tenants td.action-cell { min-width: 15rem; padding-right: 14px; }
#tbl-tenants .action-stack > form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tplchip--off { opacity: .55; cursor: not-allowed; }
.trn-rail__link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.rw__act { margin: 10px 0 0; }

/* wow5 tools (2026-10-14): Integrations opens on a status table and a verdict; every technical value is a copyable
   code block behind "Technical details". Appended; no new media tier. */
.conn-copy { user-select: all; overflow-wrap: anywhere; word-break: break-all; }
.conn-raw { display: block; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; user-select: all; }
.conn-verdict { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--medium-gray); }
.conn-verdict--ok { border-left-color: var(--ok, #1a7f37); }
.conn-verdict--warn { border-left-color: var(--warn, #9a6700); }
.conn-verdict--err { border-left-color: var(--err, #cf222e); }
.conn-verdict p { margin: 6px 0 0; }
.conn-status { margin: 0 0 14px; }
.conn-status .rk2-tblwrap { margin: 0; }
.conn-status__t td { vertical-align: middle; }
.conn-status__f { margin: 0; display: inline; }
.conn-blocks { margin-top: 4px; }
.conn-howto > summary { cursor: pointer; margin-top: 8px; }
.conn-status__h { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.conn-tech pre { user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }

/* Results - one header button and a menu, the count and the worst finding first, matrix cells that are
   links, one empty block, a technical fold per row, a "Filters" row and a pillar list on a phone. */
.rz-ftog { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rz-fbtn { display: none; }
.rz-menu { position: relative; }
.rz-menu > summary { list-style: none; cursor: pointer; }
.rz-menu > summary::-webkit-details-marker { display: none; }
.rz-menu__b { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 200px; display: flex; flex-direction: column;
  padding: 6px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.rz-menu__b a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 6px; color: var(--text-primary); text-decoration: none; }
.rz-menu__b a:hover { background: var(--off-white); }
.rz-sumline a[data-worst] { color: inherit; font-weight: 650; text-decoration: underline dotted; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rz-sevs { flex-wrap: wrap; }
a.rz-cell { display: inline-block; color: inherit; text-decoration: none; border-radius: 4px; }
a.rz-cell:hover .rz-n, a.rz-cell.is-on .rz-n, .rz-matrix tfoot a.rz-cell.is-on { outline: 2px solid var(--teal); outline-offset: 1px; }
.rz-matrix tfoot a.rz-cell { padding: 1px 5px; font-weight: 700; }
.rz-empty__t { margin: 0 0 6px; }
.rz-tech { margin-top: 8px; }
@media (max-width: 599.5px) {
  .rz-fbtn { display: inline-flex; align-items: center; align-self: flex-start; min-height: 40px; padding: 0 14px; border: 1px solid var(--medium-gray);
    border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 650; color: var(--text-secondary); cursor: pointer; }
  .rz-ftog:checked + .rz-fbtn { background: var(--off-white); border-color: var(--teal); }
  .rz-ftog:focus-visible + .rz-fbtn { outline: 2px solid var(--teal); outline-offset: 2px; }
  .rz-ftog:not(:checked) ~ :is(.rz-fx, .rz-gsel) { display: none; }
  .rz-sevs { flex-wrap: wrap; overflow-x: visible; }
  .rz-mxwrap { overflow: visible; background: none; }
  .rz-matrix, .rz-matrix tbody, .rz-matrix tfoot { display: block; }
  .rz-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rz-matrix tbody tr, .rz-matrix tfoot tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; border-top: 1px solid var(--rz-line); }
  .rz-matrix td { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; text-align: left; }
  .rz-matrix td:first-child { flex: 1 0 100%; }
  .rz-matrix tbody td:has(> .rz-z) { display: none; }
  .rz-matrix td[data-label]::before { content: attr(data-label); font-size: 12px; color: var(--text-muted); }
}

/* The assistant panel - opens on the answer (what to do today), no blank band above the greeting,
   a docked column beside the page on a wide screen, the whole screen on a phone, a way back after a link. */
#opti-chat-messages:empty { display: none; }
#opti-chat-form { margin-top: auto; }
#opti-chat-today { padding: 12px 12px 4px; background: var(--off-white); }
#opti-chat-today[hidden] { display: none; }
.opti-chat-today__t { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--navy); }
.opti-chat-today__l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.opti-chat-today__l li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  background: var(--white); border: 1px solid var(--medium-gray); border-radius: 8px; font-size: 13px; }
.opti-chat-today__x { min-width: 0; overflow-wrap: anywhere; }
.opti-chat-today__go { flex: none; }
.opti-chat-opens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opti-chat-back { position: absolute; right: 68px; bottom: 10px; max-width: calc(100vw - 100px); min-height: 40px; padding: 0 14px;
  border: 1px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); font: inherit; font-size: 13px;
  font-weight: 650; cursor: pointer; box-shadow: 0 4px 12px rgba(27, 42, 74, .18); }
@media (min-width: 1101px) {
  body.opti-chat-open #opti-chat-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 420px; max-height: none;
    border-radius: 0; border-width: 0 0 0 1px; box-shadow: -6px 0 18px rgba(27, 42, 74, .12); }
  body.opti-chat-open .shell-workspace { margin-right: 420px; }
  body.opti-chat-open #opti-chat-launcher { display: none; }
}
@media (max-width: 599.5px) {
  #opti-chat-panel { position: fixed; inset: 0; width: auto; max-width: none; max-height: none; border-radius: 0; border-width: 0; }
  body.opti-chat-open #opti-chat-launcher { display: none; }
}

/* Reports - the section links are a row above the content, so the binder starts near the top. */
.report-page > .report-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.report-page .report-section-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 6px; padding: 6px 0; border-top: 0; border-bottom: 1px solid var(--border-subtle); }
.report-page .report-section-nav a { display: inline-block; padding: 6px 10px; }
.rp-fold { margin: 0 0 10px; }
/* wow5 dashboards */
/* 2026-10-14: the dashboards lane's finish. The maturity reference's "More" menu and closed filter
   fold, the control page's neighbours, the requirement page's small Details fold, the calendar's one-row chips and
   strip (a coloured dot per day, the month at the boundary), the one closed tools fold, the remediation chip row,
   the NIS2 home's level line and legend fold, and the DORA home's 1440 top row. No new media tier but the 1401 px
   complement of the home's existing 1400 px one. */
.ctrl-more { position: relative; display: inline-block; }
.ctrl-more > summary { list-style: none; cursor: pointer; }
.ctrl-more > summary::-webkit-details-marker { display: none; }
.ctrl-more__menu { position: absolute; right: 0; z-index: 6; margin-top: 4px; padding: 10px; display: flex; flex-direction: column; gap: 6px;
  min-width: 230px; background: #fff; border: 1px solid var(--medium-gray); border-radius: 8px; box-shadow: 0 6px 18px rgba(15, 30, 60, .12); }
.ctrl-filters { margin: 0 0 12px; }
.ctrl-filters__s { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.ctrl-filters__s::-webkit-details-marker { display: none; }
.ctrl-filters__s::before { content: "\25B8"; margin-right: 6px; color: var(--text-secondary); }
.ctrl-filters[open] > .ctrl-filters__s::before { content: "\25BE"; }
.ctrl-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 6px 0 0; font-size: 13px; }
.ctrl-pn a { display: inline-flex; align-items: center; min-height: 40px; }
.dr-about--small { margin: 0 0 12px; }
.dr-about--small > .dr-about__s { min-height: 44px; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.rk2-reccard--compact .rk2-reccard__t a[data-dora-req-link] { display: inline; min-height: 0; padding: 0; line-height: inherit; }
.cal-toolbar .cal-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.cal-chips .cal-fchip { flex: none; white-space: nowrap; }
.cal-strip__days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); overflow-x: auto; scrollbar-width: thin; }
.cal-strip__days li > a, .cal-strip__days li > span { justify-content: flex-end; min-height: 48px; }
/* 19.4.4: the month label and a numbered dot keep clear of the box's top border (every cell alike, so the days line up). */
.cal-strip__days li > a, .cal-strip__days li > span { padding-top: 7px; min-height: 58px; box-sizing: border-box; }
.cal-strip__over { grid-column: auto; min-width: 64px; }
/* The overdue cell needs its own wider track: a min-width does not widen a
   minmax(30px, 1fr) column, so it ran over today's cell (owner, 15 Oct). */
.cal-strip__days:has(> .cal-strip__over) { grid-template-columns: minmax(64px, max-content); }
.cal-strip__mo { font-size: 10px; font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--navy); }
.cal-strip__d.has-due .cal-strip__dot--inc { background: var(--red); }
.cal-strip__d.has-due .cal-strip__dot--rr { background: var(--amber); }
.cal-strip__d.has-due .cal-strip__dot--proof { background: var(--teal); }
.cal-strip__d.has-due .cal-strip__dot--ev { background: var(--teal-dark); }
.cal-strip__d.has-due .cal-strip__dot--doc { background: var(--green-dark); }
.cal-strip__dot:not(:empty) { width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.cal-tools { margin: 0 0 14px; }
.cal-tools__s { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.cal-tools__s::-webkit-details-marker { display: none; }
.cal-tools__s::before { content: "\25B8"; margin-right: 6px; color: var(--text-secondary); }
.cal-tools[open] > .cal-tools__s::before { content: "\25BE"; }
.rr-strow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.rr-strow > * { flex: none; white-space: nowrap; }
.rr-sumline a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.rk2-tiles.rk2-tiles--fill:has([data-tile="needs_proof"]) { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.dash-level { margin-top: 2px; font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.mat-legend { margin: 0 0 10px; }
.mat-legend__s { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal, #0F9D8F); }
.mat-legend__s::-webkit-details-marker { display: none; }
.mat-legend__s::before { content: "\25B8"; margin-right: 6px; color: var(--text-secondary); }
.mat-legend[open] > .mat-legend__s::before { content: "\25BE"; }
.rr-filters { flex-direction: row; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.rr-filters > * { flex: none; }
.rr-filters > .rr-search { flex: 1 0 200px; width: auto; max-width: none; }
.rr-filters > .rr-fsel { width: auto; max-width: 220px; }
@media (min-width: 1401px) {
  .home-board .dh-row--needs.dh-row--four { grid-template-columns: 5fr 4fr 3fr 4fr; }
  .home-board .dh-row--needs.dh-row--three { grid-template-columns: 5fr 4fr 3fr; }
}

/* wow5 registers */
/* The attention line under a title: what is overdue or still open, in words, each part a link to the place that fixes it. */
.rk2-attn { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--tint-high-ink, var(--text-primary)); }
.rk2-attn a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rk2-attn span + span { margin-left: 4px; }
/* The risk register: the register first, the heat map as a 340 px rail beside it; below 1100 px one column, register first. */
.rk2-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-bottom: 14px; }
.rk2-split__main, .rk2-split__rail { min-width: 0; }
.rk2-split__rail .rk2-heatcard { margin-bottom: 0; }
.rk2-split__main > .card { margin-bottom: 14px; }
@media (max-width: 1100px) {
  .rk2-split { grid-template-columns: minmax(0, 1fr); }
}
/* The empty risk register: a dimmed 5 x 5 where the map will be drawn. */
.rk2-heatghost { max-width: 220px; margin: 14px auto 6px; opacity: .45; }
.rk2-heatghost__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.rk2-heatghost__grid i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--medium-gray); }
.rk2-heatghost__cap { text-align: center; margin: 0; }
/* A closed fold inside a card (risk page, supplier page): the heading is the summary. */
.rk2-fold > summary.inc-chead { cursor: pointer; list-style: none; margin-bottom: 0; }
.rk2-fold > summary.inc-chead::-webkit-details-marker { display: none; }
.rk2-fold[open] > summary.inc-chead { margin-bottom: 10px; }
.rk2-unset > summary { font-size: 13px; }
/* The filing strip: equal tiles with a floor, so a filed tile never shrinks to a sliver and the last one is not a slab of grey. */
.ckl { flex-wrap: wrap; }
.ckl__seg { flex: 1 1 0; width: auto !important; min-width: 9.5rem; overflow-wrap: break-word; }
/* The filing form's reference field keeps room for its own placeholder. */
.inc-filings .inc-fileform input[type=text] { flex: 1 1 12rem; min-width: 9rem; }
/* The shell: the assistant button never covers the last line of a page, and the account line shows its full text on hover (the title carries it). */
.usercard__label { min-width: 0; }
/* Timeline rows keep the author clear of the assistant button (from 600 px; below it the page's bottom room does the job). */
@media (min-width: 600px) {
  .rk2-tl > li { padding-right: 64px; }
}
/* A date cell wraps instead of being clipped by the last column. */
.rk2-table td.rk2-review { white-space: normal; overflow-wrap: anywhere; }

/* wow6 list kit */
/* The list toolbar (search, period, export), the sortable header and the pager. Server-rendered; wraps on a phone with no media tier. */
.klist { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); min-width: 0; }
.klist__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.klist__search { flex: 1 1 14rem; min-width: 0; margin: 0; }
/* The search row grows to the toolbar's width and keeps its box and button on one line. */
.klist__row--search { flex: 1 1 22rem; flex-wrap: nowrap; }
/* Inside a page's flex action row the toolbar takes a whole line instead of shrinking to its content. */
.klist { flex: 1 1 100%; }
.klist__search input[type=search] { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 6px 12px; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white); color: var(--text-primary); font: inherit; }
.klist__vh { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.klist .btn { min-height: 44px; }
.klist__periods { flex: 1 1 100%; }
.klist__preset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--medium-gray); border-radius: 999px; background: var(--white); color: var(--text-primary); font-size: 14px; text-decoration: none; }
.klist__preset:hover { background: var(--light-gray); text-decoration: none; }
.klist__preset.is-on, .klist__preset[aria-current] { background: var(--tint-navy-bg); border-color: var(--tint-navy-ink); color: var(--tint-navy-ink); font-weight: 600; }
.klist__custom { min-width: 0; }
.klist__custom > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--action-fill); }
.klist__custom > summary::-webkit-details-marker { display: none; }
.klist__custom > summary::before { content: "\25B8"; margin-right: 6px; color: var(--text-secondary); }
.klist__custom[open] > summary::before { content: "\25BE"; }
.klist__dates { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; }
.klist__dates label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-secondary); }
.klist__dates input[type=date] { min-height: 44px; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white); color: var(--text-primary); font: inherit; }
.klist__export { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--action-fill); }
.klist__sort { color: inherit; text-decoration: none; white-space: nowrap; }
.klist__sort:hover { text-decoration: underline; text-underline-offset: 3px; }
.klist__arrow { display: inline-block; margin-left: 4px; font-size: .8em; color: var(--text-secondary); }
.klist__arrow::after { content: "\2195"; opacity: .45; }
th[aria-sort="ascending"] .klist__arrow::after { content: "\25B2"; opacity: 1; }
th[aria-sort="descending"] .klist__arrow::after { content: "\25BC"; opacity: 1; }
.klist__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0; }
.klist__count, .klist__links { margin: 0; font-size: 14px; }
.klist__links { display: flex; gap: var(--space-2); }
.klist__sortby { flex: 1 1 100%; }
.klist__select { min-height: 44px; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white); color: var(--text-primary); font: inherit; max-width: 100%; }
.klist__sorts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); }
.klist__sorts-l { font-size: 13px; color: var(--text-secondary); }
.klist__sortlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--medium-gray); border-radius: 999px; background: var(--white); color: var(--text-primary); font-size: 14px; text-decoration: none; }
.klist__sortlink:hover { background: var(--light-gray); text-decoration: none; }
.klist__sortlink.is-on { background: var(--tint-navy-bg); border-color: var(--tint-navy-ink); color: var(--tint-navy-ink); font-weight: 600; }
.klist__arrow--asc::after { content: "\25B2"; opacity: 1; }
.klist__arrow--desc::after { content: "\25BC"; opacity: 1; }

/* wow7 L-NEWRISK */
.rk2-req { color: var(--tint-crit-ink); font-weight: 700; }
.rk2-reqnote { margin: 0; }
.rk2-fld-err { color: var(--tint-crit-ink); font-size: 13px; font-weight: 600; }
.rk2-form .inc-fld [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.rk2-refusal { margin-bottom: 12px; background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.rk2-refusal p { margin: 4px 0 0; }
.rk2-livescore { margin-top: 10px; }
.rk2-livescore[hidden], .rk2-livescore [hidden] { display: none; }
.rk2-livescore__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.rk2-livescore__l { font-size: 13px; font-weight: 600; color: var(--navy); }
.rk2-livescore__v { font-size: 18px; font-weight: 700; }
.rk2-livescore__tol { margin: 8px 0 0; }
/* wow7 L-EXC */
.rk2-actform[data-renew-form] { scroll-margin-top: var(--space-4); }
.rk2-renewrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.rk2-quick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.rk2-quick__l { font-size: 13px; color: var(--text-secondary); }
.rk2-renewrow .btn { min-height: 44px; display: inline-flex; align-items: center; }
/* wow7 L-REM */
.rr-bulk { margin: 0 0 14px; padding: 10px 14px; background: var(--white); border: 1px solid var(--rz-line); border-radius: 10px; }
.rr-bulk.is-live { position: sticky; top: var(--rr-bulk-top, 8px); z-index: 40; border-color: var(--tint-navy-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.rr-bulk__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.rr-bulk__set > summary { padding: 0; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.rr-bulk__set > summary::-webkit-details-marker { display: none; }
.rr-bulk__set > summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; color: var(--text-secondary); }
.rr-bulk__set[open] > summary::before { content: "\25BE"; }
@media (max-width: 599.5px) { .rr-bulk__set > summary { display: flex; align-items: center; min-height: 44px; } }
.rr-bulk__hint { margin: 2px 0 8px; font-size: 13px; color: var(--text-secondary); }
.rr-bulk__count { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--tint-navy-ink); }
.rr-bulk__acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.rr-bulk__act { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rr-bulk__act .rr-in { min-height: 44px; box-sizing: border-box; }
.rr-bulk__act .rr-btn { min-height: 44px; }
.rr-bulk__enter { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.rr-it--pick { display: flex; gap: 4px; align-items: flex-start; }
.rr-it__b { min-width: 0; flex: 1 1 auto; }
.rr-pick { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; min-height: 44px; margin: -10px 0 -10px -12px; cursor: pointer; }
.rr-pick input { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.rr-bulk-result { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--tint-navy-ink); border-radius: 10px; background: var(--tint-navy-bg); color: var(--text-primary); font-size: 14px; }
.rr-bulk-result p { margin: 0; }
.rr-bulk-result ul { margin: 6px 0 0; padding-left: 20px; }
.rr-bulk-result--err { border-color: var(--rz-crit); }
/* wow7 L-cal */
.cal-fchip { display: inline-flex; align-items: center; text-decoration: none; }
a.cal-fchip:hover { background: var(--light-gray); text-decoration: none; }
a.cal-fchip.is-on:hover { background: var(--navy); }
.cal-browse { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); min-width: 0; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.cal-nav__mode, .cal-nav__step, .cal-nav__today, .cal-ics { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--medium-gray); border-radius: 999px; background: var(--white); color: var(--text-primary); font-size: 14px; text-decoration: none; white-space: nowrap; }
.cal-nav__mode:hover, .cal-nav__step:hover, .cal-nav__today:hover, .cal-ics:hover { background: var(--light-gray); text-decoration: none; }
.cal-nav__mode.is-on, .cal-nav__today.is-on { background: var(--tint-navy-bg); border-color: var(--tint-navy-ink); color: var(--tint-navy-ink); font-weight: 600; }
.cal-nav__label { font-size: 15px; color: var(--navy); padding: 0 var(--space-2); }
.cal-owner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; min-width: 0; }
.cal-owner__l { font-size: 13px; color: var(--text-secondary); }
.cal-owner .btn { min-height: 44px; }
.cal-ics { margin-left: auto; }
.cal-sub-ics { margin: 0 0 var(--space-2); }

/* wow7 W3-REQUIREMENT */
/* One DORA requirement, option "Scara" (2026-10-15): the state card as three columns on the first screen - the gauge, a level
   ladder per subcategory against the target, and the one step left - one column under 768 px with the ladder as stacked rows.
   No new media tier: the 768 px block below is the existing phone-drawer tier's own condition. */
.dr-cols { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(0, 2.1fr) minmax(0, 1.5fr); gap: 18px 28px; align-items: start; }
.dr-cols--two { grid-template-columns: minmax(150px, .75fr) minmax(0, 3.6fr); }
.dr-col { min-width: 0; }
.dr-col > h3 { margin: 0 0 10px; font-size: 15px; line-height: 1.3; }
.dr-col > h3 .muted { margin-left: 6px; font-weight: 400; }
.dr-col--step > p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.dr-col--step > p.small { font-size: 13px; }
.dr-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dr-ladder__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
.dr-ladder__id { flex: 0 0 auto; min-width: 82px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.dr-ladder__body { flex: 1 1 250px; min-width: 0; }
.dr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.dr-step { position: relative; display: block; height: 11px; border-radius: 3px; background: var(--tint-mute-bg); }
.dr-step.is-on { background: var(--amber); }
.dr-step.is-on.is-met { background: var(--tint-ok-ink); }
.dr-step.is-target::before { content: ""; position: absolute; left: 50%; top: -6px; width: 2px; height: 5px; background: var(--navy); }
.dr-steps.is-none .dr-step:first-child { background: transparent; outline: 1.5px dashed var(--red); outline-offset: -1px; }
.dr-ladder__t { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.dr-ladder__t b { color: var(--text-primary); }
.dr-ladder__act { display: inline-block; padding: 2px 0; font-weight: 600; }
.detail__grid > .kfold.dr-about { grid-column: 1 / -1; }
.dr-register { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--medium-gray); }
.dr-register a { font-weight: 600; }
@media (max-width: 768px) {
  .dr-cols, .dr-cols--two { grid-template-columns: minmax(0, 1fr); }
  .dr-col--gauge .rk2-gauge { flex-direction: row; align-items: center; gap: 12px; }
  .dr-col--gauge .rk2-gauge svg { width: 120px; flex: none; }
  .dr-col--gauge .rk2-gauge__l { text-align: left; font-size: 14px; }
  .dr-col > h3 .muted { display: block; margin: 2px 0 0; }
  .dr-ladder { gap: 10px; }
  .dr-ladder__row { gap: 2px 12px; }
  .dr-ladder__id { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; }
  .dr-ladder__body { flex: 1 1 100%; }
  .dr-ladder__t { margin-top: 4px; }
  .dr-ladder__act { display: inline-flex; align-items: center; min-height: 44px; }
}

/* wow7 W3-INCIDENT */
/* One incident, Option A "Ceasul cu acum" (board B-INCIDENT): the card is one axis with "acum" on it, the report that
   is next due as a hero (the countdown drawn large, its elapsed bar, what the draft takes from the record, its actions)
   and the others as one line each; the way back is a link under the header; the press card is one line; the cards
   share rows at 1440. No new media tier: the 1100 px and 600 px tiers stack the halves and turn the axis into a list. */
.inc-back { display: inline-block; margin: 2px 0 12px; }
/* the axis: a bar per report, drawn in the widths of clock_widths; the "acum" line stands in the clock it falls in */
main .inc-card .ckl { display: flex; flex-wrap: nowrap; gap: 4px; margin: 6px 0 2px; }
main .inc-card .ckl__seg { position: relative; flex: 1 1 0; min-width: 6.5rem; padding: 20px 0 0; background: none; border: 0; border-radius: 0; font-size: 13px; }
.ckl__bar { display: block; position: relative; height: 10px; border-radius: 5px; background: var(--light-gray); box-shadow: inset 0 0 0 1px var(--medium-gray); }
.ckl__fill { display: block; height: 100%; border-radius: 5px; background: var(--text-muted); }
.ckl__seg--filed .ckl__bar { background: var(--tint-ok-ink); box-shadow: none; }
.ckl__seg--filed .ckl__fill { background: var(--tint-ok-ink); }
.ckl__seg--over .ckl__bar { background: var(--tint-crit-bg); box-shadow: inset 0 0 0 1px var(--tint-crit-ink); }
.ckl__seg--over .ckl__fill { background: var(--tint-crit-ink); }
.ckl__seg--soon .ckl__bar { background: var(--tint-high-bg); box-shadow: inset 0 0 0 1px var(--tint-high-ink); }
.ckl__seg--soon .ckl__fill { background: var(--tint-high-ink); }
.ckl__seg--run:has(.ckl__now) .ckl__bar { background: var(--tint-navy-bg); box-shadow: inset 0 0 0 2px var(--navy); }
.ckl__seg--run .ckl__fill { background: var(--navy); }
main .inc-card .ckl__seg b { margin-top: 6px; font-size: 13px; color: var(--navy); }
main .inc-card .ckl__seg small { margin-top: 2px; font-size: 13px; color: var(--text-secondary); }
.ckl__now { position: absolute; top: 15px; height: 22px; width: 0; margin-left: -1px; border-left: 2px solid var(--tint-crit-ink); pointer-events: none; }
.ckl__now::before { content: attr(data-now-label); position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); font-size: 13px; font-weight: 700; line-height: 14px; color: var(--tint-crit-ink); white-space: nowrap; }
.ckl__from { margin-top: 8px; }
/* the hero: the report that is next due, drawn from its own row of the filings table */
main .inc-card .inc-filings--hero { display: block; width: 100%; margin: 14px 0 0; border-top: 1px solid var(--light-gray); }
main .inc-card .inc-filings--hero tbody { display: block; }
main .inc-card .inc-filings--hero tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "label ready" "state ready" "due ready" "elapsed ready" "act ready"; grid-template-rows: auto auto auto auto 1fr; column-gap: 28px; align-items: start; padding: 14px 0 0; border: 0; }
main .inc-card .inc-filings--hero :is(th, td) { display: block; width: auto; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
main .inc-card .inc-filings--hero th { grid-area: label; font-size: 14px; font-weight: 700; color: var(--navy); }
.inc-hero__to { font-weight: 400; color: var(--text-secondary); }
main .inc-card .inc-filings--hero .inc-state { grid-area: state; }
main .inc-card .inc-filings--hero .inc-due { grid-area: due; white-space: normal; font-size: 13px; color: var(--text-secondary); }
main .inc-card .inc-filings--hero .inc-due small { display: inline; margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
main .inc-card .inc-filings--hero .inc-due small::before { content: "\00B7\00A0"; }
main .inc-card .inc-filings--hero .inc-elapsed { grid-area: elapsed; }
main .inc-card .inc-filings--hero .inc-ready-cell { grid-area: ready; }
main .inc-card .inc-filings--hero .inc-act { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px; padding-top: 14px; }
main .inc-card .inc-filings--hero .inc-clock { display: block; padding: 0; border-radius: 0; background: none; font-size: 38px; font-weight: 800; line-height: 1.12; white-space: normal; }
main .inc-card .inc-filings--hero .inc-clock b { display: none; }
main .inc-card .inc-filings--hero .inc-clock--run { color: var(--tint-navy-ink); }
main .inc-card .inc-filings--hero .inc-clock--soon { color: var(--tint-high-ink); }
main .inc-card .inc-filings--hero .inc-clock--over { color: var(--tint-crit-ink); }
.inc-bar { display: block; height: 10px; margin: 12px 0 6px; border-radius: 5px; background: var(--tint-navy-bg); box-shadow: inset 0 0 0 1px var(--navy); }
.inc-bar i { display: block; height: 100%; border-radius: 5px; background: var(--navy); }
.inc-filing--over .inc-bar { background: var(--tint-crit-bg); box-shadow: inset 0 0 0 1px var(--tint-crit-ink); }
.inc-filing--over .inc-bar i { background: var(--tint-crit-ink); }
.inc-filing--soon .inc-bar { background: var(--tint-high-bg); box-shadow: inset 0 0 0 1px var(--tint-high-ink); }
.inc-filing--soon .inc-bar i { background: var(--tint-high-ink); }
main .inc-card .inc-elapsed small { display: block; font-size: 13px; color: var(--text-secondary); }
/* what the draft takes from the record */
.inc-ready__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.inc-ready__sum { margin: 0 0 8px; }
.inc-ready__list { list-style: none; margin: 0; padding: 0; }
.inc-ready__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid var(--light-gray); font-size: 13px; color: var(--text-secondary); }
.inc-ready__row:first-child { border-top: 0; }
.inc-ready__row b { color: var(--text-primary); }
.inc-ready__mark { font-weight: 800; text-align: center; color: var(--text-muted); }
.inc-ready__row--record .inc-ready__mark { color: var(--tint-ok-ink); }
.inc-ready__row--stale .inc-ready__mark { color: var(--tint-high-ink); }
.inc-ready__zero { margin: 0 0 8px; font-size: 14px; color: var(--text-primary); }
.inc-ready__stale { display: none; margin: 0 0 8px; font-size: 13px; color: var(--tint-high-ink); }
.inc-ready__all > summary { display: none; cursor: pointer; list-style: none; min-height: 44px; align-items: center; font-size: 13px; font-weight: 600; color: var(--action-fill); }
.inc-ready__all > summary::-webkit-details-marker { display: none; }
.inc-ready__all > summary::after { content: "\00A0\25B8"; }
.inc-ready__all[open] > summary::after { content: "\00A0\25BE"; }
/* the filed upload sits behind a fold on the filed line */
.inc-attach { margin: 0; }
.inc-attach > summary::after { content: "\00A0\25B8"; }
.inc-attach[open] > summary::after { content: "\00A0\25BE"; }
/* the press card is one line; the cards that pair up share a row at 1440 */
.inc-card--line { padding-top: 12px; padding-bottom: 12px; }
.inc-card--line p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0; }
.inc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.inc-two > .inc-card { margin-bottom: 0; min-width: 0; }
.inc-two > :only-child { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .inc-two { grid-template-columns: minmax(0, 1fr); }
  main .inc-card .inc-filings--hero tr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "state" "due" "elapsed" "ready" "act"; grid-template-rows: none; }
  main .inc-card .inc-filings--hero .inc-ready-cell { padding-top: 14px; }
  main .inc-card .ckl__seg small { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .inc-meta__more, .inc-elapsed__to, main .inc-card .inc-filings--hero .inc-due small { display: none; }
  /* the phone form: the countdown card - the report, the time left, the due moment, the bar, the buttons, then what the draft takes */
  main .inc-card .inc-filings--hero tr { grid-template-areas: "label" "state" "due" "elapsed" "act" "ready"; }
  main .inc-card .inc-filings--hero .inc-act { padding-top: 10px; }
  main .inc-card .inc-filings--hero .inc-clock { font-size: 30px; }
  main .inc-card .ckl { flex-direction: column; gap: 10px; }
  main .inc-card .ckl__seg { flex: none; min-width: 0; padding-top: 0; }
  main .inc-card .ckl__seg:has(.ckl__now) { padding-top: 20px; }
  .inc-ready__stale { display: block; }
  .inc-ready__all > summary { display: inline-flex; }
  /* the hero first, then the three reports as a list, then the lines */
  #filings.inc-card { display: flex; flex-direction: column; }
  #filings > .inc-chead { order: 0; }
  #filings > .inc-filings--hero { order: 1; }
  #filings > .ckl { order: 2; }
  #filings > .ckl__from { order: 3; }
  #filings > .inc-filings--lines { order: 4; }
  #filings > .kfold { order: 5; }
}

/* wow7 W3-RISKS */
/* The risk register, Option A "the tolerance line" (board B-RISKS, 2026-10-15). A hero band across the top - the residual 5 x 5 map with the tolerance drawn as a stepped line, beside the four counts, the moment sentence and the facts that go with it - then the chips, a one-row toolbar and the register at the full content width, so the table no longer scrolls sideways in a 740 px column. Tiers reused: 1100 (the band stacks), 600 (the toolbar's phone fold), 599.5 (the phone band). */
.rk2-band { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "map tiles" "map facts"; gap: 4px 22px; align-items: start; margin-bottom: 14px; }
[data-ui-family="registers"] main .rk2-band { padding: 14px 18px; }
.rk2-band__map { grid-area: map; min-width: 0; }
.rk2-band__tiles { grid-area: tiles; min-width: 0; }
.rk2-band__facts { grid-area: facts; min-width: 0; }
.rk2-band .rk2-heat { border-spacing: 3px; }
.rk2-heat--band thead th:first-child { width: 26px; }
.rk2-band .rk2-heat .rk2-heat__cell { height: 34px; }
.rk2-band .rk2-heat a.rk2-heat__cell { min-height: 34px; }
.rk2-band .rk2-tiles.rk2-tiles--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.rk2-band .rk2-tiles--compact .rk2-tile { padding: 6px 10px; }
.rk2-band .rk2-tiles--compact .rk2-tile__n { font-size: 20px; }
.rk2-band .rk2-tiles--compact .rk2-tile__sub { margin-top: 2px; }
/* The tolerance as a stepped line: a cell above the tolerance gets a thick edge where it meets a cell within it - its bottom edge (--tb) and its left edge (--tl). On a counted cell the classes sit on the td and the line is drawn on the link inside; on an empty cell they sit on the cell itself. */
.rk2-heat__td--tb > a, .rk2-heat__cell--tb { box-shadow: inset 0 -3px 0 0 var(--navy); }
.rk2-heat__td--tl > a, .rk2-heat__cell--tl { box-shadow: inset 3px 0 0 0 var(--navy); }
.rk2-heat__td--tb.rk2-heat__td--tl > a, .rk2-heat__cell--tb.rk2-heat__cell--tl { box-shadow: inset 3px -3px 0 0 var(--navy); }
/* The moment, the facts, where the tolerance comes from. The family rule sizes every p and small in a register at 15 / 13 px, so these carry the family's attribute and the root's to out-rank it. */
[data-ui-family="registers"] [data-risk-root] .rk2-moment { margin: 6px 0 4px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--navy); }
[data-ui-family="registers"] [data-risk-root] .rk2-moment__over { white-space: nowrap; }
[data-ui-family="registers"] [data-risk-root] .rk2-moment[data-above]:not([data-above="0"]) .rk2-moment__over { color: var(--tint-crit-ink); }
[data-ui-family="registers"] [data-risk-root] .rk2-momentsub { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
[data-ui-family="registers"] [data-risk-root] .rk2-momentsub__part { white-space: nowrap; }
[data-ui-family="registers"] [data-risk-root] .rk2-band__facts .rk-tolerance, [data-ui-family="registers"] [data-risk-root] .rk2-band__facts .rk2-tolsrc { margin: 0 0 6px; line-height: 1.5; }
[data-ui-family="registers"] [data-risk-root] .rk2-band__legend { margin: 2px 0 0; line-height: 1.8; display: block; }
/* The register's own column: the risk's title wraps inside its cell (the family keeps every th on one line, which made the title the widest thing in the table and the table 1,385 px wide), and the table's floors give way (the family's 1,000 px, and the 11.5 rem lane G gave the fourth column) so a 1,280 px window, which has 982 px of card, does not scroll sideways either. */
@media (min-width: 600px) {
  [data-ui-family="registers"] [data-risk-root] .rk2-table th.rk2-risk { white-space: normal; }
  [data-ui-family="registers"] [data-risk-root] .rk2-tblwrap > .rk2-table { min-width: 0; }
  /* the 11.5 rem floor of lane G's 14 October block was written for the Owner column, which was the fourth; the fourth is the treatment now, and the owner (an address: one long word) may break instead */
  [data-ui-family="registers"] [data-risk-root] .rk2-table tbody td:nth-child(4) { min-width: 0; overflow-wrap: normal; }
  [data-ui-family="registers"] [data-risk-root] .rk2-table tbody td:nth-child(2) { overflow-wrap: anywhere; }
}
/* The register card's head: the title, the count, and the two secondary actions (plain links) at the right. */
.rk2-regsh { flex-wrap: wrap; margin: 0; padding: 0 0 4px; border-bottom: 1px solid var(--light-gray); }
@media (min-width: 1101px) {
  [data-ui-family="registers"] main .rk2-tablecard { padding: 0; }
  .rk2-regsh { padding: 4px 16px; }
}
.rk2-regsh__act { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.rk2-regsh__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--action-fill); }
/* The toolbar. The kit's fold (a closed <details>, no script) is one line on a phone; from 600 px up, where the browser styles `::details-content`, the summary goes and the content shows as it always did - a browser without the pseudo-element keeps the fold at every width. One row from 1101 px, where the heads sort and the Sort-by selects are not needed. */
.klist-fold { background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; padding: 0 14px; margin: 0 0 12px; }
.klist-fold > summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.klist-fold > summary::-webkit-details-marker { display: none; }
.klist-fold > summary::after { content: "\25B8"; margin-left: auto; color: var(--text-secondary); }
.klist-fold[open] > summary::after { content: "\25BE"; }
.klist-fold[open] > .klist { padding-bottom: 12px; margin-bottom: 0; }
@supports selector(::details-content) {
  @media (min-width: 600px) {
    .klist-fold { background: none; border: 0; padding: 0; margin: 0; }
    .klist-fold > summary { display: none; }
    .klist-fold::details-content { content-visibility: visible; }
    .klist-fold[open] > .klist, .klist-fold > .klist { padding-bottom: 0; margin-bottom: var(--space-3); }
  }
}
@media (min-width: 1101px) {
  [data-risk-root] .klist { flex-wrap: nowrap; }
  [data-risk-root] .klist__sortby { display: none; }
  [data-risk-root] .klist__row--search { flex: 1 1 auto; }
}
/* Under 1101 px the band stacks: the map (290 px) over the counts and the facts. */
@media (max-width: 1100px) {
  .rk2-band { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "tiles" "facts"; }
  .rk2-band__map { max-width: 290px; }
}
/* The phone's own form (375 px): the mini map (26 px cells) beside three facts, then the number strip as one line of four tiles; chips scroll sideways in one line; the legend and the long sentences give way to the numbers. */
@media (max-width: 599.5px) {
  .rk2-band { grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "map facts" "tiles tiles"; gap: 8px 10px; align-items: center; }
  [data-ui-family="registers"] main .rk2-band { padding: 10px; }
  .rk2-band__map { max-width: none; }
  .rk2-band .rk2-heat { border-spacing: 2px; }
  .rk2-band .rk2-heat .rk2-heat__cell { height: 26px; }
  .rk2-band .rk2-heat a.rk2-heat__cell { min-height: 26px; }
  .rk2-heat--band thead th:first-child { width: 34px; }
  .rk2-heat--band .rk2-axis { white-space: nowrap; }
  .rk2-band .rk2-tiles.rk2-tiles--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 0; }
  .rk2-band .rk2-tiles--compact .rk2-tile { padding: 6px 4px; text-align: center; }
  [data-ui-family="registers"] main .rk2-band .rk2-tiles--compact .rk2-tile__l { letter-spacing: 0; text-transform: none; line-height: 1.2; overflow-wrap: anywhere; }
  [data-ui-family="registers"] main .rk2-band .rk2-tiles--compact .rk2-tile__sub { display: none; }
  .rk2-band .rk2-tiles--compact .rk2-tile__n { font-size: 18px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-moment { font-size: 14px; line-height: 1.3; margin: 0 0 4px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-moment__over { display: block; }
  .rk2-moment__sep, .rk2-momentsub__ids, .rk2-tolsrc__t, [data-ui-family="registers"] [data-risk-root] .rk2-band__legend { display: none; }
  [data-ui-family="registers"] [data-risk-root] .rk2-momentsub { line-height: 1.4; margin: 0 0 4px; }
  [data-ui-family="registers"] [data-risk-root] .rk2-momentsub__part { display: block; white-space: normal; }
  [data-ui-family="registers"] [data-risk-root] .rk2-band__facts .rk-tolerance, [data-ui-family="registers"] [data-risk-root] .rk2-band__facts .rk2-tolsrc { margin: 0; }
  [data-risk-root] .rk2-filters { flex-wrap: nowrap; overflow-x: auto; padding-block: 6px; scrollbar-width: none; }
  [data-risk-root] .rk2-filters :is(.rk2-chip, .rk2-sumline) { flex: none; white-space: nowrap; }
  [data-risk-root] .rk2-filters .rk2-sumline { margin-left: 8px; }
  .rk2-regsh h2, .rk2-regsh .cal-bcount { display: none; }
  .rk2-regsh { padding: 0 12px; border-bottom: 0; }
  .rk2-regsh__act { margin-left: 0; }
}

/* wow7 W3-SUPPLIERS */
/* The supplier register, option A "Expunerea in rand" (board 11). Mobile first: the rules below are the phone's, and the one
   up-tier (600 px and above) and the 1100 px tier the file already uses undo or add to them. */
/* Header: on a phone one primary button and a "More buttons" control that opens the other three (a checkbox, no script). */
.sup-acts { gap: 8px; }
.sup-acts .sup-acts__primary { order: 1; flex: 1 1 auto; justify-content: center; }
.sup-more__label { order: 2; cursor: pointer; }
.sup-more__label::after { content: "\2304"; margin-left: 6px; font-weight: 700; }
.sup-more__toggle:checked + .sup-more__label::after { content: "\2303"; }
.sup-more__toggle:focus-visible + .sup-more__label { outline: 2px solid var(--navy); outline-offset: 2px; }
.sup-more__body { order: 3; display: none; flex: 1 1 100%; flex-direction: column; gap: 8px; }
.sup-more__toggle:checked ~ .sup-more__body { display: flex; }
.sup-more__body .btn { justify-content: center; }
/* The overview: one sideways strip of tiles, the exit-plan gap first (x only, so the page still scrolls down). */
[data-supplier-root] .rk2-tiles { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 14px; margin: 0 -14px 10px; padding: 0 14px 6px; }
[data-supplier-root] .rk2-tiles > .rk2-tile { flex: 0 0 150px; scroll-snap-align: start; }
[data-supplier-root] .rk2-tiles [data-tile="exit_missing"] { order: 1; }
[data-supplier-root] .rk2-tiles [data-tile="critical"] { order: 2; }
[data-supplier-root] .rk2-tiles [data-tile="review_due"] { order: 3; }
[data-supplier-root] .rk2-tiles [data-tile="active"] { order: 4; }
[data-supplier-root] .rk2-tiles [data-tile="under_review"] { order: 5; }
[data-supplier-root] .rk2-tiles [data-tile="candidates"] { order: 6; }
/* The closed Filters control carries what the list is: "6 of 6 - ordered by exposure". */
.sup-fltline { margin-left: 10px; font-size: 13px; color: var(--text-secondary); }
/* The toolbar: the search box and its button on one line; the kit's sort row is the phone's, the one-line "Ordered by" is for 600 px and up. */
.sup-sort { display: none; }
/* A row: the exposure sentence, the function chips, the exit cell. */
.rk2-row--hot > :is(th, td) { background: color-mix(in srgb, var(--tint-crit-bg) 45%, var(--white)); }
.rk2-table .sup-moment { display: block; margin-top: 6px; white-space: normal; font-size: 13px; font-weight: 600; color: var(--tint-crit-ink); }
.rk2-table a.sup-fn { white-space: normal; text-align: left; line-height: 1.25; border-bottom: 1px solid transparent; margin: 0 4px 4px 0; }
.sup-fn--critical { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.sup-fn--important { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.sup-fn--single { outline: 1.5px dashed var(--tint-high-ink); outline-offset: -1.5px; }
.rk2-table .sup-together { display: block; margin-top: 2px; color: var(--text-secondary); white-space: normal; }
.sup-exit .pill { display: inline-block; }
.sup-exit .btn { margin-top: 6px; white-space: normal; }
/* The map, fitted to its card: a fixed layout, short heads that end in an ellipsis (the full name is the head's title). */
[data-supplier-root] .rk2-table.rk2-minimap { table-layout: fixed; width: 100%; min-width: 0; font-size: 12.5px; }
.rk2-minimap thead th:not(:first-child) { padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2-minimap thead th:not(:first-child) a { display: block; overflow: hidden; text-overflow: ellipsis; border-bottom: 0; }
.rk2-minimap thead th:first-child { width: 34%; }
.rk2-minimap tbody th[scope="row"] { white-space: normal; overflow-wrap: anywhere; }
.rk2-minimap tbody th[scope="row"] .pill { display: inline-block; white-space: normal; margin-top: 2px; }
.rk2-minimap td.rk2-mapcell--gap { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
@media (min-width: 600px) {
  /* The header: all four buttons, as before. */
  .sup-more__label { display: none; }
  .sup-more__body { display: contents; }
  .sup-acts .sup-acts__primary { order: 0; flex: 0 0 auto; }
  /* The overview: one row of tiles again. */
  [data-supplier-root] .rk2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); overflow: visible; scroll-snap-type: none; margin: 0 0 14px; padding: 0; }
  [data-supplier-root] .rk2-tiles > .rk2-tile { flex: none; }
  [data-supplier-root] .rk2-tiles > .rk2-tile { order: 0 !important; }
  .sup-fltline { display: none; }
  /* The toolbar on one line: search, its button, "Ordered by" with four orders, "Export CSV" at the right. */
  .sup-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .sup-bar > .klist { display: contents; }
  .sup-bar .klist__row--search { order: 1; flex: 0 1 380px; min-width: 0; }
  .sup-bar > [data-clear-search] { order: 2; }
  .sup-bar > .sup-sort { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
  .sup-bar .klist__export { order: 4; margin-left: auto; }
  .sup-bar > .klist__sorts { display: none; }
  .sup-sort__l { margin-right: 4px; font-size: 13px; color: var(--text-secondary); }
  .sup-sort .klist__sortlink { border: 0; border-radius: 0; background: none; padding: 0 8px; box-shadow: none; }
  .sup-sort .klist__sortlink.is-on { color: var(--action-fill); box-shadow: inset 0 -2px 0 var(--action-fill); }
  .sup-sort [data-sort-key="exposure"] .klist__arrow--asc::after { content: "\2193"; }
  .sup-sort [data-sort-key="exposure"] .klist__arrow--desc::after { content: "\2191"; }
  /* The table: five columns fit a card without the registers' 1000 px floor. */
  [data-ui-family="registers"] .rk2-table[data-supplier-table] { min-width: 0; }
  [data-ui-family="registers"] [data-supplier-table] th.rk2-risk { min-width: 15rem; white-space: normal; }
  [data-ui-family="registers"] [data-supplier-table] :is(thead th, td.rk2-review) { white-space: normal; }
  [data-supplier-table] :is(.klist__sort, .sup-exit .pill, .rk2-chip[data-identifier]) { white-space: normal; }
  [data-supplier-table] .rk2-chip[data-identifier] { overflow-wrap: anywhere; }
}
@media (max-width: 1100px) {
  [data-supplier-root] .rk2-tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  [data-ui-family="registers"] [data-supplier-table] th.rk2-risk { min-width: 11rem; }
}

/* wow7 W3-HOME */
/* The DORA home, option A "Ceasul ASF" (board B-HOME, 2026-10-15): the supervisor clock (a countdown chip, the 60-day strip
   and, below 600 px, the day-rail as its own markup), one row of five tiles, the deadlines beside the next steps, the state
   row with the heat map, smaller. Every rule hangs off `.home-board`, which only the DORA home carries. The strip's past due
   zone is a region, not a data series: it is one tint (the critical tint) and says "past due" in words on the axis. No new
   media tier: the phone rules use the 599.5px prelude and the strip's 600px one. */
.home-board .dh-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-board .dh-col > .card { margin: 0; }
.home-board .dh-col > .card:first-child { flex: 1 1 auto; }
.home-board .dh-col--state > .card:first-child { flex: 0 0 auto; }
/* the two rows of cards stretch: no hole under the shorter card (the board's width-use check) */
.home-board .dh-row--hero { align-items: stretch; }
.home-board .dh-clock { padding-bottom: 12px; }
.home-board .dh-clk { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px;
  background: var(--tint-navy-bg); border: 1px solid var(--border-subtle); border-radius: 10px; }
.home-board .dh-clk.is-overdue { background: var(--tint-crit-bg); }
.home-board .dh-clk__big { font-size: 30px; font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-board .dh-clk__big small { font-size: 13px; font-weight: 700; color: var(--tint-crit-ink); }
.home-board .dh-clk__what { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-board .dh-clk__what a { color: inherit; text-decoration: none; }
.home-board .dh-clk__what a:hover b { text-decoration: underline; }
.home-board .dh-clk__what b { font-size: 15px; color: var(--text-primary); overflow-wrap: anywhere; }
.home-board .dh-clk__what small { font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }
.home-board .dh-clk__short { display: none; }
.home-board .dh-clock__rail { display: none; }
/* the strip: lanes of 44 px, marks with their label beside the dot, the past due zone shaded, the today line dashed */
.home-board .tl--days .tl__track { background-image: none; border-left: 0; }
.home-board .tl--days .tl__lane { min-height: 46px; }
.home-board .tl__zone { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tint-crit-bg); border-right: 1px dashed var(--tint-crit-ink); opacity: .75; pointer-events: none; }
.home-board .tl--days .tl__lbl { position: absolute; left: 50%; top: 50%; margin-left: 12px; transform: translateY(-50%); white-space: nowrap; font-size: 12.5px; color: var(--text-primary); }
.home-board .tl--days .tl__m--flip .tl__lbl { left: auto; right: 50%; margin: 0 12px 0 0; }
.home-board .tl--days .tl__m:first-of-type .tl__lbl { font-weight: 700; }
.home-board .tl--days .tl__m--over .tl__lbl { color: var(--tint-crit-ink); }
.home-board .tl--days .tl__note { position: absolute; left: 16%; right: 6px; top: 50%; transform: translateY(-50%); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-board .tl--days .tl__ax > span:first-child { color: var(--tint-crit-ink); }
/* the five tiles */
.home-board [data-dh-tiles] .rk2-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-board [data-dh-tiles] .rk2-tile__sub { margin-top: 2px; }
/* the deadlines: a chip and the row's own verb */
.home-board .dh-dl__act { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.home-board .dh-when { background: var(--tint-mute-bg); color: var(--tint-mute-ink); white-space: nowrap; }
.home-board .dh-when--soon { background: var(--tint-high-bg); color: var(--tint-high-ink); }
.home-board .dh-dl__act .btn { white-space: nowrap; }
/* the owed card: the requests line and the heat map, smaller */
.home-board a.dh-req { display: block; color: var(--text-secondary); text-decoration: none; }
.home-board a.dh-req b { color: var(--text-primary); font-size: 13.5px; }
.home-board a.dh-req:hover b { text-decoration: underline; }
.home-board .dh-heatbox { display: grid; gap: 4px; min-width: 0; }
.home-board .dh-heatbox__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.home-board .dh-heatbox__head > b { color: var(--text-primary); font-size: 13.5px; }
.home-board .dh-heatbox__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; }
.home-board .dh-heatbox__notes { flex: 1 1 180px; min-width: 0; }
.home-board .dh-heat--sm { flex: 0 0 200px; width: 200px; max-width: 100%; table-layout: fixed; border-spacing: 2px; margin: 2px 0 0; }
.home-board .dh-heat--sm th { padding: 0; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.home-board .dh-heat--sm .rk2-heat__cell { height: 26px; font-size: 12px; }
.home-board .dh-heat--sm a.rk2-heat__cell { min-height: 26px; }
.home-board .dh-heatbox .dh-note { margin: 4px 0 0; }
.home-board .dh-owed__item--heat { padding-bottom: 0; }
/* from 600 px the strip is shown and the rail is not (the rail is below) */
@media (min-width: 600px) {
  .home-board .dh-clk__what { flex: 1 1 320px; }
  /* the deadlines card is 3 fr wide now: date, what, state and verb on one line (the two-line row is the phone's) */
  .home-board .dh-row--hero .dh-dl__row { grid-template-columns: 7.2em minmax(0, 1fr) auto; align-items: center; }
  .home-board .dh-row--hero .dh-dl__date { grid-column: auto; grid-row: auto; flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .home-board .dh-row--hero .dh-dl__what { grid-column: auto; grid-row: auto; }
  .home-board .dh-row--hero .dh-dl__row > .dh-dl__act { grid-column: auto; grid-row: auto; justify-self: end; }
}
@media (max-width: 1100px) {
  .home-board .tl--days .tl__lbl { max-width: 16em; overflow: hidden; text-overflow: ellipsis; }
  .home-board .tl--days a.tl__m:only-of-type .tl__lbl { max-width: none; }
}
@media (max-width: 599.5px) {
  /* the phone form: the chip first with its full filing label, then the day-rail; the strip is not drawn; the chip's
     button is the filing action */
  .home-board .dh-clock__strip { display: none; }
  .home-board .dh-clock__rail { display: block; list-style: none; margin: 0; padding: 0; }
  .home-board .dh-clk { flex-direction: column; align-items: flex-start; }
  .home-board .dh-clk__what { flex: 0 0 auto; }
  .home-board .dh-clk__btn { align-self: flex-start; min-height: 44px; max-width: 100%; white-space: normal; }
  .home-board .dh-rail__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
  .home-board .dh-rail__row:last-child { border-bottom: 0; }
  .home-board .dh-rail__when { display: flex; flex-direction: column; font-size: 12.5px; color: var(--navy); }
  .home-board .dh-rail__when small { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
  .home-board .dh-rail__row.is-overdue .dh-rail__when b { color: var(--tint-crit-ink); }
  .home-board .dh-rail__row--today .dh-rail__when b { color: var(--text-secondary); }
  .home-board .dh-rail__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; }
  .home-board .dh-rail__what a { color: var(--text-primary); text-decoration: none; }
  .home-board .dh-rail__what small { font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
  .home-board [data-dh-tiles] .rk2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-board [data-dh-tiles] .rk2-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .home-board .dh-heat--sm a.rk2-heat__cell { min-height: 44px; }
  .home-board .dh-heat--sm .rk2-heat__cell { height: 44px; }
  .home-board .dh-heat--sm { flex: 1 1 100%; width: 100%; }
}

/* wow8 finish (2026-10-16): the finish defects the NIS2 scoring and board lanes found, as one block. Layout only. */
/* Scan history: the id cell is a short label that can never set the table's width (a legacy 32-character id used to
   make the table wider than its card, and at 1440 the page scrolled sideways); the full id stays in the tooltip. */
.console-table .sc-id { display: inline-block; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Between the drawer tier (1100) and 1279 px the expanded sidebar leaves a card narrower than the table's own width; the
   table scrolls inside its card there instead of widening the page. From 1280 px the table fits (cells 8 px, not 12). */
@media (min-width: 1101px) and (max-width: 1279px) {
  [data-ui-family="scans"] .tblwrap { max-width: 100%; overflow-x: auto; }
}
[data-ui-family="scans"] #tbl-scan-history { --ct-pad-x: 8px; }
/* 19.4.4: on a phone each scan is a card (the box no longer scrolls sideways with "View" off the edge): the tick, the
   scan and the View button on the first line, the rest as labelled pairs two to a line. The older-scan collapse and the
   filter's expansion keep working: the card display is given to exactly the rows those rules show. */
@media (max-width: 599.5px) {
  [data-ui-family="scans"] .tblwrap:has(#tbl-scan-history) { overflow: visible; }
  [data-ui-family="scans"] #tbl-scan-history, [data-ui-family="scans"] #tbl-scan-history tbody,
  [data-ui-family="scans"] #tbl-scan-history td { display: block; width: auto; min-width: 0; }
  [data-ui-family="scans"] #tbl-scan-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-ui-family="scans"] #tbl-scan-history tbody tr:not(.scan-row--older),
  [data-ui-family="scans"] #tbl-scan-history.scans-table--expanded .scan-row--older,
  [data-ui-family="scans"] #tbl-scan-history.is-filtering .scan-row--older {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
    margin: 0 0 10px; padding: 8px 12px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--white);
  }
  [data-ui-family="scans"] #tbl-scan-history td { padding: 0; border-bottom: 0; white-space: normal; text-align: left; grid-column: span 2; }
  [data-ui-family="scans"] #tbl-scan-history td.sc-pick { grid-column: 1; grid-row: 1; }
  [data-ui-family="scans"] #tbl-scan-history td.sc-pick:empty { display: none; }
  [data-ui-family="scans"] #tbl-scan-history td.sc-idcell { grid-column: 2 / 4; grid-row: 1; font-weight: 600; }
  [data-ui-family="scans"] #tbl-scan-history td.sc-view { grid-column: 4; grid-row: 1; }
  [data-ui-family="scans"] #tbl-scan-history td.sc-runnote { grid-column: 1 / -1; }
  [data-ui-family="scans"] #tbl-scan-history td[data-label]:not(.sc-idcell)::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text-muted-readable); }
  [data-ui-family="scans"] #tbl-scan-history td.sc-idcell::before { display: none; }
  [data-ui-family="scans"] #tbl-scan-history .sc-id { max-width: 100%; }
}
/* Exceptions register: the title is the row header (nowrap with the family's head cells), so a long title set the
   table 155 px wider than its card at 1440 and clipped the last column. It wraps; the other columns keep their size. */
[data-exceptions-root] .rk2-table tbody th.rk2-risk { white-space: normal; overflow-wrap: anywhere; min-width: 14rem; }
/* ...and the family's 1000 px floor and 12 px cells, which a 984 px card (1280 px window) cannot hold, give way to the content. */
[data-exceptions-root] .rk2-table { min-width: 0; }
[data-exceptions-root] .rk2-table :is(th, td) { padding-left: 10px; padding-right: 10px; }
/* Activity: the list of every recorded event - the record (a document's title, a scan's id) wraps, the date does not
   (.data-table keeps a last column on one line, which made the table wider than its card). */
.prog-activity-all .prog-activity-table td:last-child { white-space: normal; overflow-wrap: anywhere; }
.prog-activity-all .prog-activity-table td:first-child { white-space: nowrap; }
/* My Company on a phone: the page header stacks (column), and the identity block's 36 rem basis - a width in a row -
   became a 36 rem HEIGHT, about 300 px of blank space above the organisation's name. The block takes its content.
   (640.5, the phone boundary's own width: the pinned "(max-width: 640px)" prelude stays ONE block.) */
@media (max-width: 640.5px) {
  [data-ui-family="company"] .ci-ident { flex: 0 0 auto; }
}
/* wow9 B4-CONTROL (2026-10-16) */
/* One NIS2 control, option A "Scara DNSC si pasul care lipseste": the header without its box, the state card as three
   columns (the ladder, the one step left, what feeds the level), two columns with the feeds underneath at the 1100 px tier,
   one column with the step first at the 768 px tier. No new media tier. The ladder reuses the dashboard's .matrow tokens. */
.detail__header.cs-head { background: transparent; border: 0; padding: 0; border-radius: 0; margin-bottom: 14px; }
.cs-head__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.cs-head .cs-head__row h1 { flex: 1 1 auto; min-width: 0; margin: 0; }
.cs-head__act { flex: 0 0 auto; margin: 0; }
.cs-head .subcat { font-size: 18px; line-height: 1.3; color: var(--navy); margin: 6px 0 6px; }
.cs-meta { margin: 0 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.cs-meta b { color: var(--text-primary); }
.cs-head .ctrl-pn { margin: 8px 0 12px; }
.cs-head .kfold { margin-top: 12px; }
.cs-card { padding: 16px 18px; margin: 0; }
.cs-cols { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1.25fr) minmax(260px, 400px); gap: 18px 28px; align-items: start; }
.cs-cols--two { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 400px); }
.cs-col { min-width: 0; }
.cs-h { margin: 0 0 8px; font-size: 15px; line-height: 1.3; color: var(--navy); }
.cs-h .muted { margin-left: 6px; font-weight: 400; font-size: 13px; }
.cs-col--step > p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.cs-col--step > p.small { font-size: 13px; color: var(--text-secondary); }
.cs-col--step > p.small b { color: var(--text-primary); }
.cs-col--step .cs-cap { color: var(--text-secondary); }
.cs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cs-alt { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.cs-ladder.matladder { margin-top: 4px; gap: 6px; }
.cs-ladder .matrow { opacity: 1; cursor: default; background: var(--white); padding: 6px 10px; }
.cs-ladder .matrow__name { flex-wrap: wrap; row-gap: 3px; font-size: 14px; }
.cs-ladder .matrow__desc { margin: 1px 0 0; }
.cs-ladder .matrow:not(.is-reached) .matrow__lv { border-color: var(--medium-gray); }
.cs-ladder .matrow.is-closed:not(.is-current) { background: repeating-linear-gradient(135deg, transparent 0 7px, var(--tint-mute-bg) 7px 14px); }
.cs-ladder .matrow.is-closed .matrow__name, .cs-ladder .matrow.is-closed .matrow__desc { color: var(--text-secondary); }
.cs-ladder .matrow.is-current { background: var(--white); }
.cs-ladder .matrow__marks { margin-left: 0; }
.cs-flag--target { background: var(--navy); }
.cs-flag--cap { background: var(--tint-med-ink); }
.cs-feeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cs-feed { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--medium-gray); min-height: 44px; }
.cs-feed:first-child { border-top: 0; padding-top: 2px; }
.cs-feed__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-feed__k { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.cs-feed__t { font-weight: 650; color: var(--navy); overflow-wrap: anywhere; }
.cs-feed__t a { font-weight: 650; }
.cs-feed__m { font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); overflow-wrap: anywhere; }
.cs-pill { flex: 0 0 auto; display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.cs-pill--ok { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.cs-pill--warn { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.cs-pill--bad { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.cs-pill--mute { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
@media (max-width: 1100px) {
  .cs-cols { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
  .cs-cols .cs-col--feeds { grid-column: 1 / -1; }
  .cs-cols--two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .cs-cols, .cs-cols--two { grid-template-columns: minmax(0, 1fr); }
  .cs-col--step { order: 1; }
  .cs-col--ladder { order: 2; }
  .cs-col--feeds { order: 3; }
  .cs-head__act, .cs-head__act .btn { width: 100%; }
  .cs-head__act .btn { justify-content: center; text-align: center; }
  .cs-feed__t a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* wow9 docs (2026-10-16): the NIS2 Document register - "Cele șase funcții" (board B4-DOCUMENTS, option A). Layout only; the DORA register keeps the .reg-row rules above. */
.drband { container-type: inline-size; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; }
.drstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 900px) { .drstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.drcell { margin: 0; min-width: 0; }
.drcell__in { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 9px 10px 8px; border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--off-white, #FAFBFC); color: var(--text-primary); text-decoration: none; min-width: 0; }
a.drcell__in:hover { border-color: var(--teal, #0F9D8F); text-decoration: none; }
a.drcell__in:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.drcell--full .drcell__in { background: var(--tint-ok-bg); border-color: #BFE3D3; }
.drcell--late .drcell__in { background: var(--tint-crit-bg); border-color: #F2C4CE; }
.drcell--half .drcell__in { background: var(--tint-high-bg); border-color: #F0D9B5; }
.drcell__h { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.drcell__h b { overflow-wrap: anywhere; }
.drcell__n { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
.drcell__n b { font-size: 20px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 2px; }
.drcell__of--s { display: none; }
.drcell__bar { display: block; height: 5px; border-radius: 3px; background: var(--medium-gray); overflow: hidden; }
.drcell__bar i { display: block; height: 100%; background: var(--green); }
.drcell--late .drcell__bar i { background: var(--tint-crit-ink); }
.drcell--half .drcell__bar i { background: #D29A1C; }
.drcell__k { font-size: 12px; font-weight: 700; line-height: 1.3; }
.drcell__k--bad { color: var(--tint-crit-ink); }
.drcell__k--ok { color: var(--tint-ok-ink); }
.drcell__d { font-size: 11.5px; color: var(--text-secondary); line-height: 1.35; }
.drfn, .drrow .fchip { display: inline-grid; place-items: center; height: 16px; min-width: 22px; padding: 0 5px; border-radius: 5px; font-size: 9px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.drmoment { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 12px 0 0; font-size: 14.5px; color: var(--text-primary); }
.drmoment__bad { color: var(--tint-crit-ink); }
.drmoment__ok { color: var(--tint-ok-ink); }
.drbinder { margin: 8px 0 0; text-align: right; font-size: 13px; color: var(--text-secondary); }
.drbinder a { font-weight: 600; color: var(--action-fill, var(--green)); }
.drtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
@media (min-width: 900px) { .drtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.drtile { display: flex; flex-direction: column; gap: 2px; min-width: 0; box-sizing: border-box; padding: 9px 12px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 10px; color: var(--text-primary); text-decoration: none; }
a.drtile:hover { border-color: var(--teal, #0F9D8F); text-decoration: none; }
a.drtile:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.drtile--zero { background: var(--off-white, #FAFBFC); }
.drtile__n { font-size: 21px; font-weight: 800; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.drtile__n small { font-size: 12px; font-weight: 600; color: var(--text-muted, var(--text-secondary)); }
.drtile--crit .drtile__n { color: var(--tint-crit-ink); }
.drtile--warn .drtile__n { color: var(--tint-high-ink); }
.drtile--zero .drtile__n { color: var(--text-secondary); }
.drtile__l { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.drtile__s { font-size: 11.5px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The toolbar: one line from 600 px (the kit's fold shows its content there), one closed fold on a phone. */
.drtb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; }
.klist-fold > .drtb { margin: 0; }
.drtb .klist__sorts { margin: 0; gap: 6px; }
.drtb .klist__sortlink { min-height: 36px; padding: 0 10px; font-size: 13px; }
.drtb .klist__export { margin-left: auto; }
@supports selector(::details-content) { @media (min-width: 600px) { .klist-fold > .drtb { padding-bottom: 0; margin-bottom: var(--space-3); } } }
/* The group-by label is read by a screen reader and not drawn: the three words say what they do. */
.drtb .reg-glabel, .drtb .klist__sorts-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.drtb .reg-gopt, .drtb .owner-filter__btn, .drtb .klist__sortlink, .drtb .klist__sorts-l { white-space: nowrap; }
.drtb .reg-gopt { padding-inline: 10px; }
@media (min-width: 1101px) { .drtb { flex-wrap: nowrap; gap: 6px 8px; } .drtb .tree-expand { flex: 1 1 130px; min-width: 0; } .drtb .control-search { width: 100%; min-width: 0; } .drtb .klist__sortlink { padding: 0 8px; font-size: 12.5px; } .drtb .klist__sorts { gap: 4px; flex-wrap: nowrap; } .drtb .klist__export { white-space: nowrap; } }
.drfilter { margin: 0 0 10px; font-size: 13px; }
/* The register: five tracks (document, state, review, controls, one action); the card tier under 1050 px. */
.drcard { container-type: inline-size; padding: 0; }
/* 2026-10-17 (owner, Dev1): the five tracks share the width (they were a wide document cell and four fixed columns pushed
   right, which left the middle of a wide screen empty), and the row keeps them down to an 860 px card. Every row is its
   own grid, so no track may size to its content: minmax(0, fr) and a fixed action column keep the columns aligned. */
.drrow { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .85fr) 180px; gap: 6px 18px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.drrow:last-child { border-bottom: 0; }
.drrow:hover { background: #f7f9fc; }
.drrow.is-proposed { background: var(--off-white); }
.drdoc { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.drdoc__t { font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.drdoc__t:hover { text-decoration: underline; text-underline-offset: 3px; }
.drdoc__m { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.drdoc__d { font-size: 11.5px; color: var(--text-secondary); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drrow .did { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: -.01em; line-height: 1; padding: 4px 9px; border-radius: 6px; }
.drletter { font-size: 11px; font-weight: 600; color: var(--text-muted, var(--text-secondary)); background: var(--tint-mute-bg); border-radius: 4px; padding: 1px 4px; }
.drlang { font-size: 11px; color: var(--text-secondary); border: 1px solid var(--medium-gray); border-radius: 999px; padding: 0 7px; }
.drlang i { font-style: normal; font-weight: 500; opacity: .7; margin-left: 4px; }
.drdoc .reg-language-confirm { font-size: 11.5px; }
.drstate b, .drrev b { display: block; font-size: 13px; font-weight: 700; }
.drstate small, .drrev small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--text-secondary); }
.drstate--approved_management b, .drstate--adopted b { color: var(--tint-ok-ink); }
.drstate--approved_editorial b { color: var(--tint-high-ink); }
.drstate--draft b { color: var(--tint-sky-ink); }
.drstate--missing b { color: var(--text-secondary); }
.drrev__late { color: var(--tint-crit-ink); }
.drrev__old { color: var(--tint-high-ink); }
.drmute { color: var(--text-muted, var(--text-secondary)); }
.drctl small { display: block; font-size: 11.5px; color: var(--text-secondary); line-height: 1.35; margin-bottom: 4px; }
.drctl .reg-bar { display: block; }
.dract { justify-self: end; }
.dract__pair { display: flex; flex-direction: column; gap: 6px; }
.dract .btn { min-height: 36px; white-space: normal; text-align: center; }
@container (max-width: 860px) {
  .drrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; row-gap: 8px; }
  .drdoc { grid-column: 1 / -1; }
  .drctl { grid-column: 1 / -1; }
  .dract { grid-column: 1 / -1; justify-self: stretch; }
  .dract .btn { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 599.5px) {
  .drletter { display: none; }
  .drcell__in { padding: 7px 8px 6px; gap: 2px; }
  .drcell__h { font-size: 12px; gap: 4px; flex-wrap: wrap; }
  .drcell__h b { overflow-wrap: normal; }
  .drfn { height: 20px; min-width: 22px; }
  .drcell__d, .drcell__sfx { display: none; }
  .drcell__n b { font-size: 18px; }
  .drmoment { font-size: 13px; margin-top: 8px; }
  .drband { padding: 10px 12px; }
  .drbinder { text-align: left; }
  .drtile { padding: 6px 3px; text-align: center; }
  .drtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .drtile__n { font-size: 18px; }
  .drtile__l { font-size: 9px; letter-spacing: 0; line-height: 1.15; overflow-wrap: normal; hyphens: auto; }
  .drtile__s { display: none; }
}
.drprop { margin: 0 0 14px; }
.drprop__s { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 44px; padding: 8px 0; font-size: 14px; }
.drprop__s .subtle { font-size: 12px; }
.drcats { margin: 0 0 8px; font-size: 12px; }
[data-ui-family="documents"] :is(.drstate small, .drrev small, .drctl small, .drdoc__d, .drletter, .drlang, .drcell__d, .drcell__n, .drcell__k, .drtile__s) { font-size: 13px; }
[data-ui-family="documents"] :is(.drfn, .drrow .fchip) { font-size: 13px; min-width: 24px; height: 24px; width: auto; padding: 0 var(--space-1); }
[data-ui-family="documents"] .drrow .did { font-size: 13px; }
@media (min-width: 600px) { [data-ui-family="documents"] .drtile__l { font-size: 13px; letter-spacing: .02em; } }
/* wow9 EVID (2026-10-16): the NIS2 Evidence page, "Dosarul pentru audit" (option B of the wow8 board). Layout and tint only;
   every class is drawn by templates/_wow9_evid.html or by evidence_library.html for a NIS2 workspace, so a DORA page is untouched. */
.evlib__ufold { border-top: 1px solid var(--border-subtle); padding: 10px 0; margin: 0 0 14px; }
.evlib__ufold > .kfold__s .kfold__lead { font-size: 13px; }
.evlib__ufold > .kfold__b { padding-top: 10px; }
.evlib__ufold .evlib__upload { margin: 0; }
.evgap__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 12px; align-items: stretch; margin: 0 0 18px; }
.evgap__top > .card { margin: 0; min-width: 0; }
.evgap__top--zero { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
.evgap__first .evlib__upload-form { grid-template-columns: minmax(0, 1fr) auto; }
.evgap__first .evlib__dropzone { grid-column: 1 / -1; }
.evgap__first .evlib__validity { grid-column: 1; }
.evgap__first #ev-upload-btn { grid-column: 2; justify-self: end; }
.evgap__lead { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.evgap__count { font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; }
.evgap__preview h2 { font-size: 16px; margin: 0 0 6px; color: var(--navy); }
.evgap__preview p { font-size: 13px; margin: 0; }
.evgap__bandt { font-size: 15px; margin: 0 0 10px; color: var(--navy); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.evgap__bandt span { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.evgap__blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.evgap__blocks > li { min-width: 0; display: flex; }
.evgap__block { display: flex; flex-direction: column; gap: 4px; width: 100%; box-sizing: border-box; padding: 9px 8px; border: 1px solid var(--medium-gray);
  border-radius: 8px; background: var(--surface-panel); color: var(--text-primary); text-decoration: none; font-size: 13px; line-height: 1.35; min-width: 0; }
.evgap__block:hover { background: var(--off-white); text-decoration: none; }
.evgap__block:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.evgap__block.has-gap { border-color: color-mix(in srgb, var(--red) 35%, var(--medium-gray)); }
.evgap__fn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; align-items: baseline; }
.evgap__fn b { font-size: 13px; color: var(--navy); overflow-wrap: normal; }
.evgap__fn i { font-style: normal; font-size: 13px; color: var(--text-secondary); }
.evgap__bar { display: block; height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--red) 30%, var(--surface-panel)); }
.evgap__bar-met { display: block; height: 100%; background: var(--green-dark); }
.evgap__n b { font-weight: 700; }
.evgap__km { color: var(--tint-crit-ink); font-weight: 700; }
.evgap__kok { color: var(--tint-ok-ink); font-weight: 700; }
.evgap__moment { display: flex; flex-direction: column; gap: 4px; }
.evgap__big { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--tint-crit-ink); margin: 0; }
.evgap__big--ok { color: var(--tint-ok-ink); }
.evgap__bigl { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 6px; }
.evgap__sentence { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.evgap__go { align-self: flex-start; margin-top: auto; }
.evgap { margin: 0 0 28px; scroll-margin-top: 16px; }
.evgap > h2 { font-size: 18px; margin: 0 0 8px; color: var(--navy); }
.evgap__filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; }
.evgap__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.evgap__chips .rz-fchip { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; border-radius: 999px; font-weight: 600; color: var(--text-primary); }
.evgap__chips .rz-fchip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.evgap__order { margin: 0; }
.evgap__empty { padding: 14px 0; }
.evgap__t { width: 100%; border-collapse: collapse; background: var(--surface-panel); border: 1px solid var(--medium-gray); border-radius: 10px; overflow: hidden; font-size: 14px; }
.evgap__t th, .evgap__t td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--medium-gray); }
.evgap__t thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); background: var(--off-white); }
.evgap__t tbody tr:last-child > * { border-bottom: 0; }
.evgap__id { white-space: nowrap; font-weight: 700; }
.evgap__id a { color: var(--navy); }
.evgap__id .keybadge { margin-left: 2px; }
.evgap__what { max-width: 46rem; }
.evgap__req, .evgap__law { display: block; }
.evgap__law { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.evgap__law--near, .evgap__law--none { font-style: italic; }
.evgap__score { min-width: 9.5rem; }
.evgap__score b { display: block; font-size: 14px; }
.evgap__score small { display: block; font-size: 13px; color: var(--text-secondary); }
.evgap__score--met b { color: var(--tint-ok-ink); }
.evgap__score--below b { color: var(--tint-med-ink); }
.evgap__score--unrated b { color: var(--text-secondary); }
.evgap__expired { color: var(--tint-crit-ink); font-weight: 700; }
.evgap__expired-n { color: var(--tint-crit-ink); font-size: 13px; }
.evgap__act { text-align: right; white-space: nowrap; }
.evgap__long { display: none; }
.evgap__more { margin: 10px 0 0; display: flex; gap: 10px; align-items: center; }
.evfs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.evfs__c { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; align-items: center; padding: 0 12px; border: 1px solid var(--medium-gray); border-radius: 999px;
  background: var(--surface-panel); color: var(--text-primary); font-size: 13px; text-decoration: none; }
.evfs__c b { font-variant-numeric: tabular-nums; }
.evfs__c:hover { background: var(--off-white); text-decoration: none; }
.evfs__c.is-on { background: var(--tint-navy-bg); border-color: var(--tint-navy-ink); color: var(--tint-navy-ink); font-weight: 600; }
.evlib__list-n { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
/* the files: the kit's one-line toolbar, the column heads and the cards as rows */
.evlib--b .klist__row--search { flex: 1 1 20rem; }
@media (min-width: 601px) { .evlib--b .klist__sortby { display: none; } }
.evlib--b .klist__periods { flex: 1 1 auto; }
.evlib--b .klist { flex-wrap: wrap; row-gap: 4px; }
.evrow { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 2fr) minmax(8.5rem, 1.1fr) minmax(0, 1.9fr) 1.25rem; gap: 12px; align-items: center; }
.evrow--head { padding: 8px 14px 8px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.evrow--head .evrow__h:last-child { grid-column: 4 / 5; }
.evrow__h .klist__sort { text-transform: uppercase; }
.doc-card__summary--row { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 2fr) minmax(8.5rem, 1.1fr) minmax(0, 1.9fr) 1.25rem; gap: 12px; align-items: center; }
.doc-card__summary--row > .doc-card__icon { display: none; }
.doc-card__summary--row > .doc-card__id { grid-column: 1; }
.doc-card__summary--row .doc-card__name { white-space: normal; max-width: none; overflow-wrap: anywhere; }
.doc-card__summary--row > .evrow__ctl { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.doc-card__summary--row > .evrow__valid { grid-column: 3; display: flex; flex-direction: column; gap: 1px; }
.doc-card__summary--row > .doc-card__state { grid-column: 4; margin-left: 0; justify-content: flex-start; }
.doc-card__summary--row::after { grid-column: 5; justify-self: end; }
.evrow__date { font-size: 14px; }
.evrow__date--none { color: var(--text-secondary); font-weight: 600; }
.evrow__clock { font-size: 13px; color: var(--text-secondary); }
.evrow__star { color: var(--key-ink); }
.evrow__more, .evrow__none { font-size: 13px; }
/* a file read and analysed in full has nothing to say on its row; a partial or failed reading still shows */
.doc-card__summary--row :is(.ev-extraction--complete, .ev-analysis--complete) { display: none; }
@media (max-width: 1000px) {
  .evgap__top, .evgap__top--zero { grid-template-columns: minmax(0, 1fr); }
  .evgap__first .evlib__upload-form { grid-template-columns: minmax(0, 1fr); }
  .evgap__first #ev-upload-btn { grid-column: 1; justify-self: start; }
  .evgap__blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evgap__what { max-width: none; }
  .evgap__t th, .evgap__t td { padding: 8px; }
}
@media (max-width: 700px) {
  .evgap__moment { order: -1; }
  .evgap__blocks { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .evgap__blocks > li { flex: 0 0 9.5rem; scroll-snap-align: start; }
  .evgap__t, .evgap__t tbody, .evgap__t tr, .evgap__t td, .evgap__t th { display: block; }
  .evgap__t { border: 0; background: transparent; }
  .evgap__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .evgap__t tbody tr { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--medium-gray); border-radius: 10px; background: var(--surface-panel); }
  .evgap__t tbody tr[data-key] { border-color: color-mix(in srgb, var(--red) 30%, var(--medium-gray)); }
  .evgap__t th, .evgap__t td { border: 0; padding: 2px 0; }
  .evgap__t td[data-l]::before { content: attr(data-l); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
  .evgap__t td.evgap__what::before { display: none; }
  .evgap__score, .evgap__doc { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
  .evgap__score::before, .evgap__doc::before { flex: 0 0 8rem; }
  .evgap__act { text-align: left; padding-top: 8px; }
  .evgap__act .btn { width: 100%; justify-content: center; min-height: 44px; }
  .evgap__short { display: none; }
  .evgap__long { display: inline; }
  .evgap__order { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .evlib--b .klist__sorts { display: none; }
  .evrow--head { display: none; }
  .doc-card__summary--row { display: flex; flex-wrap: wrap; }
  .doc-card__summary--row > .doc-card__id { flex: 1 1 100%; }
  .doc-card__summary--row > .evrow__ctl, .doc-card__summary--row > .evrow__valid { flex: 1 1 100%; }
  .doc-card__summary--row > .evrow__valid { flex-direction: row; gap: 8px; align-items: baseline; }
  .doc-card__summary--row > .doc-card__state { flex: 1 1 calc(100% - 2rem); }
  .evfs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .evfs__c { flex: 0 0 auto; scroll-snap-align: start; }
}
/* wave 4, lane dash (2026-10-16, board B4-DASHBOARD-2 option B "Primul lucru"): the NIS2 home. One ranked list and a
   state rail (2:1), the road to level 3 beside the key measures (3:2), three state cards. The phone has its own markup
   (.nh-phone: the first item, three tiles, the rest), not the desktop card scaled: the stylesheet shows one of the two. */
.nis2-home .nh-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
/* 2026-10-17: each column stacks its own cards (.nh-main: the list and the road to level 3; .nh-rail: the maturity
   level and the key measures), so a short list no longer leaves a hole beside a tall rail. */
.nis2-home .nh-main, .nis2-home .nh-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nis2-home .nh-main > .card, .nis2-home .nh-rail > .card, .nis2-home .nh-queue, .nis2-home .nh-card { margin: 0; min-width: 0; }
.nis2-home .nh-phone { display: none; }
.nis2-home .nh-sum { margin-left: auto; }
.nis2-home .nh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.nis2-home .nh-chips .rk2-chip { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }
.nis2-home .nh-lead { margin: 4px 0 12px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.nis2-home .nh-lead small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.nis2-home .nh-note { margin: 0 0 8px; }
.nis2-home .nh-zero { padding: 6px 0 2px; }
.nis2-home .nh-zero p { margin: 0 0 10px; }
.nis2-home .nh-list { list-style: none; margin: 0; padding: 0; }
.nis2-home .nh-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.nis2-home .nh-rk { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-navy-bg); color: var(--navy); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nis2-home .nh-row.is-hot .nh-rk { background: var(--navy); color: var(--white); }
.nis2-home .nh-row.is-later .nh-what b { font-weight: 600; color: var(--text-secondary); }
.nis2-home .nh-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nis2-home .nh-what a { color: inherit; text-decoration: none; }
.nis2-home .nh-what a:hover b { text-decoration: underline; }
.nis2-home .nh-what b { font-size: 14.5px; color: var(--text-primary); overflow-wrap: anywhere; }
.nis2-home .nh-what small { font-size: 12.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.nis2-home .nh-act { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; justify-content: flex-end; }
.nis2-home .nh-act .btn { white-space: nowrap; }
.nis2-home .nh-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.nis2-home .nh-big b { font-size: 30px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
/* 2026-10-17: the Maturity level card - the profile line under the title, the number in the Progress page's traffic light. */
.nis2-home .nh-profile { margin: -6px 0 10px; }
.nis2-home .nh-big b.tl-good { color: #1b7f4b; } .nis2-home .nh-big b.tl-mid { color: #8a6d00; } .nis2-home .nh-big b.tl-bad { color: var(--red); }
.nis2-home .nh-lvname { font-size: 15px; font-weight: 600; color: var(--navy); }
.nis2-home .nh-goal { margin: 0 0 4px; }
.nis2-home .nh-mini { list-style: none; margin: 0; padding: 0; }
.nis2-home .nh-mini a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 42px; gap: 8px; align-items: center; min-height: 28px; color: inherit; text-decoration: none; }
.nis2-home .nh-mini a:hover .nh-v { text-decoration: underline; }
.nis2-home .nh-mini i, .nis2-home .nh-fn .prog-fn-pill { font-style: normal; font-size: 12px; font-weight: 700; color: var(--navy); }
.nis2-home .nh-track { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--medium-gray); }
.nis2-home .nh-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--navy); }
/* The Progress page's traffic light (.mfill/.mval): the bars and their numbers say how far each function is from the target. */
.nis2-home .nh-fill.tl-good { background: var(--green); } .nis2-home .nh-fill.tl-mid { background: var(--amber); } .nis2-home .nh-fill.tl-bad { background: var(--red); }
.nis2-home .nh-v.tl-good { color: #1b7f4b; } .nis2-home .nh-v.tl-mid { color: #8a6d00; } .nis2-home .nh-v.tl-bad { color: var(--red); }
.nis2-home .nh-t3, .nis2-home .nh-t35 { position: absolute; top: -3px; bottom: -3px; width: 0; }
.nis2-home .nh-t3 { border-left: 2px solid var(--text-primary); }
.nis2-home .nh-t35 { border-left: 2px dashed var(--text-secondary); }
.nis2-home .nh-v { text-align: right; font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.nis2-home .nh-counts, .nis2-home .nh-pathfoot { margin: 10px 0 0; }
.nis2-home .nh-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 13.5px; }
.nis2-home .nh-kv:first-of-type { border-top: 0; }
.nis2-home .nh-kv b { color: var(--text-primary); font-variant-numeric: tabular-nums; text-align: right; flex: none; }
.nis2-home .nh-kv > span { min-width: 0; overflow-wrap: anywhere; }
.nis2-home .nh-next { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nis2-home .nh-row3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin: 0 0 16px; }
.nis2-home .nh-pathsub { margin: -4px 0 10px; }
.nis2-home .nh-pathn { font-size: 20px; color: var(--navy); }
.nis2-home .nh-bul { list-style: none; margin: 0; padding: 0; }
.nis2-home .nh-bul a { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 46px minmax(104px, 150px); gap: 10px; align-items: center; min-height: 44px; color: inherit; text-decoration: none; border-top: 1px solid var(--border-subtle); }
.nis2-home .nh-bul li:first-child a { border-top: 0; }
.nis2-home .nh-bul a:hover .nh-v { text-decoration: underline; }
.nis2-home .nh-fn { font-size: 13.5px; color: var(--text-primary); overflow-wrap: anywhere; }
.nis2-home .nh-bul .nh-track { height: 10px; border-radius: 5px; }
.nis2-home .nh-bul .nh-fill { border-radius: 5px; }
.nis2-home .nh-g { font-size: 12.5px; color: var(--text-secondary); display: flex; flex-direction: column; line-height: 1.3; }
.nis2-home .nh-g small { font-size: 11.5px; }
.nis2-home .nh-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; }
.nis2-home .nh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nis2-home .nh-legend i { display: inline-block; width: 0; height: 12px; }
.nis2-home .nh-lg3 { border-left: 2px solid var(--text-primary); }
.nis2-home .nh-lg35 { border-left: 2px dashed var(--text-secondary); }
.nis2-home .nh-lgv { width: 21px !important; height: 8px !important; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 33%, var(--amber) 33% 67%, var(--green) 67%); }
.nis2-home .nh-path .kfold { margin-top: 10px; }
.nis2-home .nh-gaplist { list-style: none; margin: 0; padding: 0; }
.nis2-home .nh-gaplist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.nis2-home .nh-gapmain { font-size: 13.5px; overflow-wrap: anywhere; }
.nis2-home .nh-gapmain .prog-gapid { margin-right: 6px; }
.nis2-home .nh-law { grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.nis2-home .nh-gapfoot { margin: 10px 0 0; }
/* 2026-10-17 (owner, Dev1): the home adapts to what is there (data-nh-layout busy / little / nogaps / neither in
   _nis2_home_queue.html). A list of one thing puts its button under the sentence; the key measures read
   "id + score / the requirement in two lines / the basis" in the narrow right-hand column; the DNSC MMS card
   carries the all-clear when nothing is below the threshold; the next documents to create are links. */
.nis2-home .nh-leadact { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 2px; }
.nis2-home .nh-gapsum { margin: -4px 0 8px; }
.nis2-home .nh-rail .nh-gapmain .prog-gapid { display: block; margin: 0 0 2px; font-weight: 600; }
.nis2-home .nh-rail .nh-gaptext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nis2-home .nh-rail .nh-gaplist li { padding: 9px 0; }
.nis2-home .nh-rail .nh-law { font-size: 11.5px; line-height: 1.35; }
.nis2-home .nh-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--tint-ok-bg); color: var(--tint-ok-ink); font-size: 13.5px; font-weight: 600; }
.nis2-home .nh-ok::before { content: "✓"; font-weight: 700; }
.nis2-home .nh-next a { color: var(--navy); text-decoration: none; }
.nis2-home .nh-next a:hover b { text-decoration: underline; }
.nis2-home .nh-next small { flex-basis: 100%; font-size: 12px; color: var(--text-secondary); }
.nis2-home .nh-nexth { margin: 12px 0 -4px; }
.nis2-home .nh-nexth + .nh-next { margin-top: 6px; }
.nis2-home .nh-zero .nh-ok { margin: 0 0 10px; }
/* 19.4.0 Express: the card under the maturity level - "N of M questions answered" while a session runs, the declared
   levels to prove after it. Not drawn at all for a workspace that never met Express. */
.nis2-home .nh-express__n { margin: 2px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nis2-home .nh-express__sub { margin: -4px 0 8px; overflow-wrap: anywhere; }
.nis2-home .nh-express__act { margin: 10px 0 0; }
/* 19.4.4 (D3): the "Guided self-assessment" card is always there - its purpose sentence, the questions answered while a
   session runs, one button. */
.nis2-home .nh-selfassess__why { margin: 2px 0 8px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  /* 2026-10-17: one column, and one order whatever the desktop arrangement - the list, the maturity level, (19.4.0
     Express: the Express card, 19.4.4: the guided self-assessment card and "To prove", both at 3 in this order), the key measures, the road, the DNSC MMS card, documents, risks (the columns step aside
     with display: contents). 19.4.2: the road to NIS2 compliance comes FIRST here (order 0, the list is 1); a phone
     puts it back at 5 below. */
  .nis2-home .nh-top { display: flex; flex-direction: column; gap: 16px; }
  .nis2-home .nh-main, .nis2-home .nh-rail { display: contents; }
  .nis2-home .nh-queue, .nis2-home .nh-phone { order: 1; }
  .nis2-home .nh-rail > [data-nh-card="level"] { order: 2; }
  .nis2-home [data-nh-card="selfassess"], .nis2-home [data-nh-card="express"] { order: 3; align-self: stretch; }
  .nis2-home .nh-gaps { order: 4; }
  .nis2-home .nh-path { order: 0; }
  .nis2-home [data-nh-card="workbook"] { order: 6; }
  .nis2-home [data-nh-card="documents"] { order: 7; }
  .nis2-home [data-nh-card="risks"] { order: 8; }
  .nis2-home .nh-row3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599.5px) {
  /* the phone form: its own markup - the road band, the first item with its one button, a two-tile row, then the rest */
  /* 19.4.2: the band (.nh-band, first in .nh-phone) carries the score and its target in place of the level tile; the
     full road card stays in the column, fifth, and the key measures stay */
  .nis2-home .nh-queue, .nis2-home .nh-rail > [data-nh-card="level"] { display: none; }
  .nis2-home .nh-phone { display: block; }
  .nis2-home .nh-path { order: 5; }
  .nis2-home .nh-top { gap: 12px; }
  .nis2-home .nh-phone > .card { margin: 0 0 12px; }
  .nis2-home .nh-first .btn { width: 100%; justify-content: center; min-height: 44px; }
  .nis2-home .nh-first .nh-lead { font-size: 17px; }
  .nis2-home .nh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
  .nis2-home .nh-tile { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface-panel); color: var(--text-secondary); text-decoration: none; font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; }
  .nis2-home .nh-tile b { font-size: 24px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
  .nis2-home .nh-then .nh-row { grid-template-columns: 26px minmax(0, 1fr); padding: 10px 0; min-height: 44px; }
  .nis2-home .nh-morerows { margin-top: 8px; }
  .nis2-home .nh-morerows summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--navy); font-weight: 600; }
  .nis2-home .nh-bul a { grid-template-columns: minmax(0, 1fr) 46px; grid-template-areas: "fn v" "track track" "g g"; gap: 4px 10px; padding: 8px 0; }
  .nis2-home .nh-bul .nh-fn { grid-area: fn; }
  .nis2-home .nh-bul .nh-track { grid-area: track; }
  .nis2-home .nh-bul .nh-v { grid-area: v; }
  .nis2-home .nh-bul .nh-g { grid-area: g; flex-direction: row; gap: 8px; align-items: baseline; }
  .nis2-home .nh-gaplist li { grid-template-columns: minmax(0, 1fr); }
  .nis2-home .nh-kv { flex-wrap: wrap; }
}
/* 2026-10-16 (owner): an uploaded logo sits BESIDE the organisation's name in the
   sidebar and the phone top bar, in the initials disc's place, instead of hiding
   the name. A wide logo shrinks to fit; the name keeps its two-line clamp. */
.brand-ident__logo {
  flex: none; display: block; width: auto; height: auto;
  max-width: 72px; max-height: 40px; object-fit: contain; border-radius: 6px;
}
.mtop__logo--beside { flex: none; max-width: 30vw; }

/* wow10 tidy_pages (2026-10-16), control page: the "Current scores" card is folded into the state card (board "One control", P9).
   One row at the foot of the card: the two scores with their sources and dates, then the previous run. Everything it carried stays. */
.cs-scores { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; border-top: 1px solid var(--medium-gray); padding-top: 12px; }
.cs-scores__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px 28px; align-items: start; }
.cs-scores__now, .cs-scores__prev { min-width: 0; }
.cs-scores .score-row { flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 0; }
.cs-scores .score-card { flex: 1 1 200px; min-width: min(120px, 100%); max-width: 100%; padding: 8px 12px; }
.cs-scores .score-card .big { font-size: 24px; line-height: 1.2; }
.cs-scores .score-card p { margin: 2px 0 0; }
.cs-scores .score-card time { display: block; margin-top: 6px; }
.cs-scores .previous-run { margin: 0; }
.cs-scores .previous-run h4 { font-size: 14px; }
.cs-scores .previous-run__table { max-width: none; }
.cs-scores > .note { margin: 10px 0 0; }
.cs-scores__now > p.small { margin: 0; }
@media (max-width: 900px) {
  .cs-scores__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .cs-scores { order: 3; }
  .cs-col--feeds { order: 4; }
  .cs-scores .score-card { flex-basis: 140px; }
}

/* wow10 tidy_pages (2026-10-16), the NIS2 Document register on the phone (board "Documents", option A): the first document row on the
   first screen. 1440 is unchanged (the fold below is always open from 600 px, its summary hidden; the short key words stay hidden).
   Same words, tighter: a cell is name / count and function chip / bar / two lines of key words; the moment sentence and the binder
   line share one closed fold; the explainer's lead sits under its title; the tiles keep their one row. */
.drk--s { display: none; }
.drband__sum { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; list-style: none; }
.drband__sum::-webkit-details-marker { display: none; }
.drband__sum::after { content: "\25B8"; margin-left: auto; color: var(--text-secondary); }
.drband__more[open] > .drband__sum::after { content: "\25BE"; }
.drband__sum:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
@supports selector(::details-content) {
  @media (min-width: 600px) {
    .drband__sum { display: none; }
    .drband__more::details-content { content-visibility: visible; }
  }
}
@media (max-width: 599.5px) {
  .drk--l { display: none; }
  .drk--s { display: inline; }
  .drband { padding: 8px 10px; margin-bottom: 10px; }
  .drstrip { gap: 6px; }
  .drcell__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm nm" "n fn" "bar bar" "k k"; align-items: center; gap: 1px 2px; padding: 6px 5px 5px; }
  .drcell__h { display: contents; }
  .drcell__h b { grid-area: nm; font-size: 13px; line-height: 1.25; }
  .drcell__h .drfn { grid-area: fn; justify-self: end; padding: 0 2px; }
  .drcell__n { grid-area: n; line-height: 1.2; white-space: nowrap; }
  .drcell__of--l { display: none; }
  .drcell__of--s { display: inline; margin-left: -2px; font-size: 14px; font-weight: 700; color: var(--navy); }
  .drcell__n b { font-size: 16px; }
  .drcell__bar { grid-area: bar; margin: 2px 0; }
  .drcell__k { grid-area: k; line-height: 1.25; }
  .drband__more[open] .drmoment { margin-top: 4px; }
  .drtiles { margin-bottom: 10px; }
  .drtile { padding: 5px 3px; }
  .drexplain > .kfold__s { row-gap: 0; }
  .drexplain .kfold__more { order: 2; }
  .drexplain .kfold__lead { order: 3; flex: 1 1 100%; font-size: 13px; }
}
/* 2026-10-16 (owner): My Company header on a phone */
/* The identity block read name, then the logo with "Salvează numele" beside it (the logo was centred against the
   name / button / description stack), then the description. Now the logo and the name share the first line, the Save
   button sits right under the name field, and the description runs under both. .ci-ident__who stops drawing a box
   (display: contents, a plain div with no role) so the form and the description become cells of the same two-column
   grid as the logo; the form keeps its own box, so its role, its fields and its action are untouched. Same phone
   boundary as the block above (640.5, so the pinned "(max-width: 640px)" prelude stays ONE block); desktop unchanged.
   A name longer than the field now ends in an ellipsis instead of being cut mid-letter. */
@media (max-width: 640.5px) {
  [data-ui-family="company"] .ci-ident { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px 14px; }
  [data-ui-family="company"] .ci-ident__who { display: contents; }
  [data-ui-family="company"] .ci-ident__name { grid-column: 2; }
  [data-ui-family="company"] .ci-ident__name h1 { flex: 1 1 100%; }
  [data-ui-family="company"] .ci-ident__who > .subtle { grid-column: 1 / -1; }
  [data-ui-family="company"] .ci-ident__input { text-overflow: ellipsis; }
}

/* 2026-10-17 (owner, Dev1): the Progress page, the dashboard's way. Four tiles (documentation, implementation, below
   target, exceptions) in a 2x2 block beside a compact DNSC MMS card - its verdict first, its three criteria as rows -
   both halves as tall as the taller one; the biggest gaps under the maturity by function; score evolution and the
   workspace activity side by side, the activity's full list a closed fold. */
.prog-summary > .prog-summary__card[data-workbook-assessment] { grid-column: 3 / -1; grid-row: 1 / span 2; }
.prog-summary > .prog-summary__card:nth-child(3):nth-last-child(2) { grid-column: 1 / 3; }
@media (max-width: 900px) {
  .prog-summary > .prog-summary__card[data-workbook-assessment],
  .prog-summary > .prog-summary__card:nth-child(3):nth-last-child(2) { grid-column: 1 / -1; grid-row: auto; }
}
.progress-page .prog-summary__value.tl-good { color: #1b7f4b; }
.progress-page .prog-summary__value.tl-mid { color: #8a6d00; }
.progress-page .prog-summary__value.tl-bad { color: var(--red); }
.progress-page [data-workbook-assessment] .prog-summary__value--verdict { margin: 10px 0 2px; font-size: 19px; }
.progress-page [data-workbook-assessment] .workbook-criteria { display: block; margin: 10px 0 8px; }
.progress-page [data-workbook-assessment] .workbook-criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 9px 0; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; background: none; }
.progress-page [data-workbook-assessment] .workbook-criterion:first-child { border-top: 0; }
.progress-page [data-workbook-assessment] .workbook-criterion h3 { grid-column: 1; grid-row: 1; margin: 0; font-size: 14.5px; }
.progress-page [data-workbook-assessment] .workbook-criterion p[data-criterion-target] { grid-column: 1; grid-row: 2; margin: 2px 0 0; padding: 0; border: 0; font-size: 12.5px; line-height: 1.4; }
.progress-page [data-workbook-assessment] .workbook-criterion p[data-criterion-target] b { display: inline; }
.progress-page [data-workbook-assessment] .workbook-criterion__result { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: right; }
.progress-page [data-workbook-assessment] .workbook-criterion__result strong { display: inline; font-size: 22px; }
.progress-page [data-workbook-assessment] .workbook-criterion__result span { display: block; font-size: 11.5px; line-height: 1.3; }
.progress-page [data-workbook-assessment] .workbook-criterion__state,
.progress-page [data-workbook-assessment] .workbook-criterion [data-overall-why] { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; line-height: 1.4; }
.progress-page [data-workbook-assessment] .workbook-criterion[data-state="ok"] .workbook-criterion__result strong { color: #1b7f4b; }
.progress-page [data-workbook-assessment] .workbook-criterion[data-state="bad"] .workbook-criterion__result strong { color: var(--red); }
.progress-page [data-workbook-assessment] .workbook-criterion[data-state="unknown"] .workbook-criterion__result strong { color: var(--text-secondary); }
.progress-page .prog-hist2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: var(--space-6, 24px); }
.progress-page .prog-hist2 > .prog-history { margin: 0; }
.progress-page .prog-nextsteps { margin-bottom: var(--space-6, 24px); }
.progress-page .prog-activity-fold { margin-top: 12px; }
.progress-page .prog-activity-fold > .prog-activity-all { margin-top: 10px; }
.progress-page .prog-activity-fold > .prog-activity-all > h3 { display: none; }
.progress-page .prog-tilebar { display: block; position: relative; height: 8px; margin: 10px 0 2px; }
.progress-page [data-workbook-assessment] .prog-summary__value--verdict + .muted.small { margin: 0 0 4px; }
/* the criteria rows say the count; the incomplete counts are the folds under them, the "why" of the overall score is
   the sentence under the verdict - neither repeats here */
.progress-page [data-workbook-assessment] .workbook-criterion:not([data-criterion="overall"]) .workbook-criterion__state,
.progress-page [data-workbook-assessment] .workbook-criterion [data-overall-why] { display: none; }
.progress-page [data-workbook-assessment] .prog-keydetails { display: inline-block; margin: 2px 20px 2px 0; vertical-align: top; }
.progress-page [data-workbook-assessment] .prog-keydetails[open] { display: block; margin-right: 0; }
.progress-page .prog-hist2 .prog-history__svg { min-width: 0; max-height: 340px; }
.progress-page .prog-hist2 .prog-history__svg text { font-size: 16px; }
.progress-page .prog-hist2 .prog-activity-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
@media (max-width: 1000px) {
  .progress-page .prog-hist2 { grid-template-columns: minmax(0, 1fr); }
  .progress-page .prog-hist2 .prog-history__svg { min-width: 560px; }
}

/* 2026-10-17 (owner, Dev1): the register row's document cell - the title line, then one wrapping line with the id, the
   functions, the measures, the language, the client document and the approver note. */
.drdoc__h { display: block; }
.drdoc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.drdoc__meta .reg-cdoc { display: inline-flex; width: auto; max-width: 100%; }
.drdoc__meta .reg-approver { display: inline; margin: 0; }
.drdoc__meta .drdoc__d { flex-basis: 100%; }

/* 2026-10-17 (owner, Dev1): the Ghid practic shows each stage's views small, beside the steps they show - the steps on
   the left, one or two views on the right, each opening full size; under 900 px they follow the steps. */
.gd-body--shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px 28px; align-items: start; }
.gd-body__shots { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gd-body__shots .gd-shot { margin: 0; }
.gd-shot__open { display: block; cursor: zoom-in; }
.gd-shot__open:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 900px) {
  .gd-body--shots { grid-template-columns: minmax(0, 1fr); }
  .gd-body__shots { max-width: 520px; }
}

/* 19.4.0 Express, lane E (spec step 4): the review page. One list of rows per section; a row is the id and the
   title, the two levels with their source line, the scan's view when it contradicts, and the four actions with a
   fold for the adjust controls. Phone: the actions wrap, 44 px targets. */
.ex-review { display: grid; gap: 16px; }
.ex-counts { margin: 0; }
.ex-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--tint-crit-bg); color: var(--tint-crit-ink); font-weight: 600; }
.ex-section .prog-functions__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ex-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ex-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; grid-template-areas: "head levels" "src src" "scan scan" "acts acts" "adjust adjust"; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.ex-row:first-child { border-top: 0; }
.ex-row__head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; min-width: 0; }
.ex-row__head .prog-gapid { font-weight: 700; }
.ex-row__title { color: var(--text-secondary); }
.ex-row__levels { grid-area: levels; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.ex-lv small { color: var(--text-muted); font-weight: 600; margin-right: 2px; }
.ex-lv b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--navy); }
.ex-lv__proven { color: #1b7f4b !important; }
.ex-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.ex-tag--proven { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.ex-tag--declared { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.ex-row__src { grid-area: src; margin: 0; color: var(--text-secondary); }
.ex-src--doc { color: var(--text-muted); }
.ex-src--doc::before { content: "· "; }
.ex-note { color: var(--text-muted); font-style: italic; }
q.ex-src { quotes: "„" "”"; font-style: italic; }
.ex-scan { grid-area: scan; margin: 0; padding: 6px 10px; border-left: 3px solid var(--red); background: var(--tint-crit-bg); color: var(--tint-crit-ink); border-radius: 0 6px 6px 0; font-size: 13px; font-weight: 600; }
.ex-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ex-act { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; cursor: pointer; }
.ex-adjust { grid-area: adjust; }
.ex-adjust > summary { cursor: pointer; color: var(--text-muted); }
.ex-adjust__body { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; padding: 8px 0 2px; }
.ex-adjust__body select { min-height: 36px; }
.ex-reason { display: grid; gap: 4px; flex: 1 1 320px; font-size: 13px; }
.ex-reason textarea { width: 100%; }
.ex-blockall { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.ex-fold > summary { cursor: pointer; color: var(--text-muted); margin: 4px 0; }
.ex-row--pick .ex-pick { grid-area: acts; display: grid; gap: 4px; }
.ex-submit { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0; background: var(--surface-page, #fff); border-top: 1px solid var(--border-subtle); }
@media (max-width: 599.5px) {
  .ex-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "levels" "src" "scan" "acts" "adjust"; }
  .ex-row__levels { white-space: normal; }
  .ex-act { min-height: 44px; }
  .ex-submit .btn { width: 100%; justify-content: center; min-height: 44px; }
}

/* 19.4.0 Express, lane F: the result's figures, the "De dovedit" rows and the Convert page. */
.ex-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.ex-stat { border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; background: var(--surface-panel); }
.ex-stat b { font-size: 26px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.ex-stat span { font-size: 12.5px; color: var(--text-muted); }
.ex-stat--declared { background: var(--tint-med-bg); } .ex-stat--declared b { color: var(--tint-med-ink); }
.ex-stat--proven { background: var(--tint-ok-bg); } .ex-stat--proven b { color: var(--tint-ok-ink); }
.ex-stat--open { background: var(--tint-crit-bg); } .ex-stat--open b { color: var(--tint-crit-ink); }
.ex-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ex-qlist { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 4px; }
.ex-adds { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.ex-fence { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--tint-med-bg); color: var(--tint-med-ink); font-weight: 600; }
.ex-tag--expired { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.ex-days { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.ex-row--expired .ex-row__head, .ex-row--expired .ex-row__levels { opacity: .7; }
.ex-acts--prove { grid-area: acts; }
@media (max-width: 900px) { .ex-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599.5px) { .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-actions .btn { width: 100%; justify-content: center; } }
/* ── 19.4.0 Express, lane D: steps 1-3 (start, documents, questions) ───────────────────────────────────────────
   Phone first: everything below is the single-column default and the wider layouts are `min-width` additions, so
   the product's one phone tier (max-width 640px) is not touched. Scoped to the .ex- classes of
   templates/express/{start,documents,question,_stepper}.html; tokens only, 44px tap targets. */
.ex-steps { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; gap: var(--space-2); flex-wrap: nowrap; }
.ex-step { flex: none; min-width: 0; }
.ex-step--current { min-width: 0; }
.ex-step__in { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-2);
  border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--surface-panel); color: var(--text-muted);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; text-decoration: none; min-width: 0; }
a.ex-step__in:hover { text-decoration: none; border-color: var(--navy); }
.ex-step__n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint-mute-bg); color: var(--tint-mute-ink); font-size: 12px; flex: none; }
.ex-step__t { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-step--current { flex: 1 1 auto; }
.ex-step--current .ex-step__in { border-color: var(--navy); color: var(--navy); background: var(--tint-navy-bg); }
.ex-step--current .ex-step__n { background: var(--navy); color: var(--white); }
.ex-step--current .ex-step__t { display: inline; }
.ex-step--done .ex-step__n { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.ex-main { min-width: 0; }
.ex-eyebrow { margin: 0 0 var(--space-1); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ex-h2 { margin: 0 0 var(--space-3); font-size: 22px; color: var(--navy); }
.ex-h3 { margin: var(--space-6) 0 var(--space-2); font-size: 16px; color: var(--navy); }
.ex-lead { margin: 0 0 var(--space-3); font-size: 15px; line-height: 1.5; color: var(--text-primary); }
.ex-hint { margin: var(--space-2) 0 var(--space-4); font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ex-card { margin-bottom: var(--space-4); }
.ex-card h3 { font-size: 15px; }
.ex-form { margin: 0; }
.ex-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-6); }
.ex-actions .btn { min-height: 44px; justify-content: center; }
.ex-error, .ex-notice { margin: 0 0 var(--space-4); padding: var(--space-3); border-radius: 8px; font-size: 14px; line-height: 1.45;
  background: var(--tint-med-bg); color: var(--tint-med-ink); }
.ex-error, .ex-notice--bad { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.ex-notice--ok { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.ex-missing { color: var(--text-muted); font-style: italic; }
.ex-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--tint-sky-bg); color: var(--tint-sky-ink); }
.ex-badge--key { background: var(--key-bg); color: var(--key-ink); }
.ex-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0 0 var(--space-3); }
.ex-fact dt { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ex-fact dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ex-count { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.ex-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.ex-fld { display: flex; flex-direction: column; gap: var(--space-1); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ex-fld input[type="text"], .ex-fld input[type="email"], .ex-story textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--text-primary);
  border: 1px solid var(--medium-gray); border-radius: 8px; background: var(--white); }
.ex-story textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.ex-story__tools { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.ex-story__tools:empty { display: none; }
.ex-dictate { min-height: 44px; }
.ex-dictate[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.ex-dictate__state { font-size: 13px; color: var(--text-muted); }
.ex-tick { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 44px; padding: var(--space-2) 0; cursor: pointer; font-size: 14px; line-height: 1.4; }
.ex-tick input, .ex-opt input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--action-fill); }
.ex-tick small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.ex-tick--cell { align-items: center; padding: var(--space-1) 0; }
.ex-docs { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.ex-doc { padding: var(--space-4); background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: 10px; scroll-margin-top: var(--space-8); }
.ex-doc--focus { border-color: var(--navy); box-shadow: 0 0 0 2px var(--tint-navy-bg); }
.ex-doc__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.ex-doc__title { margin: 0; font-size: 15px; color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.ex-doc__level { white-space: nowrap; }
.ex-doc__meta { margin: var(--space-2) 0; font-size: 12.5px; color: var(--text-muted); }
.ex-doc__up { margin: var(--space-2) 0 0; font-size: 13px; color: var(--tint-ok-ink); }
.ex-ticks { display: grid; grid-template-columns: minmax(0, 1fr); }
.ex-upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--medium-gray); }
.ex-upload .btn { min-height: 44px; }
.ex-upload input[type="file"] { min-width: 0; max-width: 100%; font-size: 13px; }
.ex-progress { margin: 0 0 var(--space-2); font-size: 14px; color: var(--text-primary); }
.ex-bar { height: 6px; margin-bottom: var(--space-4); border-radius: 999px; background: var(--tint-mute-bg); overflow: hidden; }
.ex-bar i { display: block; height: 100%; background: var(--action-fill); }
.ex-q__text { margin: 0 0 var(--space-4); font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--navy); }
.ex-quote { margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--medium-gray); background: var(--off-white);
  font-size: 14px; line-height: 1.5; color: var(--text-primary); overflow-wrap: anywhere; white-space: pre-wrap; }
.ex-quote::before { content: "\201E"; }
.ex-quote::after { content: "\201D"; }
.ex-factlist { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-3); }
.ex-factitem { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.ex-factitem:last-child { border-bottom: 0; padding-bottom: 0; }
.ex-factitem__ask { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.ex-factitem__val { margin: 2px 0 0; font-size: 15px; }
.ex-follow { margin: 0 0 var(--space-4); padding: 0; border: 0; min-width: 0; }
.ex-follow legend { padding: 0; margin-bottom: var(--space-2); font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.ex-opt { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 44px; padding: var(--space-2) var(--space-3); margin-bottom: var(--space-2);
  border: 1px solid var(--border-subtle); border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.ex-opt:has(input:checked) { border-color: var(--navy); background: var(--tint-navy-bg); }
.ex-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.ex-panel { align-self: start; font-size: 14px; }
.ex-panel h3 { margin: 0 0 var(--space-3); }
.ex-panel h4 { margin: var(--space-4) 0 var(--space-1); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.ex-panel__listen { margin: 0; line-height: 1.5; }
.ex-panel__list { margin: 0; padding-left: var(--space-4); display: grid; gap: var(--space-1); line-height: 1.45; }
.ex-panel__measures, .ex-panel__levels { list-style: none; padding-left: 0; }
.ex-panel__txt { color: var(--text-muted); font-size: 12.5px; }
.ex-panel code { font-size: 12.5px; }
@media (min-width: 641px) {
  .ex-step__in { padding: 0 var(--space-3); }
  .ex-step__t { display: inline; }
  .ex-step--current { flex: none; }
  .ex-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-fact--wide { grid-column: 1 / -1; }
  .ex-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-fields .ex-fld:last-child { grid-column: 1 / -1; }
  .ex-ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
}
@media (min-width: 1100px) {
  .ex-layout--panel { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .ex-layout--panel .ex-panel { position: sticky; top: var(--space-6); }
}
html[lang="en"] .ex-quote::before { content: "\201C"; }
html[lang="en"] .ex-quote::after { content: "\201D"; }
/* 19.4.0 Express, lane H: the consultant guide (/express/guide) and the Express demo card. One column of
   question blocks, each kept whole on a printed page; the tier vocabulary at the top, once. Phone: the
   blocks stack, 44 px targets for the profile links. Print: the shell, the profile links and the print
   button disappear and the page reads as a handout. */
.pf-demo__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.exg { display: grid; gap: 16px; }
.exg-counts { margin: 0; }
.exg-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exg-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: 999px; font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.exg-pill--on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.exg-tiers h2, .exg-q__theme { margin: 0 0 6px; }
.exg-tierlist, .exg-opts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.exg-tier { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle; }
.exg-tier--1 { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.exg-tier--2 { background: var(--tint-med-bg); color: var(--tint-med-ink); }
.exg-tier--3 { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.exg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.exg-q__no { margin: 0; }
.exg-q__ask, .exg-q__listen { margin: 6px 0; }
.exg-q__sub { margin: 14px 0 6px; font-size: 14px; color: var(--text-muted); }
.exg-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.exg-slot { padding-left: 12px; border-left: 3px solid var(--border-subtle); }
.exg-slot__ask { margin: 0 0 4px; font-weight: 600; }
.exg-opts { margin: 0; gap: 3px; }
.exg-q__measures { margin: 12px 0 0; overflow-wrap: anywhere; }
.exg-foot { margin: 0; }
@media (max-width: 599.5px) {
  .exg-pill { min-height: 44px; }
}
@media print {
  body:has(.exg) .sidebar, body:has(.exg) .mtop, body:has(.exg) .shell-help, .exg-noprint { display: none !important; }
  body:has(.exg) .shell, body:has(.exg) .shell-workspace, body:has(.exg) .main { display: block; margin: 0; padding: 0; }
  .exg .card { box-shadow: none; border: 1px solid #999; }
  .exg-q { break-inside: avoid; page-break-inside: avoid; }
  .exg-tier { border: 1px solid #666; background: none; color: #000; }
  .exg-pill--on { background: none; color: #000; }
}

/* 19.4.2 the road to NIS2 compliance, lane D (owner, 18 Oct, from approved mockups). From 600 px up the full card is the
   FIRST card of the NIS2 home: on the desktop it leads the left column (order within the .nh-main flex column; the
   markup is not moved or repeated), between 600 and 1100 px the one-column order above puts it first (order 0, the
   list 1). Under 600 px a short band (.nh-band, the first thing in .nh-phone) opens the page and links to the card,
   which is fifth there. The desktop rule sits in its own min-width query so it never outranks the two above. */
@media (min-width: 1100.5px) {
  .nis2-home .nh-main > .nh-path { order: -1; }
}
.nis2-home .nh-pathtarget { margin: -4px 0 6px; overflow-wrap: anywhere; }
.nis2-home .nh-pathtarget + .nh-pathsub { margin-top: 0; }
.nis2-home .nh-pathtarget + .nh-bul { margin-top: 10px; }
.nis2-home .nh-band { margin: 0; }
.nis2-home .nh-band .nh-big { margin: 0 0 10px; gap: 4px 10px; }
.nis2-home .nh-band__score span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.nis2-home .nh-band__bar { margin: 0 0 12px; }
.nis2-home .nh-band__counts { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-primary); overflow-wrap: anywhere; }
@media (max-width: 599.5px) {
  .nis2-home .nh-phone > .nh-band { margin: 0 0 12px; }
  .nis2-home .nh-band .prog-functions__head { margin-bottom: 2px; align-items: center; }
  .nis2-home .nh-band .nh-band__link { min-height: 44px; padding: 0 2px; font-size: 14px; font-weight: 600; color: var(--navy); }
  .nis2-home .nh-band .btn { width: 100%; justify-content: center; min-height: 44px; }
}
/* 19.4.2 document page fixes, lane B */
/* The quality review and the source documents now sit in the Adjust tab,
   under the chat; a jump to either lands with a little air above it. */
#ws-qual,#ws-sources{scroll-margin-top:64px}
/* The Controls tab opens with one sentence saying what it is for. */
.wsx-ctrlsintro{overflow-wrap:anywhere}
.wsx-ctrlsintro[hidden]{display:none}
/* Each control row prints its numbers beside the coloured label (they used to
   sit only in a hover tooltip). */
.wsx-cnum{font-size:10.5px;line-height:1.35;color:var(--text-secondary);
  font-variant-numeric:tabular-nums;min-width:0;overflow-wrap:anywhere}
[data-ui-family="documents"] .wsx-cnum{font-size:13px}
/* The Approve tab keeps the quality score and one link to the review. */
.wsx-qlink{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;
  padding:10px 13px;border-top:1px solid var(--medium-gray);
  font-size:11.5px;color:var(--text-secondary)}
.wsx-qlink__t{font-family:var(--font-display);font-size:11px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--text-secondary)}
.wsx-qlink .n{font-size:10px;background:var(--light-gray);border-radius:10px;
  padding:1px 7px;font-weight:600;color:var(--text-secondary)}
.wsx-qlink__v{font-size:15px;font-weight:800;color:var(--navy);
  font-variant-numeric:tabular-nums}
.wsx-qlink__v[hidden]{display:none}
.wsx-qlink__go{margin-left:auto;display:inline-flex;align-items:center;
  min-height:44px;padding:0 4px;font-weight:700;color:var(--teal-dark);
  text-decoration:none}
.wsx-qlink__go:hover{text-decoration:underline}
.wsx-qlink__go:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
[data-ui-family="documents"] :is(.wsx-qlink,.wsx-qlink__t,.wsx-qlink .n){font-size:13px}
/* Phones and narrow windows: the fixed bottom bar already carries the four
   tabs, so the strip inside the card is hidden (the radios still drive the
   panes). Same 1100px the bar itself appears at. The radios leave the tab
   order too: a focus stop with nothing visible is worse than none. */
@media(max-width:1100px){
  .wsx2-tabbar{display:none}
  .wsx2-r{visibility:hidden}
}
/* company facts selection */
/* 2026-10-18 (owner decisions, mockup company-facts-select): what an upload
   found (#ci-found) and what Check facts proposes read as one list of facts
   to tick and add (partials/company_facts_select.html). Grouped like the
   profile; a row is the tick, the fact (label, value, where it came from)
   and a NEW / DIFFERENT tag. On a phone the tag sits above the fact and
   every control is a 44px target. */
.ci-found { margin: 0 0 20px; min-width: 0; }
.ci-found__title { margin: 0 0 4px; font-size: 18px; line-height: 1.35; color: var(--navy); overflow-wrap: anywhere; }
.cfs { min-width: 0; font-size: 15px; line-height: 1.5; }
.cfs__sub { margin: 0 0 12px; max-width: 78ch; font-size: 13px; color: var(--text-secondary); }
.cfs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 4px; font-size: 13px; }
.cfs__ticks { display: inline-flex; align-items: center; gap: 6px; }
.cfs__count { margin-left: auto; color: var(--text-secondary); }
.cfs__link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--teal-dark); cursor: pointer; text-decoration: none; }
.cfs__link:hover { text-decoration: underline; }
.cfs__link:focus-visible, .cfs__quote > summary:focus-visible, .cfs__same > summary:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cfs__gtitle { margin: 14px 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-secondary); }
.cfs__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start;
  padding: 10px 0; border-top: 1px solid var(--medium-gray); }
.cfs__row--read { grid-template-columns: minmax(0, 1fr) auto; }
.cfs__hit { display: flex; align-items: flex-start; min-width: 44px; min-height: 44px; padding-top: 1px; cursor: pointer; }
.cfs__tick { width: 20px; height: 20px; margin: 0; accent-color: var(--action-fill); cursor: pointer; }
.cfs__body { min-width: 0; }
.cfs__field { display: block; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
label.cfs__field { cursor: pointer; }
.cfs__value { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cfs__value[hidden], .cfs__editor[hidden] { display: none; }
.cfs__editor { display: grid; gap: 4px; margin: 4px 0; }
.cfs__editor textarea, .cfs__editor input { box-sizing: border-box; width: 100%; min-height: 44px; font: inherit; }
.cfs__now { margin: 2px 0; font-size: 13px; color: var(--red); overflow-wrap: anywhere; }
.cfs__now s { color: var(--text-secondary); }
.cfs__warn { margin: 2px 0; font-size: 12.5px; color: var(--red); }
.cfs__src { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 12px;
  color: var(--text-secondary); overflow-wrap: anywhere; }
.cfs__src .cfs__link { min-height: 28px; font-size: 12px; }
.cfs__fine { margin: 2px 0; font-size: 12px; color: var(--text-secondary); }
.cfs__quote { margin: 2px 0 0; font-size: 12.5px; }
.cfs__quote > summary { width: max-content; max-width: 100%; color: var(--teal-dark); font-weight: 600; cursor: pointer; }
.cfs__quote blockquote { margin: 6px 0; padding-left: 12px; border-left: 2px solid var(--medium-gray);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.cfs__why { margin: 4px 0; overflow-wrap: anywhere; }
.cfs__tag { align-self: start; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; white-space: nowrap; }
.cfs__tag--new { background: var(--tint-ok-bg); color: var(--tint-ok-ink); }
.cfs__tag--different { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.cfs__tag--same { background: var(--tint-mute-bg); color: var(--tint-mute-ink); }
.cfs__same { margin: 10px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.cfs__same > summary { list-style: none; cursor: pointer; }
.cfs__same > summary::-webkit-details-marker { display: none; }
.cfs__same > summary .cfs__link { display: inline; min-height: 0; }
.cfs__same[open] > summary { margin-bottom: 6px; }
.cfs__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--medium-gray); }
.cfs__foot .btn { min-height: 44px; }
.cfs__note { margin: 10px 0 0; max-width: 78ch; font-size: 12.5px; color: var(--text-secondary); }
.cfs__status { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.cfs__status:empty { display: none; }
.cfs-done { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--tint-ok-bg);
  color: var(--tint-ok-ink); overflow-wrap: anywhere; }
.cfs-done--err { background: var(--tint-crit-bg); color: var(--tint-crit-ink); }
.cfs-done:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cfs-done__msg { margin: 0; font-weight: 600; }
.cfs-done__meter { display: grid; gap: 2px; margin: 10px 0 0; color: var(--text-primary); }
.cfs-done__l { font-size: 12.5px; color: var(--text-secondary); }
.cfs-done__bar { display: block; height: 8px; border-radius: 4px; background: var(--surface-panel); }
.cfs-done__bar i { display: block; height: 8px; border-radius: 4px; background: var(--action-fill); }
.cfs-done__hist { margin: 8px 0 0; font-size: 13px; color: var(--text-primary); }
.ci-profile__prev { overflow-wrap: anywhere; }
.ci-found > .cfs-done:last-child { margin-bottom: 0; }
/* The page family sets every paragraph and label to 15px; the list's
   secondary lines (what is in the profile now, where it came from, the
   notes) stay at the family's small size, as in the mockup. */
.cfs :is(.cfs__sub, .cfs__now, .cfs__warn, .cfs__fine, .cfs__note, .cfs__why, .cfs__src, .cfs__status),
.cfs-done .cfs-done__hist { font-size: 13px; line-height: 1.5; }
@media (max-width: 599.5px) {
  .cfs__row { grid-template-columns: 44px minmax(0, 1fr); }
  .cfs__row--read { grid-template-columns: minmax(0, 1fr); }
  .cfs__hit { grid-row: 1 / span 2; }
  .cfs__tag { grid-column: -2; grid-row: 1; justify-self: start; }
  .cfs__body { grid-column: -2; grid-row: 2; }
  .cfs__count { flex-basis: 100%; margin-left: 0; }
  .cfs__link, .cfs__src .cfs__link { min-height: 44px; }
  .cfs__quote > summary { display: flex; align-items: center; min-height: 44px; }
  .cfs__same > summary { min-height: 44px; }
  .cfs__foot .btn { width: 100%; justify-content: center; }
}

/* 19.4.6 filing: the incident page. The three report columns share the width evenly (the --w geometry stays on the markup for the bars);
   the DORA explanation is one dotted line that the phone folds behind "More"; the affected services are a list; a missing client
   notification is a warning line; a supplier the summary names is one click. */
.inc-due__more { display: none; }
.inc-due__more > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--action-fill); }
.inc-due__more > p { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 600px) { .inc-due__more { display: block; } }
.inc-svcs__list { margin: 4px 0 0; padding-left: 18px; }
.inc-warn { margin: 0 0 14px; padding: 8px 12px; border-left: 4px solid var(--tint-high-ink); border-radius: 8px; background: var(--tint-high-bg); color: var(--tint-high-ink); font-size: 13px; }
.inc-warn a { color: inherit; font-weight: 600; }
.inc-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.inc-suggest__form { display: inline; margin: 0; }
/* 19.4.6 (docs): a proposal card shows a Markdown table as a small table, and the
   maturity reference of a DORA page as a muted line. */
.wsx-mdtbl{border-collapse:collapse;font-size:12px;margin:4px 0;font-weight:400;text-decoration:none}
.wsx-mdtbl th,.wsx-mdtbl td{border:1px solid var(--border-subtle);padding:2px 6px;text-align:left;vertical-align:top}
.wsx-mdtbl th{background:var(--light-gray);font-weight:700}
.ws-mref,.wsx-mref{color:var(--text-muted);font-size:11.5px;font-weight:400}

/* 2026-10-19: the findings register inside Remediation (templates/_findings_panel.html). Compact rows: the update
   forms sit in a closed disclosure under the finding, so a row is one line of facts and not a form. */
.rr-findings .rr-fx-actions { margin-top: 6px; font-weight: 400; }
.rr-findings .rr-fx-more > summary { cursor: pointer; list-style: none; display: inline-block; }
.rr-findings .rr-fx-more[open] { margin-top: 6px; }
.rr-findings .rr-fx-more .rr-acts, .rr-findings .rr-fx-more .rr-form { margin-top: 6px; flex-wrap: wrap; }
.rr-findings .rr-fx-more .rr-form--wide { display: flex; flex: 1 1 100%; }
.rr-findings .rr-fx-more .rr-form--wide .rr-in { min-width: 0; }
.rr-findings .rk2-table th[scope="row"] { font-weight: 600; min-width: 200px; max-width: 340px; white-space: normal; }
.rr-findings .rk2-table td, .rr-findings .rk2-table .rk2-date { white-space: normal; }
.rr-findings .rk2-table td.rk2-id { white-space: nowrap; }
.rr-findings .rr-note { margin: 10px 14px 4px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--tint-ok-bg); border-radius: 4px; }
.rr-findings .rr-addform { display: grid; gap: 10px; max-width: 600px; }
.rr-findings .rr-addform label { display: grid; gap: 4px; font-size: 0.9em; }
.rr-findings .rr-addform textarea, .rr-findings .rr-addform input[type="text"], .rr-findings .rr-addform input[type="date"], .rr-findings .rr-addform select { width: 100%; }
.rr-findings .rr-addform .rr-check { display: flex; gap: 8px; align-items: center; }
.rr-findings .rr-addform .rr-check input { width: auto; }
.rr-views { margin: 10px 0 14px; }
/* DORA records: the findings on the framework, read from the findings register, under the framework reviews. */
#framework-findings .rk2-reccards { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
#framework-findings .rk2-reccard { max-width: none; }
