:root {
  color-scheme: light;
  --ink: #16231f;
  --muted: #505b57;
  --quiet: #65706b;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --line: #dce1dc;
  --line-dark: #bdc7c1;
  --green: #1e6b4e;
  --green-dark: #124a37;
  --mint: #dcefe6;
  --lime: #dfff82;
  --amber: #a8600c;
  --amber-bg: #fff1d9;
  --red: #9b3c32;
  --red-bg: #fbe7e2;
  --shadow: 0 26px 70px rgba(26, 45, 38, 0.09);
  --radius: 18px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #5a91ff; outline-offset: 3px; }

.topbar { height: 74px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(22, 35, 31, 0.12); background: rgba(245, 243, 237, 0.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 14px; }
.brand-word { font-size: 15px; font-weight: 850; letter-spacing: 0.15em; }
.topbar-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 620; }
.status-dot { width: 8px; height: 8px; background: #55b887; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85,184,135,.12); }
.status-divider { width: 1px; height: 13px; background: var(--line-dark); margin: 0 3px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.guide-button { border: 1px solid var(--line-dark); border-radius: 100px; background: var(--surface); padding: 9px 13px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; }
.guide-button:hover { border-color: var(--green); color: var(--green); }
.text-button { border: 0; background: none; padding: 8px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--ink); }

.hero { padding: clamp(72px, 10vw, 138px) clamp(20px, 7vw, 110px) 44px; max-width: 1600px; margin: 0 auto; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span + span { color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-dark); }
.hero-grid { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); gap: clamp(38px, 8vw, 130px); align-items: end; }
h1 { max-width: 900px; margin: 0; font-size: clamp(58px, 7.8vw, 124px); font-weight: 540; letter-spacing: -.072em; line-height: .91; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--green); }
.hero-copy { max-width: 690px; margin: 36px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.5; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.scenario-card { border-top: 1px solid var(--ink); padding: 18px 0 4px; }
.scenario-card strong { display: block; margin-top: 26px; font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.scenario-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.scenario-label, .micro-label, .stage-kicker { color: var(--green); text-transform: uppercase; letter-spacing: .105em; font-size: 10px; font-weight: 850; }
.hero-meta { display: flex; gap: 36px; padding-top: 28px; margin-top: 44px; border-top: 1px solid var(--line-dark); color: var(--muted); font-size: 12px; font-weight: 700; }

.demo-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1500px; margin: 64px auto 120px; padding: 0 clamp(16px, 3vw, 48px); scroll-margin-top: 86px; }
.stage-nav { background: var(--ink); padding: 22px 14px; border-radius: 24px 0 0 24px; display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.stage-tab { display: grid; grid-template-columns: 36px 1fr; gap: 10px; text-align: left; border: 0; border-radius: 13px; padding: 17px 14px; background: transparent; color: #b4c0ba; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.stage-tab:hover { background: rgba(255,255,255,.055); color: white; }
.stage-tab.is-active { background: var(--lime); color: var(--ink); }
.stage-tab.is-complete:not(.is-active) .stage-number::after { content: "✓"; }
.stage-tab.is-complete:not(.is-active) .stage-number { font-size: 0; color: var(--lime); }
.stage-tab.is-complete:not(.is-active) .stage-number::after { font-size: 11px; }
.stage-number { font-size: 11px; letter-spacing: .08em; padding-top: 2px; }
.stage-tab strong, .stage-tab small { display: block; }
.stage-tab strong { font-size: 13px; letter-spacing: -.01em; }
.stage-tab small { font-size: 10px; margin-top: 4px; opacity: .68; line-height: 1.3; }
.demo-stage { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 24px 24px 0; box-shadow: var(--shadow); overflow: hidden; }
.stage-header { min-height: 184px; padding: 42px clamp(24px, 4vw, 62px) 34px; display: flex; justify-content: space-between; gap: 30px; align-items: start; border-bottom: 1px solid var(--line); }
.stage-header h2 { margin: 12px 0 8px; font-size: clamp(30px, 3.3vw, 50px); letter-spacing: -.055em; line-height: 1; font-weight: 580; }
.stage-header p { margin: 0; color: var(--muted); font-size: 15px; }
.stage-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lens-switch { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #f7f7f3; border-radius: 12px; }
.lens-switch > span { padding: 0 7px; color: var(--quiet); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.lens-option { border: 0; background: transparent; border-radius: 8px; padding: 7px 9px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; line-height: 1.1; }
.lens-option small { display: block; margin-top: 3px; color: inherit; opacity: .65; font-size: 7px; font-weight: 700; }
.lens-option.is-active { background: var(--ink); color: white; }
.cue-button { border: 1px solid var(--line-dark); border-radius: 100px; background: transparent; padding: 10px 13px; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.cue-button:hover { border-color: var(--green); color: var(--green); }
.presenter-cue { margin: 0 clamp(24px, 4vw, 62px); padding: 16px 0; border-bottom: 1px dashed var(--line-dark); display: flex; gap: 16px; align-items: baseline; }
.presenter-cue[hidden] { display: none; }
.presenter-cue span { color: var(--amber); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; white-space: nowrap; }
.presenter-cue p { margin: 0; color: var(--muted); font-family: Georgia, serif; font-style: italic; line-height: 1.5; }
.stage-panel { display: none; min-height: 540px; padding: 36px clamp(24px, 4vw, 62px) 46px; animation: panel-in .35s ease both; }
.stage-panel.is-active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h3 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.035em; }
.safe-pill { background: var(--mint); color: var(--green-dark); border-radius: 100px; padding: 7px 10px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.context-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); gap: clamp(28px, 4vw, 54px); }
.evidence-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evidence-card { border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: #fff; transition: border .2s ease, opacity .2s ease, transform .2s ease; }
.evidence-card:hover { transform: translateY(-2px); border-color: var(--line-dark); }
.evidence-card.is-excluded { opacity: .5; background: #f4f4f1; }
.evidence-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.evidence-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--mint); border-radius: 10px; color: var(--green); font-weight: 900; }
.switch { position: relative; width: 38px; height: 23px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { display: block; width: 38px; height: 23px; background: #cbd2ce; border-radius: 20px; cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: white; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:focus-visible + span { outline: 3px solid #5a91ff; outline-offset: 3px; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(15px); }
.evidence-card h4 { margin: 17px 0 5px; font-size: 14px; }
.evidence-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.evidence-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.context-summary { padding: 24px; background: #eef3ed; border-radius: 18px; align-self: start; }
.summary-orbit { width: 112px; height: 112px; display: grid; place-items: center; margin: 0 auto 28px; border: 1px dashed #98a9a0; border-radius: 50%; position: relative; }
.summary-orbit::before, .summary-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--lime); width: 13px; height: 13px; top: 5px; left: 18px; box-shadow: 72px 38px 0 #8fc9ac, 18px 87px 0 #d3a85e; }
.summary-orbit::after { width: 36px; height: 36px; top: 37px; left: 37px; background: var(--ink); box-shadow: none; }
.summary-orbit span { z-index: 1; color: var(--lime); font-size: 9px; font-weight: 850; }
.context-summary h3 { font-size: 24px; letter-spacing: -.035em; margin: 8px 0; }
.context-summary > p { font-size: 12px; line-height: 1.5; color: var(--muted); }
.mini-stats { margin: 22px 0 0; }
.mini-stats div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #d4ded7; font-size: 11px; }
.mini-stats dt { color: var(--muted); }
.mini-stats dd { margin: 0; font-weight: 750; }
.stress-test { margin-top: 20px; padding-top: 17px; border-top: 1px solid #d4ded7; transition: opacity .2s ease; }
.business-studio { transition: box-shadow .2s ease, opacity .2s ease; }
.stress-test.lens-match { box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
.business-studio.lens-match { box-shadow: inset 0 0 0 2px var(--amber); }
.stress-test.lens-other, .business-studio.lens-other { opacity: .78; }
.stress-options { display: grid; gap: 5px; margin-top: 9px; }
.stress-option { width: 100%; border: 1px solid #cdd8d0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 9px; text-align: left; font-size: 9px; font-weight: 750; cursor: pointer; }
.stress-option.is-active { background: white; border-color: var(--green); color: var(--green); box-shadow: inset 3px 0 0 var(--green); }

.recommendation-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: var(--ink); color: white; padding: 24px; border-radius: 18px; }
.confidence-ring { --confidence: 86%; width: 88px; height: 88px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 28px; background: radial-gradient(circle closest-side, var(--ink) 78%, transparent 80% 99%), conic-gradient(var(--lime) var(--confidence), #41504a 0); }
.confidence-ring span { font-size: 13px; font-weight: 820; letter-spacing: -.02em; }
.confidence-ring small { font-size: 10px; color: #b8c2bd; }
.confidence-ring.conditional { background: radial-gradient(circle closest-side, var(--ink) 78%, transparent 80% 99%), conic-gradient(#efb860 66%, #41504a 0); }
.confidence-ring.blocked { background: radial-gradient(circle closest-side, var(--ink) 78%, transparent 80% 99%), conic-gradient(#e28072 34%, #41504a 0); }
.recommendation-banner .micro-label { color: var(--lime); }
.recommendation-banner h3 { margin: 7px 0 6px; font-size: 22px; letter-spacing: -.03em; }
.recommendation-banner p { margin: 0; color: #b7c1bc; font-size: 12px; line-height: 1.45; }
.recommendation-state { align-self: start; border: 1px solid #607069; border-radius: 100px; padding: 7px 10px; color: #c4cec9; text-transform: uppercase; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.recommendation-banner.is-blocked { background: #432b28; }
.recommendation-banner.is-conditional { background: #3d3929; }
.evidence-map { display: flex; align-items: center; gap: 16px; margin: 15px 0; padding: 12px 15px; background: #f3f6f2; border: 1px solid var(--line); border-radius: 12px; }
.evidence-map > div { display: flex; gap: 7px; flex-wrap: wrap; }
.evidence-link { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 6px 9px; color: var(--green-dark); background: var(--mint); font-size: 9px; font-weight: 780; }
.evidence-link::before { content: "↳"; color: var(--green); }
.evidence-link.missing { color: var(--red); background: var(--red-bg); text-decoration: line-through; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.decision-grid.is-candidate .option-card { opacity: .62; }
.decision-grid.is-candidate .option-card.recommended { border-style: dashed; box-shadow: none; }
.option-card { border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: white; }
.option-card.recommended { border: 2px solid var(--green); padding: 20px; box-shadow: inset 0 0 0 4px #eef7f2; }
.option-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.option-tag { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.option-tag.neutral { color: var(--quiet); }
.risk { font-size: 9px; font-weight: 800; padding: 5px 8px; border-radius: 100px; }
.risk.low { color: var(--green-dark); background: var(--mint); }
.risk.high { color: var(--red); background: var(--red-bg); }
.option-card h4 { font-size: 20px; letter-spacing: -.025em; margin: 20px 0 7px; }
.option-card p, .option-card li { color: var(--muted); font-size: 11px; line-height: 1.5; }
.option-card ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.option-card li { padding: 3px 0 3px 15px; position: relative; }
.option-card li::before { content: "·"; color: var(--green); font-weight: 900; position: absolute; left: 1px; }
.assumption-panel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.assumption-panel summary { cursor: pointer; font-size: 12px; font-weight: 760; }
.assumption-panel > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 13px; }
.assumption-panel p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.assumption-panel strong { color: var(--ink); }
.business-studio { margin-top: 22px; padding: 20px; border: 1px solid #d8d5c7; border-radius: 18px; background: #faf7ec; }
.business-studio h3 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.025em; }
.business-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 13px; }
.business-option { border: 1px solid #d8d0b8; background: white; color: var(--muted); border-radius: 100px; padding: 8px 11px; font-size: 9px; font-weight: 780; cursor: pointer; }
.business-option.is-active { border-color: var(--amber); background: var(--amber-bg); color: #744208; }
.business-studio p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.business-studio small { display: block; margin-top: 8px; color: var(--quiet); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.reasoning-studio { margin-top: 22px; padding: 22px; border: 1px solid #cfd9d2; border-radius: 18px; background: linear-gradient(135deg, #f1f7f2, #f8f6ee); }
.studio-intro { display: flex; gap: 14px; align-items: start; }
.studio-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 850; }
.studio-intro h3 { margin: 5px 0 4px; font-size: 21px; letter-spacing: -.03em; }
.studio-intro p { margin: 0; color: var(--muted); font-size: 10px; }
.prompt-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 10px 52px; }
.prompt-suggestions button { border: 1px solid #c8d5cd; background: white; color: var(--green-dark); border-radius: 100px; padding: 7px 9px; font-size: 9px; font-weight: 750; cursor: pointer; }
.prompt-suggestions button:hover { border-color: var(--green); }
.reasoning-form { display: flex; gap: 7px; margin-left: 52px; }
.reasoning-form input { min-width: 0; flex: 1; border: 1px solid #c8d5cd; background: white; border-radius: 100px; padding: 11px 14px; color: var(--ink); font-size: 11px; }
.reasoning-form .primary-button { padding-left: 15px; padding-right: 15px; }
.reasoning-response { margin: 12px 0 0 52px; padding: 14px 16px; background: var(--ink); color: white; border-radius: 12px; }
.reasoning-response .response-label { display: block; color: var(--lime); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.reasoning-response p { margin: 7px 0 0; color: #d3dbd7; font-size: 11px; line-height: 1.55; }
.reasoning-response strong { color: white; }

.symbiosis-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: clamp(28px, 5vw, 68px); align-items: start; }
.symbiosis-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; padding: 6px; border: 1px solid var(--line); border-radius: 15px; background: #f1f3ef; }
.symbiosis-mode-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.symbiosis-mode-tab span { font-size: 12px; font-weight: 850; }
.symbiosis-mode-tab small { font-size: 9px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
.symbiosis-mode-tab.is-active { background: white; color: var(--ink); box-shadow: 0 4px 15px rgba(26, 45, 38, .07); }
#liveRuntimePanel[hidden], #worldStudioPanel[hidden] { display: none; }
.world-studio { display: grid; gap: 20px; }
.world-studio-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 25px; border-radius: 18px; background: var(--ink); color: white; }
.world-studio-head .micro-label { color: var(--lime); }
.world-studio-head h3 { margin: 8px 0 7px; font-size: 29px; letter-spacing: -.045em; }
.world-studio-head p { max-width: 680px; margin: 0; color: #c7d1cc; font-size: 12px; line-height: 1.55; }
.world-studio-head .safe-pill { flex: 0 0 auto; }
.world-input-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.world-input-grid fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; }
.world-input-grid legend { padding: 0 6px; color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.studio-options { display: grid; gap: 7px; }
.studio-options.compact { grid-template-columns: repeat(3, 1fr); }
.studio-option { min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 770; line-height: 1.35; text-align: left; }
.studio-option:hover { border-color: var(--green); color: var(--green-dark); }
.studio-option.is-active { border-color: var(--green); background: var(--mint); color: var(--green-dark); box-shadow: inset 3px 0 0 var(--green); }
.build-worlds { width: 100%; display: flex; justify-content: space-between; margin-top: 12px; }
.constellation-panel { overflow: hidden; border: 1px solid #2e453c; border-radius: 18px; background: #13231d; color: white; box-shadow: 0 18px 44px rgba(16, 34, 27, .12); }
.constellation-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 20px 22px 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
.constellation-head .micro-label { color: var(--lime); }
.constellation-head h3 { margin: 7px 0 6px; font-size: 23px; letter-spacing: -.04em; }
.constellation-head p { max-width: 640px; margin: 0; color: #b8c7c0; font-size: 11px; line-height: 1.5; }
.constellation-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.constellation-controls > span { max-width: 220px; color: #a9bab2; font-size: 9px; font-weight: 760; line-height: 1.35; text-align: right; }
.constellation-controls .secondary-button { border-color: #52655d; color: white; background: rgba(255,255,255,.04); }
.constellation-controls .secondary-button:hover { border-color: var(--lime); color: var(--lime); }
.constellation-canvas-shell { position: relative; min-height: 360px; background: radial-gradient(circle at 42% 48%, rgba(62, 121, 93, .18), transparent 30%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.constellation-canvas-shell canvas { display: block; width: 100%; height: 360px; touch-action: pan-y; }
.constellation-axis { position: absolute; inset: auto 17px 12px; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 8px; pointer-events: none; }
.constellation-axis span { color: rgba(223,255,130,.64); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.constellation-focus { margin: 0; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #dce5e0; font-size: 10px; line-height: 1.45; }
.constellation-text-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0 14px; list-style: none; border-top: 1px solid rgba(255,255,255,.08); }
.constellation-text-map li { padding: 12px 10px; color: #aebdb6; font-size: 9px; line-height: 1.45; }
.constellation-text-map li + li { border-left: 1px solid rgba(255,255,255,.08); }
.constellation-text-map strong { display: block; margin-bottom: 3px; color: var(--lime); font-size: 9px; }
.constellation-note { margin: 0; padding: 0 20px 16px; color: #879b92; font-size: 9px; line-height: 1.45; }
.world-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.world-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: border-color .2s, transform .2s, box-shadow .2s; }
.world-card.is-selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 12px 28px rgba(26, 45, 38, .08); transform: translateY(-2px); }
.world-card.is-held { border-color: var(--amber); background: var(--amber-bg); }
.world-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.world-horizon, .world-state { color: var(--quiet); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.world-card.is-selected .world-state { color: var(--green); }
.world-card.is-held .world-state { color: var(--amber); }
.world-card h4 { margin: 17px 0 8px; font-size: 19px; letter-spacing: -.035em; }
.world-card > p { min-height: 50px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.world-card dl { margin: 16px 0; }
.world-card dl div { display: grid; grid-template-columns: 66px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.35; }
.world-card dt { color: var(--quiet); }
.world-card dd { margin: 0; color: var(--ink); font-weight: 760; }
.world-card .secondary-button { width: 100%; margin-top: auto; }
.cognitive-projection { padding: 23px; border-radius: 17px; background: #eef4ef; border: 1px solid #cddbd1; }
.projection-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.projection-head h3 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.04em; }
.projection-head > span { flex: 0 0 auto; padding: 7px 9px; border-radius: 100px; background: white; color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.projection-head > span.is-held { color: var(--amber); background: var(--amber-bg); }
.projection-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 20px 0 0; border-top: 1px solid #cddbd1; border-left: 1px solid #cddbd1; }
.projection-grid div { padding: 13px; border-right: 1px solid #cddbd1; border-bottom: 1px solid #cddbd1; background: rgba(255,255,255,.56); }
.projection-grid div:last-child { grid-column: 1 / -1; }
.projection-grid dt { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.projection-grid dd { margin: 7px 0 0; color: var(--ink); font-size: 10px; line-height: 1.5; }
.projection-disclaimer { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.intervention-lab { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fbfaf6; }
.intervention-lab h3 { margin: 7px 0 0; font-size: 21px; letter-spacing: -.035em; }
.intervention-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.intervention-actions button { border: 1px solid var(--line-dark); border-radius: 100px; background: white; padding: 9px 11px; color: var(--green-dark); cursor: pointer; font-size: 9px; font-weight: 780; }
.intervention-actions button:hover { border-color: var(--green); }
.intervention-result { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #d7dfda; font-size: 10px; line-height: 1.5; }
.world-receipt { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.world-receipt li { padding: 6px 8px; border-radius: 100px; background: #edf0ec; color: var(--muted); font-size: 9px; }
.session-console { overflow: hidden; border: 1px solid #ccd8d0; border-radius: 19px; background: #f6f8f4; }
.session-console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid #d7e0da; background: white; }
.session-console-head h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.035em; }
.runtime-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 100px; color: var(--muted); background: #eef1ef; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.runtime-state i { width: 7px; height: 7px; border-radius: 50%; background: #aeb7b2; }
.runtime-state.is-ready { color: var(--green-dark); background: var(--mint); }
.runtime-state.is-ready i { background: #58aa7d; }
.runtime-state.is-loading { color: #744208; background: var(--amber-bg); }
.runtime-state.is-loading i { background: var(--amber); }
.runtime-state.is-error { color: var(--red); background: var(--red-bg); }
.runtime-state.is-error i { background: var(--red); }
.session-transcript { min-height: 215px; max-height: 340px; overflow-y: auto; padding: 18px 20px; }
.session-message { width: min(86%, 620px); margin-bottom: 11px; padding: 13px 15px; border-radius: 13px; background: white; border: 1px solid #d9e1db; }
.session-message.user-message { margin-left: auto; background: var(--ink); border-color: var(--ink); color: white; }
.session-message.error-message { border-color: #e0b4ad; background: var(--red-bg); }
.session-message span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.session-message.user-message span { color: var(--lime); }
.session-message.error-message span { color: var(--red); }
.session-message p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.session-message.user-message p { color: #e1e7e3; }
.challenge-deck { padding: 15px 20px; border-top: 1px solid #d7e0da; border-bottom: 1px solid #d7e0da; background: #fbfaf6; }
.challenge-deck > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.challenge-deck button { border: 1px solid #c8d5cd; background: white; color: var(--green-dark); border-radius: 100px; padding: 7px 9px; font-size: 9px; font-weight: 760; cursor: pointer; }
.challenge-deck button:hover { border-color: var(--green); }
.live-session-form { padding: 17px 20px 20px; }
.live-session-form > label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 10px; font-weight: 780; }
.live-session-form > div { display: flex; gap: 7px; }
.live-session-form input { min-width: 0; flex: 1; border: 1px solid #c8d5cd; background: white; border-radius: 100px; padding: 11px 14px; color: var(--ink); font-size: 11px; }
.live-session-form input:disabled { background: #ecefed; color: var(--quiet); cursor: not-allowed; }
.live-session-form small { display: block; margin-top: 8px; color: var(--quiet); font-size: 8px; line-height: 1.45; }
.session-control { padding-top: 8px; }
.session-control h3 { margin: 12px 0 9px; font-size: 31px; line-height: 1; letter-spacing: -.045em; }
.session-control > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.actor-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0 12px; }
.actor-option { border: 1px solid var(--line-dark); background: transparent; color: var(--muted); border-radius: 100px; padding: 9px 7px; font-size: 9px; font-weight: 800; cursor: pointer; }
.actor-option.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.session-control > .primary-button, .session-control > .secondary-button { width: 100%; display: flex; justify-content: space-between; margin-top: 7px; }
.session-limits { margin: 21px 0 0; }
.session-limits div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.4; }
.session-limits dt { color: var(--quiet); }
.session-limits dd { margin: 0; color: var(--ink); font-weight: 760; }
.activation-note { padding: 12px; border-radius: 10px; background: var(--amber-bg); color: #744208 !important; font-size: 9px !important; }
.symbiotic-map { display: flex; align-items: center; gap: 8px; margin-top: 26px; overflow-x: auto; padding: 16px 0 4px; border-top: 1px solid var(--line); color: var(--green-dark); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.symbiotic-map span { flex: 0 0 auto; padding: 7px 9px; border-radius: 100px; background: #eef4ef; }
.symbiotic-map i { flex: 1 0 14px; min-width: 14px; height: 1px; background: var(--line-dark); }

.approval-layout, .action-layout, .audit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: clamp(34px, 6vw, 84px); align-items: center; }
.approval-copy h3 { font-size: clamp(34px, 4.4vw, 61px); line-height: .98; letter-spacing: -.055em; margin: 16px 0 20px; font-weight: 560; }
.approval-copy > p { color: var(--muted); max-width: 500px; font-size: 15px; line-height: 1.55; }
.boundary-flow { margin-top: 40px; display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.boundary-flow span { white-space: nowrap; }
.boundary-flow span.done { color: var(--green); }
.boundary-flow span.current { padding: 7px 9px; color: var(--amber); background: var(--amber-bg); border-radius: 100px; }
.boundary-flow span.current.is-denied { color: var(--red); background: var(--red-bg); }
.boundary-flow i { flex: 1; min-width: 6px; height: 1px; background: var(--line-dark); }
.approval-card { background: #f1f5f0; border: 1px solid #d6dfd8; border-radius: 19px; padding: 25px; }
.approval-card-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.approval-card-head h3 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.02em; }
.pending-badge { color: var(--amber); background: var(--amber-bg); border-radius: 100px; padding: 6px 8px; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .07em; }
.pending-badge.approved { color: var(--green-dark); background: var(--mint); }
.approval-scope { margin: 22px 0; }
.approval-scope div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #d6dfd8; font-size: 10px; line-height: 1.4; }
.approval-scope dt { color: var(--muted); }
.approval-scope dd { margin: 0; font-weight: 750; }
.approval-check { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.4; cursor: pointer; }
.approval-check input { accent-color: var(--green); margin-top: 1px; }
.primary-button, .secondary-button { border-radius: 100px; padding: 12px 16px; font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.primary-button { border: 1px solid var(--green); background: var(--green); color: white; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--green-dark); }
.primary-button:disabled { cursor: not-allowed; background: #bfc7c2; border-color: #bfc7c2; color: #edf0ee; }
.secondary-button { border: 1px solid var(--line-dark); background: transparent; color: var(--ink); }
.secondary-button:hover:not(:disabled) { border-color: var(--ink); }
.secondary-button:disabled { opacity: .4; cursor: not-allowed; }
.approval-card .primary-button { width: 100%; margin-top: 18px; display: flex; justify-content: space-between; }
.review-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 8px; }
.review-actions .secondary-button { font-size: 9px; }
.deny-button { border: 0; background: transparent; color: var(--red); border-radius: 100px; padding: 10px 14px; font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.deny-button:hover { background: var(--red-bg); text-decoration: none; }
.approval-card.is-blocked { border-color: #e0b4ad; background: #fbf2ef; }
.form-note { text-align: center; margin: 10px 0 0; color: var(--quiet); font-size: 9px; }

.action-preview { border: 1px solid var(--line); padding: 24px; border-radius: 19px; background: #fafaf7; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; }
.action-status { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.action-status i { width: 7px; height: 7px; background: #aeb7b2; border-radius: 50%; }
.action-status.ready { color: var(--amber); }
.action-status.ready i { background: #e3a34b; }
.action-status.complete { color: var(--green); }
.action-status.complete i { background: #5bbe89; }
.dispatch-card { margin: 26px 0; padding: 24px; border-radius: 14px; background: white; border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.dispatch-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--mint); border-radius: 13px; color: var(--green); font-size: 20px; }
.dispatch-card span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.dispatch-card h3 { margin: 4px 0; font-size: 18px; }
.dispatch-card p { margin: 0; color: var(--green); font-size: 11px; font-weight: 700; }
.action-guardrails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action-guardrails div { border-top: 1px solid var(--line); padding-top: 11px; }
.action-guardrails span, .action-guardrails strong { display: block; font-size: 9px; }
.action-guardrails span { color: var(--quiet); margin-bottom: 4px; }
.action-control h3 { margin: 12px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.action-control > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.action-control .primary-button { margin-top: 14px; width: 100%; display: flex; justify-content: space-between; }
.drift-button { width: 100%; margin-top: 8px; border: 1px dashed var(--line-dark); background: transparent; color: var(--muted); border-radius: 100px; padding: 10px 13px; font-size: 9px; font-weight: 760; cursor: pointer; }
.drift-button:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.drift-button:disabled { opacity: .45; cursor: not-allowed; }
.action-result { min-height: 44px; margin-top: 14px; font-size: 11px; color: var(--green); line-height: 1.45; }
.action-result.success { padding: 13px; background: var(--mint); border-radius: 10px; }

.audit-layout { align-items: start; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); }
.audit-timeline { position: relative; }
.audit-timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line-dark); }
.audit-event { display: grid; grid-template-columns: 32px 1fr auto; gap: 13px; position: relative; padding: 10px 0; }
.event-dot { width: 31px; height: 31px; z-index: 1; display: grid; place-items: center; border: 1px solid var(--line-dark); background: var(--surface); border-radius: 50%; color: var(--green); font-size: 10px; font-weight: 900; }
.audit-event h4 { margin: 2px 0 4px; font-size: 12px; }
.audit-event p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.event-meta { display: flex; gap: 8px; margin-top: 4px; color: var(--quiet); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.event-time { color: var(--quiet); font-size: 9px; padding-top: 5px; }
.audit-summary { background: var(--ink); color: white; border-radius: 18px; padding: 25px; }
.audit-summary .micro-label { color: var(--lime); }
.audit-summary h3 { margin: 12px 0 8px; font-size: 26px; letter-spacing: -.04em; }
.audit-summary > p { color: #b6c1bb; font-size: 11px; line-height: 1.5; }
.trace-id { display: flex; justify-content: space-between; border-top: 1px solid #43524c; border-bottom: 1px solid #43524c; padding: 13px 0; margin: 21px 0; font-size: 9px; color: #aeb9b3; }
.trace-id code { color: white; }
.integrity-note { display: flex; gap: 10px; align-items: start; }
.integrity-note > span { color: var(--lime); }
.integrity-note p { margin: 0; font-size: 9px; color: #aeb9b3; line-height: 1.5; }
.integrity-note strong { color: white; }
.trace-preview { margin-top: 16px; border: 1px solid var(--line); background: #f4f5f1; border-radius: 13px; overflow: hidden; }
.trace-preview[hidden] { display: none; }
.trace-preview > div { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.trace-preview pre { max-height: 260px; overflow: auto; margin: 0; padding: 14px; color: #2a443a; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.proof-panel { margin-top: 22px; padding: 20px; border: 1px solid #cfd9d2; border-radius: 17px; background: linear-gradient(145deg, #f7faf6, #eef4ef); }
.proof-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.proof-heading h3 { margin: 7px 0 0; max-width: 540px; font-size: 19px; letter-spacing: -.025em; }
.proof-disposition { display: grid; justify-items: end; gap: 7px; text-align: right; }
.proof-disposition small { max-width: 190px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.proof-grid div { padding: 15px; border: 1px solid #d7e1da; border-radius: 12px; background: rgba(255,255,255,.78); }
.proof-grid dt, .proof-grid dd { margin: 0; }
.proof-grid dt { color: var(--quiet); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.proof-grid dd { margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 760; line-height: 1.35; }
.proof-replay { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid #d5dfd8; }
.proof-replay strong { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.proof-replay p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.proof-replay .secondary-button { flex: 0 0 auto; }
.proof-limit { margin: 14px 0 0; padding: 11px 13px; border-radius: 9px; background: var(--amber-bg); color: #744208; font-size: 9px; line-height: 1.5; }
.runtime-proof { margin: 4px 0 18px; padding: 16px; border: 1px solid #bfd0c3; border-radius: 13px; background: rgba(255,255,255,.82); box-shadow: inset 3px 0 0 var(--green); }
.runtime-proof-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid #d8e2da; }
.runtime-proof-summary h4 { margin: 4px 0 0; color: var(--ink); font-size: 15px; letter-spacing: -.02em; }
.runtime-proof-summary code { padding: 7px 9px; border-radius: 7px; background: #edf3ee; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.proof-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.proof-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 12px 0; border-bottom: 1px solid #e2e9e3; }
.proof-checks li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e7f0e9; color: var(--green); font-size: 8px; font-weight: 850; }
.proof-checks p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.proof-checks strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 10px; }
.proof-checks b { padding-top: 3px; color: var(--green); font-size: 8px; letter-spacing: .08em; }
.runtime-proof-note { margin: 12px 0 0; color: var(--quiet); font-size: 9px; line-height: 1.5; }
.runtime-proof-note strong { color: var(--ink); }

.stage-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px clamp(24px, 4vw, 62px); border-top: 1px solid var(--line); background: #fbfaf6; }
.stage-footer > :last-child { justify-self: end; }
.progress-label { min-width: 112px; text-align: center; color: var(--muted); font-size: 9px; font-weight: 800; }
.progress-track { width: 100%; height: 2px; margin-top: 7px; background: var(--line); }
.progress-track i { display: block; width: 20%; height: 100%; background: var(--green); transition: width .3s ease; }

.closing { max-width: 1370px; margin: 0 auto 100px; padding: 0 clamp(24px, 7vw, 110px); }
.closing h2 { max-width: 900px; margin: 18px 0 38px; font-size: clamp(42px, 6vw, 86px); font-weight: 520; line-height: .98; letter-spacing: -.06em; }
.closing-grid { border-top: 1px solid var(--line-dark); padding-top: 26px; display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.closing-grid p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.closing-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 22px; font-weight: 850; }
.site-footer { min-height: 80px; padding: 24px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.guide-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--ink); box-shadow: 0 34px 100px rgba(10, 27, 21, .28); overflow: hidden; }
.guide-dialog::backdrop { background: rgba(11, 27, 21, .68); backdrop-filter: blur(8px); }
.guide-surface { max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); }
.guide-header { display: flex; justify-content: space-between; gap: 30px; padding: 34px clamp(24px, 4vw, 54px) 28px; border-bottom: 1px solid var(--line); }
.guide-header h2 { max-width: 720px; margin: 9px 0 8px; font-size: clamp(34px, 4vw, 58px); font-weight: 560; line-height: .98; letter-spacing: -.055em; }
.guide-header p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #f7f7f3; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.guide-close:hover { border-color: var(--green); color: var(--green); }
.guide-audience-tabs { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; padding: 12px clamp(24px, 4vw, 54px) 0; background: #fbfaf6; box-shadow: 0 10px 20px rgba(26, 45, 38, .04); }
.guide-audience-tab { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.guide-audience-tab span { font-size: 16px; font-weight: 850; }
.guide-audience-tab small { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.guide-audience-tab.is-active { border-bottom-color: var(--green); color: var(--ink); background: #f0f4ef; }
.guide-panel { padding: 34px clamp(24px, 4vw, 54px) 42px; }
.guide-panel[hidden] { display: none; }
.guide-intro { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 30px; }
.guide-number { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-size: 24px; }
.guide-intro h3 { max-width: 860px; margin: 7px 0 8px; font-size: clamp(25px, 3vw, 39px); line-height: 1.08; letter-spacing: -.045em; font-weight: 580; }
.guide-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 18px; align-items: start; }
.walkthrough-card, .faq-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 24px; }
.walkthrough-card h4, .faq-card h4 { margin: 7px 0 20px; font-size: 20px; letter-spacing: -.035em; }
.guide-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.guide-steps li > span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; padding-top: 3px; }
.guide-steps strong { display: block; font-size: 12px; }
.guide-steps p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 16px 30px 16px 0; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 14px; right: 4px; color: var(--green); font-size: 18px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -3px 24px 16px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px clamp(24px, 4vw, 54px); border-top: 1px solid var(--line); background: #f2f5ef; }
.guide-footer p { max-width: 700px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guide-footer p strong { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 11px 16px; border-radius: 100px; font-size: 11px; z-index: 50; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

[data-tip]:not(button):not(input):not(a) { cursor: help; }

.info-tip { position: fixed; z-index: 90; max-width: 280px; padding: 11px 13px; border-radius: 12px; background: var(--ink); color: #e3ece6; font-size: 11px; line-height: 1.5; box-shadow: 0 14px 34px rgba(16, 34, 27, .28); opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; pointer-events: none; }
.info-tip::before { content: ""; position: absolute; width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }
.info-tip.is-visible { opacity: 1; transform: translateY(0); }
.info-tip.is-below::before { top: -4px; left: 16px; }
.info-tip.is-above::before { bottom: -4px; left: 16px; }

.una-walkthrough { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; gap: 12px; width: min(380px, calc(100vw - 44px)); padding: 16px; border-radius: 18px; background: var(--ink); color: white; box-shadow: 0 24px 60px rgba(10, 27, 21, .32); animation: walkthrough-in .3s ease both; }
.una-walkthrough[hidden] { display: none; }
@keyframes walkthrough-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.una-walkthrough-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 850; font-size: 13px; }
.una-walkthrough-body { min-width: 0; }
.una-walkthrough-label { display: block; color: var(--lime); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.una-walkthrough-body p { margin: 0; color: #dce5e0; font-size: 12px; line-height: 1.55; }
.una-walkthrough-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.una-walkthrough-actions .text-button { padding: 6px 0; color: #9fb0a8; font-size: 10px; }
.una-walkthrough-actions .text-button:hover { color: white; }
.una-walkthrough-actions .primary-button { padding: 9px 13px; font-size: 10px; }

.cognitive-projection.just-updated { animation: projection-flash .6s ease; }
@keyframes projection-flash {
  0% { box-shadow: 0 0 0 2px var(--green); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 680px) {
  .una-walkthrough { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .info-tip { max-width: calc(100vw - 32px); }
}

@media (max-width: 1000px) {
  .demo-shell { grid-template-columns: 1fr; }
  .stage-nav { border-radius: 20px 20px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 10px; }
  .stage-tab { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 12px 5px; }
  .switch { width: 44px; height: 26px; }
  .switch span { width: 44px; height: 26px; }
  .switch span::after { width: 20px; height: 20px; }
  .switch input:checked + span::after { transform: translateX(18px); }
  .stage-tab span:last-child, .stage-tab small { display: none; }
  .demo-stage { border-left: 1px solid var(--line); border-radius: 0 0 20px 20px; }
  .context-layout, .symbiosis-layout, .approval-layout, .action-layout, .audit-layout { grid-template-columns: 1fr; }
  .world-input-grid { grid-template-columns: 1fr; }
  .world-card-grid { grid-template-columns: 1fr 1fr; }
  .constellation-text-map { grid-template-columns: 1fr 1fr; }
  .constellation-text-map li + li { border-left: 0; }
  .constellation-text-map li:nth-child(even) { border-left: 1px solid rgba(255,255,255,.08); }
  .constellation-text-map li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .context-summary { display: grid; grid-template-columns: 112px 1fr; column-gap: 24px; }
  .summary-orbit { grid-row: 1 / 5; margin: 0; }
  .mini-stats { grid-column: 2; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { height: 64px; }
  .topbar-actions { gap: 2px; }
  .guide-button { padding: 8px 10px; font-size: 10px; }
  .topbar-actions .text-button { font-size: 0; }
  .topbar-actions .text-button::after { content: "Reset"; font-size: 10px; }
  .topbar-status span:last-child { display: none; }
  .status-divider { display: none; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(54px, 17vw, 82px); }
  .hero-meta { gap: 16px; flex-wrap: wrap; margin-top: 50px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .demo-shell { margin-top: 20px; padding: 0; }
  .stage-nav { border-radius: 0; }
  .demo-stage { border-radius: 0; border-left: 0; border-right: 0; }
  .stage-header { min-height: auto; padding-top: 30px; }
  .stage-header { flex-direction: column; }
  .stage-tools { width: 100%; align-items: stretch; }
  .lens-switch { width: 100%; }
  .lens-option { flex: 1; }
  .cue-button { font-size: 0; }
  .cue-button span { font-size: 12px; }
  .evidence-list, .decision-grid { grid-template-columns: 1fr; }
  .context-summary { display: block; }
  .summary-orbit { margin: 0 auto 25px; }
  .recommendation-banner { grid-template-columns: auto 1fr; }
  .recommendation-state { display: none; }
  .assumption-panel > div { grid-template-columns: 1fr; }
  .business-options { display: grid; grid-template-columns: 1fr; }
  .evidence-map { align-items: flex-start; flex-direction: column; }
  .prompt-suggestions, .reasoning-form, .reasoning-response { margin-left: 0; }
  .reasoning-form { align-items: stretch; }
  .reasoning-form .primary-button { width: 44px; font-size: 0; }
  .reasoning-form .primary-button span { font-size: 14px; }
  .session-console-head { align-items: stretch; flex-direction: column; }
  .symbiosis-mode-tabs, .world-card-grid, .projection-grid { grid-template-columns: 1fr; }
  .symbiosis-mode-tab { align-items: flex-start; flex-direction: column; gap: 3px; }
  .world-studio-head, .projection-head { align-items: flex-start; flex-direction: column; }
  .constellation-head { align-items: stretch; flex-direction: column; }
  .constellation-controls { justify-content: space-between; }
  .constellation-controls > span { text-align: left; }
  .constellation-canvas-shell, .constellation-canvas-shell canvas { min-height: 300px; height: 300px; }
  .constellation-axis { display: none; }
  .constellation-text-map { grid-template-columns: 1fr; }
  .constellation-text-map li:nth-child(even) { border-left: 0; }
  .constellation-text-map li + li { border-top: 1px solid rgba(255,255,255,.08); }
  .studio-options.compact { grid-template-columns: 1fr; }
  .projection-grid div:last-child { grid-column: auto; }
  .session-message { width: 100%; }
  .live-session-form > div { align-items: stretch; }
  .live-session-form .primary-button { width: 48px; font-size: 0; padding: 0; display: grid; place-items: center; }
  .live-session-form .primary-button span { font-size: 14px; }
  .boundary-flow { overflow-x: auto; padding-bottom: 5px; }
  .action-guardrails { grid-template-columns: 1fr; }
  .proof-heading, .proof-replay { align-items: stretch; flex-direction: column; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .runtime-proof-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .proof-checks { grid-template-columns: 1fr; }
  .stage-footer { grid-template-columns: auto 1fr auto; padding-left: 18px; padding-right: 18px; }
  .stage-footer .secondary-button, .stage-footer .primary-button { font-size: 0; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; }
  .stage-footer button span { font-size: 15px; }
  .stage-footer .button-copy { display: none; }
  .site-footer { flex-direction: column; align-items: start; }
  .guide-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .guide-surface { max-height: 100dvh; }
  .guide-header { padding-top: 24px; }
  .guide-header h2 { font-size: 34px; }
  .guide-audience-tabs { padding-left: 16px; padding-right: 16px; }
  .guide-audience-tab { padding: 15px 12px; }
  .guide-audience-tab { align-items: start; flex-direction: column; gap: 4px; }
  .guide-panel { padding-left: 18px; padding-right: 18px; }
  .guide-intro { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; }
  .guide-number { width: 42px; height: 42px; font-size: 19px; }
  .walkthrough-card, .faq-card { padding: 20px; }
  .guide-footer { align-items: stretch; flex-direction: column; }
  .guide-footer .primary-button { width: 100%; }
}

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