@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plusjakartasans-var.woff2?v=30-2026-09-26") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface: #171a1f;
  --surface-2: #1d2127;
  --surface-3: #242931;
  --ink: #f5f5f2;
  --muted: #a9b1ba;
  --faint: #7f8b98;
  --line: #343a43;
  --accent: #f57c00;
  --accent-hover: #ff982f;
  --accent-ink: #111316;
  --high: #ff857d;
  --high-bg: #3b2427;
  --info: #83bcf3;
  --info-bg: #203247;
  --none: #8bd3a2;
  --none-bg: #1d392b;
  --warn-bg: #302510;
  --warn-ink: #ffd288;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --text-xs: clamp(.75rem, .71rem + .18vw, .84rem);
  --text-sm: clamp(.875rem, .83rem + .2vw, .96rem);
  --text-base: clamp(1rem, .96rem + .18vw, 1.06rem);
  --text-lg: clamp(1.125rem, 1.05rem + .34vw, 1.28rem);
  --text-xl: clamp(1.65rem, 1.35rem + 1.3vw, 2.2rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f3;
  --surface: #fff;
  --surface-2: #f8f8f5;
  --surface-3: #eff0ec;
  --ink: #17212d;
  --muted: #4b5866;
  --faint: #5a6877;
  --line: #cbd2d9;
  --accent: #ba5600;
  --accent-hover: #9c4600;
  --accent-ink: #fff;
  --high: #a52621;
  --high-bg: #f9e7e5;
  --info: #225a9a;
  --info-bg: #e8f1fc;
  --none: #17663b;
  --none-bg: #e5f4eb;
  --warn-bg: #fff0cc;
  --warn-ink: #573700;
}

/* v50 surface hierarchy: the page, workspace, reference, support and promotion
   each have a distinct role in both themes. */
:root {
  --canvas-glow: rgba(245, 124, 0, .075);
  --canvas-cool: rgba(87, 115, 158, .07);
  --scanner-top: #222730;
  --scanner-bottom: #15191f;
  --scanner-border: #7a583b;
  --scanner-shadow: rgba(0, 0, 0, .42);
  --module-bg: #20252c;
  --control-bg: #101317;
  --secondary-bg: #191d23;
  --support-bg: #1b1c1d;
  --promotion-bg: #151c23;
  --highlight: rgba(255, 255, 255, .13);
  --quiet-shadow: rgba(0, 0, 0, .12);
}
[data-theme="light"] {
  --bg: #eef1f2;
  --canvas-glow: rgba(231, 135, 49, .095);
  --canvas-cool: rgba(107, 146, 183, .10);
  --scanner-top: #ffffff;
  --scanner-bottom: #f7f7f5;
  --scanner-border: #d0a675;
  --scanner-shadow: rgba(35, 48, 66, .15);
  --module-bg: #f2f4f5;
  --control-bg: #fff;
  --secondary-bg: #fff;
  --support-bg: #fffdf9;
  --promotion-bg: #f5f8fb;
  --highlight: rgba(255, 255, 255, .9);
  --quiet-shadow: rgba(43, 57, 72, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse 55rem 33rem at 60% 11rem, var(--canvas-glow), transparent 78%),
    radial-gradient(ellipse 54rem 32rem at 4% 28rem, var(--canvas-cool), transparent 80%), var(--bg);
  color: var(--ink);
  font: var(--text-base)/1.58 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }

.testbar {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 38px; padding: var(--space-2) var(--space-4);
  background: var(--warn-bg); color: var(--warn-ink);
  border-bottom: 1px solid var(--line);
  font: 700 var(--text-xs)/1.4 var(--font-body);
  letter-spacing: .06em; text-align: center;
}
.test-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
.testbar-sep { opacity: .5; }
.wrap { max-width: 1216px; margin: auto; padding: 0 var(--space-6) var(--space-12); }
.head {
  min-height: 82px; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); border-bottom: 1px solid var(--line);
}
.brand-line, .head-actions { display: flex; align-items: center; gap: var(--space-5); }
.brand-home { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.brand-home:hover { opacity: .88; }
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
.site-language { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.site-language select { min-height: 44px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.brand-logo { display: block; width: clamp(190px, 20vw, 245px); height: auto; background: #fff; border-radius: 5px; }
.brand-divider { height: 29px; border-left: 1px solid var(--line); }
.brand-label { text-decoration: none; font-size: var(--text-xs); font-weight: 800; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.brand-label:hover, .foot a:hover { color: var(--accent); }
.visit-count { color: var(--faint); font: 500 var(--text-xs)/1.4 var(--font-body); white-space: nowrap; }
.visit-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tag {
  color: var(--muted); font: 600 var(--text-xs)/1 var(--mono);
  border: 1px solid var(--line); border-radius: 999px; padding: var(--space-2) var(--space-3); white-space: nowrap;
}
.theme-toggle {
  min-height: 44px; padding: 0 var(--space-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--text-sm);
}
.theme-toggle:hover { border-color: var(--accent); }
.eyebrow { margin: 0; color: var(--accent); font: 800 var(--text-xs)/1.5 var(--font-body); letter-spacing: .13em; }
.eyebrow span { color: var(--faint); }
.intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8);
  padding: var(--space-10) 0 var(--space-8);
}
.intro h1 {
  font: 800 var(--text-xl)/1.17 var(--font-display); letter-spacing: -.045em;
  margin: var(--space-3) 0 var(--space-3); text-wrap: balance;
}
.intro h1 span { color: var(--accent); }
.lead { margin: 0; max-width: 67ch; color: var(--muted); }
.intro-signal {
  flex: none; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface);
  font: 700 var(--text-xs)/1.6 var(--mono); letter-spacing: .03em; color: var(--muted);
}
.intro-signal strong { color: var(--ink); }
.signal-mark { width: 11px; height: 11px; flex: none; border-radius: 50%; background: #58bc75; box-shadow: 0 0 0 4px #58bc7526; }
.story-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  align-items: center; gap: var(--space-8); margin: var(--space-10) 0 var(--space-8);
  padding: var(--space-10) var(--space-8);
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--bg) 24%, transparent);
}
.story-copy h2 { margin: 0 0 var(--space-4); color: var(--accent); font-size: var(--text-lg); font-weight: 800; }
.story-copy p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.story-copy .story-ask { margin-top: var(--space-5); color: var(--ink); font-weight: 750; }
.story-support { display: grid; gap: var(--space-4); justify-items: stretch; }
.story-support p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.workspace { display: block; }
.workbench, .side-panel, .info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.workbench {
  min-width: 0; padding: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  background: var(--surface);
  box-shadow: 0 15px 36px color-mix(in srgb, var(--bg) 30%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}
.workbench-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-5); }
.workbench-hint { color: var(--faint); font-size: var(--text-xs); }
.input-mode { padding: var(--space-5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); }
.input-mode + .input-mode { margin-top: var(--space-6); }
.input-mode-title { margin: 0 0 var(--space-2); color: var(--ink); font: 800 var(--text-lg)/1.3 var(--font-display); }
.file-support { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.mode-note {
  margin: 0 0 var(--space-5); padding: 0;
  background: transparent; border-radius: 0;
  color: var(--muted); font-size: var(--text-sm);
}
.mode-note b { color: var(--ink); }
.label { display: block; font-weight: 800; font-size: var(--text-sm); margin-bottom: var(--space-2); }
textarea, input[type="file"] {
  width: 100%; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
textarea {
  min-height: 226px; resize: vertical; padding: var(--space-4) var(--space-5);
  font: var(--text-sm)/1.65 var(--mono);
}
textarea::placeholder { color: var(--faint); }
textarea:focus, input[type="file"]:focus-visible { border-color: var(--accent); }
input[type="file"] { padding: var(--space-3); font-size: var(--text-sm); }
input[type="file"]::file-selector-button {
  cursor: pointer; padding: var(--space-2) var(--space-3); margin-right: var(--space-3);
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 700;
}
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }
.counter { font: var(--text-xs)/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; gap: var(--space-2); margin-left: auto; }
.btn {
  min-height: 48px; padding: 0 var(--space-5); border: 1px solid transparent;
  border-radius: var(--radius-sm); font: 800 var(--text-sm)/1 var(--font-body);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 17px color-mix(in srgb, var(--accent) 17%, transparent); }
.btn--ghost { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--faint); }
.btn:disabled { opacity: .47; cursor: not-allowed; }
.hint { margin: var(--space-3) 0 0; color: var(--faint); font-size: var(--text-xs); }

