/* Sign-in and staff screens (W-2). Only tokens from design-tokens.css (tests/test_home.py R14, R45);
   body typography and the focus ring live in base.html. No web fonts, no external assets. */

.auth {
  box-sizing: border-box; min-height: 100vh;
  display: grid; place-content: center; justify-items: center; gap: var(--s-6);
  padding: var(--s-8) var(--s-4);
  background-image: radial-gradient(48rem 28rem at 50% -10rem, var(--accent-soft), transparent 70%);
  background-repeat: no-repeat;
}
.auth-brand { margin: 0; font-weight: var(--fw-heading); letter-spacing: -0.01em; }
.auth-card { box-sizing: border-box; width: min(92vw, 26rem); }
.auth-card h1 { margin: 0 0 var(--s-5); font-size: var(--t-xl); letter-spacing: -0.02em; }
/* Zero specificity: a component on a paragraph (an alert, a hint) keeps its own colour and margin. */
:where(.auth-card p) { margin: 0 0 var(--s-4); color: var(--text-secondary); }

.aside { margin-top: var(--s-5); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
/* The QR keeps segno's own width and height: it has no viewBox, so CSS sizing would crop it. */
.qr { display: grid; place-items: center; margin-bottom: var(--s-4); }
.secret { font-family: var(--font-mono); font-size: var(--t-sm); word-break: break-all; color: var(--text-primary); }

/* ── Staff pages (W-2 Task 12): top bar, content width, cards, forms ── */
.staff-wrap { max-width: 1120px; margin: 0 auto; padding: var(--s-4) var(--s-6); }
/* The interviewer panel takes more room than the other staff screens (W-39 R23). */
.staff-wrap-wide { max-width: 1440px; }
/* The top bar belongs to the window: edge to edge on every staff page, so brand and menu never jump
   between a narrow page and the wide panel. */
.staff-top { padding-inline: var(--s-6); }
/* Inter keeps its text cut at every size on the staff and sign-in screens: a question at 20 px is spaced as
   text, not as a headline. The public home keeps the automatic cut for its large title (W-55 R12). */
.staff-top, .staff-wrap, .auth { font-optical-sizing: none; }
/* A full staff screen has many headings: one step lighter than the browser bold, same colour; a long
   unbroken name breaks instead of widening the page. */
:where(.staff-wrap) :where(h1, h2, h3) { font-weight: var(--fw-heading); overflow-wrap: anywhere; }
/* Bold text inside a staff screen takes the weight of a heading, never the browser bold (W-55 R8). */
:where(.staff-wrap) :where(strong, b) { font-weight: var(--fw-heading); }
.staff-me { color: var(--text-secondary); overflow-wrap: anywhere; }
.staff-card { margin-block: var(--s-4); }
.form-narrow { max-width: 420px; }
.form-wide { max-width: 720px; }

/* ── Staff home (W-42): the next step, the interviews at each step, blocks side by side. Layout only:
   every piece is a component. min(100%, …) lets a column shrink below its floor on a phone. ── */
.home-stack { display: grid; justify-items: start; gap: var(--s-3); }
.home-stack > * { margin: 0; }
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: var(--s-2); margin: var(--s-4) 0; padding: 0; list-style: none; }
.home-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s-4); align-items: start; margin-block: var(--s-4); }
/* One row of a block: title, state, a note that takes the room left, and the action at the end. */
.home-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; overflow-wrap: anywhere; }
.home-meta { margin-right: auto; color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }

/* ── Your account (W-45): who the person is on the left, the folding blocks stacked on the right.
   Layout only: every piece is a component. ── */
.account-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-4); align-items: start; margin-block: var(--s-4); }
@media (max-width: 760px) { .account-columns { grid-template-columns: minmax(0, 1fr); } }
/* Zero specificity: a component on a paragraph (a hint, an error) keeps its own margin and colour. */
:where(.account-columns p) { margin: 0; }
.account-stack, .account-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.account-form { margin: 0; }
/* One fact per line: the column is narrow and the sentence of the role is long. A long e-mail breaks
   instead of widening the page (X9): minmax(0, 1fr) lets the column shrink, not the word inside it. */
.account-facts { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
/* The note beside the title of a block sits at the far end, next to its arrow. */
.account-side { margin-left: auto; }
.account-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-3) var(--s-4); align-items: start; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.account-sessions { display: grid; gap: var(--s-2); margin: 0; list-style: none; }
.account-sessions li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); overflow-wrap: anywhere; }
.account-sessions li > :first-child { margin-right: auto; }

/* ── Users (W-43): the invitation in three steps. The marks follow the form without a script: the step
   being filled takes the accent and a filled one goes quiet, as in the stepper; a field the server refused
   keeps step 1 open; a browser without :has() keeps the three numbers. ── */
.users-steps, .demo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-4) var(--s-6); align-items: start; margin: var(--s-4) 0 0; }
.users-step, .demo-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-content: start; }
.users-step-title, .demo-step-title { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--t-base); }
.users-mark, .demo-mark { flex: none; }
/* New demo interview (W-51) shares the layout above. The title of its step is a label, not a heading: it takes
   the weight of one. Its marks stay numbers. */
