/* SCRIPTRISK — crisp product design.
   The reference is Apple's marketing language: enormous quiet headlines, 17px
   body, sentence case, generous white space, one accent, pill buttons, alternating
   white / soft-gray bands. No uppercase micro-labels, no letterspaced chrome, no
   glow. Monospace exists for exactly one thing: screenplay text.
   Self-contained: system fonts, vendored libs, works offline. */

:root {
  color-scheme: dark;
  --bg: #0d1119;
  --band: #131a26;
  --surface: #1a2232;
  --ink: #edeff4;
  --ink-2: #b7bfcd;
  --ink-3: #828b9c;
  --line: #2a3447;
  --line-2: #3a4660;
  /* --green is the PRIMARY ACCENT — historic token name kept so every
     interactive use restyles at once. True "go" green lives in --go. */
  --green: #82a8dc;
  --gold: #e2b850;
  --gold-tint: #2b281a;
  --green-deep: #a9c4e8;
  --green-tint: #1f2c44;
  --go: #37b877;
  --go-deep: #63d29a;
  --go-tint: #16281e;
  --blocker: #ff6057;
  --high: #ffa14d;
  --medium: #d9b44a;
  --low: #98a0ab;
  --fyi: #7d8591;
  --desk-clearance: #8d87ff;
  --desk-ratings: #c084fc;
  --desk-safety: #fbbf24;
  --desk-territory: #38bdf8;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --glass: rgba(18, 24, 36, 0.92);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f0e1;
  --band: #eee6d1;
  --surface: #fffcf4;
  --ink: #211d15;
  --ink-2: #544e3e;
  --ink-3: #8d8570;
  --line: #e4dbc4;
  --line-2: #d6ccb4;
  --green: #1d3f6b;
  --gold: #c8991f;
  --gold-tint: #f7edd2;
  --green-deep: #16334f;
  --green-tint: #e7edf5;
  --go: #0e7c4a;
  --go-deep: #0a6239;
  --go-tint: #e6f2e6;
  --blocker: #e0342a;
  --high: #e97c00;
  --medium: #b08a00;
  --low: #6e6e73;
  --fyi: #a1a1a6;
  --desk-clearance: #4f46e5;
  --desk-ratings: #9333ea;
  --desk-safety: #d97706;
  --desk-territory: #0284c7;
  --glass: rgba(246, 240, 225, 0.94);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hidden { display: none !important; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0 0 14px; letter-spacing: -0.022em; line-height: 1.12; }
h1 { font-family: var(--display); font-size: clamp(38px, 5vw, 60px); font-weight: 640; letter-spacing: -0.012em; line-height: 1.06; }
h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.008em; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.014em; }
h4 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 16px; }

/* every page uses the screen (owner call, 2026-09-01) — 1080 left dead
   margins on real displays. Grids and cards scale; long-form prose pages keep
   readable measure via their own card widths. */
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; }
main { min-height: 60vh; padding: 56px 0 96px; }
/* the run page is a working dashboard, not an article — give it more room */
.run-body .container { max-width: 1320px; }
.page-head { margin-bottom: 40px; max-width: 760px; }
.page-head h1,
.home-section .section-title h2,
.hiw-actions h2,
.section-head h2 {
  background: linear-gradient(96deg, var(--green-deep) 25%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.home-section .section-title h2 { margin-left: auto; margin-right: auto; }
.page-head .kicker { font-size: 17px; font-weight: 600; color: var(--gold); display: block; margin-bottom: 6px; letter-spacing: 0.04em; }
.page-head p.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); }

/* The old chrome class, tamed: sentence-size, no shouting. */
.label, .blk-label {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  padding: 11px 24px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-secondary { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-tint); }
.btn-lg { font-size: 19px; padding: 14px 30px; }

