:root {
  --ink: #11140f;
  --ink-2: #1a1e17;
  --cream: #f3f0e7;
  --paper: #fbfaf5;
  --line: #d5d3c8;
  --muted: #65695f;
  --signal: #d8ff43;
  --signal-deep: #9ebe19;
  --aqua: #9ef2d3;
  --orange: #ff8f50;
  --danger: #b73a2f;
  --shadow: 0 18px 55px rgba(24, 27, 21, 0.1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid #1682ff; outline-offset: 3px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  color: #f8f7ef;
  background: rgba(17, 20, 15, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--signal);
  border-radius: 7px 2px 7px 2px;
  letter-spacing: -0.04em;
}
.product-nav { display: flex; gap: 4px; }
.nav-tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #afb4a9;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.nav-tab:hover, .nav-tab.is-active { color: #fff; background: #2c3128; }
.account-area { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.account-copy { color: #aeb4a7; font-size: 13px; }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.button-primary { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.button-primary:hover:not(:disabled) { background: #e4ff7d; }
.button-quiet { color: inherit; background: transparent; border-color: currentColor; }
.topbar .button-quiet { color: #f5f5ed; border-color: #5b6255; }
.button-large { min-height: 52px; padding: 13px 20px; }
.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
  color: #f7f7ef;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  padding: clamp(64px, 8vw, 120px) clamp(22px, 7vw, 112px);
  color: #f7f7ef;
  background:
    radial-gradient(circle at 81% 22%, rgba(216, 255, 67, 0.12), transparent 27%),
    linear-gradient(145deg, #11140f 10%, #1c2119 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to right, transparent, #000 50%, #000);
}
.hero-copy, .model-card { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 67, 0.12);
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 6.5vw, 98px);
  line-height: 0.94;
  letter-spacing: -0.067em;
  font-weight: 850;
}
.hero h1 em { color: var(--signal); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 660px; margin: 30px 0 0; color: #c6cbbf; font-size: clamp(17px, 1.65vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.model-card {
  align-self: end;
  padding: 24px;
  background: rgba(5, 8, 4, 0.62);
  border: 1px solid #50574a;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.model-card-head { display: flex; justify-content: space-between; color: #aeb5a8; font: 800 11px/1 ui-monospace, monospace; letter-spacing: .13em; }
.status-chip { color: var(--signal); }
.signal-plot { height: 150px; display: flex; align-items: end; gap: 7px; margin: 34px 0 24px; border-bottom: 1px solid #4b5245; }
.signal-plot i { flex: 1; height: var(--h); min-height: 8px; background: linear-gradient(to top, #5b6b22, var(--signal)); border-radius: 4px 4px 0 0; }
.model-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-stats div { padding-right: 8px; border-right: 1px solid #434a3e; }
.model-stats div:last-child { border: 0; }
.model-stats dt { color: #8f9689; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.model-stats dd { margin: 5px 0 0; font-weight: 800; font-size: 14px; }
.model-note { margin: 22px 0 0; color: #92998d; font-size: 12px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-strip span { padding: 18px clamp(12px, 3vw, 46px); border-right: 1px solid var(--line); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.trust-strip span:last-child { border: 0; }

.app-view { padding: clamp(68px, 8vw, 120px) clamp(18px, 6vw, 96px); }
.section-heading { max-width: 1450px; margin: 0 auto 42px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; }

.workbench-layout { max-width: 1450px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.scenario-form { padding: clamp(22px, 4vw, 50px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-section-head { display: flex; gap: 18px; align-items: start; margin: 0 0 24px; padding-top: 36px; border-top: 1px solid var(--line); }
.form-section-head:first-child { padding-top: 0; border-top: 0; }
.form-section-head > span { color: var(--signal-deep); font: 900 12px/1 ui-monospace, monospace; }
.form-section-head h3 { margin: -6px 0 2px; font-size: 24px; letter-spacing: -.025em; }
.form-section-head p { margin: 0; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 38px; }
.controls-grid { grid-template-columns: .7fr .7fr 1.6fr; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: span 2; }
.controls-grid .field-wide { grid-column: auto; }
.field > span:first-child, .intervention-panel label { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.field b { color: #8d2b22; }
.field input, .field textarea, .field select, .intervention-panel textarea {
  width: 100%;
  border: 1px solid #bbbdb3;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field textarea, .intervention-panel textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .intervention-panel textarea:focus { border-color: #181d14; box-shadow: 0 0 0 3px rgba(158, 190, 25, .22); }
.field small { color: var(--muted); font-size: 12px; }
.money-input { position: relative; display: block; }
.money-input i { position: absolute; left: 13px; top: 12px; color: var(--muted); font-style: normal; }
.money-input input { padding-left: 29px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.form-fineprint { flex: 1; min-width: 220px; margin: 0 0 0 10px; color: var(--muted); font-size: 12px; }
.alert { margin-top: 18px; padding: 13px 15px; border-radius: 9px; color: #6f2019; background: #ffe5e1; border: 1px solid #e9a59e; }
.alert.is-success { color: #244f21; background: #e9f9df; border-color: #abd195; }

.method-rail { position: sticky; top: 92px; display: grid; gap: 16px; }
.rail-card { padding: 22px; background: #e3e2d8; border: 1px solid #cac9be; border-radius: 14px; }
.actor-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.actor-list li { display: flex; gap: 12px; }
.actor-list li > span { color: var(--signal-deep); font: 900 11px/1.7 ui-monospace, monospace; }
.actor-list strong, .actor-list small { display: block; }
.actor-list small { margin-top: 2px; color: var(--muted); }
.provider-rail { background: var(--ink); border-color: var(--ink); color: #f4f5ed; }
.provider-rail > p:last-child { color: #b7bdb1; font-size: 13px; }
.provider-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #3f453a; font-size: 13px; }
.provider-line b { color: var(--signal); }
.safety-card strong { font-size: 18px; }
.safety-card p:last-child { color: var(--muted); font-size: 13px; }

.run-room { max-width: 1450px; margin: 60px auto 0; padding: clamp(22px, 4vw, 50px); color: #f4f5ed; background: var(--ink); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.run-room-head, .results-toolbar, .history-toolbar, .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.run-room h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.045em; }
.synthetic-label { padding: 7px 10px; color: var(--signal); border: 1px solid #556029; border-radius: 7px; font: 800 10px/1 ui-monospace, monospace; letter-spacing: .1em; }
.turn-track { list-style: none; margin: 36px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.turn-track li { position: relative; padding-top: 20px; color: #7d8478; border-top: 2px solid #3e443a; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.turn-track li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: #444a40; border-radius: 50%; }
.turn-track li.is-complete, .turn-track li.is-active { color: #f5f6ee; border-color: var(--signal); }
.turn-track li.is-complete::before, .turn-track li.is-active::before { background: var(--signal); }
.turn-console { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid #3f463b; border-radius: 14px; overflow: hidden; }
.turn-readout, .intervention-panel { padding: clamp(22px, 3vw, 38px); }
.turn-readout { min-height: 290px; background: #1b2018; }
.turn-number { color: var(--signal); font: 900 11px/1 ui-monospace, monospace; letter-spacing: .12em; }
.turn-readout h3 { max-width: 620px; margin: 30px 0 14px; font-size: clamp(28px, 3vw, 46px); line-height: 1; letter-spacing: -.04em; }
.turn-readout > p { max-width: 680px; color: #bec4b8; font-size: 17px; }
.turn-actor { display: inline-flex; margin-top: 24px; padding: 7px 10px; color: #d8ddcf; background: #2c3328; border-radius: 6px; font-size: 12px; }
.intervention-panel { border-left: 1px solid #3f463b; }
.intervention-panel textarea { margin-top: 10px; color: #f5f5ee; background: #242a20; border-color: #52594c; }
.intervention-panel p { color: #90988b; font-size: 12px; }
.turn-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.counter-section, .adjudication-section { margin-top: 50px; }
.subheading h3, .results-toolbar h3 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; }
.competitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.competitor-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; color: var(--ink); background: var(--signal); border-radius: 12px; }
.competitor-card:nth-child(2n) { background: var(--aqua); }
.competitor-card .card-meta { display: flex; justify-content: space-between; font: 850 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.competitor-card h4 { margin: 34px 0 8px; font-size: 22px; line-height: 1.05; }
.competitor-card p { margin: 0; font-size: 14px; }
.competitor-card small { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(17,20,15,.35); }
.results-toolbar { align-items: end; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.provider-banner { margin: 24px 0; padding: 15px 18px; color: #dce2d6; background: #242a20; border-left: 4px solid var(--signal); border-radius: 0 8px 8px 0; font-size: 13px; }
.provider-banner b { color: var(--signal); }

.market-theater {
  position: relative;
  overflow: hidden;
  margin: 26px 0 18px;
  border: 1px solid #46513f;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 70%, rgba(216, 255, 67, .08), transparent 28%),
    linear-gradient(145deg, #080b07, #11170f);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .34);
}
.market-theater::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, rgba(216, 255, 67, .035) 50%, transparent 66%);
  animation: theater-sheen 8s linear infinite;
}
.theater-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid #30392d;
}
.theater-head h3 { margin: 0; color: #f5f7ed; font-size: clamp(26px, 3.2vw, 43px); letter-spacing: -.045em; }
.theater-head .eyebrow { color: #b9c1b2; }
.theater-controls { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.theater-button {
  min-height: 34px;
  border: 1px solid #4b5744;
  border-radius: 7px;
  padding: 7px 11px;
  color: #d9dfd1;
  background: #171e14;
  font: 850 10px/1 ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.theater-button:hover { border-color: #829345; background: #20291c; }
.theater-button-primary { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.theater-button-primary:hover { color: var(--ink); background: #e7ff80; }
.theater-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 550px; }
.theater-map { position: relative; overflow: hidden; min-height: 550px; border-right: 1px solid #30392d; }
.theater-grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(126, 151, 98, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 151, 98, .13) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(0, 0, 0, .35));
}
.theater-grid::before,
.theater-grid::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 255, 67, .12);
  border-radius: 50%;
}
.theater-grid::before { width: 310px; height: 310px; left: -80px; top: 190px; }
.theater-grid::after { width: 180px; height: 180px; right: 70px; top: 30px; }
.theater-scan {
  position: absolute;
  z-index: 1;
  top: -30%;
  bottom: -30%;
  left: 20%;
  width: 2px;
  opacity: .72;
  background: linear-gradient(to bottom, transparent, var(--signal), transparent);
  box-shadow: 0 0 28px 8px rgba(216, 255, 67, .13);
  animation: theater-scan 6.5s linear infinite;
}
.theater-routes, .theater-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.theater-route {
  fill: none;
  stroke: rgba(163, 182, 142, .34);
  stroke-width: .48;
  stroke-dasharray: 1.2 1.8;
  vector-effect: non-scaling-stroke;
  transition: stroke 220ms ease, stroke-width 220ms ease, opacity 220ms ease;
}
.theater-route.is-complete { stroke: rgba(158, 242, 211, .34); }
.theater-route.is-active {
  stroke: var(--signal);
  stroke-width: 1.15;
  stroke-dasharray: 3 2;
  filter: drop-shadow(0 0 5px rgba(216, 255, 67, .9));
  animation: theater-route 800ms linear infinite;
}
.theater-node {
  position: absolute;
  z-index: 2;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 136px;
  transform: translate(-50%, -50%);
  text-align: center;
}
.theater-node-orb {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  color: #dbe4d2;
  background: #172016;
  border: 1px solid #6a7a5e;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(109, 130, 90, .06);
  font: 900 11px/1 ui-monospace, monospace;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.theater-node-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(173, 196, 151, .16);
  border-radius: 50%;
}
.theater-node strong {
  display: block;
  overflow: hidden;
  color: #c8d0c0;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theater-node small { display: block; margin-top: 3px; color: #667161; font: 800 8px/1 ui-monospace, monospace; text-transform: uppercase; }
.theater-node[data-type="brand"] .theater-node-orb,
.theater-node[data-type="decision"] .theater-node-orb { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.theater-node[data-type="competitor"] .theater-node-orb { color: #16110e; background: var(--orange); border-color: var(--orange); }
.theater-node[data-type="users"] .theater-node-orb { color: #0c1914; background: var(--aqua); border-color: var(--aqua); }
.theater-node.is-active .theater-node-orb {
  transform: scale(1.13);
  border-color: var(--signal);
  box-shadow: 0 0 0 10px rgba(216, 255, 67, .13), 0 0 34px rgba(216, 255, 67, .42);
  animation: theater-node-pulse 1.25s ease-in-out infinite;
}
.theater-node.is-target .theater-node-orb::after { border-color: var(--signal); animation: theater-ring 1.25s ease-out infinite; }
.theater-watermark { position: absolute; left: 18px; bottom: 14px; color: #465040; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.theater-feed { min-width: 0; padding: 22px; background: rgba(6, 9, 5, .72); }
.theater-feed-head { display: flex; justify-content: space-between; color: #778271; font: 850 9px/1 ui-monospace, monospace; letter-spacing: .09em; }
.theater-feed-head span:last-child { color: var(--signal); }
.theater-current { min-height: 178px; padding: 26px 0 22px; border-bottom: 1px solid #30392d; }
.theater-current span { color: var(--signal); font: 900 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
.theater-current h4 { margin: 20px 0 9px; color: #f1f4e9; font-size: 21px; line-height: 1.08; }
.theater-current p { margin: 0; color: #939d8d; font-size: 12px; line-height: 1.5; }
.theater-event-list { max-height: 290px; margin: 16px 0 0; padding: 0; list-style: none; overflow: auto; }
.theater-event-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 9px 4px;
  color: #667060;
  border-bottom: 1px solid #20271e;
  font-size: 10px;
}
.theater-event-list li span { font: 850 9px/1.4 ui-monospace, monospace; }
.theater-event-list li.is-active { color: #f1f4e9; }
.theater-event-list li.is-active span { color: var(--signal); }
.theater-event-list li.is-complete { color: #93a18b; }
.theater-footer { position: relative; z-index: 2; border-top: 1px solid #30392d; }
.theater-progress { height: 3px; background: #20271e; }
.theater-progress i { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 12px rgba(216, 255, 67, .8); transition: width 220ms ease; }
.theater-ticker { display: grid; grid-template-columns: repeat(4, 1fr); }
.theater-ticker div { padding: 12px 16px; border-right: 1px solid #30392d; }
.theater-ticker div:last-child { border-right: 0; }
.theater-ticker small, .theater-ticker strong { display: block; }
.theater-ticker small { color: #687263; font: 800 8px/1 ui-monospace, monospace; text-transform: uppercase; }
.theater-ticker strong { margin-top: 6px; color: #dce3d5; font-size: 14px; }
.theater-disclosure { position: relative; z-index: 2; margin: 0; padding: 11px 16px; color: #687263; border-top: 1px solid #30392d; font-size: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi-card { padding: 18px; color: var(--ink); background: #f1f1e8; border-radius: 11px; }
.kpi-card small { color: #686d63; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.kpi-card strong { display: block; margin: 22px 0 2px; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.05em; }
.kpi-card .range { color: #61675d; font: 700 11px/1.4 ui-monospace, monospace; }
.range-bar { position: relative; height: 5px; margin-top: 18px; background: #cdd0c4; border-radius: 99px; }
.range-bar i { position: absolute; left: 12%; right: 12%; height: 100%; background: #879d2d; border-radius: inherit; }
.result-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.result-card { padding: clamp(20px, 3vw, 30px); color: var(--ink); background: #f5f4ec; border-radius: 12px; }
.result-card-wide { margin-top: 16px; }
.result-intro { max-width: 780px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.scenario-forecast-card { background: #e9eadf; }
.scenario-forecast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.scenario-card { position: relative; overflow: hidden; min-height: 270px; padding: 22px; border: 1px solid #c8cbbf; border-radius: 10px; background: #f9f8f1; }
.scenario-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--scenario-color, var(--signal-deep)); }
.scenario-card[data-scenario="expansion"] { --scenario-color: #8daa24; }
.scenario-card[data-scenario="contested"] { --scenario-color: #d18439; }
.scenario-card[data-scenario="defensive"] { --scenario-color: #a83d31; }
.scenario-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.scenario-card-head span { color: var(--muted); font: 900 10px/1 ui-monospace, monospace; letter-spacing: .08em; }
.scenario-card-head strong { font-size: 34px; line-height: .8; letter-spacing: -.06em; }
.scenario-card h4 { margin: 30px 0 9px; font-size: 22px; }
.scenario-card p { margin: 0; color: #555b51; font-size: 13px; }
.scenario-card dl { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #d8dad0; }
.scenario-card dt { color: var(--muted); font: 850 9px/1 ui-monospace, monospace; text-transform: uppercase; }
.scenario-card dd { margin: 6px 0 13px; font-size: 12px; }

.council-card { background: #12170f; color: #f4f5ed; border: 1px solid #333b2f; }
.council-head, .us-sensitivity-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.synthetic-opinion-label, .persona-proof {
  color: var(--signal);
  font: 850 9px/1.4 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.council-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 24px; }
.council-member { min-width: 0; min-height: 205px; padding: 16px; border: 1px solid #394234; border-radius: 9px; background: #1b2118; }
.council-member-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.council-member-index { color: #7b8674; font: 900 9px/1 ui-monospace, monospace; }
.council-posture { padding: 4px 6px; border-radius: 4px; color: #11140f; background: var(--signal); font: 900 8px/1 ui-monospace, monospace; }
.council-posture[data-posture="HOLD"] { color: #fff4ec; background: #a74738; }
.council-posture[data-posture="TEST"] { color: #2f2318; background: #e2a25b; }
.council-member h4 { margin: 22px 0 8px; font-size: 17px; }
.council-member strong { display: block; overflow: hidden; color: var(--signal); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.council-member p { margin: 9px 0 0; color: #9ea69a; font-size: 11px; line-height: 1.45; }
.council-confidence { margin-top: 16px; height: 3px; background: #333c2f; }
.council-confidence i { display: block; width: var(--confidence); height: 100%; background: var(--signal); }

.us-sensitivity-card { background: #edf3e8; }
.persona-proof { max-width: 270px; color: #5e7215; text-align: right; }
.us-sensitivity-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; margin-top: 24px; }
.response-distribution { display: grid; gap: 8px; }
.response-block { min-height: 84px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid #c9d2c3; border-radius: 9px; background: rgba(255, 255, 255, .58); }
.response-block span { display: block; color: var(--muted); font: 850 9px/1 ui-monospace, monospace; text-transform: uppercase; }
.response-block strong { display: block; margin-top: 7px; font-size: 21px; }
.response-block b { font-size: 30px; letter-spacing: -.05em; }
.region-sensitivity { padding: 20px; border: 1px solid #c9d2c3; border-radius: 9px; background: rgba(255, 255, 255, .58); }
.region-sensitivity h4 { margin: 0 0 20px; }
.region-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 44px; gap: 10px; align-items: center; margin: 16px 0; font-size: 12px; }
.region-bar { height: 8px; overflow: hidden; background: #d7ded1; border-radius: 99px; }
.region-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #718721, var(--signal-deep)); border-radius: inherit; }
.region-row strong { text-align: right; font: 900 11px/1 ui-monospace, monospace; }
.probability-row, .driver-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 18px; }
.probability-row span:first-child, .driver-row span:first-child { font-size: 13px; font-weight: 750; }
.probability-row strong { font: 900 14px/1 ui-monospace, monospace; }
.meter { grid-column: 1 / -1; height: 7px; background: #d8d9cf; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--signal-deep); border-radius: inherit; }
.driver-row .meter i.negative { background: var(--orange); }
.driver-row small { color: var(--muted); font: 800 11px/1 ui-monospace, monospace; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 13px; }
th { padding: 12px 10px; color: var(--muted); border-bottom: 1px solid #c9cbc0; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 15px 10px; border-bottom: 1px solid #dedfd6; vertical-align: top; }
.impact { display: inline-block; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.impact-high { color: #822119; background: #ffd9d3; }
.impact-medium { color: #674511; background: #ffe9bd; }
.thresholds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.thresholds h4 { margin: 0 0 10px; }
.thresholds ul, .aar-list, .plan-card ul { margin: 0; padding-left: 18px; }
.thresholds li, .aar-list li, .plan-card li { margin: 8px 0; }
.aar-copy { font-size: 18px; font-weight: 750; line-height: 1.4; }
.strategy-label { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.plan-card { padding: 20px; border: 1px solid #d2d4ca; border-radius: 10px; }
.plan-card > span { color: #7b8f25; font: 900 11px/1 ui-monospace, monospace; }
.plan-card h4 { margin: 12px 0; font-size: 19px; }
.plan-card p { padding-top: 12px; border-top: 1px solid #d9dbd1; color: var(--muted); font-size: 12px; }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.source-item { padding: 14px; border: 1px solid #d2d4ca; border-radius: 8px; }
.source-item a { font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-item small { display: block; margin-top: 5px; color: var(--muted); }

@keyframes theater-route { to { stroke-dashoffset: -5; } }
@keyframes theater-scan { from { transform: translateX(-180px); } to { transform: translateX(760px); } }
@keyframes theater-ring { from { transform: scale(.72); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes theater-node-pulse { 50% { filter: brightness(1.35); } }
@keyframes theater-sheen { from { transform: translateX(-80%); } to { transform: translateX(80%); } }

#history, #privacy { min-height: 720px; background: var(--paper); }
.empty-state { max-width: 720px; margin: 70px auto; padding: 54px; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > span { font: 900 11px/1 ui-monospace, monospace; letter-spacing: .13em; }
.empty-state h3 { margin: 20px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 14px; }
#historyWorkspace { max-width: 1250px; margin: auto; }
.history-toolbar { padding: 16px 0; border-bottom: 1px solid var(--line); }
.history-toolbar p { color: var(--muted); }
.history-list { display: grid; gap: 12px; margin-top: 22px; }
.history-item { display: grid; grid-template-columns: auto minmax(180px, 1.4fr) repeat(3, .65fr) auto; gap: 18px; align-items: center; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 11px; }
.history-item input { width: 19px; height: 19px; accent-color: var(--signal-deep); }
.history-name strong, .history-name small { display: block; }
.history-name small, .history-stat small { color: var(--muted); }
.history-stat strong { display: block; font-size: 18px; }
.history-actions { display: flex; gap: 6px; }
.history-actions .button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.detail-panel { margin-top: 30px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; }
.detail-panel h3 { margin: 0; font-size: 30px; }
.detail-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.detail-kpis div { padding: 14px; background: #fff; border-radius: 8px; }
.detail-kpis small, .detail-kpis strong { display: block; }
.detail-kpis strong { margin-top: 8px; }

.privacy-grid { max-width: 1250px; margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.privacy-card { min-height: 230px; padding: 30px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; }
.privacy-card > span { color: var(--signal-deep); font: 900 12px/1 ui-monospace, monospace; }
.privacy-card h3 { margin: 40px 0 10px; font-size: 25px; }
.privacy-card p { color: var(--muted); }
.policy-note { max-width: 1250px; margin: 16px auto 0; padding: 24px 30px; color: #eef1e8; background: var(--ink); border-radius: 13px; }
.policy-note p { margin: 6px 0 0; color: #b6bcb0; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 36px clamp(20px, 6vw, 96px); color: #b9bfb3; background: #090b08; font-size: 12px; }
.brand-footer { color: #f7f7ef; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(420px, calc(100vw - 40px)); padding: 14px 18px; color: var(--ink); background: var(--signal); border-radius: 9px; box-shadow: var(--shadow); font-weight: 750; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .product-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .model-card { width: min(600px, 100%); justify-self: end; }
  .workbench-layout { grid-template-columns: 1fr; }
  .method-rail { position: static; grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .competitor-grid { grid-template-columns: repeat(2, 1fr); }
  .theater-layout { grid-template-columns: 1fr; }
  .theater-map { border-right: 0; border-bottom: 1px solid #30392d; }
  .theater-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .theater-feed-head { grid-column: 1 / -1; }
  .theater-current { min-height: 0; border-bottom: 0; border-right: 1px solid #30392d; padding-top: 8px; padding-right: 20px; }
  .theater-event-list { max-height: 180px; margin-top: 0; }
  .council-grid { grid-template-columns: repeat(3, 1fr); }
  .history-item { grid-template-columns: auto 1fr repeat(2, .7fr); }
  .history-item .history-stat:nth-of-type(3) { display: none; }
  .history-actions { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .topbar { position: relative; grid-template-columns: 1fr; gap: 12px; padding: 14px 18px; }
  .brand { justify-self: center; }
  .product-nav { grid-row: auto; grid-column: auto; width: 100%; overflow-x: auto; justify-content: start; padding-bottom: 3px; }
  .nav-tab { flex: 0 0 auto; }
  .account-area { justify-content: center; }
  .hero { padding: 68px 22px; gap: 46px; }
  .hero h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-button { align-self: start; }
  .model-stats { grid-template-columns: 1fr; }
  .model-stats div { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid #434a3e; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .trust-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-view { padding: 62px 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading > p { font-size: 15px; }
  .scenario-form, .run-room { padding: 22px 16px; }
  .field-grid, .controls-grid { grid-template-columns: 1fr; }
  .field-wide, .controls-grid .field-wide { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-fineprint { margin: 4px 0 0; }
  .method-rail { grid-template-columns: 1fr; }
  .run-room-head, .results-toolbar, .detail-head { align-items: start; flex-direction: column; }
  .theater-head, .council-head, .us-sensitivity-head { align-items: start; flex-direction: column; }
  .theater-controls { width: 100%; justify-content: start; }
  .theater-map { min-height: 470px; }
  .theater-node { width: 94px; }
  .theater-node-orb { width: 38px; height: 38px; }
  .theater-node strong { font-size: 8px; }
  .theater-feed { display: block; }
  .theater-current { border-right: 0; border-bottom: 1px solid #30392d; padding-right: 0; }
  .theater-ticker { grid-template-columns: repeat(2, 1fr); }
  .theater-ticker div:nth-child(2) { border-right: 0; }
  .theater-ticker div:nth-child(-n+2) { border-bottom: 1px solid #30392d; }
  .turn-track { overflow-x: auto; grid-template-columns: repeat(5, minmax(120px, 1fr)); padding-top: 4px; }
  .turn-console { grid-template-columns: 1fr; }
  .turn-readout { min-height: 0; }
  .intervention-panel { border-top: 1px solid #3f463b; border-left: 0; }
  .turn-actions { flex-direction: column-reverse; }
  .competitor-grid, .result-columns, .plan-grid, .source-list, .privacy-grid { grid-template-columns: 1fr; }
  .scenario-forecast-grid, .us-sensitivity-layout { grid-template-columns: 1fr; }
  .council-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-proof { text-align: left; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar-actions { width: 100%; justify-content: start; }
  .thresholds { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: auto 1fr; }
  .history-item .history-stat { display: none; }
  .history-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .detail-kpis { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-self: center; }
}

@media (max-width: 430px) {
  .account-copy { display: none; }
  .hero h1 { font-size: 43px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .run-room { border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .council-grid { grid-template-columns: 1fr; }
  .theater-map { min-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .theater-scan { display: none; }
}
