:root {
  color-scheme: light;
  --page: #f1f0eb;
  --paper: #fafaf7;
  --ink: #18141d;
  --ink-soft: #6d6872;
  --page-line: #d9d5dc;
  --tm-bg: #17101f;
  --tm-panel: #1d1427;
  --tm-panel-2: #24182f;
  --tm-row: #21172b;
  --tm-row-hover: #2a1c36;
  --tm-line: #392944;
  --tm-line-soft: #2d2038;
  --tm-text: #ddd4e6;
  --tm-muted: #968a9e;
  --tm-faint: #6f6377;
  --purple: #d966f4;
  --purple-soft: #492054;
  --green: #79e0af;
  --green-soft: #16382d;
  --amber: #e8bc5d;
  --amber-soft: #3b2d10;
  --blue: #8da7ff;
  --danger: #ef8ba0;
  --shadow: 0 28px 80px rgba(35, 24, 42, 0.18);
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 108px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(217, 102, 244, 0.10), transparent 28rem),
    linear-gradient(180deg, #f7f6f2 0%, var(--page) 55%, #ebe9e4 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 40px), 1450px); margin-inline: auto; }

.site-head {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.brand span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--tm-bg); font: 800 11px/1 var(--mono); }
.site-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font: 700 10px/1 var(--mono); letter-spacing: .1em; }
.site-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(121, 224, 175, .16); }

