:root {
  color-scheme: dark light;
  --night: oklch(16% 0.018 245);
  --night-soft: oklch(20% 0.021 245);
  --night-raised: oklch(24% 0.023 245);
  --paper: oklch(97.5% 0.006 225);
  --white: oklch(99.5% 0.002 225);
  --ink: oklch(19% 0.022 245);
  --ink-soft: oklch(41% 0.025 245);
  --ink-muted: oklch(57% 0.018 245);
  --line: oklch(88.5% 0.012 230);
  --line-dark: oklch(31% 0.024 245);
  --mint: oklch(84% 0.12 166);
  --mint-strong: oklch(62% 0.13 166);
  --mint-soft: oklch(95% 0.035 166);
  --blue: oklch(62% 0.17 255);
  --blue-strong: oklch(54% 0.19 255);
  --blue-soft: oklch(95% 0.035 255);
  --amber: oklch(72% 0.14 78);
  --amber-strong: oklch(56% 0.14 70);
  --amber-soft: oklch(96% 0.05 82);
  --coral: oklch(66% 0.2 27);
  --coral-strong: oklch(54% 0.205 27);
  --coral-soft: oklch(96% 0.04 27);
  --shadow: 0 24px 80px rgb(0 0 0 / 0.24), 0 2px 8px rgb(0 0 0 / 0.15);
  --shadow-soft: 0 12px 36px rgb(6 13 20 / 0.08), 0 1px 2px rgb(6 13 20 / 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
h4,
ol,
ul,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--night);
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line-dark);
  background: rgb(12 16 22 / 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 40px;
  place-items: center;
  color: var(--night);
  font-size: 13px;
  font-weight: 900;
}

.brand-mark::before {
  position: absolute;
  inset: 0;
  background: var(--mint);
  clip-path: polygon(50% 0, 95% 18%, 88% 72%, 50% 100%, 12% 72%, 5% 18%);
  content: "";
}

.brand-mark span {
  position: relative;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.brand-copy small {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-boundary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: oklch(69% 0.016 225);
  font-size: 11px;
}

.header-boundary strong {
  color: var(--paper);
  font-weight: 650;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px oklch(84% 0.12 166 / 0.13);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.protocol-pill,
.risk-pill,
.count-badge,
.decision-state,
.code-pill,
.trust-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

.protocol-pill {
  min-height: 30px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  color: oklch(72% 0.02 225);
}

.protocol-pill[data-supported="true"] {
  border-color: oklch(51% 0.075 166);
  background: oklch(25% 0.045 166);
  color: var(--mint);
}

.quiet-button,
.icon-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 680;
}

.quiet-button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: oklch(76% 0.017 225);
  font-size: 12px;
}

.quiet-button:hover {
  background: var(--night-raised);
  color: white;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: oklch(76% 0.017 225);
  font-size: 17px;
}

.icon-button:hover {
  border-color: oklch(49% 0.03 225);
  color: white;
}

main {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 44px) 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 48px;
  align-items: end;
  min-height: 340px;
  padding: 64px 16px 52px;
}

.eyebrow,
.panel-kicker {
  margin-bottom: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 830px;
  color: var(--paper);
  font-size: clamp(45px, 6.2vw, 88px);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero h1 span {
  color: oklch(66% 0.02 225);
}

.hero-description {
  max-width: 760px;
  margin-top: 24px;
  color: oklch(72% 0.018 225);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
}

.hero-description strong {
  color: var(--paper);
  font-weight: 680;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--night-soft);
}

.hero-proof div {
  min-width: 0;
  padding: 22px 15px;
  border-right: 1px solid var(--line-dark);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 740;
}

.hero-proof span {
  display: block;
  margin-top: 5px;
  color: oklch(64% 0.016 225);
  font-size: 10px;
  line-height: 1.35;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(480px, 1.55fr) minmax(310px, 0.92fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid oklch(35% 0.024 245);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.scenario-panel,
.scenario-stage,
.decision-panel {
  min-width: 0;
}

.scenario-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line-dark);
  background: var(--night-soft);
}

.scenario-stage {
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
}

.decision-panel {
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.panel-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 15px;
}

.panel-kicker {
  margin-bottom: 4px;
  color: oklch(68% 0.02 225);
}

.scenario-panel h2 {
  color: white;
}

h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.panel-title-row h2 {
  font-size: 20px;
}

