/* PathKEY — the report viewer and the A4 sheets (design §12.7). Owned by the
   respondent & report workstream. Loaded with data-report-css, so the
   downloaded web page carries exactly these rules.

   The sheets paint with --rp-* variables. The AlignmentKey brand layer (the
   default Report style) maps them to the v3 role tokens; the "Current" style
   keeps the colours coaches knew before v3 as literal print colours (the one
   documented exception to "tokens only", test/tokens.test.mjs).

   Narrow-screen rules are scoped to `screen`: the printed page is 210 mm
   wide, and an unscoped max-width query would match it (audit REPORT-04). */

/* ============================================================ palette === */
.report-stage {
  --rp-ink: var(--text);
  --rp-text: var(--text);
  --rp-text-2: var(--text-2);
  --rp-muted: var(--text-muted);
  --rp-line: var(--line);
  --rp-line-strong: var(--line-strong);
  --rp-channel: var(--line-control);
  --rp-soft: var(--bg-subtle);
  --rp-accent: var(--text-eyebrow);
  --rp-mark: var(--accent);
  --rp-accent-soft: var(--accent-soft);
  --rp-accent-soft-2: var(--accent-soft-2);
  --rp-accent-line: var(--accent-line);
  --rp-accent-strong: var(--accent-text);
  --rp-hi: var(--highlight);
  --rp-hi-text: var(--highlight-text);
  --rp-hi-soft: var(--highlight-soft);
  --rp-title-accent: var(--text-heading-accent);
  --rp-track: var(--data-track);
  --rp-grad-a: var(--data);
  --rp-grad-b: var(--ak-teal-grad-end);   /* the website's score-bar gradient end */
  --rp-zone-low: var(--zone-low);
  --rp-zone-mid: var(--zone-mid);
  --rp-zone-high: var(--zone-high);
  --rp-paper: var(--bg-surface);
  --rp-wash: var(--wash-image);
}
.report-stage[data-style="current"] {
  --rp-ink: #14171F; --rp-text: #14171F; --rp-text-2: #39404E; --rp-muted: #667081;
  --rp-line: #DEE2E9; --rp-line-strong: #B6BDC9; --rp-channel: #C9CED6; --rp-soft: #F6F7F9;
  --rp-accent: #16706B; --rp-mark: #16706B; --rp-accent-soft: #DCEEEC; --rp-accent-soft-2: #C9E4E1; --rp-accent-line: #9CCBC6; --rp-accent-strong: #0F4F4B;
  --rp-hi: #B0803A; --rp-hi-text: #6E4F21; --rp-hi-soft: #F3E7D2; --rp-title-accent: #14171F;
  --rp-track: #E6E9EE; --rp-grad-a: #16706B; --rp-grad-b: #16706B;
  --rp-zone-low: #EFF1F4; --rp-zone-mid: #DCEEEC; --rp-zone-high: #9CCBC6;
  --rp-paper: #FFFFFF; --rp-wash: none;
}

/* v5.2 (docs/v52-mvp.md 6.6): a report prints in any language of public/locales.js; after
   the brand font, fonts that carry Greek, Cyrillic, Chinese, Japanese, Korean,
   Devanagari and Vietnamese, so no glyph is missing. */
:root {
  --rp-font: "Rubik", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
}
.report-stage:lang(ja) { --rp-font: "Rubik", "Noto Sans JP", "Noto Sans", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
.report-stage:lang(ko) { --rp-font: "Rubik", "Noto Sans KR", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
.report-stage:lang(zh) { --rp-font: "Rubik", "Noto Sans SC", "Noto Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.report-stage:lang(hi) { --rp-font: "Rubik", "Noto Sans Devanagari", "Noto Sans", "Kohinoor Devanagari", "Nirmala UI", system-ui, sans-serif; }

/* ====================================================== the stage (screen) === */
.report-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-4) var(--sp-12); background: var(--bg-desk);
}
.s-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================== sheets === */
.sheet {
  width: 210mm; min-height: 297mm; max-width: 100%; flex: none;
  display: flex; flex-direction: column;
  padding: 16mm 18mm 11mm; background: var(--rp-paper); color: var(--rp-text);
  font-family: var(--rp-font); font-size: 10.5pt; line-height: 1.58;
  box-shadow: var(--shadow-2);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  hyphens: manual; overflow-wrap: break-word;
}
/* Long Turkish and Polish words may break in running text; names, labels,
   callouts, ledes and anything English never do. */
.report-stage:not(:lang(en)) .s-article > p { hyphens: auto; }
.sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7mm; min-width: 0; }
.sheet h1, .sheet h2, .sheet h3 { color: var(--rp-ink); margin: 0; text-wrap: balance; }
.sheet h2 { font-size: 20pt; line-height: 1.15; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.sheet h3, .sheet .s-h { font-size: 13.5pt; line-height: 1.25; font-weight: var(--fw-bold); letter-spacing: -0.012em; }
.sheet p, .sheet li { margin: 0; max-width: 70ch; text-wrap: pretty; orphans: 3; widows: 3; }
.sheet a { color: var(--rp-accent); text-decoration: underline; text-underline-offset: 1.5pt; }
.sheet .num { font-variant-numeric: tabular-nums lining-nums; }
.sheet :is(.s-scorerow, .s-rung, .s-top, .s-contact li, .s-disclaimer, .s-placeholder) { max-width: none; }

.s-eyebrow, .s-label {
  font-size: 7.5pt; line-height: 1.3; font-weight: var(--fw-bold); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rp-accent);
}
.s-label { color: var(--rp-muted); letter-spacing: 0.1em; }
.s-head { display: flex; flex-direction: column; gap: 2.2mm; }
.s-head::after { content: ""; width: 14mm; border-top: 0.9mm solid var(--rp-mark); margin-top: 1.5mm; }
.s-lede { color: var(--rp-text-2); font-size: 10.5pt; }
.s-lede-rich { display: flex; flex-direction: column; gap: 2.5mm; color: var(--rp-text-2); }
.s-legend { font-size: 8.5pt; color: var(--rp-muted); margin-top: -3mm; }
/* a part that starts part-way down a sheet: a hairline and air above it */
.sheet-body > [data-part-start]:not(:first-child) { margin-top: 3mm; padding-top: 7mm; border-top: 0.5pt solid var(--rp-line); }
.s-block { display: flex; flex-direction: column; gap: 5mm; }
.s-article { display: flex; flex-direction: column; gap: 3mm; }
.s-article.is-continued { padding-top: 0; }
.s-list { margin: 0; padding-left: 5mm; display: flex; flex-direction: column; gap: 1.5mm; }
.s-list li::marker { color: var(--rp-hi); }
/* a key point ("> " in the copy): a boxed takeaway with its label */
.s-takeaway {
  display: flex; flex-direction: column; gap: 1.2mm; margin: 0.5mm 0; padding: 3mm 4.5mm;
  border: 0.6pt solid var(--rp-accent-line); border-left: 1.2mm solid var(--rp-mark); border-radius: 0 2mm 2mm 0;
  background: var(--rp-accent-soft); break-inside: avoid;
}
.s-takeaway p { color: var(--rp-ink); font-weight: var(--fw-medium); }
.sheet .s-takeaway-label { font-size: 7pt; line-height: 1.3; font-weight: var(--fw-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rp-accent); }

