/* ==========================================================================
   ERMITS Review & Report standard — AssessmentShell + ReportShell
   Spec §6 (shared by CyberCaution, CyberCorrect, VendorSoluce).
   Loaded by every review tool and by the report page, AFTER ermits-shell.css,
   whose tokens (--brand*, --shell-*, --radius-*, --shadow-*) it builds on.
   Only the brand accent comes from the site; everything here is shared.

   Privacy Review journey (three phases — see docs/PRIVACY_REVIEW_JOURNEY.md):
     1. Landing   (.er-page--landing)  — toolhead + Start CTA; no questions
     2. Assessing (.er-page--assessing)— progress + steps (context → sections)
     3. Report    (.rs-body)           — ReportShell on privacy-review-report
   ========================================================================== */

/* 0. Review tokens ---------------------------------------------------------- */
:root {
  --er-rail-w: 280px;
  --er-main-max: 760px;
  --er-report-max: 960px;
  --er-gap: 12px;            /* between question cards */
  --er-card-pad: 20px;
  --er-fs-q: 1.0625rem;      /* question text 17px */
  --er-fs-body: .9375rem;    /* report body 15px */
  --er-ok: #15803d;

  /* Severity (badge text / bar fill / soft background) — AA on white */
  --sev-critical: #b91c1c; --sev-critical-bar: #dc2626; --sev-critical-soft: #fef2f2;
  --sev-high: #c2410c;     --sev-high-bar: #f97316;     --sev-high-soft: #fff7ed;
  --sev-medium: #a16207;   --sev-medium-bar: #eab308;   --sev-medium-soft: #fefce8;
  --sev-low: #15803d;      --sev-low-bar: #22c55e;      --sev-low-soft: #f0fdf4;
  --sev-info: #475569;     --sev-info-bar: #94a3b8;     --sev-info-soft: #f1f5f9;
}
html.dark {
  --er-ok: #4ade80;
  --sev-critical: #fca5a5; --sev-critical-bar: #ef4444; --sev-critical-soft: rgba(239, 68, 68, .14);
  --sev-high: #fdba74;     --sev-high-bar: #f97316;     --sev-high-soft: rgba(249, 115, 22, .14);
  --sev-medium: #fde047;   --sev-medium-bar: #eab308;   --sev-medium-soft: rgba(234, 179, 8, .14);
  --sev-low: #86efac;      --sev-low-bar: #22c55e;      --sev-low-soft: rgba(34, 197, 94, .14);
  --sev-info: #cbd5e1;     --sev-info-bar: #64748b;     --sev-info-soft: rgba(148, 163, 184, .14);
}