.count-badge {
  min-width: 27px;
  height: 24px;
  justify-content: center;
  background: var(--night-raised);
  color: oklch(74% 0.017 225);
}

.scenario-list {
  flex: 1;
  overflow: auto;
  padding: 4px 10px 20px;
}

.scenario-card {
  display: block;
  width: 100%;
  min-height: 104px;
  margin: 0 0 5px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
}

.scenario-card:hover {
  background: var(--night-raised);
}

.scenario-card[aria-current="true"] {
  border-color: oklch(47% 0.055 166);
  background: oklch(25% 0.035 166);
  box-shadow: inset 3px 0 0 var(--mint);
}

.scenario-card-top,
.scenario-card-bottom,
.stage-meta,
.section-heading,
.verdict-heading,
.audit-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scenario-number {
  color: oklch(55% 0.02 225);
  font-family: var(--mono);
  font-size: 10px;
}

.risk-pill {
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid var(--line-dark);
  color: oklch(72% 0.018 225);
  text-transform: uppercase;
}

.risk-pill[data-risk="critical"],
.risk-pill[data-risk="high"] {
  border-color: oklch(49% 0.105 27);
  color: oklch(78% 0.12 27);
}

.risk-pill[data-risk="medium"] {
  border-color: oklch(50% 0.08 78);
  color: oklch(82% 0.11 78);
}

.risk-pill[data-risk="low"] {
  border-color: oklch(47% 0.07 166);
  color: var(--mint);
}

.scenario-card-title {
  display: block;
  margin: 8px 0 5px;
  font-size: 13px;
  font-weight: 710;
}

.scenario-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: oklch(68% 0.016 225);
  font-size: 11px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scenario-card-bottom {
  margin-top: 10px;
  color: oklch(58% 0.018 225);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid var(--line-dark);
}

.offline-mark {
  color: var(--mint);
  font-size: 13px;
}

.scenario-footer p {
  display: grid;
}

.scenario-footer strong {
  color: oklch(86% 0.012 225);
  font-size: 10px;
}

.scenario-footer span:last-child {
  color: oklch(57% 0.018 225);
  font-size: 9px;
}

.stage-content {
  min-height: 100%;
  padding: clamp(26px, 4vw, 52px);
}

.stage-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.stage-meta {
  justify-content: flex-start;
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-meta span + span::before {
  margin-right: 10px;
  color: var(--line);
  content: "/";
}

.stage-header h2 {
  max-width: 700px;
  font-size: clamp(32px, 4.3vw, 56px);
  letter-spacing: -0.052em;
  line-height: 1;
}

.stage-summary {
  max-width: 680px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 21px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 730;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button--primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
}

.button--primary:hover:not(:disabled) {
  background: oklch(27% 0.025 245);
}

.button--secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink-soft);
}

.button--secondary:hover:not(:disabled) {
  border-color: oklch(76% 0.025 230);
  color: var(--ink);
}

.button--review {
  background: var(--amber-strong);
  color: white;
}

.button--review:hover:not(:disabled) {
  background: oklch(49% 0.14 70);
}

.button--full {
  width: 100%;
}

.run-note {
  color: var(--ink-muted);
  font-size: 10px;
}

.content-section {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: 0;
}

.section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 15px;
}

.section-heading p {
  max-width: 330px;
  color: var(--ink-muted);
  font-size: 10px;
  text-align: right;
}

.context-card {
  position: relative;
  padding: 17px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.context-card[data-trust="untrusted"] {
  border-color: oklch(87% 0.08 78);
  background: var(--amber-soft);
}

.context-card[data-trust="untrusted"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--amber);
  content: "";
}

.trust-tag {
  min-height: 22px;
  margin-bottom: 11px;
  padding: 0 8px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  text-transform: uppercase;
}

.context-card[data-trust="untrusted"] .trust-tag {
  background: oklch(91% 0.075 78);
  color: var(--amber-strong);
}

.context-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.65;
}

.context-card p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 10px;
}

.trust-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  overflow-x: auto;
  padding: 2px 0 8px;
  list-style: none;
}

.trust-node {
  position: relative;
  min-width: 100px;
  padding-right: 18px;
}

.trust-node::after {
  position: absolute;
  top: 14px;
  right: 3px;
  left: 31px;
  height: 1px;
  background: var(--line);
  content: "";
}

.trust-node:last-child::after {
  display: none;
}

.trust-node-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
}

