.confidence-blocks { display: grid; gap: 0.65rem; margin: 1rem 0; }
.confidence-block {
  padding: 0.85rem 0.95rem;
  background: rgba(3, 7, 18, 0.45);
  border: 1px solid var(--muted);
  border-radius: 8px;
}
.confidence-block__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.confidence-block__text { font-size: 0.92rem; color: #e2e8f0; line-height: 1.5; }
.evidence-list { list-style: none; display: grid; gap: 0.3rem; margin: 0; padding: 0; }
.evidence-list li { font-size: 0.88rem; color: #cbd5e1; padding-left: 1rem; position: relative; }
.evidence-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.evidence-list li.is-pass::before { background: var(--ok); }
.evidence-list li.is-fail::before { background: var(--coral); }
.evidence-list li.is-open::before { background: var(--pause); }
.evidence-list__label { display: inline; }
.evidence-provenance {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.45;
}

.trust-line {
  font-size: 0.78rem;
  color: var(--dim);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.production-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.06);
}
.production-note__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fcd34d;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.production-note__text {
  margin: 0;
  font-size: 0.88rem;
  color: #fde68a;
  line-height: 1.45;
}

.panel-intro--action-name {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.journey-action-block {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(8, 145, 178, 0.35);
  border-radius: 10px;
  background: rgba(8, 145, 178, 0.06);
}
.journey-action-block__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.journey-action-block__hint {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--soft);
  line-height: 1.45;
}
.panel--scenario .scenario-row {
  margin-top: 0.15rem;
}

.journey-selection-context {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.35);
}
.journey-selection-context__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.journey-selection-context__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  flex: 0 0 auto;
}
.journey-selection-context__value {
  color: #f8fafc;
  font-weight: 700;
}

.confidence-action-scenario {
  display: grid;
  gap: 0.35rem;
}
.confidence-meta__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 0.25rem;
}
.confidence-meta__context {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--soft);
  line-height: 1.45;
}

