:root {
  color-scheme: dark;
  --page: #100b16;
  --page-raised: #17101f;
  --paper: #eee9ef;
  --ink: #18131b;
  --ink-muted: #6b626e;
  --violet: #bc70e5;
  --violet-deep: #5f2f76;
  --violet-dark: #3e204e;
  --mint: #7ff2ba;
  --pink: #f178b8;
  --amber: #e8bd5f;
  --rail: #130e1b;
  --rail-raised: #1b1424;
  --rail-row: #1d1627;
  --rail-line: #30243a;
  --rail-text: #c5bdc9;
  --rail-muted: #887e8e;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -5%, rgba(188, 112, 229, 0.14), transparent 29rem),
    var(--page);
  color: #f4eef6;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

button { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid #df9dff;
  outline-offset: 2px;
}

.grain {
  position: fixed;
  z-index: 30;
  inset: 0;
  opacity: 0.024;
  pointer-events: none;
  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='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand {
  color: inherit;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand span { color: var(--violet); font-weight: 700; }

.header-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9d91a2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
}

.header-state i {
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 13px rgba(127,242,186,.7);
}

.hero {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr);
  align-items: end;
  gap: 72px;
  padding-block: 86px 74px;
}

.eyebrow {
  margin: 0 0 17px;
  color: #a88cb5;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .13em;
}

.eyebrow.ink { color: #776d7c; }

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.064em;
}

.hero h1 em {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-note {
  margin: 0 0 5px;
  padding-left: 22px;
  border-left: 1px solid rgba(188,112,229,.45);
  color: #ada2b1;
  font-size: 14px;
  line-height: 1.65;
}

.lab {
  width: min(1240px, calc(100% - 28px));
  padding: 48px clamp(16px, 4vw, 50px) 58px;
  background: var(--paper);
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 27px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 530;
  line-height: 1;
  letter-spacing: -.055em;
}

.section-head > p {
  max-width: 450px;
  margin: 0 0 2px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.variant-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(24,19,27,.18);
}

.variant-option {
  position: relative;
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border: 0;
  border-right: 1px solid rgba(24,19,27,.18);
  background: transparent;
  color: #6f6673;
  text-align: left;
  cursor: pointer;
}

.variant-option:last-child { border-right: 0; }
.variant-option:hover { background: rgba(95,47,118,.055); }
.variant-option.active { background: rgba(95,47,118,.095); color: var(--ink); }

.variant-option::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 3px;
  background: var(--violet-deep);
  transition: right 220ms cubic-bezier(.22,1,.36,1);
}

.variant-option.active::after { right: 0; }

.variant-option > span {
  font-family: var(--mono);
  font-size: 11px;
}

