:root {
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --paper: #ffffff;
  --wash: #f8f7f4;
  --accent: #f97316;
  --accent-dark: #c2540a;
  --accent-wash: #fff4eb;
  --ok: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 10px;
}

/* Top bar */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 3px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 5px 0 #fff, 0 10px 0 #fff;
}
.brand-name { font: 800 19px/1 var(--display); letter-spacing: -0.03em; }
.brand-by { font-size: 13px; color: var(--ink-soft); }
.top-links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.pill {
  background: var(--accent-wash); color: var(--accent-dark); border-radius: 999px;
  padding: 4px 12px; font-weight: 600; white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font); padding: 12px 18px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .tab:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.45); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #1a0d02; }
.btn-primary:hover { background: #fb8a3c; color: #1a0d02; }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-big { padding: 15px 24px; font-size: 16px; }
.btn-small { padding: 8px 12px; font-size: 14px; }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 50px); font-weight: 800; max-width: 17ch; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }

/* Tool card */
.tool {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px -18px rgba(17, 24, 39, 0.25);
  overflow: hidden;
}
.banner { margin: 0; padding: 10px 20px; background: var(--accent-wash); color: var(--accent-dark); font-size: 14px; }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab {
  font: 600 14px/1 var(--font); color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 12px 14px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel, .working, .limit { padding: 22px 20px 24px; }
.panel-blurb { color: var(--ink-soft); margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 1.5px solid #d1d5db; border-radius: 10px; padding: 11px 12px;
}
input::placeholder, textarea::placeholder { color: #9ca3af; }
textarea { resize: vertical; }
.fax { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.actions p { margin: 0; }
.form-error { color: var(--bad); font-weight: 600; margin: 0; padding: 0 20px 18px; }

.working h2, .limit h2 { font-size: 22px; margin-bottom: 14px; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-soft); }
.steps li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--ok); box-shadow: inset 0 0 0 4px #dcfce7;
}
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before {
  background: none; box-shadow: none; border: 3px solid var(--accent-wash);
  border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.now::before { animation: none; } }
.limit .btn { margin: 6px 8px 0 0; }

/* Own key */
.own-key { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.own-key summary, .faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; }
.own-key-body { padding: 0 18px 16px; }
.own-key-body ol { margin: 0 0 14px; padding-left: 20px; }
.own-key-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto; gap: 10px; margin-bottom: 10px; }
.own-key.has-key summary::after { content: "  (key saved)"; color: var(--ok); font-weight: 600; }

/* Sections */
.how, .faq { padding-top: 56px; }
.how h2, .faq h2 { font-size: 26px; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid3 article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid3 h3 { font-size: 17px; margin-bottom: 8px; }
.grid3 p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-soft); max-width: 70ch; }