/* 1. Page base -------------------------------------------------------------- */
body.er-body { background: var(--shell-bg); color: var(--shell-fg); }
.er-body main { padding-top: var(--nav-h); }
.er-body .site-breadcrumb { border-bottom: 1px solid var(--shell-border); }
.er-body .site-breadcrumb__inner { padding-block: 10px; }
.er-page { padding-bottom: 48px; }
.er-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.er-body [hidden] { display: none !important; }
.er-body :where(button, a, input, select, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* 2. Compact tool header (landing only; hidden while assessing) ------------ */
.er-toolhead { padding: 10px 0 8px; }

/* Landing = toolhead + Start CTA. Assessing = questionnaire only (no toolhead). */
.er-page--landing .er-toolhead { display: block; }
.er-page--assessing .er-toolhead { display: none; }
.er-page--landing .er-layout { display: block; }
.er-landing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  max-width: var(--er-main-max);
  border: 1px solid var(--shell-border);
  border-radius: var(--radius-md);
  background: var(--shell-card);
  box-shadow: var(--shadow-sm);
}
.er-page--landing .er-landing { display: flex; }
.er-page--assessing .er-landing,
.er-landing[hidden] { display: none !important; }
.er-landing .er-btn { align-self: flex-start; min-width: 10.5rem; }
@media (max-width: 639px) {
  .er-landing { padding: 14px; }
  .er-landing .er-btn { align-self: stretch; width: 100%; min-width: 0; }
}
.er-landing__hint {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--shell-muted);
}
.er-page--assessing .er-main { padding-top: 4px; width: 100%; min-width: 0; }
.er-page--assessing .er-layout { width: 100%; }
@media (min-width: 1024px) {
  .er-page--assessing .er-layout {
    grid-template-columns: var(--er-rail-w) minmax(0, 1fr);
    max-width: calc(var(--er-rail-w) + 32px + var(--er-main-max));
  }
}
@media (max-width: 639px) {
  .er-page--landing .er-toolhead { padding: 8px 0 6px; }
  .er-page--landing .er-about[open] > .er-about__body { max-height: none; }
}
.er-eyebrow {
  margin: 0 0 4px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.er-title {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 1.1rem + .45vw, 1.5rem); /* 20–24px */
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--shell-fg);
}
.er-lead { margin: 0 0 8px; max-width: 980px; font-size: .875rem; line-height: 1.45; color: var(--shell-muted); }
.er-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.er-meta li {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 8px;
  border: 1px solid var(--shell-border); border-radius: 999px;
  font-size: .75rem; color: var(--shell-muted); background: var(--shell-card);
}
.er-meta svg { width: 14px; height: 14px; flex: none; color: var(--brand-ink); }
.er-about { display: inline-block; }
.er-about > summary {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 600; color: var(--brand-ink);
}
.er-about > summary::-webkit-details-marker { display: none; }
.er-about > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.er-about[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.er-about__body {
  margin-top: 10px; padding: 16px; max-width: 900px;
  border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: var(--shell-card);
  font-size: .875rem; line-height: 1.6; color: var(--shell-muted);
}
.er-about__body p { margin: 0 0 10px; }
.er-about__body p:last-child { margin-bottom: 0; }
.er-about__body strong { color: var(--shell-fg); }
.er-refs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.er-refs li, .er-ref {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
  background: var(--shell-subtle-bg); border: 1px solid var(--shell-border);
  font-size: .75rem; color: var(--shell-muted); line-height: 1.5;
}
.er-about .er-meta-wrap { display: contents; }

/* 3. Two-column layout ------------------------------------------------------ */
.er-layout { display: block; }
@media (min-width: 1024px) {
  .er-layout {
    display: grid;
    grid-template-columns: var(--er-rail-w) minmax(0, var(--er-main-max));
    gap: 32px;
    align-items: start;
  }
}
.er-main { min-width: 0; }

/* 4. Rail ------------------------------------------------------------------- */
.er-rail { display: none; }
@media (min-width: 1024px) {
  .er-rail { display: block; position: sticky; top: calc(var(--nav-h) + 16px); }
}
.er-rail__card {
  padding: 16px; border: 1px solid var(--shell-border); border-radius: var(--radius-md);
  background: var(--shell-card); box-shadow: var(--shadow-sm);
}
.er-progress { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--shell-border); }
.er-ring { flex: none; width: 52px; height: 52px; transform: rotate(-90deg); }
.er-ring__track { fill: none; stroke: var(--shell-subtle-bg); stroke-width: 6; }
html.dark .er-ring__track { stroke: var(--shell-border); }
.er-ring__val { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 300ms var(--ease); }
.er-progress__num { display: block; font-size: 1rem; font-weight: 700; color: var(--shell-fg); line-height: 1.3; }
.er-progress__sub { display: block; font-size: .8125rem; color: var(--shell-muted); }
.er-steps { margin: 10px 0 12px; padding: 0; list-style: none; display: grid; gap: 2px; }
.er-steps__btn {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px;
  width: 100%; min-height: 36px; padding: 6px 8px;
  border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  text-align: left; font: inherit; font-size: .875rem; color: var(--shell-muted);
}
.er-steps__btn:hover { background: var(--shell-subtle-bg); color: var(--shell-fg); }
.er-steps__btn[aria-current="step"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.er-steps__icon {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--shell-border-strong); color: transparent;
}
.er-steps__icon svg { width: 12px; height: 12px; }
.er-steps__btn.is-done .er-steps__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.er-steps__btn[aria-current="step"] .er-steps__icon { border-color: var(--brand); }
.er-steps__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-steps__count { font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--shell-muted); }
.er-rail__ctx { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--shell-subtle-bg); font-size: .8125rem; }
html.dark .er-rail__ctx { background: rgba(148, 163, 184, .08); }
.er-rail__ctx dt { color: var(--shell-muted); font-size: .75rem; }
.er-rail__ctx dd { margin: 0 0 6px; color: var(--shell-fg); font-weight: 600; }
.er-rail__ctx dd:last-child { margin-bottom: 0; }
.er-rail__hint { margin: 8px 0 0; font-size: .75rem; color: var(--shell-muted); text-align: center; }
.er-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 0;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--shell-muted);
}
.er-linkbtn:hover { color: var(--brand-ink); }
.er-linkbtn svg { width: 14px; height: 14px; }

/* Buttons (reuse shell sizes; shared modifiers) */
.er-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.er-btn svg { width: 16px; height: 16px; flex: none; }
.er-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.er-btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.er-btn--secondary { background: var(--shell-card); border-color: var(--shell-border-strong); color: var(--shell-fg); }
html.dark .er-btn--secondary { background: transparent; }
.er-btn--secondary:hover { background: var(--shell-subtle-bg); }
.er-btn--ghost { background: transparent; color: var(--shell-muted); }
.er-btn--ghost:hover { background: var(--shell-subtle-bg); color: var(--shell-fg); }
.er-btn--block { width: 100%; }
.er-btn--sm { height: 36px; padding: 0 12px; font-size: .875rem; }
.er-btn[aria-disabled="true"] { background: var(--shell-subtle-bg); border-color: var(--shell-border); color: var(--shell-muted); box-shadow: none; cursor: not-allowed; }
html.dark .er-btn[aria-disabled="true"] { background: rgba(148, 163, 184, .08); }

