/* Results view (results redesign, 2026-11-17). Every rule is scoped to #results / .rv-* or to
   body.has-results, so the homepage is untouched. Colours come from the page tokens in
   src/index.js (:root and [data-theme="dark"]), so dark mode follows them. */

/* ── Results view replaces the hero and the homepage sections ── */
body.has-results .hero,
body.has-results .content-sections,
body.has-results #scrollHint { display: none !important; }

#results {
  --rv-good: var(--pass);
  --rv-mid: var(--warn);
  --rv-bad: var(--fail);
  --rv-blocker: #7a1f1f;
  --rv-blocker-bg: rgba(120,20,20,0.12);
  --rv-info: #2a5caa;
  --rv-info-bg: rgba(42,92,170,0.10);
  --rv-cell-medium: #C9960C;
  --rv-cell-low: rgba(23,29,28,0.28);
  --rv-track: rgba(23,29,28,0.08);
  --rv-strip: rgba(23,29,28,0.025);
  --rv-code-bg: #171D1C;
  --rv-code-head: #24302e;
  --rv-code-text: #e6efed;
  --rv-shadow-btn: 0 4px 20px rgba(33,158,144,0.28);
  /* Ring colours: --rv-c = score so far, --rv-c2 = second segment (after fixes, or earned but capped).
     Set by a .rv-tone-* class on a container, so the ring, its legend and the scale marker match. */
  --rv-c: var(--accent);
  --rv-c2: rgba(33,158,144,0.30);
  --rv-held: rgba(23,29,28,0.22);
  padding: 0;
}
.rv-tone-good { --rv-c: var(--accent); --rv-c2: rgba(33,158,144,0.30); }
.rv-tone-mid { --rv-c: var(--warn); --rv-c2: rgba(139,100,0,0.28); }
.rv-tone-bad { --rv-c: var(--fail); --rv-c2: rgba(184,48,48,0.28); }
.rv-tone-capped { --rv-c: rgba(184,48,48,0.85); --rv-c2: var(--rv-held); }
[data-theme="dark"] #results {
  --rv-blocker: #ff9b9b;
  --rv-blocker-bg: rgba(224,82,82,0.18);
  --rv-info: #9cbcff;
  --rv-info-bg: rgba(120,160,255,0.14);
  --rv-cell-medium: #d9a92a;
  --rv-cell-low: rgba(252,252,247,0.30);
  --rv-track: rgba(255,255,255,0.10);
  --rv-strip: rgba(255,255,255,0.03);
  --rv-code-bg: #0e1211;
  --rv-code-head: #1b2422;
  --rv-shadow-btn: 0 4px 20px rgba(33,158,144,0.18);
  --rv-held: rgba(252,252,247,0.30);
}

