/* ==========================================================================
   Resume Scanner (/resume/).
   Intake, score strip, tabbed report. The app only rewrites #rz-app; the site
   header and footer around it are static. Tokens come from core.css, so both
   themes work without per-theme rules except the two status fills below, which
   need a different alpha on a light ground.

   One class prefix, rz-, and three tone modifiers used everywhere a verdict is
   shown: is-ok, is-mid, is-bad. Severity on a finding reuses the engine's own
   words: is-error, is-warn, is-info, is-pass.
   ========================================================================== */

:root {
    --rz-gap: var(--sp-5);
    /* 1080px, not the full --measure frame: the report is a reading surface,
       a single column of findings with prose in every row, and at 1440px the
       detail lines run past a comfortable measure. The intake above it is two
       cards abreast and reads as one panel at this width. Same reasoning as
       plan.css's 1200px, which is likewise narrower than the frame on purpose. */
    --rz-measure: 1080px;
    /* Tone triple. Named and ordered to match the simulator's report
       (.rp-dim-bar i.is-ok / .is-warn / .is-bad), which is the score display a
       reader is most likely to have seen before landing here. Tinted through
       color-mix over the shared tokens rather than hand-mixed rgba, so there is
       one definition and the light theme follows for free -- the earlier
       version carried twelve literal rgba values across two theme blocks. */
    --rz-ok: var(--success);
    --rz-warn: var(--warning);
    --rz-bad: var(--danger);
    --rz-ok-bg: color-mix(in srgb, var(--success) 12%, transparent);
    --rz-warn-bg: color-mix(in srgb, var(--warning) 12%, transparent);
    --rz-bad-bg: color-mix(in srgb, var(--danger) 12%, transparent);
    --rz-ok-bd: color-mix(in srgb, var(--success) 30%, transparent);
    --rz-warn-bd: color-mix(in srgb, var(--warning) 30%, transparent);
    --rz-bad-bd: color-mix(in srgb, var(--danger) 30%, transparent);
}

/* ---- Never let app markup inherit the site chrome ------------------------
   core.css styles the navbar and the nav row with BARE TYPE SELECTORS:

     header { position: sticky; top: 0; z-index: var(--z-header); background: ...; }
     nav    { position: relative; display: flex; flex: 1; ... }

   So any <header> or <nav> rendered inside this app becomes a second sticky
   bar sitting at the navbar's own layer. The hero was written as
   <header class="rz-hero"> and did exactly that: it pinned to the top of the
   viewport on scroll, and because it came later in DOM order at the same
   z-index it painted over the real navbar's links and search box. Three
   earlier attempts at this chased stickiness, body overflow and compositing,
   and two of them regressed the page; the markup was the whole of it.

   The hero is a <div> now. This stays as the guard, because the trap is
   invisible at the call site — a landmark element is the natural choice for a
   page hero, and nothing about writing one hints that a shared stylesheet has
   claimed the tag name. */
#rz-app header,
#rz-app nav {
    position: static;
    top: auto;
    z-index: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    display: block;
    flex: none;
}

/* NO `body { overflow-x: clip }` HERE, AND IT MUST NOT COME BACK.
   It was tried, to stop body being a scroll container so the sticky header
   would pin to the viewport. It made things worse, because `clip` differs from
   `hidden` in a way that matters here: `overflow: hidden` on body propagates to
   the viewport and leaves fixed-position descendants alone, while `clip`
   establishes a real clip region that DOES clip them. The staging env-banner is
   `position: fixed` on a child of body, so it vanished. */

#rz-app {
    max-width: var(--rz-measure);
    margin: 0 auto;
    /* --sp-5 inline, which is what every shell on the site uses: .page-layout,
       .cat-head, .pk-main, .footer-inner, .container. At --sp-4 this content
       sat 8px tighter to the viewport edge than the footer beneath it. */
    padding: var(--sp-6) var(--sp-5) var(--sp-8);
    min-width: 0;
    /* No position and no z-index. Two earlier attempts put this on a layer to
       stop the page painting over the navbar, which treated the symptom: the
       thing painting over it was this page's own <header class="rz-hero">
       picking up core.css's bare `header` rule at z-index 100. With the hero a
       plain div, the shell is ordinary flow content and needs no layer. */
}
/* Several components set display:flex/grid, which beats the UA's [hidden]
   rule; the app toggles visibility with the attribute, so it has to win. */
#rz-app [hidden] { display: none !important; }
#rz-app .ic { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Intake --------------------------------------------------------------
   The hero follows the shape every page that introduces itself uses: eyebrow
   pill, h1, lede, then a meta row separated by a top rule. Copied from
   .plan-hero and .pk-hero rather than invented; --fs-xl was the catalog BAR
   title size, two steps below a page title, which is most of why this page
   read as a panel inside someone else's site rather than a page of it. */
.rz-hero { margin-bottom: var(--rz-gap); }
.rz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0 0 var(--sp-3);
    padding: var(--sp-1) var(--sp-3);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
}
/* The live dot, as on .pk-eyebrow: this tool runs locally, so it is always
   ready, and the dot says so without a sentence. */
.rz-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--r-full);
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}
.rz-hero h1 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 var(--sp-3);
    max-width: 24ch;
}
.rz-hero h1 em { font-style: normal; color: var(--accent); }
.rz-lede {
    color: var(--text-muted);
    font-size: var(--fs-md);
    max-width: 62ch;
    margin: 0 0 var(--sp-4);
    line-height: 1.65;
}
/* Meta row: the .pk-stats shape — a borderless list above a top rule, numbers
   in <b> with tabular figures. */