.demo-step-title { font-weight: var(--fw-heading); }
.users-steps:has(.users-step-who input:invalid) .users-step-who .users-mark,
.users-steps:has(.users-step-who [aria-invalid="true"]) .users-step-who .users-mark,
.users-steps:not(:has(.users-step-who input:invalid)):not(:has(.users-step-who [aria-invalid="true"])):not(:has(.users-roles input:checked)) .users-step-role .users-mark,
.users-steps:not(:has(.users-step-who input:invalid)):not(:has(.users-step-who [aria-invalid="true"])):has(.users-roles input:checked) .users-step-send .users-mark { color: var(--text-on-accent); background: var(--accent); border-color: transparent; }
.users-steps:not(:has(.users-step-who input:invalid)):not(:has(.users-step-who [aria-invalid="true"])) .users-step-who .users-mark,
.users-steps:has(.users-roles input:checked) .users-step-role .users-mark { color: var(--text-on-accent); background: var(--text-secondary); border-color: transparent; }
.users-roles { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.users-role-card { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-2) var(--s-3); border: 1px solid var(--border-default); border-radius: var(--r-sm); cursor: pointer; }
.users-role-card:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); }
.users-roles[aria-invalid="true"] .users-role-card { border-color: var(--danger); }
.users-role-name { display: block; font-weight: var(--fw-medium); }
/* What a role can do, under its name. The size of a hint in the secondary grey: on the wash of the chosen card
   the grey of a hint does not reach 4.5 to 1. */
.users-role-they { font-size: var(--t-xs); letter-spacing: var(--ls-sm); color: var(--text-secondary); }
.users-what-happens { display: grid; gap: var(--s-1); margin: 0; padding-left: var(--s-5); font-size: var(--t-sm); letter-spacing: var(--ls-sm); color: var(--text-secondary); }
.users-send { display: flex; }
/* The figures on top jump to each block; one person per row in the blocks that are not a table. */
/* The people by status (W-52): everybody in a box of its own, then one segment per status, as wide as its share
   of the people (macro share). A segment with people is a link on the wash of its status, with its figure in
   that colour; a segment in zero is plain text at its smallest width. */
.users-strip { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }
.users-strip a { color: var(--text-primary); text-decoration: none; }
.users-strip a:hover { border-color: var(--border-strong); }
.users-bar { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: var(--s-2); min-width: min(100%, 160px); margin: 0; padding: 0; list-style: none; }
.users-segment { display: flex; flex: var(--share) 1 0; min-width: min(100%, 160px); }
.users-segment-box { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); min-width: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--border-default); border-radius: var(--r-md); }
.users-count { font-size: var(--t-xl); font-weight: var(--fw-heading); font-variant-numeric: tabular-nums; }
.users-status { font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.users-segment-waiting a { background: var(--accent-soft); border-color: transparent; }
.users-segment-waiting a .users-count { color: var(--accent); }
.users-segment-active a { background: var(--info-soft); border-color: transparent; }
.users-segment-active a .users-count { color: var(--info); }
.users-segment-deactivated a { background: var(--danger-soft); border-color: transparent; }
.users-segment-deactivated a .users-count, .users-segment-deactivated a svg { color: var(--danger); }
.users-segment-deactivated a svg { flex: none; align-self: center; margin-left: auto; }
.users-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-block: var(--s-4); }
:where(.users-blocks p) { margin: 0; }
.users-person { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-6); }
.users-person + .users-person { padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }
.users-who { flex: 1 1 280px; display: grid; gap: var(--s-1); min-width: 0; overflow-wrap: anywhere; }
.users-do { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2); }
.users-more { flex: 1 1 100%; }
.users-more > summary { width: fit-content; margin-bottom: var(--s-2); font-size: var(--t-sm); letter-spacing: var(--ls-sm); color: var(--text-secondary); cursor: pointer; }
.users-name { font-weight: var(--fw-medium); }
.users-email { display: block; font-weight: var(--fw-regular); overflow-wrap: anywhere; }
.users-when { white-space: nowrap; }
/* A column title that sorts: an arrow says which way; the sorted one takes the accent. The tables of the
   catalog and the list of interviews sort on the same convention (D-38) and share these rules. */
.users-sort-link, .catalog-sort-link, .interviews-sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.users-sort-link::after, .catalog-sort-link::after, .interviews-sort-link::after { content: " ↕"; content: " ↕" / ""; color: var(--text-tertiary); }
.users-sort[aria-sort="ascending"] .users-sort-link::after, .catalog-sort[aria-sort="ascending"] .catalog-sort-link::after, .interviews-sort[aria-sort="ascending"] .interviews-sort-link::after { content: " ↑"; content: " ↑" / ""; color: var(--accent); }
.users-sort[aria-sort="descending"] .users-sort-link::after, .catalog-sort[aria-sort="descending"] .catalog-sort-link::after, .interviews-sort[aria-sort="descending"] .interviews-sort-link::after { content: " ↓"; content: " ↓" / ""; color: var(--accent); }
/* Interviews (W-57): the legend of the list and its search share a line, the search at the far end; where the
   two do not fit, the search goes under the legend. It never grows past 22rem; it only shrinks to the room
   there is. Layout only. */