/* Promo */
.promo { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; padding-top: 56px; padding-bottom: 56px; }
.promo-card { border-radius: var(--radius); padding: 26px 24px; background: var(--paper); border: 1px solid var(--line); }
.promo-card h3 { font-size: 22px; margin-bottom: 10px; }
.promo-card p { color: var(--ink-soft); }
.promo-card .btn { margin-top: 6px; }
.promo-card-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.promo-card-main p { color: #cbd5e1; }
.promo-card-main .kicker { color: #fdba74; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 22px 0; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* Report */
.report { padding-top: 36px; }
.report-head h1 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; margin-bottom: 10px; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.report-body, .sources {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px 22px;
}
.report-body h2 {
  font-size: 20px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line);
}
.report-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 16px; }
.report-body h3 { font-size: 17px; margin: 18px 0 8px; }
.report-body ul, .report-body ol { padding-left: 22px; margin: 0 0 12px; }
.report-body li { margin-bottom: 6px; }
.report-body { overflow-wrap: anywhere; }
.report-body table { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: 15px; display: block; overflow-x: auto; }
.report-body th, .report-body td, .admin th, .admin td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.report-body th, .admin th { background: var(--wash); }
.report-body blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
sup.cite { font-size: 11px; line-height: 0; margin-left: 2px; }
sup.cite a {
  text-decoration: none; background: var(--accent-wash); color: var(--accent-dark);
  border-radius: 4px; padding: 1px 5px; font-weight: 700;
}
sup.cite a:hover { background: var(--accent); color: #1a0d02; }
.sources { margin-top: 14px; padding-top: 20px; }
.sources h2 { font-size: 18px; margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 22px; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.note { margin: 16px 2px 0; font-size: 14px; color: var(--ink-soft); }
.again { margin-top: 22px; }

/* Deal room */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.banner a { color: inherit; font-weight: 600; }
.banner-inline { border-radius: 10px; margin: 10px 0 0; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.grid3 .step-no { color: #fff; }
.also { margin-top: 14px; font-size: 15px; }

.pitch, .committee, .meeting, .ask {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px;
}
.pitch summary { cursor: pointer; font-weight: 600; padding: 14px 20px; }
.pitch-text { white-space: pre-wrap; padding: 0 20px; color: var(--ink-soft); }
.pitch .small { padding: 0 20px 14px; margin: 0; }
.committee, .meeting, .ask { padding: 20px; }
.committee h2, .meeting h2, .ask h2 { font-size: 20px; }
.committee h2 { margin-bottom: 14px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.person p { margin: 6px 0 0; }
.person-top { display: flex; gap: 10px; align-items: center; }
.person-top strong, .person-top div span { display: block; line-height: 1.25; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 13px/1 var(--display); background: var(--wash); color: var(--ink); border: 3px solid #9ca3af;
}
.avatar.sm2 { border-color: #b91c1c; } .avatar.sm1 { border-color: #ea580c; }
.avatar.s0 { border-color: #9ca3af; }
.avatar.sp1 { border-color: #65a30d; } .avatar.sp2 { border-color: #15803d; }
.stance {
  display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px;
  background: #f3f4f6; color: #374151; white-space: nowrap;
}
.stance.sm2 { background: #fee2e2; color: #991b1b; } .stance.sm1 { background: #ffedd5; color: #9a3412; }
.stance.sp1 { background: #ecfccb; color: #3f6212; } .stance.sp2 { background: #dcfce7; color: #166534; }

.meeting-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.meeting-bar h2 { margin-right: auto; }
.toggle { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.round-title {
  font-size: 15px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.round:first-of-type .round-title { border-top: 0; padding-top: 0; margin-top: 12px; }
.round-title span {
  font: 700 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark);
}
.turn { display: flex; gap: 12px; padding: 10px 0; }
.turn-body { min-width: 0; }
.turn-who { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.says { margin: 0; }
.thinks {
  margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--ink); background: var(--wash);
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-soft); font-size: 15px;
}
.thinks span {
  font-style: normal; font-weight: 700; color: var(--ink); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px;
}
.hide-thoughts .thinks { display: none; }
.avatar.has-face { width: 48px; height: 48px; padding: 0; overflow: hidden; background: #0a1022; }
.avatar.has-face .face-svg { display: block; width: 100%; height: 100%; }
.person .avatar.has-face { width: 60px; height: 60px; }
.avatar.mini { width: 28px; height: 28px; border-width: 2px; }
.avatar.mini.has-face { width: 28px; height: 28px; }
.verdict-delta { font-weight: 700; color: #fdba74; }
.verdict-delta.up { color: #86efac; }
.verdict-delta.down { color: #fca5a5; }
.rerun {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--accent-wash); border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 26px;
}
.rerun strong { display: block; font: 800 19px/1.2 var(--display); }
.rerun span { color: var(--ink-soft); font-size: 15px; }
.hero-team { display: flex; align-items: center; gap: 16px; margin-top: 22px; max-width: 660px; }
.hero-team p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.hero-team strong { color: var(--ink); }
.hero-faces { display: flex; flex: none; }
.hero-faces .portrait { width: 48px; height: 48px; margin-left: -12px; border: 3px solid var(--wash); background: var(--wash); }
.hero-faces .portrait:first-child { margin-left: 0; }
.step-in { scroll-margin: 90px 0 150px; }
.playing .step-in:not(.shown) { display: none; }
.playing .step-in.shown { animation: step-in 0.45s ease-out; }
.playing .after { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.verdict {
  display: flex; gap: 24px; align-items: flex-start; border-radius: var(--radius); padding: 24px;
  background: var(--ink); color: #fff; margin-bottom: 26px;
}
.verdict-score { text-align: center; flex: none; }
.score-number { display: block; font: 800 64px/1 var(--display); letter-spacing: -0.04em; }
.score-of {
  font-size: 12px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 1.4; display: block; margin-top: 6px;
}
.verdict-advances .score-number { color: #86efac; }
.verdict-stalls .score-number { color: #fdba74; }
.verdict-dies .score-number { color: #fca5a5; }
.verdict h2 { font-size: 26px; margin-bottom: 10px; }
.verdict .muted { color: #9ca3af; }
.verdict p { margin: 0 0 10px; }
.moves { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.moves li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.moves strong { min-width: 190px; font-weight: 600; }
.section-title { font-size: 22px; margin: 0 0 12px; }
.room .report-body { margin-bottom: 14px; }

.ask h2 { margin-bottom: 6px; }
.ask-form { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 10px; }
.ask-log { display: grid; gap: 8px; margin: 10px 0; }
.ask-bubble { border-radius: 12px; padding: 10px 14px; max-width: 85%; }
.ask-bubble strong { font-size: 13px; }
.ask-bubble p { margin: 2px 0 0; }
.ask-you { background: var(--accent-wash); justify-self: end; }
.ask-them { background: var(--wash); border: 1px solid var(--line); }
.ask-wait p { color: var(--ink-soft); font-style: italic; }
.ask-error { padding: 10px 0 0; }
.dossier ul { padding-left: 22px; margin: 0 0 12px; }
.dossier li { margin-bottom: 6px; }
.sources h3 { font-size: 15px; margin: 14px 0 8px; }

/* Mission control: the live "agents at work" screen */
body.mc-open { overflow: hidden; }
.mc {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; color: #e5e7eb;
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(249, 115, 22, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(56, 189, 248, 0.11), transparent 60%),
    #060a15;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
.mc-inner { max-width: 1280px; margin: 0 auto; padding: 20px 20px 26px; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.mc-kicker {
  font: 700 12px/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: #cbd5e1;
  margin: 0 0 10px; display: flex; align-items: center; gap: 10px;
}
.mc-live { letter-spacing: 0.1em; color: #4ade80; display: inline-flex; align-items: center; gap: 6px; }
.mc-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  animation: mc-pulse 1.4s ease-in-out infinite;
}
.mc h2 { font-size: clamp(20px, 2.6vw, 27px); color: #fff; overflow-wrap: anywhere; }
.mc-sub { color: #94a3b8; font-size: 14px; margin: 6px 0 0; }
.mc-stats { display: flex; gap: 26px; margin: 0; }
.mc-stats div { text-align: right; }
.mc-stats dd { margin: 0; font: 800 27px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.mc-stats dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-top: 6px; }
.mc-label { font: 700 11px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: #94a3b8; margin: 0 0 12px; }

.mc-phases { list-style: none; display: flex; gap: 8px; padding: 0; margin: 16px 0; flex-wrap: wrap; }
.mc-phases li {
  font: 600 13px/1 var(--font); padding: 8px 14px; border-radius: 999px; color: #64748b;
  border: 1px solid #1e293b; background: #0c1322;
}
.mc-phases li.past { color: #cbd5e1; border-color: #334155; }
.mc-phases li.past::before { content: "\2713\00a0"; color: #4ade80; }
.mc-phases li.now { background: var(--accent); border-color: var(--accent); color: #1a0d02; }

.mc-body { display: grid; grid-template-columns: 262px minmax(0, 1fr) 292px; gap: 14px; align-items: start; }
.mc-team, .mc-stage, .mc-feed {
  background: rgba(13, 19, 35, 0.82); border: 1px solid #1c2740; border-radius: 16px; padding: 16px;
}

/* Portraits */
.portrait { display: block; flex: none; border-radius: 50%; position: relative; }
.portrait .face-svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.face-eyes { transform-box: fill-box; transform-origin: center; animation: face-blink 5.5s infinite; }
.member:nth-child(2n) .face-eyes, .seat:nth-child(2n) .face-eyes { animation-delay: 1.7s; }
.member:nth-child(3n) .face-eyes, .seat:nth-child(3n) .face-eyes { animation-delay: 3.1s; }
.seat.speaking .face-mouth, .nowspeaking .face-mouth { transform-box: fill-box; transform-origin: center; animation: face-talk 0.34s ease-in-out infinite; }

/* The AI team */
.member { --tone: #94a3b8; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #172036; }
.member:first-child { border-top: 0; padding-top: 0; }
.member .portrait { width: 50px; height: 50px; padding: 3px; background: #1c2740; }
.member.busy .portrait {
  background: conic-gradient(var(--tone), transparent 70%, var(--tone)); animation: mc-spin 1.1s linear infinite;
  box-shadow: 0 0 22px -4px var(--tone);
}
.member.busy .portrait .face-svg { animation: mc-spin 1.1s linear infinite reverse; }
.member.done .portrait { background: var(--tone); }
.member.done .portrait::after {
  content: "\2713"; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: #16a34a; color: #fff; font: 700 11px/18px var(--font); text-align: center; border: 2px solid #0d1323;
}
.member-text { min-width: 0; flex: 1; }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.member-top strong { font: 800 14px/1.2 var(--display); letter-spacing: 0.06em; color: var(--tone); }
.member-role { font-size: 12px; color: #94a3b8; margin: 1px 0 0; }
.member-line {
  font: 12px/1.4 var(--mono); color: #cbd5e1; margin: 6px 0 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.member:not(.busy):not(.done) .member-line { color: #64748b; }

.agent-chip {
  display: inline-block; font: 700 10px/1 var(--font); letter-spacing: 0.1em;
  padding: 4px 7px; border-radius: 6px; background: #1e293b; color: #94a3b8; white-space: nowrap;
}
.agent-chip.busy { background: color-mix(in srgb, var(--tone, #f97316) 24%, #0f172a); color: var(--tone, #fdba74); }
.agent-chip.done { background: #052e1c; color: #4ade80; }
.agent-chip.sm2 { background: #450a0a; color: #fca5a5; } .agent-chip.sm1 { background: #431407; color: #fdba74; }
.agent-chip.s0 { background: #1e293b; color: #cbd5e1; }
.agent-chip.sp1 { background: #1a2e05; color: #bef264; } .agent-chip.sp2 { background: #052e16; color: #86efac; }

/* Stage, part 1: the evidence wall */
.mc-stage { min-height: 470px; }
.stage-research { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.evidence ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.evidence li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center;
  padding: 9px 11px; border-radius: 10px; background: #0a1020; border: 1px solid #1c2740;
  font: 12.5px/1.4 var(--mono); animation: mc-in 0.35s ease-out;
}
.ev-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #f97316; border-top-color: transparent; animation: mc-spin 0.8s linear infinite; }
.evidence li.ok .ev-dot { border: 0; background: #4ade80; animation: none; }
.evidence li.blocked .ev-dot { border: 0; background: #f87171; animation: none; }
.ev-text { color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-note { grid-column: 2; color: #64748b; font-size: 11.5px; }
.ev-note:empty { display: none; }
.evidence li.blocked .ev-text { color: #94a3b8; text-decoration: line-through; }

/* Stage, part 2: the room */
.stage-summary { font: 12px/1 var(--mono); color: #64748b; margin: 0; text-align: center; }
.table { position: relative; height: 392px; margin: 4px 0 10px; }
.table::before {
  content: ""; position: absolute; left: 23%; right: 23%; top: 27%; bottom: 35%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #1d2a4d, #0c1326 72%);
  border: 1px solid #2c3c66;
  box-shadow: 0 0 70px -12px rgba(249, 115, 22, 0.45), inset 0 0 44px rgba(0, 0, 0, 0.55);
}
.table-top {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 42%; text-align: center;
}
.table-top span { display: block; font: 700 11px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: #fdba74; }
.table-top strong { display: block; font: 800 18px/1.25 var(--display); color: #fff; margin: 7px 0 6px; }
.table-top em { font-style: normal; font-size: 12px; color: #64748b; }
.seat {
  --ring: #64748b; position: absolute; width: 148px; margin: -42px 0 0 -74px; text-align: center;
  animation: seat-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.seat.sm2 { --ring: #ef4444; } .seat.sm1 { --ring: #f97316; } .seat.s0 { --ring: #64748b; }
.seat.sp1 { --ring: #84cc16; } .seat.sp2 { --ring: #22c55e; }
.seat .portrait {
  width: 72px; height: 72px; margin: 0 auto; padding: 3px; background: var(--ring);
  transition: transform 0.3s, box-shadow 0.3s, background 0.4s;
}
.seat.thinking .portrait { animation: seat-think 1.2s ease-in-out infinite; }
.seat.speaking .portrait { transform: scale(1.14); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 0 34px 2px var(--ring); }
.seat strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 700 12px/1.25 var(--font); color: #e5e7eb; margin: 7px 0 5px;
}
.nowspeaking {
  --tone: #f97316; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: #0a1020; border: 1px solid color-mix(in srgb, var(--tone) 45%, #1c2740); min-height: 108px;
}
.nowspeaking > .portrait { width: 54px; height: 54px; }
.speaking-body { min-width: 0; }
.speaking-who { margin: 0 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.speaking-who strong { font: 700 14px/1.2 var(--font); color: var(--tone); }
.speaking-text { margin: 0; font-size: 16px; line-height: 1.5; color: #f1f5f9; overflow-wrap: anywhere; }

/* Activity feed */
.mc-feed { position: sticky; top: 14px; max-height: calc(100vh - 190px); overflow: hidden; }
.mc-feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-feed li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: #0a1020; font: 12px/1.45 var(--mono); animation: mc-in 0.35s ease-out;
}
.feed-who { --tone: #94a3b8; color: var(--tone); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-time { color: #64748b; }
.feed-what {
  grid-column: 1 / -1; color: #e2e8f0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-what b { color: #94a3b8; font-weight: 400; }

@keyframes mc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@keyframes seat-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes seat-think { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 20px 2px var(--ring); } }
@keyframes face-blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }
@keyframes face-talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.4); } }
@media (prefers-reduced-motion: reduce) {
  .mc *, .mc *::before { animation: none !important; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .table { height: 356px; }
  .seat .portrait { width: 64px; height: 64px; }
  .mc-phases { margin: 12px 0; }
}
@media (max-width: 1120px) {
  .mc-body { grid-template-columns: 240px minmax(0, 1fr); }
  .mc-feed { grid-column: 1 / -1; position: static; max-height: 300px; }
}
@media (max-width: 860px) {
  .mc-body { grid-template-columns: minmax(0, 1fr); }
  .mc-team { padding: 12px; }
  #mc-team { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .member { flex: none; width: 210px; border-top: 0; padding: 0; }
  .stage-research { grid-template-columns: minmax(0, 1fr); }
  .mc-stage { min-height: 0; padding: 12px; }
  .table { height: 372px; }
  .table::before { left: 26%; right: 26%; }
  .seat { width: 104px; margin: -36px 0 0 -52px; }
  .seat .portrait { width: 54px; height: 54px; }
  .seat strong { font-size: 11px; }
  .table-top { width: 44%; }
  .table-top strong { font-size: 14px; }
  .table-top em { display: none; }
  .mc-stats { gap: 18px; width: 100%; justify-content: space-between; }
  .mc-stats div { text-align: left; }
  .mc-stats dd { font-size: 22px; }
  .mc-inner { padding: 16px 16px 24px; }
}

/* Deal room form: what goes in front of the room */
.kinds { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.kinds legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.kind-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kind { cursor: pointer; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind b {
  display: block; font: 600 14px/1 var(--font); padding: 11px 15px; border-radius: 999px;
  border: 1.5px solid #d1d5db; background: var(--paper); color: var(--ink-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kind:hover b { border-color: var(--ink); color: var(--ink); }
.kind input:checked + b { background: var(--ink); border-color: var(--ink); color: #fff; }
.kind input:focus-visible + b { outline: 3px solid rgba(249, 115, 22, 0.45); outline-offset: 2px; }
.kind-hint { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); max-width: 72ch; }
.paste-tools { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.paste-tools i { font-style: normal; color: var(--ink-soft); }
.paste-tools #pitch-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.paste-tools #pitch-count.over { color: var(--bad); font-weight: 600; }
.paste-tools #detect-note { color: var(--accent-dark); }
.paste-tools .link-btn { font-size: 14px; }
.rerun-quiet { background: var(--paper); border-color: var(--line); margin: 14px 0; }
.example-row { margin: 14px 0 0; }
.link-btn {
  background: none; border: 0; padding: 0; font: 600 15px/1.4 var(--font); color: var(--accent-dark);
  text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.field > label { display: block; }

/* Boxes with suggestions always show a dropdown arrow */
input[list] {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
input[list]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }

/* Admin */
.admin { padding: 36px 16px 56px; }
.admin h1 { font-size: 28px; margin-bottom: 16px; }
.admin-form { max-width: 340px; display: grid; gap: 12px; }
.admin table { border-collapse: collapse; font-size: 14px; background: var(--paper); }
.table-scroll { overflow-x: auto; }

@media (max-width: 720px) {
  .fields, .grid3, .promo { grid-template-columns: 1fr; }
  .own-key-row { grid-template-columns: 1fr; }
  .brand-by { display: none; }
  .verdict { flex-direction: column; gap: 14px; }
  .ask-form { grid-template-columns: 1fr; }
  .moves strong { min-width: 100%; }
  .committee, .meeting, .ask { padding: 16px; }
  .hero { padding-top: 32px; }
  .report-body, .sources { padding: 4px 16px 16px; }
  .sources { padding-top: 16px; }
}

@media print {
  body { background: #fff; }
  .top, .foot, .promo, .report-actions, .again, .ask, .toggle, #skip { display: none; }
  .verdict { background: #fff; color: #000; border: 1px solid #000; }
  .verdict .score-number { color: #000; }
  .report-body, .sources { border: 0; padding: 0; }
  sup.cite a { background: none; padding: 0; }
}