/* ---------- header ---------- */
.site-header {
  background: rgba(7, 14, 28, 0.94);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container { max-width: 1320px; }
.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--bg); }
.breadcrumbs .container { max-width: 1320px; }
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--ink-3); opacity: 0.7; padding: 0 3px; }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { color: var(--ink-3); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #f5f5f7; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #e8b64c; box-shadow: 0 0 10px rgba(232, 182, 76, 0.55); }
.brand-name { font-family: var(--display); font-weight: 680; font-size: 18px; letter-spacing: 0.01em; color: #f5f5f7; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { color: rgba(245, 245, 247, 0.72); font-weight: 480; font-size: 15.5px; padding: 8px 11px; border-radius: 980px; white-space: nowrap; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #f2c95d; background: rgba(232, 182, 76, 0.14); }
/* "My reports": its own stop, centered in the gap between the nav and the
   actions (both .site-nav and .nav-mid flex:1, so the link sits mid-gap).
   Pulses gold while one of the user's analyses is running. */
.nav-mid { flex: 1; display: flex; justify-content: center; }
.nav-mid a {
  color: rgba(245, 245, 247, 0.72);
  font-weight: 480;
  font-size: 15.5px;
  padding: 8px 14px;
  border-radius: 980px;
  white-space: nowrap;
}
.nav-mid a:hover { color: #fff; text-decoration: none; }
.nav-mid a.active { color: #f2c95d; background: rgba(232, 182, 76, 0.14); }
.nav-mid a.running { color: #f2c95d; animation: nav-pulse 1.5s ease-in-out infinite; }
.nav-mid a.running::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c95d;
  margin-right: 7px;
  vertical-align: 1px;
}
@keyframes nav-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mid a.running { animation: none; }
}
.header-actions { display: flex; gap: 10px; }
.site-header .btn-secondary { border-color: rgba(255, 255, 255, 0.28); color: #f5f5f7; background: none; }
.site-header .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.site-header .btn-primary { background: #e8b64c; color: #081020; }
.site-header .btn-primary:hover { background: #f4cd66; }
.site-header .auth-me { color: #f5f5f7; }
.site-header .auth-me:hover { color: #f2c95d; }
.header-actions .btn { font-size: 16px; padding: 8px 18px; }
@media (max-width: 980px) {
  .header-inner { gap: 10px; }
  .site-nav a { padding: 8px 7px; font-size: 15px; }
  .auth-me span { display: none; }
  /* no room for a centered stop on phones — the link tucks in beside the nav
     (it stays the only entry point, so it never fully hides) */
  .nav-mid { flex: 0 0 auto; }
  .nav-mid a { padding: 8px 7px; font-size: 15px; }
  /* the nav swipes WITHIN the header on phones — the page itself never pans */
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* nothing may make the page pan sideways — wide content scrolls in its own box */
html, body { overflow-x: clip; }

/* ---------- footer ---------- */
.site-footer { background: #101b2e32; background: #101b2e; border-top: 0; margin-top: 60px; color: #e9e4d4; }
.site-footer .brand { color: #f8f4e9; }
.site-footer .brand-name { color: #e8c25a; }
.site-footer h4 { color: #f8f4e9; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 24px 20px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-col h4 { font-size: 16px; margin-bottom: 10px; }
.footer-col a { display: block; color: rgba(233, 228, 212, 0.75); padding: 4px 0; font-size: 16px; }
.footer-blurb { color: rgba(233, 228, 212, 0.55); font-size: 16px; max-width: 40ch; margin-top: 10px; }
.footer-fine { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(233, 228, 212, 0.15); padding-top: 18px; padding-bottom: 26px; }
.footer-fine p { color: rgba(233, 228, 212, 0.45); font-size: 14.5px; margin: 0; max-width: 80ch; }

/* ---------- cards, toast, severity ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 16px;
  padding: 13px 24px;
  z-index: 50;
  max-width: 80vw;
}
.toast.error { background: var(--blocker); }

.sev-chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 650;
  padding: 3px 12px;
  border-radius: 980px;
  color: #fff;
}
.sev-chip.sev-BLOCKER { background: var(--blocker); }
.sev-chip.sev-HIGH { background: var(--high); }
.sev-chip.sev-MEDIUM { background: var(--medium); }
.sev-chip.sev-LOW { background: var(--low); }
.sev-chip.sev-FYI { background: var(--fyi); }
.sev-BLOCKER { color: var(--blocker); }
.sev-HIGH { color: var(--high); }
.sev-MEDIUM { color: var(--medium); }
.sev-LOW { color: var(--low); }
.sev-FYI { color: var(--fyi); }
/* the bare .sev-* color classes above must not repaint chip text red-on-red */
.sev-chip.sev-BLOCKER, .sev-chip.sev-HIGH, .sev-chip.sev-MEDIUM, .sev-chip.sev-LOW, .sev-chip.sev-FYI { color: #fff; }

/* ================= HOME ================= */
/* the hero touches the dark header — no cream seam between two dark bands */
main:has(> .hero-band:first-child) { padding-top: 0; }
.hero-band {
  margin-top: 0;
  padding-top: 56px;
  background:
    radial-gradient(760px 420px at 85% -10%, rgba(227, 179, 65, 0.16), transparent 55%),
    radial-gradient(700px 420px at 0% 110%, rgba(52, 211, 153, 0.1), transparent 55%),
    linear-gradient(155deg, #0a0d14 0%, #0e1420 60%, #131c2e 115%);
  border-bottom: 0;
}
:root[data-theme="light"] .hero-band {
  background:
    radial-gradient(760px 420px at 85% -10%, rgba(200, 153, 31, 0.18), transparent 55%),
    radial-gradient(700px 420px at 0% 110%, rgba(14, 124, 74, 0.08), transparent 55%),
    linear-gradient(155deg, #f6f0e1 0%, #efe7d2 60%, #e9dfc6 115%);
}
:root[data-theme="light"] .hero-band .hero h1 { color: var(--ink); }
:root[data-theme="light"] .hero-band .hero .sub { color: var(--ink-2); }
:root[data-theme="light"] .hero-band .hero-note { color: var(--ink-3); }
:root[data-theme="light"] .hero-band .btn-secondary { color: var(--ink); border-color: var(--line-2); }
:root[data-theme="light"] .cta-band {
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(200, 153, 31, 0.2), transparent 60%),
    linear-gradient(135deg, #efe7d2, #e5d9ba);
  color: var(--ink);
}
:root[data-theme="light"] .cta-band h2 { color: var(--ink); }
/* light-mode gaps: the band overrides recolored the headings but left the CTA
   paragraph and the pipeline SVG on their dark-mode near-white fills — invisible
   on the cream band (SCRIPT/VERIFY vanished; the CTA subtitle unreadable). */
:root[data-theme="light"] .cta-band p { color: var(--ink-2); }
:root[data-theme="light"] .hero-band .pipeline-svg rect {
  fill: rgba(255, 252, 244, 0.55);
  stroke: rgba(42, 36, 20, 0.3);
}
:root[data-theme="light"] .hero-band .pipeline-svg text { fill: var(--ink-2); }
:root[data-theme="light"] .hero-band .pipeline-svg g:nth-of-type(2) text { fill: #4f46e5; }
:root[data-theme="light"] .hero-band .pipeline-svg g:nth-of-type(3) text { fill: #9333ea; }
:root[data-theme="light"] .hero-band .pipeline-svg g:nth-of-type(4) text { fill: #b45309; }
:root[data-theme="light"] .hero-band .pipeline-svg g:nth-of-type(5) text { fill: #0284c7; }
:root[data-theme="light"] .hero-band .pipeline-svg .accent text { fill: #241a05; }
.hero-band .hero h1 { color: #f8f4e9; }
.hero-band .hero .sub { color: rgba(248, 244, 233, 0.82); }
.hero-band .hero-note { color: rgba(248, 244, 233, 0.55); }
.hero-band .btn-primary { background: var(--gold); color: #241a05; font-weight: 600; }
.hero-band .btn-primary:hover { background: #dcb04a; }
.hero-band .btn-secondary { color: #f8f4e9; border-color: rgba(248, 244, 233, 0.45); }
.hero-band .btn-secondary:hover { background: rgba(248, 244, 233, 0.08); }
.hero-band .pipeline-svg rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.28); }
.hero-band .pipeline-svg text { fill: rgba(248, 244, 233, 0.85); }
.hero-band .pipeline-svg g:nth-of-type(2) text { fill: #a5b4fc; }
.hero-band .pipeline-svg g:nth-of-type(3) text { fill: #d8b4fe; }
.hero-band .pipeline-svg g:nth-of-type(4) text { fill: #fcd34d; }
.hero-band .pipeline-svg g:nth-of-type(5) text { fill: #7dd3fc; }
.hero-band .pipeline-svg .accent rect { fill: var(--gold); stroke: #a87f16; }
.hero-band .pipeline-svg .accent text { fill: #241a05; }
.hero-band .flow-line { stroke: var(--gold); opacity: 0.7; }
.grad {
  font-style: italic;
  background: linear-gradient(94deg, #f4cd66 5%, #e8b64c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 88px 24px 72px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); font-weight: 750; max-width: 20ch; margin: 0 auto 20px; }
.hero .sub { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 56ch; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 15.5px; color: var(--ink-3); }

.hero-visual { display: flex; flex-direction: column; gap: 34px; align-items: center; margin-top: 56px; width: 100%; max-width: 720px; }
.hero-mock { padding: 26px 30px; border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: left; }
.hm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.hm-title { font-size: 16px; font-weight: 650; color: var(--ink-2); }
.hm-score { font-size: 28px; font-weight: 750; color: var(--blocker); }
.hm-score small { font-size: 15.5px; color: var(--ink-3); font-weight: 500; }
.hm-flag { display: flex; gap: 14px; align-items: flex-start; }
.hm-flag b { font-size: 17px; display: block; letter-spacing: -0.01em; }
.hm-flag p { font-size: 15.5px; color: var(--ink-2); margin: 2px 0 4px; }
.hm-cite { font-size: 14.5px; color: var(--green-deep); background: var(--green-tint); border-radius: 8px; padding: 3px 10px; display: inline-block; }
.hm-rejected { opacity: 0.55; }
.hm-rejected b { text-decoration: line-through; text-decoration-color: rgba(224, 52, 42, 0.55); }
.hm-rejected .sev-chip { background: var(--blocker); }

.pipeline-svg { width: 100%; max-width: 640px; height: auto; overflow: visible; }
.pipeline-svg rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.25; }
.pipeline-svg text { fill: var(--ink-2); font-family: var(--sans); font-size: 12px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.pipeline-svg .accent rect { fill: var(--green); stroke: var(--green-deep); }
.pipeline-svg .accent text { fill: #fff; }
.pipeline-svg g:nth-of-type(2) text { fill: var(--desk-clearance); }
.pipeline-svg g:nth-of-type(3) text { fill: var(--desk-ratings); }
.pipeline-svg g:nth-of-type(4) text { fill: var(--desk-safety); }
.pipeline-svg g:nth-of-type(5) text { fill: var(--desk-territory); }
.flow-line { stroke: var(--green); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.5; }

.counter-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; padding: 0; background: none; border: 0; box-shadow: none; }
@media (max-width: 860px) { .counter-strip { grid-template-columns: repeat(2, 1fr); } }
/* On wide monitors the hero pooled in a laptop-sized column — let it breathe. */
@media (min-width: 1500px) {
  .hero h1 { font-size: clamp(42px, 4.4vw, 86px); max-width: 22ch; }
  .hero .sub { font-size: 25px; max-width: 64ch; }
  .hero-note { font-size: 17px; }
  .hero-visual { max-width: 900px; }
  .pipeline-svg { max-width: 800px; }
}
.counter-strip div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.counter-strip b { font-family: var(--display); font-size: clamp(36px, 4vw, 54px); font-weight: 640; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.counter-strip div:nth-child(2) b { color: var(--gold); }
.counter-strip div:nth-child(3) b { color: var(--desk-clearance); }
.counter-strip div:nth-child(4) b { color: var(--desk-territory); }
.counter-strip span { font-size: 16px; color: var(--ink-2); }

.home-section { margin-top: 110px; }
.home-section .section-title { text-align: center; margin-bottom: 40px; }
.home-section .section-title h2 { margin-bottom: 8px; }
.home-section .section-title a { font-size: 17px; }

.runs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .runs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .runs-grid { grid-template-columns: 1fr; } }
.run-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.run-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
a.run-card { color: inherit; }
.run-card .rc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.run-card .rc-title { font-family: var(--display); font-size: 21px; font-weight: 620; }
.run-card .rc-when { font-size: 15px; color: var(--ink-3); }
.run-card .rc-stats { display: flex; gap: 14px; font-size: 16px; color: var(--ink-2); flex-wrap: wrap; }
.run-card .rc-stats b { color: var(--ink); font-weight: 650; }
.score-pill { font-size: 15.5px; font-weight: 650; padding: 4px 13px; border-radius: 980px; color: #fff; background: var(--low); white-space: nowrap; }
.score-pill.good { background: var(--green); }
.score-pill.mid { background: var(--high); }
.score-pill.bad { background: var(--blocker); }
.demo-tag { font-size: 13.5px; font-weight: 600; color: var(--green-deep); background: var(--green-tint); border-radius: 980px; padding: 3px 11px; }
.runs-empty { padding: 40px; text-align: center; color: var(--ink-3); }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
.step-card { padding: 26px 24px; color: inherit; }
a.step-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.step-card .step-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}
.step-card:nth-child(2) .step-num { background: rgba(79, 70, 229, 0.1); color: var(--desk-clearance); }
.step-card:nth-child(3) .step-num { background: rgba(147, 51, 234, 0.1); color: var(--desk-ratings); }
.step-card:nth-child(4) .step-num { background: rgba(217, 119, 6, 0.12); color: var(--desk-safety); }
.step-card:nth-child(5) .step-num { background: rgba(2, 132, 199, 0.1); color: var(--desk-territory); }
.step-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--green-deep); }
.step-card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; }

.cta-band {
  margin-top: 110px;
  padding: 72px 40px;
  text-align: center;
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(200, 153, 31, 0.18), transparent 60%),
    linear-gradient(135deg, #0b0f18, #131d30);
  border-radius: 28px;
  color: #f7f4ea;
}
.cta-band h2 { color: #fff; max-width: 24ch; margin: 0 auto 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); font-size: 19px; max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--gold); color: #241a05; font-weight: 600; }
.cta-band .btn-primary:hover { background: #dcb04a; }

/* ================= CONTENT PAGES ================= */

.stage-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.stage { display: flex; gap: 22px; padding: 28px 30px; }
.stage h3 { margin-bottom: 2px; }
.stage p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.stage .who { font-size: 15.5px; color: var(--ink-3); }
.stage-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.stage-icon svg { width: 28px; height: 28px; }
.si-green { color: var(--green-deep); background: var(--green-tint); }
.si-indigo { color: var(--desk-clearance); background: rgba(79, 70, 229, 0.09); }
.si-purple { color: var(--desk-ratings); background: rgba(147, 51, 234, 0.09); }
.si-amber { color: var(--desk-safety); background: rgba(217, 119, 6, 0.1); }
.si-sky { color: var(--desk-territory); background: rgba(2, 132, 199, 0.09); }
.stage-body { min-width: 0; }
.stage-example {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--band);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 13px 17px;
}
.stage-example .eg-label { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
.sev-line-BLOCKER, .sev-line-REJ { border-left-color: var(--blocker); }
.sev-line-HIGH { border-left-color: var(--high); }
.stage-cta { display: inline-block; margin-top: 14px; font-size: 17px; font-weight: 550; color: var(--green-deep); }
.hiw-pipe { margin: 16px 0 38px; display: block; }
.hiw-actions { margin-top: 72px; }
.hiw-actions h2 { text-align: center; margin-bottom: 30px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .action-grid { grid-template-columns: 1fr; } }
.action-card { padding: 28px; color: inherit; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.action-card .ac-num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 14px; }
.action-card p { font-size: 16px; color: var(--ink-2); flex: 1; }

.callout { border-left: 4px solid var(--green); background: var(--green-tint); border-radius: 0 14px 14px 0; padding: 22px 26px; margin: 30px 0; max-width: 860px; font-size: 17px; }
.callout b { color: var(--green-deep); }

.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 14px; }
.faq-list details { padding: 6px 26px; }
.faq-list summary { cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::after { content: "+"; color: var(--green); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--ink-2); margin: 0 0 20px; font-size: 17px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; }
.contact-card p { font-size: 16px; color: var(--ink-2); }

/* ================= RUN PAGE ================= */
.run-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.run-head h1 { font-size: 32px; margin: 0; }
.chip { font-size: 14.5px; font-weight: 600; padding: 4px 14px; border-radius: 980px; border: 1px solid var(--line-2); background: var(--surface); }
.chip.live { color: var(--blocker); border-color: rgba(224, 52, 42, 0.35); }
.chip.replay { color: var(--green-deep); border-color: rgba(10, 143, 82, 0.35); }
#elapsed { font-size: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.progress-strip { padding: 22px 26px 20px; margin-bottom: 20px; }
.phases { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.phase { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink-3); padding: 6px 14px; border-radius: 980px; transition: all 0.3s; }
.phase .p-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.phase.active { color: var(--green-deep); background: var(--green-tint); }
.phase.active .p-dot { background: var(--green); animation: pulse 1.4s ease-in-out infinite; }
.phase.done { color: var(--ink-2); }
.phase.done .p-dot { background: var(--green); }
.phase-arrow { color: var(--line-2); font-size: 13.5px; }
@keyframes pulse { 50% { transform: scale(1.55); opacity: 0.7; } }
.pbar-row { display: flex; align-items: center; gap: 14px; }
.pbar { flex: 1; height: 7px; border-radius: 980px; background: var(--band); overflow: hidden; }
.pbar-fill { height: 100%; width: 0%; border-radius: 980px; background: var(--green); transition: width 0.5s ease; position: relative; overflow: hidden; }
.pbar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-100%); animation: shimmer 1.8s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.pct { font-size: 16px; font-weight: 650; color: var(--green-deep); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }

.panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .panel { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.col-head { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
.col-head .nm { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.col-head .sub { font-size: 14.5px; color: var(--ink-3); }
.col-head .st { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 550; }
#col-clearance_counsel .col-head { box-shadow: inset 0 3px 0 var(--desk-clearance); }
#col-ratings_board .col-head { box-shadow: inset 0 3px 0 var(--desk-ratings); }
#col-safety_underwriter .col-head { box-shadow: inset 0 3px 0 var(--desk-safety); }
#col-territory_censor .col-head { box-shadow: inset 0 3px 0 var(--desk-territory); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st.running .pulse { animation: pulse 1.2s ease-in-out infinite; }
.st.queued { color: var(--ink-3); }
.st.running { color: var(--high); }
.st.done { color: var(--green-deep); }

.col-body { flex: 1; min-height: 240px; max-height: 44vh; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.tr { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; animation: tr-in 0.28s ease; }
@keyframes tr-in { from { opacity: 0; transform: translateX(-6px); } }
.tr::before { position: absolute; left: 2px; top: 0; }
.tr em { font-style: normal; font-size: 14.5px; color: var(--ink-3); }
.t-call { color: var(--ink); }
.t-call::before { content: "→"; color: var(--ink-3); }
.t-out { color: var(--ink-3); padding-left: 34px; font-size: 14.5px; }
.t-out::before { content: "↳"; left: 16px; }
.t-text { font-style: italic; }
.t-flag { font-weight: 650; }
.t-flag::before { content: "⚑"; }
.t-q { color: var(--high); }
.t-q::before { content: "?"; font-weight: 700; }
.t-done { color: var(--green-deep); font-weight: 600; }
.t-done::before { content: "✓"; }

.pipe-strip { margin-top: 16px; overflow: hidden; }
.pipe-head { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink-2); }
.pipe-log { max-height: 190px; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 7px; }
.pipe-log .who { color: var(--green-deep); font-weight: 600; margin-right: 6px; }
.reject-line { color: var(--blocker); }

.done-banner { margin-top: 18px; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: rgba(10, 143, 82, 0.35); background: var(--green-tint); }
.done-banner b { font-size: 19px; letter-spacing: -0.01em; }

/* ================= REPORT ================= */
.report-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.rpt-head { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 36px 40px; margin-bottom: 28px; border-radius: 24px; }
.score { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 150px; height: 150px; border-radius: 50%; flex: none; }
.score::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ring, var(--green)) calc(var(--scorepct, 0) * 1%), var(--band) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.score b { font-family: var(--display); font-size: 56px; font-weight: 640; letter-spacing: -0.02em; }
.score .of { font-size: 16px; color: var(--ink-3); }
.score.good { --ring: var(--go); }
.score.mid { --ring: var(--high); }
.score.bad { --ring: var(--blocker); }
.score.good b { color: var(--go-deep); }
.score.mid b { color: var(--high); }
.score.bad b { color: var(--blocker); }
.rpt-head {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: 26px;
  background:
    radial-gradient(520px 260px at 8% 0%, color-mix(in srgb, var(--green) 9%, transparent), transparent 60%),
    radial-gradient(420px 240px at 100% 100%, color-mix(in srgb, var(--gold, #c8991f) 7%, transparent), transparent 60%),
    var(--surface);
}
.score-meta { display: flex; flex-direction: column; gap: 8px; min-width: 260px; flex: 1; }
.verdict { font-size: 27px; font-weight: 700; letter-spacing: -0.015em; }
.verdict.bad { color: var(--blocker); }
.verdict.mid { color: var(--high); }
.verdict.good { color: var(--go-deep); }
.proj { font-size: 17px; color: var(--ink-2); }
.proj b { color: var(--ink); font-weight: 650; }
.est-note { font-size: 14.5px; color: var(--ink-3); }
.tally { display: flex; gap: 12px; flex-wrap: wrap; }
.tally > div { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--band); border-radius: 14px; padding: 12px 18px; min-width: 82px; }
.tally b { font-size: 27px; font-weight: 750; }
.tally b.sev-BLOCKER { color: var(--blocker); }
.tally b.sev-HIGH { color: var(--high); }
.tally b.sev-MEDIUM { color: var(--medium); }
.tally b.sev-LOW { color: var(--low); }
.tally b.sev-FYI { color: var(--ink-3); }
.tally span { font-size: 13.5px; font-weight: 550; color: var(--ink-3); }

.section-head { margin: 56px 0 18px; }
.section-head h2::after { content: ""; display: block; width: 34px; height: 4px; border-radius: 980px; background: var(--green); margin-top: 10px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 4px; }
.section-head .lede { color: var(--ink-2); font-size: 17px; }
.flags { display: flex; flex-direction: column; gap: 16px; }
.flag { position: relative; display: grid; grid-template-columns: 104px 1fr 150px; gap: 22px; padding: 22px 26px 22px 30px; overflow: hidden; border-radius: 18px; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.flag:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .flag { grid-template-columns: 1fr; gap: 12px; } }
.flag.rejected { opacity: 0.6; background: var(--band); }
.flag.rejected .finding { text-decoration: line-through; text-decoration-color: rgba(224, 52, 42, 0.5); }
.sev-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.flag:has(.bar-BLOCKER), .flag:has(.bar-HIGH) { box-shadow: inset 5px 0 22px -14px color-mix(in srgb, var(--high) 55%, transparent); }
.flag:has(.bar-BLOCKER) { box-shadow: inset 5px 0 22px -14px color-mix(in srgb, var(--blocker) 55%, transparent); }
.bar-BLOCKER { background: var(--blocker); }
.bar-HIGH { background: var(--high); }
.bar-MEDIUM { background: var(--medium); }
.bar-LOW { background: var(--low); }
.bar-FYI { background: var(--fyi); }
.scenes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.scenes > span { font-size: 15.5px; font-weight: 650; color: var(--ink-2); }
.scene-link { font-size: 14.5px; font-weight: 550; color: var(--green-deep); background: var(--green-tint); border: 0; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.scene-link:hover { background: #d9efe4; }
.flag-main { min-width: 0; }
.flag-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cat { font-size: 18px; font-weight: 650; text-transform: capitalize; letter-spacing: -0.01em; }
.by { font-size: 14.5px; font-weight: 550; padding: 2px 11px; border-radius: 980px; text-transform: capitalize; }
.by-clearance_counsel { color: var(--desk-clearance); background: rgba(79, 70, 229, 0.08); }
.by-ratings_board { color: var(--desk-ratings); background: rgba(147, 51, 234, 0.08); }
.by-safety_underwriter { color: #92400e; background: rgba(217, 119, 6, 0.1); }
.by-territory_censor { color: #075985; background: rgba(2, 132, 199, 0.08); }
.finding { position: relative; margin: 0 0 10px; font-size: 16px; line-height: 1.62; max-width: 74ch; color: var(--ink-2); }
.finding.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.find-more { display: inline-block; border: 0; background: none; padding: 0; margin: 0 0 0 8px; font-size: 14.5px; font-weight: 600; line-height: inherit; color: var(--green-deep); cursor: pointer; }
.find-more:hover { text-decoration: underline; }
/* while clamped, the toggle sits at the end of the last visible line, fading
   over the cut-off text; expanded, it flows inline after the sentence */
.finding.clamped .find-more { position: absolute; right: 0; bottom: 0; margin: 0; padding-left: 36px; background: linear-gradient(90deg, transparent, var(--surface) 40%); }
.cite-toggle { border: 0; background: none; color: var(--green-deep); font-size: 16px; font-weight: 550; cursor: pointer; padding: 0; }
.cite-toggle:hover { text-decoration: underline; }
.expand { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cite { background: var(--band); border-left: 3px solid var(--green); border-radius: 12px; padding: 14px 18px; }
.cite q { display: block; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); quotes: "“" "”"; }
.cite .src { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.cite .via { font-weight: 650; color: var(--green-deep); font-size: 14px; }
.remedy { display: flex; gap: 14px; align-items: baseline; background: var(--green-tint); border-radius: 10px; padding: 14px 18px; }
.remedy .act { font-size: 14.5px; font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.remedy p { margin: 0; font-size: 16px; }
.conf { font-size: 14.5px; color: var(--ink-3); }
.rejection { font-size: 16px; color: var(--blocker); background: rgba(224, 52, 42, 0.06); border-radius: 10px; padding: 14px 18px; line-height: 1.6; }
.cost { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 14px; color: var(--ink-3); }
.cost b { font-family: var(--display); font-size: 21px; font-weight: 680; color: var(--ink); letter-spacing: -0.015em; }
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain-list li { background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; border-radius: 14px; padding: 15px 22px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.plain-list .who { display: block; font-size: 12px; font-weight: 750; color: var(--ink-3); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.09em; }
.plain-list li.note-clearance_counsel { border-left-color: var(--desk-clearance); }
.plain-list li.note-clearance_counsel > .who { color: var(--desk-clearance); }
.plain-list li.note-ratings_board { border-left-color: var(--desk-ratings); }
.plain-list li.note-ratings_board > .who { color: var(--desk-ratings); }
.plain-list li.note-safety_underwriter { border-left-color: var(--desk-safety); }
.plain-list li.note-safety_underwriter > .who { color: var(--desk-safety); }
.plain-list li.note-territory_censor { border-left-color: var(--desk-territory); }
.plain-list li.note-territory_censor > .who { color: var(--desk-territory); }
.plain-list li.note-adjudicator { border-left-color: var(--gold, #b08a00); }
.plain-list li.note-adjudicator > .who { color: var(--gold, #b08a00); }

/* prediction */
.pred-card { padding: 30px 34px; display: flex; flex-direction: column; gap: 22px; border-radius: 24px; }
.pred-head { display: flex; flex-direction: column; gap: 26px; align-items: stretch; }
.pred-ratings { display: flex; align-items: flex-start; justify-content: space-evenly; gap: 18px; background: var(--band); border-radius: 16px; padding: 22px 18px; flex-wrap: wrap; }
.pred-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pred-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.pred-vs { font-size: 15px; color: var(--ink-3); align-self: center; }
.rating-badge { font-size: 30px; font-weight: 750; padding: 9px 24px; border-radius: 16px; color: #fff; background: var(--low); letter-spacing: -0.01em; }
.rating-badge.r-R, .rating-badge.r-NC-17 { background: var(--blocker); }
.rating-badge.r-PG-13 { background: var(--high); }
.rating-badge.r-PG, .rating-badge.r-G { background: var(--go); }
.rating-badge.target { background: var(--surface); color: var(--green-deep); border: 2px dashed var(--green); }
.pred-meta { max-width: 76ch; }
.pred-rationale { margin: 0 0 14px; font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); border-left: 3px solid var(--gold, #b08a00); padding-left: 16px; letter-spacing: -0.005em; }
.pred-evidence { margin: 0; font-size: 16.5px; color: var(--green-deep); font-weight: 600; line-height: 1.6; }
.pred-evidence.pred-base { margin-top: 10px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.pred-evidence.pred-diverge { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.comps { display: flex; flex-direction: column; gap: 10px; }
.comp-row { display: grid; grid-template-columns: 64px 1fr 150px; gap: 18px; align-items: center; background: var(--band); border-radius: 14px; padding: 12px 18px; transition: background 0.15s ease; }
.comp-row:hover { background: var(--line); }
@media (max-width: 760px) { .comp-row { grid-template-columns: 52px 1fr; } .comp-sim { display: none; } }
.comp-rating { font-size: 15.5px; font-weight: 700; text-align: center; padding: 5px 0; border-radius: 10px; color: #fff; background: var(--low); }
.comp-rating.r-R, .comp-rating.r-NC-17 { background: var(--blocker); }
.comp-rating.r-PG-13 { background: var(--high); }
.comp-rating.r-PG, .comp-rating.r-G { background: var(--go); }
.comp-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.comp-title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.comp-quote { font-size: 15px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-src { font-size: 14.5px; }
.comp-sim { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.comp-bar { width: 100%; height: 6px; border-radius: 980px; background: var(--line); overflow: hidden; }
.comp-fill { height: 100%; border-radius: 980px; background: var(--green); }
.comp-d { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cuts ol { margin: 8px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.cuts li { font-size: 17px; line-height: 1.55; }

/* ================= SCRIPT PAGE ================= */
.scriptview { display: flex; flex-direction: column; gap: 16px; }
.scene-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 20px; padding: 22px 26px; }
@media (max-width: 900px) { .scene-row { grid-template-columns: 1fr; } }
.scene-row.flagged-BLOCKER { border-left: 4px solid var(--blocker); }
.scene-row.flagged-HIGH { border-left: 4px solid var(--high); }
.scene-row.flagged-MEDIUM { border-left: 4px solid var(--medium); }
.scene-row.flagged-LOW { border-left: 4px solid var(--low); }
.scene-row.flagged-FYI { border-left: 4px solid var(--fyi); }
.scene-text { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.scene-text .sid { display: block; font-family: var(--sans); font-weight: 650; color: var(--green-deep); margin-bottom: 8px; font-size: 15px; }
.gutter { display: flex; flex-direction: column; gap: 10px; }
.gnote { background: var(--band); border-radius: 12px; padding: 14px 17px; cursor: pointer; transition: background 0.15s; }
.gnote:hover { background: var(--line); }
.gnote .gt { display: block; font-size: 14.5px; font-weight: 650; margin-bottom: 5px; text-transform: capitalize; }
.gnote p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.gn-BLOCKER .gt { color: var(--blocker); }
.gn-HIGH .gt { color: var(--high); }
.gn-MEDIUM .gt { color: var(--medium); }
.gn-LOW .gt { color: var(--low); }
.gn-FYI .gt { color: var(--fyi); }
.hilite { animation: hilite 2.2s ease; }
@keyframes hilite {
  0%, 60% { box-shadow: 0 0 0 3px var(--green), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

/* ================= WRITER'S ROOM ================= */
.writer-intake { margin-top: 6px; }
.wr-start { padding: 34px 38px; }
.wr-start p { color: var(--ink-2); }
.wr-progress { display: flex; gap: 22px; align-items: center; padding: 34px 38px; }
.wr-progress h3 { margin-bottom: 4px; }
.wr-progress p { margin: 0; color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.wr-card { padding: 30px 34px; margin-bottom: 22px; border-radius: 24px; }
.wr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wr-card-head h3 { margin: 0; font-size: 25px; font-family: var(--display); color: var(--green-deep); }
.wr-genre { font-size: 16px; color: var(--ink-3); }
.verdict-badge { font-size: 16px; font-weight: 700; padding: 7px 20px; border-radius: 980px; color: #fff; }
.wr-verdict-reason { font-size: 18px; line-height: 1.55; letter-spacing: -0.01em; }
.wr-logline { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.wr-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
@media (max-width: 800px) { .wr-notes { grid-template-columns: 1fr; } }
.wr-note-col h4 { font-size: 17px; }
.wr-note-col.good h4 { color: var(--green-deep); }
.wr-note-col.bad h4 { color: var(--high); }
.wr-note { background: var(--band); border-radius: 12px; padding: 14px 17px; margin-bottom: 10px; }
.wr-note p { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.wr-note-col.good .wr-note { border-left: 3px solid var(--green); }
.wr-note-col.bad .wr-note { border-left: 3px solid var(--high); }
.wr-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.wr-extras { font-size: 16px; color: var(--ink-2); margin-top: 14px; }
.wr-loglines { margin: 4px 0 20px; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; }
.wr-loglines li { font-size: 17px; font-weight: 550; letter-spacing: -0.005em; }
.wr-checks { display: flex; flex-direction: column; gap: 10px; }
.wr-check { display: flex; gap: 15px; align-items: flex-start; background: var(--band); border-radius: 12px; padding: 14px 18px; }
.wr-check b { font-size: 17px; letter-spacing: -0.005em; }
.wr-check p { margin: 2px 0 0; font-size: 16px; color: var(--ink-2); }
.wr-check-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15.5px; margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* dimension scores + cost drivers */
.dims { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dim { display: flex; align-items: baseline; gap: 7px; padding: 6px 14px; border-radius: 980px; }
.dim b { font-size: 19px; font-weight: 750; }
.dim span { font-size: 15px; font-weight: 550; }
.drivers-card { padding: 26px 30px; margin-bottom: 28px; border-radius: 24px; }
.drivers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.drivers-head h3 { margin: 0; }
.drivers-total { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.drivers { display: flex; flex-direction: column; gap: 8px; }
.driver { position: relative; display: flex; align-items: center; gap: 14px; background: var(--band); border: 0; border-radius: 12px; padding: 12px 16px; font-family: inherit; font-size: 16.5px; cursor: pointer; text-align: left; overflow: hidden; }
.driver::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in srgb, var(--green) 12%, transparent); pointer-events: none; }
.driver > * { position: relative; }
.driver:hover { background: var(--line); }
.driver-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14.5px; flex: none; }
.driver-name { flex: 1; text-transform: capitalize; font-weight: 550; }
.driver b { font-weight: 700; }

/* ---------- case studies ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; color: inherit; transition: transform 0.18s, box-shadow 0.18s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.case-card .rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.case-card .case-title { flex: 1; min-width: 0; }
.case-score { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; flex: none; }
.case-score::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ring, var(--green)) calc(var(--scorepct, 0) * 1%), var(--band) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.case-score b { font-family: var(--display); font-size: 21px; font-weight: 680; line-height: 1; transform: translateY(-1px); }
.case-score.good { --ring: var(--go); } .case-score.good b { color: var(--go-deep); }
.case-score.mid { --ring: var(--high); } .case-score.mid b { color: var(--high); }
.case-score.bad { --ring: var(--blocker); } .case-score.bad b { color: var(--blocker); }
.rc-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.rc-stats span { font-size: 13px; color: var(--ink-3); background: var(--band); border-radius: 980px; padding: 4px 11px; }
.rc-stats b { color: var(--ink); font-weight: 650; }
.case-title { font-family: var(--display); font-size: 23px; font-weight: 620; letter-spacing: -0.01em; }
.case-hook-line { font-size: 16.5px; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.case-strip { background: var(--band); border-radius: 14px; padding: 18px 22px; margin-bottom: 24px; }
.case-hook { font-size: 17px; margin: 0 0 6px; }
.case-note { font-size: 14.5px; color: var(--ink-3); margin: 0; line-height: 1.6; }
.dims-note { font-size: 14px; color: var(--ink-3); align-self: center; }

/* ---------- upload overlay & progress narration ---------- */
.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 20, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.upload-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 30px 36px;
  width: min(440px, 90vw);
}
.upload-card h3 { margin-bottom: 4px; }
.up-file { font-size: 15.5px; color: var(--ink-3); margin-bottom: 16px; }
.up-bar { height: 8px; border-radius: 980px; background: var(--band); overflow: hidden; margin-bottom: 12px; }
.up-fill { height: 100%; width: 0%; border-radius: 980px; background: var(--green); transition: width 0.2s ease; }
.up-status { font-size: 16px; color: var(--ink-2); margin: 0; }
.run-status { font-size: 16px; color: var(--ink-3); margin: 12px 0 0; font-style: italic; }
.wr-progress-card { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.wr-progress-top { display: flex; gap: 18px; align-items: center; }
.wr-progress-top h3 { margin-bottom: 2px; }
.wr-progress-top p { margin: 0; color: var(--ink-2); }
.wr-elapsed { margin-left: auto; font-size: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* writer stage checklist + visible bar */
.wr-pbar { background: #e3dbc6; height: 10px; }
.wr-meter { margin-left: auto; display: flex; align-items: baseline; gap: 12px; }
.wr-meter b { font-family: var(--display); font-size: 30px; font-weight: 640; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.wr-stages { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wr-stages li { display: flex; gap: 14px; align-items: flex-start; opacity: 0.45; transition: opacity 0.3s; }
.wr-stages li.active, .wr-stages li.done { opacity: 1; }
.wr-stages b { font-size: 16.5px; display: block; }
.wr-stages p { margin: 1px 0 0; font-size: 15.5px; color: var(--ink-2); }
.ws-mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}
.wr-stages li.active .ws-mark { border-color: var(--green); animation: pulse 1.3s ease-in-out infinite; }
.wr-stages li.done .ws-mark { background: var(--green); border-color: var(--green); }
.wr-stages li.done .ws-mark::after { content: "✓"; }

/* auth + my reports */
.auth-slot { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.header-inner { flex-wrap: nowrap; }
/* the avatar dropdown keeps the signed-in header compact at every width */
.auth-me { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 550; font-size: 16px; white-space: nowrap; }
.auth-me:hover { text-decoration: none; color: var(--green-deep); }
.auth-pic { width: 28px; height: 28px; border-radius: 50%; }
.btn-danger { background: transparent; color: var(--blocker); border: 1px solid rgba(224, 52, 42, 0.4); }
.btn-danger:hover { background: rgba(224, 52, 42, 0.07); }
.my-row { display: flex; align-items: center; gap: 14px; padding: 20px 24px; margin-bottom: 14px; }
.my-main { flex: 1; min-width: 0; }
.my-title { font-family: var(--display); font-size: 21px; font-weight: 620; color: var(--ink); }
.my-title:hover { color: var(--green-deep); text-decoration: none; }
.my-meta { margin: 2px 0 0; font-size: 15.5px; color: var(--ink-3); }

/* compare table */
.compare-scroll { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 880px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compare-table th, .compare-table td { padding: 13px 16px; font-size: 15.5px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.compare-table thead th { font-family: var(--display); font-size: 17px; font-weight: 640; background: var(--band); }
.compare-table tbody th { font-weight: 650; color: var(--ink-2); width: 190px; }
.compare-table .us { background: var(--green-tint); font-weight: 550; }
.compare-table thead .us { color: var(--green-deep); }
.scene-link.inert { cursor: default; opacity: 0.75; }

/* fix proposals */
.fix-wrap { margin-top: 4px; }
.fix-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fix-beta { font-size: 14.5px; color: var(--gold); font-weight: 600; }
.fix-summary { font-size: 16px; color: var(--ink); margin: 14px 0 10px; }
.fix-patch { background: var(--band); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.fix-patch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fix-rationale { font-size: 15px; color: var(--ink-2); }
.diff-box { border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.diff-before { background: rgba(224, 52, 42, 0.06); border-left: 3px solid var(--blocker); }
.diff-after { background: rgba(10, 143, 82, 0.07); border-left: 3px solid var(--green); }
.diff-label { font-size: 13px; font-weight: 700; color: var(--ink-3); display: block; margin-bottom: 4px; }
.diff-text { margin: 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
mark.d-del { background: rgba(224, 52, 42, 0.18); color: var(--blocker); text-decoration: line-through; border-radius: 3px; }
mark.d-add { background: rgba(10, 143, 82, 0.16); color: var(--green-deep); border-radius: 3px; font-weight: 600; }
.col-head .spotlight { margin: 6px 0 0; font-size: 14.5px; color: var(--green-deep); font-weight: 550; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-mono { font-family: var(--mono); font-size: 14px; }
.adm-err td { background: rgba(224, 52, 42, 0.06); }
.my-running { display: inline-flex; align-items: center; gap: 8px; color: var(--high); font-size: 15px; font-weight: 600; }
.my-running .pulse { animation: pulse 1.2s ease-in-out infinite; }

/* trust + security notes */
.trust-strip { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(248, 244, 233, 0.1);
  border: 1px solid rgba(248, 244, 233, 0.25);
  color: rgba(248, 244, 233, 0.9);
  border-radius: 980px;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 500;
}
.trust-strip span::before { content: "✓"; color: var(--gold); font-weight: 700; }
:root[data-theme="light"] .trust-strip span { color: var(--ink-2); border-color: var(--line-2); background: rgba(255, 252, 244, 0.6); }
.secure-note { font-size: 15px; color: var(--ink-3); margin: 10px 0 0; }

/* the studio room */
.studio-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.studio-toggle { border: 0; background: none; color: var(--green-deep); font-size: 15.5px; font-weight: 800; cursor: pointer; }
.studio-toggle.pulse { animation: togglePulse 1.5s ease-in-out infinite; }
@keyframes togglePulse { 0%, 100% { opacity: 1; text-shadow: none; } 50% { opacity: 0.55; text-shadow: 0 0 10px currentColor; } }
@media (prefers-reduced-motion: reduce) { .studio-toggle.pulse { animation: none; } }
.studio-feed { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; max-height: 320px; overflow-y: auto; }
.studio-feed:empty { display: none; }
.studio-card { border-radius: 12px; padding: 12px 16px; background: var(--band); border-left: 4px solid var(--line-2); }
.sc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-top b { text-transform: capitalize; font-size: 16px; }
.sc-fid { font-size: 14px; color: var(--ink-3); }
.sc-verdict { margin-left: auto; font-size: 14px; font-weight: 800; letter-spacing: 0.03em; }
.sc-reason { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- The Read-Through: the scene strip is the run page's centerpiece.
   Desk dots walk down the script, findings pin to their scenes, verdicts
   confirm or strike the pins. The old four-column feed becomes "Detail view". ---------- */
.dot-system { background: var(--green); }


.scene-strip-wrap { padding: 0; overflow: hidden; }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.strip-head .label { font-size: 14.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.strip-count { font-size: 14.5px; font-weight: 650; color: var(--green-deep); font-variant-numeric: tabular-nums; }

.scene-strip { max-height: 66vh; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.rt-scene { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); transition: border-color 0.3s ease, box-shadow 0.4s ease; cursor: pointer; }
.rt-scene:hover { border-color: var(--green-deep); }
.strip-hint { font-size: 13.5px; color: var(--ink-3); }
.rts-body { margin: 10px 0 2px; max-height: 42vh; overflow: auto; white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; background: var(--band); border-radius: 10px; padding: 12px 14px; cursor: auto; }
.rts-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rts-num { font-size: 13px; font-weight: 700; color: var(--fyi); font-variant-numeric: tabular-nums; flex: none; }
.rts-heading { font-size: 15px; font-weight: 650; color: var(--ink-2); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rts-page { margin-left: auto; font-size: 13px; color: var(--fyi); flex: none; }
.rts-dots { position: absolute; top: -7px; right: 12px; display: flex; gap: 5px; }
.rt-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); animation: dot-in 0.35s ease; }
@keyframes dot-in { from { transform: scale(0.2); opacity: 0; } }
.dot-clearance_counsel { background: var(--desk-clearance); }
.dot-ratings_board { background: var(--desk-ratings); }
.dot-safety_underwriter { background: var(--desk-safety); }
.dot-territory_censor { background: var(--desk-territory); }
.rt-ripple { font-size: 13.5px; animation: ripple 2.4s ease-in-out; }
@keyframes ripple { 0%, 100% { opacity: 0; } 15%, 70% { opacity: 1; } 50% { transform: translateY(-2px); } }

.rt-scene.rts-read { background: var(--band); }
.rts-clear { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--green-deep); flex: none; }
.rt-scene.glow-clearance_counsel { border-color: var(--desk-clearance); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.rt-scene.glow-ratings_board { border-color: var(--desk-ratings); box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.12); }
.rt-scene.glow-safety_underwriter { border-color: var(--desk-safety); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }
.rt-scene.glow-territory_censor { border-color: var(--desk-territory); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12); }

.rts-pins { display: flex; flex-wrap: wrap; gap: 6px; }
.rts-pins:not(:empty) { margin-top: 8px; }
.rt-pin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border-radius: 980px; padding: 2.5px 10px 2.5px 8px; background: var(--band); border: 1px solid var(--line-2); color: var(--ink-2); transition: opacity 0.4s ease; }
.rt-pin b { font-weight: 800; letter-spacing: 0.04em; font-size: 11.5px; }
.rt-pin.sev-BLOCKER { border-color: var(--blocker); } .rt-pin.sev-BLOCKER b { color: var(--blocker); }
.rt-pin.sev-HIGH { border-color: var(--high); } .rt-pin.sev-HIGH b { color: var(--high); }
.rt-pin.sev-MEDIUM { border-color: var(--medium); } .rt-pin.sev-MEDIUM b { color: var(--medium); }
.rt-pin.sev-LOW b { color: var(--low); }
.rt-pin.sev-FYI b { color: var(--fyi); }
.rt-pin.pin-ok::after { content: "✓"; color: var(--go-deep); font-weight: 800; }
.rt-pin.pin-partial::after { content: "◐"; color: var(--high); }
.rt-pin.pin-rejected { opacity: 0.45; border-style: dashed; }
.rt-pin.pin-rejected span { text-decoration: line-through; }

.rail-clearance_counsel .rail-ratings_board .rail-safety_underwriter .rail-territory_censor 
.feeds-strip .studio-head { cursor: pointer; user-select: none; }
.feeds-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.feeds-title { flex: none; }
.feeds-chips { display: flex; gap: 8px 10px; flex-wrap: wrap; margin-left: auto; }
.fc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 980px; padding: 3px 11px; background: var(--surface); transition: border-color 0.3s ease; }
.fc b { font-weight: 600; }
.fc .fc-count { color: var(--ink-2); }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fc-clearance_counsel .fc-dot { background: var(--desk-clearance); }
.fc-ratings_board .fc-dot { background: var(--desk-ratings); }
.fc-safety_underwriter .fc-dot { background: var(--desk-safety); }
.fc-territory_censor .fc-dot { background: var(--desk-territory); }
.fc-working { border-color: var(--line-2); }
.fc-done { opacity: 0.85; }
.feeds-head .studio-toggle { margin: 0; flex: none; }
#feeds-body { padding: 0 16px 16px; }
#feeds-body .panel { margin-top: 14px; }
.feeds-strip { margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  .rt-dot, .rt-ripple { animation: none !important; }
  .scene-strip { scroll-behavior: auto; }
}

/* ---------- legal pages + report delete zone + score caveat ---------- */
.legal { max-width: 780px; }
.legal-card { padding: 30px 34px; }
.legal-card h2 { font-size: 21px; margin: 26px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.legal-card p b { color: var(--ink); }
.legal-card .plain-list li { font-size: 16.5px; line-height: 1.6; }
.score-caveat { flex-basis: 100%; margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--fyi); }
.delete-zone { margin-top: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-color: rgba(224, 52, 42, 0.25); }
.delete-zone p { margin: 0; font-size: 15.5px; color: var(--ink-2); flex: 1; min-width: 240px; }
.btn-danger { background: none; border: 1px solid var(--blocker); color: var(--blocker); border-radius: 980px; padding: 9px 20px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: var(--blocker); color: #fff; }
.btn-danger:disabled { opacity: 0.5; cursor: default; }
.delete-err { color: var(--blocker); font-size: 15px; flex-basis: 100%; }

.btn-google { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.btn-google svg { flex: none; }

/* ---------- home showcase carousel: a dark "screen" the cream UI sits inside,
   so the screenshot reads as an image of the product, not more page. ---------- */

/* ---------- what-if rating simulator ---------- */
.cuts-hint { margin: 4px 0 10px; font-size: 14.5px; color: var(--fyi); }
.cuts-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cut-item { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-2); cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.15s ease, background 0.15s ease; }
.cut-item:hover { border-color: var(--green); }
.cut-item:has(input:checked) { background: rgba(29, 63, 107, 0.06); border-color: var(--green); }
.cut-item:has(input:checked) span { text-decoration: line-through; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; }
.cut-item input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.whatif-out { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.wi-loading { margin: 0; font-size: 15px; color: var(--ink-2); animation: wi-pulse 1.2s ease-in-out infinite; }
@keyframes wi-pulse { 50% { opacity: 0.45; } }
.wi-err { margin: 0; font-size: 15px; color: var(--blocker); }
.wi-head { display: flex; align-items: center; gap: 14px; }
.rating-badge.sm { font-size: 20px; padding: 6px 14px; flex: none; }
.wi-verdict { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 550; }
.wi-rationale { margin: 10px 0 0; font-size: 14.5px; font-style: italic; color: var(--fyi); }
.wi-comps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wi-comps-label { flex-basis: 100%; font-size: 13px; font-style: normal; color: var(--ink-3); }
.wi-comp { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 980px; padding: 3px 12px 3px 4px; }
.wi-r { font-size: 12px; font-weight: 800; color: #fff; border-radius: 980px; padding: 2px 8px; }
.wi-r.r-R, .wi-r.r-NC-17 { background: var(--blocker); }
.wi-r.r-PG-13 { background: var(--high); }
.wi-r.r-PG, .wi-r.r-G { background: var(--go); }
.pred-box.wi-proj { border: 1.5px dashed var(--gold, #b08a00); border-radius: 14px; padding: 8px 14px; }

/* ---------- the Greenlight One-Sheet: dark movie-poster page ---------- */
.os-body { background: #070e1c; min-height: 100vh; margin: 0; padding: 28px 16px 60px; font-family: var(--sans); }
.os-toolbar { max-width: 860px; margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 12px; }
.os-page { max-width: 860px; margin: 0 auto; background: #0c1524; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 24px; padding: 44px 50px 30px; color: #e9e6dc; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.os-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.os-brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif, Georgia); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; color: #f5f5f7; }
.os-dot { width: 11px; height: 11px; border-radius: 50%; background: #e8b64c; box-shadow: 0 0 14px rgba(232, 182, 76, 0.7); }
.os-kind { font-size: 13.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: #e3b341; }
.os-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 30px; }
.os-title { font-family: var(--serif, Georgia); font-size: 44px; font-weight: 650; margin: 0 0 10px; color: #f5f5f7; letter-spacing: 0.01em; }
.os-verdict { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.os-verdict.v-bad { color: #ff6b5e; }
.os-verdict.v-mid { color: #e3b341; }
.os-verdict.v-good { color: #e8b64c; }
.os-facts { margin: 0 0 8px; font-size: 15px; color: rgba(233, 230, 220, 0.6); }
.os-cost { margin: 0; font-size: 16px; color: rgba(233, 230, 220, 0.8); }
.os-cost b { color: #f5f5f7; font-size: 17px; }
.os-score { flex: none; background: transparent; }
.os-score b { color: #f5f5f7; }
.os-desks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.os-desk { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.os-desk b { font-size: 26px; font-weight: 750; color: #f5f5f7; font-variant-numeric: tabular-nums; }
.os-desk span { font-size: 13.5px; color: rgba(233, 230, 220, 0.55); }
.od-clearance { box-shadow: inset 0 3px 0 #818cf8; }
.od-ratings { box-shadow: inset 0 3px 0 #c084fc; }
.od-safety { box-shadow: inset 0 3px 0 #fbbf24; }
.od-territory { box-shadow: inset 0 3px 0 #38bdf8; }
.os-label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #e3b341; margin-bottom: 12px; }
.os-flags { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.os-flag { display: flex; gap: 16px; align-items: flex-start; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px; padding: 13px 16px; }
.os-sev { flex: none; margin-top: 2px; }
.os-flag-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.os-flag-cat { font-weight: 650; font-size: 16px; color: #f5f5f7; }
.os-flag-txt { font-size: 14px; line-height: 1.5; color: rgba(233, 230, 220, 0.65); }
.os-flag-right { flex: none; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.os-flag-right b { font-size: 15.5px; color: #f5f5f7; white-space: nowrap; }
.os-flag-right span { font-size: 13px; color: rgba(233, 230, 220, 0.55); white-space: nowrap; }
.os-rating { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px; padding: 14px 18px; margin-bottom: 26px; }
.os-rating-txt { display: flex; flex-direction: column; gap: 4px; }
.os-rating-line { font-size: 15.5px; font-weight: 600; color: #f5f5f7; }
.os-rating-why { font-size: 14px; color: rgba(233, 230, 220, 0.6); }
.os-foot { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; font-size: 13px; color: rgba(233, 230, 220, 0.5); flex-wrap: wrap; }
@media print {
  .no-print { display: none !important; }
  .os-body { background: #070e1c !important; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .os-page { box-shadow: none; border-radius: 0; max-width: none; min-height: 100vh; }
  @page { size: letter; margin: 0; }
}
@media (max-width: 700px) {
  .os-page { padding: 26px 22px; }
  .os-hero { flex-direction: column-reverse; align-items: flex-start; }
  .os-title { font-size: 32px; }
  .os-desks { grid-template-columns: repeat(2, 1fr); }
}
.os-score::before { background: conic-gradient(var(--ring, #e8b64c) calc(var(--scorepct, 0) * 1%), rgba(255, 255, 255, 0.12) 0); }
.os-score b { color: #f5f5f7 !important; }
.os-score .of { color: rgba(233, 230, 220, 0.5); }

.wi-loadwrap { display: flex; flex-direction: column; gap: 9px; }
.wi-bar { height: 6px; border-radius: 980px; background: var(--band); overflow: hidden; }
.wi-fill { height: 100%; width: 4%; border-radius: 980px; background: linear-gradient(90deg, var(--green), #e8b64c); transition: width 0.25s ease; }
.wi-note { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--fyi); border-left: 3px solid var(--line-2); padding-left: 12px; }

/* ---------- report sticky navigator + fix columns ---------- */
/* one row, always: chips shrink first, then the pill scrolls horizontally
   (scrollbar hidden) — a wrapped second row read as clutter */
.report-nav { position: sticky; top: 66px; z-index: 30; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 980px; padding: 8px 14px; margin: 18px 0 26px; }
.report-nav::-webkit-scrollbar { display: none; }
.rn-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fyi); margin-right: 2px; white-space: nowrap; flex: none; }
.rn-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; border-radius: 980px; padding: 5px 11px; transition: background 0.15s ease, color 0.15s ease; white-space: nowrap; flex: none; }
.rn-chip:hover { background: var(--band); color: var(--ink); }
.rn-chip.active { background: var(--green); color: #fff; }
.rn-chip b { font-size: 13px; font-weight: 750; background: rgba(0, 0, 0, 0.08); border-radius: 980px; padding: 1px 7px; }
.rn-chip.active b { background: rgba(255, 255, 255, 0.22); }
.tally-link { cursor: pointer; border-radius: 12px; transition: background 0.15s ease; }
.tally-link:hover { background: var(--band); }
/* every nav-chip target — Informational and Reviewed & cleared were missing, so
   their titles scrolled under the sticky pill; 176px clears header + a wrapped
   two-row nav */
#sec-cost, #sec-rating, #sec-findings, #sec-informational, #sec-rejected,
#sec-questions, #sec-cleared, #sec-adjudication { scroll-margin-top: 140px; }
.fix-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fix-cols .diff-box { margin-bottom: 0; }
@media (max-width: 760px) { .fix-cols { grid-template-columns: 1fr; } .report-nav { border-radius: 16px; top: 58px; } }

.cut-suggested { border-style: dashed; border-color: var(--gold); background: var(--gold-tint); }
.cut-suggested:has(input:checked) { border-style: solid; }
.cut-tag { flex: none; font-size: 12px; font-style: normal; font-weight: 650; color: var(--gold); align-self: center; }
.wi-suggest { margin-top: 14px; }
.wi-suggest-btn { font-size: 14.5px; }

/* ---------- the Clearance Binder: white legal paper ---------- */
.bd-body { background: #3d3a33; min-height: 100vh; margin: 0; padding: 26px 16px 60px; font-family: var(--sans); }
.bd-toolbar { max-width: 1080px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bd-toolbar .btn-secondary { border-color: rgba(255, 255, 255, 0.35); color: #f5f5f7; }
.bd-toolbar .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.bd-actions { display: flex; gap: 10px; }
.bd-page { max-width: 1080px; margin: 0 auto; background: #fff; color: #1a1712; border-radius: 6px; padding: 44px 46px 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.bd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2.5px solid #1a1712; padding-bottom: 16px; margin-bottom: 18px; }
.bd-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8271; }
.bd-title { font-family: var(--display); font-size: 34px; font-weight: 650; margin: 0 0 6px; }
.bd-sub { margin: 0; font-size: 13.5px; color: #55503f; }
.bd-brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: #1a1712; white-space: nowrap; }
.bd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.bd-draft { margin: 8px 0 0; font-size: 12px; color: #8a8271; }
.bd-top { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #e5e0d2; border-left: 3px solid var(--high); border-radius: 4px; }
.bd-top-title { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #6d6653; }
.bd-top-list { margin: 0; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.7; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; table-layout: fixed; }
.bd-table th, .bd-table td { overflow-wrap: break-word; }
/* Widths keyed by column identity, not position — empty columns are dropped
   at render time, so nth-child would drift. The remedy column takes the rest. */
th.bd-col-scene { width: 8%; }
th.bd-col-page { width: 4%; }
th.bd-col-scene-heading { width: 10%; }
th.bd-col-item { width: 11%; }
th.bd-col-category { width: 9.5%; }
th.bd-col-severity { width: 7%; }
th.bd-col-clearance-status { width: 9%; }
th.bd-col-est-cost { width: 7.5%; }
th.bd-col-sources { width: 11.5%; }
th.bd-col-finding { width: 5.5%; }
td.bd-col-scene { overflow-wrap: normal; }  /* wrap between ranges, never inside S001-S005 */
td.bd-col-sources { white-space: pre-line; font-size: 11px; }  /* one source per line */
td.bd-col-remedy { white-space: pre-line; }  /* finding, then remedy, as separate paragraphs */
td.bd-col-finding { overflow-wrap: normal; }
.bd-table th { text-align: left; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #6d6653; border-bottom: 1.5px solid #1a1712; padding: 6px 8px; overflow-wrap: normal; word-break: normal; hyphens: none; }
.bd-table td { border-bottom: 1px solid #e5e0d2; padding: 7px 8px; vertical-align: top; hyphens: auto; }
.bd-scene-start td { border-top: 1.5px solid #c9c2ac; }
.bd-clear td { color: #8a8271; }
.bd-sevcell { font-weight: 800; font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
.bd-sevcell.sev-BLOCKER { color: var(--blocker); }
.bd-sevcell.sev-HIGH { color: var(--high); }
.bd-sevcell.sev-MEDIUM { color: var(--medium); }
.bd-sevcell.sev-LOW { color: var(--low); }
.bd-sevcell.sev-FYI { color: var(--fyi); }
tr.bd-sev-BLOCKER { background: rgba(224, 52, 42, 0.045); }
.chip-partial { background: transparent; border: 1px solid var(--line-2, #c9c2ac); color: var(--ink-2); font-weight: 600; }
.flag-ref-gone { color: var(--ink-dim, #8a8271); font-style: italic; }
.bd-sec-title { margin: 26px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #6d6653; border-top: 1.5px solid #1a1712; padding-top: 12px; }
.bd-back-list { margin: 0; padding-left: 0; list-style: none; font-size: 12.5px; line-height: 1.65; }
.bd-back-list .who { font-weight: 700; color: #55503f; margin-right: 7px; }
.bd-back-line { margin: 0; font-size: 12.5px; }
.bd-disclaimer { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #e5e0d2; font-size: 11px; line-height: 1.55; color: #8a8271; }
@media print {
  .bd-body { background: #fff; padding: 0; }
  .bd-page { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .bd-table th { position: static; }
  .bd-table tr { break-inside: avoid; }
  @page { size: letter landscape; margin: 12mm; }
}
@media (max-width: 800px) { .bd-page { padding: 22px 14px; overflow-x: auto; } .bd-table { min-width: 900px; } }

/* ---------- accepted fixes + revised-script export bar ---------- */
.fix-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.accept-btn { font-size: 14px; padding: 7px 16px; }
.accept-btn.accepted { background: var(--green); color: #fff; border-color: var(--green); }
.fix-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); cursor: pointer; user-select: none; }
.fix-pick input { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.export-bar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; background: #0c1524; color: #f5f5f7; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 980px; padding: 12px 14px 12px 24px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4); max-width: 94vw; flex-wrap: wrap; }
.eb-label { font-size: 15px; font-weight: 550; }
.eb-btn { font-size: 14.5px; padding: 9px 18px; }
.export-bar .btn-secondary { border-color: rgba(255, 255, 255, 0.3); color: #f5f5f7; }
.export-bar .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- mission control: script left, agent network right ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .mission { grid-template-columns: 1fr; } }
.graph-wrap { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.agent-graph { flex: 1; min-height: 420px; padding: 10px 6px 14px; }
.agent-graph svg { width: 100%; height: 100%; display: block; }
.g-edge { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.3s ease, stroke-width 0.3s ease; }
.g-edge.g-hot { stroke: var(--green); stroke-width: 2.5; }
.g-edge.g-hot.g-bad { stroke: var(--blocker); }
.g-dot { fill: var(--green); }
.g-dot-bad { fill: var(--blocker); }
.g-node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.3s ease, filter 0.3s ease; }
.g-label { text-anchor: middle; font-family: var(--sans); font-size: 14.5px; font-weight: 650; fill: var(--ink); }
.g-sub { text-anchor: middle; font-family: var(--sans); font-size: 11.5px; fill: var(--fyi); font-variant-numeric: tabular-nums; }
.g-node.g-waiting rect { stroke-dasharray: 4 4; }
.g-node.g-waiting .g-label { fill: var(--ink-3); }
.g-node.g-working rect { stroke-width: 2.5; }
.gn-script.g-working rect, .gn-script.g-done rect { stroke: var(--gold); }
.gn-triage.g-working rect { stroke: var(--green); }
.gn-clearance.g-working rect { stroke: var(--desk-clearance); }
.gn-ratings.g-working rect { stroke: var(--desk-ratings); }
.gn-safety.g-working rect { stroke: var(--desk-safety); }
.gn-territory.g-working rect { stroke: var(--desk-territory); }
.gn-verifier.g-working rect { stroke: var(--blocker); }
.gn-adj.g-working rect { stroke: var(--gold); }
.gn-data rect { fill: var(--band); }
.g-node.g-working rect { filter: drop-shadow(0 0 6px rgba(29, 63, 107, 0.25)); }
.g-node.g-done rect { stroke: var(--green); }
.g-node.g-done .g-sub { fill: var(--green-deep); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .g-dot { display: none; } }

/* ---------- live flag references + addressed state ---------- */
.flag-ref { display: inline-block; border: 0; background: var(--green-tint); color: var(--green-deep); font: inherit; font-size: 0.88em; font-weight: 700; border-radius: 980px; padding: 0 9px; cursor: pointer; vertical-align: baseline; }
.flag-ref:hover { background: var(--green); color: #fff; }
.flag-ref.ref-addressed { background: var(--gold-tint); color: var(--gold); text-decoration: line-through; }
.flag.addressed { border-left-color: var(--go) !important; }
.addr-badge { font-size: 12.5px; font-weight: 700; color: var(--go-deep); background: var(--go-tint); border-radius: 980px; padding: 3px 12px; }
.est-remaining { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--go-deep); border-top: 1px dashed var(--line-2); padding-top: 12px; }

/* ---------- First Look card ---------- */
.firstlook { padding: 18px 22px; margin-bottom: 16px; border-top: 3px solid var(--gold); }
.fl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fl-head .label { font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.fl-why { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 62ch; }
.fl-unverified { flex: none; font-size: 12.5px; font-weight: 650; color: var(--gold); background: var(--gold-tint); border-radius: 980px; padding: 3px 12px; }
.fl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fl-stat { border: 1px solid var(--line); background: var(--band); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 11px; }
.fl-stat-ico { font-size: 21px; flex: none; }
.fl-stat-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fl-stat b { font-family: var(--display); font-size: 22px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.fl-stat span { font-size: 12px; color: var(--ink-3); }
.fl-stat.fl-warn { border-color: var(--high); background: rgba(233, 124, 0, 0.06); }
.fl-stat.fl-warn b { color: var(--high); }
.fl-pending { display: flex; align-items: center; gap: 12px; margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.fl-spin { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--gold-tint); border-top-color: var(--gold); animation: fl-rot 0.9s linear infinite; }
@keyframes fl-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fl-spin { animation: none; } }
.fl-lists { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: baseline; margin-top: 2px; }
.fl-list { display: contents; }
.fl-list b { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.fl-list b::after { content: ""; }
.fl-list-items { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.fl-list-items span { font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 980px; padding: 2.5px 11px; }
.fl-elem { background: var(--gold-tint) !important; border-color: var(--gold) !important; color: var(--ink) !important; }
@media (max-width: 640px) { .fl-lists { grid-template-columns: 1fr; gap: 4px; } }
.fl-impressions { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 14px; }
.fl-logline { margin: 0 0 6px; font-family: var(--display); font-size: 18px; font-style: italic; }
.fl-genre { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--green-deep); }
.fl-obs { margin: 0 0 10px; padding-left: 20px; }
.fl-obs li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 3px; }
.fl-comps-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-right: 6px; align-self: center; }

/* ---------- modern upload dialog ---------- */
.um-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(7, 14, 28, 0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.um-modal { width: min(560px, 96vw); background: var(--surface); border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); overflow: hidden; }
.um-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 6px; }
.um-head h3 { margin: 0; font-size: 21px; }
.um-close { border: 0; background: none; font-size: 17px; color: var(--ink-3); cursor: pointer; padding: 6px; }
.um-close:hover { color: var(--ink); }
.um-zone { margin: 14px 24px; border: 2px dashed var(--line-2); border-radius: 16px; padding: 30px 22px; text-align: center; transition: border-color 0.15s ease, background 0.15s ease; }
.um-zone.um-drag { border-color: var(--green); background: var(--green-tint); }
.um-icon { font-size: 34px; display: block; margin-bottom: 8px; }
.um-cta { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.um-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-3); }
.um-picked .um-file { display: flex; align-items: center; gap: 14px; text-align: left; }
.um-file-icon { font-size: 30px; }
.um-file-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.um-file-meta b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-file-meta span { font-size: 13px; color: var(--ink-3); }
.um-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 24px 22px; flex-wrap: wrap; }
.um-fine { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.um-go:disabled { opacity: 0.45; cursor: default; }

/* ---------- confirm dialog ---------- */
.cd-modal { padding: 26px 28px; width: min(460px, 94vw); }
.cd-title { margin: 0 0 8px; font-size: 20px; }
.cd-msg { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cd-row { display: flex; justify-content: flex-end; gap: 10px; }
.btn-danger-solid { background: var(--blocker); color: #fff; border: 0; border-radius: 980px; padding: 10px 22px; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.btn-danger-solid:hover { background: #c22a21; }

.notify-chip { margin-top: 4px; align-self: flex-start; border: 1px solid var(--line-2); background: var(--band); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 550; border-radius: 980px; padding: 6px 16px; cursor: pointer; }
.notify-chip:hover:not(:disabled) { border-color: var(--gold); color: var(--ink); }
.notify-chip:disabled { color: var(--go-deep); cursor: default; }

.run-degraded-note { border-left: 4px solid var(--warn, #e97c00); padding: 14px 18px; margin-bottom: 18px; }
.run-degraded-note p { margin: 6px 0 0; color: var(--muted, #6e6e73); font-size: 13.5px; }
.run-error-banner { border-color: var(--blocker); background: rgba(224, 52, 42, 0.05); padding: 18px 22px; margin-bottom: 18px; }
.run-error-banner b { color: var(--blocker); font-size: 16.5px; }
.run-error-banner p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- scene hover preview ---------- */
.scene-pop { position: absolute; z-index: 70; width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22); overflow: hidden; }
.sp-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-head b { font-size: 12.5px; font-weight: 800; color: var(--green-deep); }
.sp-head span { font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-scene { cursor: pointer; }
.sp-text { margin: 0; padding: 14px 18px; max-height: 44vh; overflow-y: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); background: var(--surface); }
.sp-open { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--band); color: var(--green-deep); font: inherit; font-size: 13px; font-weight: 650; padding: 9px 16px; text-align: left; cursor: pointer; }
.sp-open:hover { background: var(--green-tint); }
@media (hover: none) { .scene-pop { display: none !important; } }

.lang-caveat { margin-top: 6px; border: 1px solid var(--high); background: rgba(233, 124, 0, 0.07); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lang-caveat b { color: var(--high); }

.um-context { padding: 0 22px 4px; }
.um-context-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #6e6e73); margin-bottom: 6px; }
.um-context-input { width: 100%; resize: vertical; min-height: 44px; border: 1px solid var(--line, #d9d2bf); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 13px; background: var(--surface, #fffdf6); color: inherit; }

.flags-informational { margin: 14px 0 6px; border: 1px dashed var(--line, #d9d2bf); border-radius: 12px; padding: 4px 14px; }
.flags-informational > summary { cursor: pointer; padding: 10px 2px; font-size: 13.5px; font-weight: 650; color: var(--muted, #6e6e73); }
.flags-informational[open] > summary { border-bottom: 1px solid var(--line, #d9d2bf); margin-bottom: 10px; }

/* header theme toggle */
.theme-toggle { background: none; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: #f5f5f7; line-height: 1; }
.theme-toggle:hover { border-color: rgba(255, 255, 255, 0.6); }

.fl-collapse { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.fl-collapse:hover { border-color: var(--ink-3); }
.firstlook.fl-min .fl-stats, .firstlook.fl-min .fl-lists, .firstlook.fl-min .fl-pending, .firstlook.fl-min .fl-impressions, .firstlook.fl-min .fl-why { display: none; }

/* the wordmark: SCRIPT in ink, RISK in red — the product promise in one glance */
.brand-script { color: var(--go); }
.brand-risk { color: var(--blocker); }
.site-header .brand-script, .os-toolbar .brand-script { color: #45c986; }
.site-header .brand-risk, .os-toolbar .brand-risk { color: #ff5f54; }

/* the full-loop workflow strip */
.flow-strip { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; }
.flow-step { flex: 1 1 0; min-width: 138px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; }
.flow-step h3 { margin: 8px 0 5px; font-size: 14.5px; }
.flow-step p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.flow-num { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-size: 12.5px; font-weight: 800; }
.flow-arrow { align-self: center; color: var(--ink-3); font-size: 15px; flex: 0 0 auto; }
@media (max-width: 900px) { .flow-strip { flex-wrap: nowrap; } }

/* the desks page */
.desk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .desk-grid { grid-template-columns: 1fr; } }
.desk-card { border-top: 3px solid var(--line-2); padding: 20px 22px; }
.desk-card.dk-clearance { border-top-color: var(--desk-clearance); }
.desk-card.dk-ratings { border-top-color: var(--desk-ratings); }
.desk-card.dk-safety { border-top-color: var(--desk-safety); }
.desk-card.dk-territory { border-top-color: var(--desk-territory); }
.desk-card h2 { margin: 0 0 4px; font-size: 21px; }
.dk-scope { margin: 0 0 10px; font-weight: 650; color: var(--ink-2); font-size: 14px; }
.desk-card { display: flex; flex-direction: column; border-radius: 20px; padding: 24px 26px; }
.desk-card.dk-clearance { background: linear-gradient(180deg, color-mix(in srgb, var(--desk-clearance) 7%, var(--surface)), var(--surface) 45%); }
.desk-card.dk-ratings { background: linear-gradient(180deg, color-mix(in srgb, var(--desk-ratings) 7%, var(--surface)), var(--surface) 45%); }
.desk-card.dk-safety { background: linear-gradient(180deg, color-mix(in srgb, var(--desk-safety) 8%, var(--surface)), var(--surface) 45%); }
.desk-card.dk-territory { background: linear-gradient(180deg, color-mix(in srgb, var(--desk-territory) 7%, var(--surface)), var(--surface) 45%); }
.dk-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px; }
.dk-clearance .dk-mark { color: var(--desk-clearance); background: color-mix(in srgb, var(--desk-clearance) 16%, transparent); }
.dk-ratings .dk-mark { color: var(--desk-ratings); background: color-mix(in srgb, var(--desk-ratings) 16%, transparent); }
.dk-safety .dk-mark { color: var(--desk-safety); background: color-mix(in srgb, var(--desk-safety) 18%, transparent); }
.dk-territory .dk-mark { color: var(--desk-territory); background: color-mix(in srgb, var(--desk-territory) 16%, transparent); }
.dk-list { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.dk-list li { position: relative; font-size: 14.5px; line-height: 1.55; margin-bottom: 9px; padding-left: 18px; color: var(--ink-2); }
.dk-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dk-clearance .dk-list li::before { background: var(--desk-clearance); }
.dk-ratings .dk-list li::before { background: var(--desk-ratings); }
.dk-safety .dk-list li::before { background: var(--desk-safety); }
.dk-territory .dk-list li::before { background: var(--desk-territory); }
.dk-list li b { color: var(--ink); }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.dk-chips span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--band); border-radius: 980px; padding: 3px 10px; }
.arch-diagram { padding: 22px; }
.arch-row { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.arch-node { flex: 1 1 0; min-width: 128px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 12px; font-weight: 700; font-size: 13.5px; background: var(--band); }
.arch-node span { display: block; margin-top: 5px; font-weight: 500; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.arch-node.an-desks { border-color: var(--desk-clearance); }
.arch-node.an-verify { border-color: var(--blocker); }
.arch-node.an-report { border-color: var(--gold); }
.arch-arrow { align-self: center; color: var(--ink-3); flex: 0 0 auto; }
.arch-rails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 860px) { .arch-rails { grid-template-columns: 1fr; } }
.arch-rail { border: 1px dashed var(--line-2); border-radius: 12px; padding: 11px 13px; font-size: 12.5px; }
.arch-rail b { display: block; margin-bottom: 3px; font-size: 12.5px; }
.arch-rail span { color: var(--ink-3); font-size: 11.5px; line-height: 1.45; }

/* writer start card: hero-ctas is centered for the hero — inside a card it aligns left */
.wr-start .hero-ctas { justify-content: flex-start; }

/* auth dropdown */
.auth-menu-wrap { position: relative; }
.auth-trigger { display: flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 3px; border-radius: 999px; }
.auth-trigger:hover { background: rgba(255, 255, 255, 0.08); }
.auth-pic-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green-deep); font-weight: 800; }
.auth-caret { color: rgba(245, 245, 247, 0.6); font-size: 11px; }
.auth-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 90; }
.auth-menu-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.auth-menu-who b { display: block; font-size: 14px; color: var(--ink); }
.auth-menu-who span { font-size: 12px; color: var(--ink-3); word-break: break-all; }
.auth-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.auth-menu-item:hover { background: var(--band); text-decoration: none; }
.auth-menu-out { color: var(--blocker); }

/* sign-in page */
.signin-wrap { display: flex; justify-content: center; padding: 40px 0 20px; }
.signin-card { max-width: 460px; width: 100%; padding: 34px 36px; text-align: center; }
.signin-card .brand { justify-content: center; display: inline-flex; margin-bottom: 14px; }
.signin-card h1 { margin: 6px 0 6px; }
.signin-card .lede { font-size: 15px; }
.btn-google-big { display: block; margin: 20px auto 8px; max-width: 320px; }
.signin-notes { list-style: none; margin: 22px 0 6px; padding: 0; text-align: left; }
.signin-notes li { font-size: 13px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.signin-notes li:last-child { border-bottom: 0; }
.signin-fine { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }

/* case-card stat line: segments separated, never run together */
.rc-stats { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 3px; font-size: 13.5px; color: var(--ink-2); margin: 10px 0 4px; }
.rc-stats > span { white-space: nowrap; }
.rc-stats > span + span::before { content: "\00b7\00a0"; color: var(--ink-3); margin-right: 2px; }

/* ---------- security page graphics ---------- */
.sec-diagram { padding: 26px 22px 16px; margin-bottom: 22px; overflow-x: auto; }
.sec-diagram svg { width: 100%; max-width: 860px; height: auto; display: block; margin: 0 auto; font-family: inherit; }
.sd-title { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; fill: var(--ink-3, #8a8271); }
.sd-label { font-size: 13.5px; fill: var(--ink-2); }
.sd-hint { font-size: 12px; fill: var(--ink-3, #8a8271); }
.sd-doc rect { fill: var(--gold-tint, #2b281a); stroke: var(--gold); stroke-width: 1.6; }
.sd-doc line { stroke: var(--gold); stroke-width: 1.4; opacity: 0.75; }
.sd-server rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.6; }
.sd-server circle { fill: var(--green); }
.sd-server line { stroke: var(--line-2); stroke-width: 1.6; }
.sd-pipe-top { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.sd-flow { stroke: var(--green); stroke-width: 2.4; fill: none; stroke-dasharray: 7 9; animation: sd-flow 1.6s linear infinite; }
@keyframes sd-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .sd-flow { animation: none; } }
.sd-divider { stroke: var(--line); stroke-width: 1; }
.sd-ring { fill: none; stroke-width: 1.8; }
.sd-ring-gcs { stroke: var(--desk-territory, #38bdf8); stroke-dasharray: 5 6; opacity: 0.8; }
.sd-ring-fernet { stroke: var(--green); }
.sd-ring-label { font-size: 12px; fill: var(--ink-3, #8a8271); }
.sd-fernet-label { fill: var(--green-deep, var(--ink-2)); }
.sd-key circle, .sd-key path { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
.sd-caption { margin: 14px auto 4px; max-width: 70ch; text-align: center; font-size: 14px; color: var(--ink-2); }
.sec-ico { width: 21px; height: 21px; margin-right: 10px; vertical-align: -3px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sec-hl { color: var(--green-deep, var(--green)); font-weight: 650; }
.sec-show { color: var(--ink-2); margin-bottom: 8px; }
.sec-evidence { background: var(--surface-2, rgba(0,0,0,0.25)); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; color: var(--ink-2); margin: 10px 0 14px; }
.sec-ev-label { color: var(--ink-3, #8a8271); }
.sec-ev-var { color: var(--gold); }
.sec-ev-del { color: var(--high, #e97c00); }
.sec-ev-ok { color: var(--green-deep, var(--green)); }
.legal-card p { line-height: 1.65; }
.rev-card { padding: 18px 22px; margin-bottom: 18px; border-left: 3px solid var(--green); }
.rev-summary { margin: 0 0 8px; font-size: 16.5px; }
.rev-new { color: var(--high, #e97c00); }
.rev-unverified { color: var(--medium); }
.rev-note { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3, #8a8271); font-style: italic; }
.rev-list { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 14px; line-height: 1.75; }
.rev-item-new b { color: var(--high, #e97c00); }
.rev-item-unverified b { color: var(--medium); }

/* Cleared list grouped by entity: desk determinations nest flat under the name */
.plain-list > li > .cleared-desks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 2px 4px; padding: 0; list-style: none; }
.cleared-desks > li { background: none; border: none; border-radius: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); font-size: 15px; }

/* Desk-collapse disclosure: silence must read as failure, not clearance */
.desk-incomplete-banner { margin-bottom: 14px; font-size: 15px; color: var(--ink); }

/* Conformal set as the primary rating claim */
.pred-set-badges { display: flex; gap: 6px; align-items: center; }
.pred-set-badges .set-alt { opacity: 0.75; }
.pred-set-note { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); max-width: 300px; text-align: center; line-height: 1.5; }

/* Methodology data tables */
.sec-table { border-collapse: collapse; font-size: 14px; margin: 10px 0 14px; min-width: 420px; }
.sec-table th, .sec-table td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; color: var(--ink-2); }
.sec-table th { font-weight: 650; color: var(--ink); background: var(--surface-2, rgba(0,0,0,0.06)); }

/* Admin settings rows */
.adm-setting { display: flex; align-items: center; gap: 14px; padding: 14px 22px; margin-bottom: 14px; }
.adm-setting-label { font-weight: 650; font-size: 15px; }
.adm-setting-note { font-size: 13.5px; color: var(--ink-2); }
.adm-setting-note.adm-paused { color: var(--blocker); font-weight: 650; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; cursor: pointer; border-radius: 24px; background: var(--line); transition: background 0.15s; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.switch input:checked + .slider { background: var(--blocker); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: 0.5; cursor: default; }

/* open points routed onto their finding (review B12) + descriptors line */
.flag-followups { margin: 6px 0 4px; }
.flag-followup { margin: 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-left: 3px solid var(--line-2, #c9c2ac); padding-left: 10px; }
.pred-descriptors { color: var(--ink-3); }