.interviews-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.interviews-search { display: flex; flex: 0 1 22rem; gap: var(--s-2); min-width: 0; }
.interviews-search-box { flex: 1 1 auto; min-width: 0; }
/* Two short sentences that fit on one line beside the search; the measure would break them 13 px short. */
.interviews-legend { max-width: none; }
.interviews-found { margin: 0 0 var(--s-3); }
/* Manage: the wide row of a person shows only while the address points at that person. No script. */
.users-manage { display: none; }
.users-person-rows:target .users-manage { display: table-row; }
.users-manage-cell { background: var(--bg-glass-strong); }
/* The table is wider than its scroller on a phone: the wide row keeps the width of what is visible and stays in view. */
.users-scroll { container-type: inline-size; }
.users-people { min-width: 640px; }
.users-manage-box { position: sticky; left: var(--s-3); box-sizing: border-box; width: calc(100cqw - 2 * var(--s-3)); max-width: 100%; }
.users-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-3) var(--s-6); align-items: start; margin-bottom: var(--s-3); }
.users-action { display: grid; gap: var(--s-1); justify-items: start; }

/* ── Users (W-2 Task 12): table scroller, sessions list, manual link, hidden labels ── */
/* Positioned: the visually hidden labels of a table stay inside its scroller, not on the page. */
.table-scroll { overflow-x: auto; position: relative; }
.users-sessions { margin: 0; padding-left: var(--s-4); }
/* The role form holds a select and a button: wrapped, the pair adds a line to every row. */
.users-role { flex-wrap: nowrap; }
.manual-link { margin-top: var(--s-2); font-family: var(--font-mono); word-break: break-all; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Catalog (W-3): breadcrumbs, field layout, actions ── */
.catalog-trail ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.catalog-trail li + li::before { content: "›"; margin-right: var(--s-2); color: var(--text-tertiary); }
.catalog-trail a { color: var(--text-secondary); }
.catalog-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
/* A form of the engine fills its card (W-51): every piece takes a whole row, and the number fields that follow
   one another share one, each as wide as the rest allows. min(100%, …) lets one shrink below its floor on a
   phone; min-width lets a long option shrink its select instead of widening the page. */
.catalog-fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-4); }
.catalog-fields > * { flex: 1 1 100%; min-width: 0; }
.catalog-fields > .catalog-field-number { flex-basis: min(100%, 200px); }
/* The levels of a rubric (W-51, W-52): one box per score. Its mark at the left, in the colour of its step,
   then the label and, twice as wide, its description. The fieldset keeps no border of its own and may shrink. */
.catalog-levels { min-width: 0; margin: 0; padding: 0; border: 0; }
.catalog-levels > legend { margin-bottom: var(--s-3); padding: 0; }
.catalog-level-group { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-2) var(--s-4); align-items: start; }
.catalog-level-group + .catalog-level-group { margin-top: var(--s-3); }
.catalog-level-mark { justify-self: start; }
@media (max-width: 760px) { .catalog-level-group { grid-template-columns: minmax(0, 1fr); } }
/* Save, the status button and the notice on one row. Baseline: inside a stacked form, components.css gives
   each button a top margin the notice does not have. */
.catalog-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); }

/* ── Catalog (W-44, D-37): one screen per module. The tree on the left and the open node on the right;
   one above the other on a narrow screen. Layout only: every piece is a component. ── */
.catalog-structure { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s-4); align-items: start; margin-block: var(--s-4); }
.catalog-structure > :only-child { grid-column: 1 / -1; }   /* a new module has no tree yet */
@media (max-width: 900px) { .catalog-structure { grid-template-columns: minmax(0, 1fr); } }
.catalog-tree > :first-child, .catalog-detail > :first-child { margin-top: 0; }
.catalog-tree-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.catalog-tree-inner { margin: var(--s-1) 0 var(--s-2) var(--s-3); padding-left: var(--s-2); border-left: 1px solid var(--border-subtle); }
.catalog-tree-head { display: flex; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) var(--s-2); font-size: var(--t-xs); letter-spacing: var(--ls-sm); color: var(--text-tertiary); }
/* A row of the tree is a link: title, a note when it is inactive, and its figure at the far end. */
.catalog-node { display: flex; align-items: baseline; gap: var(--s-2); padding: var(--s-1) var(--s-2); border: 1px solid transparent; border-radius: var(--r-sm); color: var(--text-primary); text-decoration: none; }
.catalog-node:hover { border-color: var(--border-strong); }
.catalog-node[aria-current] { border-color: var(--accent-ring); background: var(--accent-soft); }
.catalog-node-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.catalog-node-note, .catalog-node-figure { flex: none; font-size: var(--t-sm); letter-spacing: var(--ls-sm); color: var(--text-secondary); }
/* After the two above: an empty active subcategory keeps its orange. */
.catalog-warn { color: var(--warning); }
/* Shown by catalog.js from the first edit; the server draws it already shown on a refused save. */
.catalog-unsaved { font-size: var(--t-sm); letter-spacing: var(--ls-sm); color: var(--warning); }
/* A path or a title without spaces breaks instead of widening the page (breadcrumbs, sentences). */
.catalog-detail { min-width: 0; overflow-wrap: anywhere; }
/* Not inside the scroller of a table: there a short word (a column title, a status) stays whole and the
   scroller takes what does not fit. */