/* 5. Mobile progress (sticky under header) --------------------------------- */
.er-mprogress {
  position: sticky; top: var(--nav-h); z-index: 20;
  margin: 0 calc(-1 * var(--shell-gutter)) 12px; padding: 8px var(--shell-gutter);
  background: var(--shell-header-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shell-border);
}
@media (min-width: 640px) { .er-mprogress { margin-inline: calc(-1 * var(--shell-gutter-md)); padding-inline: var(--shell-gutter-md); } }
@media (min-width: 1024px) { .er-mprogress { display: none; } }
.er-mprogress__row { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--shell-muted); margin-bottom: 6px; }
.er-mprogress__row strong { color: var(--shell-fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-bar { height: 4px; border-radius: 999px; background: var(--shell-subtle-bg); overflow: hidden; }
html.dark .er-bar { background: var(--shell-border); }
.er-bar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width 300ms var(--ease); }

/* 6. Step panel ------------------------------------------------------------- */
.er-step:focus, .er-step:focus-visible { outline: none; box-shadow: none !important; }
.er-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.er-step__kicker { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--shell-muted); }
.er-step__title { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--shell-fg); }
.er-step__meta { flex: none; font-size: .8125rem; color: var(--shell-muted); font-variant-numeric: tabular-nums; }
.er-step__intro { margin: -4px 0 12px; font-size: .875rem; color: var(--shell-muted); line-height: 1.55; }
.er-qlist { display: grid; gap: var(--er-gap); }

/* 7. Context card (step 0) — fill available width with equal chip tiles ---- */
.er-card {
  padding: var(--er-card-pad); border: 1px solid var(--shell-border); border-radius: var(--radius-md);
  background: var(--shell-card); box-shadow: var(--shadow-sm);
}
@media (max-width: 639px) { .er-card { padding: 14px; } :root { --er-card-pad: 16px; } }
.er-ctx { width: 100%; max-width: none; }
.er-ctx-group + .er-ctx-group { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--shell-border); }
.er-ctx-label { display: block; margin: 0 0 8px; font-size: .875rem; font-weight: 600; color: var(--shell-fg); }
.er-ctx-label small { font-weight: 400; color: var(--shell-muted); }
/* Equal tiles across the row — no leftover empty strip on the right */
.er-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
@media (min-width: 420px) {
  .er-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .er-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}
.er-chip {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px;
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--shell-border-strong); border-radius: var(--radius-sm); background: var(--shell-card);
  font: inherit; font-size: .8125rem; line-height: 1.25; color: var(--shell-fg); cursor: pointer; text-align: left;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (min-width: 640px) { .er-chip { font-size: .875rem; padding: 8px 12px; min-height: 42px; } }
html.dark .er-chip { background: transparent; }
.er-chip:hover { border-color: var(--brand); }
.er-chip__check { display: none; width: 14px; height: 14px; flex: none; color: var(--brand-ink); }
.er-chip[aria-checked="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.er-chip[aria-checked="true"] .er-chip__check { display: block; }
.er-ctx-note { margin: 14px 0 0; font-size: .8125rem; color: var(--shell-muted); }
/* Sector | Role side-by-side when there are exactly two option groups */
@media (min-width: 768px) {
  .er-ctx:has(> .er-ctx-group:first-child):has(> .er-ctx-group:nth-child(2)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }
  .er-ctx:has(> .er-ctx-group:nth-child(2)) > .er-ctx-group + .er-ctx-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding-left: 24px;
    border-left: 1px solid var(--shell-border);
  }
  .er-ctx:has(> .er-ctx-group:nth-child(2)) > .er-ctx-note {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--shell-border);
  }
  .er-ctx:has(> .er-ctx-group:nth-child(2)) .er-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .er-ctx:has(> .er-ctx-group:nth-child(2)) .er-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.er-field { display: grid; gap: 6px; }
.er-field + .er-field { margin-top: 14px; }
.er-field label { font-size: .875rem; font-weight: 600; color: var(--shell-fg); }
.er-input, .er-select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--shell-border-strong); border-radius: var(--radius-sm);
  background: var(--shell-card); color: var(--shell-fg); font: inherit; font-size: .9375rem;
}
html.dark .er-input, html.dark .er-select { background: var(--shell-bg); }
.er-grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .er-grid-2 { grid-template-columns: 1fr 1fr; } .er-grid-2 .er-field + .er-field { margin-top: 0; } }

/* 8. Question card ---------------------------------------------------------- */
.er-q {
  margin: 0; min-width: 0; padding: var(--er-card-pad);
  border: 1px solid var(--shell-border); border-radius: var(--radius-md);
  background: var(--shell-card); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease);
}
.er-q.is-missing { border-color: var(--sev-critical-bar); box-shadow: 0 0 0 3px var(--sev-critical-soft); }
.er-q__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; font-size: .75rem; color: var(--shell-muted); }
.er-q__num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--shell-muted); }
.er-q__tag { display: inline-flex; align-items: center; gap: 6px; }
.er-q__tag::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.er-q__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6875rem; color: var(--shell-muted); }
.er-q__pts { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--shell-subtle-bg); font-variant-numeric: tabular-nums; }
html.dark .er-q__pts { background: rgba(148, 163, 184, .1); }
.er-q__badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--sev-medium-soft); color: var(--sev-medium); font-weight: 600; }
.er-q__text {
  float: left; width: 100%; padding: 0; margin: 0 0 12px;
  font-size: var(--er-fs-q); font-weight: 600; line-height: 1.4; color: var(--shell-fg);
}
.er-q__text + * { clear: both; }
@media (max-width: 639px) {
  .er-q { padding: 12px; }
  .er-q__head { gap: 4px 8px; margin-bottom: 4px; font-size: .6875rem; }
  .er-q__text {
    margin: 0 0 8px;
    font-size: .9375rem;
    line-height: 1.35;
  }
  .er-qlist { gap: 10px; }
}

