/* SponsorLint — judge-facing UX recovery. Vanilla CSS, no external assets. */

:root {
  color-scheme: dark;
  --ink: #0b0c0a;
  --ink-raised: #11130f;
  --ink-soft: #171a14;
  --ink-active: #20241b;
  --line: #30352a;
  --line-strong: #4b5340;
  --paper: #f3f0e8;
  --paper-muted: #c5c2b9;
  --paper-dim: #918f87;
  --acid: #c6ff52;
  --acid-soft: #263317;
  --red: #ff705e;
  --red-soft: #2b1511;
  --amber: #e0b05e;
  --amber-soft: #2a2112;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --page: 1180px;
  --gutter: 32px;
  --header-height: 166px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--acid);
  color: #10120a;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { position: relative; z-index: 2; width: min(100%, var(--page)); margin: 0 auto; padding: 0 var(--gutter) 44px; }

.ambient-aurora {
  --aurora-rise: 0;
  --aurora-shift: 0px;
  --aurora-lean: 0deg;
  position: fixed;
  z-index: 0;
  right: -4vw;
  bottom: -10vh;
  left: -4vw;
  height: min(56vh, 620px);
  opacity: .145;
  pointer-events: none;
  transform: translate3d(var(--aurora-shift), 0, 0) skewX(var(--aurora-lean)) scaleY(var(--aurora-rise));
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
  will-change: transform;
}
.ambient-aurora::after { position: absolute; content: ""; inset: 25% 0 0; background: linear-gradient(to top, rgb(11 12 10 / 10%), rgb(11 12 10 / 92%)); }
.ambient-aurora svg { display: block; width: 100%; height: 100%; }

.spectral-cursor {
  position: fixed;
  z-index: 1;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  opacity: .16;
  pointer-events: none;
  background: radial-gradient(circle at 46% 50%, rgb(198 255 82 / 18%), transparent 34%), radial-gradient(circle at 57% 52%, rgb(255 112 94 / 13%), transparent 42%);
  filter: blur(22px);
  transform: translate3d(50vw, 55vh, 0);
  transition: opacity 240ms ease;
  will-change: transform;
}
.spectral-cursor.is-active { opacity: .34; }

/* =============================================================== APP SHELL */

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding-top: 18px;
  background: rgb(11 12 10 / 96%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand-motion { display: block; width: 190px; height: 54px; overflow: hidden; }
.brand-motion canvas { display: block; width: 100%; height: 100%; }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  font: 700 11px/1 var(--mono);
  letter-spacing: -.05em;
}
.brand small { margin-left: -26px; color: var(--paper-dim); font: 650 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: translateY(16px); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.local-status { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-muted); font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.local-status i { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; }
.text-action { padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--paper-muted); cursor: pointer; font-size: 12px; }
.text-action:hover { color: var(--paper); border-color: var(--paper); }