:where(.catalog-detail) .table-scroll { overflow-wrap: normal; }
.catalog-heading, .catalog-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
:where(.catalog-heading) :where(h2, h3) { margin: 0; }
/* A counted line under `New subcategory` (W-53 R44): the number in its pill and the sentence beside it, which
   wraps without going under the pill. It is a hint of the components with room above. */
.catalog-count { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); }
/* A hint has no margin: the last counted line would touch the table, whose caption would read as one more. */
.catalog-count + .table-scroll { margin-top: var(--s-4); }

/* ── Catalog (W-44 slice 2, W-53): how the score is built, in columns, and the rows shared out in proportion
   that the recommendation draws with: the macro `share` gives each part its proportion (--share) and the part
   grows by it; a part and the tick under it share one minimum. ── */
.catalog-score { margin-block: var(--s-4); }
.catalog-score > :first-child { margin-top: 0; }
.catalog-weights { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-sm); color: var(--text-secondary); }
/* After the one above: a total that is not 100 keeps its colour. */
.catalog-danger { color: var(--danger); }
/* The columns (W-53): one per category that carries a weight, all the same width; what does not fit goes to
   another row and nothing scrolls sideways. A column is one link that stacks its weight, its whole title, its
   active questions and a foot slot. The grid stretches the list item, the item is a flex box and the link
   fills it: the weights line up at the top and the questions at the bottom of a row, whatever each title takes.
   130 px: the longest seed title, 101.6 px, plus 26 of padding and border; the walk decides the number. */
.catalog-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 2px; margin: var(--s-2) 0; padding: 0; list-style: none; }
.catalog-columns > li { display: flex; min-width: 0; }
.catalog-column { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--s-2); min-width: 0; padding: var(--s-3); border: 1px solid transparent; border-radius: var(--r-xs); color: var(--text-primary); background: var(--bg-glass-strong); text-decoration: none; }
/* An inactive category, after the rule above: a dashed outline in a neutral colour, never the danger one. */
.catalog-column-off { border: 1px dashed var(--border-strong); color: var(--text-secondary); background: transparent; }
.catalog-column:not([aria-current]):hover { border-color: var(--border-strong); }
/* The colour only: an inactive column that is the open one keeps its dashes. */
.catalog-column[aria-current] { border-color: var(--accent); }
/* Inwards: the columns are 2 px apart and a ring outside would sit on the neighbours. Well inside, so a strip
   of ground separates it from the border: flush, it reads as the border of the open column. */
.catalog-column:focus-visible { outline-offset: -5px; }
.catalog-column-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.catalog-column-label { font-size: var(--t-xs); letter-spacing: var(--ls-sm); color: var(--text-secondary); }
.catalog-column-weight { font-size: var(--t-xl); font-weight: var(--fw-heading); font-variant-numeric: tabular-nums; }
.catalog-column-title { min-height: var(--s-10); font-size: var(--t-sm); letter-spacing: var(--ls-sm); overflow-wrap: anywhere; }
.catalog-column-questions { margin-top: auto; }
/* No colour of its own: the orange 0 is the warning's, the grey of an inactive column its link's. The room of
   three digits, so the label beside it wraps in every column of a row or in none.
   ponytail: 3ch holds up to 999 active questions in a category; 4ch when one passes it. */
.catalog-column-figure { font-family: var(--font-mono); font-size: var(--t-sm); min-width: 3ch; text-align: right; }
/* The foot slot, as tall with a line as with the word `Inactive`; the line sits at its bottom. */
.catalog-column-foot { display: flex; flex-direction: column; justify-content: flex-end; min-height: var(--s-5); font-size: var(--t-xs); letter-spacing: var(--ls-sm); }
/* A row of cells. It stretches them (no alignment of its own), so the boxes of a bar are equally tall; it
   neither scrolls nor clips: its container does, and the three rows of a rule move as one (W-53 R28, R49). */
.catalog-bar { display: flex; gap: 2px; margin: var(--s-2) 0 var(--s-1); padding: 0; list-style: none; }
/* The box of a zone: its label over its range. Neutral; the colour comes by its key, in the work on colour. */
.catalog-segment-box { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--s-1); min-width: 0; padding: var(--s-2); border: 1px solid transparent; border-radius: var(--r-xs); color: var(--text-primary); background: var(--bg-glass-strong); }
.catalog-scale { margin-top: 0; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-tertiary); }
.catalog-tick { justify-content: space-between; }

/* ── Catalog (W-44 slice 2): the card of «ready». Three rules, each behind its mark; what breaks a rule and
   the way out sit under it. ── */
.catalog-card { margin-block: var(--s-4); }
.catalog-card > :first-child { margin-top: 0; }
.catalog-card > :last-child { margin-bottom: 0; }
.catalog-fix { margin-bottom: var(--s-2); font-size: var(--t-sm); letter-spacing: var(--ls-sm); color: var(--text-secondary); }
.catalog-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: var(--s-4) 0; padding: 0; list-style: none; }
.catalog-rule { display: flex; align-items: flex-start; gap: var(--s-3); }
.catalog-rule-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); min-width: 0; overflow-wrap: anywhere; }
.catalog-rule-body > * { margin: 0; }
/* A shortcut may carry a title a person wrote: it wraps like the sentence above it instead of widening the page. */
.catalog-rule-body a { white-space: normal; }
.catalog-rule-mark { display: grid; flex: none; place-items: center; width: var(--s-5); height: var(--s-5); border-radius: var(--r-full); font-size: var(--t-xs); letter-spacing: var(--ls-sm); font-weight: var(--fw-heading); color: var(--text-on-accent); background: var(--success); }
.catalog-rule-mark::before { content: "✓"; }
/* The mark of a rule that is not met, as the pill above it. What explains it stays in the text colour. */
.catalog-rule-unmet .catalog-rule-mark { background: var(--danger); }
.catalog-rule-unmet .catalog-rule-mark::before { content: "!"; }