.side-panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4); padding: var(--space-6); margin: var(--space-8) 0 0;
}
.side-panel-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.side-panel-top, .side-bottom { grid-column: 1 / -1; margin: 0; }
.side-line { flex: 1; border-top: 1px solid var(--line); }
.side-item { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.side-item:first-of-type { border-top: 0; }
.side-number { color: var(--accent); font: 700 var(--text-xs)/1.7 var(--mono); }
.side-item strong { display: block; font-size: var(--text-sm); }
.side-item p { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.side-bottom { display: flex; gap: var(--space-2); color: var(--muted); font-size: var(--text-xs); border-top: 1px solid var(--line); padding-top: var(--space-5); margin-top: var(--space-3); }
.side-privacy-detail { grid-column: 1 / -1; margin: calc(-1 * var(--space-3)) 0 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.5; }
.side-shield { color: var(--none); font-weight: 800; }

.result { margin-top: var(--space-6); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.result:focus:not(:focus-visible) { outline: none; }
.result h3 { font-size: var(--text-sm); margin: var(--space-6) 0 var(--space-3); letter-spacing: -.01em; }
.verdict { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-sm); }
.verdict--high { background: var(--high-bg); }
.verdict--info { background: var(--info-bg); }
.verdict--none { background: var(--none-bg); }
.verdict--empty { background: var(--surface-2); }
.verdict-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.verdict-text strong { font-size: var(--text-sm); line-height: 1.45; }
.verdict-meta { font: var(--text-xs)/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 53px; padding: 3px var(--space-2); flex: none; border-radius: 4px; font: 800 var(--text-xs)/1.3 var(--mono); letter-spacing: .04em; background: var(--surface-3); color: var(--ink); }
.badge--high { color: var(--high); background: var(--high-bg); border: 1px solid currentColor; }
.badge--info { color: var(--info); background: var(--info-bg); border: 1px solid currentColor; }
.badge--none { color: var(--none); background: var(--none-bg); border: 1px solid currentColor; }
.findings { list-style: none; padding: 0; display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; }
.finding { min-width: 0; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.finding-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.finding-cat { font-size: var(--text-sm); font-weight: 800; line-height: 1.4; }
.finding-meta { display: block; color: var(--muted); font: var(--text-xs)/1.6 var(--mono); margin-top: var(--space-2); overflow-wrap: anywhere; }
.finding-excerpt { display: block; max-width: 100%; padding: var(--space-3); margin: var(--space-3) 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font: var(--text-xs)/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.finding p { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.finding p b { color: var(--ink); }
.finding .finding-why, .finding .finding-todo {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); color: var(--ink);
}
.finding .finding-why { background: var(--high-bg); }
.finding .finding-why b { color: var(--high); }
.finding .finding-todo { background: var(--none-bg); }
.finding .finding-todo b { color: var(--none); }
.finding-note, .note, .more { color: var(--muted); font-size: var(--text-xs) !important; }
.more, .note { margin: var(--space-3) 0 0; }
.result-language {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-6); padding: var(--space-3) var(--space-4);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--text-sm);
}
.result-language select {
  min-height: 44px; min-width: 130px; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.result-language select:focus-visible { border-color: var(--accent); }
.result-language + .result { margin-top: var(--space-3); }
.result-summary { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.summary-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.summary-count { font: 800 var(--text-lg)/1.3 var(--font-display); letter-spacing: -.02em; }
.expand-all { min-width: 132px; }
.result-breakdown {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  padding: var(--space-4) var(--space-1) var(--space-2);
  color: var(--ink); font: 700 var(--text-xs)/1.5 var(--mono);
}
.result-overlap, .result-file {
  color: var(--muted); font-size: var(--text-xs); margin: 0 var(--space-1) var(--space-2);
}
.result-file { font-family: var(--mono); overflow-wrap: anywhere; }
.finding-group { padding-top: var(--space-3); }
.finding-group + .finding-group { border-top: 1px solid var(--line); margin-top: var(--space-5); }
.finding-group h3 { margin: var(--space-3) 0; }
.aggregate-tag {
  display: inline-flex; align-items: center; padding: var(--space-1) var(--space-2);
  color: var(--info); background: var(--info-bg); border-radius: 4px;
  font: 700 var(--text-xs)/1.3 var(--font-body);
}
.finding-toggle {
  min-height: 44px; margin-top: var(--space-2); padding: 0 var(--space-3);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--accent); font: 800 var(--text-sm)/1 var(--font-body);
}
.finding-toggle:hover { border-color: var(--accent); }
.finding-details { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.detail-row { margin: 0 0 var(--space-3); }
.detail-row--reason, .detail-row--recommendation {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.detail-row--reason { background: var(--high-bg); }
.detail-row--reason .detail-label { color: var(--high); }
.detail-row--recommendation { background: var(--none-bg); }
.detail-row--recommendation .detail-label { color: var(--none); }
.detail-row--reason .detail-value, .detail-row--recommendation .detail-value { color: var(--ink); }
.detail-label {
  display: block; margin-bottom: var(--space-1); color: var(--muted);
  font: 700 var(--text-xs)/1.4 var(--font-body);
}
.detail-value { display: block; overflow-wrap: anywhere; font-size: var(--text-sm); }
.detail-row .finding-excerpt { margin: var(--space-2) 0; }

.info { padding: var(--space-10) 0 0; }
.info-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.info-head h2 { font-size: var(--text-lg); margin: 0; font-weight: 800; letter-spacing: -.03em; }
.info-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-5); }
.info-card { padding: var(--space-6); min-width: 0; }
.info-card h3 { margin: 0 0 var(--space-5); font-size: var(--text-sm); letter-spacing: .02em; }
.pwa-card { display: none; }
.pwa-card p { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.pwa-install-button { min-height: 44px; }
.pwa-manual { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.pwa-manual summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: .18em; }
.pwa-manual p { margin: var(--space-2) 0 0; }
.pwa-installed { display: inline-flex; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
@media (max-width: 1280px) and (pointer: coarse) {
  .pwa-card:not([hidden]) { display: block; }
  .info-grid--pwa { grid-template-columns: minmax(0, 1fr); }
}
.levels { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); margin: 0; align-items: start; }
.levels dd { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.level-context { display: block; margin-top: .28rem; color: var(--faint); font-size: .79em; line-height: 1.5; }
.tag--link { text-decoration: none; color: inherit; }
.tag--link:hover, .tag--link:focus-visible { color: var(--accent); border-color: var(--accent); }
.updates-list { display: grid; gap: var(--space-4); padding: 0; margin: var(--space-8) 0 var(--space-12); list-style: none; }
.update-entry { padding: var(--space-5) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.update-entry h2 { margin: 0 0 .5rem; font-size: var(--text-lg); }
.update-entry time { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.update-entry p { margin: 0; color: var(--muted); }
.legal-list { display: grid; gap: var(--space-4); margin: var(--space-8) 0 var(--space-12); }
.legal-section h2 { margin: 0 0 .55rem; font-size: var(--text-lg); }
.legal-section p { margin: 0; white-space: pre-line; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.foot > span a { color: inherit; }
.info-card ul { margin: 0; padding-left: var(--space-5); color: var(--muted); font-size: var(--text-sm); }
.info-card li { margin: 0 0 var(--space-3); }
.info-card li::marker { color: var(--accent); }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  max-width: 1216px; margin: 0 auto; padding: var(--space-6);
  color: var(--faint); font: 700 var(--text-xs)/1.5 var(--mono); border-top: 1px solid var(--line);
}
.foot span span { color: inherit; }
.coffee-link {
  display: inline-flex; justify-content: center; align-items: center; text-align: center;
  min-height: 58px; padding: var(--space-3) var(--space-5); border: 2px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font: 800 var(--text-sm)/1.4 var(--font-body);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 23%, transparent);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.coffee-link:hover, .coffee-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent-hover); background: var(--accent-hover); color: var(--accent-ink);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 44%, transparent);
}
@media (max-width: 970px) {
  .story-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .story-support { max-width: 28rem; }
  .side-item { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .story-card { padding: var(--space-8) var(--space-5); margin-bottom: var(--space-5); }
  .wrap { padding: 0 var(--space-4) var(--space-10); }
  .head { min-height: 82px; flex-wrap: wrap; padding: var(--space-3) 0; }
  .head-actions { gap: var(--space-2); }


  .brand-divider { display: none; }
  .brand-label { white-space: normal; letter-spacing: .04em; }
  .head-actions { gap: var(--space-2); }
  .intro { display: block; padding: var(--space-10) 0 var(--space-8); }
  .intro-signal { display: inline-flex; margin-top: var(--space-5); }
  .side-panel { display: block; }
  .info-grid { grid-template-columns: 1fr; }
  .info-head { display: block; }
  .info-head h2 { margin-top: var(--space-2); }
  .foot { flex-wrap: wrap; padding: var(--space-6) var(--space-4); }
}
@media (max-width: 450px) {
  .story-card { min-height: 0; }
  .testbar { font-size: .75rem; letter-spacing: 0; }
  .head { gap: var(--space-2); }
  .head-actions { width: 100%; justify-content: space-between; }


  .tag { display: inline-flex; }
  .workbench { padding: var(--space-4); }
  .workbench-hint { display: none; }
  .input-mode { padding: var(--space-4); }
  .actions { width: 100%; }
  .actions .btn { flex: 1; padding: 0 var(--space-2); }
  .result { padding: var(--space-3); }
  .verdict { flex-wrap: wrap; }
  .result-language { flex-wrap: wrap; }
  .result-language select { width: 100%; }
  .expand-all { width: 100%; }
}
@media (max-width: 360px) {
  .story-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .coffee-link:hover, .coffee-link:focus-visible { transform: none; }
}

.foot a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .visit-count { order: 3; width: 100%; } .brand-label { font-size: .68rem; } }
/* v19 evidence explorer */
.coverage { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: var(--space-5) 0; font-size: var(--text-xs); }
.coverage > strong { margin-right: .35rem; }
.coverage-item { padding: .25rem .55rem; border-radius: 999px; background: var(--none-bg); color: var(--none); border: 1px solid var(--line); }
.coverage--unavailable, .coverage--not-present { background: var(--surface-2); color: var(--muted); }
.finding-grid { display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); gap: var(--space-4); align-items: start; margin-top: var(--space-5); }
.finding-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); max-height: 36rem; overflow: auto; }
.finding-list .finding { padding: 0; margin: 0; }
.finding-select { width: 100%; min-height: 60px; display: grid; gap: .25rem; justify-items: start; text-align: left; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.finding-select:hover, .finding-select[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); }
.finding-select .finding-cat { overflow-wrap: anywhere; }
.finding-pane { min-height: 13rem; min-width: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow-wrap: anywhere; }
.finding-pane .finding-excerpt { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) { .finding-grid { grid-template-columns: 1fr; } .finding-list { max-height: 17rem; } }
.testbar { background: var(--surface-2); color: var(--muted); letter-spacing: .08em; }
/* v21 information and local report controls */
.guide-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; padding: .85rem 0; font-size: var(--text-sm); }
.guide-nav a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.guide-wrap > h1 { margin: 1.2rem 0 .4rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.14; }
.guide-wrap > .lead { max-width: 60rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.guide-grid .info-card { min-width: 0; }
.guide-grid h2 { margin: 0 0 .6rem; font-size: var(--text-lg); }
.guide-grid p { margin: 0; color: var(--muted); }
.guide-note, .plain-explanation { padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface-2); }
.plain-explanation { margin: .75rem 0; font-weight: 600; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .75rem 0; }
.batch-export-actions { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; padding-top: .65rem; border-top: 1px solid var(--line); }
.batch-export-label { flex: 1 0 100%; color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
.report-actions [role="status"] { color: var(--high); font-size: var(--text-sm); }
@media (max-width: 700px) { .guide-grid { grid-template-columns: 1fr; } }
/* v22 compact header menu and expandable guides */
.site-menu { position: relative; z-index: 20; flex: none; }
.site-menu > summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 800; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu[open] > summary { border-color: var(--accent); }
.site-menu nav { position: absolute; top: calc(100% + .25rem); left: 0; width: min(18rem, 85vw); display: grid; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 12px 30px #0002; }
.site-menu nav a { display: block; padding: .65rem .75rem; color: var(--ink); text-decoration: none; border-radius: .3rem; }
.site-menu nav a:hover, .site-menu nav a:focus-visible { background: var(--surface-3); color: var(--accent); }
.learn-card { align-self: start; }
.learn-card summary { cursor: pointer; list-style: none; position: relative; padding-right: 1.6rem; }
.learn-card summary::-webkit-details-marker { display: none; }
.learn-card summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.learn-card[open] summary::after { content: '−'; }
.learn-card summary strong { display: block; font-size: var(--text-lg); margin-bottom: .45rem; }
.learn-card summary span { display: block; color: var(--muted); }
.learn-card .learn-more { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); }
@media (max-width: 700px) { .brand-line { flex-wrap: wrap; } .site-menu > summary span { display: none; } }
/* v26 input and supporter surfaces */
.drop-zone { display: flex; flex-direction: column; justify-content: center; gap: .4rem; min-height: 124px; padding: 1.25rem; border: 1px dashed var(--faint); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease; }
.drop-zone:hover, .drop-zone--over, .drop-zone:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-zone strong { color: var(--ink); font-size: var(--text-base); }
.drop-zone span { color: var(--muted); font-size: var(--text-sm); }
.drop-zone input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.capture-status { margin: .5rem 0; color: var(--muted); font-size: var(--text-sm); }
.capture-status--html { color: var(--none); font-weight: 700; }
.sponsor-offer { margin: .85rem 0 .25rem; font-size: var(--text-sm); color: var(--muted); }
.sponsor-mail { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.supporter-banner { margin: 2rem 0 0; padding: 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); }
.supporter-banner > strong { display: block; margin-bottom: .65rem; font-size: var(--text-sm); }
/* v28 supporter carousel */
.supporter-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.supporter-heading > strong { font-size: var(--text-sm); }
.supporter-toggle { min-height: 40px; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: var(--text-sm); }
.supporter-toggle:hover { border-color: var(--accent); }
.supporter-viewport { overflow: hidden; position: relative; }
.supporter-viewport::before, .supporter-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2rem; pointer-events: none; z-index: 2; }
.supporter-viewport::before { left: 0; background: linear-gradient(90deg,var(--surface),transparent); }
.supporter-viewport::after { right: 0; background: linear-gradient(270deg,var(--surface),transparent); }
.supporter-track { display: flex; width: max-content; }
.supporter-track--static { width: 100%; }
.supporter-track--static .supporter-group { width: 100%; padding-right: 0; justify-content: center; flex-wrap: wrap; }
.supporter-viewport--scroll { overflow-x: auto; }
.supporter-viewport--scroll::before, .supporter-viewport--scroll::after { display: none; }
.supporter-group { display: flex; gap: 1rem; padding-right: 1rem; flex: none; }
.supporter-card { width: 240px; width: clamp(210px, 25vw, 270px); min-height: 118px; display: flex; align-items: center; justify-content: center; padding: 1.15rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); box-shadow: 0 4px 16px #0001; font-weight: 800; }
.supporter-card a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.supporter-card a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .supporter-viewport { overflow-x: auto; }
  .supporter-viewport::before, .supporter-viewport::after { display: none; }
}


