/* Cross-screen consistency: shared tokens, readable technical content and utility clearance. */
:root{--bg:#0b0d0f;--panel:#131619;--panel2:#1b2025;--border:#22272d;--text:#e2e8f0;--muted:#94a3b8;--teal:#b8d8db;--amber:#e7ce94;--red:#f2b4bc}
body.v21-shell{background-image:none}.v21-shell .notice,.v21-shell .warning,.v21-shell .empty,.v21-shell .toolbar,.v21-shell .filter-bar,.v21-shell .discovery-row,.v21-shell .stat,.v21-shell .metric,.v21-shell .memory-card,.v21-shell .model-card,.v21-shell .lab-card,.v21-shell .nb-expert-tools,.v21-shell .sidebar{background:var(--panel);color:var(--text);border-color:var(--border);box-shadow:none}
.v21-shell label,.v21-shell label.field,.v21-shell th{color:var(--text)}.v21-shell .muted,.v21-shell .status,.v21-shell .table-note{color:var(--muted)}
.v21-shell .notice.error,.v21-shell [role=alert]{color:#f2b4bc;background:#251b20}.v21-shell .notice.warning{color:#e7ce94;background:#242119}
.v21-shell input,.v21-shell select,.v21-shell textarea{max-width:100%}.v21-shell main p a:not(.button),.v21-shell main dd a,.v21-shell main td a,.v21-shell main li a{text-decoration:underline;text-underline-offset:.2em}
.v21-shell .showcase-controls button,.v21-shell .showcase-controls button[aria-pressed=true]{color:var(--text);background:var(--panel2);border-color:#62717d}.v21-shell .showcase-controls button[aria-pressed=true]{outline:1px solid var(--calm-accent);outline-offset:2px}
.v21-shell table{width:100%;border-collapse:collapse;color:var(--text)}.v21-shell th,.v21-shell td{background:var(--panel);border-color:var(--border);padding:12px;overflow-wrap:anywhere;white-space:normal}.v21-shell pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--panel2);color:var(--text)}
.bt-table-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain}.bt-table-scroll:focus-visible{outline:3px solid var(--bt-focus);outline-offset:4px}.v21-shell .grid>*{min-width:0}.v21-shell main,.v21-shell section,.v21-shell article{min-width:0}.v21-shell .draft-clear{font-size:.85rem;background:transparent;margin-bottom:12px}
@media(min-width:1200px){body.v21-shell{padding-right:170px}.v21-shell .syn-launcher{right:10px;width:150px}.v21-shell .syn-launcher.syn-compact .syn-avatar{display:block}}
@media(max-width:1199px){.v21-shell .nb-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px calc(20% + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) 4px;min-height:76px}.v21-shell .nb-bottom-nav a,.v21-shell .nb-bottom-nav button{min-width:0;justify-content:center;padding:6px 2px;font-size:12px}.v21-shell .syn-launcher{right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom)!important;width:20%;height:76px;justify-content:center;z-index:45}.v21-shell .syn-launcher #ask-syn{border-radius:8px;padding:3px 6px;min-height:64px;gap:1px;width:100%;background:var(--panel);border:0;font-size:12px}.v21-shell .syn-launcher .syn-avatar,.v21-shell .syn-launcher.syn-compact .syn-avatar{display:block;width:32px;height:32px}.v21-shell .syn-greeting{position:absolute;bottom:calc(100% + 8px);right:8px;width:164px}.v21-shell .syn-launcher.syn-compact .syn-greeting{display:none}.v21-shell .quiet-footer{padding-bottom:130px}.v21-shell .nb-primary{display:none}}
@media(max-width:760px){.v21-shell .grid.two,.v21-shell .grid.three,.v21-shell .lab-cards{grid-template-columns:1fr}.v21-shell .shell>main{padding-inline:18px}.v21-shell h1{overflow-wrap:anywhere}.v21-shell #syn-help{max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain}}
@media(prefers-reduced-motion:reduce){.v21-shell *,.v21-shell *::before,.v21-shell *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.v21-shell footer{background:var(--bg);color:var(--muted);border-color:var(--border);clear:both}.v21-shell .status,.v21-shell .status.modeled,.v21-shell .status.hypothetical,.v21-shell .status.unknown{background:var(--panel2);color:var(--text);border:1px solid #62717d}.v21-shell .notice strong,.v21-shell .lab-banner strong{color:var(--text)}
/* Keep modal dismissal reachable when a short viewport scrolls the input into view. */
.v21-shell #syn-help header,.v21-shell .nb-navigation-dialog>header{position:sticky;top:0;z-index:2;background:var(--panel);padding:8px 0 12px;align-items:center}.v21-shell #syn-help header>div,.v21-shell .nb-navigation-dialog header>div{min-width:0}.v21-shell #syn-close,.v21-shell [data-close-navigation]{flex-shrink:0}.v21-shell #syn-help h2{font-size:1.5rem}
.v21-shell #syn-help :focus-visible,.v21-shell #ask-syn:focus-visible,.v21-shell .syn-dismiss:focus-visible{outline:3px solid var(--bt-focus);outline-offset:4px;box-shadow:0 0 0 2px var(--bg)}.v21-shell .syn-dismiss{width:44px;min-height:44px;flex-basis:44px}.v21-shell main h2 a,.v21-shell main h3 a,.v21-shell .card>a:not(.button){text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}

/* Approved concept alignment: presentation only; no inferred evidence classifications. */
:root{--bt-primary:#1760db;--bt-primary-hover:#124fba;--calm-accent:#a9d3ff}
.v21-shell button.primary,.v21-shell .button.primary,.v21-shell .question-form button{background:var(--bt-primary);color:#fff;border-color:#4b8bfa;font-weight:650}
.v21-shell button.primary:hover,.v21-shell .button.primary:hover,.v21-shell .question-form button:hover{background:var(--bt-primary-hover)}
.v21-shell .nb-header{gap:18px;padding:14px 24px;min-height:76px}.v21-shell .nb-primary{gap:12px;font-size:13px}.v21-shell .nb-wordmark{font-size:18px}
.v21-shell .research-journey a{background:transparent;color:var(--text);border-radius:6px;line-height:1.45;min-height:44px}.v21-shell .research-journey a:hover,.v21-shell .research-journey a[aria-current=page]{background:var(--panel2);box-shadow:inset 3px 0 #5da2ff}
.v21-shell .research-journey a:last-child{border-top:1px solid var(--border);margin-top:10px}.v21-shell .research-journey span{color:#a9bdd1}
.v21-shell .structured-workspace>section{border-radius:8px;padding:24px}.v21-shell .study-row{border:1px solid var(--border);border-radius:7px;padding:12px;margin-bottom:10px}.v21-shell .study-select[aria-pressed=true]{outline:2px solid #5da2ff;background:#152237}
.v21-shell .proof-record{border:1px solid #62717d;border-radius:8px;padding:20px}.v21-shell .proof-record a{color:#a9d3ff}.v21-shell .proof-record details{border-top:1px solid var(--border);padding-top:12px}
@media(min-width:1200px){body.v21-shell{padding-right:0}.v21-shell .research-journey{width:210px;padding:16px 14px;background:var(--bg);border-right:1px solid var(--border);max-height:max(160px,calc(100dvh - 440px));padding-bottom:12px}.v21-shell .research-journey a{padding:10px 12px}.v21-shell .syn-launcher{left:22px;right:auto;width:164px;bottom:20px}.v21-shell .syn-launcher #ask-syn{background:transparent;border-color:var(--border);width:96px;align-self:flex-start}.v21-shell .syn-greeting{width:164px}.v21-shell .structured-page{padding-top:20px}.v21-shell main{padding-right:28px}}
@media(max-width:1199px){.v21-shell .research-journey{gap:6px;padding-inline:18px}.v21-shell .research-journey a{border:1px solid #62717d;padding:8px 12px;font-size:13px}.v21-shell .research-journey a:last-child{margin-top:0}.v21-shell .syn-launcher{left:auto}}

@media(min-width:1200px) and (max-height:700px){.v21-shell .syn-greeting{display:none}}

.v21-shell .structured-workspace .study-select:focus-visible{outline:3px solid var(--bt-focus);outline-offset:4px;box-shadow:0 0 0 2px var(--bg)}

@media(min-width:1200px){.v21-shell .research-journey{flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}.v21-shell .research-journey a{flex-shrink:0;min-width:0;overflow-wrap:anywhere}}

.v21-shell .research-journey span{flex:0 0 20px;white-space:nowrap}.v21-shell .research-journey{color-scheme:dark;scrollbar-color:#62717d #131619;scrollbar-width:thin}