.trust-node[data-kind="enforcement"] .trust-node-index {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
  color: oklch(42% 0.1 166);
}

.trust-node strong {
  display: block;
  margin-top: 9px;
  font-size: 11px;
}

.trust-node p {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.4;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.action-fact {
  min-height: 76px;
  padding: 13px 15px;
  background: var(--white);
}

.action-fact dt {
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-fact dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.action-fact dd span {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 500;
}

.lesson-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid oklch(85% 0.045 166);
  border-radius: var(--radius-md);
  background: var(--mint-soft);
}

.lesson-card span {
  color: var(--mint-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.lesson-card p {
  color: oklch(36% 0.05 166);
  font-size: 11px;
  line-height: 1.55;
}

.decision-state {
  min-height: 24px;
  padding: 0 8px;
  background: var(--paper);
  color: var(--ink-muted);
  text-transform: uppercase;
}

.decision-state--allow {
  background: var(--mint-soft);
  color: oklch(41% 0.1 166);
}

.decision-state--block {
  background: var(--coral-soft);
  color: var(--coral-strong);
}

.decision-state--review {
  background: var(--amber-soft);
  color: var(--amber-strong);
}

.decision-content {
  display: grid;
  gap: 13px;
  padding: 0 17px 24px;
}

.idle-decision {
  padding: 42px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  text-align: center;
}

.idle-decision > span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 13px;
  background: var(--paper);
  color: var(--blue-strong);
  font-size: 22px;
}

.idle-decision h3 {
  color: var(--ink);
  font-size: 14px;
}

.idle-decision p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.55;
}

.verdict-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.verdict-card[data-verdict="allow"] {
  border-color: oklch(84% 0.07 166);
  background: var(--mint-soft);
}

.verdict-card[data-verdict="block"] {
  border-color: oklch(87% 0.08 27);
  background: var(--coral-soft);
}

.verdict-card[data-verdict="review"] {
  border-color: oklch(86% 0.08 78);
  background: var(--amber-soft);
}

.verdict-heading {
  align-items: flex-start;
}

.verdict-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.code-pill {
  min-height: 23px;
  padding: 0 7px;
  background: rgb(255 255 255 / 0.62);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.verdict-card h3 {
  margin-top: 14px;
  font-size: 17px;
}

.verdict-card > p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.correction-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.correction-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.correction-card p {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.check-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  list-style: none;
}

.check-item {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 43px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

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

.check-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-strong);
  font-size: 9px;
  font-weight: 900;
}

.check-item[data-status="fail"] .check-icon {
  background: var(--coral-soft);
  color: var(--coral-strong);
}

.check-item[data-status="review"] .check-icon {
  background: var(--amber-soft);
  color: var(--amber-strong);
}

.check-item[data-status="skipped"] .check-icon {
  background: var(--paper);
  color: var(--ink-muted);
}

.check-copy {
  min-width: 0;
}

.check-copy strong {
  display: block;
  font-size: 10px;
}

.check-copy span {
  display: block;
  overflow: hidden;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-code {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  text-align: right;
}

.hash-card,
.approval-card,
.operation-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.approval-card {
  border-color: oklch(86% 0.08 78);
  background: var(--amber-soft);
}

.operation-card {
  border-color: oklch(84% 0.07 166);
  background: var(--mint-soft);
}

.mini-title {
  margin-bottom: 10px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hash-value {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.payload-list {
  display: grid;
  gap: 7px;
}

.payload-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  font-size: 9px;
}

.payload-row dt {
  color: var(--ink-muted);
}

.payload-row dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 650;
  text-align: right;
}

.operation-success {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: oklch(40% 0.095 166);
  font-size: 11px;
  font-weight: 720;
}

.operation-success span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: oklch(87% 0.08 166);
}

.operation-card p {
  color: oklch(43% 0.06 166);
  font-size: 9px;
}

.text-button {
  min-height: 36px;
  padding: 0;
  color: var(--blue-strong);
  font-size: 11px;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honesty-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 0;
  padding: 14px 17px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--night-soft);
}