/* contents (when the product's outline asks for it) */
.s-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-toc li { display: grid; grid-template-columns: 10mm minmax(0, 1fr) auto; align-items: baseline; gap: 4mm; max-width: none; padding: 3mm 0; border-bottom: 0.5pt solid var(--rp-line); }
.s-toc-n { font-size: 9pt; font-weight: var(--fw-bold); color: var(--rp-accent); }
.s-toc-label { font-size: 12pt; font-weight: var(--fw-medium); color: var(--rp-ink); }
.s-toc-page { font-size: 11pt; font-weight: var(--fw-bold); color: var(--rp-ink); }

/* chips: a border as well as a fill, so they read with backgrounds off */
.s-chip {
  display: inline-block; flex: none; align-self: center; padding: 0.5mm 2.2mm; border: 0.6pt solid var(--rp-line-strong); border-radius: 8pt;
  font-size: 7pt; line-height: 1.4; font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--rp-soft); color: var(--rp-muted);
}
.s-chip.is-high { background: var(--rp-accent-soft-2); border-color: var(--rp-mark); color: var(--rp-accent-strong); }
.s-chip.is-mid { background: var(--rp-paper); border-color: var(--rp-accent-line); color: var(--rp-accent); }

/* score bars (SVG, so they print whatever the background setting) */
.s-bar { display: block; width: 100%; height: 8px; overflow: visible; }
.s-bar-track { fill: var(--rp-track); stroke: var(--rp-line); stroke-width: 0.5; }
.s-bar-fill { fill: url(#rp-grad); }
.s-bar.is-hi .s-bar-fill { fill: var(--rp-hi); }
.s-grad-a { stop-color: var(--rp-grad-a); }
.s-grad-b { stop-color: var(--rp-grad-b); }

/* the running foot: mark + "PathKEY Career · Name" and "3 / 48" */
.sheet-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6mm;
  margin-top: 6mm; padding-top: 3mm; border-top: 0.5pt solid var(--rp-line);
  font-size: 7.5pt; line-height: 1.3; color: var(--rp-muted);
}
.s-foot-id { display: inline-flex; align-items: center; gap: 2mm; min-width: 0; }
.s-foot-mark { width: 4mm; height: 4mm; flex: none; }
.s-pageno { flex: none; }

/* ================================================================ cover === */
.sheet-cover { border-top: 1.4mm solid var(--rp-hi); background: var(--rp-wash) top left / 100% 110mm no-repeat, var(--rp-paper); }
.s-cover-top { display: flex; align-items: flex-start; }
.s-lockup { height: 14mm; width: auto; display: block; }
/* one block in the upper half: what it is, whose it is; the facts at the foot */
.s-cover-main { margin: 46mm 0 auto; display: flex; flex-direction: column; gap: 4mm; }
.sheet .s-title { font-size: 36pt; line-height: 1.04; font-weight: var(--fw-bold); letter-spacing: -0.03em; max-width: 15ch; }
.s-title-accent { color: var(--rp-title-accent); }
.s-subtitle { font-size: 13pt; line-height: 1.45; color: var(--rp-text-2); max-width: 46ch; }
.s-cover-for { display: flex; flex-direction: column; gap: 1.8mm; margin-top: 9mm; padding-top: 7mm; border-top: 0.6pt solid var(--rp-line); max-width: 120mm; }
.sheet .s-cover-name { font-size: 23pt; line-height: 1.12; font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--rp-ink); max-width: none; }
/* what the report holds, above the facts (when there is no contents page) */
.s-cover-inside { display: flex; flex-direction: column; gap: 3.5mm; margin-bottom: 9mm; }
.s-inside { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8mm; max-width: 150mm; }
.sheet .s-inside li { display: flex; align-items: center; gap: 3mm; max-width: none; margin-bottom: 3mm; break-inside: avoid; font-size: 10.5pt; line-height: 1.3; font-weight: var(--fw-medium); color: var(--rp-ink); }
.s-inside-n { flex: none; display: grid; place-items: center; width: 6mm; height: 6mm; border-radius: 50%; border: 0.6pt solid var(--rp-mark); background: var(--rp-mark); color: var(--rp-paper); font-size: 7.5pt; font-weight: var(--fw-bold); }
.s-meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm 6mm; padding-top: 6mm; border-top: 0.6pt solid var(--rp-line); }
.s-meta dt { font-size: 7.5pt; letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--fw-bold); color: var(--rp-muted); }
.s-meta dd { margin: 1.2mm 0 0; font-size: 11pt; line-height: 1.35; color: var(--rp-ink); font-weight: var(--fw-medium); }
.report-stage[data-style="current"] .sheet-cover { border-top-color: var(--rp-hi); }
.report-stage[data-style="current"] .s-lockup { height: 12mm; }