/* Options — segmented row (Yes/Partial/No) stays one row; rich tiles can stack */
.er-opts { display: grid; gap: 8px; clear: both; }
.er-opts--seg { grid-template-columns: repeat(var(--er-n, 3), minmax(0, 1fr)); gap: 6px; }
.er-opts--rich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.er-opts--rich[style*="--er-n:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) {
  /* Keep short labels (Yes / Partial / No) in a single row */
  .er-opts--seg { grid-template-columns: repeat(var(--er-n, 3), minmax(0, 1fr)); gap: 6px; }
  .er-opts--seg[style*="--er-n:5"],
  .er-opts--seg[style*="--er-n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Rich options (label + sub): compact single column on phones */
  .er-opts--rich, .er-opts--rich[style*="--er-n:3"] { grid-template-columns: 1fr; gap: 6px; }
}
.er-opt {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; margin: 0;
  border: 1px solid var(--shell-border-strong); border-radius: var(--radius-sm);
  background: var(--shell-card); color: var(--shell-fg);
  font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.3; text-align: center; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (max-width: 639px) {
  .er-opts--seg .er-opt {
    min-height: 40px;
    padding: 8px 6px;
    font-size: .8125rem;
    gap: 4px;
  }
  .er-opts--seg .er-opt__icon { width: 16px; height: 16px; }
  .er-opts--seg .er-opt__icon svg { width: 10px; height: 10px; }
  .er-opts--seg .er-opt__score { font-size: .625rem; padding-left: 2px; }
  .er-opts--rich .er-opt { padding: 8px 10px; min-height: 0; gap: 6px; }
  .er-opts--rich .er-opt__sub { font-size: .75rem; line-height: 1.35; }
  .er-opts--rich .er-opt__label { font-size: .8125rem; }
}
html.dark .er-opt { background: transparent; }
.er-opt:hover { border-color: var(--brand); }
.er-opt__icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--shell-border-strong); }
.er-opt__icon svg { width: 11px; height: 11px; opacity: 0; }
.er-opt[aria-checked="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.er-opt[aria-checked="true"] .er-opt__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.er-opt[aria-checked="true"] .er-opt__icon svg { opacity: 1; }
.er-opts--rich .er-opt { flex-direction: row; align-items: flex-start; justify-content: flex-start; padding: 10px 12px; text-align: left; }
.er-opts--rich .er-opt__icon { margin-top: 1px; }
.er-opt__body { display: grid; gap: 2px; min-width: 0; }
.er-opt__label { font-weight: 600; }
.er-opt__sub { font-size: .8125rem; font-weight: 400; line-height: 1.45; color: var(--shell-muted); }
.er-opt[aria-checked="true"] .er-opt__sub { color: var(--shell-fg); opacity: .85; }
.er-opts--long .er-opt { justify-content: flex-start; text-align: left; font-weight: 500; padding: 10px 12px; }
.er-opts--long .er-opt[aria-checked="true"] { font-weight: 600; }
.er-opt__score { white-space: nowrap; margin-left: auto; padding-left: 6px; font-size: .75rem; font-weight: 600; color: var(--shell-muted); font-variant-numeric: tabular-nums; }

/* "Why this matters" disclosure (collapsed by default) */
.er-why { margin-top: 10px; }
.er-why > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 600; color: var(--brand-ink);
}
.er-why > summary::-webkit-details-marker { display: none; }
.er-why > summary svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.er-why[open] > summary svg { transform: rotate(90deg); }
.er-why__body { margin-top: 6px; padding: 10px 12px; border-left: 2px solid var(--brand); background: var(--shell-subtle-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .875rem; line-height: 1.6; color: var(--shell-muted); }
html.dark .er-why__body { background: rgba(148, 163, 184, .08); }
.er-why__body p { margin: 0 0 8px; }
.er-why__body p:last-child { margin: 0; }

/* 9. Step navigation (inline ≥1024, sticky bottom bar <1024) --------------- */
.er-stepnav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.er-stepnav__pos { flex: 1; text-align: center; font-size: .8125rem; color: var(--shell-muted); }
.er-stepnav .er-btn { min-width: 110px; }
@media (max-width: 1023px) {
  .er-stepnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    padding: 10px var(--shell-gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--shell-header-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--shell-border);
  }
  .er-stepnav .er-btn { min-width: 0; flex: 1; }
  .er-stepnav__pos { display: none; }
  .er-page { padding-bottom: 88px; }
}
.er-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sev-critical-soft); color: var(--sev-critical); font-size: .875rem; }