.rv { max-width: 1120px; margin: 0 auto; padding: 28px 24px 96px; display: flex; flex-direction: column; gap: 40px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-small { font-size: 13px; color: var(--text-muted); }
.rv-strong { font-weight: 600; }
.rv-muted { color: var(--text-muted); }
.rv-mini-k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rv-good { color: var(--rv-good); }
.rv-mid { color: var(--rv-mid); }
.rv-bad { color: var(--rv-bad); }
.rv-link { font-size: 13px; font-weight: 600; color: var(--pass); }
.rv-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.rv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.rv-dot.rv-good { background: var(--rv-good); }
.rv-dot.rv-mid { background: var(--rv-mid); }
.rv-dot.rv-bad { background: var(--rv-bad); }

/* Buttons */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.rv-btn:hover { text-decoration: none; }
.rv-btn-primary { background: var(--accent); color: #fff; box-shadow: var(--rv-shadow-btn); }
.rv-btn-primary:hover { background: var(--accent-bright); }
.rv-btn-danger { background: var(--fail); color: #fff; min-height: 42px; font-size: 14px; padding: 0 18px; }
.rv-btn-danger:hover { filter: brightness(1.08); }
.rv-btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); min-height: 42px; font-size: 14px; padding: 0 16px; }
.rv-linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--pass);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-toggle { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; font-size: 13px; font-weight: 600; color: var(--pass); cursor: pointer; white-space: nowrap; }
.rv-chev { display: inline-block; transition: transform 0.15s; }
.rv-chev-up { transform: rotate(180deg); }
#results button:focus-visible, #results a:focus-visible, #results input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Pills */
.rv-pill { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rv-sev-blocker { background: var(--rv-blocker-bg); color: var(--rv-blocker); }
.rv-sev-severe { background: rgba(184,48,48,0.10); color: var(--fail); }
.rv-sev-medium { background: rgba(139,100,0,0.10); color: var(--warn); }
.rv-sev-low { background: var(--surface); color: var(--text-muted); }
.rv-sev-info { background: var(--rv-info-bg); color: var(--rv-info); }
[data-theme="dark"] #results .rv-sev-severe { background: rgba(224,82,82,0.16); }
[data-theme="dark"] #results .rv-sev-medium { background: rgba(240,192,64,0.14); }
.rv-v-fail, .rv-st-fail { background: rgba(184,48,48,0.12); color: var(--fail); }
.rv-v-pass, .rv-st-pass { background: rgba(22,122,108,0.10); color: var(--pass); }
.rv-v-na, .rv-st-na { background: var(--surface); color: var(--text-muted); }
.rv-v-note, .rv-st-ns { background: var(--rv-info-bg); color: var(--rv-info); }
[data-theme="dark"] #results .rv-v-fail, [data-theme="dark"] #results .rv-st-fail { background: rgba(224,82,82,0.16); }
[data-theme="dark"] #results .rv-v-pass, [data-theme="dark"] #results .rv-st-pass { background: rgba(39,176,159,0.14); }
.rv-pill-warn { background: rgba(139,100,0,0.12); color: var(--warn); }
.rv-pill-fix { background: var(--accent-dim); color: var(--pass); text-transform: none; letter-spacing: 0; font-weight: 600; }
.rv-tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface); color: var(--text-muted); }

/* ── Compact checker bar ── */
.rv-bar { display: flex; flex-direction: column; gap: 10px; }
.rv-bar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.rv-bar-top a { color: var(--pass); }
.rv-bar-row { display: flex; gap: 10px; }
.rv-bar-row input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.rv-bar-row .rv-btn { height: 52px; padding: 0 28px; }

/* ── Header: what was checked, redirect path, share & export ── */
.rv-head-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: -16px; }
.rv-head { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rv-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rv-target { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); word-break: break-all; }
.rv-target span { color: var(--pass); }
.rv-meta { font-size: 13px; color: var(--text-muted); }
.rv-note { align-self: flex-start; font-size: 13px; padding: 6px 12px; border-radius: 10px; }
.rv-note-accent { background: var(--accent-dim); border: 1px solid rgba(33,158,144,0.22); }
#results .redirect-box { margin: 0; text-align: left; }

#results .share-bar { flex: 0 1 340px; min-width: 260px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
#results .share-bar-label { font-size: 12px; letter-spacing: 0.08em; }
#results .share-bar-actions { flex-direction: column; gap: 8px; justify-content: flex-start; }
#results .share-action-btn { width: 100%; min-height: 52px; flex-direction: column; align-items: flex-start; text-align: left; padding: 9px 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
#results .share-psi-pending { text-align: left; }

.rv-notices:empty { display: none; }
.rv-notices { display: flex; flex-direction: column; gap: 10px; margin-bottom: -16px; }
.rv-notices .waf-warning { margin: 0; text-align: left; }

/* ── Score card ── */
.rv-score { border-color: var(--border-strong); border-radius: 20px; overflow: hidden; }
.rv-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 40px;
  background: rgba(184,48,48,0.10); border-bottom: 1px solid rgba(184,48,48,0.30); }