/* ========================================================== at a glance === */
.s-top3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; }
.s-top { display: flex; flex-direction: column; gap: 2mm; padding: 4mm; border: 0.6pt solid var(--rp-line); border-radius: 3mm; break-inside: avoid; }
.s-rankdot { display: grid; place-items: center; width: 6mm; height: 6mm; border-radius: 50%; background: var(--rp-mark); color: var(--rp-paper); font-size: 8pt; font-weight: var(--fw-bold); border: 0.6pt solid var(--rp-mark); }
.s-top-label { font-size: 10.5pt; line-height: 1.3; font-weight: var(--fw-semibold); color: var(--rp-ink); min-height: 2.6em; }
.s-top-score { display: flex; align-items: baseline; gap: 2.5mm; margin-top: auto; }
.s-huge { font-size: 26pt; line-height: 1; font-weight: var(--fw-bold); letter-spacing: -0.03em; color: var(--rp-accent); }
.s-scores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-scorerow { display: grid; grid-template-columns: minmax(0, 1fr) 52mm 9mm 13mm; align-items: center; gap: 4mm; padding: 1.6mm 0; border-bottom: 0.5pt solid var(--rp-line); }
.s-scorerow:last-child { border-bottom: 0; }
.s-scorerow-label { font-size: 10pt; }
.s-scorerow-th { display: block; font-size: 7pt; line-height: 1.3; color: var(--rp-muted); }
.s-scorerow-value { text-align: right; font-weight: var(--fw-bold); }
.s-scorerow-band { font-size: 7.5pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rp-muted); }

/* ================================================== profile: score card === */
.s-scorecard { display: flex; flex-direction: column; gap: 2.5mm; padding: 4mm 5mm 3mm; border: 0.6pt solid var(--rp-line); border-radius: 3mm; background: var(--rp-soft); break-inside: avoid; }
.s-scorecard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 4mm; }
.s-scorecard-value { display: flex; align-items: baseline; gap: 2.5mm; }
.s-big { font-size: 22pt; line-height: 1; font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--rp-accent); }
.s-zone { position: relative; padding-bottom: 4.5mm; }
.s-zone-track { display: block; width: 100%; height: 10px; border-radius: 2px; overflow: hidden; }
.z-low { fill: var(--rp-zone-low); }
.z-mid { fill: var(--rp-zone-mid); }
.z-high { fill: var(--rp-zone-high); }
.z-div { stroke: var(--rp-line-strong); stroke-width: 1; }
.s-zone-mark { position: absolute; top: -3px; height: 16px; border-left: 2pt solid var(--rp-ink); margin-left: -1pt; }
.s-zone-words { position: absolute; left: 0; right: 0; bottom: 0; height: 4mm; }
.s-zone-words span { position: absolute; top: 0.6mm; text-align: center; font-size: 6.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rp-muted); }
.sheet .s-zone-legend { font-size: 7.5pt; line-height: 1.3; color: var(--rp-muted); }

/* ======================================================= Human Design === */
.s-hd { display: grid; grid-template-columns: 56mm minmax(0, 1fr); gap: 8mm; align-items: start; }
.s-hd-graph { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3mm; }
.s-bodygraph { width: 52mm; height: auto; display: block; overflow: visible; }
/* a channel is a pair of lines (a tube), filled when defined */
.hd-ch-edge, .hd-ch-core { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hd-ch-edge { stroke: var(--rp-channel); stroke-width: 5.6; }
.hd-ch-core { stroke: var(--rp-paper); stroke-width: 3.4; }
.hd-ch-core.is-on { stroke: var(--rp-mark); }
.hd-centre { fill: var(--rp-paper); stroke: var(--rp-line-strong); stroke-width: 1.6; stroke-linejoin: round; }
.hd-centre.is-on { fill: var(--rp-mark); stroke: var(--rp-accent-strong); }
.hd-gate { fill: var(--rp-hi); stroke: var(--rp-hi-text); stroke-width: 1.1; }
.s-hd-legend { display: grid; grid-template-columns: repeat(2, max-content); gap: 1.5mm 4mm; font-size: 7.5pt; color: var(--rp-muted); }
.s-hd-legend span { display: inline-flex; align-items: center; gap: 1.5mm; }
.s-key { display: inline-block; width: 3mm; height: 3mm; border: 0.8pt solid var(--rp-line-strong); background: var(--rp-paper); border-radius: 0.6mm; }
.s-key.is-on { background: var(--rp-mark); border-color: var(--rp-accent-strong); }
.s-key.is-channel { width: 4mm; height: 1.6mm; border-radius: 0.8mm; background: var(--rp-mark); }
.s-key.is-gate { width: 2.4mm; height: 2.4mm; border-radius: 50%; background: var(--rp-hi); border-color: var(--rp-hi-text); }
.s-hd-facts { display: flex; flex-direction: column; gap: 5mm; }
.s-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm 6mm; }
.s-facts-wide { grid-template-columns: minmax(0, 1fr); padding-top: 4mm; border-top: 0.5pt solid var(--rp-line); }
.s-facts dt { font-size: 7.5pt; letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--fw-bold); color: var(--rp-muted); }
.s-facts dd { margin: 1mm 0 0; font-size: 11pt; line-height: 1.35; color: var(--rp-ink); }
.s-placeholder { padding: 3mm 4mm; border: 0.8pt dashed var(--rp-line-strong); border-radius: 2mm; font-size: 8.5pt; line-height: 1.45; color: var(--rp-text-2); }