/* ── Catalog (W-44 slice 3, W-53): from score to recommendation. Two rules, each a box with its title on top,
   its bar at the left and its sentences at the right, or under the bar when they do not fit. A bar is three
   rows of cells: zones, scale marks, values. Every cell is a `catalog-zone`: the macro `share` gives it its
   proportion and this one rule its minimum, wide enough for a word of a label, so the three rows line up. A
   cell has no padding and no border of its own: either would add to its share. A label, a range and the label
   of a value wrap instead of being cut. ── */
.catalog-zone { display: flex; flex: var(--share, 0) 1 0; min-width: var(--s-20); }
.catalog-zone-title { min-width: 0; font-size: var(--t-sm); letter-spacing: var(--ls-sm); overflow-wrap: anywhere; }
/* The neutral grey of the board; a box that takes a colour by its key gives it back to inherit. */
.catalog-range { font-size: var(--t-xs); letter-spacing: var(--ls-sm); color: var(--text-secondary); overflow-wrap: anywhere; }
/* The colour of a zone (W-52): a box that gives a recommendation takes the colour of that recommendation on its
   own wash, the ones the report gives to the same key. By the key of the box, never by its place, and written
   on the box itself: two parts, so each wins over the rule of the box wherever it sits. Its range takes that
   colour too, and its icon is an inline box before the first word of the label: the label wraps by whole words
   (its three texts are the product's, never a person's), and where the icon and the first word do not share a
   line the word goes under the icon instead of being cut. `flex: none` does nothing in a line: the icon keeps
   its 14 px by its own attributes. The box without a key has none of this. */
.catalog-segment-box[data-recommendation="pass"] { color: var(--success); background: var(--success-soft); }
.catalog-segment-box[data-recommendation="needs_review"] { color: var(--warning); background: var(--warning-soft); }
.catalog-segment-box[data-recommendation="not_qualified"] { color: var(--danger); background: var(--danger-soft); }
.catalog-segment-box[data-recommendation] .catalog-range { color: inherit; }
.catalog-segment-box[data-recommendation] .catalog-zone-title { overflow-wrap: break-word; }
.catalog-segment-box[data-recommendation] svg { flex: none; margin-right: var(--s-1); vertical-align: -2px; }
.catalog-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: var(--s-4) 0; padding: 0; list-style: none; }
/* The box of a rule: the dress of a compact card written here, because under 600 px it gives up its sides. */
.catalog-step { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); padding: var(--s-4); border: 1px solid var(--border-default); border-radius: var(--r-md); }
.catalog-step-head { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
:where(.catalog-step-head, .catalog-step-text) > * { margin: 0; }
/* Fixed bases: the bars of the two rules are equally wide whatever their sentences. The three rows scroll
   together inside this container, which is the scroller of the components with a direction of its own. */
.catalog-step-scroll { flex: 2 1 420px; min-width: 0; overflow-x: auto; }
.catalog-step-text { display: grid; flex: 1 1 260px; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); align-content: start; min-width: 0; }
.catalog-cuts { margin-top: var(--s-2); }
/* A value under its cut: the label of the form over its figure, and a line at its left that starts where its
   zone starts. The cell, its list and its pair are stacks, so the figures of a row share a line. */
.catalog-cut > dl { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; margin: 0; padding-left: var(--s-2); border-left: 1px solid var(--border-strong); }
.catalog-cut > dl > div { display: flex; flex: 1 1 auto; flex-direction: column; }
.catalog-cut dt { font-size: var(--t-xs); letter-spacing: var(--ls-sm); color: var(--text-tertiary); overflow-wrap: anywhere; }
.catalog-cut dd { margin: 0; margin-top: auto; font-family: var(--font-mono); }
/* On a phone the range and the value already say the numbers: the marks hide, and only they. The box of a rule
   gives up its sides, and its corners with them, so that its bar keeps the width of the card (W-53 R27, R39).
   After every rule it overrides, on purpose: a media block adds no weight, so it wins only from below. */
@media (max-width: 600px) { .catalog-segment-box { padding: var(--s-1); } .catalog-scale { display: none; } .catalog-step { padding-inline: 0; border-inline-width: 0; border-radius: 0; } }

/* ── Catalog (W-44 slice 3): the scoring rubrics. Levels and versions are rows of small boxes that go on to
   the next line (X12: a scale of 10 has eleven levels). ── */
.catalog-rubric + .catalog-rubric { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.catalog-rubric > :last-child { margin-bottom: 0; }
.catalog-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0; padding: 0; list-style: none; }
/* A level is its score and its label; a long label breaks inside its box instead of widening the page. */
.catalog-level { gap: var(--s-2); max-width: 100%; overflow-wrap: anywhere; }

