:root {
  color-scheme: light;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #f4f7ff;
  --text: #142033;
  --text-soft: #5f6f85;
  --text-faint: #8a98aa;
  --line: #e3e8f0;
  --line-strong: #d2d9e4;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eaf1ff;
  --success: #16865c;
  --success-soft: #e9f8f1;
  --warning: #b76b0e;
  --warning-soft: #fff6e6;
  --danger: #c63f43;
  --danger-soft: #fff0f0;
  --shadow-xs: 0 1px 2px rgba(20, 32, 51, 0.04);
  --shadow-sm: 0 6px 20px rgba(20, 32, 51, 0.06);
  --shadow-lg: 0 20px 50px rgba(20, 32, 51, 0.09);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 0 8px 24px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -0.04em;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.26);
}

.brand h1 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-button:hover {
  background: var(--surface-soft);
  color: var(--text);
  transform: translateX(2px);
}

.nav-button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-button.is-active .nav-index {
  background: var(--primary);
  color: #ffffff;
}

.nav-label {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.status-dot.pass {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.status-dot.fail {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.rail-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}

.rail-foot p {
  margin: 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.55;
}

.rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.main {
  width: 100%;
  min-width: 0;
  max-width: 1500px;
  padding: 22px clamp(24px, 3.5vw, 52px) 64px;
}

.topbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 24px;
}

.demo-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: -8px 0 24px;
  padding: 13px 14px;
  border: 1px solid #edc95f;
  border-radius: 12px;
  background: #fff8da;
  color: #68490a;
  box-shadow: 0 7px 24px rgba(129, 89, 8, 0.08);
}

.demo-badge {
  padding: 6px 9px;
  border-radius: 7px;
  background: #1c2c46;
  color: #fff7d0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.demo-banner p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.demo-banner strong {
  margin-right: 5px;
  color: #513602;
}

.button.demo-button {
  border-color: #d3a72d;
  background: transparent;
  color: #68490a;
  box-shadow: none;
}

.button.demo-button:hover {
  border-color: #a87908;
  background: rgba(255, 255, 255, 0.56);
  color: #513602;
}

.demo-approval {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 15px 18px;
  border: 1px solid #8bcdb1;
  border-radius: 12px;
  background: #effaf5;
}

.demo-approval span {
  color: #32775c;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.demo-approval strong {
  color: #126747;
  font-size: 13px;
}

.demo-approval p {
  margin: 0;
  color: #4d725f;
  font-size: 10px;
  text-align: right;
}

.project-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--text-faint);
  font-size: 11px;
}

.project-line strong {
  max-width: min(420px, 44vw);
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-line span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.top-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  border-color: #b9c4d4;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button.primary,
.button.dark {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover,
.button.dark:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.button.ghost {
  min-height: 32px;
  padding: 5px 7px;
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
  font-size: 9px;
}

.button.danger {
  color: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.screen {
  animation: screen-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 30px;
  align-items: stretch;
  min-height: 244px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.11), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--shadow-sm);
}

.hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h2,
.screen-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero h2 br {
  display: none;
}

.hero-summary {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 20px;
  border: 1px solid #dbe5fa;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  box-shadow: inset 0 0 0 5px rgba(234, 241, 255, 0.9);
}

.hero-aside::before {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 11px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  content: "↗";
  font-size: 18px;
  font-weight: 700;
}

.hero-aside strong {
  color: var(--text);
  font-size: 38px;
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-aside span {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
}

.gate-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 34px;
}

.gate-step {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 166px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.gate-step:hover {
  border-color: #c4cede;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.gate-step.pass {
  border-color: #bfe5d3;
  background: var(--success-soft);
}

.gate-step.fail {
  border-color: #f1c5c5;
  background: var(--danger-soft);
}

.gate-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.gate-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
}

.gate-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.pass .gate-state {
  background: #d8f1e5;
  color: var(--success);
}

.fail .gate-state {
  background: #f9dada;
  color: var(--danger);
}

.gate-step h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.gate-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 260ms ease;
}

.gate-step.pass .progress-bar span {
  background: var(--success);
}

