/* NeuroBoost / quiet precision. Shared across the existing application. */
:root,body.v21-shell{--paper:#050910;--bg:#050910;--panel:#0c1520;--panel2:#111e2b;--surface:#0c1520;--ink:#e8eef3;--text:#e8eef3;--muted:#acbbc9;--line:#314656;--border:#314656;--teal:#82d6e8;--amber:#dfbd82;--action-blue:#c4edf5;--action-hover:#dcf8fc;--action-focus:#a4ecd3;--quantum-cyan:#82d6e8;--quantum-emerald:#a4ecd3}
html,body.v21-shell{background:#050910!important;color:var(--ink)}
body.v21-shell{background-image:radial-gradient(ellipse at 82% 6%,#17394b26,transparent 42%)!important}
body.v21-shell :is(h1,h2,h3){color:var(--ink);font-weight:400;letter-spacing:-.035em}
body.v21-shell :is(.panel,.card,.surface,.nl-source-document,.nl-study,.evidence-card,.source-card,dialog,.nb-navigation-dialog,#syn-help){background:#0c1520!important;border-color:#314656!important;color:var(--ink)!important;border-radius:18px;box-shadow:0 16px 48px #00000020}
body.v21-shell :is(.nl-topbar,.nl-sidebar){background:#080f18ed!important;border-color:#253745!important}
body.v21-shell .nl-topbar{backdrop-filter:blur(20px);border-bottom:1px solid #223443}
body.v21-shell :is(input,textarea,select,.nl-composer,.question-form.nl-composer){background:#0b1925!important;color:#e8eef3!important;border-color:#496070!important;border-radius:12px}
body.v21-shell input::placeholder,body.v21-shell textarea::placeholder{color:#9cacbb}
body.v21-shell :is(button,.button){border-color:#3d5667;background:#122330;color:#e8eef3;border-radius:10px}
body.v21-shell :is(.nl-solid,.nb-action--primary,.button.primary,button.primary){background:#c4edf5!important;color:#06121d!important;border-color:#c4edf5!important;box-shadow:0 2px 18px #82d6e80a}
body.v21-shell :is(.nl-solid,.nb-action--primary,.button.primary,button.primary):hover{background:#dcf8fc!important}
body.v21-shell :is(.nb-action--secondary,.nl-save button,.button){background:#11212d!important;border-color:#3d5667!important}
body.v21-shell :is(a,.nl-study button,.nl-source-document>button){color:#b6e4ee!important}
body.v21-shell :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid #a4ecd3!important;outline-offset:4px!important}
body.v21-shell :is(button:disabled,[aria-disabled=true]){opacity:.7;box-shadow:none}
body.v21-shell :is(.eyebrow,.metric-label){color:#98c4d0;letter-spacing:.18em}
body.v21-shell :is(.small,.muted,.nl-lead,.nl-certainty p,.nl-study p){color:var(--muted)}
body.v21-shell :is(table,th,td,details,summary,fieldset){border-color:#314656;color:inherit}
body.v21-shell :is(pre,code){color:#b4e4df;background:#101d29}
body.v21-shell .nl-sidebar a[aria-current=page]{background:#15303c;color:#e7fbff!important}
.nl-hero{min-height:680px!important;padding-top:120px!important;padding-bottom:100px!important}
.nl-hero::before{content:'';position:absolute;inset:10% 0 0 48%;z-index:-1;background-image:linear-gradient(#a4e8ff06 1px,transparent 1px),linear-gradient(90deg,#a4e8ff06 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(ellipse,#000,transparent 72%);pointer-events:none}
.nl-hero-copy h1{font-size:clamp(60px,6.6vw,96px)!important;font-weight:300!important;letter-spacing:-.055em!important;line-height:1.06!important}
.nl-hero-copy>p{max-width:440px;color:#b6c7d3;line-height:1.75}
.nl-brain.nb-neural-art{position:absolute;right:0!important;top:36px!important;width:51%!important;height:600px!important;isolation:isolate}
.nl-brain.nb-neural-art img{opacity:.96;filter:drop-shadow(0 15px 35px #257b9d12);object-fit:contain}
.nb-particle-brain{position:absolute;inset:0 0 40px;width:100%;height:calc(100% - 40px);z-index:2;pointer-events:none}
.nl-brain.nb-neural-art figcaption{color:#acbbc9!important;font-size:11px;letter-spacing:.015em}
.nb-mission{border-top-color:#253744!important;border-bottom-color:#253744!important}
.nl-explainer>div>section{border-color:#253744!important}
/* A compact companion, not an always-on reading overlay. Existing collision rules retained. */
body.v21-shell .syn-launcher{width:184px;right:max(18px,env(safe-area-inset-right));gap:12px}
body.v21-shell .syn-launcher #ask-syn{position:relative!important;display:flex;align-items:center;gap:8px;flex-direction:row!important;min-width:148px;min-height:62px!important;padding:7px 17px 7px 9px!important;border:1px solid #52738466!important;border-radius:22px!important;background:#0c1a26f5!important;box-shadow:0 12px 32px #0006,inset 0 1px #d4f4ff0a;font-size:13px!important;letter-spacing:.025em;font-weight:500!important;isolation:isolate}
body.v21-shell .syn-avatar{width:58px!important;height:51px!important;flex:none;object-fit:contain;opacity:.92}
.syn-particle-canvas{position:absolute;width:58px;height:51px;left:9px;top:7px;pointer-events:none;z-index:2}
body.v21-shell .syn-greeting{background:#0c1a26f5!important;border:1px solid #52738466!important;border-radius:17px 17px 5px 17px!important;box-shadow:0 14px 40px #0004;backdrop-filter:blur(18px);font-size:12px!important;line-height:1.6;max-width:184px;padding:12px 6px 12px 14px!important;color:#d5e4ec!important}
body.v21-shell .syn-greeting::after{display:none!important}
body.v21-shell .syn-dismiss{background:transparent!important;border:0!important;width:36px;min-height:44px;flex:0 0 36px;color:#a9c3d4!important}
body.v21-shell #syn-help{width:min(620px,calc(100vw - 28px));padding:30px;border:1px solid #3c5b6b!important;border-radius:24px!important;box-shadow:0 32px 100px #0009;background:linear-gradient(155deg,#122735,#0a1420 60%)!important}
#syn-help::backdrop{background:#02060bb8;backdrop-filter:blur(6px)}
#syn-help header{padding-bottom:20px;border-bottom:1px solid #2b4352}#syn-help h2{font-size:32px}
#syn-help>p{color:#b1c1ce}#syn-help input{min-height:50px!important;margin:12px 0!important}
#syn-help nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}#syn-help nav button{font-size:12px!important;background:#142a37!important;border:1px solid #3b586a!important;border-radius:999px!important}
#syn-help #syn-answer:not(:empty){padding:18px 0;border-top:1px solid #34505f;border-bottom:1px solid #34505f;margin-top:20px}
#syn-help #syn-answer a{display:inline-block;padding:8px 12px;margin:4px;border-radius:8px;background:#17303e}
@media(max-width:700px){.nl-hero{padding:65px 6% 35px!important;min-height:0!important}.nl-hero-copy h1{font-size:57px!important}.nl-brain.nb-neural-art{position:relative!important;inset:auto!important;width:100%!important;height:355px!important;margin-top:16px}.nl-hero::before{inset:40% 0 0}.syn-launcher{width:160px!important;right:12px!important}body.v21-shell .syn-launcher #ask-syn{min-width:132px;min-height:56px!important;font-size:12px!important;padding:5px 12px 5px 7px!important}.syn-particle-canvas{left:7px;top:5px;width:52px;height:46px}body.v21-shell .syn-avatar{width:52px!important;height:46px!important}body.v21-shell .syn-greeting{max-width:160px;font-size:11px!important}body.v21-shell #syn-help{padding:22px}.nb-mission h2{font-size:35px!important}}
@media(prefers-reduced-motion:reduce){.syn-particle-canvas,.nb-particle-brain{visibility:hidden}.nl-brain.nb-neural-art img{transform:none!important}}
html[data-neural-motion=reduced] :is(.syn-particle-canvas,.nb-particle-brain){visibility:hidden}
@media print{.nb-particle-brain,.syn-particle-canvas{display:none}}
/* Override inherited light dialog headers/buttons; preserve readable native controls. */
body.v21-shell dialog header,body.v21-shell #syn-help header{background:transparent!important;color:#e8eef3!important;box-shadow:none!important}
body.v21-shell #syn-help button{background:#142a37!important;color:#e8eef3!important;border:1px solid #426171!important;min-height:44px}
body.v21-shell #syn-help #syn-question-form>button{background:#c4edf5!important;color:#06121d!important;border-color:#c4edf5!important;min-width:86px}
body.v21-shell #syn-help #syn-close{background:transparent!important;color:#c1d5e1!important;border-color:#426171!important;min-width:64px}