/* ── Catalog (W-44 slice 3): the row of modules, only with more than one. Each link is a row of the tree laid
   in a line, with the state of its module at its end; a long title breaks as it does in the tree. ── */
.catalog-modules { margin: 0 0 var(--s-4); padding: 0; list-style: none; }

/* ── Interviewer panel (W-4; three zones of W-54, D-41): Now, Next and What happened, each a section under its
   numbered title, stacked as the code writes them. Now and Next are two equal halves on one grid, so the second
   half starts at the same edge in both; What happened is the conversation and, under it, a row of three blocks.
   No media query: each grid wraps by itself, and min(100%, …) lets a column shrink below its floor on a phone ── */
/* What a person or the model writes may be one unbroken word (a path, a registry key, an address): it wraps inside its box (R13). */
.panel { overflow-wrap: anywhere; }
.panel-zone { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.panel-zone + .panel-zone { margin-top: var(--s-6); }
.panel-zone-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.panel-zone-title { display: flex; align-items: center; gap: var(--s-2); }
/* Beside the title of Next: the mark of the active category, then the guide line; on a phone each takes its
   own line. The label of the mark is plain text in the grey of secondary text; its chip is the component (W-54 R49). */
#answer-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.panel-active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
/* A zone title and its number take the colour of their group, the one of the bands under them; the ring of the
   number follows the ink. One class each, after the components: the screen colours, it restyles nothing (W-54 R51). */
.panel-zone-now { color: var(--text-primary); }
.panel-zone-next { color: var(--accent); }
.panel-zone-past { color: var(--info); }
.panel-zone-mark { flex: none; border-color: currentColor; }
.panel-halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s-4); align-items: start; }
.panel-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
/* Every block starts at the top of the row: a folded one keeps the height of its band beside an open one. */
.panel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); align-items: start; }
/* The player: video, status bar, steps, guide. Its video is capped below: a real provider can then send a lighter layer (D-17). */
.panel-player { min-width: 0; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--border-default); border-radius: var(--r-md); }
/* 533 px wide are 300 px tall: the video leaves the first screen to what is asked and what comes next (W-54 R4). */
.panel-tile { box-sizing: border-box; display: grid; place-content: center; gap: var(--s-2); aspect-ratio: 16 / 9; max-width: 533px; margin-inline: auto; padding: var(--s-4); text-align: center; color: var(--text-secondary); }
.panel-tile p { margin: 0; }
.panel-tile-label { color: var(--text-primary); font-weight: var(--fw-medium); }
/* W-56: the live call takes the tile's place and its cap (W-54 R4); an iframe needs the width, it has its own 300 px. */
.panel-video { box-sizing: border-box; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 533px; margin-inline: auto; border: 0; }
/* W-56 R7: the candidate's invitation, under the call; the link the server sends lands in #invitation-link. */
.panel-invitation { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border-default); }
.panel-invitation-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.panel-invitation-url { flex: 1 1 240px; min-width: 0; }
/* W-56 R8: the candidate's page is the call, edge to edge; dvh keeps Daily's controls above a phone's toolbar. */
.join-video { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; border: 0; }
.join-message { box-sizing: border-box; display: grid; place-content: center; min-height: 100vh; min-height: 100dvh; padding: var(--s-4); text-align: center; color: var(--text-secondary); }
.panel-status { background: var(--bg-base); border-top: 1px solid var(--border-default); }
.panel-status > * + * { border-top: 1px solid var(--border-subtle); }
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-3) var(--s-4); background: var(--bg-elevated); }
.panel-bar > dl { flex: 1 1 320px; }
.panel-bar > .panel-meta { flex-basis: 100%; }
.panel-bar p { margin: 0; }
/* The height of its text, between a floor and a cap; past the cap the region scrolls inside itself (W-54 R5). */
.panel-current { box-sizing: border-box; min-height: 96px; max-height: 436px; }
.panel-current h3 { margin-bottom: var(--s-2); }
.panel-current .panel-question { font-size: var(--t-xl); max-width: var(--measure); }
/* The conversation takes the height of what it holds: no scroller, no cap (W-54 R36). The earlier turns sit in a
   native fold under the turn in progress, a gap away from it and, once open, from their own list (R35). */
.panel-earlier { margin-top: var(--s-3); }
.panel-earlier > summary { cursor: pointer; }
.panel-earlier[open] > summary { margin-bottom: var(--s-3); }
.panel-scroll-bank { max-height: 260px; }
/* The next question of the bank, above the list. One floor for the card whether it waits or offers its question,
   so the list and the own question under it stay where they are when an evaluation arrives (W-54 R58); 266 px is
   the card with the longest question of the seed where the halves sit side by side on a desktop (1366 px and
   wider), measured: four lines of its 17 px text, 28.05 px each, plus the rest of the card. A narrower half wraps
   a longer question past it (294 px at 1024). The gap to the list is the card's own: with no
   card drawn, none is left (R53). */