.gate-step.fail .progress-bar span {
  background: var(--danger);
}

.section-title {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 30px 0 14px;
}

.section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  color: var(--text-faint);
  font-size: 10px;
}

.agent-grid,
.metric-grid,
.supplier-grid,
.sample-grid,
.decision-grid {
  display: grid;
  gap: 12px;
}

.agent-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agent-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.agent-card:hover {
  border-color: #c7d1df;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.agent-code {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 720;
}

.agent-card h3 {
  margin: 18px 0 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
}

.agent-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.agent-card small {
  margin-top: auto;
  padding-top: 14px;
  color: var(--text-faint);
  font-size: 9px;
}

.screen-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  margin: 8px 0 24px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}

.screen-head h2 {
  max-width: 720px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.screen-head > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.72;
}

.form-sheet,
.record-card,
.calculation-board,
.decision-card,
.gate-ledger,
.run-panel,
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.form-sheet {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a6b1c0;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #b9c4d4;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field .hint {
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
}

.status-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #f1d8a7;
  border-radius: 10px;
  background: var(--warning-soft);
}

.status-panel .status-word {
  color: var(--warning);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
}

.status-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.status-panel.pass {
  border-color: #bee4d2;
  background: var(--success-soft);
}

.status-panel.pass .status-word {
  color: var(--success);
}

.status-panel.fail {
  border-color: #f0c7c7;
  background: var(--danger-soft);
}

.status-panel.fail .status-word {
  color: var(--danger);
}

.supplier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sample-grid,
.decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.record-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.record-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
}

.record-card-body {
  display: grid;
  gap: 14px;
  padding: 17px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.test-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.test-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.test-row:last-child {
  border-bottom: 0;
}

.test-row span {
  color: var(--text-soft);
  font-size: 10px;
}

.test-row select {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 9px;
}

.economics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.calculation-board {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.calc-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.calc-row span {
  color: var(--text-soft);
  font-size: 10px;
}

.calc-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
}

.calc-row.total {
  min-height: 78px;
  border-bottom: 0;
  background: var(--text);
}

.calc-row.total span {
  color: #b7c1cf;
}

.calc-row.total strong {
  color: #ffffff;
  font-size: 18px;
}

.decision-card {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.decision-card.pass {
  border-color: #bce3d0;
  background: var(--success-soft);
}

.decision-card.fail {
  border-color: #efc3c3;
  background: var(--danger-soft);
}

.decision-card .decision-type {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.decision-card h3 {
  max-width: 480px;
  margin: 42px 0 10px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.decision-card p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.gate-ledger {
  display: grid;
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius);
}

.ledger-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 0.25fr) 90px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 150ms ease;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row:hover {
  background: var(--surface-soft);
}

.ledger-row.pass {
  background: var(--success-soft);
}

.ledger-row.fail {
  background: var(--danger-soft);
}

.ledger-row .ledger-index {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
}

.ledger-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.ledger-row .ledger-status {
  color: var(--warning);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
}

.ledger-row.pass .ledger-status {
  color: var(--success);
}

.ledger-row.fail .ledger-status {
  color: var(--danger);
}

.ledger-row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.run-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  padding: 22px;
  border-radius: var(--radius);
}

.run-panel h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
}

.run-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.run-log {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.run-log-item {
  display: grid;
  grid-template-columns: 42px 140px 88px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.notice {
  padding: 15px 17px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 10px;
}

.notice strong {
  color: var(--text);
}

.contest-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 320px;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 8%, rgba(82, 129, 255, 0.28), transparent 32%),
    #101b2d;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.18);
}

.contest-hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.contest-copy,
.readiness-card {
  position: relative;
  z-index: 1;
}

.contest-copy .eyebrow {
  color: #8fb1ff;
}

.contest-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 730;
  letter-spacing: -0.06em;
  line-height: 1.08;
  text-wrap: balance;
}

.contest-one-liner {
  max-width: 720px;
  margin: 20px 0 0;
  color: #c1ccdb;
  font-size: 13px;
  line-height: 1.8;
}