/* ====================================================== Future of Work === */
.s-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1mm; }
.s-rung { display: grid; grid-template-columns: 9mm minmax(0, 1fr) 46mm 9mm; align-items: center; gap: 4mm; padding: 1.8mm 3mm; border: 0.6pt solid transparent; border-radius: 2mm; }
.s-rung.is-first { border-color: var(--rp-hi); background: var(--rp-hi-soft); }
.s-rung.is-top { border-color: var(--rp-accent-line); }
.s-rank { font-size: 13pt; font-weight: var(--fw-bold); color: var(--rp-accent); text-align: right; }
.s-rung.is-first .s-rank { color: var(--rp-hi-text); }
.s-rung.is-first .s-rung-label, .s-rung.is-top .s-rung-label { font-weight: var(--fw-semibold); color: var(--rp-ink); }
.s-rung-label { font-size: 10pt; font-weight: var(--fw-medium); }
.s-rung-value { text-align: right; font-weight: var(--fw-bold); }
.s-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; }
.s-callout { display: flex; flex-direction: column; gap: 1.5mm; padding: 3mm 4mm; border-left: 1mm solid var(--rp-mark); background: var(--rp-soft); }
.s-callout + .s-callout { border-left-color: var(--rp-accent-line); }
.s-source { font-size: 7.5pt; color: var(--rp-muted); }

/* ========================== texts by place and the chart (WS-SCORING, v4) === */
/* A score's name heads its text (Sample 1); a list field prints one line per
   item without bullet marks; boxes are tinted, with a coloured rule and their
   title in words, so they read with background graphics off (Sample 2). */
.s-places { display: grid; gap: 6mm; align-items: start; }
.s-places.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 9mm; }
.s-places.is-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; }
.s-place-col, .s-box-items { display: flex; flex-direction: column; gap: 5mm; min-width: 0; }
.s-place-item { display: flex; flex-direction: column; gap: 2mm; min-width: 0; }
.s-places-article > .s-place-item + .s-place-item { margin-top: 2mm; }
.sheet .s-place-name { font-size: 11pt; line-height: 1.3; font-weight: var(--fw-bold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--rp-accent); max-width: none; }
.s-equal { display: inline-block; margin-left: 1.5mm; padding: 0.3mm 2mm; border: 0.6pt solid var(--rp-line-strong); border-radius: 8pt; vertical-align: 1pt;
  font-size: 6.5pt; line-height: 1.4; font-weight: var(--fw-bold); letter-spacing: 0.08em; color: var(--rp-muted); background: var(--rp-paper); }
.sheet .s-place-title { font-size: 12.5pt; line-height: 1.25; font-weight: var(--fw-bold); color: var(--rp-ink); max-width: none; }
.s-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1mm; }
.s-box { display: flex; flex-direction: column; gap: 3.5mm; padding: 4mm 5mm 5mm; border: 0.6pt solid var(--rp-line-strong); border-top-width: 1.4mm;
  border-radius: 2.5mm; background: var(--rp-soft); break-inside: avoid; min-width: 0; }
.s-box.is-gold { border-color: var(--rp-hi); background: var(--rp-hi-soft); }
.s-box.is-gold .s-place-title { color: var(--rp-hi-text); }
.s-box.is-teal { border-color: var(--rp-mark); background: var(--rp-accent-soft); }
.s-box.is-teal .s-place-title { color: var(--rp-accent-strong); }
.s-box.is-wide { grid-column: 1 / -1; }
.s-box.is-wide .s-box-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 9mm; }
/* v4 review F8: the two boxes side by side are one height; and a section may
   ask for solid boxes (for reports printed with background graphics): gold
   with ink, teal and grey with paper-white text. The tints above stay the
   default: they read on any paper. */