.panel-next { box-sizing: border-box; min-height: 266px; margin-bottom: var(--s-3); }
.panel-next-question { margin: var(--s-1) 0; font-size: var(--t-md); }
.panel-next-note { margin: 0; color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
/* An inner title is an h4: the rule of staff headings stops at h3, so its weight is said here (W-54 R8). */
.panel-region h4 { margin: var(--s-3) 0 var(--s-1); font-size: var(--t-sm); letter-spacing: var(--ls-sm); font-weight: var(--fw-heading); color: var(--text-secondary); }
.panel-region h4:first-child { margin-top: 0; }
.panel-region ul, .panel-region ol { margin: 0; padding-left: var(--s-4); }
.panel-region .panel-turns, .panel-region .panel-bank { list-style: none; padding-left: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.panel-region .panel-chips { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.panel-categories { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.panel-category > summary { cursor: pointer; font-weight: var(--fw-medium); }
.panel-meta { margin: 0; color: var(--text-tertiary); font-size: var(--t-xs); letter-spacing: var(--ls-sm); }
.panel-question { margin: var(--s-1) 0; }
.panel-timer { font-family: var(--font-mono); font-size: var(--t-lg); font-weight: var(--fw-regular); line-height: 1.2; }
.panel-segments { color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.panel-segments li:target { color: var(--text-primary); background: var(--accent-soft); }
.panel-badge { margin: var(--s-1) 0 0; font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.panel-badge > summary { cursor: pointer; }
/* The score that just arrived and the word that says so, on one line: the fold of the score takes what it needs
   and wraps inside itself, the word keeps its width. The word is in the cyan of its zone, with a dot before it,
   and at rest (W-54 R59). */
.panel-scored { display: flex; align-items: baseline; gap: var(--s-2); }
.panel-scored > .panel-badge { min-width: 0; }
.panel-new { flex: none; color: var(--info); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.panel-new::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: var(--s-2); border-radius: var(--r-full); background: currentColor; vertical-align: middle; }
.panel-flags li { color: var(--danger); }
.panel-card p { margin: 0 0 var(--s-1); }
.panel-card + .panel-card { margin-top: var(--s-3); }

/* ── Interviewer panel, W-4c: static forms outside every region (R33). #answer-state and #notes-list
   are pushed regions: their data-* attributes show each form only where the server would take it, so a
   refusal never eats what was typed (B13). #answer-state sits in the heading of Next and its two forms
   each in its zone, so the panel looks for it with :has() (W-54 R9); #note-form is still the very next
   sibling of #notes-list. A browser without :has() shows the two forms always. ── */
.panel:has(#answer-state:not([data-waiting="true"])) #answer-form,
.panel:has(#answer-state:not([data-can-ask="true"])) #own-question-form { display: none; }
#notes-list[data-can-note="false"] + #note-form { display: none; }
.panel-important { color: var(--warning); font-weight: var(--fw-strong); }
.panel-notes li { white-space: pre-line; }

/* ── Interview report (W-5a, W-46): a server page read as a spine, top to bottom: the interview, each
   question in the order asked, the scores, the advice, the notes and the person's decision. Layout
   only: every block is a component. ── */
/* The strip: the steps and the «you are here» sentence bring their own padding; the jumps line up with them. */
.report-jump { margin: var(--s-4) 0; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--r-md); }
.report-jump-links { display: grid; gap: var(--s-3); padding: var(--s-2) var(--s-4) var(--s-4); }
.report-jump-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; }
.report-jump-label { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.report-jump-verdict { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); }
/* A long value wraps under its label instead of widening the page on a phone (R31). */
.report-pill-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); text-decoration: none; }
.report-await, .report-chip { padding: 2px var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-full); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.report-await { border-style: dashed; }
.report-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.report-chip { display: inline-block; }
.report-chip-flag { color: var(--warning); border-color: var(--warning); }
/* A warning is not carried by colour alone: a dot in its own colour, as the live pill has. */
.report-chip-flag::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: var(--s-2); border-radius: var(--r-full); background: currentColor; vertical-align: middle; }
.report-pill-link:hover > .report-await, .report-chip:not(.report-chip-flag):hover { border-color: var(--accent-ring); }
.report-spine { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: var(--s-4) 0; padding: 0; list-style: none; }
/* A node: its block, a mark at the height of its title and the line that runs on to the next node. */
.report-node { position: relative; min-width: 0; padding-left: var(--s-8); }
.report-node::before { content: ""; position: absolute; left: 7px; top: 0; bottom: calc(-1 * var(--s-4)); width: 2px; background: var(--border-default); }
.report-node:first-child::before { top: var(--s-4); }
.report-node:last-child::before { bottom: auto; height: 42px; }
.report-node::after { content: ""; position: absolute; left: 0; top: 11px; box-sizing: border-box; width: 16px; height: 16px; border: 2px solid var(--info); border-radius: var(--r-full); background: var(--bg-base); }
/* A question's title row is taller than a plain fold's (the score), and the decision's title sits lower still. */
.report-node:has(> .report-turn)::after { top: 15px; }
/* A question without a score has a shorter title row: its mark sits where a plain fold's does. */
.report-node:has(> .report-turn .report-cause)::after { top: 11px; }
.report-node-flag::after { border-color: var(--warning); }
.report-node-end::after { top: 34px; border-color: var(--accent); background: var(--accent); }
@media (max-width: 760px) {
  .report-node { padding-left: var(--s-6); }
  .report-node::before { left: 5px; }
  .report-node::after { width: 12px; height: 12px; top: 13px; }
  .report-node:has(> .report-turn)::after { top: 17px; }
  .report-node:has(> .report-turn .report-cause)::after { top: 13px; }
  .report-node-end::after { top: 36px; }
  .report-cards > li:not(:last-child)::after { display: none; }
}
/* A question folds from its title: number, where it counted, its marks and its score at the far end. */
.report-node-flag > .report-turn { border-color: var(--warning); }
/* The title packs to the left and wraps; its last piece, the score or the cause, goes to the far end
   with the arrow, on whichever line it lands. */
summary.report-turn-head { flex-wrap: wrap; justify-content: flex-start; }
.report-turn-head > :last-child { margin-left: auto; }
.report-where { font-family: var(--font); font-size: var(--t-sm); letter-spacing: var(--ls-sm); text-transform: none; color: var(--text-primary); overflow-wrap: anywhere; }
.report-cause { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--text-secondary); }
.report-mark { padding: 2px var(--s-2); border: 1px solid var(--border-strong); border-radius: var(--r-full); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--text-secondary); white-space: nowrap; }
.report-mark-flag { color: var(--warning); border-color: var(--warning); }
.report-side { margin-left: auto; }
.report-body { overflow-wrap: anywhere; }
:where(.report-body) :where(h3) { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-base); }
.report-meta { margin: 0 0 var(--s-1); color: var(--text-tertiary); font-size: var(--t-xs); letter-spacing: var(--ls-sm); }
/* The question, in a box of its own: one step above the body (W-50 R6). */
.report-question { margin: var(--s-1) 0 var(--s-2); font-size: var(--t-md); font-weight: var(--fw-strong); overflow-wrap: anywhere; }
/* What was said beside how it was evaluated, each in its box; one column when there is no room for two, and a
   box alone takes the row. */