.contest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.contest-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe4f0;
  font-size: 9px;
  font-weight: 620;
}

.readiness-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.readiness-card > span {
  color: #b7c4d6;
  font-size: 10px;
}

.readiness-card strong {
  margin-top: 22px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 740;
  letter-spacing: -0.06em;
  line-height: 1;
}

.readiness-progress {
  height: 6px;
  margin-top: 19px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.readiness-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6f9bff;
}

.readiness-card p {
  margin: 12px 0 0;
  color: #e7edf6;
  font-size: 10px;
}

.readiness-card small {
  margin-top: auto;
  color: #8f9db1;
  font-size: 8px;
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 36px;
}

.judge-card {
  display: flex;
  flex-direction: column;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.judge-card > span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.05em;
}

.judge-card strong {
  margin-top: 22px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.judge-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.6;
}

.judge-card.ready {
  border-top: 3px solid var(--success);
}

.judge-card.partial {
  border-top: 3px solid var(--warning);
}

.contest-section-title {
  align-items: flex-start;
}

.contest-section-title .eyebrow,
.form-title .eyebrow {
  margin-bottom: 7px;
}

.process-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.process-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.process-card > span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-card h3 {
  margin: 15px 0 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 710;
  letter-spacing: -0.04em;
}

.process-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 10px;
}

.process-card p {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
}

.process-card.after {
  border-color: #cbd9fb;
  background: var(--surface-blue);
}

.process-shift {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.process-shift span {
  font-size: 8px;
  font-weight: 700;
  writing-mode: vertical-rl;
}

.process-shift strong {
  font-size: 28px;
}

.contest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 16px;
  align-items: start;
  margin-top: 36px;
}

.contest-form {
  min-width: 0;
}

.form-title {
  align-items: flex-start;
  margin: 0 0 24px;
}

.gap-panel {
  position: sticky;
  top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.gap-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.gap-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.gap-head > span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
}

.gap-list {
  display: grid;
}

.gap-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 68px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.gap-item:last-child {
  border-bottom: 0;
}

.gap-item:hover {
  background: var(--surface-soft);
}

.gap-state {
  display: grid;
  place-items: center;
  min-height: 25px;
  padding: 4px;
  border-radius: 7px;
  background: var(--warning-soft);
  color: var(--warning);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
}

.gap-item.done .gap-state {
  background: var(--success-soft);
  color: var(--success);
}

.gap-item strong,
.gap-item small {
  display: block;
}

.gap-item strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 680;
}

.gap-item small {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 8px;
  line-height: 1.5;
}

.showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: 470px;
  padding: clamp(40px, 6vw, 74px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 16%, rgba(63, 105, 217, 0.24), transparent 30%),
    #101a2b;
  color: #ffffff;
  box-shadow: 0 26px 64px rgba(15, 26, 43, 0.18);
}

.showcase-copy .eyebrow {
  color: #86a9ff;
}

.showcase-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(43px, 5.8vw, 72px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.04;
  text-wrap: balance;
}

.showcase-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #bdc9d9;
  font-size: 14px;
  line-height: 1.82;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.showcase-actions .button {
  min-height: 44px;
  padding-right: 18px;
  padding-left: 18px;
}

.button.inverse {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
}