.workflow { padding: 15px 4px 17px; }
.flow { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; flex: 1 1 0; min-width: 0; }
.flow li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  content: "";
  top: 17px;
  left: 38px;
  width: calc(100% - 38px);
  height: 1px;
  background: var(--line);
}
.flow li.is-complete:not(:last-child)::after { background: var(--acid); opacity: .65; }
.flow button {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 0 10px 0 0;
  background: var(--ink);
  border: 0;
  text-align: left;
  cursor: pointer;
}
.flow button:disabled { cursor: not-allowed; }
.step-node {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-dim);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 650 9px/1 var(--mono);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.step-copy { display: flex; min-width: 0; flex-direction: column; }
.step-copy strong { overflow: hidden; color: var(--paper-dim); font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
.step-copy small { margin-top: 2px; color: #666a61; font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.flow li.is-current .step-node { background: var(--acid); border-color: var(--acid); color: #10120a; transform: scale(1.06); }
.flow li.is-current .step-copy strong { color: var(--paper); }
.flow li.is-current .step-copy small { color: var(--acid); }
.flow li.is-complete .step-node { border-color: var(--acid); color: var(--acid); }
.flow li.is-complete .step-copy strong { color: var(--paper-muted); }
.flow li.is-complete .step-copy small { color: var(--paper-dim); }
.flow li.is-available .step-node { border-color: var(--line-strong); }
.flow li.is-available .step-copy strong { color: var(--paper-muted); }
.flow button:not(:disabled):hover .step-node { border-color: var(--acid); }
.flow button:not(:disabled):hover .step-copy strong { color: var(--paper); }

.screen { display: none; }
.screen.is-active { display: block; animation: screen-in 180ms ease-out both; }
[data-screen-title]:focus { outline: 0; }
@keyframes screen-in { from { opacity: .01; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 14px; color: var(--paper-dim); font: 700 10px/1.35 var(--mono); letter-spacing: .13em; text-transform: uppercase; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 17px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.button:hover { border-color: var(--paper-dim); }
.button--primary { background: var(--acid); border-color: var(--acid); color: #10120a; }
.button--primary:hover { background: #d4ff77; border-color: #d4ff77; transform: translateY(-1px); }
.button--large { min-height: 52px; padding-inline: 22px; }
.button--quiet { color: var(--paper-muted); }
.button--quiet:hover { background: var(--ink-active); color: var(--paper); }
.button--danger { background: var(--red); border-color: var(--red); color: #160806; }
.button[disabled] { opacity: .42; cursor: not-allowed; transform: none; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
[data-screen-title]:focus-visible { outline: 0; }

.notice { margin: 18px 0 0; padding: 14px 17px; border: 1px solid currentColor; font-size: 13px; white-space: pre-wrap; }
.notice--error { background: var(--red-soft); color: var(--red); }
.notice--info { background: var(--acid-soft); color: var(--acid); }

/* ================================================================== BRIEF */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, .97fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  min-height: 635px;
  padding: 68px 0 58px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  max-width: 700px;
  margin: 0;
  font: 500 clamp(50px, 5.6vw, 77px)/.98 var(--sans);
  letter-spacing: -.061em;
}
.hero h1 > span:not(.kinetic-title) { color: var(--paper-muted); }
.kinetic-title { display: block; width: min(100%, 680px); height: clamp(68px, 7.2vw, 98px); margin-top: 2px; overflow: hidden; }
.kinetic-title canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.hero-support { max-width: 580px; margin: 25px 0 0; color: var(--paper-muted); font-size: 16px; line-height: 1.55; }
.principle { display: flex; flex-wrap: wrap; min-height: 24px; margin: 24px 0 0; color: var(--paper); font: 700 11px/1.7 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.typer-word { display: inline-flex; white-space: nowrap; }
.typer-word + .typer-word { margin-left: .6em; }
.typer-char { display: inline-block; min-width: .55em; padding-inline: .02em; transition: background-color 70ms linear, color 70ms linear, border-color 70ms linear; }
.typer-char.is-block { color: transparent; background: var(--acid); }
.typer-char.is-inverse { color: var(--ink); background: var(--paper); }
.typer-char.is-outline { color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }

.sample-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(100%, 600px);
  min-height: 88px;
  margin-top: 34px;
  padding: 16px 20px;
  background: var(--acid);
  color: #111308;
  border: 0;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  box-shadow: 8px 8px 0 #202817;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.sample-cta::before { position: absolute; z-index: -1; content: ""; inset: -1px; opacity: 0; background: linear-gradient(100deg, #c6ff52, #f3f0e8 44%, #e0b05e 68%, #ff705e); filter: blur(12px); transition: opacity 180ms ease; }
.sample-cta:hover::before, .sample-cta:focus-visible::before { opacity: .38; }
.sample-cta:hover { background: #d5ff78; transform: translate(-2px, -2px); box-shadow: 11px 11px 0 #202817; }
.cta-index { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgb(17 19 8 / 35%); border-radius: 50%; font: 700 9px/1 var(--mono); }
.cta-copy { display: flex; min-width: 0; flex-direction: column; }
.cta-copy strong { font-size: 16px; letter-spacing: -.01em; }
.cta-copy small { margin-top: 4px; color: rgb(17 19 8 / 66%); font: 600 10px/1.4 var(--mono); }
.cta-arrow { font: 500 22px/1 var(--mono); }
.secondary-entry { margin-top: 23px; padding: 5px 0; background: transparent; color: var(--paper-muted); border: 0; border-bottom: 1px solid var(--line-strong); cursor: pointer; font-size: 13px; }
.secondary-entry:hover { color: var(--paper); border-color: var(--paper); }

.glyph-stage {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #090a08;
  border: 1px solid var(--line-strong);
  box-shadow: 14px 14px 0 #070806;
  cursor: crosshair;
}
.glyph-stage::before,
.glyph-stage::after { position: absolute; z-index: 2; content: ""; pointer-events: none; }
.glyph-stage::before { inset: 0; box-shadow: inset 0 0 54px 16px rgb(0 0 0 / 52%); }
.glyph-stage::after { inset: 10px; border: 1px solid rgb(198 255 82 / 10%); }
#glyph-field { display: block; width: 100%; height: 440px; }
.stage-chrome { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 14px 16px; color: #71766a; font: 700 8px/1 var(--mono); letter-spacing: .13em; }
.stage-chrome span:last-child { color: var(--acid); }
.glyph-stage figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.landing-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.landing-proof p { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; padding: 22px; color: var(--paper-muted); font-size: 12px; border-right: 1px solid var(--line); }
.landing-proof p:first-child { padding-left: 0; }
.landing-proof p:last-child { border-right: 0; }
.landing-proof span { grid-row: 1 / 3; align-self: center; color: var(--acid); font: 700 9px/1 var(--mono); }
.landing-proof strong { color: var(--paper); font-size: 12px; }

.brief-composer { padding: 82px 0 42px; scroll-margin-top: var(--header-height); }
.composer-intro { max-width: 720px; margin-bottom: 30px; }
.composer-intro h2 { margin: 0 0 12px; font: 520 clamp(36px, 4.2vw, 58px)/1.04 var(--sans); letter-spacing: -.045em; }
.composer-intro > p:last-child { margin: 0; color: var(--paper-muted); }
.composer-card { background: var(--ink-raised); border: 1px solid var(--line); }
.mode-switch { display: flex; border-bottom: 1px solid var(--line); }
.mode-switch button { min-height: 52px; padding: 0 24px; background: transparent; color: var(--paper-dim); border: 0; border-right: 1px solid var(--line); cursor: pointer; font: 650 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.mode-switch button[aria-selected="true"] { background: var(--ink-active); color: var(--paper); box-shadow: inset 0 -2px 0 var(--acid); }
.composer-mode { padding: 26px; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.drop-zone,
.video-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 24px;
  background: #0d0f0c;
  border: 1px dashed var(--line-strong);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.drop-zone:hover, .drop-zone.is-dragging, .drop-zone:focus-within,
.video-drop:hover, .video-drop.is-dragging, .video-drop:focus-within { background: var(--ink-soft); border-color: var(--acid); }
.drop-icon, .video-drop-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--acid); border: 1px solid var(--line-strong); font: 500 20px/1 var(--mono); }
.drop-copy, .video-drop > span:nth-child(3) { display: flex; min-width: 0; flex-direction: column; }
.drop-copy strong, .video-drop strong { font-size: 15px; }
.drop-copy small, .video-drop small { margin-top: 4px; overflow-wrap: anywhere; color: var(--paper-dim); font: 500 10px/1.5 var(--mono); }
.drop-action { padding: 8px 11px; border: 1px solid var(--line-strong); color: var(--paper-muted); font-size: 11px; }
.paste-editor { display: block; }
.paste-editor > span { display: block; margin-bottom: 9px; color: var(--paper-dim); font: 700 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: #0b0d0a;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}
.paste-editor textarea { min-height: 220px; resize: vertical; font: 400 13px/1.7 var(--mono); }
textarea::placeholder, input::placeholder { color: #686b63; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 26px; border-top: 1px solid var(--line); }
.composer-footer p { display: flex; flex-direction: column; margin: 0; }
.composer-footer p strong { font-size: 12px; }
.composer-footer p span { color: var(--paper-dim); font: 500 9px/1.5 var(--mono); }

/* ========================================================== SCREEN SHARED */

.screen-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px 0 8px; }
.screen-toolbar p { margin: 0; color: var(--paper-dim); font: 600 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.back-button { display: inline-flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 15px; background: var(--ink-raised); color: var(--paper); border: 1px solid var(--line-strong); cursor: pointer; font-weight: 650; font-size: 13px; }
.back-button span { color: var(--acid); font-family: var(--mono); }
.back-button:hover { background: var(--ink-active); border-color: var(--acid); }
.screen-intro { max-width: 830px; padding: 58px 0 54px; }
.screen-intro [data-screen-title]:focus { outline: 0; }
.screen-intro h1 { margin: 0 0 20px; font: 500 clamp(48px, 6vw, 78px)/.99 var(--sans); letter-spacing: -.06em; }
.screen-intro > p:last-child { max-width: 680px; margin: 0; color: var(--paper-muted); font-size: 17px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font: 580 23px/1.2 var(--sans); letter-spacing: -.025em; }
.count-copy { margin: 0; color: var(--paper-dim); font: 600 9px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

/* ================================================================= REVIEW */

.review-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 62px; border-block: 1px solid var(--line); }
.review-summary p { display: flex; flex-direction: column; margin: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.review-summary p:first-child { padding-left: 0; }
.review-summary p:last-child { border-right: 0; }
.review-summary span { color: var(--paper-dim); font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.review-summary strong { margin-top: 6px; color: var(--paper-muted); font-size: 12px; }
.requirements { scroll-margin-top: var(--header-height); }
#review-rows { border-top: 1px solid var(--line); }
.rule-card { position: relative; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rule-card.is-invalid { margin-inline: -14px; padding-inline: 14px; background: linear-gradient(90deg, rgb(255 112 94 / 9%), transparent 65%); border-bottom-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.rule-card.is-invalid .rule-editor > summary { color: var(--red); }
.rule-card-grid { display: grid; grid-template-columns: minmax(0, .95fr) 54px minmax(0, 1.05fr); align-items: stretch; }
.source-citation { min-width: 0; padding: 7px 28px 8px 0; }
.citation-label, .requirement-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--paper-dim); font: 700 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.source-citation blockquote { margin: 0; color: var(--paper-muted); font: 450 16px/1.62 var(--sans); letter-spacing: -.01em; }
.source-citation blockquote::before { content: "“"; color: var(--acid); }
.source-citation blockquote::after { content: "”"; color: var(--acid); }
.rule-bridge { position: relative; display: grid; place-items: center; }
.rule-bridge::before { position: absolute; content: ""; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.rule-bridge span { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--acid); border: 1px solid var(--line-strong); border-radius: 50%; font: 600 13px/1 var(--mono); }
.requirement-view { min-width: 0; padding: 7px 0 8px 28px; }
.rule-id { color: var(--acid); }
.rule-type { color: var(--paper-dim); }
.requirement-view h3 { margin: 0 0 8px; font: 620 18px/1.3 var(--sans); letter-spacing: -.02em; }
.rule-value { margin: 0; color: var(--paper); font: 530 clamp(22px, 2.6vw, 32px)/1.22 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.rule-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: var(--paper-dim); font: 600 9px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.rule-needs-input { color: var(--amber); }
.rule-editor { margin: 19px 0 0; border-top: 1px solid var(--line); }
.rule-editor summary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 0; color: var(--paper-muted); cursor: pointer; font-size: 12px; }
.rule-editor summary::marker { color: var(--acid); }
.editor-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; margin-top: 16px; padding: 20px; background: var(--ink-raised); border: 1px solid var(--line); }
.editor-field { display: block; min-width: 0; }
.editor-field--wide { grid-column: 1 / -1; }
.editor-field > span { display: block; margin-bottom: 7px; color: var(--paper-dim); font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.editor-field input, .editor-field select, .editor-field textarea { min-height: 39px; padding: 8px 10px; font: 500 12px/1.45 var(--mono); }
.editor-field textarea { min-height: 68px; resize: vertical; }
.editor-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.delete-rule { padding: 7px 0; background: none; color: var(--red); border: 0; border-bottom: 1px solid rgb(255 112 94 / 40%); cursor: pointer; font-size: 11px; }
.close-editor { padding: 7px 0; background: none; color: var(--paper-muted); border: 0; border-bottom: 1px solid var(--line-strong); cursor: pointer; font-size: 11px; }

.manual-zone { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 26px; margin-top: 58px; padding: 32px; background: var(--amber-soft); border-block: 1px solid #6a5127; }
.manual-symbol { display: grid; place-items: center; width: 58px; height: 58px; color: var(--amber); border: 1px solid #6a5127; border-radius: 50%; font: 400 24px/1 var(--mono); }
.manual-zone h2 { margin: 0 0 8px; font: 580 24px/1.25 var(--sans); letter-spacing: -.03em; }
.manual-zone > div:last-child > p:not(.eyebrow) { max-width: 700px; margin: 0; color: #c4b28e; font-size: 14px; }
.manual-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 24px; padding-top: 21px; border-top: 1px solid #594622; }
.manual-item h3 { margin: 0 0 7px; font-size: 15px; }
.manual-item blockquote { margin: 0; color: #c4b28e; font: 500 11px/1.6 var(--mono); }
.manual-confirm { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; background: #17130c; color: var(--paper); border: 1px solid #6a5127; cursor: pointer; font-size: 12px; white-space: nowrap; }
.manual-confirm input { width: 17px; height: 17px; accent-color: var(--acid); }
.source-drawer { margin: 22px 0 120px; border-bottom: 1px solid var(--line); }
.source-drawer summary { display: flex; justify-content: space-between; padding: 17px 0; color: var(--paper-muted); cursor: pointer; font-size: 13px; list-style: none; }
.source-drawer summary::-webkit-details-marker { display: none; }
.source-drawer[open] summary span { transform: rotate(45deg); }
.brief-text { max-height: 360px; margin: 0 0 18px; padding: 20px; overflow: auto; background: var(--ink-raised); white-space: pre-wrap; color: var(--paper-muted); font: 400 12px/1.75 var(--mono); }
.approval-dock,
.check-dock {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 36px;
  padding: 16px 18px;
  background: rgb(17 19 15 / 96%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 36px rgb(0 0 0 / 42%);
}
.approval-proof { display: flex; flex-direction: column; }
.approval-proof span { font-size: 13px; font-weight: 650; }
.approval-proof small { color: var(--paper-dim); font: 600 9px/1.5 var(--mono); text-transform: uppercase; }
.approval-actions { display: flex; align-items: center; gap: 12px; }

/* ================================================================== CHECK */

.screen-intro--check { max-width: 900px; }
.media-choice { margin-bottom: 54px; }
.take-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.take-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 130px;
  padding: 22px;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.take-option:hover { background: var(--ink-soft); border-color: var(--line-strong); }
.take-option.is-selected { background: var(--acid-soft); border-color: var(--acid); transform: translateY(-2px); }
.take-option input { position: absolute; opacity: 0; }
.take-index { display: grid; place-items: center; width: 50px; height: 50px; color: var(--paper-dim); border: 1px solid var(--line-strong); border-radius: 50%; font: 700 11px/1 var(--mono); }
.take-option.is-selected .take-index { background: var(--acid); color: #111308; border-color: var(--acid); }
.take-copy { display: flex; min-width: 0; flex-direction: column; }
.take-copy strong { font-size: 17px; letter-spacing: -.02em; }
.take-copy small { margin-top: 5px; color: var(--paper-dim); font-size: 12px; }
.take-state { align-self: start; color: var(--paper-dim); font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.take-option.is-selected .take-state { color: var(--acid); }
.video-drop { min-height: 110px; margin-top: 14px; }
.proof-board { display: grid; grid-template-columns: 1.1fr .95fr .95fr; margin-bottom: 55px; border-block: 1px solid var(--line); }
.proof-board article { display: flex; min-height: 150px; flex-direction: column; justify-content: center; padding: 24px; border-right: 1px solid var(--line); }
.proof-board article:first-child { padding-left: 0; }
.proof-board article:last-child { border-right: 0; }
.proof-board span { color: var(--paper-dim); font: 700 8px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.proof-board strong { margin-top: 13px; font: 560 clamp(25px, 3vw, 39px)/1 var(--sans); letter-spacing: -.045em; }
.proof-board small { margin-top: 10px; color: var(--paper-dim); font-size: 11px; }
.proof-board__focus strong { color: var(--acid); font-size: clamp(40px, 5vw, 64px); }
.run-state { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; margin: 0 0 36px; padding: 28px; background: var(--ink-raised); border: 1px solid var(--line); }
.resolve-indicator { display: grid; place-items: center; min-height: 116px; overflow: hidden; background: #090a08; color: var(--acid); border: 1px solid var(--line); font: 700 13px/1 var(--mono); letter-spacing: .16em; }
.run-state h2 { margin: 0; font: 580 25px/1.2 var(--sans); }
.steps { list-style: none; margin: 13px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--paper-dim); font: 550 11px/1.9 var(--mono); }
.steps li[data-state="done"] { color: var(--acid); }
.steps li[data-state="active"] { color: var(--paper); }
.steps .glyph { width: 18px; color: currentColor; }
.check-dock { margin-top: 0; }
.check-dock > div { display: flex; flex-direction: column; }
.check-dock > div span { color: var(--paper-dim); font: 700 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.check-dock > div strong { margin-top: 5px; font-size: 14px; }

/* ================================================================= REPORT */

.report-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 54px 0 28px; border-bottom: 1px solid var(--line); }
.report-intro .eyebrow { margin-bottom: 9px; }
.report-intro h1 { margin: 0; font: 520 clamp(42px, 5vw, 64px)/1 var(--sans); letter-spacing: -.055em; }
.report-intro > p { margin: 0 0 7px; color: var(--paper-dim); font: 600 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.report-column { max-width: 980px; margin: 0 auto; padding: 42px 0 72px; }
.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  margin-bottom: 58px;
  padding: 34px 0;
  border-block: 1px solid currentColor;
}
.verdict-main { min-width: 0; }
.verdict-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; font: 750 10px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.verdict .icon { font: 600 16px/1 var(--mono); }
.verdict h2 { max-width: 690px; margin: 0 0 16px; font: 620 clamp(62px, 9vw, 118px)/.82 var(--sans); letter-spacing: -.075em; }
.verdict p { max-width: 620px; margin: 0; color: var(--paper-muted); font-size: 15px; }
.verdict--fail { color: var(--red); }
.verdict--warn { color: var(--amber); }
.verdict--pass { color: var(--acid); }
.verdict-stats { display: grid; align-content: center; grid-template-columns: 1fr 1fr; color: var(--paper); border-left: 1px solid var(--line); }
.verdict-stat { display: flex; flex-direction: column; justify-content: center; min-height: 130px; padding: 20px; border-right: 1px solid var(--line); }
.verdict-stat:last-child { border-right: 0; }
.verdict-stat strong { font: 530 37px/1 var(--mono); letter-spacing: -.065em; }
.verdict-stat span { margin-top: 11px; color: var(--paper-dim); font: 700 8px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.findings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.findings-heading h3 { margin: 0; font: 590 24px/1.2 var(--sans); letter-spacing: -.03em; }
.findings-heading span { color: var(--paper-dim); font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.finding-code { margin: 0 0 10px; color: var(--acid); font: 750 8px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.result { margin-bottom: 14px; padding: 28px; background: var(--ink-raised); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.result--fail { border-left-color: var(--red); }
.result--warn { border-left-color: var(--amber); }
.result--manual { background: var(--amber-soft); border-color: #5c4724; border-left-color: var(--amber); }
.result-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 21px; }
.finding-index { color: var(--paper-dim); font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.result-head h3 { margin: 0; font: 590 19px/1.3 var(--sans); letter-spacing: -.02em; }
.status-word { color: var(--red); font: 750 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.result--manual .status-word { color: var(--amber); }
.timecode { padding: 7px 10px; background: #0a0b09; color: var(--paper); border: 1px solid var(--line-strong); cursor: pointer; font: 700 10px/1 var(--mono); }
.timecode:hover { border-color: var(--acid); color: var(--acid); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-block: 1px solid var(--line); }
.comparison > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.comparison > div:first-child { padding-left: 0; }
.comparison > div:last-child { border-right: 0; }
.comparison span { display: block; margin-bottom: 9px; color: var(--paper-dim); font: 700 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.comparison strong { display: block; color: var(--paper); font: 540 clamp(22px, 3vw, 34px)/1.15 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.comparison .detected-bad strong { color: var(--red); }
.evidence-quote { margin: 0; padding: 19px 20px; background: #090a08; color: var(--paper); border: 1px solid var(--line); font: 450 14px/1.7 var(--mono); }
.evidence-quote mark { background: var(--red-soft); color: var(--paper); border-bottom: 2px solid var(--red); }
.advisory { margin: 14px 0 0; color: var(--paper-muted); font-size: 13px; }
.source-grounding { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 16px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.source-grounding dt { color: var(--paper-dim); font: 700 8px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.source-grounding dd { margin: 0; color: var(--paper-muted); font: 450 12px/1.65 var(--mono); }
.manual-confirm-report { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #5c4724; }
.manual-confirm-report p { margin: 0; color: #c8b68f; font-size: 12px; }
.section-label { margin: 44px 0 15px; color: var(--paper-dim); font: 700 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.passes { margin-top: 42px; }
.passes summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-block: 1px solid var(--line); color: var(--paper-muted); cursor: pointer; list-style: none; font-size: 13px; }
.passes summary::-webkit-details-marker { display: none; }
.passes summary span { color: var(--acid); font-family: var(--mono); }
.pass-list { margin: 0; padding: 0; list-style: none; }
.pass-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 55px; border-bottom: 1px solid var(--line); }
.pass-row > span:first-child { color: var(--acid); }
.pass-row strong { font-size: 13px; font-weight: 600; }
.pass-row small { color: var(--paper-dim); font: 600 9px/1 var(--mono); }
.report-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ================================================================= DIALOG */

.reset-dialog { width: min(92vw, 470px); padding: 0; background: var(--ink-raised); color: var(--paper); border: 1px solid var(--line-strong); }
.reset-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.reset-dialog form { padding: 28px; }
.reset-dialog h2 { margin: 0 0 12px; font: 580 27px/1.2 var(--sans); letter-spacing: -.03em; }
.reset-dialog form > p:not(.eyebrow) { margin: 0; color: var(--paper-muted); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--paper-dim); font: 600 9px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

/* ================================================================ TABLET */

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 36px; min-height: 590px; }
  .hero h1 { font-size: clamp(46px, 6vw, 64px); }
  #glyph-field { height: 390px; }
  .rule-card-grid { grid-template-columns: minmax(0, .9fr) 44px minmax(0, 1.1fr); }
  .source-citation { padding-right: 20px; }
  .requirement-view { padding-left: 20px; }
  .verdict { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; --header-height: 155px; }
  .app-header { padding-top: 10px; }
  .header-row { min-height: 52px; }
  .brand small, .local-status { display: none; }
  .brand-motion { width: 170px; }
  .workflow { margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 14px; overflow-x: auto; scrollbar-width: none; }
  .workflow::-webkit-scrollbar { display: none; }
  .flow { min-width: 600px; }
  .flow button { grid-template-columns: 32px minmax(0, 1fr); }
  .step-node { width: 32px; height: 32px; }
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: 0; padding: 54px 0 46px; }
  .hero h1 { font-size: clamp(48px, 10vw, 68px); }
  .sample-cta { width: 100%; }
  .glyph-stage { width: min(100%, 590px); }
  #glyph-field { height: 330px; }
  .landing-proof { grid-template-columns: 1fr; }
  .landing-proof p { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .landing-proof p:last-child { border-bottom: 0; }
  .screen-intro { padding: 46px 0 42px; }
  .screen-intro h1 { font-size: clamp(46px, 9vw, 67px); }
  .review-summary { grid-template-columns: 1fr 1fr; }
  .review-summary p:nth-child(2) { border-right: 0; }
  .review-summary p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .review-summary p:first-child { padding-left: 20px; }
  .rule-card-grid { grid-template-columns: 1fr; }
  .source-citation, .requirement-view { padding-inline: 0; }
  .rule-bridge { min-height: 54px; place-items: center start; }
  .rule-bridge::before { top: 0; bottom: 0; left: 17px; }
  .rule-bridge span { transform: rotate(90deg); }
  .manual-zone { grid-template-columns: 1fr; }
  .manual-item { grid-template-columns: 1fr; }
  .manual-confirm { width: max-content; }
  .approval-dock, .check-dock { align-items: stretch; flex-direction: column; bottom: 8px; }
  .approval-actions { width: 100%; }
  .approval-actions .button--primary { flex: 1 1 auto; }
  .take-options { grid-template-columns: 1fr; }
  .proof-board { grid-template-columns: 1fr; }
  .proof-board article { min-height: 118px; padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-board article:last-child { border-bottom: 0; }
  .run-state { grid-template-columns: 100px minmax(0, 1fr); }
  .verdict { grid-template-columns: 1fr; gap: 24px; }
  .verdict-stats { border-left: 0; border-top: 1px solid var(--line); }
  .report-intro { align-items: flex-start; flex-direction: column; }
  .report-intro > p { margin: 0; }
}

/* ================================================================= MOBILE */

@media (max-width: 520px) {
  :root { --gutter: 14px; --header-height: 146px; }
  body { font-size: 15px; }
  .header-actions { gap: 10px; }
  .brand-motion { width: 142px; height: 48px; }
  .text-action { font-size: 11px; }
  .flow { min-width: 0; }
  .flow button { grid-template-columns: 30px minmax(0, 1fr); gap: 5px; padding-right: 3px; }
  .step-node { width: 30px; height: 30px; }
  .step-copy strong { font-size: 10px; }
  .flow li:not(:last-child)::after { top: 15px; left: 31px; width: calc(100% - 31px); }
  .step-copy small { display: none; }
  .hero { gap: 30px; padding-top: 44px; }
  .hero h1 { font-size: clamp(43px, 12.4vw, 58px); }
  .kinetic-title { height: 60px; }
  .hero-support { margin-top: 20px; font-size: 15px; }
  .principle { font-size: 9px; }
  .sample-cta { gap: 12px; min-height: 96px; padding: 14px; box-shadow: 5px 5px 0 #202817; }
  .cta-index { width: 30px; height: 30px; }
  .cta-copy strong { font-size: 14px; }
  .cta-copy small { font-size: 8px; }
  .cta-arrow { font-size: 18px; }
  .glyph-stage { box-shadow: 7px 7px 0 #070806; }
  #glyph-field { height: 260px; }
  .brief-composer { padding-top: 60px; }
  .composer-intro h2 { font-size: 38px; }
  .composer-mode { padding: 14px; }
  .drop-zone, .video-drop { grid-template-columns: auto 1fr; padding: 18px; }
  .drop-action { display: none; }
  .composer-footer { align-items: stretch; flex-direction: column; padding: 16px; }
  .screen-toolbar { padding-top: 20px; }
  .screen-toolbar p { display: none; }
  .screen-intro h1 { font-size: 44px; }
  .screen-intro > p:last-child { font-size: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .review-summary { grid-template-columns: 1fr 1fr; margin-bottom: 46px; }
  .review-summary p { padding: 14px; }
  .source-citation blockquote { font-size: 15px; }
  .rule-card { padding: 22px 0; }
  .editor-panel { grid-template-columns: 1fr; padding: 15px; }
  .editor-field--wide { grid-column: auto; }
  .editor-actions { grid-column: auto; }
  .manual-zone { padding: 22px 18px; }
  .source-drawer { margin-bottom: 150px; }
  .approval-actions { align-items: stretch; flex-direction: column-reverse; }
  .approval-actions .button { width: 100%; }
  .take-option { min-height: 112px; padding: 17px; }
  .take-index { width: 42px; height: 42px; }
  .take-copy strong { font-size: 15px; }
  .run-state { grid-template-columns: 1fr; }
  .resolve-indicator { min-height: 80px; }
  .check-dock .button { width: 100%; }
  .report-column { padding-top: 30px; }
  .verdict { padding: 28px 0; }
  .verdict h2 { font-size: 62px; }
  .verdict-stat { min-height: 105px; padding: 15px; }
  .verdict-stat strong { font-size: 30px; }
  .result { padding: 20px 16px; }
  .result-head { grid-template-columns: auto minmax(0, 1fr); }
  .result-head .timecode { grid-column: 2; width: max-content; }
  .comparison { grid-template-columns: 1fr; }
  .comparison > div { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .comparison > div:last-child { border-bottom: 0; }
  .source-grounding { grid-template-columns: 1fr; gap: 7px; }
  .manual-confirm-report { align-items: stretch; flex-direction: column; }
  .manual-confirm-report .button { width: 100%; }
  .report-footer-actions, .site-footer { align-items: stretch; flex-direction: column; }
  .report-footer-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spectral-cursor { display: none; }
  .ambient-aurora { opacity: .09; }
}