/* 10. Result summary card (≤ 200px) ---------------------------------------- */
.er-result {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  margin: 0 0 16px; padding: 16px 20px;
  border: 1px solid var(--shell-border); border-left-width: 1px; border-radius: var(--radius-md);
  background: var(--shell-card); box-shadow: var(--shadow-sm);
}
.er-result__score { display: grid; place-items: center; width: 72px; height: 72px; }
.er-result__score svg { width: 72px; height: 72px; }
.er-result__kicker { margin: 0 0 2px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--shell-muted); }
.er-result__tier { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; color: var(--shell-fg); }
.er-result__sub { margin: 0 0 10px; font-size: .8125rem; color: var(--shell-muted); }
.er-result__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 479px) {
  .er-result { grid-template-columns: 1fr; padding: 16px; }
  .er-result__score { display: none; }
  .er-result__actions .er-btn { flex: 1; }
}

/* Footnote / disclaimer under the questionnaire */
.er-footnote { margin: 24px 0 0; font-size: .75rem; line-height: 1.6; color: var(--shell-muted); }

/* Shared badge */
.er-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--sev-info-soft); color: var(--sev-info);
}
.er-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.er-badge--critical { background: var(--sev-critical-soft); color: var(--sev-critical); }
.er-badge--high { background: var(--sev-high-soft); color: var(--sev-high); }
.er-badge--medium { background: var(--sev-medium-soft); color: var(--sev-medium); }
.er-badge--low { background: var(--sev-low-soft); color: var(--sev-low); }
.er-badge--info { background: var(--sev-info-soft); color: var(--sev-info); }

/* Gauge (shared by summary card and report) */
.er-gauge { display: block; }
.er-gauge__track { fill: none; stroke: var(--shell-subtle-bg); }
html.dark .er-gauge__track { stroke: var(--shell-border); }
.er-gauge__val { fill: none; stroke-linecap: round; }
.er-gauge__num { font-weight: 700; fill: var(--shell-fg); font-family: inherit; }
.er-gauge__max { fill: var(--shell-muted); font-family: inherit; }
.sev-critical { --sev: var(--sev-critical); --sev-bar: var(--sev-critical-bar); --sev-soft: var(--sev-critical-soft); }
.sev-high { --sev: var(--sev-high); --sev-bar: var(--sev-high-bar); --sev-soft: var(--sev-high-soft); }
.sev-medium { --sev: var(--sev-medium); --sev-bar: var(--sev-medium-bar); --sev-soft: var(--sev-medium-soft); }
.sev-low { --sev: var(--sev-low); --sev-bar: var(--sev-low-bar); --sev-soft: var(--sev-low-soft); }
.sev-info { --sev: var(--sev-info); --sev-bar: var(--sev-info-bar); --sev-soft: var(--sev-info-soft); }
.er-gauge .er-gauge__val { stroke: var(--sev-bar, var(--brand)); }

/* ==========================================================================
   ReportShell — privacy-review-report.html
   ========================================================================== */
.rs-body { margin: 0; background: var(--shell-surface); color: var(--shell-fg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: var(--er-fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.rs-body *, .rs-body *::before, .rs-body *::after { box-sizing: border-box; }
.rs-body [hidden] { display: none !important; }
.rs-body :where(button, a, summary):focus-visible { outline: none; box-shadow: var(--focus-ring); }
.rs-body .skip-link, .er-body .skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.rs-body .skip-link:focus, .er-body .skip-link:focus { top: 8px; }
.rs-wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--er-report-max) + 2 * var(--shell-gutter)); margin-inline: auto; padding-inline: var(--shell-gutter); }
@media (min-width: 640px) { .rs-wrap { max-width: calc(var(--er-report-max) + 2 * var(--shell-gutter-md)); padding-inline: var(--shell-gutter-md); } }

/* Slim header: logo + back link */
.rs-top { position: sticky; top: 0; z-index: 50; height: 56px; background: var(--shell-header-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--shell-border); }
.rs-top .rs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.rs-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--shell-fg); }
.rs-logo img { width: 32px; height: 32px; }
.rs-logo__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.rs-logo__tag { display: block; font-size: .6875rem; color: var(--shell-muted); font-weight: 500; }
.rs-top__right { display: flex; align-items: center; gap: 8px; }
.rs-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--shell-fg); cursor: pointer; }
.rs-icon-btn:hover { background: var(--shell-subtle-bg); }
.rs-icon-btn svg { width: 16px; height: 16px; }