.rz-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    margin: 0 0 var(--rz-gap);
    padding: var(--sp-4) 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.rz-stats b {
    color: var(--text);
    font-size: var(--fs-md);
    font-variant-numeric: tabular-nums;
    margin-right: var(--sp-1);
}
/* "Read this before you start" is a dashed accent box on this site —
   .bh-draft and .plan-jd — not a coloured status panel. */
.rz-privacy {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    background: var(--accent-subtle);
    border: 1px dashed var(--border-accent);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    margin: 0 0 var(--rz-gap);
    max-width: 68ch;
    font-size: var(--fs-sm);
    line-height: 1.55;
}
.rz-privacy .ic { color: var(--accent); margin-top: 2px; }

.rz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rz-gap);
    margin-bottom: var(--rz-gap);
}
/* The markup carries `class="card rz-card"`, so .card in core.css owns the
   surface, radius and padding. Only the deltas live here. The old copy used
   --border-strong, a heavier boundary than any other panel on the site, which
   made a row of these read as a different component. */
.rz-card {
    min-width: 0;
    box-shadow: var(--shadow-sm);
}
.rz-card h2 {
    font-size: var(--fs-md);
    margin: 0 0 var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.rz-opt {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-dim);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    padding: 1px var(--sp-2);
}

.rz-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    text-align: center;
    padding: var(--sp-6) var(--sp-4);
    border: 2px dashed var(--border-strong);
    border-radius: var(--r-md);
    background: var(--bg-subtle);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rz-drop:hover, .rz-drop:focus-visible, .rz-drop.is-over {
    border-color: var(--accent);
    background: var(--accent-subtle);
}
.rz-drop.is-over { border-style: solid; }
.rz-drop b { font-size: var(--fs-base); }
.rz-drop span { color: var(--text-muted); font-size: var(--fs-sm); }
.rz-drop-ic { width: 26px !important; height: 26px !important; color: var(--text-dim); }
.rz-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.rz-note {
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.55;
    margin: var(--sp-3) 0 0;
}
/* Three of these notes open with an icon — the privacy line under the scan and
   both of the paywall's unknown-account states — and the icon was sitting
   flush against the first letter in all three, so the padlock and the "A" of
   "All of this" touched. A margin rather than making .rz-note a flex row:
   most of these notes are ordinary prose with inline <b>, and flex would
   promote every text node and every <b> to a separate flex item and wreck the
   paragraph. Matched to .rz-privacy, which pairs the same icon with text at
   the same optical offset. */
.rz-note > .ic:first-child {
    margin-right: var(--sp-2);
    vertical-align: -2px;
}
.rz-paste { margin-top: var(--sp-4); }
.rz-paste > summary {
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--accent);
    padding: var(--sp-1) 0;
}
.rz-paste > summary:hover { color: var(--accent-hover); }
.rz-ta {
    width: 100%;
    margin-top: var(--sp-3);
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--control-border);
    border-radius: var(--r-sm);
    padding: var(--sp-3);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--fs-sm);
    line-height: 1.5;
    resize: vertical;
}
.rz-ta:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rz-ta-jd { margin-top: 0; }

.rz-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--rz-gap);
}
.rz-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-sm);
    line-height: 1.55;
}
.rz-alert.is-error { background: var(--rz-bad-bg); border: 1px solid var(--rz-bad-bd); }
.rz-alert.is-error .ic { color: var(--rz-bad); margin-top: 2px; }
.rz-alert.is-warn { background: var(--rz-warn-bg); border: 1px solid var(--rz-warn-bd); }
.rz-alert.is-busy { background: var(--accent-subtle); border: 1px solid var(--border-accent); }

/* ---------------------------------------------------------------------------
   .rz-about -- the page's prose, server-rendered in pages/resume.html and
   OUTSIDE #rz-mount, so app.js's render() cannot destroy it. It used to be
   #rz-noscript-shell inside #rz-app, which render() overwrote on every load:
   600 words written for a crawler, deleted before any crawler could read them.

   It is styled as real page content and shown to everyone, deliberately. Prose
   kept in the DOM but hidden from humans is cloaking; prose below a tool is how
   a tool page is built. The only time it is hidden is while a report is on
   screen (#rz-app.is-busy), when the reader has what they came for.
   --------------------------------------------------------------------------- */
.rz-about {
    border-top: 1px solid var(--border);
    margin-top: var(--rz-gap);
    padding-top: var(--rz-gap);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.65;
}
.rz-about h2 {
    font-size: var(--fs-md);
    color: var(--text);
    margin: var(--sp-6) 0 var(--sp-3);
}
.rz-about h2:first-child { margin-top: 0; }
.rz-about p { margin: 0 0 var(--sp-3); }
.rz-about ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
.rz-about li { margin-bottom: var(--sp-2); }
.rz-about strong, .rz-about b { color: var(--text); font-weight: 600; }

/* The intake view owns the hero and the prose. A scan or a report replaces the
   mount between them, and these two would otherwise frame a result they are not
   about. Hidden by class, never by removal. */
#rz-app.is-busy .rz-hero,
#rz-app.is-busy .rz-about { display: none; }

/* .rz-what, .rz-what-list and their dt/dd rules were deleted with the intake
   section that used them. Nothing in app.js emits either class now -- the prose
   lives in .rz-about above, as markup rather than as a JS string. */

/* ---- Scanning ------------------------------------------------------------
   One row per real pipeline step, each showing the number that step measured.
   The rows are paced so they can be read; see STAGE_MS in app.js for why that
   pacing is the only invented part of this view. */
/* .rz-score's card, deliberately: same surface, same radial accent wash from
   the top-left, same border, same 14px corner, same shadow. This view was
   bare text on the page background while the result it turns into is the
   hero card, so the two halves of one operation looked like two different
   pages. Sharing the card makes the scan read as the card filling itself in,
   and the heading below takes .rz-score-text h2's size for the same reason:
   the two lines land in the same place, one after the other. */
