:root {
  color-scheme: dark;
  --bg: #0b0d0e;
  --panel: rgba(20, 23, 24, 0.92);
  --panel-2: #171a1b;
  --line: rgba(255, 255, 255, 0.11);
  --muted: #858c8c;
  --text: #f2f2ec;
  --orange: #f7931a;
  --lime: #c8ff58;
  --red: #ff6c59;
  --cyan: #75e6e6;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -10%, rgba(247, 147, 26, 0.14), transparent 36%),
    linear-gradient(180deg, #0d0f10 0%, #090b0c 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 13, 14, 0.83);
  backdrop-filter: blur(18px);
}

.brand { color: inherit; display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #120d07; background: var(--orange); font-weight: 900; font-size: 22px;
  box-shadow: 0 0 28px rgba(247, 147, 26, 0.22);
}
.brand strong { display: block; font-size: 14px; letter-spacing: .17em; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .22em; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.readiness, .network { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.readiness { display: flex; align-items: center; gap: 8px; color: #b9c0c0; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(200, 255, 88, .1); }
.readiness.degraded .pulse { background: var(--orange); box-shadow: 0 0 0 5px rgba(247, 147, 26, .1); }
.network { border: 1px solid var(--line); padding: 9px 11px; border-radius: 999px; color: var(--orange); }

.shell { max-width: 1540px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 70px; }
.hero { padding: 64px 0 42px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 50px; align-items: end; }
.eyebrow, .kicker { margin: 0; font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: var(--orange); }
.hero h1 { margin: 12px 0 0; font-size: clamp(42px, 5.1vw, 78px); line-height: .95; letter-spacing: -.055em; font-weight: 760; }
.hero h1 em { font-style: normal; color: #8a9090; }
.hero-copy { margin: 0; max-width: 480px; color: #a7adad; font-size: 15px; line-height: 1.65; }

.workspace-grid { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(580px, 1.5fr); gap: 18px; align-items: start; }
.control-column, .stage-column { display: grid; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.brief-panel, .recent-panel { padding: 24px; }
.panel-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.panel-heading.compact { margin-bottom: 12px; }
.panel-heading h2 { font-size: 19px; letter-spacing: -.025em; margin: 4px 0 0; }
.index { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--orange); font: 800 10px ui-monospace, monospace; }
label { display: block; color: #b2b7b7; font-size: 11px; font-weight: 700; letter-spacing: .055em; margin: 0 0 8px; }
textarea, input, select {
  width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: #0e1112;
  outline: none; padding: 13px 14px; transition: border .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 136px; line-height: 1.55; }
textarea:focus, input:focus, select:focus { border-color: rgba(247,147,26,.7); box-shadow: 0 0 0 3px rgba(247,147,26,.08); }
.form-row { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; margin-top: 13px; }
.button {
  border: 0; border-radius: 11px; min-height: 47px; padding: 0 17px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 13px; transition: transform .15s, filter .15s;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button.primary { margin-top: 14px; width: 100%; color: #171007; background: var(--orange); justify-content: space-between; }
.button.secondary { color: var(--text); background: #292d2e; border: 1px solid var(--line); }
.button.confirm { color: #111508; background: var(--lime); }
.button.danger { color: #ffdcd7; background: rgba(255,108,89,.13); border: 1px solid rgba(255,108,89,.25); }
.preset-row { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: #646b6b; font: 700 9px ui-monospace, monospace; }
.preset { color: #919898; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; font: 700 8px ui-monospace, monospace; cursor: pointer; }
.preset:hover { color: var(--orange); border-color: rgba(247,147,26,.4); }

.recent-panel { padding-bottom: 14px; }
.recent-list { display: grid; gap: 6px; }
.recent-item { width: 100%; border: 0; color: inherit; background: transparent; border-top: 1px solid var(--line); padding: 12px 3px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.recent-item strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.recent-item small { display: block; color: var(--muted); margin-top: 4px; font: 9px ui-monospace, monospace; }
.state-pill { align-self: center; padding: 5px 7px; border-radius: 99px; color: var(--cyan); background: rgba(117,230,230,.08); font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.empty { color: var(--muted); font-size: 12px; }

.signature-panel { min-height: 650px; position: relative; }
.signature-panel::after { content: ""; position: absolute; width: 330px; height: 330px; right: -160px; top: 140px; border-radius: 50%; border: 1px solid rgba(247,147,26,.09); box-shadow: 0 0 0 60px rgba(247,147,26,.015), 0 0 0 120px rgba(247,147,26,.01); pointer-events: none; }
.signature-topline { padding: 16px 22px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .12em; }
.stage-track { list-style: none; padding: 20px 22px; margin: 0; display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 1px solid var(--line); }
.stage-track li { position: relative; display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; column-gap: 9px; opacity: .32; }
.stage-track li:not(:last-child)::after { content: ""; height: 1px; background: var(--line); position: absolute; top: 13px; left: 34px; right: 8px; }
.stage-track li span { grid-row: 1/3; width: 27px; height: 27px; border: 1px solid #555; border-radius: 50%; display: grid; place-items: center; font: 800 9px ui-monospace, monospace; position: relative; z-index: 1; background: var(--panel-2); }
.stage-track b { font-size: 10px; letter-spacing: .04em; }
.stage-track small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.stage-track li.done, .stage-track li.active { opacity: 1; }
.stage-track li.done span { color: #111; background: var(--lime); border-color: var(--lime); }
.stage-track li.active span { color: #111; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 20px rgba(247,147,26,.35); }

.stage-content { padding: 34px; position: relative; z-index: 1; }
.welcome-state { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.welcome-state h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.welcome-state > p:last-child { color: var(--muted); max-width: 530px; line-height: 1.6; }
.orbit { width: 92px; height: 92px; border: 1px solid rgba(247,147,26,.32); border-radius: 50%; display: grid; place-items: center; margin-bottom: 23px; box-shadow: 0 0 50px rgba(247,147,26,.1), inset 0 0 35px rgba(247,147,26,.06); }
.orbit span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #171007; background: var(--orange); font-size: 27px; font-weight: 900; transform: rotate(-7deg); }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.section-title h2 { font-size: 28px; margin: 5px 0 0; letter-spacing: -.04em; }
.section-title p { color: var(--muted); margin: 0; font: 10px ui-monospace, monospace; }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 20px; }
.datum { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); min-width: 0; }
.datum span { display: block; color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.datum strong { display: block; margin-top: 7px; font-size: 14px; overflow-wrap: anywhere; }
.question-list { display: grid; gap: 10px; }
.question { border-left: 2px solid var(--orange); padding: 2px 0 2px 14px; }
.question p { margin: 0 0 8px; font-size: 13px; }
.question input { padding: 10px 12px; }
.question.optional { border-left-color: var(--cyan); }
.optional-questions { margin: 18px 0; padding: 15px; border: 1px solid rgba(117,230,230,.18); border-radius: 12px; background: rgba(117,230,230,.03); }
.candidate-list { display: grid; gap: 9px; }
.candidate { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.candidate.selected { border-color: rgba(247,147,26,.65); background: rgba(247,147,26,.06); }
.candidate-head { display: flex; justify-content: space-between; gap: 12px; }
.candidate h3 { margin: 0; font-size: 13px; }
.candidate .price { color: var(--orange); font: 800 11px ui-monospace, monospace; }
.score-track { height: 3px; background: #2a2e2f; border-radius: 9px; margin-top: 11px; overflow: hidden; }
.score-track i { display: block; height: 100%; background: var(--orange); }
.candidate small { display: block; color: var(--muted); margin-top: 8px; }
.payment-card { padding: 18px; border: 1px solid rgba(247,147,26,.3); background: linear-gradient(135deg, rgba(247,147,26,.09), transparent); border-radius: 13px; display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.payment-card h3 { margin: 0 0 7px; font-size: 19px; }
.payment-card p { color: var(--muted); margin: 0; font: 10px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.amount { color: var(--orange); font-size: 25px; font-weight: 850; white-space: nowrap; }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.file-card { color: inherit; text-decoration: none; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); display: flex; justify-content: space-between; gap: 9px; }
.file-card:hover { border-color: rgba(247,147,26,.5); }
.file-card strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.file-card small { color: var(--muted); font: 8px ui-monospace, monospace; }
.campaign-video { width: 100%; max-height: 350px; border-radius: 12px; border: 1px solid var(--line); background: #000; margin: 0 0 14px; }
.notice { border: 1px solid rgba(255,108,89,.25); background: rgba(255,108,89,.07); color: #ffd4cf; border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.5; }
.notice.neutral { border-color: rgba(117,230,230,.22); background: rgba(117,230,230,.05); color: #c5eeee; margin-bottom: 12px; }
.action-bar { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; justify-content: flex-end; gap: 9px; position: relative; z-index: 2; }
.hidden { display: none !important; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.proof-strip div { padding: 14px 16px; background: rgba(18,21,22,.7); border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip span { display: block; color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .1em; }
.proof-strip strong { display: block; margin-top: 5px; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 390px; padding: 12px 16px; border-radius: 10px; color: #111; background: var(--lime); font-size: 12px; font-weight: 700; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { color: white; background: var(--red); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .control-column { grid-template-columns: 1.3fr .7fr; }
}
@media (max-width: 720px) {
  .topbar { height: 64px; }
  .network { display: none; }
  .shell { padding-inline: 14px; }
  .hero { padding-top: 40px; }
  .control-column { grid-template-columns: 1fr; }
  .stage-track { grid-template-columns: repeat(5, 1fr); padding-inline: 12px; }
  .stage-track b, .stage-track small { display: none; }
  .stage-content { padding: 24px 18px; }
  .data-grid, .file-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2,1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
}
/* Operator session controls */
.session-button { border: 1px solid #3a3f42; background: transparent; color: #b9c0c3; padding: .45rem .65rem; font: inherit; font-size: .7rem; cursor: pointer; }
.login-dialog { width: min(28rem, calc(100vw - 2rem)); border: 1px solid #3a3f42; background: #111416; color: #f5f2e9; padding: 1.5rem; }
.login-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.login-dialog form { display: grid; gap: 1rem; }
.login-dialog input { width: 100%; box-sizing: border-box; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .75rem; }

/* Judge-first journey */
:root {
  --line-strong: rgba(255, 255, 255, 0.19);
  --orange-soft: rgba(247, 147, 26, 0.1);
}
html { scroll-behavior: smooth; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.topbar { height: 72px; }
.session-button { border-color: var(--line-strong); padding: 8px 10px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.shell { max-width: 1510px; padding-bottom: 90px; }
.hero { padding: 50px 0 30px; grid-template-columns: minmax(0, 1.34fr) minmax(340px, .66fr); gap: clamp(35px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(44px, 5.2vw, 76px); }
.hero-copy { max-width: 670px; }
.hero-demo-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: linear-gradient(145deg, rgba(247,147,26,.07), rgba(18,21,22,.82) 45%); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.hero-card-topline { display: flex; justify-content: space-between; color: var(--muted); font: 800 8px ui-monospace, monospace; letter-spacing: .12em; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.hero-sequence { list-style: none; padding: 5px 0; margin: 0; }
.hero-sequence li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 10px 0; align-items: start; }
.hero-sequence li > span { color: var(--orange); font: 800 9px ui-monospace, monospace; padding-top: 2px; }
.hero-sequence strong { display: block; font-size: 12px; }
.hero-sequence small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 2px; }
.hero-cta { width: 100%; min-height: 42px; padding: 0 13px; color: var(--text); background: rgba(255,255,255,.055); border: 1px solid var(--line); justify-content: space-between; }
.demo-disclosure { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid rgba(117,230,230,.18); border-radius: 13px; background: rgba(117,230,230,.04); }
.disclosure-badge { white-space: nowrap; color: var(--cyan); font: 800 8px ui-monospace, monospace; letter-spacing: .13em; }
.demo-disclosure p { color: #aab3b3; font-size: 11px; line-height: 1.5; margin: 0; }
.demo-disclosure strong { color: var(--text); }
.workspace-grid { grid-template-columns: minmax(335px, .72fr) minmax(610px, 1.5fr); scroll-margin-top: 90px; }
.brief-panel, .recent-panel { padding: 22px; }
.panel-heading { margin-bottom: 17px; }
.index { width: auto; min-width: 40px; height: 28px; padding: 0 7px; border-radius: 8px; font-size: 8px; }
.scenario-list { display: grid; gap: 7px; margin-bottom: 18px; }
.scenario-card { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left; color: var(--text); background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 11px; padding: 10px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.scenario-card:hover { transform: translateX(2px); border-color: rgba(247,147,26,.42); }
.scenario-card.selected { border-color: rgba(247,147,26,.75); background: rgba(247,147,26,.075); }
.scenario-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #0d1011; border: 1px solid var(--line); color: var(--orange); font: 900 10px ui-monospace, monospace; }
.scenario-card.selected .scenario-icon { background: var(--orange); color: #171007; border-color: var(--orange); }
.scenario-card strong { display: block; font-size: 11px; }
.scenario-card small { display: block; color: var(--muted); margin-top: 2px; font-size: 9px; line-height: 1.3; }
.scenario-signal { color: #747c7c; font: 800 7px ui-monospace, monospace; letter-spacing: .09em; }
.scenario-card.selected .scenario-signal { color: var(--orange); }
.field-heading { display: flex; align-items: center; justify-content: space-between; }
.field-heading span { color: #656d6d; font: 700 8px ui-monospace, monospace; }
textarea { min-height: 112px; font-size: 12px; }
.form-footnote { display: flex; gap: 8px; margin: 12px 1px 0; color: #737b7b; font-size: 9px; line-height: 1.45; }
.form-footnote span { color: var(--orange); }
.signature-panel { min-height: 620px; }
.welcome-state { min-height: 405px; }
.welcome-state > p:nth-of-type(2) { color: var(--muted); max-width: 590px; margin: 0; line-height: 1.55; font-size: 12px; }
.actor-flow { width: min(100%, 650px); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 9px; align-items: center; margin: 25px auto 18px; }
.actor-flow > i { color: #555e5e; font-style: normal; font-size: 17px; }
.actor-card { min-width: 0; padding: 14px 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.actor-card.featured { border-color: rgba(247,147,26,.45); background: rgba(247,147,26,.055); }
.actor-card span { display: block; color: var(--orange); font: 800 8px ui-monospace, monospace; }
.actor-card strong { display: block; margin-top: 6px; font-size: 11px; }
.actor-card small { display: block; color: var(--muted); font-size: 8px; line-height: 1.4; margin-top: 4px; }
.judge-cue { width: min(100%, 650px); display: grid; grid-template-columns: auto 1fr; gap: 13px; text-align: left; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.judge-cue span { color: var(--cyan); font: 800 8px ui-monospace, monospace; letter-spacing: .1em; }
.judge-cue p { color: #9da4a4; margin: 0; font-size: 10px; line-height: 1.45; }
.capability-section { margin-top: 70px; padding-top: 36px; border-top: 1px solid var(--line); }
.capability-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 24px; }
.capability-heading h2 { margin: 7px 0 0; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.045em; }
.capability-heading > p { color: var(--muted); font-size: 12px; margin: 0; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.capability-grid article { padding: 20px; min-height: 155px; border: 1px solid var(--line); border-radius: 13px; background: rgba(18,21,22,.65); }
.capability-grid article > span { color: var(--orange); font: 800 8px ui-monospace, monospace; }
.capability-grid h3 { margin: 20px 0 7px; font-size: 15px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.site-footer { max-width: 1510px; margin: 0 auto; padding: 23px clamp(18px, 4vw, 64px) 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #646b6b; font: 700 8px ui-monospace, monospace; letter-spacing: .08em; }
.site-footer p { margin: 0; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 25px; }
  .hero-demo-card { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; }
  .hero-card-topline, .hero-cta { grid-column: 1 / -1; }
  .hero-sequence { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .control-column { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 760px) {
  .topbar { height: 62px; }
  .readiness span:last-child { display: none; }
  .hero { padding: 35px 0 24px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-demo-card, .capability-heading { display: block; }
  .hero-sequence { display: block; }
  .demo-disclosure { grid-template-columns: 1fr; gap: 7px; }
  .actor-flow { grid-template-columns: 1fr; }
  .actor-flow > i { transform: rotate(90deg); }
  .judge-cue { grid-template-columns: 1fr; gap: 6px; }
  .capability-heading > p { margin-top: 10px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: auto; }
  .site-footer { display: block; }
  .site-footer p { margin-top: 8px; }
}

/* Single-screen product workbench */
html, body { height: 100%; overflow: hidden; }
body { min-height: 0; }
.topbar { position: relative; height: 68px; padding-inline: clamp(16px, 3.2vw, 52px); }
.topbar-right { gap: 12px; }
.readiness, .network { font-size: 11px; }
.session-button { font-size: 10px; }
.app-shell {
  width: min(100%, 1510px);
  height: calc(100svh - 68px);
  margin: 0 auto;
  padding: 0 clamp(14px, 3.2vw, 52px) 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.product-intro {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.product-intro h1 { margin: 5px 0 0; font-size: clamp(30px, 3.1vw, 49px); line-height: .95; letter-spacing: -.052em; }
.product-intro h1 em { color: #929999; font-style: normal; }
.product-intro .eyebrow, .launcher-panel .kicker { font-size: 11px; }
.view-panel { height: 100%; min-height: 0; padding-top: 12px; overflow: hidden; }
.view-panel[hidden] { display: none !important; }
.run-grid { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(300px, .62fr) minmax(540px, 1.38fr); gap: 12px; }
.launcher-panel, .signature-panel { height: 100%; min-height: 0; }
.launcher-panel { padding: 15px 17px; overflow: auto; scrollbar-width: thin; scrollbar-color: #383d3e transparent; }
.compact-heading { margin-bottom: 11px; }
.compact-heading .index { min-width: 34px; height: 25px; }
.compact-heading h2 { font-size: 20px; margin-top: 3px; }
.scenario-list { gap: 6px; margin-bottom: 11px; }
.scenario-card.preset { min-height: 54px; padding: 9px 11px; border-radius: 10px; }
.scenario-icon { width: 29px; height: 29px; font-size: 11px; }
.scenario-card strong { font-size: 14px; }
.scenario-card small { font-size: 12px; }
.field-heading label { margin-bottom: 6px; }
.launcher-panel textarea { min-height: 88px; max-height: 122px; resize: none; padding: 11px 12px; font-size: 14px; line-height: 1.5; }
.launcher-panel .form-row { margin-top: 8px; }
.launcher-panel label { margin-bottom: 6px; font-size: 12px; }
.launcher-panel input, .launcher-panel select { padding: 10px 11px; font-size: 13px; }
.launcher-panel .button.primary { min-height: 44px; margin-top: 10px; border-radius: 10px; font-size: 14px; }
.field-limit { float: right; color: #737b7b; font: 750 8px ui-monospace, monospace; letter-spacing: .05em; }
.launcher-panel .file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.upload-button { min-height: 38px; margin: 0; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; color: #aeb4b4; border: 1px dashed rgba(255,255,255,.2); border-radius: 11px; background: #0e1112; cursor: pointer; }
.upload-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-button b { flex: 0 0 auto; color: var(--orange); font-size: 17px; }
.has-file .upload-button { color: var(--text); border-style: solid; border-color: rgba(247,147,26,.6); background: rgba(247,147,26,.06); }
.reference-link-field { margin-top: 10px; }
.signature-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.signature-panel::after { width: 270px; height: 270px; right: -130px; top: 105px; }
.signature-topline { flex: 0 0 auto; padding: 10px 16px; font-size: 11px; }
.stage-track { flex: 0 0 auto; padding: 12px 16px; }
.stage-track li { grid-template-columns: 24px 1fr; column-gap: 7px; }
.stage-track li span { width: 24px; height: 24px; }
.stage-track li:not(:last-child)::after { top: 12px; left: 31px; }
.stage-track b { font-size: 12px; }
.stage-track small { font-size: 10px; }
.stage-content { flex: 1 1 auto; min-height: 0; padding: 18px 22px; overflow: auto; scrollbar-width: thin; scrollbar-color: #383d3e transparent; }
.welcome-state { min-height: 0; }
.welcome-state h2 { margin: 18px 0 4px; font-size: clamp(22px, 2vw, 31px); }
.welcome-state > p:last-child { margin: 0; font-size: 13px; }
.motion-flow { width: min(100%, 680px); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.motion-flow span { min-height: 68px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: #a5abab; background: rgba(255,255,255,.018); font: 850 12px ui-monospace, monospace; letter-spacing: .11em; }
.motion-flow .active-node { color: #171007; border-color: var(--orange); background: var(--orange); box-shadow: 0 0 42px rgba(247,147,26,.18); animation: agentPulse 2.4s ease-in-out infinite; }
.motion-flow i { color: #555d5d; font-style: normal; animation: arrowPulse 2.4s ease-in-out infinite; }
.motion-flow i:nth-of-type(2) { animation-delay: .4s; }
.motion-flow i:nth-of-type(3) { animation-delay: .8s; }
@keyframes agentPulse { 50% { transform: translateY(-3px); box-shadow: 0 0 54px rgba(247,147,26,.3); } }
@keyframes arrowPulse { 50% { color: var(--orange); transform: translateX(2px); } }
.action-bar { flex: 0 0 auto; padding: 10px 16px; }
.section-title { margin-bottom: 13px; }
.section-title h2 { font-size: 22px; }
.data-grid { gap: 7px; margin-bottom: 12px; }
.datum { padding: 10px; }
.datum strong { font-size: 11px; }
.candidate-list { gap: 6px; }
.candidate { padding: 10px 11px; }
.notice { padding: 9px 10px; font-size: 10px; }
.payment-card { padding: 14px; }
.payment-card h3 { font-size: 16px; }
.amount { font-size: 21px; }
.swipe-hint { display: none; }
.tab-surface { height: 100%; min-height: 0; padding: clamp(18px, 2.4vw, 32px); overflow: auto; }
.tab-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 17px; }
.tab-title h2 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 39px); letter-spacing: -.045em; }
.compact-grid { height: calc(100% - 74px); min-height: 340px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 9px; }
.compact-grid article { min-height: 0; padding: clamp(15px, 2vw, 25px); display: flex; flex-direction: column; justify-content: center; }
.compact-grid article > span { font-size: 13px; }
.compact-grid h3 { margin: 13px 0 5px; font-size: clamp(14px, 1.4vw, 19px); }
.compact-grid p { font-size: 10px; }
.controls-surface { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.control-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.control-flow span { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #b5bbbb; background: rgba(255,255,255,.018); font: 850 8px ui-monospace, monospace; letter-spacing: .1em; }
.control-flow i { color: var(--orange); font-style: normal; }
.control-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; }
.control-grid article { min-height: 84px; padding: 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-content: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.control-grid article > span { grid-row: 1 / 3; color: var(--orange); font: 850 9px ui-monospace, monospace; }
.control-grid strong { font-size: 12px; }
.control-grid small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.preview-strip { min-height: 39px; margin-top: 10px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(117,230,230,.18); border-radius: 10px; color: #939b9b; background: rgba(117,230,230,.035); font: 800 7px ui-monospace, monospace; letter-spacing: .09em; }

@media (max-width: 1080px) {
  .run-grid { grid-template-columns: minmax(290px, .68fr) minmax(480px, 1.32fr); }
  .stage-track b, .stage-track small { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 58px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 18px; }
  .brand strong { font-size: 11px; }
  .brand small, .readiness span:last-child, .network { display: none; }
  .topbar-right { gap: 8px; }
  .session-button { padding: 7px 8px; font-size: 9px; }
  .app-shell { height: calc(100svh - 58px); padding: 0 10px 8px; grid-template-rows: 69px minmax(0, 1fr); }
  .product-intro { min-height: 0; grid-template-columns: 1fr; }
  .product-intro .eyebrow { display: none; }
  .product-intro h1 { margin: 0; font-size: clamp(25px, 8vw, 34px); }
  .view-panel { padding-top: 8px; }
  #create-view { position: relative; padding-bottom: 21px; }
  .run-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100vw - 20px); grid-template-columns: none; gap: 9px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .run-grid::-webkit-scrollbar { display: none; }
  .launcher-panel, .signature-panel { width: calc(100vw - 20px); scroll-snap-align: start; scroll-snap-stop: always; }
  .launcher-panel { padding: 12px 13px; }
  .scenario-list { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .scenario-card.preset { min-height: 62px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 3px; padding: 7px; }
  .scenario-card .scenario-icon { width: 22px; height: 22px; }
  .scenario-card > span:nth-child(2) { grid-column: 1 / -1; }
  .scenario-card small { display: none; }
  .launcher-panel textarea { min-height: 96px; max-height: 96px; }
  .form-row { grid-template-columns: 1fr; }
  .signature-topline { padding: 9px 12px; }
  .stage-track { padding: 10px 12px; }
  .stage-track li { grid-template-columns: 22px 1fr; }
  .stage-track li span { width: 22px; height: 22px; }
  .stage-track li:not(:last-child)::after { top: 11px; left: 27px; right: 5px; }
  .stage-content { padding: 14px; }
  .motion-flow { grid-template-columns: 1fr auto 1fr; max-width: 300px; }
  .motion-flow span { min-height: 50px; padding: 8px; font-size: 9px; }
  .motion-flow span:nth-of-type(n+3), .motion-flow i:nth-of-type(n+2) { display: none; }
  .welcome-state h2 { font-size: 23px; }
  .swipe-hint { position: absolute; left: 0; right: 0; bottom: 0; height: 17px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #7e8686; font: 800 8px ui-monospace, monospace; letter-spacing: .1em; }
  .swipe-hint i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
  .tab-surface { padding: 14px; }
  .tab-title { padding-bottom: 10px; }
  .tab-title h2 { font-size: 24px; }
  .compact-grid { height: auto; min-height: 0; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(105px, 1fr)); }
  .compact-grid article { padding: 13px; }
  .compact-grid h3 { font-size: 13px; }
  .compact-grid p { font-size: 8px; }
  .controls-surface { display: block; }
  .control-flow { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .control-flow span { min-height: 39px; font-size: 6px; }
  .control-flow span:nth-of-type(n+4), .control-flow i:nth-of-type(n+4) { display: none; }
  .control-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .control-grid article { min-height: 76px; padding: 10px; }
  .preview-strip { padding: 8px 10px; flex-wrap: wrap; justify-content: flex-start; line-height: 1.4; }
  .data-grid, .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { align-items: start; }
  .section-title h2 { font-size: 20px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .product-intro { min-height: 76px; }
  .product-intro h1 { font-size: 34px; }
  .app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .scenario-card.preset { min-height: 40px; }
  .launcher-panel textarea { min-height: 60px; }
  .motion-flow span { min-height: 52px; }
}