/* Action bar (sticky under the slim header) */
.rs-actions { position: sticky; top: 56px; z-index: 40; background: var(--shell-surface); border-bottom: 1px solid var(--shell-border); }
.rs-actions .rs-wrap { display: flex; align-items: center; gap: 8px; min-height: 52px; padding-block: 6px; flex-wrap: wrap; }
.rs-actions__title { flex: 1; min-width: 0; font-size: .875rem; font-weight: 600; color: var(--shell-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-actions .er-btn { height: 36px; padding: 0 12px; font-size: .875rem; }
.rs-menu { position: relative; }
.rs-menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; margin: 0; list-style: none; border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: var(--shell-card); box-shadow: var(--shadow-md); }
html.dark .rs-menu__list { box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.rs-menu__list button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; font: inherit; font-size: .875rem; color: var(--shell-fg); text-align: left; cursor: pointer; }
.rs-menu__list button:hover { background: var(--shell-subtle-bg); }
.rs-menu__list small { color: var(--shell-muted); margin-left: auto; }
@media (max-width: 639px) {
  .rs-actions__title { flex-basis: 100%; }
  .rs-actions .er-btn { flex: 1; }
  .rs-actions .rs-hide-sm { display: none; }
}

.rs-main { padding: 24px 0 40px; }
.rs-stack { display: grid; gap: 32px; }
.rs-section { break-inside: auto; }
.rs-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; color: var(--shell-fg); }
.rs-h2 small { font-size: .8125rem; font-weight: 500; color: var(--shell-muted); }
.rs-card { padding: 20px; border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: var(--shell-card); box-shadow: var(--shadow-sm); }
@media (max-width: 639px) { .rs-card { padding: 16px; } }
.rs-muted { color: var(--shell-muted); }

/* 1. Report header */
.rs-head { display: grid; gap: 4px; }
.rs-head__eyebrow { margin: 0; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.rs-head__title { margin: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--shell-fg); }
.rs-head__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--shell-muted); }
.rs-head__meta li { display: inline-flex; align-items: center; gap: 6px; }
.rs-head__meta svg { width: 14px; height: 14px; }
.rs-head__meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }

/* 3. Executive summary row */
.rs-exec { display: grid; gap: 16px; }
@media (min-width: 900px) { .rs-exec { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; } }
.rs-score { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
@media (max-width: 479px) { .rs-score { grid-template-columns: 1fr; justify-items: start; } }
.rs-score__gauge svg { width: 132px; height: auto; }
.rs-score__label { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--shell-muted); }
.rs-score__tier { margin: 8px 0 0; }
.rs-score__summary { margin: 10px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--shell-muted); }
.rs-score__note { margin: 8px 0 0; font-size: .75rem; color: var(--shell-muted); }
.rs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs-kpi { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 84px; padding: 14px 16px; border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: var(--shell-card); box-shadow: var(--shadow-sm); }
.rs-kpi__label { font-size: .8125rem; color: var(--shell-muted); line-height: 1.35; }
.rs-kpi__value { font-size: 1.625rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--shell-fg); font-variant-numeric: tabular-nums; }
.rs-kpi__value small { font-size: .875rem; font-weight: 500; color: var(--shell-muted); }
.rs-kpi.sev-critical .rs-kpi__value, .rs-kpi.sev-high .rs-kpi__value { color: var(--sev); }

/* 4. Key findings */
.rs-findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rs-findings li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.55; }
.rs-findings li::before { content: ""; width: 8px; height: 8px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--brand); }

/* 5. Domain breakdown */
.rs-domains { display: grid; gap: 10px; }
.rs-domain { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 64px; gap: 12px; align-items: center; break-inside: avoid; }
.rs-domain__name { font-size: .875rem; color: var(--shell-fg); line-height: 1.35; }
.rs-domain__track { height: 8px; border-radius: 999px; background: var(--shell-subtle-bg); overflow: hidden; }
html.dark .rs-domain__track { background: var(--shell-border); }
.rs-domain__fill { height: 100%; border-radius: inherit; background: var(--sev-bar, var(--brand)); }
.rs-domain__val { font-size: .8125rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--sev, var(--shell-fg)); }
.rs-legend { margin: 12px 0 0; font-size: .75rem; color: var(--shell-muted); }
@media (max-width: 479px) {
  .rs-domain { grid-template-columns: 1fr 56px; gap: 4px 10px; }
  .rs-domain__name { grid-column: 1 / -1; }
}

/* 6. Gaps table / cards */
.rs-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rs-table th { padding: 0 12px 10px; text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--shell-muted); border-bottom: 1px solid var(--shell-border); }
.rs-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--shell-border); line-height: 1.5; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table tr { break-inside: avoid; }
.rs-table th:first-child, .rs-table td:first-child { padding-left: 0; }
.rs-table th:last-child, .rs-table td:last-child { padding-right: 0; }
.rs-gap__title { font-weight: 600; color: var(--shell-fg); }
.rs-gap__why { margin-top: 2px; font-size: .8125rem; color: var(--shell-muted); }
.rs-cite { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--shell-muted); }
.rs-gapcards { display: none; }
@media (max-width: 767px) {
  .rs-table--gaps { display: none; }
  .rs-gapcards { display: grid; gap: 12px; }
}
.rs-gapcard { padding: 14px 0; border-bottom: 1px solid var(--shell-border); break-inside: avoid; }
.rs-gapcard:first-child { padding-top: 0; }
.rs-gapcard:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-gapcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.rs-gapcard dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: .8125rem; }
.rs-gapcard dt { color: var(--shell-muted); }
.rs-gapcard dd { margin: 0; }