.rz-scanning {
    max-width: 640px;
    margin: var(--sp-5) auto;
    background:
        radial-gradient(100% 140% at 0% 0%, var(--accent-subtle), transparent 60%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-6);
}
.rz-scanning h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 var(--sp-4);
    overflow-wrap: break-word;
}
/* Overall progress, which the list of rows cannot show: eight rows with one
   bolded tells you what is happening but not how far through it you are. This
   replaced a subtitle that repeated the running row's label verbatim, so the
   same three words appeared twice, one above the other.
   Built from .rz-dim-bar's parts — surface-3 track, --r-full, clipped fill —
   but 4px rather than 8px, the height .rz-rb-page's bars use: this sits above
   a list as a rule, where the score bars are the content. */
.rz-scan-prog {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: 0 0 var(--sp-5);
}
.rz-scan-bar {
    flex: 1;
    height: 4px;
    background: var(--surface-3);
    border-radius: var(--r-full);
    overflow: hidden;
}
.rz-scan-bar i {
    display: block;
    height: 100%;
    /* The gradient .rz-paywall::before uses, rather than flat accent. */
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: var(--r-full);
    transition: width 0.3s var(--ease);
}
.rz-scan-step {
    flex: none;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
}
.rz-stages { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.rz-stage {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: baseline;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
}
.rz-stage:last-child { border-bottom: 0; }
.rz-stage-mark {
    width: 22px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.rz-stage-mark .ic { color: var(--rz-ok); }
.rz-stage-detail {
    color: var(--text-dim);
    font-size: var(--fs-xs);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* Waiting: a hollow dot and a dimmed label.
   This was `opacity: 0.4` on the whole row, which also faded the row's own
   bottom border — so the three rules under the not-yet-run stages were
   visibly lighter than the rules above them and the list looked like it
   stopped halfway. Colouring the label and the dot leaves the rules alone,
   and gives the three states a real progression: dim, then muted, then full
   contrast and bold for the one running. */
.rz-stage.is-wait .rz-stage-label { color: var(--text-dim); }
.rz-stage.is-wait .rz-stage-mark::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: var(--r-full);
    border: 1px solid var(--border-strong);
}
/* Running: a spinner in the marker column and the label in full contrast. */
.rz-stage.is-now .rz-stage-label { color: var(--text); font-weight: 600; }
.rz-stage.is-now .rz-stage-mark::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: var(--r-full);
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    animation: sc-spin 0.7s linear infinite;
}
.rz-stage.is-done .rz-stage-label { color: var(--text-muted); }

/* ---- Report shell -------------------------------------------------------- */
.rz-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: space-between;
    margin-bottom: var(--sp-4);
}
.rz-bar-right { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* The simulator's report hero (.rp-hero) is the score display on this site,
   so this matches it: the accent wash from the top-left corner, a 132px ring,
   an uppercase eyebrow over the verdict, and the verdict itself at --fs-2xl in
   the tone colour. It was an 80px ring with a plain --fs-xl heading. */
.rz-score {
    background:
        radial-gradient(100% 140% at 0% 0%, var(--accent-subtle), transparent 60%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-6) var(--sp-6) var(--sp-5);
    margin-bottom: var(--sp-5);
}
.rz-score-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-5);
    align-items: center;
    margin-bottom: var(--sp-5);
}
.rz-score-text { min-width: 0; }
.rz-eyebrow-plain {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 0 0 var(--sp-0);
}
.rz-score-text h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 var(--sp-2);
}
.rz-score-text h2.is-ok { color: var(--rz-ok); }
.rz-score-text h2.is-warn { color: var(--rz-warn); }
.rz-score-text h2.is-bad { color: var(--rz-bad); }
.rz-score-sub { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.rz-score-na {
    margin: var(--sp-2) 0 0;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.rz-ring { width: 132px; height: 132px; flex-shrink: 0; transform: rotate(-90deg); }
.rz-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.rz-ring-fg {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke: var(--rz-warn);
    transition: stroke-dasharray 0.9s var(--ease);
}
.rz-ring.is-ok .rz-ring-fg { stroke: var(--rz-ok); }
.rz-ring.is-warn .rz-ring-fg { stroke: var(--rz-warn); }
.rz-ring.is-bad .rz-ring-fg { stroke: var(--rz-bad); }
/* Counter-rotated so the figure sits upright inside the rotated ring, and
   sized like .rp-num: 2.4rem, 800, tight tracking, tabular figures. */
.rz-ring-num {
    transform: rotate(90deg);
    transform-origin: 50px 50px;
    fill: var(--text);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    stroke: none;
}
.rz-ring-of {
    transform: rotate(90deg);
    transform-origin: 50px 50px;
    fill: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    stroke: none;
}

.rz-dims { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
/* .rp-dim's geometry, widened only for this page's longer labels
   ("Machine readability" against the simulator's "Latency"). */
.rz-dim {
    display: grid;
    grid-template-columns: 11.5rem 1fr 3.5rem;
    align-items: center;
    gap: var(--sp-2h);
    font-size: var(--fs-sm);
}
.rz-dim-label { color: var(--text); font-weight: 600; }
.rz-dim-bar {
    height: 8px;
    background: var(--surface-3);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.rz-dim-fill { display: block; height: 100%; border-radius: var(--r-full); transition: width 0.45s var(--ease); }
.rz-dim-fill.is-ok { background: var(--rz-ok); }
.rz-dim-fill.is-warn { background: var(--rz-warn); }
.rz-dim-fill.is-bad { background: var(--rz-bad); }
.rz-dim-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rz-dim-of { color: var(--text-dim); font-weight: 400; }
.rz-dim.is-na { opacity: 0.65; }
.rz-dim.is-na .rz-dim-bar { background: none; height: auto; }
.rz-dim-na-text { font-size: var(--fs-xs); color: var(--text-dim); font-style: italic; }

/* ---- Tabs ---------------------------------------------------------------- */
.rz-tabs {
    display: flex;
    gap: var(--sp-1);
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: var(--sp-5);
    overflow-x: auto;
    scrollbar-width: thin;
}
.rz-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rz-tab:hover { color: var(--text); }
/* Styled off the ARIA state, as .aic-tab is. The JS already sets
   aria-selected, so a parallel is-on class was a second source of truth. */
.rz-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.rz-tab-n {
    font-size: var(--fs-xs);
    background: var(--surface-3);
    border-radius: var(--r-full);
    padding: 0 var(--sp-2);
    min-width: 1.4em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.rz-tab[aria-selected="true"] .rz-tab-n { background: var(--accent-subtle); color: var(--accent); }
/* The one tab that makes something rather than reporting on something.
   A filled pill, not accent-coloured text. Accent text alone read as a link
   among plain labels — a different colour of the same thing — and the tab
   worth finding was the one easiest to miss. A tinted ground with a border
   makes it a distinct object in the row, which is what it is.
   Three signals, not one: the fill, the sparkle and the PRO tag. Colour alone
   distinguishes nothing for a reader who cannot separate it from the others. */
.rz-tab.is-action {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
    padding: var(--sp-2) var(--sp-4);
    margin: 0 var(--sp-2);
    align-self: center;
}
.rz-tab.is-action .ic { color: var(--accent); }
.rz-tab.is-action:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border-color: var(--accent);
}
/* Selected, the pill fills rather than taking the row's underline: an
   underline under a pill reads as a stray rule, and the fill is unambiguous. */
.rz-tab.is-action[aria-selected="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
    border-bottom-color: var(--accent);
}
.rz-tab.is-action[aria-selected="true"] .ic { color: currentColor; }
.rz-tab.is-action[aria-selected="true"] .rz-tab-n {
    background: color-mix(in srgb, var(--accent-contrast) 22%, transparent);
    color: var(--accent-contrast);
}
/* on-fill is the variant the site keeps for a badge sitting on an accent
   ground; the default wash would disappear into it. */
.rz-tab.is-action[aria-selected="true"] .pro-tag {
    background: var(--pro-chip-fill-bg);
    color: var(--pro-chip-fill-fg);
}
.rz-tab.is-action .pro-tag { margin-left: var(--sp-1); }
.rz-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rz-panel-lede {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
    max-width: 70ch;
    margin: 0 0 var(--sp-5);
}

/* ---- Findings ------------------------------------------------------------ */
/* minmax(0, 1fr), not the implicit auto track this had.
   An auto-sized grid track cannot shrink below its content's min-content
   width, and below 620px .rz-find-title takes `flex-basis: 100%` to drop the
   title onto its own line. A percentage basis inside a track of indefinite
   width is cyclic, and Chrome breaks the cycle by giving the flex item its
   max-content size — so the single column resolved to 1070px inside a 366px
   list and the whole report scrolled sideways on every phone. The Fixes tab
   is the default view, so that was the first thing a mobile visitor got.
   minmax(0, 1fr) makes the track definite and floors it at zero, which both
   stops the blowout and lets the 100% basis resolve against a real width.
   body already had overflow-x: hidden, which did not help: it was the <html>
   element doing the scrolling, and iOS pans the page anyway. */
.rz-finds {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
}
.rz-find {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--r-md);
}
.rz-find.is-error { border-left-color: var(--rz-bad); }
.rz-find.is-warn { border-left-color: var(--rz-warn); }
.rz-find.is-info { border-left-color: var(--control-border); }
.rz-find.is-pass { border-left-color: var(--rz-ok); }
.rz-find > details > summary {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    list-style: none;
}
.rz-find > details > summary::-webkit-details-marker { display: none; }
.rz-find > details > summary:hover { background: var(--surface-2); }
.rz-find > details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rz-sev {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--r-full);
    padding: var(--sp-0) var(--sp-3);
    flex-shrink: 0;
}
.is-error > details > summary .rz-sev { background: var(--rz-bad-bg); color: var(--rz-bad); }
.is-warn > details > summary .rz-sev { background: var(--rz-warn-bg); color: var(--rz-warn); }
.is-info > details > summary .rz-sev { background: var(--surface-3); color: var(--text-muted); }
.is-pass > details > summary .rz-sev { background: var(--rz-ok-bg); color: var(--rz-ok); }
.rz-find-title { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.rz-cost {
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}
.rz-find-body {
    padding: 0 var(--sp-4) var(--sp-4);
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: var(--sp-3);
}
.rz-find-body p { margin: 0 0 var(--sp-3); line-height: 1.6; font-size: var(--fs-sm); max-width: 74ch; }
.rz-find-body p:last-child { margin-bottom: 0; }
.rz-fix {
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    padding: var(--sp-3);
}
/* minmax(0, 1fr) here and on .rz-bullets for the same reason as .rz-finds
   above. Neither is blowing out today, but both are single auto tracks
   holding arbitrary text out of someone's resume, which is the exact shape
   that broke. It costs nothing and cannot change the layout: one track of
   1fr is what an auto track already resolves to whenever the content fits. */
.rz-where {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
}
.rz-where li { display: flex; gap: var(--sp-3); align-items: baseline; font-size: var(--fs-xs); }
.rz-ln { color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rz-where code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    padding: var(--sp-0) var(--sp-2);
    overflow-x: auto;
    white-space: pre;
    min-width: 0;
}

/* ---- Bullets ------------------------------------------------------------- */
.rz-role-h {
    font-size: var(--fs-sm);
    margin: var(--sp-5) 0 var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: baseline;
}
.rz-role-when { color: var(--text-dim); font-weight: 400; font-size: var(--fs-xs); }
.rz-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
}
.rz-bullet {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
}
.rz-bullet.is-ok { border-color: var(--rz-ok-bd); }
.rz-bullet-text { margin: 0 0 var(--sp-3); line-height: 1.6; font-size: var(--fs-sm); }
.rz-flags, .rz-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.rz-chip {
    font-size: var(--fs-xs);
    border-radius: var(--r-full);
    padding: var(--sp-0) var(--sp-3);
    border: 1px solid var(--border-strong);
    white-space: nowrap;
}
.rz-chip.is-ok { background: var(--rz-ok-bg); border-color: var(--rz-ok-bd); color: var(--rz-ok); }
.rz-chip.is-warn { background: var(--rz-warn-bg); border-color: var(--rz-warn-bd); color: var(--rz-warn); }
.rz-chip.is-bad { background: var(--rz-bad-bg); border-color: var(--rz-bad-bd); color: var(--rz-bad); }
.rz-metrics, .rz-skel { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.rz-metrics code, .rz-skel code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    padding: 1px var(--sp-2);
    margin-right: var(--sp-2);
}
.rz-tips {
    margin: var(--sp-3) 0 0;
    padding-left: var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: grid;
    gap: var(--sp-1);
    line-height: 1.55;
}
.rz-chips-empty, .rz-empty-note {
    color: var(--text-dim);
    font-size: var(--fs-sm);
    margin: 0;
    line-height: 1.6;
}
.rz-empty-note {
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    max-width: 70ch;
}

/* ---- Machine view -------------------------------------------------------- */
.rz-mblock { margin-bottom: var(--sp-6); }
.rz-mblock h3 {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 0 0 var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.rz-tag-n {
    font-size: var(--fs-xs);
    background: var(--surface-3);
    color: var(--text-muted);
    border-radius: var(--r-full);
    padding: 0 var(--sp-2);
    letter-spacing: 0;
}
.rz-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-3);
    margin: 0;
}
.rz-field {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: var(--sp-3);
    min-width: 0;
}
.rz-field.is-missing { border-color: var(--rz-bad-bd); background: var(--rz-bad-bg); }
.rz-field dt { font-size: var(--fs-xs); color: var(--text-dim); margin-bottom: 2px; }
.rz-field dd {
    margin: 0;
    font-size: var(--fs-sm);
    overflow-wrap: break-word;
    word-break: break-word;
}
.rz-none { color: var(--rz-bad); font-style: italic; }
.rz-field-note { color: var(--text-dim); font-size: var(--fs-xs); }

.rz-secs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rz-sec {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    padding: var(--sp-1) var(--sp-3);
}
.rz-sec.is-ok .ic { color: var(--rz-ok); }
.rz-sec.is-bad { border-color: var(--rz-warn-bd); background: var(--rz-warn-bg); }
.rz-sec.is-bad .ic { color: var(--rz-warn); }
.rz-sec em { color: var(--text-dim); font-size: var(--fs-xs); }

.rz-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.rz-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.rz-table th, .rz-table td {
    text-align: left;
    padding: var(--sp-3);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.rz-table thead th {
    background: var(--surface-2);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
}
.rz-table tbody tr:last-child td { border-bottom: 0; }
.rz-table-note td {
    color: var(--text-dim);
    font-size: var(--fs-xs);
    background: var(--bg-subtle);
    line-height: 1.5;
}
.rz-table-note .ic { vertical-align: -3px; margin-right: var(--sp-2); }
.rz-table-match td:last-child { width: 10rem; }
.rz-tenure { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.rz-skill-h {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    margin: var(--sp-4) 0 var(--sp-2);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.rz-skill-h:first-of-type { margin-top: 0; }

/* ---- Match --------------------------------------------------------------- */
.rz-matchstat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}
.rz-matchstat > div {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    text-align: center;
}
.rz-matchstat b { display: block; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.rz-matchstat span { display: block; color: var(--text-dim); font-size: var(--fs-xs); margin-top: 2px; }

/* ---- Footer and offscreen ------------------------------------------------ */
.rz-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    margin: var(--sp-7) 0 0;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: var(--fs-sm);
}
.rz-foot .ic { color: var(--rz-ok); }
.rz-copybox { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---- Clean copy: the offer ----------------------------------------------- */
/* One card: text on the left, a page-shaped sketch on the right. It replaced
   two columns of finding cards — four on one side, eleven on the other, so one
   column ended in a wall of empty space, and every row was already on the
   Fixes tab one click away. Fifteen gray boxes is the report again with a
   button on top, not an offer. */
.rz-rb-offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp-6);
    align-items: center;
    padding: var(--sp-5);
    margin-bottom: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.rz-rb-offer-body h3 {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-lg);
    color: var(--text);
}
.rz-rb-offer-body h3 .ic { color: var(--accent); flex: none; }
.rz-rb-offer-body p {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 62ch;
}
.rz-rb-offer-not { color: var(--text-dim); }
.rz-rb-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3) var(--sp-4);
    margin-top: var(--sp-4);
}
.rz-rb-cta .btn { flex: none; }
.rz-rb-cta-note { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
/* A sketch of a page, not a preview: nothing is built yet to preview, and a
   fake preview of the reader's own resume would misrepresent what has
   happened so far. */
.rz-rb-offer-art { flex: none; }
.rz-rb-page {
    width: 132px;
    height: 180px;
    padding: var(--sp-4) var(--sp-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.rz-rb-page i { display: block; height: 4px; border-radius: var(--r-2xs); background: var(--surface-3); }
.rz-rb-page i.is-title { height: 9px; width: 58%; margin: 0 auto var(--sp-0); background: var(--text-dim); }
.rz-rb-page i.is-sub { height: 3px; width: 72%; margin: 0 auto var(--sp-1); }
.rz-rb-page i.is-short { width: 64%; }
.rz-rb-page i.rz-rb-rule { height: 1px; background: var(--border); border-radius: 0; margin: var(--sp-0) 0; }

/* ---- Clean copy: locked ------------------------------------------------- */
/* Behind glass rather than hidden. Shaped after the site's own content gate,
   with the markup copied into this namespace rather than shared: the
   edge-entitlements spec deletes that include, and a panel that broke when it
   went would be a poor trade for sharing a class name.
   pointer-events and user-select are off so the clipped text cannot be
   selected and pasted out of the page. */
.rz-rb-clipwrap { position: relative; margin-bottom: var(--sp-4); }
.rz-rb-clipped {
    max-height: 190px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 100%);
    user-select: none;
    pointer-events: none;
}
.rz-paywall {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    padding: var(--sp-5);
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rz-paywall::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.rz-pw-icon {
    width: 44px;
    height: 44px;
    margin: var(--sp-2) auto var(--sp-3);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    /* 13px, not --r-lg. This whole block is .sc-pw-icon from
       _includes/content-gate.html copied value for value — 44px box, accent at
       14%, 13px corner — so that the two paywall cards on this site are the
       same object. Tokenising this one to 14px was briefly tried: it changes
       nothing anyone can see and desynchronises it from the card it was copied
       from, which is the opposite of the tidying it looked like. */
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rz-pw-icon .ic { width: 22px; height: 22px; color: var(--accent); }
/* Reset the uppercase .rz-mblock h3 treatment: inside the card it is a
   heading, not a section label, and it was rendering as a tracked-out
   all-caps strip. */
.rz-paywall h3 {
    display: block;
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}
.rz-paywall > p {
    margin: 0 auto var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 54ch;
}
.rz-pw-what {
    list-style: none;
    display: grid;
    gap: var(--sp-2);
    margin: 0 auto var(--sp-4);
    padding: 0;
    text-align: left;
    max-width: 40ch;
    font-size: var(--fs-sm);
}
.rz-pw-what li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.rz-pw-what .ic { color: var(--rz-ok); flex: none; margin-top: 3px; }
.rz-pw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
    justify-content: center;
}
/* .btn-ghost is borderless and muted on purpose, which reads correctly as the
   third tier of a toolbar and not at all on this card: centred beside "Sign
   in" with nothing else around it, the one link that explains what Pro is
   rendered as plain bold text and did not look clickable.
   The treatment is .sc-pw-alt's from _includes/content-gate.html, the
   secondary button on the site's own paywall: a hairline border at rest and an
   accent border on hover. Only those two properties are set here, because
   .btn-ghost already supplies the muted rest colour and the --text hover
   colour that .sc-pw-alt spells out for itself. */
.rz-pw-actions .btn-ghost { border-color: var(--border); }
.rz-pw-actions .btn-ghost:hover { border-color: var(--accent); }
.rz-pw-note {
    margin: 0;
    flex-basis: 100%;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ---- Clean copy: the audit trail, folded --------------------------------- */
/* Every edit, every review note, every line removed. It was all expanded and
   stacked, which is what made this panel ten thousand pixels tall. It is not
   unimportant — a tool that rewrote someone's words owes them the list — but
   it is reference, and reference belongs behind a disclosure. */
.rz-fold {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    margin-bottom: var(--sp-3);
}
.rz-fold > summary {
    cursor: pointer;
    list-style: none;
    padding: var(--sp-3) var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.rz-fold > summary::-webkit-details-marker { display: none; }
.rz-fold > summary::marker { content: ""; }
.rz-fold > summary:hover { color: var(--text); }
.rz-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rz-fold > summary .ic { flex: none; }
.rz-fold > summary .rz-tag-n { margin-left: auto; }
.rz-fold[open] > summary { color: var(--text); border-bottom: 1px solid var(--border); }
.rz-fold-body { padding: var(--sp-4); }
.rz-fold-body > .rz-note:first-child { margin-top: 0; }
.rz-fold-body > :last-child { margin-bottom: 0; }

/* ---- Clean copy: the verdict --------------------------------------------- */
/* The score the copy would get, before the download is reachable. A number on
   its own invites the wrong conclusion either way — a small gain reads as the
   tool having done nothing, a large one as the resume now being fixed — so the
   remaining cost is itemised directly beneath it. */
.rz-rb-verdict {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg, var(--r-md));
    padding: var(--sp-5);
    margin-bottom: var(--sp-6);
}
.rz-rb-nums {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.rz-rb-num { display: flex; flex-direction: column; }
/* --fs-2xl, not the 2rem this started as. The hero figure on this page is the
   132px ring at the top; these two are the secondary pair, so they borrow
   .rz-score-text h2's step rather than inventing an eighth size for the
   panel. The arrow between them is decoration and was 1.5rem for no reason. */
.rz-rb-num b {
    font-size: var(--fs-2xl);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
}
.rz-rb-num.is-after b { color: var(--text); }
.rz-rb-num span { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-1); }
.rz-rb-arrow { font-size: var(--fs-lg); color: var(--text-muted); }
.rz-rb-delta {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: var(--fs-md);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.rz-rb-delta.is-up { color: var(--rz-ok); }
.rz-rb-delta.is-flat { color: var(--text-dim); }
.rz-rb-delta span {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--sp-1);
}
.rz-rb-verdict-say {
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-sm);
    line-height: 1.6;
}
.rz-rb-verdict .rz-dims { margin-bottom: var(--sp-4); }
.rz-dim-was { color: var(--text-muted); font-weight: 400; }
.rz-rb-left-h {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 0 0 var(--sp-3);
}

/* The findings still costing the copy points.
   A bad resume leaves eleven of them, and each was a bordered .rz-rb-left
   card sitting inside the already-bordered verdict panel: card-on-card, five
   hundred pixels of chrome for eleven short strings.
   Hairline rows instead, on .rz-dim's grid — the cost lands in the same
   3.5rem right-aligned track as the /25 and /20 figures in the dimension
   rows directly above, so the two lists in this card share an edge and the
   numbers read as one column. The rule under each row is what makes that
   work at this width: it is the leader that carries the eye from the title
   to its figure, which is exactly what the old card chrome broke. */
.rz-rb-cost {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.rz-rb-cost li {
    display: grid;
    grid-template-columns: auto 1fr 3.5rem;
    gap: var(--sp-2h);
    align-items: baseline;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    line-height: 1.55;
}
.rz-rb-cost li .ic { align-self: start; margin-top: 2px; }
.rz-rb-cost li > span { min-width: 0; }
.rz-rb-cost li.is-error .ic { color: var(--rz-bad); }
.rz-rb-cost li.is-warn .ic { color: var(--rz-warn); }
.rz-rb-cost li.is-info .ic { color: var(--text-dim); }
.rz-rb-cost li > em {
    font-style: normal;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
/* The fold for the cheap end of the list. Deliberately not .rz-fold, which is
   a bordered disclosure built to carry the whole audit trail; this is one
   line of text that continues the list above it. */
.rz-rb-cost-more { margin-top: var(--sp-3); }
.rz-rb-cost-more > summary {
    cursor: pointer;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    list-style: none;
}
.rz-rb-cost-more > summary::-webkit-details-marker { display: none; }
/* Triangles rather than + and −. The open marker was "\2212", which put a
   minus sign immediately below a right-aligned column of −11, −8, −6: the
   summary read as a finding costing 5 points rather than as a toggle. The
   space is non-breaking because a trailing one in `content` collapses. */
.rz-rb-cost-more > summary::before {
    content: "\25B8\00a0";
    color: var(--text-dim);
}
.rz-rb-cost-more[open] > summary::before { content: "\25BE\00a0"; }
.rz-rb-cost-more > summary:hover { color: var(--text); }
.rz-rb-cost-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz-rb-cost-more .rz-rb-cost { margin-top: var(--sp-2); }

/* ---- Clean copy ---------------------------------------------------------- */
/* The one panel that hands back a document rather than a verdict. Two list
   shapes: a flat row for what was and was not fixed, and a before/after pair
   for each edit. The edits use <del> and <ins> rather than two tones, so the
   distinction survives a monochrome print and a reader who cannot separate
   the colours. */
.rz-rb-left, .rz-rb-done, .rz-rb-review {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
}
.rz-rb-left li, .rz-rb-done li, .rz-rb-review li {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    font-size: var(--fs-sm);
    line-height: 1.55;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3);
}
.rz-rb-left li .ic, .rz-rb-done li .ic, .rz-rb-review li .ic { flex: none; margin-top: 3px; }
.rz-rb-left li > span, .rz-rb-done li > span, .rz-rb-review li > span { flex: 1; min-width: 0; }
.rz-rb-left li.is-error .ic { color: var(--rz-bad); }
.rz-rb-left li.is-warn .ic { color: var(--rz-warn); }
.rz-rb-left li.is-info .ic { color: var(--text-dim); }
.rz-rb-done li { border-color: var(--rz-ok-bd); }
.rz-rb-done li .ic { color: var(--rz-ok); }
.rz-rb-left li > em {
    flex: none;
    font-style: normal;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
}
.rz-rb-diffs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--sp-3);
}
.rz-rb-diffs > li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
}
.rz-rb-diff-head {
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
}
.rz-rb-was, .rz-rb-now {
    margin: 0 0 var(--sp-1);
    font-size: var(--fs-sm);
    line-height: 1.55;
}
.rz-rb-now { margin-bottom: 0; }
.rz-rb-was del {
    text-decoration: line-through;
    text-decoration-color: var(--rz-bad);
    color: var(--text-dim);
}
.rz-rb-now ins {
    text-decoration: none;
    background: var(--rz-ok-bg);
    border-radius: var(--r-xs);
    padding: 0 var(--sp-1);
}
.rz-rb-now em { color: var(--text-dim); font-size: var(--fs-xs); }
.rz-rb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}
/* The copy itself, shown as it will be saved: monospace and pre-wrapped, so
   what is on screen is what the download contains. Capped and scrollable
   because a two-page resume is longer than the panel. */