.s-places.is-boxes { align-items: stretch; }
.s-places.is-solid .s-box { color: var(--rp-paper); }
.s-places.is-solid .s-box.is-gold { background: var(--rp-hi); border-color: var(--rp-hi); color: var(--rp-ink); }
.s-places.is-solid .s-box.is-teal { background: var(--rp-mark); border-color: var(--rp-mark); }
.s-places.is-solid .s-box.is-grey { background: var(--rp-muted); border-color: var(--rp-muted); }
.s-places.is-solid .s-box :is(.s-place-title, .s-place-name) { color: inherit; }
.s-places.is-solid .s-box .s-list li::marker { color: currentColor; }
/* the chart: labels, bars on a 0–100 % track, values; an axis under the bars */
.s-chart { margin: 0; display: flex; flex-direction: column; gap: 1.8mm; break-inside: avoid; }
.s-chart-row, .s-chart-axis { display: grid; grid-template-columns: 42mm minmax(0, 1fr) 12mm; align-items: center; gap: 3mm; }
.s-chart-row .s-chart-label { font-size: 9.5pt; line-height: 1.25; text-align: right; color: var(--rp-text); }
.s-chart-bar { display: block; width: 100%; height: 14px; overflow: visible; }
.s-chart-track { fill: var(--rp-track); stroke: var(--rp-line); stroke-width: 0.5; }
.s-chart-grid { stroke: var(--rp-line-strong); stroke-width: 0.6; stroke-dasharray: 2 2; }
.s-chart-fill { fill: url(#rp-grad); }
.s-chart-fill.is-hi { fill: var(--rp-hi); }
.s-chart-value { font-size: 9pt; line-height: 1.25; font-weight: var(--fw-bold); color: var(--rp-ink); }
.s-chart-ticks { position: relative; height: 4mm; }
.s-chart-ticks span, .s-chart-yaxis span { position: absolute; font-size: 7.5pt; line-height: 1; color: var(--rp-muted); white-space: nowrap; }
.s-chart-ticks span { top: 0.8mm; transform: translateX(-50%); }
.s-chart.is-vertical .s-chart-plot { display: grid; grid-template-columns: 11mm minmax(0, 1fr); gap: 2mm; }
.s-chart-yaxis { position: relative; height: 55mm; margin-top: 6.5mm; }
.s-chart-yaxis span { right: 0; transform: translateY(50%); }
.s-chart-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3mm; }
.s-chart-col { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; min-width: 0; }
.s-chart-col .s-chart-value { height: 5mm; display: flex; align-items: flex-end; }
.s-chart-vbar { display: block; width: 100%; max-width: 16mm; height: 55mm; }
.s-chart-col .s-chart-label { font-size: 8.5pt; line-height: 1.25; text-align: center; color: var(--rp-text); overflow-wrap: anywhere; }

/* ======================================================= coach's page === */
.s-coach { display: flex; align-items: center; gap: 6mm; }
.s-photo { width: 32mm; height: 32mm; flex: none; border-radius: 50%; object-fit: cover; border: 0.6pt solid var(--rp-line); }
.s-photo.is-initials { display: grid; place-items: center; background: var(--rp-accent-soft); color: var(--rp-accent); border: 0.8pt solid var(--rp-accent-line); font-size: 20pt; font-weight: var(--fw-bold); }
.s-coach-id { display: flex; flex-direction: column; gap: 1.2mm; min-width: 0; }
.s-coach-co { font-size: 11pt; color: var(--rp-text-2); }
.s-coach-cred { font-size: 9pt; color: var(--rp-muted); }
.s-bio { gap: 2.5mm; }
.s-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5mm; font-size: 10pt; }
/* contacts and the foot move together; the foot sits at the bottom of the page */
.s-coach-end { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7mm; }
.s-coach-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3mm; padding-top: 5mm; border-top: 0.5pt solid var(--rp-line); }
.s-foot-lockup { height: 7mm; width: auto; align-self: flex-start; }
.s-disclaimer { font-size: 7.5pt; line-height: 1.45; color: var(--rp-muted); }

/* v5 (plan 7.3): the coach's company logo beside their name, the quote under
   it, the second page, and the logo small at the foot of the cover. */
.s-coach-logo { width: auto; height: 14mm; max-width: 42mm; margin-left: auto; align-self: flex-start; object-fit: contain; }
.s-coach-quote { margin: 1.5mm 0 0; padding-left: 3.5mm; border-left: 0.9mm solid var(--rp-hi); font-size: 10.5pt; font-style: italic; line-height: 1.45; color: var(--rp-text-2); }
.s-coach-quote p { margin: 0; }
.s-coach2 { gap: 2.5mm; }
.s-cover-coach { display: flex; align-items: center; gap: 3mm; margin-top: 7mm; font-size: 8.5pt; color: var(--rp-muted); max-width: none; }
.s-cover-logo { height: 8mm; width: auto; max-width: 30mm; object-fit: contain; }

/* ====================================================== company page (v5) === */
/* The company's words right after the cover (plan 7.2): its logo (only here,
   PAGE-05), its name, the heading, the message (about 1,800 characters fit
   one A4 page) and who signs it. */
.s-company-head { gap: 6mm; }
.s-company-logo { height: 16mm; width: auto; max-width: 60mm; object-fit: contain; align-self: flex-start; }
.s-company-message { gap: 3mm; font-size: 11pt; line-height: 1.62; color: var(--rp-text); }
.s-company-sign { display: flex; align-items: center; gap: 4mm; margin-top: 2mm; padding-top: 5mm; border-top: 0.5pt solid var(--rp-line); }
.s-company-sign p { display: flex; flex-direction: column; gap: 0.6mm; }
.s-signer-photo { width: 16mm; height: 16mm; flex: none; border-radius: 50%; object-fit: cover; border: 0.6pt solid var(--rp-line); }
.s-signer-name { font-size: 11pt; font-weight: var(--fw-bold); color: var(--rp-ink); }
.s-signer-role { font-size: 9pt; color: var(--rp-muted); }

/* ================================================ About AlignmentKey (v5) === */
.s-founders-text { gap: 2.5mm; }
.s-founders { list-style: none; margin: 2mm 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6mm; }
.s-founder { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2mm; max-width: none; }
.s-founder-photo { width: 26mm; height: 26mm; border-radius: 50%; object-fit: cover; border: 0.6pt solid var(--rp-line); margin-bottom: 1.5mm; }
.s-founder-name { font-size: 10.5pt; font-weight: var(--fw-bold); color: var(--rp-ink); }
.s-founder-role { font-size: 9pt; color: var(--rp-muted); }