.honesty-label {
  padding: 5px 8px;
  border: 1px solid oklch(50% 0.07 166);
  border-radius: 6px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.honesty-strip p {
  color: oklch(68% 0.018 225);
  font-size: 10px;
}

.honesty-strip .text-button {
  color: var(--mint);
}

.toast-region {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid oklch(42% 0.03 225);
  border-radius: 10px;
  background: var(--night-raised);
  color: white;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 620;
}

.toast--error {
  border-color: var(--coral-strong);
  background: oklch(32% 0.1 27);
}

.dialog {
  width: min(470px, calc(100vw - 30px));
  max-height: min(88vh, 880px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog--wide {
  width: min(700px, calc(100vw - 30px));
}

.dialog::backdrop {
  background: rgb(3 7 11 / 0.72);
  backdrop-filter: blur(4px);
}

.dialog-card {
  position: relative;
  padding: 27px;
  border: 1px solid rgb(255 255 255 / 0.48);
  border-radius: 16px;
  background: var(--white);
}

.dialog-card .eyebrow {
  color: var(--blue-strong);
}

.dialog-card h2 {
  max-width: 500px;
  font-size: 26px;
}

.dialog-lead {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.dialog-signal {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 850;
}

.dialog-signal--review {
  background: var(--amber-soft);
  color: var(--amber-strong);
}

.approval-summary {
  margin: 18px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.dialog-note {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 21px;
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 21px;
}

.boundary-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.boundary-story div {
  min-height: 150px;
  padding: 18px;
  background: var(--white);
}

.boundary-story span {
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.boundary-story h3 {
  margin-top: 17px;
  font-size: 13px;
}

.boundary-story p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.limit-card {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid oklch(87% 0.08 78);
  border-radius: var(--radius-md);
  background: var(--amber-soft);
}

.limit-card strong {
  font-size: 11px;
}

.limit-card p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.audit-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.audit-event {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.audit-event-top strong {
  font-size: 10px;
}

.audit-event-top time {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
}

.audit-event p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.audit-empty {
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
}

.list-skeleton,
.stage-skeleton span {
  background: var(--night-raised);
  animation: pulse 1.3s ease-in-out infinite alternate;
}

.list-skeleton {
  height: 102px;
  margin-bottom: 6px;
  border-radius: 11px;
}

.stage-skeleton {
  display: grid;
  gap: 17px;
}

.stage-skeleton span {
  display: block;
  height: 22px;
  border-radius: 6px;
  background: var(--line);
}

.stage-skeleton span:first-child { width: 28%; }
.stage-skeleton span:nth-child(2) { width: 82%; height: 62px; }
.stage-skeleton span:nth-child(3) { width: 100%; height: 130px; }
.stage-skeleton span:last-child { width: 100%; height: 210px; }

.mobile-stage-nav {
  display: none;
}

@keyframes pulse {
  from { opacity: 0.45; }
  to { opacity: 0.9; }
}

@media (max-width: 1180px) {
  .lab-shell {
    grid-template-columns: minmax(240px, 0.7fr) minmax(400px, 1.35fr) minmax(280px, 0.82fr);
  }

  .header-boundary {
    display: none;
  }

  .app-header {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-header {
    position: sticky;
    z-index: 40;
    top: 0;
    min-height: 62px;
    padding: 0 14px;
  }

  .quiet-button {
    display: none;
  }

  main {
    padding-inline: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 48px 20px 38px;
  }

  .hero-proof {
    max-width: 520px;
  }

  .lab-shell {
    display: block;
    min-height: calc(100vh - 62px);
    border-inline: 0;
    border-radius: 0;
  }

  .scenario-panel {
    min-height: calc(100vh - 62px);
    border-right: 0;
  }

  .scenario-stage,
  .decision-panel {
    display: none;
    border: 0;
  }

  .lab-shell.is-mobile-detail .scenario-panel {
    display: none;
  }

  .lab-shell.is-mobile-detail .scenario-stage,
  .lab-shell.is-mobile-detail .decision-panel {
    display: block;
  }

  .decision-panel {
    padding-bottom: 26px;
    border-top: 1px solid var(--line);
  }

  .mobile-stage-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 10px;
  }

  .stage-content {
    min-height: auto;
    padding: 30px 20px;
  }

  .honesty-strip {
    margin: 0;
    border-inline: 0;
    border-radius: 0;
  }
}

@media (max-width: 580px) {
  .brand-copy small,
  .protocol-pill span:last-child {
    display: none;
  }

  .protocol-pill {
    width: 32px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-proof div {
    padding: 17px 10px;
  }

  .action-grid,
  .boundary-story {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 4px;
    text-align: left;
  }

  .honesty-strip {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 17px 20px;
  }

  .dialog-card {
    padding: 22px;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

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

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