.rz-rb-text {
    margin: 0;
    max-height: 32rem;
    overflow: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.rz-rb-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The out-of-order warning. Loud on purpose: it is the one thing in this panel
   that has to be read before the button next to it is pressed. */
.rz-rb-stop {
    background: var(--rz-bad-bg);
    border: 1px solid var(--rz-bad-bd);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.rz-rb-stop h3 {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-md);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}
.rz-rb-stop h3 .ic { color: var(--rz-bad); flex: none; }
.rz-rb-stop p { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); line-height: 1.6; }
.rz-rb-stop p:last-child { margin-bottom: 0; }
.rz-rb-stop .rz-rb-left { margin-bottom: var(--sp-3); }
.rz-rb-ack {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-sm);
}
.rz-rb-ack label { display: flex; gap: var(--sp-2); align-items: flex-start; cursor: pointer; }
.rz-rb-ack input { margin-top: 3px; flex: none; }
.rz-rb-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* Empty until the PDF build has something to say, which is why it collapses
   rather than reserving space. */
.rz-rb-warn { display: none; }
.rz-rb-warn.is-on {
    display: block;
    margin: 0 0 var(--sp-3);
    padding: var(--sp-3);
    background: var(--rz-warn-bg);
    border: 1px solid var(--rz-warn-bd);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .rz-grid { grid-template-columns: 1fr; }
    .rz-dim { grid-template-columns: 9rem 1fr 4rem; }
}
@media (max-width: 620px) {
    #rz-app { padding: var(--sp-5) var(--sp-3) var(--sp-7); }
    /* The page sketch is decoration, and 132px of it beside the text leaves
       the text about 220px wide on a phone. It goes. */
    .rz-rb-offer { grid-template-columns: 1fr; gap: var(--sp-4); }
    .rz-rb-offer-art { display: none; }
    .rz-rb-nums { gap: var(--sp-3); }
    .rz-rb-delta { margin-left: 0; align-items: flex-start; flex-basis: 100%; }
    .rz-paywall { padding: var(--sp-4); }
    .rz-pw-actions .btn { flex: 1 1 auto; justify-content: center; }
    .rz-card { padding: var(--sp-4); }
    .rz-score-head { gap: var(--sp-4); }
    .rz-dim {
        grid-template-columns: 1fr auto;
        grid-template-areas: "label num" "bar bar";
        gap: var(--sp-1) var(--sp-3);
    }
    .rz-dim-label { grid-area: label; }
    .rz-dim-num { grid-area: num; }
    .rz-dim-bar { grid-area: bar; }
    /* The same move, for the scan's stage rows. A label and a right-aligned
       figure do not both fit on a 390px row: "Checking every bullet" wrapped
       to two lines with "8 bullets, 2 with a measurable outcome" squeezed in
       beside it. The figure drops under its label and goes left-aligned,
       where it has the whole row. Empty details are removed rather than left
       to hold open a row of their own. */
    .rz-stage {
        grid-template-columns: 22px 1fr;
        grid-template-areas: "mark label" ". detail";
        gap: var(--sp-0) var(--sp-3);
    }
    .rz-stage-mark { grid-area: mark; }
    .rz-stage-label { grid-area: label; }
    .rz-stage-detail { grid-area: detail; text-align: left; }
    .rz-stage-detail:empty { display: none; }
    /* 32px of card padding inside #rz-app's own gutter leaves very little
       room for the text on a phone. Matches .rz-card and .rz-paywall, which
       step down at this width for the same reason. */
    .rz-scanning { padding: var(--sp-4); margin: var(--sp-4) auto; }
    .rz-bar, .rz-bar-right { width: 100%; }
    .rz-bar-right { justify-content: flex-start; }
    .rz-find > details > summary { flex-wrap: wrap; }
    .rz-find-title { flex-basis: 100%; order: 3; }
}
@media (max-width: 420px) {
    .rz-ring { width: 64px; height: 64px; }
    .rz-score-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .rz-ring-fg, .rz-dim-fill, .rz-drop, .rz-tab, .rz-scan-bar i { transition: none; }
    /* app.js also drops the per-stage delay to zero under this preference, so
       the stage list completes in one frame and the spinner never shows. */
    .rz-stage.is-now .rz-stage-mark::before { animation: none; border-top-color: var(--accent); }
}