/* 7. Roadmap */
.rs-roadmap { display: grid; gap: 12px; }
@media (min-width: 768px) { .rs-roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rs-phase { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: var(--shell-card); box-shadow: var(--shadow-sm); break-inside: avoid; }
.rs-phase__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--shell-border); }
.rs-phase__title { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--shell-fg); }
.rs-phase__count { font-size: .75rem; color: var(--shell-muted); }
.rs-phase ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rs-phase li { font-size: .875rem; line-height: 1.5; break-inside: avoid; }
.rs-phase li strong { display: block; color: var(--shell-fg); font-weight: 600; }
.rs-phase li span { color: var(--shell-muted); font-size: .8125rem; }
.rs-phase__empty { font-size: .8125rem; color: var(--shell-muted); }

/* 8. Exposure block */
.rs-exposure { display: grid; gap: 16px; }
.rs-exposure__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rs-exposure__items li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .875rem; line-height: 1.55; }
.rs-exposure__items strong { color: var(--shell-fg); }
.rs-exposure__block + .rs-exposure__block { padding-top: 16px; border-top: 1px solid var(--shell-border); }
.rs-exposure__block h3 { margin: 0 0 6px; font-size: .9375rem; font-weight: 700; color: var(--shell-fg); }
.rs-exposure__block p { margin: 0 0 8px; font-size: .875rem; line-height: 1.6; color: var(--shell-muted); }
.rs-exposure__note { font-size: .75rem; color: var(--shell-muted); }
.rs-tracker { display: grid; gap: 10px; }

/* 9. Next steps band */
.rs-next { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--shell-border); background: var(--shell-card); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .rs-next { grid-template-columns: 1fr auto; align-items: center; } }
.rs-next h2 { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; color: var(--shell-fg); }
.rs-next p { margin: 0; font-size: .875rem; color: var(--shell-muted); }
.rs-next__links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 479px) { .rs-next__links .er-btn { flex: 1; } }

/* 10. Appendix (collapsed on screen, expanded in print) */
.rs-appendix-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 1.125rem; font-weight: 700; color: var(--shell-fg); text-align: left; }
.rs-appendix-toggle small { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--brand-ink); }
.rs-appendix-toggle small::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.rs-appendix-toggle[aria-expanded="true"] small::after { transform: rotate(-135deg) translateY(-1px); }
.rs-collapsible { margin-top: 12px; }
.rs-collapsible[data-collapsed] { display: none; }
.rs-collapsible h3 { margin: 16px 0 8px; font-size: .9375rem; font-weight: 700; color: var(--shell-fg); }
.rs-collapsible h3:first-child { margin-top: 0; }
.rs-answers td:first-child { width: 62%; }
.rs-answers td:nth-child(2) { color: var(--shell-muted); }
.rs-collapsible p { margin: 0 0 8px; font-size: .875rem; line-height: 1.6; color: var(--shell-muted); }

/* Empty state */
.rs-sample-banner {
  margin: 0 0 16px; padding: 10px 14px;
  border: 1px solid var(--shell-border); border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--shell-fg);
  font-size: .875rem; line-height: 1.45;
}
.rs-sample-banner a { color: var(--brand-ink); font-weight: 600; }
.rs-empty { max-width: 640px; margin: 48px auto; text-align: center; }
.rs-empty h2 { margin: 12px 0 6px; font-size: 1.375rem; font-weight: 700; color: var(--shell-fg); }
.rs-empty p { margin: 0 0 20px; color: var(--shell-muted); }
.rs-empty__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-ink); }
.rs-empty__icon svg { width: 22px; height: 22px; }
.rs-empty__links { display: grid; gap: 8px; text-align: left; }
@media (min-width: 640px) { .rs-empty__links { grid-template-columns: 1fr 1fr; } }
.rs-empty__links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--shell-border); border-radius: var(--radius-sm); background: var(--shell-card); color: var(--shell-fg); font-size: .875rem; font-weight: 600; text-decoration: none; }
.rs-empty__links a:hover { border-color: var(--brand); color: var(--brand-ink); }