.rv-banner-txt { font-size: 17px; font-weight: 700; color: var(--rv-blocker); }
.rv-score-main { padding: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.rv-ring-col { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto; }
.rv-ring { width: 220px; height: 220px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--rv-c) 0 var(--rv-a), var(--rv-c2) var(--rv-a) var(--rv-b), var(--rv-track) var(--rv-b) 100%); }
.rv-ring-in { width: 184px; height: 184px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rv-grade { font-size: 76px; font-weight: 700; line-height: 1; }
.rv-grade.rv-good { color: var(--pass); }
.rv-ring-pct { font-size: 26px; font-weight: 700; line-height: 1.25; }
.rv-capped { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.rv-ring-pts { font-size: 12px; color: var(--text-muted); }
.rv-ring-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--text-muted); }
.rv-ring-legend span, .rv-hlegend span, .rv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.rv-sw-now { background: var(--accent); }
.rv-sw-a { background: var(--rv-c); }
.rv-sw-b { background: var(--rv-c2); }
.rv-ring-legend-col { flex-direction: column; align-items: center; gap: 4px; }
.rv-sw-old { border-radius: 2px; width: 12px; background: repeating-linear-gradient(135deg, var(--rv-cell-low) 0 3px, var(--rv-track) 3px 6px); }
.rv-score-txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rv-chip { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; background: var(--accent-dim); color: var(--pass); border: 1px solid rgba(33,158,144,0.25); max-width: 100%; overflow-wrap: anywhere; }
.rv-h1 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.rv-lead { margin: 0; font-size: 16px; color: var(--text-muted); max-width: 640px; }
.rv-scale-wrap { display: flex; flex-direction: column; gap: 8px; }
.rv-scale { position: relative; display: flex; height: 36px; border-radius: 10px; overflow: hidden; font-size: 12px; font-weight: 700; }
.rv-band { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; border-left: 2px solid var(--card); }
.rv-band-graded { background: rgba(184,48,48,0.22) !important; color: var(--rv-blocker) !important; box-shadow: inset 0 0 0 2px var(--fail); }
.rv-band:first-child { border-left: 0; }
.rv-band-bad { background: rgba(184,48,48,0.09); color: var(--fail); }
.rv-band-mid { background: rgba(139,100,0,0.10); color: var(--warn); }
.rv-band-good { background: rgba(33,158,144,0.14); color: var(--pass); }
.rv-band-best { background: rgba(33,158,144,0.26); color: var(--pass); }
.rv-mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; }
.rv-mark-now { background: var(--rv-c); }
.rv-mark-after { background: repeating-linear-gradient(180deg, var(--pass) 0 4px, transparent 4px 7px); }
.rv-mark-earned { background: repeating-linear-gradient(180deg, var(--text) 0 4px, transparent 4px 7px); }
.rv-scale-box { position: relative; }
.rv-cap-arrow { position: relative; height: 22px; }
.rv-cap-line { position: absolute; top: 8px; height: 2px; background: var(--fail); }
.rv-cap-head { position: absolute; top: 3px; width: 0; height: 0; margin-left: -2px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 9px solid var(--fail); }
.rv-cap-tick { position: absolute; top: 0; width: 2px; height: 10px; margin-left: -1px; background: var(--fail); }
.rv-scale-cap-capped { flex-wrap: wrap; gap: 4px 12px; }
.rv-scale-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); }
.rv-scale-cap strong { color: var(--text); }
.rv-email-line { font-size: 13px; color: var(--text-muted); }