.button.inverse:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.memory-hook {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.memory-hook > p {
  margin: 0 0 18px;
  color: #97a8be;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hook-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hook-row strong {
  color: #ffffff;
  font-size: 31px;
  font-weight: 740;
  letter-spacing: -0.05em;
}

.hook-row span {
  color: #d6dfeb;
  font-size: 11px;
  font-weight: 620;
}

.project-truth {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(320px, 1.4fr);
  gap: 0;
  margin: 18px 0 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.project-truth > div,
.project-truth > p {
  min-height: 88px;
  margin: 0;
  padding: 18px 20px;
}

.project-truth > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.project-truth span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.project-truth strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.project-truth > p {
  display: flex;
  align-items: center;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.65;
}

.highlight-head {
  max-width: 980px;
  margin: 0 0 22px;
}

.highlight-head:not(:first-of-type) {
  margin-top: 58px;
}

.highlight-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.18;
  text-wrap: balance;
}

.case-grid,
.standout-grid,
.proof-layout {
  display: grid;
  gap: 13px;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.case-card.featured {
  border-color: #c7d8ff;
  background: var(--surface-blue);
}

.case-card > span,
.standout-card > span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.05em;
}

.case-card h4 {
  margin: 38px 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 710;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.case-card p,
.standout-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.72;
}

.standout-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standout-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.standout-card:hover {
  border-color: #c5d0df;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.standout-card h4 {
  margin: 42px 0 13px;
  color: var(--text);
  font-size: 18px;
  font-weight: 710;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.standout-card small {
  margin-top: auto;
  padding-top: 20px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-xs);
}

.agent-flow button {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 22px;
  border: 0;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.agent-flow button:hover {
  background: var(--surface-blue);
}

.agent-flow button > span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 740;
}

.agent-flow strong {
  margin-top: 42px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.agent-flow small {
  margin-top: auto;
  color: var(--text-faint);
  font-size: 9px;
}

.proof-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 60px;
}

.proof-panel {
  min-height: 410px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 22px;
}

.proof-panel h3 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(28px, 3.7vw, 44px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.proof-panel.dark {
  background: #101a2b;
  color: #ffffff;
}

.proof-panel.dark .eyebrow {
  color: #86a9ff;
}

.proof-panel.dark h3 {
  color: #ffffff;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.proof-list div {
  display: flex;
  flex-direction: column;
  min-height: 96px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.proof-list strong {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 17px;
}

.proof-list span {
  margin-top: auto;
  color: #aebccd;
  font-size: 9px;
}

.proof-panel.light {
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd8f8;
  background: var(--surface-blue);
}

.proof-panel.light > p:not(.eyebrow) {
  max-width: 600px;
  margin: 25px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.proof-panel.light .button {
  width: fit-content;
  margin-top: auto;
}

.showcase-close {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.showcase-close > span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 740;
  text-transform: uppercase;
}

.showcase-close h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--text);
  color: #ffffff;
  font-size: 11px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1240px) {
  .supplier-grid {
    grid-template-columns: 1fr;
  }

  .agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .judge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contest-layout {
    grid-template-columns: 1fr;
  }

  .gap-panel {
    position: static;
  }

  .standout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rail {
    padding: 18px 10px 14px;
  }

  .brand {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 0 20px;
  }

  .brand h1,
  .brand p,
  .rail-foot {
    display: none;
  }

  .nav {
    gap: 8px;
  }

  .nav-button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 58px;
    padding: 6px 4px;
    text-align: center;
  }

  .nav-button:hover {
    transform: none;
  }

  .nav-label {
    width: 100%;
    font-size: 9px;
  }

  .status-dot {
    position: absolute;
    margin: -34px 0 0 30px;
  }

  .main {
    padding: 18px 22px 52px;
  }

  .gate-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 34px;
    min-height: 420px;
    padding: 36px;
  }

  .project-truth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-truth > p {
    grid-column: 1 / -1;
    min-height: 64px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 190px;
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .project-line strong {
    max-width: 100%;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .button {
    flex: 1;
  }

  .demo-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .demo-banner .demo-button {
    grid-column: 1 / -1;
  }

  .demo-approval {
    grid-template-columns: 1fr 1fr;
  }

  .demo-approval p {
    grid-column: 1 / -1;
    text-align: left;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    min-height: 228px;
    padding: 26px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-summary {
    font-size: 11px;
  }

  .contest-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .readiness-card {
    min-height: 180px;
  }

  .process-compare {
    grid-template-columns: 1fr;
  }

  .process-shift {
    flex-direction: row;
    min-height: 42px;
  }

  .process-shift span {
    writing-mode: horizontal-tb;
  }

  .process-shift strong {
    transform: rotate(90deg);
  }

  .showcase-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .showcase-copy h2 br {
    display: none;
  }

  .memory-hook {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
  }

  .memory-hook > p {
    display: none;
  }

  .hook-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 92px;
    padding: 10px 5px;
    border-top: 0;
    background: #1b2739;
    text-align: center;
  }

  .hook-row span {
    font-size: 8px;
  }

  .proof-layout {
    grid-template-columns: 1fr;
  }

  .showcase-close {
    grid-template-columns: 1fr;
  }

  .screen-head,
  .economics-layout {
    grid-template-columns: 1fr;
  }

  .screen-head {
    gap: 12px;
  }

  .calculation-board {
    position: static;
  }
}

@media (max-width: 600px) {
  .shell {
    display: block;
  }

  .rail {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .brand {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }

  .nav-button {
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 8px;
  }

  .nav-index {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .nav-label {
    font-size: 8px;
  }

  .status-dot {
    margin: -29px 0 0 24px;
  }

  .main {
    padding: 14px 14px 94px;
  }

  .demo-banner {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: -5px;
  }

  .demo-banner .demo-button {
    grid-column: auto;
  }

  .demo-approval {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .demo-approval p {
    grid-column: auto;
  }

  .project-line span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contest-hero {
    min-height: auto;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .contest-copy h2 {
    font-size: 36px;
  }

  .contest-copy h2 br {
    display: none;
  }

  .judge-grid {
    grid-template-columns: 1fr;
  }

  .judge-card {
    min-height: 145px;
  }

  .process-card {
    padding: 20px;
  }

  .showcase-hero {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .showcase-copy h2 {
    font-size: 38px;
  }

  .showcase-lead {
    font-size: 12px;
  }

  .showcase-actions .button {
    flex: 1;
  }

  .project-truth,
  .standout-grid,
  .agent-flow {
    grid-template-columns: 1fr;
  }

  .project-truth > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-truth > p {
    grid-column: auto;
  }

  .highlight-head h3 {
    font-size: 29px;
  }

  .standout-card {
    min-height: 240px;
  }

  .agent-flow button {
    min-height: 150px;
  }

  .agent-flow strong {
    margin-top: 24px;
  }

  .proof-panel {
    min-height: 360px;
    padding: 25px;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }

  .showcase-close {
    padding: 24px;
  }

  .hero-aside {
    align-items: flex-start;
    min-height: 110px;
    text-align: left;
  }

  .hero-aside::before {
    display: none;
  }

  .gate-track,
  .agent-grid,
  .sample-grid,
  .decision-grid,
  .metric-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: auto;
  }

  .status-panel {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .test-row {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    grid-template-columns: 30px 1fr auto;
  }

  .ledger-row p {
    grid-column: 2 / -1;
  }

  .run-panel {
    grid-template-columns: 1fr;
  }

  .run-log-item {
    grid-template-columns: 36px 1fr;
  }
}

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

/* V6 consistency revision · uses the same visual language as the workbench */

.cohesive-showcase {
  max-width: 1320px;
}

.cohesive-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: 500px;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid #dbe4f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.12), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 54%, #f5f8ff 100%);
  box-shadow: var(--shadow-lg);
}

.cohesive-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--primary);
  content: "";
}

.cohesive-copy {
  position: relative;
  z-index: 1;
}

.cohesive-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(46px, 5.3vw, 70px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.06;
  text-wrap: balance;
}

.cohesive-copy h2 span {
  color: var(--primary);
}

.cohesive-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.cohesive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cohesive-actions .button {
  min-height: 46px;
  padding-right: 20px;
  padding-left: 20px;
}

.cohesive-model {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.cohesive-model span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 9px;
}

.cohesive-model strong {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
}

.decision-preview {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.decision-preview > header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.decision-preview > header div {
  display: flex;
  flex-direction: column;
}

.decision-preview > header span,
.decision-preview-result > span,
.decision-preview footer > span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 740;
  letter-spacing: 0.07em;
}

.decision-preview > header strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
}

.decision-preview > header b {
  padding: 5px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7px;
}

.decision-preview > header b.pass {
  background: var(--success-soft);
  color: var(--success);
}

.decision-preview > header b.pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.decision-preview > header b.fail {
  background: var(--danger-soft);
  color: var(--danger);
}

.decision-preview-result {
  padding: 22px 18px 18px;
}

.decision-preview-result h3 {
  margin: 10px 0 7px;
  color: var(--text);
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.decision-preview-result p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.65;
}

.decision-preview-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

.decision-preview-gates button {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.decision-preview-gates button:hover {
  border-color: #b9caee;
  background: var(--surface-blue);
  transform: translateY(-1px);
}

.decision-preview-gates .status-dot {
  position: static;
  width: 6px;
  height: 6px;
  margin: 0;
}

.decision-preview-gates strong {
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-preview-gates small {
  color: var(--success);
  font-family: var(--mono);
  font-size: 6px;
}

.decision-preview footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid #cce9dc;
  background: var(--success-soft);
}

.decision-preview footer > span,
.decision-preview footer > strong {
  grid-column: 1;
}

.decision-preview footer > strong {
  color: #126c4b;
  font-size: 10px;
}

.decision-preview footer .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.cohesive-truth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 60px;
}

.cohesive-truth > div {
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.cohesive-truth span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cohesive-truth strong {
  margin-top: auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.cohesive-truth small {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 8px;
}

.cohesive-head {
  margin-bottom: 24px;
}

.cohesive-cases .case-card,
.cohesive-standout .standout-card {
  border-color: var(--line);
  background: var(--surface);
}

.cohesive-cases .case-card.featured {
  border-color: #c7d8ff;
  background: var(--surface-blue);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.cohesive-flow {
  border-color: var(--line);
  background: var(--line);
}

.cohesive-proof {
  margin-top: 60px;
}

.cohesive-proof-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cohesive-proof-card h3 {
  color: var(--text);
}

.cohesive-proof-card .proof-list div {
  border-color: var(--line);
}

.cohesive-proof-card .proof-list strong {
  color: var(--primary);
}

.cohesive-proof-card .proof-list span,
.proof-honest > p {
  color: var(--text-soft);
}

.proof-honest {
  background: var(--surface-blue);
}

.proof-honest .button {
  align-self: flex-start;
  margin-top: auto;
}

.cohesive-close {
  border: 1px solid #cfdbf5;
  background: var(--surface-blue);
  color: var(--text);
}

.cohesive-close > span,
.cohesive-close h3 {
  color: var(--text);
}

.video-dialog {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(20, 32, 51, 0.28);
}

.video-dialog::backdrop {
  background: rgba(20, 32, 51, 0.68);
  backdrop-filter: blur(6px);
}

.video-dialog-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.video-dialog-head span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.video-dialog-head h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 690;
}

.video-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #0f172a;
}

@media (max-width: 1100px) {
  .cohesive-hero {
    grid-template-columns: 1fr;
  }

  .decision-preview {
    width: min(640px, 100%);
  }
}

@media (max-width: 780px) {
  .cohesive-truth {
    grid-template-columns: 1fr;
  }

  .cohesive-truth > div {
    min-height: 100px;
  }
}

@media (max-width: 600px) {
  .cohesive-hero {
    gap: 30px;
    min-height: auto;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .cohesive-copy h2 {
    font-size: 39px;
  }

  .cohesive-copy h2 br {
    display: none;
  }

  .cohesive-copy > p:not(.eyebrow) {
    font-size: 12px;
  }

  .cohesive-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cohesive-actions .button {
    width: 100%;
  }

  .cohesive-model {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cohesive-model span {
    justify-content: center;
  }

  .decision-preview-gates {
    grid-template-columns: 1fr;
  }

  .decision-preview-gates strong {
    overflow: visible;
    font-size: 11px;
    text-overflow: clip;
    white-space: normal;
  }

  .cohesive-truth {
    margin-bottom: 44px;
  }

  .cohesive-cases,
  .cohesive-standout,
  .cohesive-proof {
    grid-template-columns: 1fr;
  }

  .cohesive-proof {
    margin-top: 44px;
  }

  .video-dialog-head h2 {
    font-size: 13px;
  }
}