.report-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-3) var(--s-4); margin-top: var(--s-3); align-items: start; overflow-wrap: anywhere; }
:where(.report-columns) :where(p) { margin: 0 0 var(--s-2); }
.report-columns .report-meta:not(:first-child) { margin-top: var(--s-3); }
.report-segments { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.report-segments li { padding: var(--s-1) var(--s-2); border-radius: var(--r-xs); }
.report-segments li:target { color: var(--text-primary); background: var(--accent-soft); }
.report-time { font-family: var(--font-mono); color: var(--text-tertiary); }
.report-segments li:target .report-time { color: inherit; }
.report-quoted { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent); white-space: nowrap; }
.report-label { margin: var(--s-3) 0 var(--s-1); color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); font-weight: var(--fw-strong); }
.report-quotes { margin: 0 0 var(--s-1); padding-left: var(--s-4); }
.report-flags li, .report-differs { color: var(--warning); }
.report-differs { font-weight: var(--fw-strong); }
/* Scores (W-50): the total and the coverage, each in a filled card over its bar with the thresholds as marks.
   Two to one in a row that wraps; either may shrink under its base. */
.report-figures { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-3); }
.report-figure { flex: 1 1 280px; min-width: 0; }
.report-figure-wide { flex: 2 1 420px; }
/* Scores (W-50): one card per category of the frozen tree, in its order, in equal columns: every bar is on the
   same scale. A scored card is a component; a category without an evaluated answer keeps its place as a dashed
   slot, a box of the screen with the room of a compact card. Under a figure, each subcategory with the
   questions that counted. */
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--s-4) var(--s-5); margin: var(--s-3) 0 var(--s-4); padding: 0; list-style: none; }
.report-card { position: relative; min-width: 0; }
.report-card-head { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); }
.report-card-mark { flex: none; }
.report-card-title { margin: 0; overflow-wrap: anywhere; }
.report-card-figure { margin: var(--s-1) 0 var(--s-2); }
.report-card .report-subs { margin: var(--s-3) 0 0; }
.report-slot { padding: var(--s-4); border: 1px dashed var(--text-tertiary); border-radius: var(--r-md); }
.report-slot > .report-label { display: flex; align-items: center; gap: var(--s-2); }
/* The arrow from a card to the next, in the gap between two columns: two borders turned, never a character, so a
   screen reader reads nothing. After every card but the last of the list; at the end of a row it still points
   right, and the number carries the order. */
.report-cards > li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(var(--s-5) / -2 - 3px); width: 7px; height: 7px; border-top: 2px solid var(--text-tertiary); border-right: 2px solid var(--text-tertiary); transform: translateY(-50%) rotate(45deg); }
.report-subs, .report-links { margin: 0 0 var(--s-2); padding: 0; list-style: none; font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.report-subs li, .report-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.report-subs li + li { margin-top: var(--s-1); }
.report-recommendation, .report-decision { margin: 0 0 var(--s-1); }
.report-advisory { margin: 0 0 var(--s-3); color: var(--text-secondary); font-size: var(--t-sm); letter-spacing: var(--ls-sm); }
.report-notes { margin: 0; padding-left: var(--s-4); display: grid; gap: var(--s-3); }
.report-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
/* The decision closes the spine: its title, where the report stands, and the form. */
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-3); }
.report-head > h2 { margin: 0; }
.report-history { margin-block: var(--s-3); }
.report-change { margin: var(--s-2) 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); }
.report-change > summary { cursor: pointer; font-weight: var(--fw-strong); }
.report-choices { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--border-default); border-radius: var(--r-xs); }
.report-choices legend { padding: 0 var(--s-1); }
.report-submit { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