/* Approved logo pack: one source for the header and title mark. */
.product-mark { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: .18em; object-fit: contain; background: #fff; border-radius: .12em; }

.scan-rule-control { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; color: var(--ink); }
.scan-rule-control label { font-weight: 750; }
.scan-rule-control select { min-height: 44px; max-width: 100%; padding: .5rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.scan-rule-control p { width: 100%; margin: 0; color: var(--muted); font-size: var(--text-xs); }
.rule-scope { margin: .7rem 0; color: var(--muted); font-size: var(--text-sm); }

.coverage--partial, .pdf-warning { color: var(--accent); }
.pdf-warning { padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
#print-report { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  body.printing-report { background: white !important; color: #111 !important; }
  body.printing-report > :not(#print-report) { display: none !important; }
  body.printing-report #print-report { display: block; font: 10pt/1.45 Arial, sans-serif; color: #111; background: white; }
  #print-report h1 { font-size: 22pt; margin: 0 0 5mm; }
  #print-report h2 { font-size: 14pt; margin: 7mm 0 3mm; break-after: avoid; }
  #print-report h3, #print-report h4 { font-size: 11pt; margin: 4mm 0 2mm; break-after: avoid; overflow-wrap: anywhere; }
  #print-report p, #print-report li { overflow-wrap: anywhere; }
  #print-report pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 10pt/1.5 Arial, sans-serif; unicode-bidi: plaintext; border-left: 2pt solid #777; padding-left: 3mm; }
  #print-report .print-finding { break-inside: avoid; }
}
/* The mirror aligns with the editable textarea. Only the textarea receives input. */
.text-editor { position: relative; }
.text-editor textarea { position: relative; z-index: 1; display: block; }
.text-highlights { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; pointer-events: none;
  box-sizing: border-box; padding: var(--space-4) var(--space-5); border: 1px solid transparent;
  font: var(--text-sm)/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; color: var(--ink); }
.text-editor--active .text-highlights { display: block; }
.text-editor--active textarea { color: transparent; -webkit-text-fill-color: transparent; background: transparent; caret-color: var(--ink); }
.text-editor--active textarea::selection { background: #6a99d466; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.text-highlights mark { border-radius: 2px; color: inherit; }
.text-highlight--high { background: #ffb18c99; box-shadow: 0 0 0 1px #ad4f28; }
.text-highlight--info { background: #f1d77499; box-shadow: 0 0 0 1px #947619; }
.pdf-summary { margin: .8rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: var(--text-sm); line-height: 1.6; }

/* v50 presentation layer. Scanner is the primary product surface; the other
   sections have quieter, deliberately different depths. No decorative motion. */
.head { min-width: 0; padding-block: var(--space-3); }
.brand-line, .head-actions { min-width: 0; }
.brand-home { padding: .25rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 15px var(--quiet-shadow); }
.head-actions { gap: var(--space-3); }
.visit-count { opacity: .85; }
.tag, .theme-toggle, .site-language select, .site-menu > summary { box-shadow: inset 0 1px var(--highlight); }
.intro { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.intro-copy { min-width: 0; }
.intro h1 { font-size: clamp(2.25rem, 3rem + 1.5vw, 4.2rem); line-height: 1.08; max-width: 18ch; }
.intro .lead { font-size: clamp(1rem, 1.08vw, 1.16rem); line-height: 1.7; }
.intro-signal { border-color: color-mix(in srgb, var(--none) 30%, var(--line)); box-shadow: 0 8px 24px var(--quiet-shadow), inset 0 1px var(--highlight); }
.scan-rule-control { margin: 0 0 var(--space-3); padding-inline: var(--space-2); }
.scan-rule-control select { background: var(--module-bg); }
.workbench {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--scanner-border);
  border-radius: 1.35rem;
  background: radial-gradient(ellipse 52rem 18rem at 70% -4rem, color-mix(in srgb, var(--accent) 10%, transparent), transparent 82%),
    linear-gradient(155deg, var(--scanner-top), var(--scanner-bottom));
  box-shadow: 0 28px 65px -18px var(--scanner-shadow), 0 8px 22px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.workbench::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent) 55%, transparent); pointer-events: none; }
.workbench-head { padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.workbench-head .eyebrow { font-size: var(--text-sm); }
.input-mode { background: var(--module-bg); border-color: color-mix(in srgb, var(--line) 78%, transparent); border-radius: 1rem; box-shadow: inset 0 1px var(--highlight); }
.input-mode + .input-mode { margin-top: var(--space-5); }
.input-mode-title { font-size: clamp(1.14rem, 1.5vw, 1.38rem); letter-spacing: -.025em; }
.input-mode textarea, .input-mode input[type="file"] { background: var(--control-bg); border-color: var(--line); box-shadow: inset 0 2px 7px var(--quiet-shadow); }
.input-mode textarea:focus-visible { outline-offset: 0; box-shadow: inset 0 2px 7px var(--quiet-shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.text-editor--active textarea { background: transparent; }
.drop-zone { border: 1.5px dashed color-mix(in srgb, var(--accent) 38%, var(--faint)); background: var(--control-bg); box-shadow: inset 0 1px var(--highlight); }
.drop-zone:hover, .drop-zone--over, .drop-zone:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--control-bg)); }
.btn--primary { box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 21%, transparent), inset 0 1px rgba(255,255,255,.22); }
.btn--primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.result { background: var(--control-bg); border-color: var(--scanner-border); box-shadow: inset 0 1px var(--highlight); }
.verdict { border: 1px solid color-mix(in srgb, currentColor 20%, var(--line)); border-radius: var(--radius-md); }
.verdict--high { border-left: 3px solid var(--high); }
.verdict--info { border-left: 3px solid var(--info); }
.verdict--none { border-left: 3px solid var(--none); }
.finding, .finding-pane, .finding-select { background: var(--module-bg); }
.finding-select[aria-pressed="true"] { box-shadow: inset 3px 0 var(--accent); }
.finding-excerpt { background: var(--control-bg); }
.side-panel {
  align-items: start; gap: var(--space-4); margin-top: var(--space-10);
  background: var(--secondary-bg); border-color: var(--line);
  box-shadow: 0 12px 30px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.side-panel-top { margin-bottom: var(--space-1); }
.side-item { min-width: 0; align-items: flex-start; gap: var(--space-3); border-top: 0; padding: var(--space-3) var(--space-2); }
.side-item + .side-item { border-left: 1px solid var(--line); }
.side-item > div { min-width: 0; overflow-wrap: anywhere; }
.side-number { display: grid; place-items: center; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; border-radius: .65rem; background: color-mix(in srgb, var(--accent) 11%, var(--secondary-bg)); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); line-height: 1; }
.side-item strong { font-size: var(--text-base); line-height: 1.35; }
.side-item p { overflow-wrap: anywhere; }
.side-bottom { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-2); margin-top: 0; padding-top: var(--space-4); line-height: 1.55; }
.side-bottom span:last-child { min-width: 0; overflow-wrap: anywhere; }
.side-privacy-detail { margin: 0; padding-left: 1.5rem; overflow-wrap: anywhere; }
.info { padding-top: var(--space-12); }
.info-grid { align-items: stretch; }
.info-card { background: var(--secondary-bg); box-shadow: 0 8px 22px var(--quiet-shadow), inset 0 1px var(--highlight); }
.levels { grid-template-columns: auto minmax(0,1fr); }
.levels dd { padding-bottom: var(--space-3); overflow-wrap: anywhere; }
.levels dt + dd { border-bottom: 1px solid var(--line); }
.levels dt:nth-last-of-type(1) + dd { border-bottom: 0; }
.info-card h3 { font-size: var(--text-base); }
.story-card {
  position: relative; gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--space-12);
  background: var(--support-bg); border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 14px 32px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.story-card::before { content: ""; position: absolute; inset: var(--space-8) auto var(--space-8) 0; width: 3px; background: var(--accent); border-radius: 3px; }
.story-copy h2 { font-size: var(--text-xl); letter-spacing: -.035em; }
.story-copy .story-ask { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.story-support { min-width: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent) 4%, var(--support-bg)); }
.supporter-banner {
  margin-top: var(--space-10); padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--promotion-bg); box-shadow: 0 12px 28px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.supporter-heading > strong { font-size: var(--text-lg); letter-spacing: -.025em; }
.supporter-viewport::before { background: linear-gradient(90deg,var(--promotion-bg),transparent); }
.supporter-viewport::after { background: linear-gradient(270deg,var(--promotion-bg),transparent); }
.supporter-card { min-width: 0; background: var(--surface); box-shadow: 0 5px 16px var(--quiet-shadow), inset 0 1px var(--highlight); }
.supporter-card--available { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 39%, var(--line)); background: color-mix(in srgb, var(--accent) 4%, var(--promotion-bg)); }
.supporter-card--available a { display: grid; gap: .38rem; line-height: 1.3; }
.supporter-card--available .sponsor-slot-label { color: var(--ink); font-size: var(--text-sm); }
.supporter-card--available .sponsor-slot-action { color: var(--accent); font-size: var(--text-xs); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 970px) {
  .side-panel { grid-template-columns: minmax(0, 1fr); }
  .side-item + .side-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .head { align-items: flex-start; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .visit-count { white-space: normal; }
  .intro { padding-block: var(--space-8); }
  .intro h1 { font-size: clamp(2rem, 8vw, 3rem); overflow-wrap: anywhere; }
  .intro-signal { max-width: 100%; }
  .side-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: var(--space-5); }
  .side-panel-top { margin-bottom: var(--space-2); }
  .side-item { padding: var(--space-3) 0; }
  .side-bottom { margin: var(--space-2) 0 0; padding-top: var(--space-4); }
  .side-privacy-detail { margin: 0; padding: 0 0 var(--space-1) 1.5rem; }
  .story-card { padding-inline: var(--space-6); }
}
@media (max-width: 450px) {
  .head-actions { flex-wrap: wrap; }
  .brand-logo { width: min(190px, 62vw); }
  .workbench { padding: var(--space-4); }
  .input-mode { padding: var(--space-4); }
  .side-panel { padding: var(--space-4); }
  .story-card { padding-inline: var(--space-5); }
  .supporter-card { width: clamp(210px, 75vw, 270px); }
}

/* v51: wider product layout and visible navigation. Editorial sections are on
   the page canvas; only controls or grouped content receive card surfaces. */