/* Studio preview (screen only): sample copy wears a dashed outline with a
   "Sample text" tag on it; on paper-sized screens every section has an
   "Edit section" button in the sheet's right margin, shown on hover or focus. */
.s-sample-tag, .s-edit { display: none; }
@media screen {
  .report-stage.is-preview .s-article { position: relative; }
  .report-stage.is-preview [data-sample] { outline: 1.5px dashed var(--highlight-ring); outline-offset: 2mm; border-radius: 1mm; }
  .report-stage.is-preview .s-sample-tag {
    display: inline-flex; align-items: center; position: absolute; z-index: 1; top: calc(-2mm - 10px); left: 3mm; height: 20px; padding: 0 var(--sp-2);
    border: 1px dashed var(--highlight-ring); border-radius: var(--r-full); background: var(--highlight-faint); color: var(--highlight-strong-text);
    font-family: var(--rp-font); font-size: var(--fs-11); line-height: 1; font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none;
  }
}
@media screen {
  .report-stage.is-preview .sheet[data-overflow] { box-shadow: var(--shadow-2), 0 0 0 2px var(--warn); }
}
@media screen and (min-width: 841px) {
  /* The sheet body clips what does not fit on the page; in the preview its
     clip reaches into the sheet's margins (same content box) so the marks show. */
  .report-stage.is-preview .sheet-body { padding: 6mm 18mm 3mm; margin: -6mm -18mm -3mm; }
  .report-stage.is-preview .s-edit {
    display: grid; place-items: center; position: absolute; z-index: 1; top: -1mm; left: calc(100% + 5mm);
    width: 30px; height: 30px; padding: 0; cursor: pointer; border: 1.5px solid var(--accent); border-radius: var(--r-full);
    background: var(--bg-surface); color: var(--accent-text); box-shadow: var(--shadow-2);
    transition: opacity var(--dur-2) var(--ease), background-color var(--dur-1) var(--ease);
  }
  .report-stage.is-preview .s-edit::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 5mm; }
  .report-stage.is-preview .s-edit:hover { background: var(--accent-soft); }
  .report-stage.is-preview .s-edit:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  .report-stage.is-preview .s-article:not([data-sample]):not(:hover):not(:focus-within) .s-edit { opacity: 0; }
}
@media screen and (min-width: 841px) and (hover: none) { .report-stage.is-preview .s-edit { opacity: 1 !important; } }

/* ================================================ measuring (off screen) === */
/* paginate() pours the sheets in here at exactly the printed geometry. */
.report-stage.report-measure {
  position: absolute !important; left: -10000px; top: 0; width: 210mm; padding: 0; gap: 0; display: block;
  visibility: hidden; pointer-events: none; background: none;
}
.report-measure .sheet, .report-stage.is-paginated .sheet { height: 297mm; min-height: 0; }
.report-measure .sheet { box-shadow: none; }
.report-measure .sheet-body { min-height: 0; overflow: hidden; }
/* A page that still holds more than A4 (paginate() flags it data-overflow)
   shows the extra lines instead of cutting them off. */
.report-stage.is-paginated .sheet-body { min-height: 0; overflow: visible; }

/* ============================================= phone: reading mode (R9) === */
@media screen and (max-width: 840px) {
  .report-stage:not(.report-measure) { padding: var(--sp-3) 0 var(--sp-8); gap: var(--sp-3); }
  .report-stage:not(.report-measure) .sheet {
    width: 100%; height: auto; min-height: 0; padding: var(--sp-6) var(--sp-5); box-shadow: none;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6;
  }
  .report-stage:not(.report-measure) .sheet-body { overflow: visible; gap: var(--sp-6); }
  .report-stage:not(.report-measure) .sheet-cover { min-height: 70vh; }
  .report-stage:not(.report-measure) .s-title { font-size: 32px; }
  .report-stage:not(.report-measure) .s-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-stage:not(.report-measure) .s-top3 { grid-template-columns: minmax(0, 1fr); }
  .report-stage:not(.report-measure) .s-scorerow { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: var(--sp-1); }
  .report-stage:not(.report-measure) .s-scorerow .s-bar { grid-column: 1 / -1; grid-row: 2; }
  .report-stage:not(.report-measure) .s-hd { grid-template-columns: minmax(0, 1fr); }
  .report-stage:not(.report-measure) .s-rung { grid-template-columns: 8mm minmax(0, 1fr) auto; row-gap: var(--sp-1); }
  .report-stage:not(.report-measure) .s-rung .s-bar { grid-column: 2 / -1; grid-row: 2; }
  .report-stage:not(.report-measure) .s-callouts { grid-template-columns: minmax(0, 1fr); }
  .report-stage:not(.report-measure) .s-coach { flex-direction: column; align-items: flex-start; }
  /* reading, not paper: no hyphens, no page feet, continued sheets run on */
  .report-stage:not(.report-measure) .s-article > p { hyphens: manual; }
  .report-stage:not(.report-measure) .sheet-foot { display: none; }
  .report-stage:not(.report-measure) .sheet.is-continued { margin-top: calc(-1 * var(--sp-3)); border-top: 0; padding-top: 0; }
  /* …yet a part that opens a continued sheet (the coach's page after a page a section opened) has the air a sheet's top has, under the sheet's line */
  .report-stage:not(.report-measure) .sheet.is-continued > .sheet-body > [data-part-start]:first-child { padding-top: var(--sp-6); }
  .report-stage:not(.report-measure) .sheet-cover { min-height: 0; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
  .report-stage:not(.report-measure) .s-cover-main { margin-top: var(--sp-12); }
  .report-stage:not(.report-measure) .s-cover-name { font-size: 26px; }
  .report-stage:not(.report-measure) .s-cover-inside { margin: var(--sp-8) 0 var(--sp-6); }
  .report-stage:not(.report-measure) .s-inside { columns: 1; }
  .report-stage:not(.report-measure) .s-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .report-stage:not(.report-measure) .s-top-label { min-height: 0; }
  .report-stage:not(.report-measure) .s-top-score { margin-top: 0; }
  .report-stage:not(.report-measure) .s-huge { font-size: 28px; }
  .report-stage:not(.report-measure) .s-toc li { grid-template-columns: 9mm minmax(0, 1fr) auto; }
  /* texts by place and the chart, read on a phone: one column, labels above the bars */
  .report-stage:not(.report-measure) .s-places.is-two,
  .report-stage:not(.report-measure) .s-places.is-boxes,
  .report-stage:not(.report-measure) .s-box.is-wide .s-box-items { grid-template-columns: minmax(0, 1fr); }
  .report-stage:not(.report-measure) .s-chart-row, .report-stage:not(.report-measure) .s-chart-axis { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--sp-1); }
  .report-stage:not(.report-measure) .s-chart-row .s-chart-label { text-align: left; grid-column: 1 / -1; }
  .report-stage:not(.report-measure) .s-chart-axis > span:first-child { display: none; }
}

