:root {
  --bg: #f3f7f8;
  --surface: #ffffff;
  --surface-2: #e8f1f4;
  --text: #1d252c;
  --muted: #4f5b64;
  --border: #d3e0e5;
  --border-strong: #7f97a5;
  --accent: #1a6a99;
  --accent-hover: #12557c;
  --accent-soft: #dcecf5;
  --accent-text: #ffffff;
  --lime: #eba900;
  --ink: #003b4c;
  --slate: #4e738a;
  --heading: #003b4c;
  --focus: #c25e00;
  --critical: #b4151e;
  --critical-bg: #fde8e8;
  --serious: #a8400c;
  --serious-bg: #fdeddf;
  --moderate: #7d5600;
  --moderate-bg: #fdf1cc;
  --minor: #4a5560;
  --minor-bg: #e9eef1;
  --pass: #137036;
  --pass-bg: #dcf3e4;
  --review: #333087;
  --review-bg: #e6e6f6;
  --shadow: 0 1px 2px rgba(0, 59, 76, 0.06), 0 8px 24px -12px rgba(0, 59, 76, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #041c24;
    --surface: #0a2a35;
    --surface-2: #103542;
    --text: #e9f1f4;
    --muted: #a3b8c2;
    --border: #1d4553;
    --border-strong: #5f8798;
    --accent: #6cbdec;
    --accent-hover: #8fcdf2;
    --accent-soft: #123f52;
    --accent-text: #032029;
    --focus: #ffc533;
    --critical: #ffa8a8;
    --critical-bg: #44141a;
    --serious: #ffbf8f;
    --serious-bg: #43220f;
    --moderate: #f5d76e;
    --moderate-bg: #3a2f0d;
    --minor: #cdd6dc;
    --minor-bg: #1c3440;
    --pass: #8ae3aa;
    --pass-bg: #0f3522;
    --review: #b7b4ff;
    --review-bg: #24244a;
    --heading: #f2f7f9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; font-size: 1rem; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus, h1:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); color: var(--heading, inherit); letter-spacing: -0.01em; line-height: 1.15; color: inherit; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 2rem 0 0.5rem; font-weight: 800; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 0; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 20; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.875rem; margin: 0 0 6px; }
.lede { color: var(--muted); max-width: 64ch; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-thin { font-weight: 500; opacity: 0.85; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: #298cca; color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.mark svg { width: 20px; height: 20px; }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: #d6d5e8; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
nav a[aria-current="page"] { color: var(--ink); background: var(--lime); font-weight: 600; }

/* Hero */
.hero { background: var(--ink); color: #f3f2fb; position: relative; overflow: hidden; padding: 56px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(41,140,202,0.55), transparent 65%); filter: blur(10px); }
.hero-inner { position: relative; z-index: 1; }
.hero .glow2 { position: absolute; width: 420px; height: 420px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(235,169,0,0.28), transparent 65%); }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--lime); border: 1px solid rgba(235,169,0,0.5); border-radius: 999px; padding: 4px 12px; margin: 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 18px 0 14px; max-width: 14ch; line-height: 1.02; color: #fff; }
.hl { color: var(--lime); }
.hero .lede { color: #c9c8de; font-size: 1.15rem; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; color: #b9b8d0; font-size: 0.92rem; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.8rem; color: #fff; line-height: 1.1; }

/* Scan area overlapping hero */
.scan-area { position: relative; margin-top: -84px; z-index: 2; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.mode { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font: inherit; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.mode:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.mode[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.mode-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background 0.15s, color 0.15s; }
.mode-icon svg { width: 24px; height: 24px; }
.mode[aria-selected="true"] .mode-icon { background: var(--accent); color: var(--accent-text); }
.mode-text { display: flex; flex-direction: column; }
.mode-title { font-weight: 700; font-size: 1rem; }
.mode-sub { color: var(--muted); font-size: 0.85rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-card { padding: 24px; }
.panel { animation: rise 0.25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Forms */
label, legend { font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.95rem; }
input[type="url"], input[type="search"], input[type="number"], input:not([type]), textarea {
  width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.mono { font-family: var(--mono); font-size: 0.85rem; }
.field { margin: 0 0 18px; }
.url-row { display: flex; gap: 10px; }
.url-row input { font-size: 1.1rem; padding: 14px 16px; }
.row-opts { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.inline-field { display: flex; align-items: center; gap: 8px; }
.inline-field label { margin: 0; font-weight: 500; }
.inline-field input { width: 80px; padding: 6px 10px; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.check label { font-weight: 400; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.img-opts { background: var(--surface-2); border: 0; }
[aria-invalid="true"] { border-color: var(--critical) !important; }
.error { color: var(--critical); font-weight: 600; margin: 8px 0 0; font-size: 0.92rem; }
.error::before { content: "⚠ "; }
details.more { margin: 12px 0 18px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 0.92rem; font-weight: 500; width: fit-content; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }

button { font: inherit; cursor: pointer; }
button.primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: var(--radius-sm); padding: 12px 22px; font-weight: 700; white-space: nowrap; transition: background 0.15s, transform 0.1s; }
button.primary:hover { background: var(--accent-hover); }
button.primary:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; }
button.secondary, a.button { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
button.secondary:hover, a.button:hover { border-color: var(--border-strong); }
button:disabled { opacity: 0.6; cursor: progress; }

.drop { position: relative; border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 36px 20px; text-align: center; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.drop-icon svg { width: 26px; height: 26px; }
.drop-title { font-weight: 600; font-size: 1.05rem; margin: 12px 0 4px; }
.fake-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file-list li { display: inline-flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; }
.ext { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; background: var(--accent); color: var(--accent-text); border-radius: 4px; padding: 1px 5px; text-transform: uppercase; }

/* Section heads */
.section-head, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.recent { margin: 40px 0 56px; }
.recent .section-head { margin-bottom: 14px; }
.page-head h1 { margin-bottom: 1rem; }
.filters { min-width: 280px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; white-space: nowrap; letter-spacing: 0.01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.fail, .badge.critical { color: var(--critical); background: var(--critical-bg); }
.badge.serious { color: var(--serious); background: var(--serious-bg); }
.badge.warn, .badge.moderate { color: var(--moderate); background: var(--moderate-bg); }
.badge.minor, .badge.error, .badge.running { color: var(--minor); background: var(--minor-bg); }
.badge.pass { color: var(--pass); background: var(--pass-bg); }
.badge.review { color: var(--review); background: var(--review-bg); }

/* Scan cards (recent + history) */
.scan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.scan-card { position: relative; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s, border-color 0.15s; }
.scan-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.scan-card-top { display: flex; gap: 12px; align-items: flex-start; }
.scan-card .mode-icon { width: 38px; height: 38px; border-radius: 10px; }
.scan-card .mode-icon svg { width: 20px; height: 20px; }
.scan-card h3 { font-family: var(--font); font-size: 0.98rem; letter-spacing: 0; overflow-wrap: anywhere; }
.scan-card h3 a { color: var(--text); text-decoration: none; }
.scan-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.scan-card h3 a:focus-visible { outline: none; }
.scan-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.scan-card .sub { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.scan-card .score-mini { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.scan-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.sev-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.sev-bar span { display: block; height: 100%; }
.sev-bar .c { background: var(--critical); }
.sev-bar .s { background: var(--serious); }
.sev-bar .m { background: var(--moderate); }
.sev-bar .n { background: var(--minor); }
.sev-bar .p { background: var(--pass); }
.empty { color: var(--muted); padding: 28px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--radius); text-align: center; }
.history-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; }
.history-stats li { padding: 14px 16px; }
.history-stats .n { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.history-stats .l { color: var(--muted); font-size: 0.88rem; }

/* Report */
.report-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; margin: 28px 0 20px; position: relative; overflow: hidden; }
.report-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -140px; border-radius: 50%; background: var(--glow, var(--accent-soft)); opacity: 0.7; pointer-events: none; }
.report-hero.fail { --glow: var(--critical-bg); }
.report-hero.warn { --glow: var(--moderate-bg); }
.report-hero.pass { --glow: var(--pass-bg); }
.report-hero h1 { margin: 6px 0 6px; overflow-wrap: anywhere; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.report-hero > * { position: relative; z-index: 1; }
.meta { color: var(--muted); margin: 0; overflow-wrap: anywhere; font-size: 0.92rem; }
.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-2); }
.ring .val { stroke: var(--ring, var(--accent)); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.ring.fail { --ring: var(--critical); }
.ring.warn { --ring: var(--moderate); }
.ring.pass { --ring: var(--pass); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label .num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.ring-label .cap { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.stats li { padding: 14px 16px; border-top: 4px solid var(--c, var(--border)); }
.stats .n { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .l { color: var(--muted); font-size: 0.88rem; }
.stats .k-crit { --c: var(--critical); }
.stats .k-mod { --c: var(--moderate); }
.stats .k-rev { --c: var(--review); }
.stats .k-pass { --c: var(--pass); }
.report-bar { margin: 0 0 28px; }
.report-bar .sev-bar { height: 10px; }
.report-bar .legend-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.item { margin: 18px 0; overflow: hidden; }
.item > header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--surface-2); }
.item h2 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; font-family: var(--font); letter-spacing: 0; }
.item .body { padding: 4px 20px 18px; }
.item .page-error { color: var(--critical); font-weight: 600; }
.ok-note { display: flex; align-items: center; gap: 10px; color: var(--pass); font-weight: 600; margin: 14px 0; }
.ok-note svg { width: 22px; height: 22px; }
.group-title { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 20px 0 6px; font-weight: 500; }
details.issue { border: 1px solid var(--border); border-left: 4px solid var(--c, var(--border)); border-radius: var(--radius-sm); margin: 8px 0; background: var(--surface); }
details.issue.critical { --c: var(--critical); }
details.issue.serious { --c: var(--serious); }
details.issue.moderate { --c: var(--moderate); }
details.issue.minor { --c: var(--minor); }
details.issue.review { --c: var(--review); }
details.issue summary { cursor: pointer; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; list-style: none; }
details.issue summary::-webkit-details-marker { display: none; }
details.issue summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; flex: none; }
details.issue[open] summary::after { transform: rotate(-135deg); }
details.issue summary h3 { font-family: var(--font); letter-spacing: 0; font-size: 0.98rem; font-weight: 600; flex: 1 1 260px; }
details.issue .count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
details.issue .issue-body { padding: 0 16px 14px; }
details.issue p { margin: 6px 0; max-width: 75ch; }
.wcag { color: var(--muted); font-size: 0.85rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--mono); font-size: 0.75rem; background: var(--surface-2); border-radius: 6px; padding: 2px 7px; color: var(--text); }
.nodes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.nodes li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.88rem; }
.nodes code { font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; display: block; white-space: pre-wrap; margin: 4px 0; color: var(--muted); }
.nodes .target { font-weight: 600; overflow-wrap: anywhere; }
.swatch { display: inline-block; padding: 1px 8px; border-radius: 5px; border: 1px solid var(--border); font-weight: 800; margin-right: 8px; }

/* Scanning state */
.scanning { margin: 40px auto; max-width: 560px; text-align: center; padding: 40px 28px; }
.scanning h1 { font-size: 1.6rem; margin-top: 24px; overflow-wrap: anywhere; }
.radar { position: relative; width: 140px; height: 172px; margin: 0 auto; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--border); overflow: hidden; }
.radar .ln { position: absolute; left: 16px; height: 8px; border-radius: 4px; background: var(--border); }
.radar .beam { position: absolute; left: 0; right: 0; height: 36px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent)); border-bottom: 2px solid var(--accent); animation: beam 1.6s ease-in-out infinite alternate; }
@keyframes beam { from { top: -36px; } to { top: 100%; } }
.progress-text { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.about-card { padding: 20px; }
.about-card h2 { margin: 14px 0 8px; font-size: 1.15rem; }
.about-card p { margin: 6px 0; font-size: 0.93rem; color: var(--muted); }
.about-card strong { color: var(--text); }
.legend { list-style: none; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; gap: 12px; align-items: center; }
.legend .badge { min-width: 86px; justify-content: center; }
.prose { padding-bottom: 56px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; padding: 20px 0; }

@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr; }
  .mode { padding: 12px 14px; }
  .two-col { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; justify-items: start; }
  .hero { padding: 36px 0 100px; }
}
@media (max-width: 480px) {
  .url-row { flex-direction: column; }
  .panel-card { padding: 18px; }
  .bar { padding-top: 8px; padding-bottom: 8px; }
}
@media print {
  .site-header, .site-footer, .actions, .skip { display: none; }
  details.issue { break-inside: avoid; }
  body { background: #fff; }
}

/* Standards view */
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.sync-card { padding: 18px 20px; }
.sync-card h2 { margin: 0 0 6px; font-size: 1rem; }
.sync-card .big { font-size: 1.9rem; font-weight: 900; line-height: 1.1; color: var(--heading); }
.sync-card p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin: 12px 0; background: var(--moderate-bg); color: var(--text); border-left: 4px solid var(--moderate); }
.notice.ok { background: var(--pass-bg); border-left-color: var(--pass); }
.notice.err { background: var(--critical-bg); border-left-color: var(--critical); }
.notice p { margin: 0; }
.crit-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.92rem; }
.crit-table th, .crit-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.crit-table thead th { background: var(--surface-2); font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.crit-table td.rules { color: var(--muted); font-size: 0.82rem; }
.crit-table .num { font-family: var(--mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.seg { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.changes li { padding: 12px 14px; }
@media (max-width: 600px) {
  .crit-table thead { display: none; }
  .crit-table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .crit-table td, .crit-table th { display: block; border: 0; padding: 2px 12px; }
}