.variant-option div { min-width: 0; }
.variant-option b,
.variant-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-option b { font-size: 15px; font-weight: 650; }
.variant-option small { margin-top: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.variant-option > i { color: #817487; font-style: normal; }

.prototype-toolbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 9px 12px 9px 16px;
  background: #191220;
  color: #f5eff7;
}

.now-playing span,
.now-playing b,
.density-readout span,
.density-readout b { display: block; }

.now-playing span,
.density-readout span {
  margin-bottom: 3px;
  color: #847989;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.now-playing b { font-size: 13px; font-weight: 600; }

.density-readout {
  min-width: 154px;
  padding-left: 15px;
  border-left: 1px solid #3b2f44;
}

.density-readout b {
  color: #b9aebe;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.reset-button {
  height: 34px;
  padding-inline: 12px;
  border: 1px solid #43364d;
  background: #221929;
  color: #bdb2c2;
  font-size: 11px;
  cursor: pointer;
}

.reset-button:hover { border-color: #755789; color: #fff; }

.prototype-frame {
  overflow: hidden;
  border-inline: 1px solid #31253a;
  border-bottom: 1px solid #31253a;
  background: #0d0912;
  color: var(--rail-text);
}

.window-bar {
  height: 31px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-inline: 11px;
  border-bottom: 1px solid #2e2337;
  background: #140f1a;
  color: #776d7c;
  font-family: var(--mono);
  font-size: 9px;
}

.window-bar b { color: #998da0; font-size: 8px; letter-spacing: .08em; }

.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a2e43; }

.app-stage {
  min-height: 710px;
  display: grid;
  grid-template-columns: 404px minmax(0, 1fr);
}

.fleet-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #34273e;
  background: var(--rail);
}

.lens-tabs {
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 5px 4px;
  border-bottom: 1px solid #3a2943;
  background: #17101f;
}

.lens-tabs button {
  position: relative;
  min-width: 0;
  height: 35px;
  border: 0;
  background: transparent;
  color: #9e94a3;
  font-size: 12px;
  cursor: pointer;
}

.lens-tabs button.active { background: #4d245e; color: #f5edf7; }
.lens-tabs button i { position: absolute; width: 5px; height: 5px; margin: 6px 0 0 -8px; background: var(--pink); }

.fleet-list {
  position: relative;
  height: 607px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--rail);
  scrollbar-width: thin;
  scrollbar-color: #463451 transparent;
}

.fleet-list::-webkit-scrollbar { width: 5px; }
.fleet-list::-webkit-scrollbar-thumb { background: #463451; }
.fleet-content { min-height: 0; }

.new-pane {
  min-height: 57px;
  flex: 0 0 auto;
  padding: 8px;
  border-top: 1px solid #34273e;
  background: #15101c;
}

.new-pane > span {
  display: block;
  margin-bottom: 6px;
  color: #988d9e;
  font-size: 10px;
}

.new-pane div { display: flex; gap: 4px; }
.new-pane button { height: 27px; padding-inline: 9px; border: 1px solid #3f3348; background: #201826; color: #d1c8d5; font-size: 11px; }

.server-block { border-bottom: 1px solid var(--rail-line); }

.server-head {
  width: 100%;
  min-width: 0;
  height: 38px;
  display: grid;
  grid-template-columns: 12px 7px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  background: #17111f;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.server-head:hover { background: #1d1626; }
.fold {
  width: 0;
  height: 0;
  justify-self: center;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #aaa0ae;
  transform-origin: 2px 4px;
  transition: transform 150ms ease;
}
.server-head[aria-expanded="true"] .fold,
.workspace-head[aria-expanded="true"] .fold { transform: rotate(90deg); }
.live-dot { width: 7px; height: 7px; background: var(--mint); box-shadow: 0 0 9px rgba(127,242,186,.24); }
.server-head b { min-width: 0; overflow: hidden; color: #d3cbd7; font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.server-facts { color: #8d8393; font-family: var(--mono); font-size: 9.5px; white-space: nowrap; }
.server-facts em { color: var(--mint); font-style: normal; }
.server-action { color: #776c7e; font-family: var(--mono); font-size: 8.5px; }
.server-summary { display: none; color: #8e8394; font-family: var(--mono); font-size: 9px; }

.server-body { position: relative; }
.server-block.is-collapsed > .server-body { display: none; }

.workspace { position: relative; border-top: 1px solid rgba(255,255,255,.025); }
.workspace::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: #2e2437; }

.workspace-head {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 29px;
  display: grid;
  grid-template-columns: 12px 13px minmax(48px, auto) auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 12px;
  border: 0;
  background: #15101d;
  color: #a9a0ae;
  text-align: left;
  cursor: pointer;
}

.workspace-head:hover { background: #1c1525; }
.folder-icon {
  position: relative;
  width: 11px;
  height: 8px;
  border: 1px solid #96899d;
}
.folder-icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -4px;
  width: 5px;
  height: 3px;
  border: 1px solid #96899d;
  border-bottom: 0;
}
.workspace-head b { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.workspace-head small { color: #706675; font-size: 9.5px; }
.workspace-route { min-width: 0; overflow: hidden; color: #a59aaa; font-family: var(--mono); font-size: 9.5px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.workspace.is-collapsed .workspace-body { display: none; }

.pause-chip,
.status-chip {
  min-width: 0;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding-inline: 6px;
  border: 1px solid #463651;
  color: #b7acbc;
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.pause-chip { border-color: #725c20; background: #211b0d; color: var(--amber); }
.status-chip.run { border-color: #214d3a; background: #10241d; color: var(--mint); }
.status-chip.done { border-color: #5d316f; color: #d878ff; }
.status-chip.owned { border-color: #245747; color: var(--mint); }
.status-chip.idle { color: #c2b7c6; }

.pane-row {
  position: relative;
  width: calc(100% - 32px);
  min-width: 0;
  min-height: 43px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 2px 6px 3px 26px;
  padding: 4px 5px 4px 7px;
  border: 1px solid transparent;
  background: var(--rail-row);
  color: var(--rail-text);
  text-align: left;
  cursor: pointer;
}

.pane-row:hover { background: #251b30; }
.pane-row.is-selected { border-color: #a85fd1; background: #4e275f; color: #f5edf7; }

.agent-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #76508a;
  color: #d98bff;
  font-family: var(--mono);
  font-size: 11px;
}

.agent-icon.state-run { border-color: #347a61; color: var(--mint); }
.agent-icon.state-done { border-color: #76508a; color: #dc80ff; }
.agent-icon.state-owned { border-color: #2f745c; color: var(--mint); }

.pane-copy { min-width: 0; }
.pane-copy b,
.pane-copy small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-copy b { font-size: 12.5px; font-weight: 530; }
.pane-copy small { margin-top: 2px; color: #9d92a2; font-size: 10.5px; }
.pane-row.is-selected .pane-copy small { color: #cdbdd3; }

/* 02 — one server open, all other hosts remain useful single-line summaries. */
.prototype-frame[data-variant="focus-fold"] .server-head { height: 36px; }
.prototype-frame[data-variant="focus-fold"] .server-block.is-collapsed .server-head { background: #130e1a; }
.prototype-frame[data-variant="focus-fold"] .server-block.is-collapsed .server-summary { display: inline; }
.prototype-frame[data-variant="focus-fold"] .server-block.is-collapsed .server-facts { display: none; }
.prototype-frame[data-variant="focus-fold"] .server-head.is-focus {
  background: linear-gradient(90deg, rgba(87,42,105,.65), #1b1424 72%);
  box-shadow: inset 2px 0 var(--violet);
}
.prototype-frame[data-variant="focus-fold"] .workspace-head { height: 28px; }
.prototype-frame[data-variant="focus-fold"] .pane-row { min-height: 41px; }

/* 03 — no indentation tax: fixed status columns and one-line pane records. */
.prototype-frame[data-variant="fleet-ledger"] .server-head {
  height: 31px;
  grid-template-columns: 7px minmax(0, 1fr) auto auto;
  padding-left: 10px;
  background: #211729;
}
.prototype-frame[data-variant="fleet-ledger"] .server-head .fold { display: none; }
.prototype-frame[data-variant="fleet-ledger"] .server-head b { font-size: 11px; letter-spacing: .015em; }
.prototype-frame[data-variant="fleet-ledger"] .server-action { display: none; }
.prototype-frame[data-variant="fleet-ledger"] .workspace::before { display: none; }
.ledger-workspace { border-top: 1px solid rgba(255,255,255,.035); }
.ledger-space-row {
  min-width: 0;
  height: 27px;
  display: grid;
  grid-template-columns: 14px minmax(44px, auto) 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 0 5px 0 10px;
  background: #15101d;
  color: #aaa0af;
}
.ledger-space-row b { min-width: 0; overflow: hidden; font-size: 11.5px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.ledger-space-row small { color: #6f6574; font-size: 9px; }
.ledger-space-row .workspace-route { text-align: left; }
.ledger-space-row .pause-chip,
.ledger-space-row .status-chip { height: 19px; font-size: 9px; }
.ledger-panes { padding-block: 1px 2px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane {
  width: calc(100% - 18px);
  min-height: 29px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  margin: 1px 5px 1px 13px;
  padding-block: 2px;
  background: #19121f;
}
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane .agent-icon { width: 18px; height: 18px; font-size: 9px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane .pane-copy { display: flex; align-items: baseline; gap: 8px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane .pane-copy b { flex: 0 0 auto; font-size: 11.5px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane .pane-copy small { margin: 0; font-size: 9.5px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane .status-chip { height: 19px; font-size: 9px; }
.prototype-frame[data-variant="fleet-ledger"] .ledger-pane.is-selected { background: #4a255a; }

.context-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(98,48,119,.25), transparent 18rem),
    #0d0912;
}

.context-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.context-stage header {
  position: relative;
  z-index: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 22px;
  border-bottom: 1px solid #2c2234;
  color: #817586;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .09em;
}

.context-stage header b { color: var(--amber); font-size: 9px; }
.context-stage header b[data-state="run"],
.context-stage header b[data-state="owned"] { color: var(--mint); }
.context-stage header b[data-state="done"] { color: #dc80ff; }

.context-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 96px 9% 0;
}

.context-kicker { margin: 0 0 16px; color: #8d7d94; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.context-copy h3 { margin: 0; color: #f0e8f2; font-size: clamp(38px, 5vw, 66px); font-weight: 470; letter-spacing: -.06em; }
.context-copy > p:not(.context-kicker) { min-height: 48px; margin: 14px 0 36px; color: #b9aebe; font-size: 16px; line-height: 1.5; }
.context-copy dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid #35293e; }
.context-copy dl div { min-width: 0; padding: 15px 12px 16px 0; border-right: 1px solid #35293e; }
.context-copy dl div + div { padding-left: 14px; }
.context-copy dl div:last-child { border-right: 0; }
.context-copy dt { margin-bottom: 7px; color: #766b7b; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.context-copy dd { margin: 0; overflow: hidden; color: #c9bfcd; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.context-terminal {
  position: relative;
  z-index: 1;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 80px 9% 0;
  padding-inline: 16px;
  border: 1px solid #31263a;
  background: rgba(16,11,22,.75);
  color: var(--violet);
  font-family: var(--mono);
}

.context-terminal i { width: 21%; height: 4px; background: #2e2535; }
.context-terminal i:nth-of-type(2) { width: 12%; }
.context-terminal i:nth-of-type(3) { width: 27%; }
.context-terminal b { width: 7px; height: 15px; background: var(--violet); animation: caret 1.1s steps(2) infinite; }

.context-caption {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 25px;
  z-index: 1;
  margin: 0;
  color: #716776;
  font-size: 11px;
  line-height: 1.5;
}

.variant-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 1fr 1fr auto;
  border: 1px solid rgba(24,19,27,.18);
  border-top: 0;
  background: #e5dfe7;
}

.summary-lead,
.summary-fact,
.summary-action { min-width: 0; padding: 20px; border-right: 1px solid rgba(24,19,27,.16); }
.summary-lead { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }
.summary-lead > span { color: #7d7181; font-family: var(--mono); font-size: 10px; }
.summary-lead h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.summary-lead p,
.summary-fact p { margin: 0; color: #665e69; font-size: 11.5px; line-height: 1.55; }
.summary-fact > span { display: block; margin-bottom: 9px; color: #7b7180; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.summary-action { display: grid; place-items: center; border-right: 0; }
.summary-action button { min-width: 132px; height: 42px; border: 0; background: #201626; color: #f6eef8; font-size: 11px; cursor: pointer; }
.summary-action button:hover { background: var(--violet-deep); }
.summary-action button.selected { background: #234737; color: var(--mint); }

.comparison { padding-block: 88px 96px; }
.section-head.dark { color: #f3edf5; }
.section-head.compact { margin-bottom: 32px; }

.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid rgba(255,255,255,.11); }
.compare-card { position: relative; min-height: 230px; padding: 23px 24px; border-right: 1px solid rgba(255,255,255,.11); }
.compare-card:last-child { border-right: 0; }
.compare-card.active { background: rgba(188,112,229,.075); }
.compare-card > span { color: #786d7e; font-family: var(--mono); font-size: 10px; }
.compare-card h3 { margin: 48px 0 11px; font-size: 19px; font-weight: 570; }
.compare-card p { max-width: 280px; margin: 0 0 23px; color: #a398a8; font-size: 12.5px; line-height: 1.55; }
.compare-card button { position: absolute; left: 24px; bottom: 22px; padding: 0; border: 0; background: transparent; color: #c79cd9; font-size: 11px; cursor: pointer; }
.compare-card button i { margin-left: 7px; font-style: normal; }

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #706475;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.decision-dock {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 18px;
  width: min(560px, calc(100% - 28px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 16px;
  transform: translateX(-50%) translateY(105px);
  border: 1px solid #60476d;
  background: rgba(20,13,27,.97);
  box-shadow: 0 18px 70px rgba(0,0,0,.58);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.22,1,.36,1), opacity 180ms ease;
}

.decision-dock.visible { transform: translateX(-50%); opacity: 1; }
.decision-dock div span,
.decision-dock div b { display: block; }
.decision-dock div span { margin-bottom: 3px; color: #837689; font-family: var(--mono); font-size: 8px; letter-spacing: .11em; }
.decision-dock div b { font-size: 14px; font-weight: 580; }
.decision-dock button { height: 42px; padding-inline: 15px; border: 0; background: #633178; color: #fff; font-size: 11px; cursor: pointer; }
.decision-dock button:disabled { background: #2a222f; color: #706675; cursor: default; }

.toast {
  position: fixed;
  z-index: 40;
  top: 17px;
  left: 50%;
  padding: 10px 14px;
  transform: translate(-50%, -17px);
  background: #ece5ee;
  color: #211826;
  box-shadow: 0 10px 38px rgba(0,0,0,.38);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(.22,1,.36,1);
}

.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@keyframes caret { 0%,45% { opacity: 1; } 46%,100% { opacity: 0; } }

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

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; }
  .app-stage { grid-template-columns: 404px minmax(0, 1fr); }
  .context-copy { margin-inline: 7%; }
  .context-copy dl { grid-template-columns: 1fr; }
  .context-copy dl div { padding: 10px 0; border-right: 0; border-bottom: 1px solid #35293e; }
  .context-copy dl div + div { padding-left: 0; }
  .context-terminal { margin-inline: 7%; }
  .variant-summary { grid-template-columns: 1fr 1fr; }
  .summary-lead { grid-column: 1 / -1; border-bottom: 1px solid rgba(24,19,27,.16); }
  .summary-fact:nth-child(3) { border-right: 0; }
  .summary-action { grid-column: 1 / -1; border-top: 1px solid rgba(24,19,27,.16); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 64px; }
  .header-state { max-width: 180px; text-align: right; font-size: 8px; }
  .hero { min-height: 0; display: block; padding-block: 58px 62px; }
  .hero-note { margin-top: 28px; }
  .lab { width: 100%; padding-inline: 12px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 14px; }
  .variant-picker { display: block; }
  .variant-option { width: 100%; min-height: 68px; border-right: 0; border-bottom: 1px solid rgba(24,19,27,.16); }
  .variant-option:last-child { border-bottom: 0; }
  .prototype-toolbar { grid-template-columns: 1fr auto; }
  .density-readout { display: none; }
  .app-stage { min-height: 0; display: block; }
  .fleet-rail { width: min(404px, 100%); margin-inline: auto; border-left: 1px solid #34273e; }
  .context-stage { display: none; }
  .window-bar { grid-template-columns: 58px 1fr auto; }
  .comparison-grid { display: block; }
  .compare-card { min-height: 205px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .site-footer { display: block; padding-block: 32px 92px; }
  .site-footer span { display: block; margin-bottom: 7px; }
}

@media (max-width: 470px) {
  .hero h1 { font-size: 43px; }
  .prototype-toolbar { display: flex; justify-content: space-between; gap: 8px; }
  .reset-button { padding-inline: 8px; }
  .fleet-list { height: 600px; }
  .server-action { display: none; }
  .workspace-head { grid-template-columns: 12px 13px minmax(40px, auto) minmax(0, 1fr) auto; }
  .workspace-head small,
  .workspace-head .workspace-route { display: none; }
  .pane-row { width: calc(100% - 28px); margin-left: 22px; }
  .ledger-space-row { grid-template-columns: 14px minmax(42px, auto) minmax(0, 1fr) auto; }
  .ledger-space-row small,
  .ledger-space-row .workspace-route { display: none; }
  .summary-lead,
  .summary-fact,
  .summary-action { border-right: 0; }
  .variant-summary { display: block; }
  .summary-fact { border-bottom: 1px solid rgba(24,19,27,.16); }
  .decision-dock { align-items: stretch; }
  .decision-dock button { min-width: 145px; }
}