/* ================================================================ print === */
@media print {
  @page { size: A4; margin: 0; }
  .report-stage { display: block; padding: 0; gap: 0; background: none; }
  .sheet { box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  .report-stage:not(.is-paginated) .sheet { min-height: 297mm; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .s-article, .s-block, .s-top, .s-scorecard, .s-rung, .s-callout, .s-head, .sheet h2, .sheet h3, .s-box, .s-chart { break-inside: avoid; }
  .sheet h2, .sheet h3, .s-head { break-after: avoid; }
  [data-screen-only] { display: none !important; }
}

/* ======================================================== the viewer === */
.report-bar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5); background: var(--bg-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.rb-lead { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; flex: 1 1 320px; }
.rb-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-title { font-size: 18px; line-height: 24px; font-weight: var(--fw-bold); letter-spacing: var(--track-tight); overflow-wrap: anywhere; }
.rb-title:focus { outline: none; box-shadow: none; }
.rb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-13); line-height: var(--lh-13); color: var(--text-muted); }
.rb-date { white-space: nowrap; }
.rb-mark { width: 32px; height: 32px; flex: none; }
.rb-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); }
.rb-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 var(--sp-3); border: 1px dashed var(--line-field); border-radius: var(--r-full); font-size: var(--fs-12); color: var(--text-2); cursor: default; }
.rb-chip .icon { color: var(--accent); }
.rb-pager { display: inline-flex; align-items: center; gap: 2px; padding-right: var(--sp-2); margin-right: var(--sp-1); border-right: 1px solid var(--line); }
.rb-pager-pos { font-size: var(--fs-12); color: var(--text-muted); min-width: 44px; text-align: center; }
.rb-select { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--icon); }
.rb-select select { width: auto; min-height: var(--h-sm); padding-top: 0; padding-bottom: 0; font-size: var(--fs-13); border-radius: var(--r-full); }
.rb-tip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--sp-2) var(--sp-4) 0; font-size: var(--fs-12); color: var(--text-muted); background: var(--bg-desk); }
.rb-tip .icon { color: var(--accent); }
/* v5: the respondent's report page — the sharing line and its Stop sharing button */
.rb-share { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4) 0; background: var(--bg-desk); font-size: var(--fs-13); color: var(--text-2); }
.rb-share .icon { color: var(--accent); }
/* v5 (COACH-04): what the coach's review rests on, above the report */
.rb-review { width: calc(100% - 2 * var(--sp-5)); max-width: 210mm; margin: var(--sp-4) auto 0; padding: var(--sp-3) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); font-size: var(--fs-14); color: var(--text); }
.rb-review p { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; }
.rb-review-line .icon { color: var(--ok); flex: none; margin-top: 2px; }
.rb-review-note { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-8); background: var(--warn-soft); color: var(--warn-text); }
.rb-review-note .icon { flex: none; margin-top: 2px; }
.rb-review-scores { list-style: none; margin: 0; padding: 0 0 0 var(--sp-5); display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-13); }
.rb-review-scores li { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.rb-review-share { color: var(--text-muted); }
.rb-review p.rb-review-meta { flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-13); color: var(--text-2); }
.rb-review-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rb-review-meta .icon { color: var(--accent); }
.rb-testrun { padding: var(--sp-2) var(--sp-4); text-align: center; background: var(--highlight-faint); border-bottom: 1px dashed var(--highlight-ring); font-size: var(--fs-13); color: var(--text-2); }
.rb-testrun .icon { color: var(--highlight-strong-text); vertical-align: -2px; margin-right: 6px; }
.rb-testrun a { margin-left: var(--sp-2); font-weight: var(--fw-medium); white-space: nowrap; }
.rb-ok, .rb-warn { display: inline-flex; align-items: center; gap: 5px; }
.rb-ok .icon { color: var(--ok); }
.rb-warn { color: var(--warn-text); font-weight: var(--fw-medium); }
.rb-warn .icon { color: var(--warn); }

/* the preview: its bar and its settings stay in reach while the sheets scroll */
.rb-stack { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
.rb-stack > .report-bar { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
.rb-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); padding: var(--sp-2) var(--sp-5); }
.rb-control { display: inline-flex; align-items: center; gap: var(--sp-2); }
.rb-control-label { font-size: var(--fs-11); line-height: var(--lh-11); font-weight: var(--fw-bold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-muted); }