.intro {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(32px, 7vw, 104px);
  overflow: hidden;
  border-radius: 26px;
  color: var(--tm-text);
  background:
    linear-gradient(125deg, rgba(217, 102, 244, .08), transparent 45%),
    var(--tm-bg);
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 18px; color: var(--green); font: 800 10px/1 var(--mono); letter-spacing: .14em; }
.eyebrow.dark { color: #7651b6; }
.intro h1, .study-heading h2, .recommendation h2 { margin: 0; letter-spacing: -.055em; line-height: .98; }
.intro h1 { max-width: 1040px; font-size: clamp(52px, 6.5vw, 96px); }
.intro h1 em { color: var(--purple); font-style: normal; }
.intro-copy { max-width: 730px; margin: 30px 0 0; color: #a99daf; font-size: 18px; line-height: 1.65; }
.jump { display: inline-flex; align-items: center; gap: 20px; width: fit-content; margin-top: 36px; color: var(--tm-text); text-decoration: none; font-weight: 700; }
.jump span { color: var(--green); }

.diagnosis { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 54px 70px; }
.diagnosis article { min-height: 104px; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 14px 28px; border-right: 1px solid var(--page-line); }
.diagnosis article:first-child { padding-left: 0; }
.diagnosis article:last-child { border-right: 0; }
.diagnosis article > span { color: #8969a2; font: 750 12px/1 var(--mono); }
.diagnosis b { display: block; margin-bottom: 9px; font-size: 15px; }
.diagnosis p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

.study { padding-block: 32px 78px; }
.study-heading { display: grid; grid-template-columns: 1fr minmax(260px, 460px); gap: 40px; align-items: end; margin-bottom: 28px; }
.study-heading.compact { grid-template-columns: 1fr; }
.study-heading h2 { font-size: clamp(42px, 5vw, 68px); }
.study-heading > p { margin: 0 0 4px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.variant-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.variant-tab {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 9px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(250, 250, 247, .72);
  text-align: left;
  cursor: pointer;
}
.variant-tab:hover { border-color: #b7a8c2; background: var(--paper); }
.variant-tab.active { border-color: var(--tm-bg); color: var(--tm-text); background: var(--tm-bg); }
.variant-tab > span { grid-row: 1 / 3; color: #9573ad; font: 800 11px/1 var(--mono); }
.variant-tab.active > span { color: var(--purple); }
.variant-tab b, .variant-tab small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-tab b { font-size: 14px; }
.variant-tab small { color: var(--ink-soft); font: 700 9px/1.2 var(--mono); letter-spacing: .05em; }
.variant-tab.active small { color: #9d90a5; }

.prototype-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; align-items: stretch; }
.app-window { min-width: 0; overflow: hidden; border: 1px solid #2b2033; border-radius: 14px; background: var(--tm-bg); box-shadow: var(--shadow); }
.window-bar { height: 38px; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 0 13px; border-bottom: 1px solid var(--tm-line-soft); color: var(--tm-muted); font: 600 10px/1 var(--mono); }
.window-bar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar > b { color: var(--green); font-size: 9px; letter-spacing: .08em; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #493853; }
.window-dots i:nth-child(2) { background: #6d4776; }
.window-dots i:nth-child(3) { background: var(--purple); }
.app-body { min-height: 820px; display: grid; grid-template-columns: 420px minmax(260px, 1fr); }

.fleet-rail { min-width: 0; height: 820px; display: grid; grid-template-rows: 58px 48px minmax(0, 1fr) 76px; overflow: hidden; border-right: 1px solid var(--tm-line); color: var(--tm-text); background: var(--tm-bg); }
.fleet-title { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 0 17px; border-bottom: 1px solid var(--tm-line); font-size: 13px; }
.fleet-title b { color: #bdb2c4; font-weight: 500; }
.fleet-title i { color: var(--tm-muted); font-style: normal; }
.lens-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 9px 11px; border-bottom: 1px solid var(--tm-line); }
.lens-tabs button { min-width: 0; border: 0; color: #aa9fb1; background: transparent; font-size: 14px; cursor: default; }
.lens-tabs button.active { color: #f2eafa; background: #5b2b6b; }
.lens-tabs button i { width: 5px; height: 5px; display: inline-block; margin: 0 5px 2px 0; background: #f06bd5; }
.fleet-list { min-height: 0; overflow: hidden auto; scrollbar-color: #5b3b67 transparent; scrollbar-width: thin; font-size: 15px; }
.new-pane { display: grid; align-content: center; gap: 9px; padding: 8px 12px; border-top: 1px solid var(--tm-line); background: #1a1223; }
.new-pane > span { color: #b8aebd; font-size: 11px; }
.new-pane div { display: flex; gap: 5px; }
.new-pane button { padding: 8px 10px; border: 1px solid #4b3a56; color: var(--tm-text); background: #281c32; font-size: 13px; }

.server-block { min-width: 0; border-bottom: 1px solid var(--tm-line); }
.server-dot { width: 7px; height: 7px; flex: 0 0 auto; background: var(--green); box-shadow: 0 0 0 3px rgba(121, 224, 175, .06); }
.tree-mark { flex: 0 0 auto; color: #b8aec0; font: 600 11px/1 var(--mono); }
.row-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--tm-muted); }
.faint { color: var(--tm-faint); }
.mono { font-family: var(--mono); }
.status-live { color: var(--green); }
.status-run { color: var(--green); }
.status-done { color: var(--purple); }
.status-idle, .status-loop { color: var(--amber); }
.status-owned { color: var(--green); }
.pane-icon { width: 21px; height: 21px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; color: #91819d; font: 700 10px/1 var(--mono); }
.pane-icon.codex { color: var(--green); }
.pane-icon.claude { color: #e28c66; }
.pane-icon.kimi { color: #9e86ff; }
.pane-icon.grok { color: #d877ee; }
.pane-row { cursor: pointer; }
.pane-row:hover { background: var(--tm-row-hover); }
.pane-row.is-selected { background: #442251; box-shadow: inset 2px 0 var(--purple); }

/* 01 — stacked hierarchy */
.stacked-hierarchy .server-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 13px 14px 11px; }
.stacked-hierarchy .server-name { min-width: 0; display: flex; gap: 9px; align-items: center; }
.stacked-hierarchy .server-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; letter-spacing: .02em; }
.stacked-hierarchy .server-action { color: #887b90; font-size: 10px; }
.stacked-hierarchy .server-meta { grid-column: 1 / -1; display: flex; gap: 11px; padding-left: 16px; color: var(--tm-muted); font: 600 10px/1 var(--mono); }
.stacked-hierarchy .workspace { margin: 0 10px 10px 16px; border-left: 1px solid #382a42; }
.stacked-hierarchy .workspace-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding: 9px 8px 7px 10px; }
.stacked-hierarchy .workspace-main { min-width: 0; display: flex; gap: 7px; align-items: center; }
.stacked-hierarchy .workspace-main .row-label { color: #b8aec0; font-size: 14px; }
.stacked-hierarchy .workspace-state { font: 650 10px/1 var(--mono); }
.stacked-hierarchy .workspace-meta { grid-column: 1 / -1; display: flex; gap: 9px; padding-left: 18px; color: var(--tm-faint); font: 600 10px/1 var(--mono); }
.stacked-hierarchy .pane-row { min-width: 0; min-height: 38px; display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 9px; align-items: center; margin-left: 18px; padding: 7px 8px; background: var(--tm-row); }
.stacked-hierarchy .pane-copy { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; }
.stacked-hierarchy .pane-copy .row-label { font-size: 14px; }
.stacked-hierarchy .pane-state { font: 650 10px/1 var(--mono); }
.stacked-hierarchy .pane-meta { grid-column: 1 / -1; overflow: hidden; color: var(--tm-faint); font: 600 9px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

/* 02 — fixed status gutter */
.status-gutter .server-block { position: relative; }
.status-gutter .gutter-server { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 61px; border-bottom: 1px solid var(--tm-line-soft); }
.status-gutter .gutter-server-main { min-width: 0; display: grid; gap: 5px; padding: 12px 10px 10px 14px; }
.status-gutter .gutter-server-name { min-width: 0; display: flex; gap: 8px; align-items: center; }
.status-gutter .gutter-server-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.status-gutter .gutter-server-main small { overflow: hidden; color: var(--tm-muted); font: 600 9px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.gutter-cell { display: grid; place-items: center; border-left: 1px solid #402d49; color: var(--tm-muted); background: #1a1222; font: 750 9px/1 var(--mono); }
.gutter-cell.live { color: var(--green); }
.gutter-cell.run { color: var(--green); }
.gutter-cell.done { color: var(--purple); }
.gutter-cell.idle, .gutter-cell.loop { color: var(--amber); }
.status-gutter .gutter-workspace, .status-gutter .gutter-pane { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 61px; }
.status-gutter .gutter-workspace { border-bottom: 1px solid #2c2035; }
.status-gutter .gutter-workspace-main { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 9px 8px 8px 20px; }
.status-gutter .gutter-workspace-main .row-label { color: #aca0b4; font-size: 13px; }
.status-gutter .gutter-workspace-main small { flex: 0 0 auto; color: var(--tm-faint); font: 600 9px/1 var(--mono); }
.status-gutter .gutter-pane-main { min-width: 0; display: flex; align-items: center; gap: 9px; margin: 3px 5px 3px 26px; padding: 7px 8px; background: var(--tm-row); }
.status-gutter .gutter-pane-main .row-label { font-size: 13px; }
.status-gutter .gutter-pane.is-selected .gutter-pane-main { background: #442251; box-shadow: inset 2px 0 var(--purple); }

/* 03 — compact until focused */
.focus-expand .focus-server { min-width: 0; padding: 12px 12px 10px; }
.focus-expand .focus-server-line { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.focus-expand .focus-server-line b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.focus-expand .focus-server-line em { color: var(--green); font: 750 10px/1 var(--mono); font-style: normal; }
.focus-expand .focus-server-meta { display: flex; gap: 8px; margin: 7px 0 0 16px; color: var(--tm-faint); font: 600 9px/1 var(--mono); }
.focus-expand .focus-workspace { min-width: 0; margin: 0 10px 9px 16px; border-left: 1px solid #382a42; }
.focus-expand .focus-workspace-head { min-width: 0; display: flex; gap: 7px; align-items: center; padding: 8px 8px 6px 10px; color: #ada2b5; }
.focus-expand .focus-workspace-head small { flex: 0 0 auto; color: var(--tm-faint); font: 600 9px/1 var(--mono); }
.focus-expand .pane-row { min-width: 0; min-height: 34px; display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-left: 17px; padding: 6px 8px; background: var(--tm-row); transition: min-height .16s ease, background .16s ease; }
.focus-expand .pane-row + .pane-row { margin-top: 2px; }
.focus-expand .pane-icon { width: 19px; height: 19px; }
.focus-expand .pane-row .row-label { font-size: 13px; }
.focus-expand .focus-state { font: 700 9px/1 var(--mono); }
.focus-expand .focus-detail { display: none; grid-column: 2 / -1; color: #b7a8bf; font: 600 10px/1.35 var(--mono); }
.focus-expand .pane-row.is-selected { min-height: 57px; grid-template-rows: auto auto; background: #442251; }
.focus-expand .pane-row.is-selected .row-label { white-space: normal; line-height: 1.25; }
.focus-expand .pane-row.is-selected .focus-detail { display: block; }

/* 04 — quiet ledger */
.quiet-ledger .ledger-server { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 13px 12px 10px; }
.quiet-ledger .ledger-server-name { min-width: 0; display: flex; gap: 8px; align-items: center; }
.quiet-ledger .ledger-server-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.quiet-ledger .ledger-total { color: var(--green); font: 750 10px/1 var(--mono); }
.quiet-ledger .ledger-summary { grid-column: 1 / -1; display: flex; gap: 12px; padding-left: 15px; color: var(--tm-faint); font: 600 9px/1 var(--mono); }
.quiet-ledger .ledger-workspace { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0 9px 7px 16px; padding: 7px 7px 5px 10px; border-left: 1px solid #382a42; color: #9f93a7; }
.quiet-ledger .ledger-workspace .row-label { font-size: 12px; }
.quiet-ledger .ledger-workspace small { color: var(--tm-faint); font: 650 9px/1 var(--mono); }
.quiet-ledger .pane-row { min-width: 0; min-height: 34px; display: grid; grid-template-columns: 18px minmax(0, 1fr) 9px; gap: 8px; align-items: center; margin-left: 18px; padding: 6px 8px; background: var(--tm-row); }
.quiet-ledger .pane-icon { width: 18px; height: 18px; border: 0; }
.quiet-ledger .pane-row .row-label { font-size: 13px; }
.quiet-ledger .ledger-signal { width: 7px; height: 7px; justify-self: end; background: #5f5267; }
.quiet-ledger .ledger-signal.run { background: var(--green); }
.quiet-ledger .ledger-signal.done { background: var(--purple); }
.quiet-ledger .ledger-signal.idle { background: var(--amber); }
.quiet-ledger .pane-row.is-selected { background: #442251; box-shadow: inset 2px 0 var(--purple); }

.terminal-ghost { position: relative; min-width: 0; overflow: hidden; background: #120c18; }
.terminal-head { height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid #32233c; color: #9a8ba2; font: 600 11px/1 var(--mono); }
.terminal-head b { color: var(--green); font-size: 9px; }
.terminal-lines { display: grid; gap: 17px; padding: 35px 30px; opacity: .68; }
.terminal-lines i { height: 8px; border-radius: 2px; background: linear-gradient(90deg, #493453 0 32%, transparent 32% 36%, #2d2434 36% 78%, transparent 78%); }
.terminal-lines i:nth-child(2n) { width: 83%; }
.terminal-lines i:nth-child(3n) { width: 62%; }
.terminal-focus { position: absolute; right: 24px; bottom: 26px; width: min(330px, calc(100% - 48px)); padding: 16px; border: 1px solid #453151; color: var(--tm-text); background: #1b1323; }
.terminal-focus small { display: block; margin-bottom: 8px; color: var(--purple); font: 700 9px/1 var(--mono); }
.terminal-focus b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.variant-brief { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: 14px; color: var(--tm-text); background: var(--tm-bg); }
.brief-number { display: flex; justify-content: space-between; color: var(--purple); font: 750 11px/1 var(--mono); }
.brief-number b { color: var(--green); font-size: 9px; }
.variant-brief h3 { margin: 32px 0 12px; font-size: 31px; letter-spacing: -.045em; }
.variant-brief > p { min-height: 105px; margin: 0; color: #a99daf; font-size: 14px; line-height: 1.55; }
.brief-facts { display: grid; gap: 0; margin: 22px 0 0; }
.brief-facts div { padding: 13px 0; border-top: 1px solid var(--tm-line); }
.brief-facts dt { margin-bottom: 6px; color: var(--tm-faint); font: 700 8px/1 var(--mono); letter-spacing: .08em; }
.brief-facts dd { margin: 0; color: var(--tm-text); font-size: 12px; line-height: 1.4; }
.brief-verdict { margin-top: auto; padding: 14px; border-left: 2px solid var(--purple); color: #b8acbf; background: #21172b; font-size: 12px; line-height: 1.45; }
.brief-verdict b { display: block; margin-bottom: 5px; color: var(--purple); font: 750 8px/1 var(--mono); letter-spacing: .08em; }
.brief-choose { margin-top: 10px; padding: 12px; border: 1px solid #4d3a59; color: var(--tm-text); background: #2a1c35; cursor: pointer; }
.brief-choose:hover, .brief-choose.selected { border-color: var(--purple); background: #4a2457; }

.stress-contract { display: grid; grid-template-columns: repeat(3, 1fr); margin-right: 322px; border: 1px solid var(--page-line); border-top: 0; background: rgba(250, 250, 247, .66); }
.stress-contract span { padding: 14px 18px; border-right: 1px solid var(--page-line); color: var(--ink-soft); font-size: 12px; }
.stress-contract span:last-child { border-right: 0; }
.stress-contract b { color: var(--ink); font-family: var(--mono); }

.comparison { padding-block: 68px 92px; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.comparison-card { min-height: 330px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--page-line); border-radius: 12px; background: rgba(250, 250, 247, .72); }
.comparison-card.selected { border-color: #8853a0; box-shadow: inset 0 0 0 1px #8853a0; }
.comparison-card header { display: flex; justify-content: space-between; color: #87649e; font: 750 10px/1 var(--mono); }
.comparison-card header b { color: var(--ink-soft); font-size: 8px; }
.comparison-card h3 { margin: 30px 0 11px; font-size: 23px; letter-spacing: -.035em; }
.comparison-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.card-trade { display: grid; gap: 9px; margin: 22px 0; }
.card-trade div { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 11px; line-height: 1.35; }
.card-trade b { color: #87649e; font: 700 8px/1.4 var(--mono); }
.comparison-card footer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.comparison-card button { padding: 9px; border: 1px solid var(--page-line); color: var(--ink); background: transparent; font-size: 11px; cursor: pointer; }
.comparison-card button:last-child { color: var(--tm-text); background: var(--tm-bg); }

.recommendation { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 38px; border-radius: 18px; color: var(--tm-text); background: var(--tm-bg); }
.recommendation-number { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid #583a65; color: var(--purple); font: 800 16px/1 var(--mono); }
.recommendation h2 { font-size: 47px; }
.recommendation p:last-child { max-width: 780px; margin: 16px 0 0; color: #a99daf; font-size: 14px; line-height: 1.55; }
.recommendation button { padding: 13px 16px; border: 1px solid #5e426a; color: var(--tm-text); background: #2a1c35; cursor: pointer; }
.recommendation button:hover { border-color: var(--purple); }

.site-foot { height: 106px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font: 650 10px/1 var(--mono); letter-spacing: .05em; }
.decision-dock { position: fixed; z-index: 20; right: 18px; bottom: 18px; left: 18px; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 14px 12px 22px; border: 1px solid #3d2b48; border-radius: 12px; color: var(--tm-text); background: rgba(23, 16, 31, .96); box-shadow: 0 20px 60px rgba(20, 12, 25, .28); backdrop-filter: blur(14px); }
.decision-dock div { min-width: 0; display: flex; align-items: center; gap: 16px; }
.decision-dock span { color: var(--purple); font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.decision-dock b { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.decision-dock button { padding: 12px 15px; border: 0; color: var(--tm-bg); background: var(--green); font-weight: 750; cursor: pointer; }
.decision-dock button:disabled { color: #887f8d; background: #302636; cursor: not-allowed; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 104px; max-width: min(440px, calc(100% - 30px)); padding: 12px 16px; border: 1px solid #5a3e66; border-radius: 9px; color: var(--tm-text); background: #21172b; font-size: 12px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .prototype-grid { grid-template-columns: 1fr; }
  .variant-brief { display: grid; grid-template-columns: 80px minmax(180px, .7fr) 1fr; gap: 16px; align-items: start; }
  .variant-brief h3 { margin: 2px 0; }
  .variant-brief > p { min-height: 0; }
  .brief-facts { grid-column: 2 / -1; grid-template-columns: repeat(3, 1fr); }
  .brief-verdict, .brief-choose { grid-column: 2 / -1; }
  .stress-contract { margin-right: 0; }
  .comparison-grid { grid-template-columns: repeat(2, 1fr); }
  .recommendation { grid-template-columns: 72px 1fr; }
  .recommendation button { grid-column: 2; justify-self: start; }
}

@media (max-width: 780px) {
  body { padding-bottom: 120px; }
  .shell { width: min(calc(100% - 20px), 1450px); }
  .site-head { height: 64px; }
  .site-meta { font-size: 8px; }
  .intro { min-height: auto; padding: 46px 24px; border-radius: 17px; }
  .intro h1 { font-size: clamp(42px, 12vw, 66px); }
  .intro-copy { font-size: 15px; }
  .diagnosis { grid-template-columns: 1fr; padding-block: 38px 54px; }
  .diagnosis article, .diagnosis article:first-child { min-height: auto; padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--page-line); }
  .diagnosis article:last-child { border-bottom: 0; }
  .study-heading { grid-template-columns: 1fr; gap: 14px; }
  .study-heading h2 { font-size: 44px; }
  .variant-tabs { display: flex; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .variant-tabs::-webkit-scrollbar { display: none; }
  .variant-tab { min-width: 215px; scroll-snap-align: start; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .fleet-rail { width: min(100%, 420px); border-right: 0; }
  .terminal-ghost { display: none; }
  .window-bar { grid-template-columns: 60px minmax(0, 1fr); }
  .window-bar b { display: none; }
  .variant-brief { display: block; }
  .variant-brief > p { min-height: 0; }
  .stress-contract { grid-template-columns: 1fr; }
  .stress-contract span { border-right: 0; border-bottom: 1px solid var(--page-line); }
  .stress-contract span:last-child { border-bottom: 0; }
  .comparison-grid { grid-template-columns: 1fr; }
  .recommendation { grid-template-columns: 1fr; padding: 28px 23px; }
  .recommendation h2 { font-size: 39px; }
  .recommendation button { grid-column: 1; justify-self: stretch; }
  .site-foot { display: grid; align-content: center; gap: 8px; }
  .decision-dock { align-items: stretch; padding: 10px; }
  .decision-dock div { display: grid; gap: 4px; padding-left: 6px; }
  .decision-dock button { max-width: 176px; }
}

@media (max-width: 460px) {
  .shell { width: min(calc(100% - 12px), 1450px); }
  .site-meta { display: none; }
  .app-window { border-radius: 9px; }
  .app-body, .fleet-rail { min-height: 760px; height: 760px; }
  .fleet-rail { grid-template-rows: 52px 45px minmax(0, 1fr) 72px; }
  .lens-tabs { padding-inline: 7px; }
  .lens-tabs button { font-size: 12px; }
  .decision-dock b { font-size: 12px; }
  .decision-dock button { max-width: 158px; padding-inline: 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