/* Founder Confidence result */
.founder-result { padding-bottom: 1rem; }
.founder-decision { margin: 0 0 0.85rem; }
.founder-reason {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 500;
}
.founder-next {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.35);
}
.founder-next__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.3rem;
}
.founder-next__text {
  margin: 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.45;
}
.founder-details-disclosure {
  margin: 0.85rem 0 0;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.25);
}
.founder-details-disclosure summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #93c5fd;
  padding: 0.75rem 0.9rem;
  list-style: none;
}
.founder-details-disclosure summary::-webkit-details-marker { display: none; }
.founder-details-body { padding: 0 0.9rem 0.95rem; }
.details-section { margin-bottom: 0.85rem; }
.details-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.35rem;
}
.details-section p { margin: 0; font-size: 0.88rem; color: #e2e8f0; line-height: 1.45; }
.details-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.details-check-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}
.details-check-list__name { flex: 1 1 auto; }
.details-check-list__status { flex: 0 0 auto; color: var(--soft); font-size: 0.82rem; }
.details-id-list { margin: 0.25rem 0 0; padding-left: 1rem; font-size: 0.82rem; }
.details-mono, .details-engine-reason { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; }
.founder-secondary-actions { margin-top: 0.65rem; text-align: center; }
.founder-secondary-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  font-family: inherit;
}
.founder-secondary-link:hover { color: #fff; }

.attempt-summary {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.35);
  display: grid;
  gap: 0.4rem;
}
.attempt-summary__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.attempt-summary__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  min-width: 4.5rem;
}
.attempt-summary__value { color: #f8fafc; font-weight: 600; }
.journey-action-block--fixed { cursor: default; }

.hero-journey-context {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.35;
}
.hero-journey-context__action { color: #f8fafc; }
.hero-journey-context__sep { color: var(--dim); margin: 0 0.25rem; }
.hero-journey-context__scenario { color: #93c5fd; }

.hero.hero--compact {
  padding: 0.45rem 0 0.25rem;
}
.hero.hero--compact h1,
.hero.hero--compact .lede {
  display: none;
}
.hero.hero--compact .eyebrow {
  margin-bottom: 0.15rem;
}

.tech-details-disclosure {
  margin: 0.85rem 0 0;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.25);
}
.tech-details-disclosure summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #93c5fd;
  padding: 0.75rem 0.9rem;
  list-style: none;
}
.tech-details-disclosure summary::-webkit-details-marker { display: none; }
.tech-details-disclosure summary::after { content: ' ›'; opacity: 0.85; }
.tech-details-disclosure[open] summary { border-bottom: 1px solid var(--muted); }
.tech-details-body { padding: 0.85rem 0.9rem 0.95rem; }
.tech-detail__section { margin-bottom: 0.75rem; font-size: 0.82rem; color: var(--soft); }
.tech-detail__section strong { display: block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.25rem; }
.tech-detail__section p { margin: 0; line-height: 1.45; color: #e2e8f0; }
.tech-detail__mono { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; }
.tech-detail__list { margin: 0.25rem 0 0; padding-left: 1.1rem; color: #e2e8f0; }
.tech-detail__section pre {
  background: var(--black);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 0.75rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  margin-top: 0.35rem;
  max-height: 220px;
}

.decision-banner__reason { color: #e2e8f0; font-size: 0.95rem; margin: 0; line-height: 1.45; }
.result-panel .decision-banner { margin-top: 0.35rem; }

.actions--primary-only { margin-top: 1rem; }
.actions--primary-only .btn-primary { width: 100%; }
.panel-intro--action-name { margin-bottom: 0.65rem; }
.footer-note--inline { margin-top: 1rem; margin-bottom: 0; font-size: 0.78rem; }

:root {
  --black: #030712;
  --ink: #080e1a;
  --panel: #0c1220;
  --muted: #1e293b;
  --soft: #94a3b8;
  --dim: #64748b;
  --white: #f8fafc;
  --blue: #3b82f6;
  --cyan: #0891b2;
  --coral: #f87171;
  --ok: #22c55e;
  --pause: #f59e0b;
  --mono: 'Space Mono', monospace;
  --sans: 'Manrope', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
.page { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 4rem; overflow-x: hidden; }
body.tc-chrome-page .page { padding-top: 0; }
.site-nav {
  border-bottom: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 120;
}
.site-nav-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f8fafc;
  text-decoration: none !important;
}
.site-nav-brand:hover,
.site-nav-brand:focus-visible { text-decoration: none !important; }
.site-nav-brand span { color: #3b82f6; }
.site-nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav-links a { color: var(--soft); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] { color: #fff; }
.site-nav-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--muted);
  background: var(--panel);
  color: #f8fafc;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.site-nav-menu-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.site-nav-drawer { position: fixed; inset: 0; z-index: 200; }
.site-nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
}
.site-nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 88vw);
  height: 100%;
  background: var(--ink);
  border-left: 1px solid var(--muted);
  padding: 1rem 1.1rem 1.5rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}
.site-nav-drawer__close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--soft);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  display: block;
  padding: 0.25rem 0.35rem;
}
.site-nav-drawer__links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.site-nav-drawer__links a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.site-nav-drawer__links a:hover,
.site-nav-drawer__links a:focus-visible,
.site-nav-drawer__links a[aria-current="page"] {
  background: rgba(59, 130, 246, 0.12);
  color: #fff;
}

.hero { padding: 2.5rem 0 1.5rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  max-width: 18ch;
}
.lede { color: var(--soft); font-size: 1.05rem; max-width: 38rem; line-height: 1.6; }

.hidden { display: none !important; }

.bootstrap-failure {
  background: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  margin: 1.5rem 0;
}
.bootstrap-failure h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.bootstrap-failure__detail { color: var(--soft); font-size: 0.92rem; margin-bottom: 0.25rem; }