/* ---- Print --------------------------------------------------------------- */
/* The report is a to-do list someone will want on paper beside their resume,
   so printing is a real path rather than a courtesy: open every finding,
   drop the controls, and let the panels fall into one column. */
@media print {
    #rz-app { max-width: none; padding: 0; }
    .rz-bar, .rz-tabs, .rz-foot, .rz-cta, .rz-drop, .rz-file { display: none !important; }
    .rz-find, .rz-bullet, .rz-score, .rz-card, .rz-field, .rz-matchstat > div {
        border-color: #999;
        background: none;
        break-inside: avoid;
    }
    .rz-find > details, .rz-paste { display: block !important; }
    .rz-find-body { display: block !important; }
    .rz-fix { background: none; border: 1px solid #999; }
    .rz-panel { break-before: auto; }
    .rz-ring-num { fill: #000; }
    .rz-rb-actions { display: none !important; }
    .rz-rb-left li, .rz-rb-done li, .rz-rb-review li, .rz-rb-diffs > li, .rz-rb-text,
    .rz-rb-cost, .rz-rb-cost li {
        border-color: #999;
        background: none;
        break-inside: avoid;
    }
    /* The cheap end of the ledger folds away on screen to keep the panel
       short. Paper has no scroll to save and this list is the whole reason
       someone printed the page, so it goes out complete. The summary line
       stays visible rather than being hidden on the assumption the reveal
       worked: whether display on a closed <details> child reveals it is
       engine-dependent, and the summary carries the count and the total, so
       keeping it means a browser that ignores the next rule loses nothing. */
    .rz-rb-cost-more .rz-rb-cost { display: block !important; }
    /* On paper the copy is the point of the page, so it is printed whole
       rather than clipped to the scroll box it lives in on screen. */
    .rz-rb-text { max-height: none; overflow: visible; }
    .rz-rb-now ins { background: none; border-bottom: 1px solid #999; }
}

/* ---------------------------------------------------------------------------
   PROSE LINKS IN .rz-about
   ---------------------------------------------------------------------------
   This section is ordinary prose, but it sits in `<main>` rather than inside
   `.content`, so `.content a` in content.css never reached it and nothing else
   styled an `<a>` on this page. Four links in "Elsewhere on the site"
   therefore rendered in the USER AGENT's default link colour, #0000EE, which
   on this dark theme measured 2.01:1 against the page background -- below the
   4.5:1 WCAG AA floor and, by eye, close to invisible.

   Same declarations as `.content a`, so the page matches every other prose
   link on the site rather than inventing a third link style. Scoped to
   .rz-about on purpose: the rest of resume.css styles app chrome whose links
   are buttons and cards with their own colours, and a bare `a` rule would
   repaint those too.
   --------------------------------------------------------------------------- */
.rz-about a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
.rz-about a:hover { color: var(--accent-hover); }