.wrap { max-width: 1500px; padding-inline: clamp(1rem, 3.2vw, 3rem); }
.head { display: block; min-height: 0; padding: var(--space-4) 0 var(--space-3); }
.head-main { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(1rem,2vw,2rem); align-items: center; }
.shell-brand { display: inline-flex; align-items: center; width: fit-content; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 5px 18px var(--quiet-shadow); }
.shell-brand .brand-logo { width: clamp(185px,17vw,235px); max-width: 100%; }
.primary-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.3rem,1vw,1rem); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .75rem; color: var(--muted); border-radius: .5rem; font-weight: 750; font-size: var(--text-sm); line-height: 1.3; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ink); background: var(--surface-2); }
.primary-nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 -2px var(--accent); }
.head-actions { gap: .6rem; flex-wrap: nowrap; }
.head-meta { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); margin-top: .45rem; color: var(--faint); font-size: var(--text-xs); }
.head-meta .tag { padding: .35rem .65rem; }
.intro { min-height: 0; padding: clamp(3rem,5vw,5.5rem) 0 clamp(2rem,3vw,3rem); align-items: center; }
.intro h1 { font-size: clamp(2.8rem,4.3vw,5.1rem); max-width: 19ch; }
.intro .lead { max-width: 67ch; font-size: clamp(1.04rem,1.3vw,1.23rem); }
.intro-signal { padding: var(--space-4) var(--space-5); }
.scan-rule-control { max-width: 100%; padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.scan-rule-control p { width: auto; flex: 1 1 20rem; }
.workbench { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1rem,2vw,2rem); padding: clamp(1.25rem,2.5vw,2.5rem); }
.workbench-head { grid-column: 1 / -1; margin: 0; }
.input-mode { min-width: 0; }
.input-mode + .input-mode { margin-top: 0; }
.input-mode textarea { min-height: 290px; }
.drop-zone { min-height: 190px; }
.side-panel { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-4); padding: 0; margin-block: clamp(3rem,5vw,5rem); background: transparent; border: 0; box-shadow: none; }
.side-panel-top { margin-bottom: var(--space-2); }
.side-item, .side-item + .side-item { min-width: 0; min-height: 154px; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--secondary-bg); box-shadow: 0 8px 24px var(--quiet-shadow), inset 0 1px var(--highlight); }
.side-item strong { font-size: var(--text-lg); }
.side-bottom { padding-top: var(--space-4); }
.side-privacy-detail { padding-left: 1.5rem; margin: 0; }
.info { padding-top: clamp(2rem,4vw,4rem); border-top: 1px solid var(--line); }
.info-head h2 { font-size: clamp(1.35rem,2vw,1.85rem); }
.info-grid { grid-template-columns: minmax(0, .9fr) minmax(0,1.1fr); }
.info-card { padding: clamp(1.25rem,2.5vw,2.5rem); }
.story-card { margin-top: clamp(4rem,6vw,6rem); grid-template-columns: minmax(0,1fr) minmax(280px,400px); padding: clamp(2rem,4vw,4rem); }
.story-copy { max-width: 67ch; }
.supporter-banner { margin-top: clamp(3rem,5vw,5rem); }
.supporter-card { width: clamp(230px,22vw,310px); min-height: 135px; }
.guide-wrap > .eyebrow { display: block; margin-top: var(--space-10); }
.guide-wrap > h1 { max-width: 18ch; }
.guide-wrap > .lead { max-width: 65ch; }
.guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-5); }
.foot { max-width: none; display: block; margin-top: clamp(4rem,6vw,6rem); padding: clamp(2rem,4vw,4rem) clamp(1rem,3.2vw,3rem) var(--space-5); border-top: 1px solid color-mix(in srgb,var(--accent) 25%,var(--line)); background: #111923; color: #b5c0cd; font-family: var(--font-body); font-weight: 500; }
.foot-inner, .foot-bottom { max-width: 1404px; margin-inline: auto; }
.foot-inner { display: grid; grid-template-columns: minmax(220px,1.25fr) minmax(0,2fr); gap: clamp(2rem,4vw,5rem); }
.foot-brand p { max-width: 35ch; margin: var(--space-5) 0; line-height: 1.65; }
.foot-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-5); }
.foot-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.foot-links strong { color: #fff; font: 800 var(--text-xs)/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .13em; }
.foot-links a { color: #c3ccd7; font: 600 var(--text-sm)/1.45 var(--font-body); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover, .foot-links a:focus-visible, .foot-bottom a:hover { color: #ffae58; text-decoration: underline; text-underline-offset: .2em; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-8); margin-top: var(--space-10); border-top: 1px solid #43505b; font-size: var(--text-xs); }
.foot-bottom a, .foot-bottom .visit-count { color: #b5c0cd; }
@media (max-width: 1190px) {
  .head-main { grid-template-columns: minmax(0,1fr) auto; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .workbench { grid-template-columns: minmax(0,1fr); }
  .input-mode + .input-mode { margin-top: 0; }
  .side-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .side-panel { grid-template-columns: minmax(0,1fr); }
  .side-item, .side-item + .side-item { min-height: 0; }
  .info-grid { grid-template-columns: minmax(0,1fr); }
  .story-card { grid-template-columns: minmax(0,1fr); }
  .foot-inner { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 680px) {
  .head-main { grid-template-columns: minmax(0,1fr) auto; gap: .6rem; }
  .shell-brand .brand-logo { width: clamp(130px,40vw,190px); }
  .site-language > span { display: none; }
  .site-language select { min-width: 50px; }
  .head-actions { width: auto; gap: .4rem; }
  .theme-toggle { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .theme-toggle::after { content: "◐"; font-size: 1.3rem; }
  .primary-nav { width: 100%; overflow-x: auto; justify-content: flex-start; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-padding-inline: .2rem; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: none; }
  .head-meta { justify-content: space-between; min-width: 0; }
  .head-meta-note { overflow-wrap: anywhere; }
  .intro h1 { font-size: clamp(2.15rem,9vw,3.3rem); }
  .intro-signal { margin-top: var(--space-6); }
  .workbench { display: grid; grid-template-columns: minmax(0,1fr); }
  .side-panel { display: grid; padding: 0; gap: var(--space-3); }
  .side-bottom { margin: var(--space-3) 0 0; }
  .side-privacy-detail { margin: 0; }
  .foot-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 450px) {
  .head-main { gap: .35rem; }
  .shell-brand .brand-logo { width: clamp(122px,39vw,165px); }
  .head-actions { flex-wrap: nowrap; }
  .head-meta { font-size: .72rem; }
  .input-mode textarea { min-height: 230px; }
  .foot-links { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-4); }
  .foot-bottom { display: grid; }
}

/* v52: v51's later two-column rule overrode the earlier guide breakpoint.
   Long editorial cards need the whole reading width on phones. */
@media (max-width: 700px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-grid .info-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

/* v53: composition, not a new component system. The workspace owns the visual
   center; process and reference live on the canvas; support has its own band. */
:root {
  --editorial-line: #4a535f;
  --workspace-edge: #9f6537;
  --workspace-ambient: rgba(242, 135, 31, .10);
  --story-ink: #f5f7f9;
  --story-muted: #c6d0d9;
}
[data-theme="light"] {
  --bg: #eef2f5;
  --editorial-line: #b9c7d1;
  --workspace-edge: #bd783c;
  --workspace-ambient: rgba(246, 151, 57, .14);
}
body {
  background: radial-gradient(ellipse 70rem 38rem at 72% 12rem, var(--canvas-glow), transparent 75%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--canvas-cool) 45%, var(--bg)) 46rem, var(--bg) 84rem);
}
.wrap { max-width: 1540px; }
.intro {
  display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr);
  gap: clamp(2rem,5vw,6rem); align-items: center;
  padding-block: clamp(4.5rem,7vw,8rem) clamp(3rem,5vw,5rem);
}
.intro-copy { max-width: 860px; }
.intro .eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.intro .eyebrow::before { content:""; width: 2.5rem; border-top: 2px solid var(--accent); }
.intro h1 { max-width: 17ch; font-size: clamp(3.1rem,5.5vw,6.3rem); letter-spacing: -.065em; line-height: 1.025; margin: 0 0 1.65rem; }
.intro .lead { max-width: 56ch; font-size: clamp(1.08rem,1.4vw,1.31rem); line-height: 1.72; }
.intro-signal {
  position: relative; min-width: 0; min-height: 250px; display: flex;
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: clamp(1.5rem,3vw,2.5rem);
  background: radial-gradient(circle at 75% 18%, color-mix(in srgb,var(--accent) 14%,transparent),transparent 60%),var(--surface);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
  border-radius: 1.4rem; box-shadow: 0 24px 55px var(--quiet-shadow), inset 0 1px var(--highlight);
  font: 700 var(--text-sm)/1.7 var(--font-body); letter-spacing: .07em;
}
.intro-signal::before {
  content:""; position: absolute; inset: 1.5rem auto auto 1.5rem;
  width: 5.5rem; height: 5.5rem; background: #fff url("assets/favicon.svg") center / 76% no-repeat;
  border: 1px solid var(--line); border-radius: 1rem;
}
.intro-signal .signal-mark { margin-bottom: .75rem; }
.intro-signal strong { display: block; font-size: clamp(1.2rem,1.7vw,1.7rem); letter-spacing: -.025em; line-height: 1.25; }
.intro-signal br { display: none; }
.scan-rule-control {
  max-width: 100%; margin-bottom: 0; padding: .9rem clamp(1rem,2vw,2rem);
  border-radius: 1rem 1rem 0 0; border-bottom: 0;
  background: color-mix(in srgb,var(--surface) 72%,var(--bg));
}
.scan-rule-control label { color: var(--muted); }
.scan-rule-control p { font-size: var(--text-xs); }
.workbench {
  gap: clamp(1rem,2vw,2rem); padding: clamp(1.3rem,3vw,3rem);
  border: 1px solid var(--workspace-edge); border-top: 3px solid var(--accent);
  border-radius: 0 0 1.6rem 1.6rem;
  background: radial-gradient(ellipse 68rem 28rem at 55% -12rem,var(--workspace-ambient),transparent 84%),
    linear-gradient(145deg,var(--scanner-top),var(--scanner-bottom));
  box-shadow: 0 36px 85px -28px var(--scanner-shadow), 0 12px 30px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.workbench::before { display: none; }
.workbench-head { padding-bottom: 1.2rem; border-bottom: 1px solid color-mix(in srgb,var(--accent) 30%,var(--line)); }
.workbench-head .eyebrow { font-size: var(--text-base); letter-spacing: .14em; }
.input-mode { padding: clamp(1.2rem,2vw,2rem); border-radius: 1.1rem; border: 1px solid var(--line); box-shadow: none; background: color-mix(in srgb,var(--module-bg) 80%,var(--scanner-bottom)); }
.input-mode-title { font-size: clamp(1.3rem,1.8vw,1.7rem); margin-bottom: .65rem; }
.input-mode textarea { min-height: 340px; border-radius: .8rem; border-width: 1.5px; }
.drop-zone { min-height: 235px; border-radius: .8rem; }
.input-mode .row { padding-top: .75rem; border-top: 1px solid var(--line); }
.actions .btn--primary { min-width: 128px; }
.result { border-radius: .85rem; box-shadow: inset 0 1px var(--highlight), 0 10px 28px var(--quiet-shadow); }
/* v58: available only after a completed scan; EMPTY and file errors have no CTA. */
.postscan-cta { display: none; }
.result:not([hidden]):has(.verdict:not(.verdict--empty)) + .postscan-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; margin-top: 1rem; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--secondary-bg); color: var(--ink);
}
.postscan-copy { flex: 1 1 17rem; min-width: 0; }
.postscan-copy h3 { margin: 0 0 .35rem; font-size: var(--text-base); letter-spacing: -.02em; }
.postscan-copy p { margin: .15rem 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.postscan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: var(--text-sm); }
.postscan-actions span { color: var(--muted); }
.postscan-actions a { color: var(--ink); text-underline-offset: .18em; }
.postscan-actions .postscan-coffee {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: .55rem .85rem; border: 1px solid var(--accent); border-radius: var(--radius-sm);
  color: var(--accent); font-weight: 750; text-decoration: none;
}
.postscan-actions .postscan-coffee:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.postscan-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 500px) {
  .result:not([hidden]):has(.verdict:not(.verdict--empty)) + .postscan-cta { padding: 1rem; }
  .postscan-actions { width: 100%; }
  .postscan-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .postscan-actions a { scroll-behavior: auto; transition: none; }
}
/* v59: centered reading widths; existing component layout and vertical rhythm stay intact. */
.intro { max-width: 800px; margin-inline: auto; }
.scan-rule-control, .workspace { max-width: 1180px; margin-inline: auto; }
.side-panel, .info { max-width: 1000px; margin-inline: auto; }
.story-card { max-width: 1080px; margin-inline: auto; }
.supporter-banner { max-width: 1180px; margin-inline: auto; }
.side-panel { margin-block: clamp(4rem,7vw,7rem); gap: clamp(1rem,3vw,3rem); }
.side-panel-top { margin-bottom: .25rem; }
.side-panel-top .eyebrow { color: var(--muted); }
.side-item, .side-item + .side-item {
  min-height: 0; display: block; padding: 1.35rem .5rem 1.5rem 0;
  border: 0; border-top: 2px solid var(--editorial-line); border-radius: 0;
  background: transparent; box-shadow: none;
}
.side-item:first-of-type { border-top: 2px solid var(--editorial-line); }
.side-number { display: block; width: auto; height: auto; margin: .3rem 0 1.15rem; border: 0; border-radius: 0; background: none; color: var(--accent); font: 800 clamp(2rem,3vw,3rem)/1 var(--font-display); letter-spacing: -.08em; }
.side-item strong { font-size: clamp(1.12rem,1.5vw,1.42rem); letter-spacing: -.025em; }
.side-item p { max-width: 35ch; margin-top: .65rem; line-height: 1.6; }
.side-bottom { border-top: 1px solid var(--editorial-line); }
.side-privacy-detail { max-width: 80ch; color: var(--faint); }
.info { padding-top: clamp(3rem,5vw,5rem); border-top: 1px solid var(--editorial-line); }
.info-head { display: block; max-width: 65ch; margin-bottom: clamp(1.5rem,3vw,3rem); }
.info-head .eyebrow { display: block; margin-bottom: .6rem; }
.info-head h2 { font-size: clamp(1.7rem,2.6vw,2.6rem); line-height: 1.18; }
.info-grid { gap: clamp(1rem,3vw,3rem); }
.info-grid > .info-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.info-grid > .info-card:first-child { padding-right: clamp(1rem,3vw,3rem); border-right: 1px solid var(--editorial-line); }
.info-grid > .info-card:last-child { background: color-mix(in srgb,var(--surface-2) 70%,var(--bg)); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.2rem,2.5vw,2.5rem); box-shadow: none; }
.info-grid > .pwa-card { padding: clamp(1.2rem,2.5vw,2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.levels { gap: 1rem; }
.levels dd { padding-bottom: 1.3rem; line-height: 1.65; }
.levels dt { padding-top: .1rem; }
.story-card {
  overflow: hidden; margin-block: clamp(5rem,8vw,8rem) 0;
  padding: clamp(2rem,4.5vw,5rem); border: 0; border-radius: 1.6rem;
  background: linear-gradient(125deg,#1b2a38,#151c26 72%); color: var(--story-ink);
  box-shadow: 0 30px 55px -30px rgba(8,18,30,.55);
}
.story-card::before { inset: 0 auto 0 0; width: 5px; border-radius: 0; }
.story-copy h2 { color: #fff; font-size: clamp(2rem,3.4vw,3.5rem); line-height: 1.12; max-width: 13ch; }
.story-copy p, .story-support p { color: var(--story-muted); }
.story-copy .story-ask { color: #fff; border-color: #55616b; }
.story-support { background: rgba(255,255,255,.055); border-color: #51606d; box-shadow: none; padding: clamp(1.25rem,2.4vw,2.5rem); }
.story-support .sponsor-mail { color: #ffb466; }
.story-support .coffee-link { min-height: 62px; }
.supporter-banner {
  margin-top: clamp(4rem,6vw,6rem); padding: 0 0 clamp(2rem,4vw,4rem);
  background: transparent; border: 0; border-top: 1px solid var(--editorial-line);
  border-radius: 0; box-shadow: none;
}
.supporter-heading { padding-top: clamp(1.5rem,3vw,3rem); margin-bottom: clamp(1.25rem,2vw,2rem); }
.supporter-heading > strong { font-size: clamp(1.5rem,2.5vw,2.4rem); line-height: 1.2; letter-spacing: -.04em; }
.supporter-viewport::before { background: linear-gradient(90deg,var(--bg),transparent); }
.supporter-viewport::after { background: linear-gradient(270deg,var(--bg),transparent); }
.supporter-card { min-height: 150px; border-radius: .9rem; box-shadow: 0 8px 22px var(--quiet-shadow); }
.guide-wrap > h1 { font-size: clamp(2.6rem,4.7vw,4.7rem); letter-spacing: -.055em; }
.guide-wrap > .lead { max-width: 58ch; }
.guide-grid { max-width: 1180px; }
.guide-grid .info-card { padding: clamp(1.3rem,2.5vw,2.4rem); }
@media (max-width: 1190px) {
  .intro { grid-template-columns: minmax(0,1fr) minmax(220px,.5fr); }
  .input-mode textarea { min-height: 260px; }
}
@media (max-width: 800px) {
  .intro { display: block; padding-block: 3.5rem 2.5rem; }
  .intro-signal { min-height: 160px; max-width: 30rem; margin-top: 2rem; }
  .intro-signal::before { width: 3.5rem; height: 3.5rem; }
  .side-panel { grid-template-columns: minmax(0,1fr); }
  .side-item, .side-item + .side-item { padding: 1rem 0 1.25rem; }
  .side-number { margin: 0 0 .75rem; }
  .side-item p { max-width: 62ch; }
  .info-grid > .info-card:first-child { padding: 0; border-right: 0; }
  .story-card { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 680px) {
  .intro h1 { font-size: clamp(2.5rem,10vw,3.5rem); }
  .intro-signal { min-height: 148px; padding-left: 5.5rem; }
  .intro-signal::before { inset: 1rem auto auto 1rem; }
  .scan-rule-control { border-radius: .9rem .9rem 0 0; }
  .workbench { padding: 1rem; }
  .input-mode { padding: 1rem; }
  .input-mode textarea { min-height: 225px; }
  .drop-zone { min-height: 150px; }
  .story-card { border-radius: 1.1rem; padding: 1.8rem 1.25rem; }
  .supporter-card { min-height: 126px; }
}
/* The v52 phone fix remains the final guide-grid declaration. */
@media (max-width: 700px) {
  .guide-grid { grid-template-columns: minmax(0,1fr); }
  .guide-grid .info-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

/* v54: consolidate v53. Trust becomes a compact part of the hero; only the
   actual inputs keep a visible boundary inside the scanner shell. */
[data-theme="light"] {
  --scanner-top: #fffdf9;
  --scanner-bottom: #f7f8f7;
  --promotion-bg: #f4f7fa;
  --secondary-bg: #fbfcfd;
}
.intro {
  display: block; padding-block: clamp(3.3rem,5vw,5.4rem) clamp(1.8rem,2.8vw,3rem);
}
.intro-copy { max-width: 1040px; }
.intro h1 { max-width: 19ch; margin-bottom: 1.35rem; }
.intro .lead { max-width: 67ch; }
.intro-signal {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: .65rem 1rem; width: fit-content; max-width: 100%; min-height: 0;
  margin: clamp(1.4rem,2.3vw,2.1rem) 0 0; padding: .7rem 0;
  border: 0; border-top: 1px solid var(--editorial-line); border-radius: 0;
  background: transparent; box-shadow: none; font: 800 var(--text-xs)/1.45 var(--font-body);
  letter-spacing: .09em; color: var(--muted);
}
.intro-signal::before { display: none; }
.intro-signal .signal-mark { margin: 0; width: 9px; height: 9px; }
.intro-signal strong { display: inline; color: var(--ink); font: inherit; letter-spacing: inherit; }
.intro-signal-divider { display: block; height: 1rem; border-left: 1px solid var(--line); }
.scan-rule-control { margin-top: .25rem; }
.workbench { gap: clamp(1.5rem,3vw,3rem); }
.input-mode {
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.input-mode + .input-mode {
  padding-left: clamp(1.5rem,3vw,3rem); border-left: 1px solid color-mix(in srgb,var(--accent) 22%,var(--line));
}
.input-mode-title { margin-bottom: .85rem; }
.input-mode .mode-note { max-width: 68ch; min-height: 0; margin-bottom: 1.4rem; }
/* The highlight mirror supplies visible glyphs while the active textarea remains
   the sole editable layer. Match its control surface so the mirror stays legible. */
.input-mode .text-editor--active .text-highlights {
  background: var(--control-bg); border-radius: .8rem;
}
.input-mode .text-editor:has(textarea:disabled) .text-highlights { opacity: .65; }
.input-mode textarea { background: var(--control-bg); box-shadow: 0 5px 18px var(--quiet-shadow); }
.input-mode .text-editor--active textarea { background: transparent; }
.input-mode textarea:disabled { opacity: .65; cursor: not-allowed; }
.input-mode .text-editor--active textarea:disabled { -webkit-text-fill-color: transparent; }
.input-mode .drop-zone { background: color-mix(in srgb,var(--control-bg) 75%,var(--module-bg)); }
.batch-message { margin: .55rem 0 0; color: var(--muted); font-size: var(--text-sm); }
.batch-message:empty { display: none; }
.batch-list { display: grid; gap: .3rem; max-height: 18rem; margin: .8rem 0; padding: 0; list-style: none; overflow-y: auto; }
.batch-list[hidden] { display: none; }
.batch-item { display: flex; align-items: center; min-width: 0; gap: .6rem; padding: .15rem .35rem; border-bottom: 1px solid var(--line); }
.batch-select { display: flex; align-items: center; min-width: 0; flex: 1; min-height: 44px; padding: .25rem .4rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.batch-select:hover, .batch-select:focus-visible, .batch-select[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 7%,var(--control-bg)); }
.batch-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.batch-filename { min-width: 0; overflow-wrap: anywhere; }
.batch-state { flex: none; color: var(--muted); font-size: var(--text-xs); }
.input-mode .row { border-top: 0; padding-top: .2rem; }
.input-mode .hint { line-height: 1.55; }
.side-panel { margin-block: clamp(3.3rem,5vw,5.3rem); }
.side-item, .side-item + .side-item { position: relative; padding-top: 1.55rem; border-top: 1px solid var(--editorial-line); }
.side-item::before { content:""; position:absolute; top:-2px; left:0; width: 3.4rem; border-top: 3px solid var(--accent); }
.side-number {
  display: inline-flex; align-items:center; justify-content:center;
  min-width: 3.1rem; height: 3.1rem; margin: 0 0 1rem;
  border: 1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius: 50%; color: var(--accent);
  font: 800 var(--text-base)/1 var(--mono); letter-spacing: -.03em;
}
.side-item strong { display:block; }
.side-bottom { padding-top: 1.15rem; }
.info { padding-top: clamp(2.7rem,4.3vw,4.5rem); }
.info-grid { align-items: start; }
.info-grid > .info-card:first-child { padding-right: clamp(.8rem,2vw,2rem); }
.levels { gap: .75rem 1rem; }
.levels dd { padding-bottom: .95rem; font-size: var(--text-sm); }
.levels .level-context { margin-top: .15rem; }
.info-grid > .info-card:last-child {
  background: color-mix(in srgb,var(--secondary-bg) 76%,var(--bg));
  box-shadow: inset 0 1px var(--highlight);
}
.info-grid > .info-card:last-child li { margin-bottom: .75rem; line-height: 1.55; }
.story-card { margin-top: clamp(3.8rem,5.5vw,6rem); }
.story-support { align-self: center; }
.supporter-banner {
  margin-top: clamp(3.5rem,5.4vw,5.5rem);
  padding: clamp(1.5rem,3vw,3rem); border: 1px solid var(--line);
  border-radius: 1.2rem; background: var(--promotion-bg);
  box-shadow: 0 12px 36px var(--quiet-shadow), inset 0 1px var(--highlight);
}
.supporter-heading { padding-top: 0; margin-bottom: .4rem; }
.supporter-heading > strong { max-width: 24ch; }
.supporter-intro {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0 0 1.6rem;
}
.supporter-intro p { max-width: 62ch; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.sponsor-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--accent);
  border-radius: var(--radius-sm); color: var(--accent); background: color-mix(in srgb,var(--accent) 7%,var(--promotion-bg));
  text-decoration: none; font-weight: 800; font-size: var(--text-sm);
  transition: background .16s ease, color .16s ease;
}
.sponsor-cta:hover, .sponsor-cta:focus-visible { background: var(--accent); color: var(--accent-ink); }
.supporter-viewport::before { background: linear-gradient(90deg,var(--promotion-bg),transparent); }
.supporter-viewport::after { background: linear-gradient(270deg,var(--promotion-bg),transparent); }
.supporter-card { width: clamp(270px,25vw,350px); min-height: 174px; }
.supporter-card--available { border-width: 1.5px; }
.supporter-card--available .sponsor-slot-label { font-size: var(--text-base); }
@media (max-width: 1190px) {
  .input-mode + .input-mode {
    padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb,var(--accent) 22%,var(--line));
  }
}
@media (max-width: 800px) {
  .intro { padding-block: 2.8rem 1.8rem; }
  .intro-signal { margin-top: 1.4rem; }
  .side-panel { margin-block: 3rem; }
  .side-item, .side-item + .side-item { padding-block: 1.15rem; }
  .side-number { float: left; margin: 0 1rem .25rem 0; }
  .side-item::after { content:""; display:block; clear:both; }
  .side-item p { max-width: none; }
  .info-grid > .info-card:first-child { padding-right: 0; }
  .supporter-banner { margin-top: 3rem; }
}
@media (max-width: 680px) {
  .intro-signal { padding: .75rem 0; }
  .intro-signal-divider { display: none; }
  .workbench { gap: 1.35rem; }
  .input-mode + .input-mode { padding-top: 1.35rem; }
  .side-number { min-width: 2.65rem; height: 2.65rem; font-size: var(--text-sm); }
  .story-card { margin-top: 3.4rem; }
  .supporter-banner { padding: 1.25rem; }
  .supporter-intro { display: block; }
  .supporter-intro p { margin-bottom: 1rem; }
  .supporter-card { width: min(78vw,340px); min-height: 158px; }
}
/* Keep the confirmed v52 guide behavior as the final grid declaration. */
@media (max-width: 700px) {
  .guide-grid { grid-template-columns: minmax(0,1fr); }
  .guide-grid .info-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

/* v55: targeted legibility fixes; layout and v54 visual identity retained. */
.foot .foot-bottom, .foot .foot-bottom a, .foot .visit-count { color: #c4cdd7; opacity: 1; }
.foot .visit-count strong { color: #f4f7fa; }
.head-meta, .head-meta-note, .head-meta .tag { color: var(--muted); font-size: .8125rem; opacity: 1; }
.scan-rule-control p, .capture-status, .file-status, .doc-limits, .limits, .tip { color: var(--muted); line-height: 1.55; }
.scan-rule-control p { font-size: .8125rem; }
.supporter-viewport::before, .supporter-viewport::after { display: none; }
.supporter-card { flex-shrink: 0; }
@media (max-width: 600px) {
  .guide-wrap .info-card p, .step p, .limitations li { line-height: 1.65; }
}

/* v60: secondary pages follow Home's centered, content-specific widths. */
.guide-wrap > .eyebrow,
.guide-wrap > h1,
.guide-wrap > .lead { max-width: 800px; margin-inline: auto; }
.guide-wrap > h1 { overflow-wrap: anywhere; }
body[data-page="how"] .guide-grid { max-width: 1040px; margin-inline: auto; }
body[data-page="detect"] .guide-grid { max-width: 1080px; margin-inline: auto; }
.guide-wrap > .guide-note { max-width: 1000px; margin-inline: auto; }
.guide-wrap > .updates-list { max-width: 920px; margin-inline: auto; }
.guide-wrap > .legal-list { max-width: 900px; margin-inline: auto; }
/* Keep the top margin and Reference padding; reduce only their shared gap. */
#main:not(.guide-wrap) > .side-panel { margin-bottom: clamp(2.4rem,3.7vw,3.9rem); }
@media (max-width: 900px) {
  body[data-page="how"] .guide-grid,
  body[data-page="detect"] .guide-grid { grid-template-columns: minmax(0,1fr); }
}

/* v61: a fixed control slot on each side keeps mobile navigation stable. */
.nav-scroll { display: contents; }
.nav-step { display: none; }
@media (max-width: 800px) {
  .nav-scroll {
    grid-column: 1 / -1; grid-row: 2;
    display: grid; grid-template-columns: 34px minmax(0,1fr) 34px;
    align-items: center; gap: .25rem; min-width: 0;
  }
  .nav-scroll .primary-nav {
    grid-column: auto; grid-row: auto; width: 100%; min-width: 0;
    justify-content: flex-start; overflow-x: auto;
    overscroll-behavior-inline: contain; scrollbar-width: none;
    scroll-padding-inline: .25rem;
  }
  .nav-scroll .primary-nav::-webkit-scrollbar { display: none; }
  .nav-scroll .primary-nav a { flex: none; }
  .nav-step {
    display: inline-grid; place-items: center; width: 34px; min-height: 44px;
    padding: 0; border: 1px solid var(--line); border-radius: .55rem;
    background: var(--surface); color: var(--ink); cursor: pointer;
    font: 700 1.55rem/1 var(--font-body);
  }
  .nav-step:hover { background: var(--surface-2); color: var(--accent); }
  .nav-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-step:disabled { visibility: hidden; cursor: default; }
}

/* v63: status separator between the two label spans. */
.testbar .status-dot {
  width: 6px; height: 6px; flex: none;
  border-radius: 50%; background: #5baa78;
  animation: status-pulse 2.8s ease-in-out infinite;
}
[data-theme="dark"] .testbar .status-dot { background: #67b986; }
@keyframes status-pulse {
  0%, 100% { opacity: .68; transform: scale(.88); }
  50% { opacity: .98; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .testbar .status-dot { animation: none; opacity: .85; transform: none; }
}
/* Public credits and optional milestone detail, within the existing guide rhythm. */
.credits-list { max-width: 900px; margin-inline: auto; }
.credits-list h2 small { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.credits-list .credits-links { margin-top: .7rem; font-size: var(--text-sm); }
.credits-list a, .credits-note a { color: var(--accent); text-underline-offset: .2em; }
.credits-note { max-width: 900px; margin: 0 auto var(--space-12); color: var(--muted); line-height: 1.6; }
.update-entry details { margin-top: .8rem; }
.update-entry summary { width: max-content; max-width: 100%; color: var(--accent); cursor: pointer; font-size: var(--text-sm); font-weight: 700; padding: .25rem .35rem .25rem 0; }
.update-entry summary:focus-visible, .credits-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.update-entry details p { padding-top: .45rem; line-height: 1.55; }
/* v69: finding details expand in the same reading column as their card. */
.finding-list--inline { display: grid; max-height: none; overflow: visible; margin-top: var(--space-5); }
.finding-list--inline > .finding { min-width: 0; }
.finding-list--inline .finding-select[aria-expanded="true"] {
  border-color: var(--accent); background: var(--surface-2); box-shadow: inset 3px 0 var(--accent);
}
.finding-list--inline .finding-pane--inline {
  min-height: 0; margin: .65rem 0 .4rem 24px; padding: var(--space-4);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--secondary-bg); overflow-wrap: anywhere;
}
.finding-list--inline .finding-pane--inline h3 { margin-top: 0; }
@media (max-width: 600px) {
  .finding-list--inline .finding-pane--inline { margin-left: 12px; padding: var(--space-3); }
}
/* A small site navigation control, suppressed at the top and on short pages. */
.back-to-top {
  position: fixed; z-index: 20; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 5px 18px var(--quiet-shadow); cursor: pointer;
  opacity: .78; transition: opacity .16s ease, border-color .16s ease;
}
.back-to-top:hover, .back-to-top:focus-visible { opacity: 1; border-color: var(--accent); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.back-to-top img { width: 22px; height: 22px; opacity: .72; }
.back-to-top span { position: absolute; right: 4px; top: 1px; font: 800 13px/1 var(--font-body); opacity: .72; }
.back-to-top:hover img, .back-to-top:hover span, .back-to-top:focus-visible img, .back-to-top:focus-visible span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* v70: compact reuse of the existing supporter listings above the product. */
.head-main .shell-brand--icon { flex: none; padding: .35rem; }
.head-main .shell-brand--icon img { display: block; width: 44px; height: 44px; object-fit: contain; }
.head-main .shell-brand--icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.head-visits { min-width: 0; font-weight: 650; color: var(--muted); }
.head-visits strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.supporter-mini {
  display: flex; align-items: center; gap: .85rem; min-width: 0;
  margin: .6rem auto 0; padding: .42rem .75rem;
  border: 1px solid var(--line); border-radius: .65rem;
  background: var(--surface-2); color: var(--muted);
}
.supporter-mini > strong { flex: none; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; }
.supporter-mini-list { display: flex; align-items: center; gap: .45rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.supporter-mini .supporter-card {
  flex: none; width: auto; min-height: 0; padding: .3rem .65rem;
  border-radius: .45rem; background: var(--surface);
  box-shadow: none; font-size: var(--text-xs); line-height: 1.45;
}
.supporter-mini .supporter-card a { white-space: nowrap; }
.supporter-mini .supporter-card--available { border-style: dashed; }
.supporter-mini .sponsor-slot-label { display: none; }
.supporter-mini .supporter-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 680px) {
  .head-main .shell-brand--icon img { width: 38px; height: 38px; }
  .head-meta { flex-wrap: wrap; gap: .3rem .8rem; }
  .supporter-mini { margin-top: .45rem; padding: .4rem .55rem; gap: .55rem; }
}
/* The dot grows by transform only; it never changes the status bar's geometry. */
.testbar .status-dot {
  width: 8px; height: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, #5baa78 16%, transparent);
  animation: status-pulse-v70 2.8s ease-in-out infinite;
}
@keyframes status-pulse-v70 {
  0%, 100% { opacity: .78; transform: scale(1); box-shadow: 0 0 0 2px color-mix(in srgb, #5baa78 12%, transparent); }
  50% { opacity: 1; transform: scale(1.8); box-shadow: 0 0 0 2px color-mix(in srgb, #5baa78 19%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .testbar .status-dot { animation: none; opacity: 1; transform: none; }
}

/* v70 micro-fix: the compact strip is body content aligned with the workspace. */
.supporter-mini { width: 100%; max-width: 1180px; margin-inline: auto; }
.supporter-mini-list { display: block; flex: 1 1 auto; overflow: hidden; }
.supporter-mini-track { display: flex; width: max-content; align-items: center; }
.supporter-mini-group { display: flex; flex: none; align-items: center; gap: .45rem; padding-right: .45rem; }
@media (prefers-reduced-motion: reduce) {
  .supporter-mini-list { overflow-x: auto; }
}

/* v70 navigation micro-fix: one anchored menu, without changing header geometry. */
.head-main { display: flex; justify-content: space-between; align-items: center; }
.brand-nav { position: relative; display: flex; flex: none; align-items: center; gap: .45rem; min-width: 0; }
.menu-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: .65rem;
  background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 14px var(--quiet-shadow);
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--surface-2); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-toggle-bars { display: grid; gap: 4px; width: 19px; }
.menu-toggle-bars span { width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.brand-nav .primary-nav {
  position: absolute; z-index: 40; left: 0; top: calc(100% + .55rem);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: .2rem; width: min(330px, calc(100vw - 2rem)); min-width: 0;
  max-height: min(70vh, 420px); overflow-x: hidden; overflow-y: auto;
  padding: .5rem; border: 1px solid var(--line); border-radius: .8rem;
  background: var(--surface); box-shadow: 0 16px 42px var(--scanner-shadow);
  overscroll-behavior: contain;
}
.brand-nav .primary-nav[hidden] { display: none !important; }
.brand-nav .primary-nav a { width: 100%; min-height: 44px; padding: .7rem .85rem; white-space: normal; }
.brand-nav .primary-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.head-main .head-actions { margin-left: auto; }
@media (max-width: 680px) {
  .brand-nav { gap: .35rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .brand-nav .primary-nav { width: min(310px, calc(100vw - 2rem)); }
}

/* v71: one 44px control rhythm across the simplified header. */
.head-main .menu-toggle,
.head-main .shell-brand--icon,
.head-main .site-language select,
.head-main .theme-toggle,
.head-main .share-button { box-sizing: border-box; height: 44px; min-height: 44px; border-radius: .65rem; }
.head-main .menu-toggle { width: 44px; }
.head-main .shell-brand--icon { width: 44px; justify-content: center; padding: 5px; }
.head-main .shell-brand--icon img { width: 32px; height: 32px; }
.head-main .site-language select { padding-inline: .6rem; }
.head-main .theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
.share-control { display: inline-flex; position: relative; align-items: center; flex: none; }
.share-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 44px; padding: 0 .8rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer;
  box-shadow: inset 0 1px var(--highlight);
}
.share-button:hover { border-color: var(--accent); }
.share-button:focus-visible, .head-main .site-language select:focus-visible,
.head-main .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.share-feedback:not(:empty) {
  position: absolute; z-index: 45; right: 0; top: calc(100% + .4rem);
  width: max-content; max-width: min(240px, calc(100vw - 2rem));
  padding: .42rem .65rem; border: 1px solid var(--line); border-radius: .55rem;
  background: var(--surface); color: var(--ink); box-shadow: 0 8px 25px var(--quiet-shadow);
  font-size: var(--text-xs); line-height: 1.4;
}
@media (max-width: 680px) {
  .head-main .menu-toggle { width: 44px; }
  .head-main .shell-brand--icon img { width: 32px; height: 32px; }
  .head-main .site-language select { width: 50px; min-width: 50px; }
  .head-main .share-button { width: 44px; padding: 0; }
  .head-main .share-label { display: none; }
}
@media (max-width: 680px) {
  .head-main .site-language select { width: 58px; min-width: 58px; padding-inline: .35rem; }
}
/* v71 layout micro-fix: breathing room from the slim strip to scan controls. */
.supporter-mini + .scan-rule-control { margin-top: clamp(1rem, 2vw, 1.5rem); }
/* v74: payload-first results; raw findings remain available on demand. */
.payload-list { list-style: none; padding: 0; display: grid; gap: .8rem; margin: 1rem 0; }
.payload-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.payload-card--high { border-left-color: var(--high); }
.payload-card--info { border-left-color: var(--info); }
.payload-card-head { display: flex; align-items: center; gap: .65rem; min-width: 0; flex-wrap: wrap; }
.payload-title { overflow-wrap: anywhere; font-size: var(--text-sm); }
.payload-card .finding-excerpt { margin: .65rem 0; }
.payload-evidence, .raw-finding-list { min-width: 0; margin: .75rem 0; border-top: 1px solid var(--line); padding-top: .55rem; }
.payload-evidence > summary, .raw-finding-list > summary { cursor: pointer; color: var(--ink); font-size: var(--text-sm); font-weight: 700; padding: .35rem; }
.payload-evidence > summary:focus-visible, .raw-finding-list > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.payload-evidence ol { padding-left: 1.5rem; font-size: var(--text-sm); }
.payload-evidence li { margin: .65rem 0; overflow-wrap: anywhere; }
.payload-evidence li .finding-excerpt { margin: .3rem 0; }
@media (max-width: 430px) { .payload-card { padding: .8rem; } .payload-evidence ol { padding-left: 1.2rem; } }

/* v75: compact product entry and quiet utility controls. Keep 44px hit areas. */
.head { padding-block: .45rem .35rem; }
.head-main .head-actions { gap: .45rem; }
.head-main .site-language {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none; border: 1px solid var(--line);
  border-radius: .65rem; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 1px var(--highlight); cursor: pointer;
}
.head-main .site-language > span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.head-main .site-language::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c-6 5-6 13 0 18M12 3c6 5 6 13 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c-6 5-6 13 0 18M12 3c6 5 6 13 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.head-main .site-language select {
  position: absolute; inset: 0; width: 100%; min-width: 0; height: 100%;
  opacity: 0; padding: 0; cursor: pointer;
}
.head-main .site-language:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.head-main .theme-toggle { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
.head-main .theme-toggle::after { content: "☾"; font: 500 25px/1 var(--font-body); }
[data-theme="dark"] .head-main .theme-toggle::after { content: "☀"; font-size: 22px; }
.head-main .share-button { width: 44px; min-width: 44px; padding: 0; }
.head-main .share-label { display: none; }
.head-main .site-language:hover { border-color: var(--accent); }

.intro { max-width: 900px; padding-block: clamp(1.25rem,2.4vw,2rem) clamp(.65rem,1.3vw,1rem); }
.intro .eyebrow { margin-bottom: .45rem; }
.intro h1 { max-width: none; font-size: clamp(2.15rem,3.35vw,3.35rem); line-height: 1.08; margin-bottom: .6rem; }
.intro .product-mark { width: .92em; height: .92em; vertical-align: -.13em; margin-right: .13em; }
.intro .lead { max-width: 88ch; font-size: clamp(.98rem,1.13vw,1.12rem); line-height: 1.48; margin-bottom: 0; }
.intro-signal { margin-top: .72rem; padding: .45rem 0 0; gap: .45rem .7rem; }
.workspace-trust {
  max-width: 1180px; margin: .25rem auto .6rem; padding: .5rem .85rem;
  border: 1px solid var(--line); border-radius: .7rem;
  background: color-mix(in srgb,var(--surface) 78%,var(--bg));
}
.workspace-trust .side-bottom { display: flex; align-items: center; border: 0; padding: 0; margin: 0; color: var(--ink); font-weight: 700; }
.workspace-trust .side-privacy-detail { margin: .15rem 0 0 1.35rem; padding: 0; max-width: none; line-height: 1.4; }
.scan-rule-control { margin-top: 0; padding-block: .65rem; }
.supporter-mini { margin-top: clamp(1rem,2vw,1.5rem); }
.side-panel { margin-block: clamp(2.15rem,3.2vw,3.4rem); gap: clamp(.75rem,1.5vw,1.5rem); }
.side-item, .side-item + .side-item { padding-block: 1rem 1.1rem; }
.side-number { margin-bottom: .65rem; }
.info { padding-top: clamp(1.5rem,2.8vw,2.8rem); }
.info-head { margin-bottom: clamp(.85rem,1.6vw,1.5rem); }
.info-grid { gap: clamp(.75rem,2vw,2rem); }
.info-grid > .reference-accordion,
.info-grid > .reference-accordion:first-child,
.info-grid > .reference-accordion:last-child {
  min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: .75rem;
  background: color-mix(in srgb,var(--surface) 75%,var(--bg)); box-shadow: none;
}
.reference-accordion > summary {
  display: flex; align-items: center; gap: .7rem; min-height: 48px;
  padding: .7rem 1rem; color: var(--ink); font-weight: 750;
  cursor: pointer; list-style: none;
}
.reference-accordion > summary::-webkit-details-marker { display: none; }
.reference-accordion > summary::before { content: "+"; color: var(--accent); font: 700 1.4rem/1 var(--font-body); }
.reference-accordion[open] > summary::before { content: "−"; }
.reference-accordion > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .7rem; }
.reference-accordion > .levels, .reference-accordion > ul { margin: 0; padding: .25rem 1rem 1rem; border-top: 1px solid var(--line); }
.reference-accordion > ul { padding-left: 2.2rem; }
.reference-accordion .levels dd { padding-bottom: .45rem; }
.story-card { margin-top: clamp(2.4rem,3.8vw,4rem); }
.supporter-banner { margin-top: clamp(2.2rem,3.5vw,3.8rem); }
.foot { margin-top: clamp(2.5rem,4vw,4rem); }
.visit-count {
  display: inline-flex; flex-direction: column; gap: .05rem;
  min-width: 11.5rem; padding: .3rem .75rem;
  border-left: 1px solid #43505b; font-variant-numeric: tabular-nums;
}
.foot .visit-count strong { font: 800 clamp(1.2rem,1.6vw,1.5rem)/1.12 var(--font-body); color: #f4f7fa; }
.foot .visit-count [data-shell="visits"] { color: #c4cdd7; font-size: .75rem; line-height: 1.35; white-space: normal; }
@media (min-width: 760px) { .intro h1 { white-space: nowrap; } }
@media (max-width: 759px) {
  .intro { padding-block: 1.35rem .7rem; }
  .intro h1 { font-size: clamp(2rem,7.5vw,3rem); white-space: normal; }
  .intro .lead { line-height: 1.52; }
  .workspace-trust { margin-bottom: .55rem; }
  .info-grid { grid-template-columns: minmax(0,1fr); }
  .visit-count { border-left: 0; border-top: 1px solid #43505b; padding: .5rem 0 0; }
}
@media (max-width: 360px) { .head-main .head-actions { gap: .25rem; } .brand-nav { gap: .25rem; } }

/* v76: balance marked gaps while retaining the v75 product surfaces. */
.intro-signal { margin-top: 1rem; }
.intro-signal .signal-mark {
  animation: status-pulse-v70 2.8s ease-in-out infinite;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .intro-signal .signal-mark { animation: none; opacity: 1; transform: none; }
}
.workspace-trust { margin-top: .5rem; margin-bottom: .95rem; }
.workbench { padding-block: clamp(1.15rem,2vw,1.8rem); gap: clamp(1.1rem,2vw,1.8rem); }
.workbench-head { padding-bottom: .85rem; }
.input-mode .mode-note { margin-bottom: 1rem; }
.input-mode textarea { min-height: 290px; }
.input-mode .drop-zone { min-height: 205px; }
#main:not(.guide-wrap) > .side-panel {
  margin-block: clamp(2rem,2.9vw,3rem) clamp(1.3rem,2.2vw,2.25rem);
}
.info { padding-top: clamp(1.3rem,2.2vw,2.2rem); }
.story-card {
  margin-top: clamp(1.5rem,2.3vw,2.4rem);
  padding: clamp(1.65rem,3vw,3.2rem);
}
.supporter-banner { margin-top: clamp(1.65rem,2.6vw,2.8rem); padding-block: clamp(1.25rem,2.2vw,2.2rem); }
.foot { margin-top: clamp(1.8rem,2.8vw,3rem); padding-top: clamp(1.5rem,2.7vw,2.8rem); }
.foot-bottom { margin-top: clamp(1.35rem,2.3vw,2.4rem); padding-top: clamp(.9rem,1.5vw,1.45rem); }
.visit-count {
  flex-direction: row; align-items: baseline; gap: .55rem;
  min-width: 0; padding-block: .2rem;
}
.foot .visit-count [data-shell="visits"] { white-space: normal; }
/* The same restrained rhythm carries over to guide, history and legal pages. */
.guide-wrap > .eyebrow { margin-top: clamp(1.4rem,2.6vw,2.6rem); }
.guide-wrap > h1 { margin-top: .55rem; margin-bottom: .5rem; }
.guide-wrap > .lead { line-height: 1.55; }
.guide-wrap > .guide-grid { margin-block: clamp(1.5rem,2.7vw,2.7rem); gap: clamp(1rem,2vw,1.6rem); }
.guide-wrap > .guide-note { margin-block: clamp(1.35rem,2.4vw,2.4rem); }
.guide-wrap > .updates-list, .guide-wrap > .legal-list { margin-block: clamp(1.5rem,2.7vw,2.7rem) clamp(2.2rem,3.5vw,3.5rem); }
.credits-note { margin-bottom: clamp(2.2rem,3.5vw,3.5rem); }
@media (max-width: 700px) {
  .workbench { padding-block: 1rem; gap: 1.15rem; }
  .input-mode textarea { min-height: 225px; }
  .input-mode .drop-zone { min-height: 150px; }
  .story-card { padding: 1.65rem 1.25rem; }
  .visit-count { flex-wrap: wrap; gap: .1rem .5rem; }
}

/* v77: aligned editorial surfaces and a restrained two-part support section. */
.intro { padding-top: clamp(.9rem, 1.9vw, 1.55rem); }
.intro h1 { margin-top: 0; }
.intro .eyebrow { display: none; }
.intro .eyebrow::before { content: none; }
.story-pair {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(.85rem, 1.7vw, 1.5rem);
  max-width: 1080px; margin: clamp(1.35rem, 2vw, 2rem) auto 0;
  align-items: stretch;
}
.story-pair > .story-card {
  display: block; min-width: 0; width: 100%; max-width: none; min-height: 0;
  margin: 0; padding: clamp(1.55rem, 2.8vw, 2.8rem);
}
.story-pair > .story-card::before { content: none; }
.story-copy h2 { max-width: none; }
.story-copy .story-ask { margin-top: clamp(.8rem, 1.4vw, 1.3rem); padding-top: 0; border-top: 0; }
.story-pair > .story-support-card {
  min-width: 0; align-self: stretch; align-content: center;
  padding: clamp(1.55rem, 2.8vw, 2.8rem);
  border: 1px solid #51606d; border-radius: 1.6rem;
  background: linear-gradient(140deg, #233241, #1a2632 80%);
  box-shadow: 0 22px 42px -30px rgba(8,18,30,.5);
}
.supporter-banner { margin-top: clamp(1.25rem, 2vw, 2rem); padding-bottom: clamp(.8rem, 1.5vw, 1.5rem); }
.supporter-heading { padding-top: clamp(1rem, 1.8vw, 1.75rem); margin-bottom: clamp(.75rem, 1.2vw, 1.2rem); }
.foot { margin-top: clamp(1.2rem, 2vw, 2rem); }
.guide-wrap > .guide-grid { margin-block: clamp(1.35rem, 2.2vw, 2.2rem); }
.guide-wrap > .updates-list, .guide-wrap > .legal-list { margin-top: clamp(1.35rem, 2.2vw, 2.2rem); }
.back-to-top span { position: static; font: 600 25px/1 var(--font-body); opacity: .75; }
.back-to-top:hover span, .back-to-top:focus-visible span { opacity: 1; }
[data-theme="dark"] .head-main .shell-brand--icon {
  background: var(--bg); border-color: color-mix(in srgb, var(--line) 65%, transparent);
}
[data-theme="dark"] .head-main .shell-brand--icon img,
[data-theme="dark"] .intro .product-mark,
.foot .brand-logo { filter: invert(1); mix-blend-mode: screen; background: transparent; }
.foot .shell-brand { background: transparent; border-color: #51606d; }
@media (max-width: 800px) {
  .story-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .story-pair > .story-card, .story-pair > .story-support-card { padding: 1.5rem 1.25rem; border-radius: 1rem; }
  .story-pair { gap: .8rem; }
}

/* v78: one body guide, two independent stacked support cards, compact PWA details. */
.intro, .info, .story-pair { width: 100%; max-width: 1180px; margin-inline: auto; }
.intro-copy { max-width: 800px; }
.story-pair { grid-template-columns: minmax(0, 1fr); gap: clamp(.9rem, 1.7vw, 1.5rem); }
.story-pair > .story-card, .story-pair > .story-support-card { width: 100%; }
.story-pair .story-copy { max-width: 80ch; }
.story-support-card > * { max-width: 75ch; }
.story-support-card .coffee-link { width: fit-content; max-width: 100%; }
.pwa-card > summary {
  display: flex; align-items: center; min-height: 48px; gap: .75rem;
  list-style: none; cursor: pointer; color: var(--ink);
  font-weight: 750; line-height: 1.4;
}
.pwa-card > summary::-webkit-details-marker { display: none; }
.pwa-card > summary::before { content: "+"; flex: none; color: var(--accent); font: 700 1.4rem/1 var(--font-body); }
.pwa-card[open] > summary::before { content: "−"; }
.pwa-card > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .35rem; }
.info-grid > .pwa-card:not([open]) { padding-block: .35rem; }
.pwa-card[open] > summary { margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .story-pair > .story-card, .story-pair > .story-support-card { padding: 1.5rem 1.25rem; }
  .story-support-card .coffee-link { width: 100%; }
}

/* v79: proximity rhythm and a consistent interactive control language. */
:root {
  --rhythm-near: var(--space-2);
  --rhythm-group: var(--space-4);
  --rhythm-section: clamp(var(--space-6), 2.6vw, var(--space-10));
}
.result-guides {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--rhythm-near); width: 100%; max-width: 1180px; margin: 0 auto;
}
.result-guides > .reference-accordion,
.result-guides > .reference-accordion:first-child,
.result-guides > .reference-accordion:last-child {
  min-width: 0; padding: 0; border: 1px solid var(--line);
  border-radius: .75rem; background: color-mix(in srgb,var(--surface) 75%,var(--bg));
}
.result-guides > .reference-accordion:first-child { border-right: 1px solid var(--line); }
.result-guides > .pwa-card { margin-top: var(--rhythm-group); }
.story-pair { margin-top: var(--rhythm-section); }
.supporter-banner { margin-top: var(--rhythm-section); }
.guide-wrap > .guide-grid,
.guide-wrap > .updates-list,
.guide-wrap > .legal-list { margin-top: var(--rhythm-section); }
.guide-wrap > .guide-note { margin-block: var(--rhythm-group) var(--rhythm-section); }

button:not(:disabled), .shell-brand--icon, .coffee-link, .sponsor-cta,
.postscan-coffee, input[type="file"]::file-selector-button {
  border-color: color-mix(in srgb, var(--line) 86%, var(--accent));
  transition: background-color .16s ease, color .16s ease,
    border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.coffee-link { border-width: 1px; }
button:not(:disabled):hover, .shell-brand--icon:hover, .coffee-link:hover,
.sponsor-cta:hover, .postscan-coffee:hover,
input[type="file"]::file-selector-button:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 5px 16px color-mix(in srgb, var(--accent) 12%, var(--quiet-shadow));
  transform: translateY(-1px);
}
button:not(:disabled):focus-visible, .shell-brand--icon:focus-visible,
.coffee-link:focus-visible, .sponsor-cta:focus-visible,
.postscan-coffee:focus-visible, .result-guides summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
  border-color: var(--accent);
}
button:not(:disabled):active, .shell-brand--icon:active,
.coffee-link:active, .sponsor-cta:active, .postscan-coffee:active {
  transform: translateY(1px);
}
.result-guides > details > summary,
.pwa-manual > summary, .update-entry summary, .learn-card summary {
  transition: color .16s ease, background-color .16s ease;
}
.result-guides > details > summary:hover,
.pwa-manual > summary:hover, .update-entry summary:hover, .learn-card summary:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  button:not(:disabled), .shell-brand--icon, .coffee-link, .sponsor-cta,
  .postscan-coffee, .result-guides summary { transition: none; }
  button:not(:disabled):hover, .shell-brand--icon:hover, .coffee-link:hover,
  .sponsor-cta:hover, .postscan-coffee:hover,
  button:not(:disabled):active, .shell-brand--icon:active, .coffee-link:active,
  .sponsor-cta:active, .postscan-coffee:active { transform: none; }
}

/* v80: compact shared-promotion cards without changing carousel geometry. */
.supporter-banner { padding-block: clamp(1rem, 1.7vw, 1.5rem); }
.supporter-banner .supporter-heading { margin-bottom: var(--space-2); }
.supporter-banner .supporter-intro { margin-bottom: var(--space-4); }
.supporter-banner .supporter-card {
  min-height: 90px; padding: var(--space-3) var(--space-4);
}
.supporter-banner .supporter-card a { min-height: 44px; align-content: center; }
.supporter-banner .supporter-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 680px) {
  .supporter-banner .supporter-card { min-height: 94px; }
}

/* v83 Workspace: one clear file-first path, followed by the text alternative. */
.workbench {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.5rem);
}
.workbench-head { grid-column: 1; }
.workbench .input-mode {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--module-bg) 84%, var(--scanner-bottom));
  box-shadow: inset 0 1px var(--highlight);
}
.workbench #panel-doc {
  border-color: color-mix(in srgb, var(--accent) 37%, var(--line));
  background: color-mix(in srgb, var(--module-bg) 92%, var(--scanner-top));
}
.workbench .input-mode + .input-mode {
  padding: clamp(1rem, 2.2vw, 1.8rem);
  border: 1px solid var(--line);
  margin-top: 0;
}
.mode-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-bottom: .85rem;
}
.mode-heading .input-mode-title { margin: 0; }
.mode-helper { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.workbench #panel-doc .drop-zone { min-height: clamp(175px, 19vw, 245px); }
.workbench #panel-text textarea { min-height: clamp(205px, 22vw, 275px); }
.workbench .row { min-width: 0; }
.workbench .row .counter { min-width: 0; overflow-wrap: anywhere; }
.workbench .row .actions { margin-left: auto; }
.workspace-or {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--muted);
  font: 750 var(--text-xs)/1.4 var(--font-body);
  letter-spacing: .1em;
  text-align: center;
}
.workspace-or::before, .workspace-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.upload-limits { margin-top: .75rem; color: var(--muted); font-size: var(--text-sm); }
.upload-limits summary { width: fit-content; padding: .3rem 0; cursor: pointer; }
.upload-limits summary:hover { color: var(--ink); }
.upload-limits summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload-limits .hint { margin: .35rem 0 0; }
@media (max-width: 680px) {
  .mode-heading { display: block; }
  .mode-helper { display: block; margin-top: .35rem; }
  .workbench .input-mode, .workbench .input-mode + .input-mode { padding: 1rem; }
  .workbench #panel-doc .drop-zone { min-height: 170px; }
  .workbench #panel-text textarea { min-height: 210px; }
}

/* v83.1: consistent outer axes, readable documentation and restrained motion. */
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(1rem, 3.2vw, 3rem); }
.intro, .workspace-trust, .workspace, .home-process, .result-guides,
.story-pair, .supporter-banner { width: 100%; max-width: 1180px; margin-inline: auto; }
.intro-copy { max-width: 800px; }
.guide-wrap > .eyebrow, .guide-wrap > h1, .guide-wrap > .lead { width: 100%; max-width: 800px; }
.guide-wrap > .guide-grid, .guide-wrap > .legal-list, .guide-wrap > .updates-list,
.guide-wrap > .guide-note, .guide-wrap > .doc-section { width: 100%; margin-inline: auto; }
.guide-wrap > .doc-section { max-width: 1080px; }
.doc-section { margin-block: clamp(1.5rem, 3vw, 2.8rem); min-width: 0; }
.doc-section h2 { margin: 0 0 .9rem; color: var(--ink); line-height: 1.25; }
.doc-section p, .doc-section li { max-width: 72ch; color: var(--muted); line-height: 1.65; }
.doc-section p + p { margin-top: .75rem; }
.doc-section ul { padding-left: 1.25rem; }
.doc-section a, .doc-section p, .doc-section li, .doc-section dd { overflow-wrap: anywhere; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doc-grid > * { min-width: 0; }
.doc-grid .info-card { padding: clamp(1rem, 2.4vw, 1.8rem); }
.doc-grid .info-card p { margin-bottom: 0; }
.format-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.2rem; margin: 1rem 0 0; }
.format-list > div { min-width: 0; padding: .75rem 0; border-top: 1px solid var(--line); }
.format-list dt { font-weight: 800; color: var(--ink); }
.format-list dd { margin: .25rem 0 0; color: var(--muted); line-height: 1.5; }
.home-process.side-panel { display: block; margin-block: clamp(2rem, 3vw, 3rem); padding: 0; }
.home-process-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.2rem;
  min-height: 56px; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: .75rem;
  background: var(--secondary-bg); cursor: pointer; list-style: none; position: relative;
}
.home-process-summary::-webkit-details-marker { display: none; }
.home-process-summary::marker { content: ""; }
.home-process-summary .eyebrow { color: var(--ink); }
.home-process-teaser { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.home-process-summary::before { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; color: var(--accent); font-size: 1.35rem; line-height: 1; }
.home-process[open] > summary::before { content: "-"; }
.home-process-summary:focus-visible, .support-explainer summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.75rem, 1.5vw, 1.4rem); margin-top: 1.25rem; }
.home-process .side-item { min-width: 0; padding-inline: .25rem; }
.home-process .side-item p { max-width: none; overflow-wrap: anywhere; }
.story-pair .story-copy, .story-support-card > p { max-width: 72ch; }
.story-support-card .sponsor-offer { max-width: 72ch; }
.support-explainer { margin-top: 1rem; max-width: 72ch; border-top: 1px solid var(--line); }
.support-explainer summary { width: fit-content; min-height: 44px; align-content: center; color: var(--ink); font-weight: 700; cursor: pointer; }
.support-explainer p { margin: .25rem 0 0; color: var(--muted); line-height: 1.6; }
@keyframes coffee-double-pulse {
  0%, 8%, 21%, 30%, 43%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  14%, 36% { transform: scale(1.023); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 25px color-mix(in srgb, var(--accent) 28%, transparent); }
}
.story-support-card .coffee-link { transform-origin: center; animation: coffee-double-pulse 5s ease-in-out infinite; }
.story-support-card .coffee-link:hover, .story-support-card .coffee-link:focus-visible {
  animation: none; transform: scale(1.023);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), 0 9px 28px color-mix(in srgb, var(--accent) 32%, transparent);
}
@media (max-width: 1080px) { .home-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .home-process-grid, .doc-grid, .format-list { grid-template-columns: minmax(0,1fr); }
  .home-process-summary { gap: .4rem .7rem; }
  .home-process-teaser { flex-basis: 100%; padding-left: 1.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .story-support-card .coffee-link { animation: none; }
  .story-support-card .coffee-link:hover, .story-support-card .coffee-link:focus-visible { transform: none; }
}
.home-process:not([open]) > .home-process-grid { display: none; }
details.support-explainer:not([open]) > p { display: none; }

/* v83.3: guide axes, compact workflow and grouped update archive. */
body[data-page="how"] .doc-intro, body[data-page="detect"] .doc-intro { width: 100%; max-width: 1080px; margin-inline: auto; }
.doc-intro > .eyebrow { display: block; margin-top: clamp(1.4rem, 2.6vw, 2.6rem); }
.doc-intro > h1 { max-width: 18ch; margin: .55rem 0 .5rem; font-size: clamp(2.6rem, 4.7vw, 4.7rem); line-height: 1.14; letter-spacing: -.055em; overflow-wrap: anywhere; }
.doc-intro > .lead { max-width: 65ch; line-height: 1.55; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; max-width: 1080px; margin: 1.4rem auto 1.8rem; padding: 0; list-style: none; }
.workflow-steps li { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem .75rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.learn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.learn-card { display: block; min-width: 0; padding: var(--space-5); text-decoration: none; color: var(--ink); }
.learn-card h3 { margin: 0 0 var(--space-2); }
.learn-card p { margin: 0; color: var(--muted); }
.learn-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .learn-cards { grid-template-columns: 1fr; } }
.workflow-index { color: var(--accent); font: 700 var(--text-xs)/1 var(--mono); }
@media (max-width: 800px) { .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }
@media (min-width: 681px) { .workbench #panel-doc .drop-zone { min-height: clamp(145px, 15.5vw, 200px); } }
.updates-archive { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.updates-archive > summary { cursor: pointer; padding: 1rem 1.25rem; color: var(--ink); font-weight: 750; }
.updates-archive > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.updates-archive-list { display: grid; gap: var(--space-4); padding: 0 1rem 1rem; }
.updates-archive-list .update-entry { min-width: 0; }

/* v83.3.1: the existing navigation becomes a centered desktop row. */
@media (min-width: 1280px) {
  .head-main { position: relative; }
  .head-main .brand-nav { position: static; }
  .head-main .menu-toggle { display: none; }
  .head-main .brand-nav .primary-nav {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: auto; display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: clamp(.25rem, .65vw, .75rem); width: max-content; max-width: calc(100% - 270px);
    max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
  }
  .head-main .brand-nav .primary-nav a {
    width: auto; flex: none; padding: .45rem .65rem; white-space: nowrap;
  }
}

/* v90.1: preview-led, single-slide showcase without carousel controls. */
#supporter-list { display: block; width: 100%; transform: none; }
#supporter-viewport { overflow: visible; }
.supporter-banner .supporter-showcase-card {
  display: block; width: 100%; min-height: 0; height: auto; padding: 0;
  overflow: hidden; font-weight: 400;
}
.supporter-preview { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: contain; background: var(--surface); }
.supporter-card-body { display: flex; align-items: center; gap: 1rem; min-width: 0; padding: .65rem 1rem; text-align: left; }
.supporter-card-copy { min-width: 0; flex: 1; }
.supporter-name { display: block; font-size: var(--text-base); line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.supporter-tagline { margin: .2rem 0 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.supporter-banner .supporter-card .supporter-visit { display: inline-flex; flex: none; align-items: center; width: auto; min-height: 44px; max-width: 40%; font-size: var(--text-xs); line-height: 1.3; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.supporter-mini-track { width: 100%; }
.supporter-mini-track > a { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: anywhere; font-size: var(--text-xs); }
.supporter-mini-track > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 680px) {
  .supporter-card-body { display: block; padding: .6rem .75rem; }
  .supporter-name { font-size: var(--text-sm); }
  .supporter-tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .supporter-banner .supporter-card .supporter-visit { max-width: 100%; min-height: 40px; }
  .supporter-mini { align-items: flex-start; }
}

/* v90.2: one native full-card link; opacity animation never adds hidden controls. */
.supporter-banner a.supporter-showcase-card { color: var(--ink); text-decoration: none; }
.supporter-banner a.supporter-showcase-card:hover { text-decoration: none; }
.supporter-banner a.supporter-showcase-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* v90.3: reuse native reference disclosures; only compact the Home surround. */
.home-disclosure > .home-disclosure-body { padding: .25rem 1rem 1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.home-disclosure-body > p { margin: .75rem 0; max-width: 80ch; color: var(--muted); }
.home-disclosure-body a:not(.coffee-link) { color: var(--accent); }
.home-disclosure-body a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.result-guides + #supporter-banner { margin-top: var(--rhythm-near); }

/* v90.4: the funding subsection is ordinary content in the parent disclosure. */
.home-disclosure-body .support-explainer > h3 { margin: 0; color: var(--ink); font-size: var(--text-sm); line-height: 1.4; }

/* v90.5: centered module, concurrent layers and isolated overlay arrows. */
#supporter-list { display: grid; }
#supporter-list > .supporter-showcase-card { grid-area: 1 / 1; align-self: start; }
.supporter-outgoing { pointer-events: none; user-select: none; }
.supporter-showcase-card:not(.supporter-card--image)::before {
  content: ""; display: block; aspect-ratio: 40 / 21; background: var(--surface);
}
.supporter-arrow {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); font-size: 2rem; line-height: 1;
  box-shadow: 0 2px 8px #0002; cursor: pointer;
}
.supporter-arrow[hidden] { display: none; }
.supporter-arrow--previous { left: .35rem; }
.supporter-arrow--next { right: .35rem; }
.supporter-arrow:hover { border-color: var(--accent); color: var(--accent); }
.supporter-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1199px) {
  #supporter-banner { width: min(84vw, 820px, 100%); margin-inline: auto; }
}
@media (min-width: 1200px) {
  #supporter-banner { width: min(76vw, 900px, 100%); margin-inline: auto; }
}
/* Equal information-band space prevents image/text availability from changing height. */
.supporter-tagline { min-height: 1.4em; }
@media (max-width: 680px) {
  .supporter-tagline { height: 2.8em; }
  .supporter-card-body { padding-inline: .75rem; }
}