.journey-chrome { margin-top: 1rem; }
.journey-toolbar {
  display: block;
  margin-bottom: 0.5rem;
}

.progress-rail--desktop {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--muted);
  overflow: hidden;
}
.progress-compact { display: none; }
.progress-compact__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--muted);
}
.progress-back-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0;
  cursor: pointer;
  font-family: inherit;
  flex: 0 0 auto;
}
.progress-back-link:hover { color: #fff; }
.progress-rail--desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.5rem;
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--muted);
}
.progress-compact__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-compact__count { color: var(--soft); font-weight: 600; }
.progress-compact__sep { color: var(--dim); margin: 0 0.25rem; }
.progress-compact__step { color: #f8fafc; }

.progress-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--muted);
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1 1 auto;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.progress-step {
  flex: 0 0 auto;
  min-width: 6.75rem;
  padding: 0.75rem 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.progress-step.is-active { color: #e2e8f0; border-bottom-color: var(--cyan); }
.progress-step.is-done { color: var(--soft); }
.progress-step.is-future { color: var(--dim); opacity: 0.72; }

.panel {
  background: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  margin-top: 0.65rem;
}
.panel h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; }
.panel-intro { color: var(--soft); font-size: 0.92rem; margin-bottom: 1rem; max-width: 36rem; }
.panel-intro--tight { margin-bottom: 0.75rem; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.domain-card {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--muted);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.domain-card:hover:not(:disabled) { border-color: #475569; background: #0f172a; }
.domain-card:active:not(:disabled) { transform: scale(0.98); }
.domain-card.is-selected { border-color: var(--cyan); background: rgba(8,145,178,0.08); }
.domain-card--coming {
  cursor: default;
  opacity: 1;
  background: rgba(3, 7, 18, 0.35);
}
.domain-card__status {
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.domain-card__label { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.domain-card__meta { font-size: 0.78rem; color: var(--dim); line-height: 1.45; }
.domain-card__badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}
.domain-card__maturity { display: inline-block; margin-top: 0.45rem; margin-right: 0.35rem; }

.maturity-strip { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.maturity-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--muted);
  color: var(--soft);
  white-space: normal;
  line-height: 1.35;
  max-width: 100%;
}
.maturity-badge--live { border-color: rgba(34,197,94,0.45); color: #86efac; background: rgba(34,197,94,0.08); }
.maturity-badge--sim { border-color: rgba(8,145,178,0.45); color: #67e8f9; background: rgba(8,145,178,0.08); }
.maturity-badge--engine { border-color: rgba(59,130,246,0.45); color: #93c5fd; background: rgba(59,130,246,0.08); }
.maturity-badge--synthetic { border-color: rgba(248,113,113,0.45); color: #fca5a5; background: rgba(248,113,113,0.08); }

.scenario-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .scenario-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.scenario-chip {
  appearance: none;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.scenario-chip.is-selected { border-color: var(--cyan); color: #fff; background: rgba(8,145,178,0.12); }

.scenario-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  text-align: left;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left-width: 4px;
  background: rgba(2, 6, 23, 0.4);
  color: var(--soft);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.scenario-card.tone-allow { border-left-color: #22c55e; }
.scenario-card.tone-pause { border-left-color: #f59e0b; }
.scenario-card.tone-block { border-left-color: #ef4444; }
.scenario-card:active { transform: scale(0.99); }
.scenario-card.is-selected {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.55);
}
.scenario-card.tone-allow.is-selected { border-left-color: #22c55e; }
.scenario-card.tone-pause.is-selected { border-left-color: #f59e0b; }
.scenario-card.tone-block.is-selected { border-left-color: #ef4444; }
.scenario-card__outcome {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.scenario-card.tone-allow .scenario-card__outcome { color: #86efac; }
.scenario-card.tone-pause .scenario-card__outcome { color: #fcd34d; }
.scenario-card.tone-block .scenario-card__outcome { color: #fca5a5; }
.scenario-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}
.scenario-card__diff {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.baseline-source {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
}
.baseline-source__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.3rem;
}
.baseline-source__body {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.baseline-source__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  word-break: break-all;
}

.lifecycle-context {
  margin-top: 0.65rem;
}
.lifecycle-context__body {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}
.lifecycle-context__body p {
  margin: 0 0 0.45rem;
}
.lifecycle-mapping-sample {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}
.lifecycle-mapping-sample__title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #e2e8f0;
}

/* Admin Sandbox only: expandable baseline artifact lists */
body.sandbox-admin .baseline-admin {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
body.sandbox-admin .baseline-admin__item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.4);
  padding: 0;
}
body.sandbox-admin .baseline-admin__item--pack {
  border-left: 3px solid rgba(56, 189, 248, 0.45);
}
body.sandbox-admin .baseline-admin__item--domain {
  border-left-color: rgba(34, 197, 94, 0.55);
}
body.sandbox-admin .baseline-admin__item--control {
  border-left-color: rgba(251, 191, 36, 0.55);
}
body.sandbox-admin .baseline-admin__item--ref {
  border-left: 3px solid rgba(167, 139, 250, 0.4);
}
body.sandbox-admin .baseline-admin__pack-stack,
body.sandbox-admin .baseline-admin__ref-stack {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
body.sandbox-admin .baseline-admin__pack-stack::before {
  content: 'Domain and control packs';
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #67e8f9;
  margin: 0.15rem 0 0.1rem;
}
body.sandbox-admin .baseline-admin__ref-stack--framework::before {
  content: 'Framework / policy refs';
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0.65rem 0 0.1rem;
}
body.sandbox-admin .baseline-admin__ref-stack--evidence::before {
  content: 'Evidence contracts';
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0.65rem 0 0.1rem;
}
body.sandbox-admin .baseline-admin__item[open] > .baseline-admin__summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 0;
  padding-bottom: 0.55rem;
}
body.sandbox-admin .baseline-admin__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
}
body.sandbox-admin .baseline-admin__summary::-webkit-details-marker {
  display: none;
}
body.sandbox-admin .baseline-admin__label {
  font-weight: 700;
  color: #f8fafc;
}
body.sandbox-admin .baseline-admin__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: #93c5fd;
  word-break: break-all;
}
body.sandbox-admin .baseline-admin__body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
body.sandbox-admin .baseline-admin__loading,
body.sandbox-admin .baseline-admin__empty,
body.sandbox-admin .baseline-admin__meta,
body.sandbox-admin .baseline-admin__desc {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}
body.sandbox-admin .baseline-admin__group {
  margin-top: 0.65rem;
}
body.sandbox-admin .baseline-admin__group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.25rem;
}
body.sandbox-admin .baseline-admin__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.45;
}
body.sandbox-admin .baseline-admin__list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  color: #f8fafc;
}
body.sandbox-admin .admin-banner {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.84rem;
  line-height: 1.4;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
.field-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--white);
  padding: 0.65rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid rgba(8,145,178,0.4);
  border-color: var(--cyan);
}

.controls-groups { display: grid; gap: 1rem; }
.control-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}
.control-list { list-style: none; display: grid; gap: 0.35rem; }
.control-list li { font-size: 0.92rem; color: #cbd5e1; padding-left: 1rem; position: relative; }
.control-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.decision-banner {
  margin: 1.25rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--muted);
}
.decision-banner__word {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.tone-allow { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.35); }
.tone-allow .decision-banner__word { color: var(--ok); }
.tone-pause { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.35); }
.tone-pause .decision-banner__word { color: var(--pause); }
.tone-block { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.35); }
.tone-block .decision-banner__word { color: var(--coral); }

.why-what { display: grid; gap: 0.85rem; margin: 1rem 0; }
.why-what__block {
  padding: 0.95rem 1rem;
  background: rgba(3,7,18,0.45);
  border: 1px solid var(--muted);
  border-radius: 8px;
}
.why-what__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.why-what__text { font-size: 0.95rem; color: #e2e8f0; word-break: break-word; overflow-wrap: anywhere; }
.why-what__mono { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; overflow-wrap: anywhere; }

.fix-box {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(8,145,178,0.35);
  border-radius: 8px;
  background: rgba(8,145,178,0.06);
}
.fix-box h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cyan); margin-bottom: 0.45rem; }
.fix-box__canonical { font-size: 0.88rem; color: #bae6fd; margin-bottom: 0.5rem; font-weight: 600; }
.fix-flow-diagram {
  font-size: 0.78rem;
  color: var(--dim);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.5;
  word-break: break-word;
}
.fix-lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.5rem;
}
.fix-lifecycle__step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--muted);
  color: var(--dim);
}
.fix-lifecycle__step.is-active { border-color: var(--cyan); color: #e2e8f0; background: rgba(8,145,178,0.12); }
.fix-lifecycle__step.is-done { border-color: var(--ok); color: var(--ok); }
.recheck-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px;
  background: rgba(34,197,94,0.04);
}
.cta-helper { font-size: 0.78rem; color: var(--dim); margin-top: 0.35rem; width: 100%; line-height: 1.45; }

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 20px;
  border-radius: 8px;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-secondary { background: var(--muted); color: #e2e8f0; border: 1px solid #334155; }
.btn-ghost { background: transparent; border: 1px solid var(--muted); color: var(--soft); }
.btn-link { background: transparent; color: #93c5fd; padding: 10px 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; align-items: center; }
.mode-toggle {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--muted);
  background: var(--black);
}
.mode-toggle--segmented.hidden { display: none !important; }
.mode-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dim);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.mode-toggle button.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.mode-toggle button:not(.is-active):hover { color: var(--soft); }

.advanced-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--muted);
  font-size: 0.82rem;
  color: var(--soft);
}
.advanced-panel pre {
  background: var(--black);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 0.85rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-top: 0.45rem;
  max-height: 220px;
}

.tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.tab {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--soft);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--mono);
}
.tab.active { border-color: var(--blue); color: #fff; background: rgba(59,130,246,0.15); }

.hidden { display: none !important; }
.err { color: #fca5a5; font-size: 0.9rem; margin-top: 0.75rem; }
.footer-note { margin-top: 2rem; font-size: 0.82rem; color: var(--dim); max-width: 40rem; line-height: 1.55; }
.org-note { font-size: 0.82rem; color: var(--dim); margin-top: 0.5rem; }
.org-panel.hidden { display: none !important; }

@media (min-width: 769px) {
  .progress-step { min-width: 0; flex: 1 1 0; }
  .progress-compact { display: none !important; }
  .progress-rail--desktop { display: flex; }
  .actions--primary-only .btn-primary { width: auto; min-width: 12rem; }
}

@media (max-width: 768px) {
  body.journey-active .page-footer-deferred,
  body.journey-active .footer-note {
    display: none;
  }
  body.journey-complete .page-footer-deferred,
  body.journey-complete .footer-note {
    display: block;
  }
  .page {
    padding: 0 max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  .hero { padding: 0.6rem 0 0.35rem; }
  body.journey-in-flow .hero { padding: 0.35rem 0 0.15rem; }
  body.journey-in-flow .journey-chrome { margin-top: 0.15rem; }
  body.journey-in-flow .journey-toolbar { margin-bottom: 0.25rem; }
  body.journey-in-flow .panel { margin-top: 0.15rem; }
  .journey-action-block { padding: 0.75rem 0.85rem; margin-bottom: 0.65rem; }
  .journey-action-block__name { font-size: 1rem; }
  .journey-action-block__hint { font-size: 0.8rem; }
  .journey-selection-context { margin-bottom: 0.55rem; padding: 0.55rem 0.65rem; }
  h1 {
    max-width: none;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    margin-bottom: 0.35rem;
    line-height: 1.12;
  }
  .lede { font-size: 0.88rem; line-height: 1.45; max-width: none; margin-bottom: 0; }
  .eyebrow { margin-bottom: 0.3rem; font-size: 10px; }
  .site-nav {
    padding: max(8px, env(safe-area-inset-top)) 0 8px;
  }
  .site-nav-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  nav.site-nav .site-nav-links.site-nav-links--desktop { display: none !important; }
  .journey-chrome { margin-top: 0.25rem; }
  .journey-toolbar { margin-bottom: 0.35rem; }
  .progress-compact__inner { padding: 0.4rem 0; }
  .progress-rail--desktop { display: none !important; }
  .progress-compact { display: block; }
  .field-grid { grid-template-columns: 1fr; gap: 0.55rem; }
  .field label { font-size: 0.82rem; margin-bottom: 0.18rem; }
  .field input, .field select {
    padding: 0.55rem 0.65rem;
    font-size: 16px;
    min-height: 48px;
    line-height: 1.2;
  }
  .domain-grid { grid-template-columns: 1fr; gap: 0.55rem; }
  .domain-card { width: 100%; padding: 0.85rem 0.85rem; min-height: 48px; }
  .domain-card__meta { display: none; }
  .domain-card__maturity { display: none; }
  .domain-card__badge { display: none; }
  .domain-card__label { margin-bottom: 0; font-size: 0.96rem; }
  .panel { padding: 0.85rem 0.85rem; margin-top: 0.25rem; }
  .panel-intro { font-size: 0.84rem; margin-bottom: 0.6rem; line-height: 1.45; }
  .panel-intro--tight { margin-bottom: 0.55rem; }
  .scenario-row { margin-bottom: 0.65rem; gap: 0.45rem; }
  .scenario-chip { padding: 0.5rem 0.75rem; font-size: 0.8rem; min-height: 44px; }
  .scenario-card { min-height: 44px; padding: 0.7rem 0.8rem; }
  .actions .btn-primary, .actions .btn-ghost, .actions .btn-secondary { width: 100%; min-height: 48px; }
  .actions--primary-only { margin-top: 0.75rem; }
  .decision-banner { padding: 0.85rem; overflow: hidden; margin: 0.65rem 0; }
  .decision-banner__word { font-size: clamp(1.5rem, 8vw, 2.25rem); }
  .confidence-block { padding: 0.75rem 0.85rem; }
  .footer-note { margin-top: 1rem; font-size: 0.76rem; }
}

/* —— Pre-run checklist + Result sections —— */
.check-gate-prerun {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}
.check-gate-prerun__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.25rem;
}
.check-gate-prerun__intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.check-gate-prerun__grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .check-gate-prerun__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.check-gate-prerun__card {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.check-gate-prerun__label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #f8fafc;
}
.check-gate-prerun__blurb {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}
.check-gate-prerun__list {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.4;
}
.check-gate-result-sections {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
}
.check-gate-section {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.check-gate-section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.25rem;
}
.check-gate-section__text {
  margin: 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.45;
}
.check-gate-section--change {
  border-color: rgba(56, 189, 248, 0.35);
}
.check-gate-who__actor {
  display: inline-block;
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
}
.check-gate-recoverable-tag,
.check-gate-hardstop-tag {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.check-gate-recoverable-tag { color: #fcd34d; }
.check-gate-hardstop-tag { color: #fca5a5; }
.decision-banner.is-recoverable {
  box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.35);
}
.decision-banner.is-hard-stop {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}
.check-gate-fix-actions {
  margin: 0.75rem 0 1rem;
}
.check-gate-ready-note {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #bbf7d0;
}
.cta-helper {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}
