/* Glass uses layered translucency instead of backdrop filtering: keeps DOM text crisp above WebGL on mobile and embedded browsers. */
:root{--ink:#233b37;--muted:#6f8176;--paper:#f7f9e9;--green:#254b3b;--lime:#d0ed94;--line:rgba(255,255,255,.48);--shadow:0 12px 44px rgba(21,42,31,.14);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#8ca38c}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.55}:is(button,a,input,textarea,select):focus-visible{outline:3px solid #608053;outline-offset:4px}button{border:0}button svg,svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}#world{position:relative;height:100dvh;width:100vw;isolation:isolate}#worldCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}#worldCanvas:focus-visible{outline:3px solid #d0ed94;outline-offset:-4px}.world-vignette{pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,rgba(29,57,41,.05),transparent 30%,transparent 70%,rgba(20,44,35,.14));z-index:1}.glass{background:linear-gradient(145deg,rgba(255,255,247,.94),rgba(240,247,224,.90));border:1px solid var(--line);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.55);}.brand{position:absolute;top:max(24px,env(safe-area-inset-top));left:28px;display:flex;align-items:center;gap:12px;padding:13px 18px 13px 13px;border-radius:24px;z-index:3;min-width:258px}.world-mark{width:45px;height:45px;display:flex;align-items:center;justify-content:center;background:#294937;color:#e5f3b4;border-radius:14px;position:relative;box-shadow:0 2px 4px #29493720;font-size:24px;font-weight:900;letter-spacing:-4px;padding-right:4px}.world-mark i{font-style:normal;color:#c7ea84;margin-top:-10px;font-size:19px;letter-spacing:-1px}.brand h1{font-size:20px;letter-spacing:-.9px;margin:0 0 5px;font-weight:800}.brand h1 span{font-weight:450}.brand-subline{display:flex;align-items:center;gap:5px;font-size:10px;color:#6a7e6e;white-space:nowrap}.connection-dot{height:5px;width:5px;border-radius:50%;background:#cba565;box-shadow:0 0 0 3px #cba56512}.connection-dot.online{background:#72a65a;box-shadow:0 0 0 3px #72a65a18}.connection-dot.offline{background:#c28463}.edition{font-size:7px;letter-spacing:1px;writing-mode:vertical-rl;color:#8e9b87;border-left:1px solid #a1af902e;padding-left:8px;margin-left:5px}.place-switch{position:absolute;top:max(28px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;border-radius:20px;padding:5px;gap:4px;z-index:3}.place-button{display:flex;align-items:center;gap:7px;border-radius:14px;padding:12px 18px;background:transparent;font-size:12px;font-weight:600;transition:background .2s,box-shadow .2s;color:#6a7e6d}.place-button svg{width:17px;height:17px}.place-button.selected{background:#fffef6;color:#35513b;box-shadow:0 2px 9px #3450300d}.place-button:hover{background:#fff9}.top-actions{position:absolute;right:28px;top:max(28px,env(safe-area-inset-top));display:flex;gap:9px;z-index:3}.icon-button{display:grid;place-items:center;width:48px;height:48px;border-radius:17px;color:#50694d;transition:transform .2s}.icon-button:hover{transform:translateY(-2px)}.icon-button[aria-pressed=true]{color:#28442f;background:#e8f3cf}.location{position:absolute;left:28px;top:120px;border-radius:20px;padding:13px 16px;display:flex;align-items:center;gap:12px;z-index:2;min-width:280px;background:rgba(251,252,241,.8)}.location-icon{width:39px;height:42px;border:1px solid #d5dfc6;border-radius:14px;background:linear-gradient(150deg,#ecf0d9,#dce9c6);display:grid;place-items:center;font-size:24px;color:#6b8157}.eyebrow{font-size:8px;font-weight:700;letter-spacing:1.6px;color:#819078;line-height:1.5}.location h2{font-size:15px;letter-spacing:-.4px;margin:2px 0 4px;font-weight:650}.location p{font-size:10px;color:#84917e;margin:0}.tiny-button{margin-left:10px;background:#e4eaca;border-radius:9px;width:26px;height:26px;font-size:19px;color:#7b8d65}.activity{position:absolute;right:28px;top:109px;width:272px;border-radius:22px;z-index:2;padding:19px 18px 0;background:rgba(250,252,239,.86)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading .eyebrow{font-size:6.6px;letter-spacing:1.1px}.section-heading h2{font-size:18px;margin:3px 0 0;font-weight:650;letter-spacing:-.7px}.live-pill{font-size:8px;color:#7d8d70;display:flex;align-items:center;gap:4px;border:1px solid #9cb27f3d;padding:4px 6px;border-radius:20px}.live-pill span{width:4px;height:4px;background:#86b265;border-radius:50%}.activity.offline .live-pill{color:#9c7656}.activity.offline .live-pill span{background:#b99578}.quiet-state{font-size:11px;line-height:1.7;color:#84917b;margin:18px 0 20px}.activity-summary{display:flex;gap:14px;margin:17px 0}.summary-item{display:flex;align-items:baseline;gap:5px;font-size:10px;color:#7d8b71}.summary-item strong{font-size:20px;font-weight:600;letter-spacing:-1px;color:#3f5a3a}.activity-item{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 0;border-top:1px solid #8c9e691a;background:none}.activity-item:hover .activity-item-title{color:#3b5f2a}.activity-item-icon{height:30px;width:30px;display:grid;place-items:center;background:#e5eccf;border-radius:10px;color:#8aa15f;font-size:15px;flex:none}.activity-item-body{min-width:0;flex:1}.activity-item-title{display:block;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-item-desc{display:block;font-size:9px;color:#8c977f;margin-top:4px}.activity-item-arrow{font-size:14px;color:#94a182}.directory-trigger{display:flex;gap:9px;align-items:center;width:calc(100% + 36px);margin-left:-18px;margin-top:7px;padding:15px 18px;border-top:1px solid #a8b58b3b;background:rgba(221,233,197,.21);border-radius:0 0 22px 22px;font-size:11px;font-weight:550}.directory-trigger:hover{background:#e2edce66}.people-icon{font-size:21px;color:#78975c;line-height:1}.count{font-size:9px;font-weight:500;background:#e1e8cc;border:1px solid #c7d5b26e;padding:2px 6px;border-radius:7px;margin-left:auto}.walk-controls{position:absolute;left:36px;bottom:68px;z-index:3;display:flex;align-items:center;flex-direction:column;gap:14px}.joystick{width:104px;height:104px;border-radius:50%;position:relative;touch-action:none;background:rgba(250,252,239,.45);user-select:none;cursor:grab}.joystick:active{cursor:grabbing}.joystick-ring{position:absolute;inset:13px;border:1px solid #fafff075;border-radius:50%;box-shadow:0 0 0 7px #ffffff0b}.joystick-cross{position:absolute;inset:0;display:grid;place-items:center;color:#36533665;font-size:63px;font-weight:100}.joystick-knob{position:absolute;inset:31px;border-radius:50%;background:linear-gradient(145deg,rgba(255,255,246,.98),rgba(229,239,213,.9));border:1px solid #fff9;box-shadow:0 4px 13px #2d49222c,0 0 0 4px #ffffff21;pointer-events:none;will-change:transform}.keyboard-hint{font-size:9px;color:#f4f7e6e0;letter-spacing:.2px;text-shadow:0 1px 4px #213b3630}.keyboard-hint span{font-weight:600;letter-spacing:1px}.interact-area{position:absolute;bottom:80px;left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:11px;z-index:3}.interact-area>span{font-size:10px;letter-spacing:.2px;color:#fafdec;text-shadow:0 1px 6px #173b3655;white-space:nowrap}.interact-button{display:flex;align-items:center;justify-content:space-between;gap:36px;background:#f7f9e8e8;border:1px solid #fffb;border-radius:17px;box-shadow:0 6px 20px #16382128,inset 0 1px 0 #fff;padding:12px 14px 12px 24px;font-size:13px;font-weight:600;transition:transform .2s,background .2s}.interact-button:hover{transform:translateY(-2px);background:#faffed}.interact-button kbd{font:500 10px inherit;color:#879774;background:#e7edcf;border:1px solid #d2ddba;border-radius:6px;min-width:23px;height:23px;display:grid;place-items:center}.world-footer{position:absolute;left:28px;right:28px;bottom:max(22px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:center;color:#f3f6e5c4;z-index:2;font-size:8px;letter-spacing:.4px;text-shadow:0 1px 4px #18352c2e}.world-footer-brand{letter-spacing:2px;font-size:7px}.world-footer button{background:none;color:inherit;font-size:9px;display:flex;gap:6px;align-items:center}.world-footer button span{border:1px solid #f0f4d757;width:14px;height:14px;border-radius:50%;display:grid;place-items:center;font-size:8px}.boot-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:16px;padding:16px 20px;z-index:6;font-size:12px;display:flex;align-items:center;gap:12px}.spinner{width:16px;height:16px;border:2px solid #627e4f30;border-top-color:#627e4f;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:absolute;left:50%;bottom:170px;transform:translateX(-50%);max-width:min(90%,420px);z-index:20;font-size:12px;line-height:1.5;border-radius:14px;padding:13px 20px;text-align:center}.auth-scrim{position:fixed;inset:0;z-index:8;background:linear-gradient(90deg,#142f2626,#142f2600 70%);pointer-events:none}.login-panel{position:fixed;left:9vw;top:50%;transform:translateY(-50%);width:420px;border-radius:32px;padding:32px;z-index:9;background:rgba(249,251,238,.94);box-shadow:0 25px 100px #213c332b}.login-topline{font-size:8px;letter-spacing:1.8px;color:#8b9d77;display:flex;align-items:center;gap:7px}.spark{font-size:18px;color:#8da85a}.login-emblem{display:flex;align-items:center;font-size:28px;letter-spacing:-6px;line-height:1;font-weight:900;color:#385a38;margin:25px 0}.login-emblem i{font-size:20px;font-style:normal;margin-top:-15px;margin-left:1px;color:#8cab55}.login-panel h2{font-size:43px;line-height:1.08;letter-spacing:-2px;font-weight:650;margin:0 0 17px}.login-panel h2 em{font-weight:450;font-style:normal;color:#8ba365}.login-panel>p{font-size:12px;line-height:1.8;color:#7c8c70;margin:0 0 25px;max-width:310px}.login-panel label{display:block;font-size:10px;font-weight:600;letter-spacing:.2px;margin-bottom:8px}.access-input{display:flex;align-items:center;border:1px solid #d2debf;border-radius:13px;background:#fffdf699;overflow:hidden}.access-input:focus-within{outline:2px solid #8ca66b;outline-offset:2px}.access-input input{min-width:0;flex:1;border:0;background:none;padding:14px 13px;font-size:11px;outline:none}.access-input input::placeholder{color:#a2ac95}.access-input button{background:none;padding:12px;color:#91a17b}.primary-button{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#294b36;color:#f5f8df;padding:15px 17px;border:1px solid #294b36;border-radius:13px;width:100%;font-size:12px;font-weight:550;transition:background .2s}.primary-button:hover{background:#3f6140}.primary-button span{font-size:18px;font-weight:300}.form-error{font-size:11px;color:#a16846;line-height:1.5;min-height:24px;padding:5px 0}.login-note{font-size:8px;color:#99a48c;display:flex;align-items:center;justify-content:center;gap:7px;margin-top:17px}.login-note>span{font-size:14px}.panel-backdrop{position:fixed;inset:0;background:#173a2f24;z-index:10}.side-panel{position:fixed;right:18px;top:18px;bottom:18px;width:440px;z-index:11;border-radius:28px;display:flex;flex-direction:column;background:rgba(250,252,241,.97);overflow:hidden;animation:panelIn .23s ease-out}.panel-heading{padding:24px 24px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading h2{font-size:25px;letter-spacing:-1.1px;font-weight:600;margin:5px 0 0}.close-button{width:32px;height:32px;border-radius:50%;background:#e8edda;font-size:24px;font-weight:300;display:grid;place-items:center;flex:none;color:#8c9b7c}.close-button:hover{background:#dbe6c3}.search-field{display:flex;align-items:center;margin:0 23px 14px;border:1px solid #d8e2c9;border-radius:13px;padding:0 12px;background:#fffdf8}.search-field svg{width:16px;color:#95a184}.search-field input{padding:13px 10px;min-width:0;flex:1;outline:none;border:0;background:none;font-size:11px;color:#526448}.search-field input::placeholder{color:#99a68c}.department-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;margin:0 23px 15px;padding-bottom:4px;flex:none}.department-tab{padding:7px 11px;border:1px solid #dce4cd;border-radius:20px;font-size:9px;background:transparent;white-space:nowrap;color:#8b997b}.department-tab.active{background:#e0ebc8;color:#49613b;border-color:#cedcb6}.directory-list{padding:0 23px 12px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#d9e2c9 transparent}.directory-group-title{font-size:8px;letter-spacing:1.4px;font-weight:650;text-transform:uppercase;color:#97a485;padding:13px 0 7px;position:sticky;top:0;background:#f9fbefed;z-index:2}.agent-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:11px 7px;border-radius:14px;background:transparent;transition:background .2s}.agent-row:hover{background:#e8efda}.avatar{--avatar-color:#86a377;position:relative;width:39px;height:43px;flex:none;display:inline-block;border-radius:12px;background:color-mix(in srgb,var(--avatar-color) 13%,#f7f9ee);border:1px solid color-mix(in srgb,var(--avatar-color) 18%,transparent);overflow:hidden}.avatar::before{content:"";position:absolute;width:17px;height:18px;left:10px;top:7px;border-radius:43% 43% 44% 44%;background:var(--avatar-color);box-shadow:0 13px 0 4px var(--avatar-color)}.avatar::after{content:"••";position:absolute;top:10px;left:15px;letter-spacing:3px;font-size:8px;color:#f8f9eb;line-height:1}.avatar[data-shape=gem]::before{clip-path:polygon(50% 0,95% 27%,95% 78%,50% 100%,5% 78%,5% 27%);border-radius:0;box-shadow:none;filter:drop-shadow(0 12px 0 var(--avatar-color));height:23px;top:6px}.avatar[data-shape=kite]::before{border-radius:6px 9px 4px 9px;transform:rotate(-9deg)}.avatar[data-shape=cloud]::before{border-radius:50% 50% 35% 35%;width:21px;left:8px}.avatar[data-shape=drop]::before{border-radius:55% 55% 45% 45%;transform:rotate(-5deg)}.avatar[data-shape=star]::before{border-radius:2px 10px 3px 10px;transform:rotate(-12deg)}.agent-row-copy{flex:1;min-width:0}.agent-row-name{display:block;font-size:12px;font-weight:600;color:#476044}.agent-row-role{display:block;font-size:9px;margin-top:4px;color:#93a184;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-state{display:flex;align-items:center;gap:4px;font-size:8px;color:#91a47b;text-transform:capitalize}.agent-state::before{content:"";width:4px;height:4px;background:#a8b88c;border-radius:50%}.agent-state.working::before,.agent-state.collaborating::before{background:#74a956;box-shadow:0 0 0 3px #80a85a17}.agent-state.paused{color:#ae9a7a}.agent-state.paused::before{background:#bea57e}.panel-footnote{font-size:9px;line-height:1.7;color:#99a58b;padding:15px 25px 19px;border-top:1px solid #d7e0c955;background:#edf2df55}.chat-heading{padding-bottom:18px}.chat-identity{display:flex;align-items:center;gap:13px;min-width:0}.chat-identity>div{min-width:0}.chat-identity .avatar{width:43px;height:48px}.chat-identity .avatar::before{left:12px;top:9px}.chat-identity .avatar::after{left:17px;top:12px}.chat-heading h2{font-size:19px;letter-spacing:-.6px;margin:3px 0;overflow-wrap:anywhere}.chat-subtitle{font-size:9px;color:#92a17f}.chat-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 14px;border-bottom:1px solid #d9e2c755;font-size:8px;color:#9ba78c;flex:none}.chat-actions button{display:flex;gap:9px;align-items:center;font-size:9px;color:#6e8757;background:#e8efd8;border-radius:8px;padding:7px 10px}.chat-messages{overflow-y:auto;flex:1;padding:20px 22px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#d6e0c4 transparent}.chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;padding:28px 18px;color:#94a283}.chat-welcome>span{font-size:32px;color:#bacb9c;margin-bottom:15px}.chat-welcome h3{font-size:17px;letter-spacing:-.5px;font-weight:550;color:#698058;margin:0 0 9px}.chat-welcome p{font-size:11px;line-height:1.8;margin:0;max-width:265px}.message{margin-bottom:18px;display:flex;flex-direction:column;align-items:flex-start}.message.user{align-items:flex-end}.message-meta{display:flex;align-items:center;gap:7px;font-size:8px;color:#9baa88;margin:0 4px 5px;line-height:1.3}.message-meta strong{font-weight:550}.message-bubble{background:#edf2e1;border:1px solid #e2e9d4;border-radius:4px 14px 14px;padding:12px 13px;max-width:100%;font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#5b7052}.message.user .message-bubble{background:#3b5b41;border-color:#3b5b41;border-radius:14px 4px 14px 14px;color:#eff5df;max-width:92%}.message.system .message-bubble{background:#f0edda;color:#99886a;font-size:10px;border-color:#e5e0c4}.message.progress .message-bubble{background:#eef2e4;font-size:10px;color:#8da077;border-color:#e1e8d5}.message .draft-tag{font-size:7px;letter-spacing:1px;text-transform:uppercase;color:#ad9975;display:block;margin-bottom:5px}.message-attachment{font-size:8px;margin:5px 4px;color:#91a07e}.approval-notice{font-size:10px;line-height:1.7;background:#f1e9cf;color:#9a8657;padding:13px 23px;border-top:1px solid #e4d7b5;flex:none}.approval-notice a{color:#6d7349;font-weight:600;white-space:nowrap;text-decoration:none}.chat-error{font-size:10px;color:#a27d58;padding:10px 24px;line-height:1.6;background:#f3ebd7}.chat-form{display:flex;align-items:flex-end;gap:10px;margin:14px 17px 5px;border:1px solid #d7e1c7;border-radius:16px;background:#fffdf8;padding:8px;flex:none}.chat-form textarea{border:0;resize:none;outline:none;background:none;min-width:0;flex:1;padding:6px 4px 5px 7px;font-size:11px;line-height:1.7;max-height:130px;color:#536d49}.chat-form textarea::placeholder{color:#a0ac90}.chat-form>button{background:#3b5b41;color:#ecf2d9;border-radius:11px;width:34px;height:34px;display:grid;place-items:center;flex:none}.chat-form>button svg{width:17px;height:17px}.chat-footer{font-size:7.5px;line-height:1.6;text-align:center;color:#a0ad8e;padding:6px 15px 16px;flex:none}.dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:460px;max-width:calc(100% - 30px);max-height:calc(100dvh - 30px);overflow-y:auto;z-index:12;border-radius:28px;background:rgba(250,252,239,.98);padding-bottom:20px;animation:dialogIn .18s ease-out}.dialog .panel-heading{padding-bottom:15px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 25px;padding:17px 0;border-bottom:1px solid #dce5cb80}.setting-row>span{max-width:260px}.setting-row strong{font-size:12px;font-weight:550;display:block;margin-bottom:5px}.setting-row small{font-size:9px;color:#99a589;line-height:1.5;display:block}.switch{appearance:none;width:35px;height:21px;flex:none;border-radius:20px;background:#dbe4c9;position:relative;cursor:pointer;transition:background .2s}.switch::after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fffdf5;box-shadow:0 1px 3px #203a311a;transition:transform .2s}.switch:checked{background:#6d9454}.switch:checked::after{transform:translateX(14px)}input[type=range]{width:94px;accent-color:#78985d;cursor:pointer}.setting-row select{width:115px;border:1px solid #d6e0c4;border-radius:8px;padding:7px;background:#f9fbef;color:#7f916b;font-size:10px}.world-truth{display:flex;gap:12px;margin:22px 25px;background:#eaf0db;padding:15px;border-radius:13px;color:#96a47f}.world-truth>span{font-size:21px;color:#a8bc88}.world-truth p{font-size:9px;line-height:1.8;margin:0}.text-button{display:block;margin:0 25px;padding:0;background:none;font-size:10px;color:#91a17c;text-decoration:underline;text-underline-offset:3px}.help-step{display:flex;gap:17px;margin:18px 27px 24px}.help-step>span{flex:none;font-size:9px;font-weight:600;color:#91a96b;padding-top:3px}.help-step h3{font-size:13px;font-weight:550;letter-spacing:-.2px;margin:0 0 7px}.help-step p{font-size:10px;line-height:1.85;color:#91a080;margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.empty-list{font-size:11px;color:#9aa788;text-align:center;padding:40px 20px;line-height:1.8}.offline-banner{font-size:9px;color:#a3845e;background:#f1ead4;border:1px solid #e6d9b7;border-radius:8px;padding:9px 10px;margin:13px 0;line-height:1.6}@keyframes panelIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}@keyframes dialogIn{from{opacity:0;scale:.98}to{opacity:1;scale:1}}
@media(min-width:1600px){.brand{left:36px;top:32px}.top-actions{right:36px;top:36px}.place-switch{top:36px}.location{left:36px;top:132px}.activity{right:36px;top:121px;width:300px;padding:22px 22px 0}.directory-trigger{width:calc(100% + 44px);margin-left:-22px;padding:16px 22px}.walk-controls{left:48px;bottom:85px}.interact-area{bottom:96px}.world-footer{left:36px;right:36px;bottom:28px}}
@media(max-width:1100px){.brand{min-width:218px;left:18px;top:18px;padding-right:12px}.edition{display:none}.top-actions{right:18px;top:23px}.place-switch{top:24px}.place-button{padding:10px 12px;font-size:11px}.place-button svg{width:15px}.activity{right:18px;width:230px;top:100px;padding:16px 15px 0}.section-heading .eyebrow{font-size:6px;letter-spacing:.8px}.section-heading h2{font-size:17px}.directory-trigger{width:calc(100% + 30px);margin-left:-15px;padding:14px 15px}.location{left:18px;top:108px;min-width:240px;padding:10px 12px}.location p{font-size:9px}.location h2{font-size:14px}.location .eyebrow{font-size:7px}.location-icon{width:33px;height:36px}.tiny-button{margin-left:2px}.world-footer{left:20px;right:20px}.login-panel{left:7vw}}
@media(max-width:760px){.brand{left:14px;top:max(14px,env(safe-area-inset-top));min-width:0;border-radius:18px;padding:9px 13px 9px 9px;gap:9px}.world-mark{width:35px;height:35px;border-radius:11px;font-size:22px}.world-mark i{font-size:16px}.brand h1{font-size:17px;margin-bottom:3px}.brand-subline{font-size:8px}.top-actions{right:14px;top:max(18px,env(safe-area-inset-top));gap:7px}.icon-button{width:38px;height:38px;border-radius:13px}.icon-button svg{width:17px}.place-switch{top:auto;bottom:max(20px,env(safe-area-inset-bottom));padding:4px;border-radius:17px;z-index:4}.place-button{padding:11px 13px;font-size:10px;border-radius:12px;gap:6px}.place-button svg{width:15px;height:15px}.location{top:max(89px,calc(env(safe-area-inset-top) + 75px));left:14px;min-width:0;border-radius:15px;padding:9px 12px;gap:9px}.location-icon{display:none}.location .eyebrow{font-size:6px;letter-spacing:1px}.location h2{font-size:13px;margin:1px 0 0}.location p{display:none}.tiny-button{width:23px;height:23px;font-size:16px;margin-left:9px}.activity{top:max(89px,calc(env(safe-area-inset-top) + 75px));right:14px;width:150px;border-radius:15px;padding:10px 11px 0}.section-heading .eyebrow{display:none}.section-heading h2{font-size:12px;letter-spacing:-.3px;margin:0}.live-pill{font-size:6px;padding:3px 4px;gap:3px}.live-pill span{width:3px;height:3px}.activity-summary{margin:9px 0;gap:11px}.summary-item{font-size:7px;gap:3px}.summary-item strong{font-size:15px;letter-spacing:-.5px}.activity-item{gap:6px;padding:8px 0}.activity-item-icon{height:23px;width:23px;border-radius:7px;font-size:11px}.activity-item-title{font-size:8px;max-width:94px}.activity-item-desc{font-size:6px;margin-top:3px}.activity-item-arrow{display:none}.activity-item:nth-of-type(n+3){display:none}.quiet-state{font-size:8px;margin:9px 0 11px;line-height:1.65}.directory-trigger{width:calc(100% + 22px);margin-left:-11px;padding:10px 11px;gap:6px;font-size:8px;border-radius:0 0 15px 15px;margin-top:4px}.people-icon{font-size:14px}.count{font-size:7px;padding:1px 4px}.directory-trigger>span:last-child{display:none}.walk-controls{left:24px;bottom:max(100px,calc(env(safe-area-inset-bottom) + 80px));gap:0}.joystick{width:94px;height:94px}.joystick-knob{inset:27px}.keyboard-hint{display:none}.interact-area{left:auto;right:23px;transform:none;bottom:max(113px,calc(env(safe-area-inset-bottom) + 93px));gap:7px}.interact-area>span{font-size:8px;max-width:120px;white-space:normal;text-align:center;line-height:1.5}.interact-button{border-radius:50%;height:65px;width:65px;padding:0;justify-content:center;gap:0;font-size:10px;background:#fafcebe6}.interact-button kbd{display:none}.world-footer{left:15px;right:15px;bottom:max(80px,calc(env(safe-area-inset-bottom) + 60px));font-size:6px;pointer-events:none}.world-footer-brand{display:none}.world-footer button{font-size:7px;pointer-events:auto}.world-footer button span{height:12px;width:12px;font-size:7px}.world-footer #lastSync{font-size:6px}.login-panel{left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 36px));padding:26px;border-radius:27px}.login-topline{font-size:7px}.login-emblem{margin:19px 0}.login-panel h2{font-size:36px;letter-spacing:-1.7px}.login-panel>p{font-size:11px;margin-bottom:20px}.login-note{font-size:7px}.auth-scrim{background:#173c2c16}.side-panel{inset:8px;width:auto;border-radius:23px;max-height:calc(100dvh - 16px)}.panel-heading{padding:21px 20px 18px}.panel-heading h2{font-size:23px}.search-field{margin:0 20px 12px}.department-tabs{margin:0 20px 13px}.directory-list{padding:0 20px 12px}.agent-row{padding:12px 5px}.agent-row-name{font-size:13px}.agent-row-role{font-size:10px}.agent-state{font-size:8px}.panel-footnote{padding:12px 21px 15px;font-size:8px}.chat-heading h2{font-size:18px}.chat-messages{padding:18px 18px}.message-bubble{font-size:12px;line-height:1.8}.chat-form textarea{font-size:12px}.chat-footer{font-size:7px}.chat-actions{padding:0 21px 12px}.toast{bottom:200px;font-size:11px}.dialog .panel-heading h2{font-size:23px}.setting-row{margin:0 22px;gap:16px}.setting-row>span{max-width:220px}.setting-row strong{font-size:11px}.setting-row small{font-size:8px}.offline-banner{font-size:7px;padding:7px;margin:8px 0}}
@media(max-height:640px) and (min-width:761px){.login-panel{padding:25px;width:370px}.login-emblem{margin:15px 0}.login-panel h2{font-size:35px}.login-panel>p{margin-bottom:15px}.activity{top:95px}.location{top:108px}.walk-controls{bottom:55px}.joystick{width:85px;height:85px}.joystick-knob{inset:24px}.interact-area{bottom:60px}.world-footer{bottom:15px}.keyboard-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}body.reduced-motion *,body.reduced-motion *::before,body.reduced-motion *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

/* First-entry welcome illustration. */
.arrival{position:fixed;inset:0;z-index:90;background:#1c352a url('./assets/world-welcome.png') center/cover;display:grid;align-items:end;padding:clamp(24px,6vw,88px);color:#fff9e7;isolation:isolate}.arrival:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(14,39,31,.82),rgba(14,39,31,.15) 80%),linear-gradient(0deg,rgba(14,39,31,.5),transparent 80%)}.arrival-copy{max-width:560px;margin-bottom:4vh}.arrival-eyebrow{font:600 12px system-ui;letter-spacing:.22em;text-transform:uppercase;color:#e4f2c1}.arrival h2{font:600 clamp(48px,6.5vw,90px)/1.02 Georgia,serif;letter-spacing:-.045em;margin:22px 0}.arrival p{font:400 clamp(15px,1.6vw,18px)/1.7 system-ui;max-width:400px;color:#e6e9d8}.arrival button{margin-top:22px;background:#dcf5a8;border:1px solid #f6ffde;color:#233e2c;padding:18px 27px;border-radius:15px;font:650 16px system-ui;cursor:pointer;box-shadow:0 8px 35px #142d2444}.arrival button:hover{background:#ebffc2;transform:translateY(-2px)}.arrival button:focus-visible{outline:3px solid white;outline-offset:5px}.arrival label{display:flex;gap:10px;align-items:center;margin-top:18px;font:13px system-ui;color:#e2e9d7}.arrival input{accent-color:#d5f2a0}.arrival-corner{position:absolute;right:28px;top:28px;font:600 12px system-ui;letter-spacing:.12em;color:#fff7d9}@media(max-width:600px){.arrival{background-position:58% center}.arrival:before{background:linear-gradient(0deg,rgba(14,39,31,.94),rgba(14,39,31,.03) 95%)}.arrival-copy{margin-bottom:3vh}.arrival h2{font-size:58px}.arrival p{max-width:300px}}

/* World stays a separate destination; HQ is always one tap away. */
.hq-return{display:flex;align-items:center;justify-content:center;gap:5px;min-width:64px;min-height:48px;padding:0 12px;border-radius:17px;color:#50694d;text-decoration:none;font-size:12px;font-weight:650}
.hq-return svg{width:17px;height:17px}.hq-return:hover{background:#f9fce9}.place-name-short{display:none}
.orientation-prompt{display:none;position:fixed;inset:0;z-index:100;background:radial-gradient(ellipse at 50% 38%,#5e8053a6,#19382aeb 73%),#294937;overflow:auto;overscroll-behavior:contain;padding:max(28px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));align-items:center;justify-content:center;flex-direction:column;gap:26px}
.orientation-back{color:#f2f7df;text-decoration:none;font-size:14px;align-self:flex-start;min-height:44px;display:flex;align-items:center;flex:none}
.orientation-card{width:min(100%,360px);padding:34px 27px 22px;border-radius:30px;text-align:center;margin:auto 0}
.orientation-card .eyebrow{font-size:10px;letter-spacing:2px}.orientation-card h2{font:500 38px/1.08 Georgia,serif;letter-spacing:-1.5px;margin:16px 0;color:#304b36}
.orientation-card p{font-size:14px;line-height:1.7;color:#748365;margin:0 0 23px}.orientation-card .primary-button{min-height:48px;font-size:14px}
.orientation-card .orientation-status{font-size:12px;line-height:1.6;min-height:38px;margin:16px 0 0;color:#7b8c6c}
.landscape-phone{position:relative;width:126px;height:67px;border:3px solid #5d7b4e;border-radius:17px;margin:0 auto 27px;box-shadow:0 8px 22px #38542e13;background:linear-gradient(140deg,#e3ecc9,#b9d39d);display:flex;align-items:center;justify-content:center;color:#65834b;transform:rotate(-8deg)}
.landscape-phone:before{content:'';position:absolute;left:5px;top:24px;width:3px;height:13px;border-radius:5px;background:#809867}
.phone-world{font-size:22px;font-weight:850;letter-spacing:-2px;opacity:.8}.phone-stick{position:absolute;left:16px;bottom:12px;width:17px;height:17px;border:1px solid #77965d77;border-radius:50%}.phone-stick:after{content:'';position:absolute;inset:4px;border-radius:50%;background:#759159}.phone-action{position:absolute;right:13px;bottom:13px;width:12px;height:12px;background:#709052;border-radius:50%;box-shadow:0 0 0 4px #dce9bb}
/* Landscape phones use a game HUD: the centre stays open, with thumbs at the edges. */
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  :root{--game-left:max(12px,env(safe-area-inset-left));--game-right:max(12px,env(safe-area-inset-right));--game-top:max(10px,env(safe-area-inset-top));--game-bottom:max(12px,env(safe-area-inset-bottom))}
  .brand{left:var(--game-left);top:var(--game-top);min-width:0;gap:8px;padding:6px 10px 6px 6px;border-radius:16px;height:48px;width:180px}
  .world-mark{width:34px;height:34px;border-radius:11px;font-size:22px;flex:none}.world-mark i{font-size:16px}.brand h1{font-size:17px;margin:0 0 3px;letter-spacing:-.5px}.brand-subline{font-size:9px}.edition{display:none}
  .place-switch{top:var(--game-top);bottom:auto;left:50%;transform:translateX(-50%);padding:3px;border-radius:16px;gap:2px;z-index:4;height:50px}
  .place-button{min-height:44px;padding:0 12px;gap:6px;font-size:12px;border-radius:12px}.place-button svg{width:17px;height:17px}.place-name-full{display:none}.place-name-short{display:inline}
  .top-actions{top:var(--game-top);right:var(--game-right);gap:6px}.icon-button,.hq-return{width:44px;height:48px;min-height:48px;border-radius:15px}.icon-button svg{width:18px;height:18px}.hq-return{min-width:44px;padding:0;font-size:11px;gap:0}.hq-return svg{width:17px}.hq-return span{display:none}
  .location{top:calc(var(--game-top) + 59px);left:var(--game-left);min-width:0;max-width:260px;padding:9px 11px;gap:8px;border-radius:14px;min-height:44px;max-height:58px;background:#f8fbeddf}
  .location-icon,.location .eyebrow,.location p{display:none}.location h2{font-size:14px;line-height:1.25;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}.tiny-button{min-width:44px;width:44px;height:44px;margin-left:0;font-size:20px}.location{padding-top:3px;padding-bottom:3px}
  .activity{top:calc(var(--game-top) + 59px);right:var(--game-right);width:174px;border-radius:14px;padding:0;min-height:44px;background:#f8fbeddf}
  .activity .section-heading,.activity #activityContent{display:none}.directory-trigger{width:100%;margin:0;padding:0 12px;gap:7px;border:0;border-radius:14px;min-height:44px;font-size:12px}.people-icon{font-size:19px}.directory-trigger .count{font-size:10px;padding:2px 5px}.directory-trigger>span:last-child{display:inline}
  .walk-controls{left:calc(var(--game-left) + 9px);bottom:var(--game-bottom);gap:0}.joystick{width:100px;height:100px;box-shadow:0 4px 25px #19372e20,inset 0 1px 0 #fff8}.joystick-knob{inset:29px}.keyboard-hint{display:none}
  .interact-area{left:auto;right:calc(var(--game-right) + 10px);bottom:var(--game-bottom);transform:none;gap:7px;width:132px}.interact-area>span{font-size:11px;line-height:1.35;max-width:156px;white-space:normal;text-align:center;background:#f5f9e9ed;color:#62774f;padding:5px 9px;border-radius:10px;box-shadow:0 2px 9px #1835280a}.interact-button{border-radius:50%;width:66px;height:66px;padding:0;gap:0;justify-content:center;font-size:13px;background:#fafceded}.interact-button kbd{display:none}
  .world-footer{left:145px;right:170px;bottom:calc(var(--game-bottom) + 2px);display:flex;justify-content:center;gap:16px;font-size:9px;line-height:1.4;pointer-events:none}.world-footer-brand{display:none}.world-footer button{font-size:11px;min-height:44px;pointer-events:auto}.world-footer #lastSync{font-size:9px}.world-footer button span{width:14px;height:14px;font-size:9px}
  .toast{bottom:calc(var(--game-bottom) + 72px);font-size:13px;max-width:350px;padding:10px 14px;border-radius:12px}.boot-hint{font-size:14px}
  .side-panel{top:max(8px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));right:var(--game-right);left:auto;width:min(440px,calc(100% - var(--game-left) - var(--game-right)));max-height:none;border-radius:22px}
  .panel-heading{padding:14px 18px 10px;gap:10px;flex:none}.panel-heading .eyebrow{font-size:8px}.panel-heading h2{font-size:22px;margin-top:2px}.close-button{min-width:44px;width:44px;height:44px;font-size:28px}
  .search-field{margin:0 18px 8px;padding:0 11px;flex:none;min-height:44px}.search-field input{font-size:16px;padding:10px 9px}.department-tabs{margin:0 18px 8px;min-height:44px;padding-bottom:0;gap:6px}.department-tab{font-size:12px;min-height:44px;padding:7px 12px}
  .directory-list{padding:0 18px 10px;min-height:0}.directory-group-title{font-size:10px}.agent-row{padding:9px 5px;min-height:64px;gap:10px}.agent-row-name{font-size:14px;line-height:1.35}.agent-row-role{font-size:12px;margin-top:3px}.agent-state{font-size:10px}.panel-footnote{font-size:11px;line-height:1.5;padding:9px 18px;flex:none}
  .chat-heading{padding-bottom:8px}.chat-heading h2{font-size:20px}.chat-subtitle{font-size:12px}.chat-identity{gap:10px}.chat-actions{padding:0 18px 7px;gap:8px;font-size:11px;min-height:44px}.chat-actions button{font-size:13px;min-height:44px;padding:8px 10px}.chat-messages{padding:12px 18px;min-height:40px}.message-bubble{font-size:14px;line-height:1.65;padding:10px 12px}.message-meta{font-size:11px}.message.system .message-bubble,.message.progress .message-bubble{font-size:13px}.chat-form{margin:8px 12px 3px;padding:5px;gap:8px;border-radius:14px}.chat-form textarea{font-size:16px;line-height:1.45;padding:7px;max-height:90px}.chat-form>button{width:44px;height:44px;border-radius:11px}.chat-footer{font-size:10px;padding:3px 12px 9px;line-height:1.4}.chat-error,.approval-notice{font-size:13px;padding:9px 18px;line-height:1.5}.chat-welcome{padding:15px}.chat-welcome p{font-size:14px}.chat-welcome h3{font-size:18px}
  .dialog{width:480px;max-width:calc(100% - var(--game-left) - var(--game-right));max-height:calc(100dvh - 16px);border-radius:22px;padding-bottom:16px;overscroll-behavior:contain}.setting-row{margin:0 20px;padding:11px 0;gap:14px;min-height:64px}.setting-row strong{font-size:14px}.setting-row small{font-size:12px}.setting-row select{font-size:16px;min-height:44px;width:140px}.switch{width:44px;height:28px}.switch:after{width:22px;height:22px}.switch:checked:after{transform:translateX(16px)}.world-truth{margin:15px 20px;padding:12px}.world-truth p{font-size:12px}.text-button{font-size:14px;min-height:44px;margin:0 20px}.help-step{margin:14px 22px;gap:14px}.help-step h3{font-size:16px}.help-step p{font-size:14px;line-height:1.6}.help-step>span{font-size:12px}
  .login-panel{left:50%;top:50%;transform:translate(-50%,-50%);width:min(450px,calc(100% - 32px));max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px;padding:22px}.login-emblem{display:none}.login-topline{font-size:9px}.login-panel h2{font-size:31px;margin:10px 0;line-height:1.05;letter-spacing:-1px}.login-panel>p{font-size:13px;line-height:1.6;margin-bottom:14px;max-width:none}.login-panel label{font-size:13px}.access-input input{font-size:16px;padding:11px 12px}.access-input button{min-width:44px;min-height:44px}.primary-button{font-size:14px;min-height:44px;padding:11px 14px}.login-note{font-size:10px;margin-top:12px}.form-error{font-size:12px;min-height:19px}
  .arrival{padding:max(18px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overflow-y:auto;align-items:center;background-position:center}.arrival-copy{margin:0;max-width:430px}.arrival-eyebrow{font-size:10px}.arrival h2{font-size:44px;line-height:1.02;margin:10px 0;max-width:370px}.arrival p{font-size:14px;line-height:1.5;margin:9px 0;max-width:390px}.arrival button{min-height:44px;margin-top:10px;padding:12px 20px;font-size:14px}.arrival label{font-size:12px;margin-top:12px;min-height:44px}.arrival label input{width:18px;height:18px}.arrival-corner{font-size:10px;right:var(--game-right);top:var(--game-top)}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:720px){
  .brand{width:156px}.world-mark{width:31px;height:34px}.brand h1{font-size:16px}.brand-subline{font-size:8px}.place-button{padding:0 10px;gap:5px;font-size:11px}.place-switch{left:48%}.top-actions{gap:4px}.icon-button,.hq-return{width:44px;min-width:44px}.location{max-width:236px}.activity{width:158px}.directory-trigger{font-size:11px;padding:0 10px}.world-footer #lastSync{display:none}.arrival-copy{max-width:380px}.arrival h2{font-size:39px}.arrival p{font-size:13px;max-width:355px}
}
/* Portrait is a deliberate orientation screen on phones, never a squeezed game. */
@media (orientation:portrait) and (max-width:600px) and (max-height:1100px){
  .orientation-prompt{display:flex}#world,.arrival{pointer-events:none}#world{visibility:hidden}.arrival{visibility:hidden}.top-actions{gap:5px}.hq-return{height:38px;min-height:38px;min-width:38px;border-radius:13px;padding:0}.hq-return span{display:none}
}
@media (pointer:coarse){
  button,a{touch-action:manipulation}.search-field input,.access-input input,.chat-form textarea{font-size:16px}.side-panel,.dialog,.login-panel{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
}

/* Company boards and tactile travel powers use the existing warm glass language. */
.company-board{position:absolute;top:100px;left:50%;transform:translateX(-50%);z-index:5;width:min(430px,36vw);border-radius:18px;padding:11px 16px;color:#e8efd9;max-height:58vh;overflow:auto;background:rgba(30,54,43,.87)}
.company-board summary{cursor:pointer;font-size:12px;font-weight:750;list-style:none;display:flex;gap:12px;justify-content:space-between}.company-board summary span{font-size:11px;color:#c9d5b4;font-weight:450}.company-board[open] summary{padding-bottom:12px;border-bottom:1px solid #b8caa333}.company-board h3{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:#ccdfac;margin:16px 0 7px}.company-board p{margin:5px 0;font-size:12px;line-height:1.5}.company-board .metric-value{font-size:21px;color:#e6f5c4;font-weight:700}.company-board small{display:block;color:#c4cdb6;font-size:10px;line-height:1.5}.company-board ol{padding-left:19px;font-size:12px}.mobility-controls{position:absolute;bottom:112px;right:34px;display:flex;gap:8px;z-index:6}.mobility-controls button{min-height:46px;min-width:80px;border:1px solid #b6c99a88;border-radius:16px;padding:10px 13px;color:#eef4da;background:rgba(36,59,46,.9);font-family:inherit;font-size:12px;font-weight:600}.mobility-controls button[aria-pressed="true"]{color:#ddff9f;border-color:#ccff00;background:rgba(56,81,44,.94)}
@media(max-height:600px) and (orientation:landscape){.company-board{top:72px;left:50%;width:min(340px,37vw);padding:8px 12px;max-height:60vh}.company-board summary{font-size:10px}.company-board summary span{font-size:9px}.mobility-controls{right:max(20px,env(safe-area-inset-right));bottom:92px;gap:6px}.mobility-controls button{min-height:37px;min-width:64px;padding:8px;font-size:11px}}

/* Locked locomotion controls and bounded laboratory UI. */
.mobility-controls{flex-direction:column;align-items:flex-end;gap:7px}.mobility-buttons{display:flex;gap:7px}.mobility-controls output{font-size:12px;font-weight:700;letter-spacing:.025em;color:#f1f8dc;background:rgba(27,49,41,.9);padding:7px 12px;border-radius:12px;border:1px solid #b6c99a55}.mobility-controls button:disabled{opacity:.45;cursor:default}.labs-panel{max-height:82vh;overflow:auto}.labs-content{padding:0 24px 24px}.labs-content h3{font-size:18px;margin:5px 0 14px}.labs-content p{font-size:13px;line-height:1.6}.labs-content #labsStatus{font-weight:750;color:#4e6f38}.labs-source{color:#637563;font-size:11px!important}.labs-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 8px}.labs-actions button{border-radius:12px;padding:11px 15px;min-height:44px;border:1px solid #8fa881;cursor:pointer;font:600 12px inherit;background:#d6e4ba;color:#29452f}.labs-actions button:disabled{opacity:.45;cursor:default}.labs-content .world-truth{margin:14px 0 0}.labs-content .text-button{margin:6px 0 0}
@media(max-height:600px) and (orientation:landscape){.mobility-controls{bottom:85px;right:max(14px,env(safe-area-inset-right));gap:4px}.mobility-controls button{min-width:54px;padding:6px 8px;min-height:36px}.mobility-controls output{padding:5px 9px;font-size:10px}.place-switch{left:48%;gap:3px}.place-button{padding-left:8px;padding-right:8px}.labs-panel{max-height:88vh}.labs-content{padding:0 20px 18px}.labs-content p{font-size:11px}.labs-actions{margin-top:12px}}

/* Twin research lab: scene first, optional side-by-side measured observations. */
.lab-workspace{position:fixed;z-index:7;top:108px;left:50%;transform:translateX(-50%);width:min(690px,57vw);pointer-events:none}.lab-view-bar{padding:10px 12px;border-radius:18px;background:rgba(20,48,58,.92);color:#e7f6e8;pointer-events:auto;border:1px solid #91c1bf88;box-shadow:0 14px 40px #102e3544}.lab-view-tabs,.lab-quick-actions{display:flex;justify-content:center;gap:6px}.lab-view-tabs button,.lab-quick-actions button{border:1px solid #88aeb166;border-radius:9px;background:#315763;color:#e6f2e4;font:600 11px system-ui;padding:8px 11px;cursor:pointer}.lab-view-tabs button[aria-pressed=true]{background:#c7f49c;color:#183e34;border-color:#dcffae}.lab-view-bar p{text-align:center;font:11px system-ui;margin:7px 0;color:#bfdcd1}.lab-quick-actions{flex-wrap:wrap}.lab-quick-actions button{font-size:10px;padding:6px 8px}.lab-emergency{background:#693a45!important;color:#ffe6dc!important;border-color:#b7787a!important}.lab-chat-panel{position:fixed;z-index:12;top:190px;bottom:148px;width:310px;padding:14px;border-radius:19px;background:rgba(20,43,56,.96);color:#e3f1ed;border:1px solid #8bc9c17a;display:flex;flex-direction:column;box-shadow:0 14px 35px #102e3555}.lab-chat-panel[hidden],.lab-workspace[hidden]{display:none}.lab-chat-left{left:20px}.lab-chat-right{right:20px;border-color:#bea8ed88}.lab-chat-panel header{display:flex;justify-content:space-between;align-items:center}.lab-chat-panel h3{margin:4px 0;font-size:21px}.lab-chat-panel header button{background:none;border:0;color:#cce2d9;font-size:26px;cursor:pointer}.lab-chat-panel .eyebrow{font-size:8px;color:#a0c4c7}.lab-brain-readout{font-size:10px;line-height:1.5;color:#b1d4d3;margin:6px 0}.lab-variables{display:flex;flex-wrap:wrap;gap:4px}.lab-variables span{font:9px system-ui;background:#365b6777;border:1px solid #537f8777;padding:4px 5px;border-radius:6px}.lab-proxy-note{font-size:8px;color:#a6bfc1;margin-top:4px}.lab-model-label{font-size:9px;font-weight:700;color:#c7e6c4;line-height:1.5}.lab-chat-log{flex:1;overflow:auto;min-height:50px;scrollbar-width:thin}.lab-message{padding:8px;border-top:1px solid #83aaa52a;background:#163b4822}.lab-message small{font:650 8px system-ui;color:#9ed9d0}.lab-message p{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 system-ui;margin:5px 0;color:#e1eee8}.lab-manual-chat{margin-top:8px;display:grid;gap:5px}.lab-manual-chat label{font:9px system-ui;color:#c8dbcd}.lab-manual-chat textarea{resize:vertical;min-height:48px;background:#102e3a;border:1px solid #749b9b66;border-radius:9px;color:#e3f1ed;font:11px system-ui;padding:8px}.lab-manual-chat button{border:1px solid #9fc3a866;border-radius:8px;background:#b4dc9e;color:#183e34;padding:8px;font:650 10px system-ui;cursor:pointer}.lab-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.lab-compare-card{border:1px solid #779e9e77;border-radius:12px;padding:12px;background:#d7e9dd}.lab-compare-card h4{margin:0 0 7px}.lab-compare-card p{margin:0 0 5px}.lab-compare-card small{display:block;font-size:10px;margin-top:4px}.labs-content details{margin:12px 0;font-size:12px}.labs-content pre{white-space:pre-wrap;font-size:10px;max-height:160px;overflow:auto;background:#d4e5d8;padding:10px;border-radius:10px}
@media(max-height:600px) and (orientation:landscape){.lab-workspace{top:72px;width:min(560px,64vw)}.lab-view-bar{padding:6px 8px;border-radius:13px}.lab-view-tabs button{font-size:10px;padding:5px 10px}.lab-view-bar p{font-size:9px;margin:4px}.lab-quick-actions button{font-size:8px;padding:5px}.lab-chat-panel{top:70px;bottom:63px;width:32vw;min-width:218px;padding:9px;border-radius:13px}.lab-chat-left{left:8px}.lab-chat-right{right:8px}.lab-chat-panel h3{font-size:16px}.lab-brain-readout{font-size:8px;margin:3px 0}.lab-variables span{font-size:8px;padding:2px 4px}.lab-model-label{font-size:8px;margin:4px 0}.lab-chat-panel .eyebrow{font-size:7px}.lab-chat-panel header button{font-size:22px}.lab-manual-chat textarea{min-height:34px;height:34px}.lab-manual-chat label{font-size:8px}.lab-manual-chat button{padding:5px;font-size:9px}.lab-message{padding:5px}.lab-message p{font-size:9px}.lab-chat-log{min-height:28px}.lab-comparison{gap:6px}.lab-compare-card{padding:8px}.labs-content pre{max-height:100px}}

/* Give the dedicated lab workspace the screen; restore ordinary HQ overlays outside. */
body.in-labs #activityPanel,body.in-labs #companyBoard{display:none!important}body.in-labs .location{padding:10px 13px;max-width:240px}body.in-labs .location .eyebrow,body.in-labs #locationDescription{display:none}body.in-labs .location h2{font-size:15px;margin:0}body.in-labs .location-icon{width:32px;height:32px;font-size:18px}body.in-labs .keyboard-hint{display:none}
@media(min-width:1100px) and (min-height:650px){.lab-chat-panel{width:clamp(230px,20vw,285px);top:220px;bottom:120px}.lab-chat-left{left:14px}.lab-chat-right{right:14px}.lab-workspace{width:min(660px,56vw);top:108px}}
@media(max-width:760px) and (min-height:601px){.lab-workspace{width:min(500px,calc(100vw - 32px));top:160px}.lab-view-bar{padding:7px 9px}.lab-view-tabs button{padding:6px 12px}.lab-view-bar p{margin:5px}.lab-quick-actions button{padding:5px 7px;font-size:9px}}

/* Neural view remains clear: laboratory navigation belongs below the scene. */
body.in-labs .place-switch,body.in-labs .world-footer{display:none!important}body.in-labs .lab-workspace{top:auto!important;bottom:max(12px,env(safe-area-inset-bottom));width:min(520px,60vw)}body.in-labs .lab-view-bar{padding:7px 10px;border-radius:15px}body.in-labs .lab-view-bar p{font-size:9px;margin:5px 0}body.in-labs .lab-view-tabs button{padding:6px 11px}body.in-labs .lab-quick-actions button{padding:5px 7px;font-size:9px}body.in-labs .lab-chat-panel{bottom:118px}
@media(max-width:1099px) and (min-height:601px){body.in-labs .lab-workspace{bottom:max(20px,env(safe-area-inset-bottom));width:min(560px,calc(100vw - 28px))}body.in-labs .lab-view-bar{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:4px 7px}body.in-labs .lab-view-bar p{display:none}body.in-labs .lab-view-tabs{gap:3px}body.in-labs .lab-view-tabs button{font-size:10px;padding:7px 9px}body.in-labs .lab-quick-actions{gap:4px;flex-wrap:nowrap}body.in-labs .lab-quick-actions>[data-lab-chat],body.in-labs #labQuickPause{display:none}body.in-labs .lab-quick-actions button{font-size:9px;padding:7px 8px}body.in-labs .walk-controls{bottom:80px}body.in-labs .interact-area{bottom:80px}body.in-labs .lab-chat-panel{bottom:80px}}
@media(max-height:600px) and (orientation:landscape){body.in-labs .lab-workspace{bottom:max(12px,env(safe-area-inset-bottom));width:min(480px,calc(100vw - 330px))}body.in-labs .lab-view-bar{display:flex;align-items:center;justify-content:center;gap:5px;height:42px;padding:4px 6px}body.in-labs .lab-view-bar p,body.in-labs .lab-quick-actions>[data-lab-chat],body.in-labs #labQuickPause{display:none}body.in-labs .lab-view-tabs{gap:3px}body.in-labs .lab-view-tabs button{padding:6px 7px;font-size:9px;white-space:nowrap}body.in-labs .lab-quick-actions{gap:3px;flex-wrap:nowrap}body.in-labs .lab-quick-actions button{font-size:9px;padding:6px;white-space:nowrap}body.in-labs .mobility-controls button{min-width:36px;padding:6px 10px}body.in-labs .mobility-controls button span{display:none}body.in-labs .lab-chat-panel{bottom:65px}}

/* Codex has a separate architectural palette. Existing village, Labs, controls
   and readable chat surfaces retain their own styles and behavior. */
body.in-codex .world-vignette{background:radial-gradient(ellipse at center,transparent 40%,rgba(2,9,19,.3) 100%)}
body.in-codex .location,body.in-codex .place-switch{background:rgba(15,39,55,.94);border-color:rgba(114,231,217,.35);color:#d3f5ef;box-shadow:0 12px 40px rgba(0,10,25,.25)}
body.in-codex .location h2,body.in-codex .location p,body.in-codex .location .eyebrow,body.in-codex .location-icon,body.in-codex .place-button{color:#d3f5ef}
body.in-codex .place-button.selected{background:#37636d;color:#e4fff4;border-color:#66ded6}
body.in-codex #activityPanel,body.in-codex #companyBoard{display:none!important}
.codex-place svg{stroke:currentColor}
@media(max-height:600px) and (orientation:landscape){.place-switch{max-width:calc(100vw - 350px)}.place-button.codex-place{padding-left:7px;padding-right:7px}.codex-place svg{width:14px;height:14px}}
@media(max-width:760px) and (orientation:portrait){.place-switch{max-width:calc(100vw - 24px)}.place-button{padding-left:10px;padding-right:10px}.codex-place svg{display:none}}

/* Keep the two Codex vault silhouettes clear of the location HUD. */
body.in-codex .location{min-width:0;width:max-content;max-width:min(290px,calc(100vw - 28px));padding:8px 11px;gap:9px}
body.in-codex .location #locationDescription,body.in-codex .location .eyebrow{display:none}
body.in-codex .location h2{font-size:15px;line-height:1.25;margin:0}
body.in-codex .location-icon{width:30px;height:30px;min-width:30px;font-size:18px}
@media(max-height:600px) and (orientation:landscape){body.in-codex .location{max-width:230px;padding:4px 8px}body.in-codex .location h2{font-size:13px}}
