:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue','Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;color:#dceaf2;background:#050c14;font-synthesis:none;--line:#8aafc32b;--muted:#9db4c4;--ice:#c2e4f5}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer;color:inherit;border:1px solid var(--line);background:#10213085;border-radius:6px;min-height:44px;padding:0 14px;font-size:12px}button:hover{background:#243d4bcc;border-color:#a8cadd70}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e1f4ff;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}a{color:#c4e5f7;text-decoration:none}input{color:#e6f1f7;background:none;border:0;outline:none}select{max-width:180px}kbd{font-size:10px;color:#9cb0bf;margin-left:22px}h1,h2,h3,p{margin:0}h2{font-size:26px;font-weight:450;letter-spacing:-.04em;line-height:1.25}h3{font-size:12px;letter-spacing:.09em;margin:24px 0 10px;color:#bdd8e9}p{font-size:13px;line-height:1.9;color:#afc4d2}small{font-size:10px;color:#9ab2c3}code{display:block;font-size:11px;line-height:1.8;word-break:break-all;color:#b4cfde}ul{padding-left:18px;font-size:12px;line-height:1.8;color:#b5c9d7}[hidden]{display:none!important}#world{position:fixed;inset:0}#world canvas{display:block;touch-action:none}#labels{position:fixed;inset:0;pointer-events:none}.ambient{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#040b13d0,transparent 20%,transparent 74%,#040b13ed),linear-gradient(90deg,#030a1388,transparent 27%,transparent 78%,#030a1322)}header{position:fixed;left:0;right:0;top:0;height:86px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);z-index:210;background:#050d1699;backdrop-filter:blur(12px)}.brand{font-size:25px;font-weight:550;letter-spacing:.06em;color:#f5faff;display:flex;align-items:center;gap:25px}.brand span{font-size:8px;line-height:1.6;letter-spacing:.24em;color:#9fb7c8;border-left:1px solid #8badc34d;padding-left:25px;max-width:143px}.top-actions{display:flex;align-items:center;gap:10px}#connect{border-color:#82abc35c;color:#d4edfa;background:#6fa2bc14}.left-rail{position:fixed;left:24px;top:128px;display:flex;flex-direction:column;gap:9px;width:115px;z-index:205}.left-rail button{text-align:left;background:transparent;border-color:transparent;padding:0 7px;font-size:11px;color:#9bb3c5}.left-rail button span{display:inline-block;width:24px;font-size:9px;color:#7195ad}.left-rail button:hover,.left-rail button.active{color:#e1f3ff;background:#628da31b;border-color:#94bdd624}.rail-line{height:1px;background:var(--line);margin:15px 7px}.scene-heading{position:fixed;left:168px;top:125px;z-index:150;pointer-events:none;max-width:530px}#breadcrumb{font-size:8px;letter-spacing:.2em;color:#8dafc6;margin-bottom:16px}h1{font-size:35px;line-height:1.12;letter-spacing:-.045em;font-weight:420;text-shadow:0 2px 25px #02070e}h1 em{font-style:normal;color:#9fb9ca;font-weight:350}.scene-heading p{margin-top:13px;font-size:11px;color:#9bb5c8}.camera-tools{position:fixed;right:32px;top:105px;display:flex;gap:7px;z-index:180}.camera-tools button,.camera-tools select{font-size:10px;padding:0 11px;min-height:36px;background:#091622bb}.spatial-label{position:absolute;top:0;left:0;border:0;background:none;border-radius:0;padding:4px 8px;min-height:38px;pointer-events:auto;text-align:center;white-space:nowrap;transition:opacity .28s,filter .3s,color .2s;text-shadow:0 2px 7px #02060b,0 0 20px #02060b;color:#d2e9f5;font-size:12px;font-weight:500;will-change:transform;max-width:235px}.spatial-label span{display:block}.spatial-label small{display:block;font-size:7px;letter-spacing:.12em;color:#89a9bf;margin-top:5px}.spatial-label:before{content:'';display:block;width:12px;height:1px;background:#a7d1e888;margin:0 auto 6px}.spatial-label:hover,.spatial-label.hovered{background:#15304480;color:white}.spatial-label.unrelated{opacity:.42;filter:none}.spatial-label.core{font-size:34px;letter-spacing:.23em;color:#f2fbff}.spatial-label.core:before,.spatial-label.subcore:before{display:none}.spatial-label.core small{font-size:7px;letter-spacing:.19em}.spatial-label.input{font-size:9px;color:#9fbbcd}.spatial-label.input small{display:none}.spatial-label.function{font-size:12px;white-space:normal;max-width:185px}.spatial-label.channel{font-size:10px}.spatial-label.channel small{font-size:6px;max-width:100px;white-space:normal}.spatial-label.subcore{font-size:17px;letter-spacing:.08em;white-space:normal;max-width:290px}.spatial-label.knowledge-kind{font-size:13px}.spatial-label.outcome{font-size:14px}.spatial-label.foundation{font-size:19px}.spatial-label.foundation small{font-size:9px;letter-spacing:0}
footer{position:fixed;bottom:0;left:0;right:0;min-height:100px;display:flex;align-items:center;gap:25px;padding:20px 35px;border-top:1px solid var(--line);background:#050d17ba;backdrop-filter:blur(14px);z-index:210}.truth{width:250px;font-size:8px;line-height:1.9;letter-spacing:.05em;color:#9ab8cc}.truth i{width:4px;height:4px;background:#c3bda3;display:inline-block;border-radius:50%;margin-right:6px}.truth small{display:block;font-size:9px;color:#8da7bb;letter-spacing:0}.performance{margin-left:auto;text-align:right;white-space:nowrap}.performance>span{font-size:8px;color:#8ca9bf;letter-spacing:.07em}.performance small{display:block;margin-top:9px;font-size:9px}.agent-mark{height:29px;width:29px;border:1px solid #99c5df55;border-radius:6px;display:grid;place-items:center;color:#bad9ed;font-size:15px;flex-shrink:0}#agent-form{display:flex;align-items:center;gap:10px;border:1px solid #7496b448;border-radius:9px;background:#1b304333;max-width:650px;flex:1;padding:8px 10px}#agent-input{font-size:12px;min-width:60px;width:100%;height:32px}#agent-form button{font-size:10px;white-space:nowrap;min-height:36px;padding:0 10px}#voice{background:transparent;border:0;padding:0 5px!important}.drawer{position:fixed;right:25px;top:161px;bottom:122px;width:350px;overflow:auto;background:linear-gradient(145deg,#1c3446ed,#091725ef 65%);border:1px solid #9bbfd33b;backdrop-filter:blur(24px);border-radius:10px;padding:25px;z-index:200;box-shadow:0 30px 80px #0005}.drawer-head,.modal-head{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:.1em;color:#a7bdcb;margin-bottom:24px}.drawer-head button,.modal-head button{min-height:30px;font-size:9px;border:0;background:none;padding:0 5px}.drawer .eyebrow{font-size:8px;letter-spacing:.18em;color:#9cc8e2;margin:0 0 14px}.drawer h2{margin-bottom:15px}.drawer p{margin:14px 0}.pill{display:inline-block;font-size:8px;letter-spacing:.06em;border:1px solid #8ebdd249;background:#6f98b016;padding:5px 8px;border-radius:4px;color:#b6d3e4}.field,.evidence-row{padding:17px 0;border-top:1px solid var(--line);margin-top:18px}.field>span,.evidence-row>span{display:block;font-size:8px;letter-spacing:.12em;color:#8cacc1;margin-bottom:8px}.field p{margin:0}.evidence-row b{display:block;font-size:13px;margin-bottom:8px;word-break:break-word}.evidence-row small{display:block}.wide{display:block;width:100%;text-align:center;padding:14px 12px;min-height:44px;border:1px solid #b1d4e74d;background:#537f9833;font-size:11px;border-radius:5px;margin-top:14px;line-height:1.5}.wide.secondary{background:transparent}.list-item{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:15px 2px;gap:15px;line-height:1.7;font-size:12px}.list-item b{font-size:8px;font-weight:400;color:#96bcd3}.list-item small{display:block}.trace{list-style:none;padding:0;margin:25px 0 0;counter-reset:trace}.trace li{counter-increment:trace;position:relative;padding:0 0 18px 25px;border-left:1px solid #80a9c250;margin-left:6px}.trace li:before{content:'';position:absolute;left:-4px;top:0;width:7px;height:7px;border:1px solid #b5d8ec;background:#152b3b;border-radius:50%}.trace span{font-size:8px;letter-spacing:.13em;color:#99c4e0}.trace li p{margin-top:7px;font-size:12px}.modal{position:fixed;top:17%;left:50%;transform:translateX(-50%);width:620px;max-width:calc(100vw - 30px);max-height:65vh;overflow:auto;background:#0b1b2aef;backdrop-filter:blur(25px);border:1px solid #99bdce55;z-index:300;padding:25px;border-radius:12px;box-shadow:0 50px 140px #0009}#search{height:50px;border-bottom:1px solid var(--line);width:100%;font-size:20px}#timeline-panel{position:fixed;bottom:124px;left:50%;transform:translateX(-50%);width:520px;max-width:calc(100vw - 40px);padding:14px 23px;background:#0a1c2be8;border:1px solid #759cb348;border-radius:9px;z-index:170;backdrop-filter:blur(15px)}#timeline-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9ab6ca}#timeline-panel b{font-size:12px;color:#d4e8f4;font-weight:400}#time-play{font-size:9px;min-height:28px;border:0;padding:0 7px}input[type=range]{accent-color:#c1e6f6;width:100%;height:28px}.time-ticks{display:flex;justify-content:space-between;font-size:9px;color:#93adc2}#story{position:fixed;left:50%;bottom:150px;transform:translateX(-50%);width:700px;max-width:calc(100vw - 40px);text-align:center;z-index:220;background:linear-gradient(180deg,transparent,#06101be0 45%);padding:25px 30px;border-radius:14px;pointer-events:none}.story-count{font-size:8px;letter-spacing:.2em;color:#a5c6dd;margin-bottom:15px}.story-count span{margin-left:25px;color:#7e9db4}#story h2{font-size:30px;font-weight:350}#story p{font-size:12px;margin-top:13px;color:#b1cbdf}.story-progress{width:150px;height:1px;background:#ffffff22;margin:23px auto}.story-progress i{display:block;height:1px;background:#bce8ff;width:0}#story button{pointer-events:auto;min-height:38px;font-size:10px;background:#1932478a}.in-story .scene-heading,.in-story .camera-tools{opacity:0;pointer-events:none}.in-story .left-rail{opacity:.35}#toast{position:fixed;left:50%;bottom:123px;transform:translateX(-50%) translateY(10px);max-width:90%;padding:15px 22px;background:#203849;border:1px solid #acd8ed55;border-radius:7px;font-size:12px;z-index:400;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateX(-50%)}#fallback{position:fixed;inset:0;background:#081523;padding:20vh 12vw;z-index:500}#fallback p{margin:20px 0}#fallback a{display:inline-block;padding:14px;border:1px solid #a7cbe555}.drawer-open .spatial-label{opacity:.65}.drawer-open .spatial-label:hover{opacity:1}
@media(max-width:1100px){.brand span{display:none}.scene-heading{left:150px;max-width:400px}h1{font-size:29px}.performance{display:none}.truth{width:210px}.drawer{width:320px}.camera-tools{top:100px;right:20px}.camera-tools select{max-width:112px}footer{padding:17px 25px}.top-actions{gap:6px}.top-actions button,.top-actions select{font-size:10px}kbd{display:none}}
@media(max-width:760px){header{height:64px;padding:0 16px}.brand{font-size:19px}.top-actions{gap:5px}#search-toggle{padding:0 9px;font-size:10px}#mode{font-size:9px;width:99px;padding:0 6px;min-height:36px}#connect{position:fixed;right:15px;top:74px;font-size:9px;min-height:35px;background:#193042aa}header .top-actions button{min-height:36px}.left-rail{top:74px;left:10px;width:auto;right:146px;flex-direction:row;gap:3px}.left-rail button{font-size:0;min-width:33px;padding:0 7px;min-height:35px}.left-rail button span{font-size:10px;width:auto}.left-rail .rail-line{display:none}.scene-heading{left:20px;top:135px;max-width:90%}#breadcrumb{font-size:7px;margin-bottom:12px}h1{font-size:26px}.scene-heading p{font-size:10px;max-width:285px;line-height:1.7;margin-top:9px}.camera-tools{top:auto;bottom:139px;left:15px;right:15px;justify-content:flex-start;gap:5px}.camera-tools button,.camera-tools select{min-height:35px;padding:0 10px;font-size:9px}.camera-tools select{margin-left:auto;max-width:120px}footer{height:124px;padding:10px 15px 14px;display:flex;flex-direction:column;gap:9px;align-items:stretch}.truth{width:100%;display:flex;flex-wrap:wrap;font-size:7px;gap:0 5px;align-items:center}.truth small{font-size:8px;margin-left:auto;max-width:160px;line-height:1.5}#agent-form{flex:none;width:100%;padding:7px;gap:7px}#agent-input{font-size:10px}#agent-run{font-size:9px!important;padding:0 7px!important}#voice{font-size:9px!important}.agent-mark{width:25px;height:27px;font-size:12px}.spatial-label{font-size:10px;padding:3px 4px;min-height:30px;max-width:110px}.spatial-label small{font-size:5px;letter-spacing:.04em}.spatial-label.core{font-size:23px;max-width:170px}.spatial-label.core small{font-size:5px}.spatial-label.input{font-size:7px;max-width:80px;white-space:normal}.spatial-label.function,.spatial-label.knowledge-kind,.spatial-label.outcome{font-size:10px;max-width:95px}.spatial-label.channel{font-size:8px}.spatial-label.channel small{display:none}.spatial-label.subcore{font-size:12px;max-width:190px}.drawer{left:12px;right:12px;top:auto;bottom:183px;width:auto;max-height:49vh;padding:19px;border-radius:11px;background:#0d2030f5}.drawer h2{font-size:23px}.drawer p{font-size:12px}.drawer-head{margin-bottom:16px}.drawer-head button{min-height:35px}.modal{top:123px;max-height:60vh;padding:18px}.modal-head button{min-height:35px}#timeline-panel{bottom:184px;width:calc(100vw - 30px);padding:9px 15px}#timeline-panel b{font-size:10px}#timeline-panel>div:first-child{font-size:7px}#toast{bottom:190px;font-size:11px;width:calc(100vw - 30px)}#story{bottom:190px;padding:20px 15px}#story h2{font-size:23px}#story p{font-size:11px}#story-step{display:block;margin:8px 0 0}.in-story .left-rail{opacity:.2}.drawer-open .scene-heading{opacity:.3}#fallback{padding:20vh 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
body[data-scene=os] .scene-heading h1{font-size:25px}body[data-scene=os] .scene-heading{max-width:410px}body[data-scene=os] .scene-heading p{font-size:10px}
@media(max-width:760px){body[data-scene=os] .scene-heading h1{font-size:21px}.spatial-label.os{font-size:11px;min-height:34px}.spatial-label.core small{font-size:6px}}

/* CORE Intelligence: the controls frame the spatial scene without competing with it. */
:root{--surface:rgba(10,25,38,.78);--surface-raised:rgba(18,43,61,.86);--line-strong:rgba(167,210,232,.28);--text-soft:#a9c1d0}
header{height:78px;padding:0 32px;background:linear-gradient(90deg,rgba(4,12,20,.96),rgba(4,12,20,.72));border-bottom-color:rgba(151,195,219,.17)}
.brand{gap:18px;font-size:23px;letter-spacing:.12em}.brand span{border-left-color:rgba(153,196,219,.3);padding-left:18px;font-size:8px;letter-spacing:.3em;color:#c0d8e5}
.top-actions{gap:8px;padding:5px;border:1px solid rgba(142,187,211,.17);background:rgba(15,35,50,.35);border-radius:9px}.top-actions button,.top-actions select{min-height:34px;border-color:transparent;background:transparent;border-radius:5px;font-size:10px}.top-actions button:hover,.top-actions select:hover{background:rgba(126,180,209,.13)}#connect{background:rgba(105,162,194,.14);border-color:rgba(145,203,232,.28)}
.left-rail{left:26px;top:112px;width:132px;gap:6px}.left-rail button{min-height:39px;padding:0 10px;border-radius:7px;letter-spacing:.01em}.left-rail button span{color:#85b7d1}.left-rail button:hover,.left-rail button.active{background:linear-gradient(90deg,rgba(102,172,208,.2),rgba(102,172,208,.04));border-color:rgba(132,194,225,.24)}.rail-line{margin:14px 10px}
.scene-heading{left:180px;top:112px}.scene-heading p{max-width:340px}.camera-tools{right:32px;top:94px;padding:5px;border:1px solid rgba(142,187,211,.15);border-radius:9px;background:rgba(8,21,32,.44)}.camera-tools button,.camera-tools select{background:transparent;border-color:transparent}.camera-tools button:hover,.camera-tools select:hover{background:rgba(137,190,218,.12)}
footer{min-height:112px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(560px,680px) minmax(220px,1fr);align-items:center;gap:24px;padding:16px 34px;background:linear-gradient(180deg,rgba(4,12,20,.72),rgba(4,12,20,.96));border-top-color:rgba(151,195,219,.19)}
.truth{width:auto;max-width:290px;justify-self:start}.performance{margin-left:0;justify-self:end}.performance>span{color:#b1cbd9}.agent-mark{height:34px;width:34px;border-radius:8px;background:rgba(130,190,220,.1);border-color:rgba(153,211,239,.34)}#agent-form{width:100%;max-width:680px;justify-self:center;min-height:62px;padding:9px 10px 9px 12px;gap:12px;border-color:rgba(147,202,230,.31);background:linear-gradient(120deg,rgba(24,57,78,.78),rgba(12,30,44,.8));box-shadow:0 12px 35px rgba(0,0,0,.23)}#agent-input{font-size:13px;height:38px}#voice{color:#b6d8e9}#agent-run{min-height:40px;padding:0 15px!important;background:rgba(160,207,229,.15);border-color:rgba(168,219,244,.34);font-weight:500}
.drawer{border-radius:12px;background:linear-gradient(155deg,rgba(23,52,70,.95),rgba(7,20,31,.96) 68%);border-color:rgba(157,204,228,.27)}.modal{border-radius:14px;background:rgba(8,23,36,.96);border-color:rgba(157,204,228,.34)}
@media(max-width:1100px){footer{grid-template-columns:minmax(180px,1fr) minmax(440px,560px) minmax(180px,1fr);gap:14px;padding-inline:24px}.truth{max-width:180px}.scene-heading{left:164px}}
@media(max-width:760px){header{height:64px;padding:0 15px}.brand{font-size:19px}.brand span{display:none}.top-actions{border:0;background:transparent;padding:0}.left-rail{top:74px;left:10px;right:146px;width:auto}.scene-heading{left:20px;top:135px}.camera-tools{bottom:139px;top:auto;left:10px;right:10px;padding:3px;background:rgba(8,21,32,.68)}footer{height:124px;min-height:124px;display:flex;padding:10px 15px 14px;gap:9px}.truth{max-width:none}.performance{display:none}#agent-form{min-height:52px;max-width:none;padding:7px 8px;gap:7px}.agent-mark{height:28px;width:28px;border-radius:6px}#agent-input{font-size:10px;height:30px}#agent-run{min-height:34px;padding:0 8px!important}}
.spatial-label.agent-active{color:#e5f5ff;background:#294a6055;border-bottom:1px solid #b7ddef66;filter:none;opacity:1!important}.spatial-label.impact-os{font-size:9px;white-space:normal;max-width:110px}.spatial-label.impact-os small{font-size:6px}

.spatial-label[data-distance="far"] small{display:none}.spatial-label{filter:none;text-shadow:0 2px 5px #02060b}.spatial-label[data-distance="near"] small{font-size:9px}

@keyframes spatial-arrival{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
@keyframes label-arrival{0%,25%{opacity:0}100%{opacity:1}}
.quiet-arrival #world{animation:spatial-arrival 2.2s cubic-bezier(.22,1,.36,1) both}.quiet-arrival #labels{animation:label-arrival 2.4s ease both}.quiet-arrival #story{pointer-events:none}.quiet-arrival #skip{pointer-events:auto}
@media(prefers-reduced-motion:reduce){.quiet-arrival #world,.quiet-arrival #labels{animation:none}}