.rv-strip { border-top: 1px solid var(--border); background: var(--rv-strip); padding: 14px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.rv-strip:empty { display: none; }
.rv-strip-k { flex: 0 0 150px; display: flex; flex-direction: column; }
.rv-strip-hint { background: rgba(139,100,0,0.06); }
.rv-strip-txt { flex: 1 1 420px; min-width: 0; font-size: 14px; }
.rv-strip-psi { display: block; }
.rv-psi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rv-vchips { flex: 999 1 380px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-vchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.rv-mrings { display: flex; align-items: center; gap: 8px; }
.rv-mring { --rv-mc: var(--pass); flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--rv-mc) 0 var(--rv-p), var(--rv-track) var(--rv-p) 100%); }
.rv-mring > span { width: 28px; height: 28px; border-radius: 50%; background: var(--card); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--rv-mc); }
.rv-mring-mid { --rv-mc: var(--warn); }
.rv-mring-bad { --rv-mc: var(--fail); }
.rv-mring-na, .rv-mring-ns { --rv-mc: var(--text-subtle); }
.rv-mring-ns > span { color: var(--rv-info); }
.rv-mring-sm { width: 30px; height: 30px; }
.rv-mring-sm > span { width: 22px; height: 22px; }
.rv-mring-md { width: 48px; height: 48px; }
.rv-mring-md > span { width: 38px; height: 38px; }
.rv-psi-detail { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px 0 6px; }
.rv-vrows { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-vrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 76px; gap: 16px; align-items: center; }
.rv-vrow > div:first-child { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.rv-vbar { position: relative; display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: visible; }
.rv-z { display: inline-block; height: 8px; }
.rv-vbar .rv-z:first-child { border-radius: 999px 0 0 999px; }
.rv-vbar .rv-z-bad { flex: 1 1 auto; border-radius: 0 999px 999px 0; }
.rv-z-good { background: rgba(22,122,108,0.55); }
.rv-z-mid { background: rgba(139,100,0,0.40); }
.rv-z-bad { background: rgba(184,48,48,0.38); }
.rv-vbar-mark { position: absolute; top: -7px; bottom: -7px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.rv-vval { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-zlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); padding-left: 206px; }
.rv-zlegend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-zlegend .rv-z { width: 16px; height: 6px; border-radius: 3px; }
.rv-labcol { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.rv-labgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.rv-labrow { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rv-labcol p { margin: 0; }

.rv-strip-hist { align-items: flex-end; padding-bottom: 18px; }
.rv-strip-hist .rv-strip-k { align-self: center; }
.rv-hcols { flex: 999 1 420px; display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.rv-hcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rv-hval { font-size: 11px; font-weight: 700; white-space: nowrap; }
.rv-hbar-box { width: 100%; max-width: 56px; height: 56px; display: flex; align-items: flex-end; }
.rv-hbar { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--accent); }
.rv-hbar-old { background: repeating-linear-gradient(135deg, var(--rv-cell-low) 0 3px, var(--rv-track) 3px 6px); }
.rv-hdate { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.rv-hlegend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); align-self: center; }

.rv-unreach { padding: 40px; text-align: center; }
#results.rv-unreachable #advancedCard, #results.rv-unreachable .rv-cta, #results.rv-unreachable .fr-box { display: none !important; }

/* Advanced card (existing ids, new look) */
#results .adv-card { margin: -16px 0 0; border: 1px solid rgba(33,158,144,0.25); border-radius: 16px; background: var(--accent-dim); padding: 18px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
#results .adv-card.hidden { display: none; }
#results .adv-card-txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 2px; }
#results .adv-card-txt p { margin: 0; flex: none; }
#results .adv-card-head { font-size: 16px; font-weight: 700; }
#results .adv-card button { min-height: 46px; border-radius: 12px; box-shadow: var(--rv-shadow-btn); }

/* ── Sections ── */
.rv-sec { display: flex; flex-direction: column; gap: 16px; }
.rv-sec:empty { display: none; }
.rv-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.rv-sec-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.rv-sec-title > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.rv-sec-title h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.rv-sec-title > p { margin: 0; max-width: 420px; }
.rv-sub-head { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }

/* Area tabs */
.rv-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-tab { flex: 1 1 150px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 56px; border-radius: 12px; cursor: pointer;
  font: inherit; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.rv-tab:hover { border-color: var(--accent); }
.rv-tab.rv-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.rv-tab.rv-on .rv-mring > span { background: var(--text); }
.rv-tab-txt { display: flex; flex-direction: column; min-width: 0; }
.rv-tab-l { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rv-tab-p { font-size: 17px; font-weight: 700; line-height: 1.25; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-two { display: flex; flex-wrap: wrap; gap: 16px; }
.rv-two > .rv-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rv-waf-card { flex: 1 1 460px; min-width: 0; }
.rv-side { flex: 1 1 400px; min-width: 0; }
.rv-card-k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rv-waf-row { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.15s; }
.rv-waf-row.rv-dim { opacity: 0.2; }
.rv-waf-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.rv-waf-cap span { color: var(--text-muted); }
.rv-waf { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.rv-c { display: inline-block; aspect-ratio: 1 / 1; border-radius: 3px; background: var(--rv-cell-low); }
.rv-legend .rv-c, .rv-dots .rv-c { width: 11px; height: 11px; }
.rv-c-pass { background: var(--accent); }
.rv-c-blocker, .rv-c-severe { background: var(--fail); }
.rv-c-medium { background: var(--rv-cell-medium); }
.rv-c-low { background: var(--rv-cell-low); }
.rv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12px; }
.rv-arow { display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; padding: 4px 0; background: none; border: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rv-arow:hover .rv-arow-n { color: var(--pass); }
.rv-arow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; font-size: 14px; }
.rv-arow-n { font-weight: 600; }
.rv-arow-r { display: inline-flex; align-items: baseline; gap: 10px; }
.rv-g { font-size: 12px; font-weight: 700; }
.rv-g.rv-good { color: var(--pass); }
.rv-abar { display: flex; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: var(--rv-track); }
.rv-abar-p { background: var(--accent); }
.rv-abar-l { background: rgba(184,48,48,0.35); }
.rv-area-head { display: flex; align-items: center; gap: 18px; }
.rv-ring-sm { width: 96px; height: 96px; flex: 0 0 96px; }
.rv-ring-sm .rv-ring-in { width: 78px; height: 78px; }
.rv-ring-sm .rv-grade { font-size: 28px; }
.rv-ring-sm .rv-ring-pct { font-size: 13px; }
.rv-area-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-area-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.rv-side p { margin: 0; font-size: 14px; }
.rv-area-pass { font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.rv-area-pass strong { color: var(--pass); }

/* Fixes */
.rv-legend-sev { color: var(--text-muted); gap: 8px 14px; }
.rv-legend-sev > span { gap: 6px; }
.rv-path { padding: 24px 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-prow { display: grid; grid-template-columns: 260px minmax(0, 1fr) 70px; gap: 16px; align-items: center; }
.rv-prow-l { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.rv-prank { flex: 0 0 26px; font-size: 13px; font-weight: 700; color: var(--accent); }
.rv-plabel { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ptrack { position: relative; height: 28px; border-radius: 6px; background: var(--surface); }
.rv-pline { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); opacity: 0.35; }
.rv-pbase { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px 0 0 6px; background: rgba(33,158,144,0.20); }
.rv-pgain { position: absolute; top: 0; bottom: 0; min-width: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; white-space: nowrap; background: var(--accent); }
.rv-pgain-blocker, .rv-pgain-severe { background: var(--fail); }
.rv-pgain-medium { background: #b07d00; }
.rv-ptotal { text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-paxis { font-size: 12px; color: var(--text-muted); }
.rv-ptrack-axis { height: 18px; background: none; }
.rv-ptrack-axis span { position: absolute; top: 0; white-space: nowrap; }
.rv-pax-g { transform: translateX(-50%); font-weight: 700; color: var(--text); }
.rv-fix-list { display: flex; flex-direction: column; gap: 12px; }
.rv-fix-wrap { display: flex; flex-direction: column; gap: 12px; }
.rv-fix { overflow: hidden; scroll-margin-top: 16px; }
.rv-fix-blocker { border: 2px solid var(--fail); }
.rv-fix-top { padding: 24px 24px 20px; display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start; }
.rv-rank { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--accent-dim); color: var(--pass); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.rv-fix-blocker .rv-rank { background: rgba(184,48,48,0.12); color: var(--fail); }
.rv-fix-main { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-fix-main h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.rv-why { margin: 0; font-size: 14px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tags:empty { display: none; }
.rv-fix-note { font-size: 13px; color: var(--warn); background: rgba(139,100,0,0.08); border-radius: 10px; padding: 8px 12px; }
.rv-fix-right { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.rv-fix-gain { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rv-gain { display: flex; flex-direction: column; }
.rv-gain-n { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--pass); }
.rv-after { font-size: 13px; font-weight: 600; text-align: right; }
.rv-fbar { height: 8px; border-radius: 999px; background: var(--rv-track); overflow: hidden; }
.rv-fbar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.rv-fix-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--text-muted); }
.rv-fix-hidden { border-top: 1px solid var(--border); padding: 10px 24px; font-size: 12px; color: var(--text-muted); background: var(--rv-strip); }
.rv-cross { display: flex; align-items: center; gap: 14px; }
.rv-cross span { flex: 1 1 auto; height: 1px; background: rgba(33,158,144,0.5); }
.rv-cross strong { font-size: 12px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: var(--rv-shadow-btn); white-space: nowrap; }

.rv-crow { border-top: 1px solid var(--border); }
.rv-crow-btn, .rv-arow2-btn { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 24px; min-height: 56px;
  background: transparent; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.rv-crow-btn:disabled, .rv-arow2-btn:disabled { cursor: default; }
.rv-crow-btn:hover:not(:disabled), .rv-arow2-btn:hover:not(:disabled) { background: var(--surface); }
.rv-crow.rv-open .rv-crow-btn { background: var(--rv-strip); }
.rv-crow-btn > .rv-pill:first-child { min-width: 72px; }
.rv-crow-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rv-crow-n { font-size: 14px; font-weight: 600; }
.rv-crow-tog { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--pass); }
.rv-vital-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong); }
.rv-doc { padding: 6px 24px 24px 110px; display: flex; flex-direction: column; gap: 16px; background: var(--rv-strip); }
.rv-doc-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.rv-doc-card { flex: 1 1 230px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 14px 16px; }
.rv-doc-card p { margin: 0; font-size: 13px; line-height: 1.6; }
.rv-doc-fix { border-color: rgba(33,158,144,0.30); background: var(--accent-dim); }
.rv-doc-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rv-doc-fix .rv-doc-h { color: var(--pass); }
.rv-doc-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.rv-doc-ic-warn { background: rgba(139,100,0,0.12); color: var(--warn); }
.rv-doc-ic-ok { background: var(--accent); color: #fff; }
.rv-code { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); }
.rv-code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; background: var(--rv-code-head); font-size: 12px; color: #c9d6d3; font-weight: 600; }
.rv-copy { background: none; border: 0; color: #7fd3c8; font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.rv-code pre { margin: 0; padding: 14px 16px; background: var(--rv-code-bg); color: var(--rv-code-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; white-space: pre; overflow-x: auto; }
.rv-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-docs a { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--pass); }
.rv-none { padding: 24px 28px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.rv-none-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--accent-dim); color: var(--pass); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.rv-polish { border: 1px dashed var(--border-strong); border-radius: 16px; background: var(--rv-strip); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.rv-polish-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.rv-polish-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rv-polish-t strong { font-size: 17px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chipitem { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.rv-polish-list { border-radius: 12px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.rv-polish-row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rv-polish-row:last-child { border-bottom: 0; }
.rv-polish-row > div:first-child { flex: 1 1 240px; display: flex; flex-direction: column; }
.rv-polish-row > div:last-child { flex: 2 1 420px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }

/* Full audit */
.rv-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-seg { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.rv-seg.rv-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.rv-cats { display: flex; flex-direction: column; gap: 10px; }
.rv-cat { border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; }
.rv-cat-pass, .rv-cat-ns, .rv-cat-na { background: var(--rv-strip); }
.rv-cat-btn { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; background: transparent; border: 0;
  cursor: pointer; font: inherit; color: inherit; text-align: left; }
.rv-cat-btn > .rv-chev { color: var(--pass); }
.rv-cat-txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.rv-cat-n { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rv-dots { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 3px; max-width: 160px; }
.rv-dots:empty { display: none; }
.rv-cat-body { border-top: 1px solid var(--border); background: var(--card); }
.rv-cat-note { padding: 10px 18px; font-size: 12px; color: var(--text-muted); background: var(--rv-strip); }
.rv-cat-body .og-preview { margin: 12px 18px; }
.rv-arow2 { border-bottom: 1px solid var(--border); }
.rv-arow2:last-child { border-bottom: 0; }
.rv-arow2-btn { padding: 10px 18px; min-height: 48px; gap: 6px 12px; }
.rv-arow2-btn .rv-crow-txt > span:first-child { font-size: 14px; font-weight: 500; }
.rv-arow2-btn > .rv-pill:last-child { min-width: 52px; }
.rv-arow2.rv-na { opacity: 0.6; }
.rv-arow2 .rv-doc { padding: 6px 18px 18px; }

/* Bottom CTA and feature request */
#results .fr-box { margin: 0; max-width: none; }
.rv-cta { border: 1px solid rgba(33,158,144,0.25); border-radius: 20px; background: var(--accent-dim); padding: 32px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 20px; }
.rv-cta > div { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.rv-cta p { margin: 0; }
.rv-cta-h { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* ── Phone width ── */
@media (max-width: 720px) {
  .rv { padding: 20px 16px 72px; gap: 32px; }
  .rv-head-wrap, .rv-notices { margin-bottom: 0; }
  #results .share-bar { flex: 1 1 100%; min-width: 0; }
  #results .adv-card { margin: 0; }
  .rv-bar-row .rv-btn { padding: 0 18px; }
  .rv-banner, .rv-strip { padding-left: 20px; padding-right: 20px; }
  .rv-score-main { padding: 28px 20px; }
  .rv-h1 { font-size: 30px; }
  .rv-ring { width: 180px; height: 180px; }
  .rv-ring-in { width: 150px; height: 150px; }
  .rv-grade { font-size: 60px; }
  .rv-strip-k { flex-basis: 100%; }
  .rv-vrow { grid-template-columns: minmax(0, 1fr) 64px; }
  .rv-vrow .rv-vbar { grid-column: 1 / -1; grid-row: 2; }
  .rv-zlegend { padding-left: 0; }
  .rv-sec-title h2 { font-size: 24px; }
  .rv-prow { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 12px; }
  .rv-prow .rv-ptrack { grid-column: 1 / -1; grid-row: 2; }
  .rv-paxis > span { display: none; }
  .rv-two > .rv-card { padding: 18px; }
  .rv-fix-top { padding: 18px; }
  .rv-crow-btn { padding: 12px 18px; }
  .rv-doc { padding: 6px 18px 18px; }
  .rv-cta { padding: 24px 20px; }
  .rv-tab { flex-basis: calc(50% - 4px); }
  .rv-waf { grid-template-columns: repeat(20, minmax(0, 1fr)); }
}

/* ── Print (Save as PDF) ── */
@media print {
  .rv-bar, .rv-cta, .rv-tabs, .rv-toggle, .rv-segs, .rv-crow-tog, .rv-chev, .rv-banner .rv-btn, .rv-strip-hint .rv-btn, #rvCta { display: none !important; }
  .rv { padding: 0; gap: 20px; max-width: 100%; }
  .rv-card, .rv-cat, .rv-fix, .rv-polish { break-inside: avoid; }
  .rv-score, .rv-fix-top, .rv-cat-btn { padding-top: 12px; padding-bottom: 12px; }
  .rv-ring, .rv-mring, .rv-pill, .rv-sw, .rv-cap-line, .rv-cap-head, .rv-cap-tick, .rv-c, .rv-band, .rv-mark, .rv-pgain, .rv-pbase, .rv-abar span, .rv-fbar span, .rv-hbar, .rv-z, .rv-dot, .rv-rank, .rv-cross strong {
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