/* how they answered: coach and AlignmentKey only, never printed; as wide as the sheets */
.rb-behaviour { width: calc(100% - 2 * var(--sp-5)); max-width: 210mm; margin: var(--sp-4) auto 0; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: clip; }
.rb-behaviour-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-5); cursor: pointer; list-style: none; }
.rb-behaviour-head::-webkit-details-marker { display: none; }
.rb-behaviour-head:hover { background: var(--bg-subtle); }
.rb-behaviour-head:focus-visible { box-shadow: var(--focus-ring-inset); }
.rb-behaviour-head > .icon { color: var(--accent); }
.rb-chev { transition: transform var(--dur-2) var(--ease); color: var(--icon) !important; }
.rb-behaviour[open] .rb-chev { transform: rotate(90deg); }
.rb-behaviour-title { font-size: 15px; font-weight: var(--fw-semibold); }
.rb-behaviour-sum { font-size: var(--fs-13); color: var(--text-muted); }
.rb-behaviour-sum::before { content: "·"; margin-right: var(--sp-2); }
.rb-private { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: var(--fs-12); color: var(--text-muted); }
.rb-behaviour-body { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-2) var(--sp-5) var(--sp-5); border-top: 1px solid var(--line-soft); animation: r-fade var(--dur-3) var(--ease-enter) both; }
.rb-behaviour .kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: none; margin-top: var(--sp-3); }
/* seven figures on four columns: the last one closes its row, so no empty cell shows */
.rb-behaviour .kpi-cell:last-child:nth-child(4n + 3) { grid-column: span 2; }
.rb-behaviour .kpi-value { font-size: 22px; line-height: 28px; }
/* a label that wraps never pushes its figure below its neighbours' */
.rb-behaviour .kpi-cell { justify-content: space-between; }
.rb-indications { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.rb-indications li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-14); line-height: 21px; color: var(--text-2); }
.rb-indications .icon { flex: none; margin-top: 2px; color: var(--accent); }
.rb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.rb-lists ol { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.rb-lists li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-2); font-size: var(--fs-13); line-height: 19px; color: var(--text-2); }
.rb-lists .num { color: var(--text-muted); text-align: right; }
.rb-stmt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rb-stmt-set { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--text-muted); }
.rb-note { font-size: var(--fs-12); color: var(--text-muted); }

/* a page with no report to show (held, link not valid, offline): the
   respondent's own shell, as on a link that does not open */
.rv-state { flex: 1; display: flex; flex-direction: column; background: var(--wash-image) 0 var(--appbar-h) / 100% 360px no-repeat, var(--bg-canvas); }
.rv-top { position: sticky; top: var(--topline-h); z-index: var(--z-appbar); }
.rv-staff { font-size: var(--fs-13); color: var(--text-muted); }
/* the same states for staff (a report or a preview that is not there): a centred card */
.rv-state.is-staff { display: grid; place-items: center; padding: var(--sp-12) var(--sp-4); }
.rv-state.is-staff .r-card { width: 100%; max-width: 520px; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }

/* the phone's condensed bar, shown once the full bar has scrolled away */
.rb-strip { display: none; }
@media screen and (max-width: 767px) {
  .rb-strip {
    position: fixed; top: var(--topline-h); left: 0; right: 0; z-index: var(--z-sticky);
    display: flex; align-items: center; gap: var(--sp-2); height: 56px; padding: 0 var(--sp-2) 0 var(--sp-3);
    background: var(--bg-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
    visibility: hidden; opacity: 0; transform: translateY(calc(-1 * var(--lift)));
    transition: opacity var(--dur-2) var(--ease-exit), transform var(--dur-2) var(--ease-exit), visibility 0s linear var(--dur-2);
  }
  .rb-strip.is-shown {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity var(--dur-3) var(--ease-enter), transform var(--dur-3) var(--ease-enter), visibility 0s;
  }
  .rb-strip .rb-mark { width: 28px; height: 28px; flex: none; margin: 0 var(--sp-1); }
  .rb-strip-name { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 20px; font-weight: var(--fw-bold); letter-spacing: var(--track-tight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rb-strip-main { flex: none; }
}

@media screen and (max-width: 767px) {
  .report-bar { position: static; padding: var(--sp-3) var(--sp-4); }
  .rb-lead { flex-basis: 100%; }
  .rb-actions { width: 100%; justify-content: stretch; }
  .report-bar[data-mode="respondent"] .rb-actions .btn { flex: 1 1 auto; }
  /* staff on a phone: the delivery and PDF buttons share the row, the ⋯ at its
     end; the placeholder mark moves under them */
  .report-bar[data-mode="staff"] .rb-actions > .btn { flex: 1 1 auto; }
  .report-bar[data-mode="staff"] .rb-chip { order: 1; }
  .rb-pager { display: none; }
  .rb-private { margin-left: 0; flex-basis: 100%; }
  .rb-behaviour { width: calc(100% - 2 * var(--sp-3)); margin: var(--sp-3) auto 0; }
  .rb-stack { position: static; }
  .rb-controls { padding: var(--sp-2) var(--sp-4) var(--sp-3); gap: var(--sp-2) var(--sp-3); }
  .rb-control { flex-wrap: wrap; }
  .rb-behaviour-head, .rb-behaviour-body { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}
/* two figures a row on a phone: an odd last one takes the whole row, so no empty cell shows */
@media screen and (max-width: 767px) {
  .rb-behaviour .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-behaviour .kpi-cell:last-child:nth-child(4n + 3) { grid-column: auto; }
  .rb-behaviour .kpi-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