/* Compact legal footer */
.rs-foot { padding: 20px 0 28px; border-top: 1px solid var(--shell-border); font-size: .75rem; color: var(--shell-muted); }
.rs-foot .rs-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.rs-foot a { color: var(--shell-muted); text-decoration: underline; text-underline-offset: 2px; }
.rs-foot nav { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-print-only { display: none; }

/* Print / PDF ------------------------------------------------------------- */
@media print {
  @page { size: auto; margin: 16mm; }
  html, html.dark { color-scheme: light; }
  html.dark {
    --shell-bg: #fff; --shell-surface: #fff; --shell-card: #fff; --shell-border: #e2e8f0; --shell-border-strong: #cbd5e1;
    --shell-fg: #0f172a; --shell-muted: #475569; --shell-subtle-bg: #f1f5f9; --brand-ink: #2A6F7F; --brand-soft: rgba(42, 111, 127, .1);
    --sev-critical: #b91c1c; --sev-critical-soft: #fef2f2; --sev-high: #c2410c; --sev-high-soft: #fff7ed;
    --sev-medium: #a16207; --sev-medium-soft: #fefce8; --sev-low: #15803d; --sev-low-soft: #f0fdf4; --sev-info: #475569; --sev-info-soft: #f1f5f9;
  }
  body, .rs-body { background: #fff !important; color: #0f172a; font-size: 10.5pt; }
  .rs-top, .rs-actions, .rs-foot, .rs-no-print, .rs-next__links { display: none !important; }
  .rs-print-only { display: block; }
  .rs-wrap { max-width: none; padding: 0; }
  .rs-main { padding: 0; }
  .rs-stack { gap: 18px; }
  .rs-card, .rs-kpi, .rs-phase, .rs-next { box-shadow: none !important; }
  .rs-card, .rs-kpi, .rs-phase, .rs-domain, .rs-findings li, .rs-gapcard, .rs-table tr, .rs-exposure__block { break-inside: avoid; }
  .rs-h2 { break-after: avoid; }
  .rs-section--appendix { break-before: page; }
  body, .rs-body { font-size: 9.5pt; }
  .rs-card { padding: 12px 14px; }
  .rs-table td { padding: 6px 8px; }
  .rs-table th { padding: 0 8px 6px; }
  .rs-gap__why { font-size: 8.5pt; }
  .rs-kpi { min-height: 0; padding: 10px 12px; }
  .rs-kpi__value { font-size: 16pt; }
  .rs-score__gauge svg { width: 104px; }
  .rs-domains { gap: 6px; }
  .rs-phase { padding: 10px 12px; }
  .rs-phase li span { font-size: 8.5pt; }
  .rs-h2 { margin-bottom: 8px; font-size: 12pt; }
  .rs-head__title { font-size: 18pt; }
  .rs-table--gaps { display: table !important; }
  .rs-gapcards { display: none !important; }
  .rs-exec { grid-template-columns: 1.15fr 1fr !important; }
  .rs-roadmap { grid-template-columns: repeat(3, 1fr) !important; }
  .rs-collapsible[data-collapsed] { display: block !important; }
  .rs-appendix-toggle small { display: none; }
  a[href]::after { content: none !important; }
  .rs-domain__fill, .er-gauge__val, .er-badge, .rs-kpi { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Wizard steps that keep their own markup (Cyber Exposure Brief) -------------- */
.step-content { display: none; }
.step-content.active { display: block; }
.er-grid-3 { display: grid; gap: 14px; }
@media (min-width: 768px) { .er-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.er-grid-3 .er-field + .er-field, .er-grid-2 .er-field + .er-field { margin-top: 0; }
.ceb-stack { display: grid; gap: 16px; }
.ceb-card .ceb-stack + .ceb-stack, .ceb-card .er-grid-3 + .ceb-stack { margin-top: 16px; }
.ceb-card .er-ctx-label { margin-bottom: 8px; }
.ceb-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: .8125rem; line-height: 1.55; color: var(--shell-fg); }
.ceb-note:empty { display: none; }
.er-chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.question.er-q .er-q__head { justify-content: space-between; flex-wrap: nowrap; align-items: flex-start; margin-bottom: 12px; }
.er-q__title { font-size: var(--er-fs-q); font-weight: 600; line-height: 1.4; color: var(--shell-fg); }
.er-q .question-weight { flex: none; }
.ceb-results:not(.active) { display: none; }
.ceb-report .er-result__score { border-radius: 50%; border: 6px solid var(--brand-soft); }
.ceb-report .score-num { font-size: 1.5rem; font-weight: 700; color: var(--shell-fg); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .er-layout > .er-main .step-shell + .ceb-results { margin-top: 0; } }
.step-content .er-step__title { margin-bottom: 4px; }
.step-content .er-step__intro { margin: 0 0 12px; }
.ceb-nav { justify-content: space-between; }

/* Dashboards (Privacy Risk Radar, PrivacyPosture™): shared header scale, shell, card system */
.er-dash { padding-top: 16px; }
.er-dash .er-title, .er-dash .pp-title { font-family: inherit; font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem); line-height: 1.2; margin: 0 0 6px; }
.er-dash .pp-dashboard { max-width: none; padding: 0 0 48px; font-family: inherit; }
.er-dash .pp-header { margin-bottom: 20px; }
.er-dash :is(.rounded-xl, .rounded-2xl).border { border-radius: var(--radius-md); border-color: var(--shell-border); box-shadow: var(--shadow-sm); }
.er-dash .flex.flex-col.gap-6 { gap: 20px; }
@media (max-width: 479px) { .rs-logo__tag { display: none; } .rs-top .er-btn--ghost { padding: 0 8px; } }
.er-q__head > * { flex: none; max-width: 100%; }
.er-q__num { white-space: nowrap; }
@media (max-width: 639px) {
  .er-toolhead { padding: 8px 0 6px; }
  .er-lead {
    font-size: .8125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .er-meta { gap: 4px; }
  .er-meta li { height: 24px; font-size: .6875rem; padding: 0 7px; gap: 4px; }
  .er-meta svg { width: 12px; height: 12px; }
  .er-about > summary { height: 24px; font-size: .75rem; padding: 0 8px; }
  .er-toolhead > div { gap: 6px !important; margin-top: 2px; }
}
.er-q__head > .er-q__ref, .er-q__head > .er-q__tag { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) { .er-q__head > .er-q__ref { flex-basis: 100%; order: 5; } }
