:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#f3f2e9;background:#111614;color-scheme:dark}
.walking.free-look #scene canvas{cursor:crosshair}.free-look .hint{display:block;max-width:100%;padding:8px 12px;border:1px solid #c7d8af40;border-radius:18px;background:#152219e8;color:#e0ead5;line-height:1.6;letter-spacing:.5px}.free-look .edition{display:none}
.home-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.7);pointer-events:none}.scene-surface{position:absolute;inset:0}.load-actions{display:flex;align-items:center;gap:12px;margin-top:24px}.load-actions label{font-size:12px;color:#b9c7ae}.load-actions select{font:inherit;font-size:14px;background:#253426;border:1px solid #a9bd9450;border-radius:10px;min-height:44px;padding:8px 12px;color:#eff5e7}.load-actions button{min-height:44px;border:1px solid #a9bd9450;font-size:13px}.touch-device .load-actions{margin-top:14px}.touch-device .load-actions select{font-size:16px}
.photo-trigger{position:fixed;right:max(20px,var(--office-safe-right));bottom:max(188px,calc(var(--office-safe-bottom) + 118px));z-index:3;display:flex;align-items:center;justify-content:center;gap:10px;width:176px;min-height:48px;background:#152019e6;border:1px solid #b3c1a547;backdrop-filter:blur(10px);font-size:12px}.photo-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.photo-trigger kbd{font:inherit;color:#acbf9e;border:1px solid #b3c1a54a;border-radius:4px;padding:1px 5px}
.photo-overlay{position:fixed;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;pointer-events:none;background:linear-gradient(#0b171ce0,transparent 25%,transparent 65%,#0b171ce6)}.photo-overlay button{pointer-events:auto}.photo-top{width:100%;display:flex;justify-content:space-between;align-items:center;padding:max(28px,var(--office-safe-top)) max(36px,var(--office-safe-right)) 0 max(36px,var(--office-safe-left));gap:20px}.photo-top p{font-size:9px;letter-spacing:3px;color:#d3ddc5;margin:0 0 9px}.photo-top h2{font-size:23px;letter-spacing:2px;font-weight:500;margin:0}.photo-top h2 span{font-size:12px;font-weight:400;color:#d0d4c9;margin-left:14px;letter-spacing:1px}.photo-top button{background:#16251bd9;border:1px solid #d0dfb94a;font-size:12px;min-height:44px}
.photo-viewfinder{position:absolute;left:7%;right:7%;top:19%;bottom:27%;pointer-events:none}.photo-viewfinder i{position:absolute;width:24px;height:24px;border:solid #f4f5e8b3}.photo-viewfinder i:nth-child(1){left:0;top:0;border-width:1px 0 0 1px}.photo-viewfinder i:nth-child(2){right:0;top:0;border-width:1px 1px 0 0}.photo-viewfinder i:nth-child(3){left:0;bottom:0;border-width:0 0 1px 1px}.photo-viewfinder i:nth-child(4){right:0;bottom:0;border-width:0 1px 1px 0}.photo-viewfinder>span{position:absolute;left:14px;bottom:12px;font-size:10px;letter-spacing:2px;color:#fffbe7cc;text-shadow:0 1px 5px #000}
.photo-controls{margin-top:auto;margin-bottom:58px;display:flex;flex-direction:column;align-items:center;gap:14px;pointer-events:auto}.photo-modes{display:flex;background:#18251cef;border:1px solid #b7c79f40;border-radius:32px;padding:4px;gap:4px}.photo-modes button{font-size:12px;padding:10px 22px;border-radius:24px;color:#bfcab5;min-height:42px}.photo-modes button[aria-pressed=true]{background:#e2ebce;color:#233729}.photo-shutter{border:2px solid #f6f3e9;border-radius:50%;width:70px;height:70px;padding:5px;background:transparent;box-shadow:0 3px 20px #0004}.photo-shutter span{display:block;width:100%;height:100%;margin:0;background:#f6f3e9;border-radius:50%;transition:transform .15s}.photo-shutter:hover{background:#fff2}.photo-shutter:active span{transform:scale(.9)}.photo-shutter-hint{font-size:10px;letter-spacing:2px;color:#dce4d2}.photo-shutter-hint kbd{font:inherit;opacity:.65;margin-left:5px;letter-spacing:0}.photo-status{position:absolute;bottom:max(12px,var(--office-safe-bottom));max-width:80%;margin:0;padding:7px 14px;border-radius:20px;background:#102017b8;color:#d0dac3;font-size:11px;line-height:1.6;text-align:center}
.photo-result{display:none;pointer-events:auto;flex:1;min-height:0;width:100%;padding:30px 24px 70px;flex-direction:column;align-items:center;justify-content:center;gap:24px}.photo-paper{min-height:0;max-width:100%;display:flex;filter:drop-shadow(0 18px 35px #0008);transform:rotate(-1.3deg);animation:photo-arrive .5s ease-out}.photo-paper img{display:block;max-width:100%;max-height:calc(var(--office-height) - 245px);width:auto;height:auto;object-fit:contain;user-select:auto;-webkit-touch-callout:default}.photo-result-actions{display:flex;gap:10px;flex-shrink:0}.photo-result-actions button{font-size:12px;background:#203326;border:1px solid #b7c79f40;min-height:44px}.photo-result-actions .primary{background:#e2ebce;color:#233729}.photo-overlay.has-photo{background:#0c1915ef;backdrop-filter:blur(8px)}.has-photo .photo-result{display:flex}.has-photo .photo-controls,.has-photo .photo-viewfinder{display:none}.shutter-flash:after{content:'';position:absolute;inset:0;background:#fff;animation:photo-flash .5s forwards;pointer-events:none}.photographing header,.photographing footer,.photographing .room-presence,.photographing .posture-hud,.photographing .photo-trigger,.photographing .crosshair{visibility:hidden}
@keyframes photo-arrive{from{opacity:0;transform:translateY(22px) rotate(1deg)}to{opacity:1;transform:translateY(0) rotate(-1.3deg)}}@keyframes photo-flash{from{opacity:.9}to{opacity:0}}
.touch-device .photo-trigger{width:148px;bottom:max(164px,calc(var(--office-safe-bottom) + 94px))}.touch-device .photo-trigger kbd,.touch-device .photo-shutter-hint{display:none}.touch-device .photo-top{padding:12px max(20px,var(--office-safe-right)) 0 max(20px,var(--office-safe-left))}.touch-device .photo-top p{font-size:8px;margin-bottom:4px;letter-spacing:2px}.touch-device .photo-top h2{font-size:18px}.touch-device .photo-top h2 span{font-size:10px}.touch-device .photo-top button{min-height:44px;padding:8px 12px}.touch-device .photo-controls{flex-direction:row;gap:24px;margin-bottom:max(42px,calc(var(--office-safe-bottom) + 34px))}.touch-device .photo-shutter{width:60px;height:60px}.touch-device .photo-viewfinder{top:24%;bottom:32%}.touch-device .photo-viewfinder>span{font-size:8px}.touch-device .photo-status{font-size:10px;bottom:max(6px,var(--office-safe-bottom));max-width:92%}.touch-device .photo-result{flex-direction:row;gap:28px;padding:12px 24px 44px}.touch-device .photo-paper img{max-height:calc(var(--office-height) - 120px);max-width:calc(var(--office-width) - 240px)}.touch-device .photo-result-actions{flex-direction:column;gap:8px}.touch-device .photo-result-actions button{min-width:128px}.touch-device .photo-modes button{padding:8px 18px}
@media(prefers-reduced-motion:reduce){.photo-paper,.shutter-flash:after{animation:none}.shutter-flash:after{display:none}}
*{box-sizing:border-box}body{margin:0;overflow:hidden}[hidden]{display:none!important}
#scene{position:fixed;inset:0;background:radial-gradient(ellipse at 50% 45%,#28332e,#101512 78%)}
header{position:fixed;inset:0 0 auto;padding:23px 28px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;background:linear-gradient(#101512a6,transparent)}
.brand{display:flex;align-items:center;gap:11px}.mark{border:1px solid #cbd6bc70;border-radius:9px;padding:7px;font-size:19px;color:#d2e4b6}
h1{font-size:16px;letter-spacing:2px;margin:0;font-weight:500}
button{font:inherit;color:#eef3e5;border:0;cursor:pointer;border-radius:10px;padding:12px 17px;background:transparent;white-space:nowrap;transition:background .2s}
button:hover{background:#dae8b727;color:#e0edc9}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #d9edb5;outline-offset:3px}button:disabled{opacity:.4;cursor:wait}button span{font-size:12px;margin-left:6px}
.pause-trigger{pointer-events:auto;border:1px solid #d5e2c438;background:#162018b3;padding:9px 14px;backdrop-filter:blur(10px)}
.eyebrow{font-size:10px;letter-spacing:3px;color:#bfd1ab}
.loading{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#111614f5;z-index:5;transition:opacity .6s}
.loading.done{opacity:0;pointer-events:none}.loading h2{font-weight:400;font-size:28px;letter-spacing:4px;margin:22px 0 10px}.loading p{color:#a5b19e;font-size:12px;margin-bottom:28px}.loading small{margin-top:14px;color:#bfd1ab;font-size:10px;letter-spacing:2px}.track{width:250px;height:2px;background:#33402e}#bar{width:0;height:100%;background:#c7e0a3;transition:width .3s}#retry{margin-top:20px;border:1px solid #59694e}
.walk-intro{position:fixed;left:50%;bottom:48px;transform:translateX(-50%);width:max-content;max-width:calc(var(--office-vw) * 95);text-align:center}
.walk-intro button,.primary{background:#e2edcf;color:#172211;border:1px solid #f2f8e0a0;font-weight:500}
.walk-intro button{min-width:182px;padding:15px 25px;border-radius:30px;box-shadow:0 5px 26px #0005;font-size:15px}
.walk-intro button:hover,.primary:hover{background:#edf5e0;color:#172211}.walk-intro p{margin:13px 0 0;padding:6px 12px;background:#111b14b3;border-radius:14px;font-size:11px;color:#edf3e6;text-shadow:0 1px 4px #000}
.crosshair{position:fixed;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#fff9;box-shadow:0 0 0 1px #0008;pointer-events:none;display:none}.walking .crosshair{display:block}.walking #scene canvas{cursor:none}canvas:focus{outline:none}
.pause-overlay{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:16px;background:#07100c80;backdrop-filter:blur(5px)}
.pause-menu{width:min(420px,calc(calc(var(--office-vw) * 100) - 32px));max-height:calc(calc(var(--office-vh) * 100) - 32px);overflow:auto;margin:auto;padding:30px;color:#f3f2e9;background:#18221cf5;border:1px solid #a2b49345;border-radius:22px;box-shadow:0 24px 100px #0008}
.pause-menu .eyebrow{margin:0 0 10px}.pause-menu h2{font-size:28px;letter-spacing:2px;font-weight:450;margin:0 0 8px}.menu-hint{color:#b5c0ad;font-size:12px;line-height:1.8;margin:0 0 24px;min-height:22px}
.primary{width:100%;padding:14px;margin-bottom:20px}.menu-settings{border-top:1px solid #b3c1a526;border-bottom:1px solid #b3c1a526;padding:10px 0;margin-bottom:16px}
.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;color:#dde5d4;font-size:13px}
.setting select{font:inherit;min-width:135px;padding:9px 12px;background:#253326;color:#eef3e5;border:1px solid #b3c1a540;border-radius:9px}.setting input{width:135px;accent-color:#c2d9a4;cursor:pointer}
.menu-actions{display:grid;grid-template-columns:1fr;gap:10px}.menu-actions button{background:#afc49910;border:1px solid #b3c1a52c}.menu-actions button:hover{background:#afc49926}.home-button{width:100%;margin-top:18px;border-top:1px solid #b3c1a526;border-radius:0;padding:18px 0 0;color:#b5c0ad;font-size:12px}.home-button:hover{background:transparent;color:#eef3e5}
footer{position:fixed;bottom:22px;left:28px;right:28px;display:flex;justify-content:space-between;color:#b5bdb1;font-size:10px;letter-spacing:1px;pointer-events:none}footer b{font-weight:400;color:#6b8067;margin:0 10px}.edition{font-size:9px;letter-spacing:2px}.mobile-hint,.touch-pad{display:none}body:not(.walking) footer,body:not(.walking) .touch-pad{display:none}
@media(max-width:700px){header{padding:19px 20px}.walk-intro{bottom:35px}.walk-intro button{padding:13px 24px}.walk-intro p{font-size:10px}.loading h2{font-size:21px;letter-spacing:2px}.pause-menu{padding:24px}.pause-menu h2{font-size:25px}.hint,.edition{display:none}.mobile-hint{display:block;font-size:10px}footer{left:20px;right:20px}}
@media(pointer:coarse){.touch-pad{position:fixed;display:grid;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,44px);gap:4px;left:20px;bottom:75px;touch-action:none}.touch-pad button{background:#172319ba;border:1px solid #bdd09a60;padding:10px;user-select:none;touch-action:none}.touch-pad button:first-child{grid-column:2}.touch-pad button:nth-child(2){grid-column:1;grid-row:2}.touch-pad button:nth-child(3){grid-column:2;grid-row:2}.touch-pad button:nth-child(4){grid-column:3;grid-row:2}.walk-intro{bottom:45px}}
.download-button{width:100%;border:1px solid #b3c1a52c;background:#afc49910;font-size:12px;padding:10px}.cache-status{font-size:11px;color:#b5c0ad;line-height:1.7;min-height:19px;margin:10px 0 18px}
.download-button+.download-button{margin-top:8px}.quality-note{font-size:10px;color:#96a68d;margin-bottom:8px}
.download-button[data-downloaded="true"]:disabled{opacity:1;cursor:default;color:#b9cda5;border-color:#b3c1a526;background:#a6be8c0a}
.lobby{width:360px;padding:24px;border:1px solid #b6cba34d;border-radius:20px;background:#162119ed;backdrop-filter:blur(16px)}.lobby h2{margin:0 0 20px;font-size:20px;font-weight:450;letter-spacing:1px}.lobby label{display:block;text-align:left;color:#b9c7ae;font-size:12px;margin:0 0 8px}.lobby select{width:100%;padding:13px;border:1px solid #a9bd9450;border-radius:10px;background:#253426;color:#eff5e7;font:inherit;font-size:14px;margin-bottom:16px}.lobby button{width:100%;border-radius:10px}.lobby p{background:transparent;margin:10px 0 0;padding:0;font-size:10px;line-height:1.7}.room-header{display:flex;align-items:center;gap:14px;font-size:11px;color:#e2edcf}.room-presence{position:fixed;top:86px;right:28px;max-width:220px;padding:12px 14px;border-radius:12px;border:1px solid #a8bc9050;background:#152019d9;pointer-events:none;font-size:11px}.room-presence>span{display:block}.room-presence>span:first-child{font-size:14px;color:#e2edcf;margin-bottom:5px}#connectionStatus{color:#a9ba9c;font-size:10px}#onlineNames{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}#onlineNames span{border-left:3px solid var(--person-color);padding-left:5px;font-size:10px;color:#e1e8d9}@media(max-width:700px){.lobby{width:calc(calc(var(--office-vw) * 100) - 40px);bottom:35px;padding:20px}.lobby h2{font-size:18px}.room-presence{right:20px;top:78px;max-width:170px}}
.posture-preview{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid #b3c1a52c;border-radius:12px;margin:0 0 16px;background:#07100b40}.posture-preview svg{flex:0 0 100px;width:100px;height:125px}.posture-preview>div{flex:1;min-width:0}.posture-preview p{color:#aebfa1;font-size:11px;line-height:1.7;margin:0 0 8px}.posture-preview #postureStatus{color:#e0edcf;font-size:12px}.posture-preview button{padding:9px;font-size:11px;border:1px solid #b3c1a53b}
#onlineNames .offline{color:#a3aaad}
.posture-hud{position:fixed;right:max(20px,var(--office-safe-right));bottom:max(70px,var(--office-safe-bottom));z-index:3;display:flex;align-items:center;gap:6px;width:176px;padding:8px 10px;background:#152019e6;border:1px solid #b3c1a547;border-radius:14px;backdrop-filter:blur(10px);text-align:left;white-space:normal}.posture-hud svg{width:62px;height:82px;flex-shrink:0;pointer-events:none}.posture-hud>span{margin:0;pointer-events:none}.posture-hud small{display:block;font-size:10px;color:#acbf9e;margin-bottom:8px}.posture-hud strong{font-size:12px;font-weight:500;color:#e2edcf;line-height:1.5}.posture-hud kbd{display:inline-grid;place-items:center;font:inherit;border:1px solid #b3c1a55c;border-radius:4px;min-width:18px;height:18px;margin-left:4px;color:#e2edcf}
.posture-overlay{position:fixed;inset:0;z-index:9;display:grid;place-items:center;padding:16px;background:#08120c66;backdrop-filter:blur(3px)}.posture-panel{width:min(430px,calc(var(--office-width) - 32px));max-height:calc(var(--office-height) - 32px);overflow:auto;overscroll-behavior:contain;background:#18251cf7;border:1px solid #b3c1a54a;border-radius:20px;padding:20px 24px;box-shadow:0 20px 80px #0006}.posture-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.posture-heading h2{font-size:22px;font-weight:500;letter-spacing:1px;margin:0}.posture-heading button{min-height:44px;padding:10px;font-size:11px}.posture-panel .posture-preview{margin:10px 0 12px}.posture-hint{font-size:11px;line-height:1.6;color:#a5b89a;margin:0}
.touch-device .posture-hud{width:148px;padding:6px 8px}.touch-device .posture-hud svg{width:48px;height:68px}.touch-device .posture-hud small{font-size:9px;margin-bottom:4px}.touch-device .posture-hud kbd{display:none}.touch-device .posture-hud strong{font-size:11px}.touch-device .posture-overlay{padding:12px max(12px,var(--office-safe-right)) 12px max(12px,var(--office-safe-left))}.touch-device .posture-panel{padding:12px 20px;max-height:calc(var(--office-height) - 24px)}.touch-device .posture-panel select{font-size:16px;min-height:44px}.touch-device .posture-panel button{min-height:44px}.touch-device .posture-panel .setting{padding:6px 0}.touch-device .posture-panel .posture-preview{padding:6px;margin:6px 0 8px}.touch-device .posture-panel .posture-preview svg{width:80px;flex-basis:80px;height:100px}.touch-device .posture-heading h2{font-size:20px}
.lobby #lobbyStatus:empty{display:none}
/* Chat pauses movement while retaining the room connection. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Conversation panel: reading and writing share one column; speech is a quiet side rail. */
.chat-overlay{position:fixed;inset:0;z-index:8;background:#07130c77;display:flex;align-items:center;justify-content:center;padding:24px max(24px,var(--office-safe-left));backdrop-filter:blur(4px)}
.chat-panel{width:min(820px,calc(var(--office-width) - 48px));height:min(640px,calc(var(--office-height) - 64px));display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #bdcdb54d;border-radius:24px;background:#17241dfc;box-shadow:0 28px 100px #0008;color:#f1f4eb}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:22px 24px;border-bottom:1px solid #d2e1c818}.chat-title{display:flex;align-items:center;gap:12px;min-width:0}.chat-title-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#c7dfb31a;color:#c7dfb3;flex-shrink:0}.chat-title-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.chat-heading h2{font-size:21px;font-weight:600;letter-spacing:.5px;margin:0}.chat-heading p{font-size:12px;color:#a5b7a5;margin:5px 0 0}.chat-heading-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.chat-heading button{min-height:44px;padding:9px 12px;font-size:12px;border:1px solid #d2e1c829;border-radius:10px;background:#eff5e707}.chat-heading button span{margin-left:8px;font-size:20px;font-weight:300;vertical-align:-1px}.chat-connection{font-size:11px;color:#a4b79e;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.chat-connection:before{content:'';width:6px;height:6px;border-radius:50%;background:#d2ab80}.chat-connection[data-state=online]:before{background:#bddd9c}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;flex:1;min-height:0}.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 22px;background:#101c152e}.chat-history-tools{display:flex;justify-content:center;gap:8px;flex-shrink:0}.chat-older{font-size:11px;color:#c8d9b6;padding:7px 12px;margin-top:10px;min-height:34px;border:1px solid #d2e1c81a;border-radius:20px;background:#d2e1c806}.chat-history{position:relative;flex:1;min-height:0}.chat-messages{height:100%;overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:0;padding:20px 3px 16px 0;scrollbar-width:thin;scrollbar-color:#8d9e8966 transparent}.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px;padding:0;border:0;background:none}.chat-message>div{display:flex;align-items:center;gap:10px;max-width:94%;margin:0 3px 6px}.chat-message strong{color:#b9cbb4;font-size:12px;font-weight:500}.chat-message time{color:#839886;font-size:10px;white-space:nowrap}.chat-message p{max-width:94%;margin:0;padding:10px 13px;border:1px solid #d2e1c81a;border-radius:3px 14px 14px;background:#2c3c31;color:#f1f4eb;line-height:1.75;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.own{align-items:flex-end}.chat-message.own>div{flex-direction:row-reverse}.chat-message.own strong{color:#c4dbb2}.chat-message.own p{border-radius:14px 3px 14px 14px;background:#c8dcb5;color:#1a2d20;border-color:#e1edcd30}
.chat-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;pointer-events:none}.chat-empty svg{width:42px;height:42px;fill:none;stroke:#a8bd98;stroke-width:1.5;opacity:.7;margin-bottom:18px}.chat-empty strong{font-size:15px;font-weight:500;color:#cad6c1}.chat-empty p{font-size:12px;line-height:1.8;color:#8fa18c;max-width:240px;margin:10px 0 0}.chat-messages:not(:empty)+.chat-empty{display:none}
.chat-sidebar{display:flex;flex-direction:column;align-items:stretch;min-height:0;overflow:auto;padding:24px 18px;border-left:1px solid #d2e1c818;background:#d2e1c805}.chat-self{display:flex;align-items:center;gap:7px;color:#d8e5ce;font-size:12px}.chat-self-dot{width:7px;height:7px;border-radius:50%;background:#c7dcaf}.chat-self small{color:#879d85;font-size:10px;margin-left:auto}.chat-sidebar h3{font-size:12px;font-weight:500;color:#a9bca1;margin:26px 0 12px}.own-speech{position:relative;background:#f4f6e9;color:#203826;padding:13px 12px;border-radius:12px 12px 12px 3px;min-height:56px;flex-shrink:0}.own-speech:after{content:'';position:absolute;left:0;bottom:-7px;border-top:9px solid #f4f6e9;border-right:10px solid transparent}.own-speech p{font-size:13px;line-height:1.75;margin:0;max-height:140px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}.own-speech p[data-empty=true]{color:#778374;font-size:12px}.chat-speech-hint,.chat-clear-hint{font-size:11px;line-height:1.8;color:#94a88f;margin:18px 0 14px}.chat-sidebar #clearSpeech{width:100%;min-height:40px;border:1px solid #b3c1a53a;border-radius:10px;padding:9px 10px;font-size:12px;color:#d7e3cb}.chat-sidebar #clearSpeech:disabled{opacity:.35}.chat-clear-hint{font-size:10px;margin:9px 0 18px;text-align:center;color:#82977f}.chat-return-hint{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;padding-top:18px;color:#8da186;font-size:11px}.chat-return-hint kbd{font:inherit;border:1px solid #d2e1c82b;border-radius:5px;padding:3px 6px}
.chat-form{flex-shrink:0;margin:0;padding:15px 0 12px;border-top:1px solid #d2e1c81f}.chat-input-row{display:flex;gap:8px;align-items:center;padding:5px;border:1px solid #c4d6b542;border-radius:14px;background:#0d1812}.chat-input-row:focus-within{border-color:#c4d6b5b0;box-shadow:0 0 0 3px #c4d6b50c}.chat-form input{flex:1;min-width:0;border:0;outline:0;border-radius:8px;background:transparent;color:#eff5e7;padding:9px 10px;font:inherit;font-size:16px;min-height:44px}.chat-form input::placeholder{color:#7c947c}.chat-form .primary{width:auto;min-width:80px;min-height:44px;margin:0;padding:10px 16px;border-radius:10px;font-size:13px;white-space:nowrap}.chat-form .primary:disabled{opacity:.35;cursor:default}.chat-compose-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:8px}.chat-status{margin:0;color:#91a88a;font-size:11px;min-height:16px;line-height:1.5}.chat-compose-meta output{flex-shrink:0;color:#839a7f;font-size:10px;font-variant-numeric:tabular-nums}
.touch-device .chat-overlay{padding:max(8px,var(--office-safe-top)) max(12px,var(--office-safe-right)) max(8px,var(--office-safe-bottom)) max(12px,var(--office-safe-left));align-items:stretch;justify-content:center}.touch-device .chat-panel{height:100%;max-height:100%;width:min(820px,100%);border-radius:16px}.touch-device .chat-heading{padding:10px 16px;gap:10px}.touch-device .chat-title{gap:9px}.touch-device .chat-title-icon{width:32px;height:32px;border-radius:10px}.touch-device .chat-title-icon svg{width:19px;height:19px}.touch-device .chat-heading h2{font-size:17px}.touch-device .chat-heading p{font-size:10px;margin-top:3px}.touch-device .chat-heading-actions{gap:12px}.touch-device .chat-heading button{font-size:12px;min-height:44px}.touch-device .chat-layout{grid-template-columns:minmax(0,1fr) 190px}.touch-device .chat-conversation{padding:0 14px}.touch-device .chat-sidebar{padding:16px 14px}.touch-device .chat-sidebar h3{margin:16px 0 10px}.touch-device .own-speech p{max-height:80px}.touch-device .chat-return-hint{display:none}.touch-device .chat-messages{padding-top:14px}.touch-device .chat-message{margin-bottom:13px}.touch-device .chat-form{padding:9px 0 8px}.touch-device .chat-input-row{padding:3px}.touch-device .chat-compose-meta{margin-top:5px}.touch-device .chat-speech-hint{font-size:10px;margin:13px 0}.touch-device #chatButton{font-size:11px;min-height:44px;padding:8px 10px}
.touch-device.mobile-narrow .chat-layout{grid-template-columns:minmax(0,1fr) 160px}.touch-device.mobile-narrow .chat-connection{display:none}.touch-device.mobile-narrow .chat-conversation{padding:0 10px}.touch-device.mobile-narrow .chat-sidebar{padding:14px 10px}.touch-device.mobile-short .chat-heading{padding:6px 12px}.touch-device.mobile-short .chat-heading p{display:none}.touch-device.mobile-short .chat-sidebar h3{margin-top:12px}.touch-device.mobile-short .chat-clear-hint{display:none}.touch-device.mobile-short .chat-speech-hint{margin:12px 0 9px}.touch-device.mobile-short .chat-message p{padding:8px 11px}

/* Mobile landscape controls and safe-area layout. */
html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
header{padding-top:max(16px,var(--office-safe-top));padding-left:max(20px,var(--office-safe-left));padding-right:max(20px,var(--office-safe-right))}
.touch-stick,.touch-look-hint{display:none}
.touch-device .touch-stick{position:fixed;display:block;bottom:max(28px,var(--office-safe-bottom));left:max(32px,calc(var(--office-safe-left) + 12px));width:128px;height:128px;border:1px solid #e0edcc55;border-radius:50%;background:#18261c55;touch-action:none;user-select:none;-webkit-user-select:none;z-index:2}.stick-ring{position:absolute;inset:20px;border:1px solid #d7e7c333;border-radius:50%;pointer-events:none}.stick-thumb{position:absolute;left:38px;top:38px;width:50px;height:50px;border-radius:50%;background:#d0e2b3bb;border:1px solid #f0f6e2a0;box-shadow:0 2px 16px #0003;pointer-events:none}.touch-stick>span{position:absolute;bottom:-20px;width:100%;text-align:center;font-size:10px;color:#e1ecd2;pointer-events:none}.touch-stick.pressed{background:#17271c88;border-color:#e1efc799}.touch-stick.pressed .stick-thumb{background:#dcebbc}
.touch-device .touch-look-hint{display:block;position:fixed;right:max(38px,calc(var(--office-safe-right) + 20px));bottom:max(28px,var(--office-safe-bottom));padding:9px 14px;border:1px solid #d9e7c32a;border-radius:18px;background:#17231b55;font-size:11px;color:#e1ecd2;pointer-events:none}
body:not(.walking) .touch-stick,body:not(.walking) .touch-look-hint{display:none!important}
.touch-device .hint,.touch-device .edition,.touch-device footer{display:none}.touch-device .mobile-hint{display:block}.touch-device .pause-trigger{min-height:44px;min-width:74px}.touch-device .room-header{gap:10px}.touch-device .room-presence{top:70px;right:max(20px,var(--office-safe-right));max-width:160px;padding:9px 11px}.touch-device #onlineNames{display:none}.touch-device .room-presence>span:first-child{font-size:12px}.touch-device #connectionStatus{font-size:10px}
.touch-device .lobby select,.touch-device .setting select{font-size:16px;min-height:44px}.touch-device .lobby{bottom:max(20px,var(--office-safe-bottom));max-height:calc(calc(var(--office-vh) * 100) - 90px);overflow-y:auto}.touch-device .pause-overlay{padding:12px max(12px,var(--office-safe-right)) 12px max(12px,var(--office-safe-left))}.touch-device .pause-menu{padding:20px 24px;max-height:calc(calc(var(--office-vh) * 100) - max(24px,var(--office-safe-bottom)));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.touch-device .pause-menu button{min-height:44px}.touch-device .setting input{height:44px;width:150px}.touch-device .setting{padding:8px 0}.touch-device .home-button{padding-bottom:12px}.touch-device .loading p{text-align:center;padding:0 24px;line-height:1.8;max-width:calc(var(--office-vw) * 90)}
.touch-device.mobile-compact header{padding-top:max(10px,var(--office-safe-top));padding-bottom:10px}.touch-device.mobile-compact .mark{font-size:15px;padding:5px}.touch-device.mobile-compact h1{font-size:14px}.touch-device.mobile-compact .lobby{width:340px;padding:16px 20px;bottom:max(12px,var(--office-safe-bottom));max-height:calc(calc(var(--office-vh) * 100) - 72px)}.touch-device.mobile-compact .lobby h2{font-size:18px;margin:0 0 10px}.touch-device.mobile-compact .lobby label{font-size:11px;margin-bottom:6px}.touch-device.mobile-compact .lobby select{padding:9px 12px;margin-bottom:10px}.touch-device.mobile-compact .lobby button{padding:10px 20px;min-height:44px}.touch-device.mobile-compact .lobby p{font-size:10px;margin-top:6px}.touch-device.mobile-compact .touch-stick{width:116px;height:116px;bottom:max(24px,var(--office-safe-bottom));left:max(28px,calc(var(--office-safe-left) + 12px))}.touch-device.mobile-compact .stick-thumb{left:32px;top:32px}.touch-device.mobile-compact .room-presence{top:65px}.touch-device.mobile-compact .pause-menu{width:min(440px,calc(calc(var(--office-vw) * 100) - 48px));padding:18px 24px}.touch-device.mobile-compact .pause-menu h2{font-size:22px}.touch-device.mobile-compact .pause-menu .menu-hint{margin-bottom:12px}.touch-device.mobile-compact .pause-menu .primary{margin-bottom:10px}.touch-device.mobile-compact .menu-settings{margin-bottom:10px}

#officeViewport{--office-width:100vw;--office-height:100dvh;--office-vw:1vw;--office-vh:1dvh;--office-safe-top:env(safe-area-inset-top,0px);--office-safe-right:env(safe-area-inset-right,0px);--office-safe-bottom:env(safe-area-inset-bottom,0px);--office-safe-left:env(safe-area-inset-left,0px);position:fixed;left:var(--office-offset-left,0px);top:var(--office-offset-top,0px);width:var(--office-width);height:var(--office-height);transform-origin:0 0;transform:var(--office-transform,translateZ(0));overflow:hidden;contain:layout paint}

/* Touch controls share the logical landscape coordinates used by the scene. */
.photo-trigger,.posture-hud{pointer-events:auto}
.posture-choices,.touch-setting,.touch-only,.touch-move-zone{display:none}
.touch-device .desktop-only{display:none}.touch-device .touch-only{display:inline}
.touch-device button{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.touch-device header{z-index:4;padding:max(10px,var(--office-safe-top)) max(14px,var(--office-safe-right)) 10px max(14px,var(--office-safe-left));gap:12px;min-height:64px}
.touch-device .brand{gap:8px;flex-shrink:0}.touch-device .brand h1{font-size:14px;letter-spacing:1px}
.touch-device .room-header{flex-wrap:nowrap;gap:8px;min-width:0}
.touch-device .pause-trigger{min-height:44px;min-width:54px;padding:8px 10px}
.touch-device #chatButton{min-width:48px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.touch-device .photo-trigger{position:static;width:auto;min-width:64px;height:44px;min-height:44px;padding:8px 10px;gap:5px;flex-shrink:0}
.touch-device .photo-trigger svg{width:18px;height:18px}
.touch-device .posture-hud{position:static;width:108px;height:44px;padding:2px 8px;gap:3px;flex-shrink:0;border-radius:10px}
.touch-device .posture-hud svg{width:29px;height:38px}
.touch-device .posture-hud small{font-size:8px;margin-bottom:2px}.touch-device .posture-hud strong{font-size:10px;line-height:1.3}
.touch-device .posture-hud,.touch-device .photo-trigger,.touch-device .pause-trigger{backdrop-filter:none;background:#16241deb}
.touch-device .room-presence{z-index:3;left:max(14px,var(--office-safe-left));right:auto;top:max(66px,calc(var(--office-safe-top) + 56px));display:flex;align-items:center;gap:8px;max-width:260px;padding:5px 9px;border:0;border-radius:20px;background:#14221bc9}
.touch-device .room-presence>span:first-child{margin:0;font-size:11px}.touch-device #connectionStatus{font-size:9px}
.touch-device.mobile-narrow .mark,.touch-device.mobile-narrow #onlineCount{display:none}
.touch-device.mobile-narrow .brand h1{font-size:13px}
.touch-device.mobile-narrow .room-header{gap:6px}
.touch-device .touch-move-zone{display:block;position:fixed;left:0;top:76px;bottom:0;width:44%;z-index:2;touch-action:none;-webkit-user-select:none;user-select:none}
.touch-device .touch-move-zone .touch-stick{pointer-events:none;width:112px;height:112px;left:max(28px,calc(var(--office-safe-left) + 12px));bottom:max(24px,calc(var(--office-safe-bottom) + 10px))}
.touch-device .touch-move-zone .stick-thumb{width:44px;height:44px;left:33px;top:33px}
.touch-device .touch-move-zone .touch-stick.pressed{left:var(--stick-x);top:var(--stick-y);bottom:auto;transform:translate(-50%,-50%)}
body:not(.walking) .touch-move-zone{display:none!important}
.touch-device .touch-look-hint{right:max(30px,calc(var(--office-safe-right) + 12px));bottom:max(24px,calc(var(--office-safe-bottom) + 10px));background:#14221b8c;border:0;font-size:10px;padding:7px 12px}

/* Short, wide screens get direct choices and two-column settings. */
.touch-device .lobby,.touch-device.mobile-compact .lobby{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px;width:min(600px,calc(var(--office-width) - 32px));padding:18px 22px;bottom:max(22px,var(--office-safe-bottom));max-height:calc(var(--office-height) - 84px)}
.touch-device .lobby h2,.touch-device.mobile-compact .lobby h2{grid-column:1/-1;font-size:20px;margin:0 0 4px}
.touch-device .lobby label,.touch-device.mobile-compact .lobby label{font-size:11px;margin:0}
.touch-device .lobby label[for=person]{grid-column:1;grid-row:2}.touch-device #person{grid-column:1;grid-row:3}
.touch-device .lobby label[for=homeQuality]{grid-column:2;grid-row:2}.touch-device #homeQuality{grid-column:2;grid-row:3}
.touch-device .lobby select,.touch-device.mobile-compact .lobby select{margin:0;min-height:44px;padding:10px;font-size:16px}
.touch-device .lobby #enter{grid-column:1/-1;grid-row:4;margin:2px 0 0;min-height:44px;padding:10px}
.touch-device .lobby p,.touch-device.mobile-compact .lobby p{grid-column:1/-1;margin:0;font-size:10px}
.touch-device .pause-menu,.touch-device.mobile-compact .pause-menu{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;width:min(760px,calc(var(--office-width) - 24px));max-height:calc(var(--office-height) - 24px);padding:14px 18px}
.touch-device .pause-menu>.eyebrow,.touch-device .pause-menu>.menu-hint{display:none}
.touch-device .pause-menu h2{grid-column:1;grid-row:1;font-size:21px;margin:0;align-self:center}
.touch-device .pause-menu>#resume{grid-column:2;grid-row:1;margin:0;width:144px;min-height:44px;padding:10px;position:sticky;top:0;z-index:1}
.touch-device .menu-columns{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.touch-device .menu-settings{border:0;padding:0;margin:0}
.touch-device .setting{min-height:48px;padding:2px 0;gap:10px;font-size:12px}
.touch-device .setting select{min-width:128px;max-width:60%;padding:8px 10px}
.touch-device .setting input{width:128px;min-width:0;height:44px}
.touch-device .touch-setting{display:flex}
.sensitivity-control{display:flex;align-items:center;gap:5px;margin-left:0;font-size:10px}
.setting.desktop-only .sensitivity-control{gap:8px}.setting.desktop-only .sensitivity-control input{width:104px}.setting.desktop-only .sensitivity-control output{font-size:12px;min-width:36px}
.touch-device .sensitivity-control input{width:92px}.sensitivity-control output{min-width:31px;font-size:10px;text-align:right}
.touch-device .menu-downloads{border-left:1px solid #b3c1a526;padding-left:18px;min-width:0}
.touch-device .download-button{min-height:44px;font-size:10px;white-space:normal;padding:8px 10px}
.touch-device .cache-status{font-size:10px;line-height:1.5;margin:8px 0 0;min-height:0}
.touch-device .quality-note{font-size:9px;color:#9cae91}
.touch-device .menu-footer{grid-column:1/-1;display:grid;grid-template-columns:2fr 1fr;gap:10px}
.touch-device .menu-actions{gap:10px}.touch-device .menu-actions button{font-size:11px;padding:8px}
.touch-device .home-button{margin:0;border:1px solid #b3c1a52c;border-radius:10px;padding:8px;font-size:11px;min-height:44px}
.touch-device .posture-panel{width:min(560px,calc(var(--office-width) - 24px));padding:12px 18px}
.touch-device .posture-panel>.setting{display:none}
.touch-device .posture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.pose-choice{display:flex;align-items:center;justify-content:center;gap:4px;padding:6px;border:1px solid #b3c1a536;background:#afc49909;min-height:64px;white-space:normal}
.pose-choice svg{width:36px;height:46px;flex-shrink:0;pointer-events:none}.pose-choice span{font-size:11px;margin:0;line-height:1.5;pointer-events:none}
.pose-choice[aria-pressed=true]{border-color:#c2d9a4;background:#c2d9a424;color:#e8f3da}
.touch-device .posture-preview>svg{display:none}
.touch-device .posture-preview{padding:8px 10px;margin:8px 0}
.touch-device .posture-preview>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
.touch-device .posture-preview #postureStatus{margin:0;font-size:11px}.touch-device .posture-preview p:not(#postureStatus){display:none}
.touch-device .posture-preview button{font-size:10px;padding:8px;min-height:44px}
.touch-device .posture-heading h2{font-size:19px}.touch-device .posture-hint{font-size:10px}

/* Keep the shutter under the right thumb and the scene clear in landscape. */
.touch-device .photo-top{padding:max(10px,var(--office-safe-top)) max(16px,var(--office-safe-right)) 0 max(16px,var(--office-safe-left))}
.touch-device .photo-top p,.touch-device .photo-top h2 span,.touch-device .photo-viewfinder>span{display:none}
.touch-device .photo-top h2{font-size:17px}.touch-device .photo-top button{font-size:11px}
.touch-device .photo-controls{position:absolute;right:max(16px,var(--office-safe-right));top:50%;transform:translateY(-50%);margin:0;flex-direction:column;gap:14px;width:104px}
.touch-device .photo-modes{flex-direction:column;border-radius:16px;padding:4px;gap:4px;width:104px}
.touch-device .photo-modes button{min-height:44px;padding:8px 10px;font-size:11px;border-radius:12px}
.touch-device .photo-shutter{width:64px;height:64px}
.touch-device .photo-viewfinder{left:22px;right:142px;top:70px;bottom:48px}
.touch-device .photo-status{left:16px;right:136px;bottom:max(10px,var(--office-safe-bottom));max-width:none;font-size:10px}
.touch-device .photo-result{gap:18px;padding:10px 18px 42px}
.touch-device .photo-paper img{max-width:calc(var(--office-width) - 200px);max-height:calc(var(--office-height) - 110px)}
.touch-device .photo-result-actions button{min-width:112px;min-height:44px;font-size:11px}
.touch-device.chatting header,.touch-device.chatting .room-presence{visibility:hidden}
.touch-device.keyboard-open .chat-overlay{inset:0 auto auto 0;width:var(--office-visible-width);height:var(--office-visible-height)}
.touch-device.keyboard-open .chat-panel{width:min(820px,100%);min-height:0}.touch-device.keyboard-open .chat-layout{grid-template-columns:minmax(0,1fr)}.touch-device.keyboard-open .chat-sidebar,.touch-device.keyboard-open .chat-heading p,.touch-device.keyboard-open .chat-title-icon,.touch-device.keyboard-open .chat-connection{display:none}.touch-device.keyboard-open .chat-heading{padding:4px 12px}.touch-device.keyboard-open .chat-heading h2{font-size:15px}.touch-device.keyboard-open .chat-history-tools button{margin-top:4px;min-height:28px;padding:4px 10px}.touch-device.keyboard-open .chat-messages{padding:8px 0}.touch-device.keyboard-open .chat-form{padding:5px 0}.touch-device.keyboard-open .chat-input-row{padding:2px}.touch-device.keyboard-open .chat-compose-meta{margin-top:3px}.touch-device.keyboard-open .chat-status{display:block;font-size:10px}

.touch-device.mobile-short .pause-overlay{padding:8px max(8px,var(--office-safe-right)) 8px max(8px,var(--office-safe-left))}
.touch-device.mobile-short .pause-menu{max-height:calc(var(--office-height) - 16px);gap:8px 14px;padding:10px 14px}
.touch-device.mobile-short .setting{min-height:44px;padding:0}
.touch-device.mobile-short .menu-settings{margin:0}
.touch-device.mobile-short .quality-note{display:none}
.game-select-trigger{display:none}
.touch-device select[data-game-select]{display:none!important}
.touch-device .game-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;min-width:0;font-size:16px;text-align:left;color:#eff5e7;background:#253426;border:1px solid #a9bd9450;border-radius:10px;padding:9px 12px}
.game-select-trigger:after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex-shrink:0;margin:0 3px 4px}
.touch-device .lobby [data-select-for=person]{grid-column:1;grid-row:3}.touch-device .lobby [data-select-for=homeQuality]{grid-column:2;grid-row:3}
.touch-device .setting .game-select-trigger{min-width:128px;max-width:60%;font-size:15px}
.touch-device .load-actions .game-select-trigger{min-width:164px}
.game-select-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:max(12px,var(--office-safe-top)) max(12px,var(--office-safe-right)) max(12px,var(--office-safe-bottom)) max(12px,var(--office-safe-left));background:#07100cb8;backdrop-filter:blur(5px)}
.game-select-panel{width:min(620px,100%);max-height:calc(var(--office-height) - 24px);overflow:auto;overscroll-behavior:contain;padding:16px 20px;border:1px solid #b3c1a54a;border-radius:18px;background:#18251c;box-shadow:0 20px 70px #0006}
.game-select-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.game-select-heading h2{font-size:18px;font-weight:500;margin:0}.game-select-heading button{min-height:44px;font-size:12px;padding:8px 14px;border:1px solid #b3c1a533}
.game-select-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.game-select-options.many-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-select-options button{position:relative;min-height:52px;padding:10px 20px 10px 10px;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.5;text-align:center;background:#afc49909;border:1px solid #b3c1a536}
.game-select-options button[aria-selected=true]{background:#c2d9a424;border-color:#c2d9a4;color:#e8f3da}
.game-select-options button[aria-selected=true]:after{content:'✓';position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:12px;color:#c2d9a4}
.game-select-options button:disabled{cursor:default;opacity:.4}
.touch-device.mobile-short .game-select-panel{padding:10px 14px}.touch-device.mobile-short .game-select-options button{min-height:48px;font-size:12px}

.touch-device .chat-sidebar #clearSpeech{min-height:44px}.touch-device.mobile-short .chat-speech-hint{display:none}.touch-device.mobile-short .chat-sidebar #clearSpeech{margin-top:16px}.touch-device.mobile-short .own-speech p{max-height:64px}

.touch-device.keyboard-open .chat-form{padding:2px 0 3px}.touch-device.keyboard-open .chat-input-row{padding:0}.touch-device.keyboard-open .chat-compose-meta{margin-top:2px}.touch-device.keyboard-open .chat-messages{padding:4px 0}.touch-device.keyboard-open .chat-message:last-child{margin-bottom:0}

/* One high-contrast return action shared by every game window. */
#officeViewport .window-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-width:104px;min-height:48px;padding:11px 20px;border:1px solid #f1f8dd;border-radius:12px;background:#d9e9be;color:#192e1e;font:600 15px/1.3 "Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:.3px;box-shadow:0 3px 14px #0003;cursor:pointer;white-space:nowrap;transition:background .15s,box-shadow .15s}
#officeViewport .window-back span{margin:0;font-size:19px;line-height:1}
#officeViewport .window-back:hover{background:#e8f3d4;box-shadow:0 4px 18px #0004}
#officeViewport .window-back:focus-visible{outline:3px solid #f4f9e5;outline-offset:4px}
#officeViewport .window-back:active{background:#c8dca7}
.touch-device #officeViewport .window-back{min-width:96px;min-height:48px;padding:10px 16px;font-size:15px}

/* Enter the office in three clear steps, without loading a model during selection. */
.walk-intro.entry-flow{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(660px,calc(var(--office-width) - 48px));max-width:none;max-height:calc(var(--office-height) - 140px);overflow:auto;overscroll-behavior:contain;padding:26px 28px 20px;border:1px solid #c5d5b84d;border-radius:24px;background:#15231cf5;box-shadow:0 22px 80px #0005;backdrop-filter:blur(14px);text-align:left}
.entry-steps{display:flex;align-items:center;gap:22px;list-style:none;margin:0 0 24px;padding:0;font-size:11px;color:#7e9580}.entry-steps li{display:flex;align-items:center;gap:6px;white-space:nowrap}.entry-steps li span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #c6d6b92a;border-radius:50%;font-size:10px}.entry-steps [aria-current=step]{color:#d8eabc}.entry-steps [aria-current=step] span{background:#d8eabc;color:#203223;border-color:#d8eabc}
.entry-flow .entry-heading p{padding:0;margin:0 0 7px;font-size:11px;color:#9fb495;background:none;text-shadow:none}.entry-heading h2{margin:0 0 20px;font-size:25px;line-height:1.4;font-weight:500;letter-spacing:.5px}.entry-people{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.entry-flow .entry-person{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:105px;width:auto;padding:8px 6px;border:1px solid #b8cdaa25;border-radius:13px;background:#e8f1df05;box-shadow:none;color:#e4ecd9;font-size:13px}.entry-person svg{width:46px;height:57px;pointer-events:none}.entry-person strong{font-size:13px;font-weight:500;margin-top:3px}.entry-person small{font-size:9px;color:#7f967e;margin-top:3px}.entry-flow .entry-person:hover{background:#c9dfb710;border-color:#c9dfb76b}.entry-flow .entry-person[aria-pressed=true]{border-color:#d2e6b7;background:#c9dfb71c}.entry-person[aria-pressed=true] small{color:#cde4b6}.entry-person[aria-pressed=true]:after{content:'✓';position:absolute;right:8px;top:7px;color:#d5e8bc;font-size:11px}.entry-flow .entry-person:disabled{cursor:default;opacity:.35}.entry-waiting{grid-column:1/-1;text-align:center;padding:50px 0!important}
.entry-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:20px}.entry-actions>span{font-size:11px;color:#91a98b;line-height:1.6}.entry-flow .entry-actions .primary{width:auto;min-width:154px;min-height:48px;margin:0;padding:12px 22px;font-size:14px;border-radius:12px;box-shadow:none}.entry-flow .entry-status{background:none;color:#e0c59a;text-shadow:none;padding:0;font-size:11px;line-height:1.6;margin:10px 0 0}.entry-status:empty{display:none}.entry-flow .entry-walk-hint{background:none;color:#728a74;font-size:10px;margin:15px 0 0;padding:0;text-shadow:none}
.entry-quality-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.entry-flow .entry-back{min-width:0;width:auto;min-height:40px;box-shadow:none;padding:8px 0 8px 10px;border-radius:6px;color:#b1c5a6;background:none;font-size:11px}.entry-selected-role{display:flex;align-items:center;gap:10px;margin:-4px 0 20px;padding:8px 12px;border-radius:10px;background:#c5d8b50a;color:#8fa98b;font-size:10px}.entry-selected-role svg{width:32px;height:40px}.entry-selected-role strong{display:block;font-weight:500;font-size:14px;color:#d8e7cb;margin-top:4px}.entry-qualities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.entry-flow .entry-qualities button{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:0;min-width:0;padding:18px 14px;white-space:normal;text-align:left;background:#c9dfb708;border:1px solid #b8cdaa30;border-radius:14px;box-shadow:none;color:#e5eddf}.entry-quality-number{font-size:11px!important;color:#7c9978;margin:0 0 25px!important;letter-spacing:2px}.entry-qualities strong{font-size:18px;font-weight:500}.entry-quality-size{font-size:12px!important;color:#bdcdb1;margin:14px 0 0!important}.entry-flow .entry-qualities button[aria-pressed=true]{border-color:#d2e6b7;background:#c9dfb71c}.entry-qualities button[aria-pressed=true]:after{content:'✓';position:absolute;right:14px;top:16px;color:#d9eabd;font-size:14px}
.entry-loading{background:#101914;overflow:hidden}.load-background,.load-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.load-background{filter:none}.load-shade{background:linear-gradient(90deg,#07110b45,transparent 70%),linear-gradient(0deg,#09150df2,transparent 80%)}.loading-content{position:absolute;left:max(8%,var(--office-safe-left));bottom:max(12%,var(--office-safe-bottom));width:min(500px,78%);text-align:left}.loading-location{font-size:12px;letter-spacing:4px;color:#c9ddb5}.entry-loading h2{font-size:32px;font-weight:500;letter-spacing:1px;margin:18px 0 12px;color:#f2f6e8}.entry-loading #loadText{font-size:12px;color:#a9bda0;line-height:1.6;margin:0 0 18px}.load-progress-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:10px;color:#a4bc98}.entry-loading #percent{font-size:13px;margin:0;color:#d9ebc4;letter-spacing:0;font-variant-numeric:tabular-nums}.entry-loading .track{width:100%;height:4px;border-radius:4px;overflow:hidden;background:#c5d8b533}.entry-loading #bar{border-radius:4px;background:#d4e8b7}.entry-loading #cancelLoad{position:absolute;top:max(28px,var(--office-safe-top));right:max(32px,var(--office-safe-right))}
.touch-device .entry-flow,.touch-device.mobile-compact .entry-flow{display:block;width:min(730px,calc(var(--office-width) - 28px));max-height:calc(var(--office-height) - 86px);top:calc(50% + 20px);bottom:auto;padding:16px 20px;border-radius:18px}.touch-device .entry-steps{margin-bottom:12px;font-size:10px;gap:18px}.touch-device .entry-steps li span{width:18px;height:18px;font-size:9px}.touch-device .entry-heading p{display:none}.touch-device .entry-heading h2{font-size:21px;margin-bottom:12px}.touch-device .entry-people{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.touch-device .entry-flow .entry-person{min-height:77px;padding:5px 4px}.touch-device .entry-person svg{width:30px;height:36px}.touch-device .entry-person strong{font-size:12px;margin-top:2px}.touch-device .entry-person small{font-size:8px;margin-top:1px}.touch-device .entry-person[aria-pressed=true]:after{top:5px;right:5px;font-size:9px}.touch-device .entry-actions{margin-top:12px;gap:12px}.touch-device .entry-flow .entry-actions .primary{min-height:44px;min-width:130px;padding:10px 16px}.touch-device .entry-actions>span{font-size:10px}.touch-device .entry-flow .entry-walk-hint{display:none}.touch-device .entry-flow .entry-status{font-size:10px;margin-top:6px}.touch-device .entry-selected-role{margin:0 0 12px;padding:4px 10px}.touch-device .entry-selected-role svg{width:23px;height:29px}.touch-device .entry-selected-role span{display:flex;gap:10px;align-items:center}.touch-device .entry-selected-role strong{margin:0;font-size:12px}.touch-device .entry-flow .entry-qualities button{padding:12px;min-height:120px}.touch-device .entry-quality-number{margin-bottom:12px!important;font-size:10px!important}.touch-device .entry-qualities strong{font-size:17px}.touch-device .entry-qualities{gap:9px}.touch-device .entry-flow .entry-back{padding:4px 0 4px 8px;min-height:32px}.touch-device .entry-loading h2{font-size:24px;margin:10px 0}.touch-device .entry-loading #loadText{text-align:left;padding:0;max-width:none;font-size:11px;margin-bottom:12px}.touch-device .loading-content{width:min(440px,72%);bottom:12%}.touch-device .entry-loading #cancelLoad{top:max(12px,var(--office-safe-top));right:max(16px,var(--office-safe-right))}
.touch-device.mobile-short .entry-flow{max-height:calc(var(--office-height) - 70px);padding:12px 16px;top:calc(50% + 23px)}.touch-device.mobile-short .entry-steps{margin-bottom:8px}.touch-device.mobile-short .entry-heading h2{font-size:18px;margin-bottom:9px}.touch-device.mobile-short .entry-person{min-height:67px}.touch-device.mobile-short .entry-person svg{height:28px;width:24px}.touch-device.mobile-short .entry-actions{margin-top:9px}.touch-device.mobile-short .entry-selected-role{margin-bottom:9px}.touch-device.mobile-short .entry-flow .entry-qualities button{min-height:105px;padding:10px}.touch-device.mobile-short .entry-quality-number{margin-bottom:8px!important}

.touch-device .entry-flow{max-height:calc(var(--office-height) - 70px)}.touch-device .entry-selected-role{display:none}.touch-device.mobile-short .entry-flow{padding:10px 14px}.touch-device.mobile-short .entry-steps{margin-bottom:6px}.touch-device.mobile-short .entry-heading h2{margin-bottom:6px}.touch-device.mobile-short .entry-flow .entry-person{min-height:58px;padding:3px}.touch-device.mobile-short .entry-person svg{height:22px;width:20px}.touch-device.mobile-short .entry-people{gap:5px}.touch-device.mobile-short .entry-actions{margin-top:8px}

.walk-intro.entry-flow{max-height:calc(var(--office-height) - 96px);scrollbar-width:thin;scrollbar-color:#93aa7e55 transparent}.touch-device .entry-flow{max-height:calc(var(--office-height) - 70px)}.touch-device.mobile-short .entry-flow{padding:8px 14px}.touch-device.mobile-short .entry-flow .entry-qualities button{min-height:100px}

#entryRoleStep .entry-actions{justify-content:flex-end}

/* Game-style quality presets: symbols and selection state carry the hierarchy. */
#walkIntro:has(#entryQualityStep:not([hidden])){width:min(780px,calc(var(--office-width) - 48px));background:linear-gradient(135deg,#1b2b21f7,#101e17fa);border-color:#b8cfa94a;box-shadow:0 24px 100px #0007}
#entryQualityStep .entry-quality-heading{align-items:center;margin:0 0 26px;gap:20px}#entryQualityStep .entry-heading h2{margin:0;font-size:28px;font-weight:600;letter-spacing:2px}
.quality-heading-tools{display:flex;align-items:center;gap:18px}#entryQualityStep .entry-selected-role{display:flex;align-items:center;gap:6px;background:none;border:0;margin:0;padding:0;font-size:12px;color:#cad9bd;white-space:nowrap}#entryQualityStep .entry-selected-role svg{width:28px;height:34px}#entryQualityStep .entry-selected-role strong{margin:0;font-size:12px;font-weight:500}
#entryQualityStep .entry-qualities{gap:16px}#entryQualityStep .entry-qualities button{position:relative;isolation:isolate;align-items:center;min-height:216px;padding:16px 18px 22px;border-radius:10px;border:1px solid #89a77c45;background:linear-gradient(155deg,#29403255,#14231ac9);overflow:hidden;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}
#entryQualityStep .entry-qualities button:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#b4d29b06 1px,transparent 1px),linear-gradient(90deg,#b4d29b06 1px,transparent 1px);background-size:20px 20px;mask-image:linear-gradient(transparent,#000 80%);pointer-events:none}
#entryQualityStep .entry-qualities button:after{content:none}.quality-card-top{width:100%;display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;font-size:10px;color:#91a98a}.quality-card-size{display:flex;align-items:center;gap:5px;margin:0}.quality-card-size svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}#entryQualityStep .entry-quality-size{font-size:11px!important;font-weight:500;color:inherit;margin:0!important;font-variant-numeric:tabular-nums;letter-spacing:.3px}.quality-card-check{display:grid;place-items:center;width:21px;height:21px;border:1px solid #8bab7755;border-radius:50%;margin:0;font-size:12px;color:transparent}
.quality-preset-icon{width:78px;height:78px;margin:3px 0 14px;fill:none;stroke:#9bb693;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 4px 14px #8ab36a12);pointer-events:none}
#entryQualityStep .entry-qualities strong{font-size:22px;font-weight:500;letter-spacing:2px;color:#cbd9c2}.quality-tier-meter{display:flex;align-items:center;gap:5px;margin:15px 0 0}.quality-tier-meter i{height:4px;width:24px;background:#9fb48c1c;border-radius:1px}.quality-tier-meter .lit{background:#8ba47f}
#entryQualityStep .entry-qualities button:hover:not(:disabled){border-color:#d2e7b792;transform:translateY(-2px);background:linear-gradient(155deg,#344e3e88,#1a2e21)}
#entryQualityStep .entry-qualities button[aria-pressed=true]{border:2px solid #d0e7a7;padding:15px 17px 21px;background:linear-gradient(160deg,#3e58318c,#213820);box-shadow:inset 0 0 0 3px #cde7a410,0 0 26px #accd6e12}
#entryQualityStep .entry-qualities button[aria-pressed=true]:after{content:'';display:block;position:absolute;left:24%;right:24%;top:0;height:3px;background:#d7edac;box-shadow:0 0 15px #d7edac9c}
#entryQualityStep [aria-pressed=true] .quality-card-check{border-color:#d0e7a7;background:#d0e7a7;color:#1c321d}#entryQualityStep [aria-pressed=true] .quality-preset-icon{stroke:#d2e9ae;filter:drop-shadow(0 0 9px #cbe69c35)}#entryQualityStep [aria-pressed=true] strong{color:#e7f2d3}#entryQualityStep [aria-pressed=true] .quality-tier-meter .lit{background:#d0e7a7;box-shadow:0 0 6px #cdeba12b}#entryQualityStep [aria-pressed=true] .quality-card-top{color:#ccdeb4}
#entryQualityStep .entry-actions{border-top:1px solid #bcd4a621;padding-top:20px;margin-top:24px}#entryQualityStep .entry-actions .primary{min-width:210px;min-height:50px;background:#d7e9b4;border-radius:8px;border-color:#e5f2c9;letter-spacing:1px;box-shadow:0 4px 20px #0003}
.touch-device #walkIntro:has(#entryQualityStep:not([hidden])){width:min(750px,calc(var(--office-width) - 28px))}.touch-device #entryQualityStep .entry-quality-heading{margin-bottom:14px;gap:12px}.touch-device #entryQualityStep .entry-heading h2{font-size:22px;letter-spacing:1px}.touch-device .quality-heading-tools{gap:12px}.touch-device #entryQualityStep .entry-selected-role svg{width:22px;height:28px}.touch-device #entryQualityStep .entry-selected-role strong{font-size:11px}.touch-device #entryQualityStep .entry-qualities{gap:10px}.touch-device #entryQualityStep .entry-qualities button{min-height:148px;padding:10px 12px 12px}.touch-device #entryQualityStep .entry-qualities button[aria-pressed=true]{padding:9px 11px 11px}.touch-device .quality-card-top{margin-bottom:2px}.touch-device .quality-card-check{width:17px;height:17px;font-size:10px}.touch-device #entryQualityStep .entry-quality-size{font-size:10px!important}.touch-device .quality-preset-icon{height:44px;width:44px;margin:2px 0 8px}.touch-device #entryQualityStep .entry-qualities strong{font-size:18px;letter-spacing:1px}.touch-device .quality-tier-meter{margin-top:9px;gap:4px}.touch-device .quality-tier-meter i{width:20px;height:3px}.touch-device #entryQualityStep .entry-actions{padding-top:12px;margin-top:14px}.touch-device #entryQualityStep .entry-actions .primary{min-height:44px;min-width:170px}
.touch-device.mobile-short #entryQualityStep .entry-quality-heading{margin-bottom:8px}.touch-device.mobile-short #entryQualityStep .entry-heading h2{font-size:20px}.touch-device.mobile-short #entryQualityStep .entry-selected-role svg{display:none}.touch-device.mobile-short #entryQualityStep .entry-qualities button{min-height:112px;padding:7px 10px 9px}.touch-device.mobile-short #entryQualityStep .entry-qualities button[aria-pressed=true]{padding:6px 9px 8px}.touch-device.mobile-short .quality-preset-icon{width:29px;height:29px;margin:0 0 5px}.touch-device.mobile-short #entryQualityStep .entry-qualities strong{font-size:17px}.touch-device.mobile-short .quality-tier-meter{margin-top:7px}.touch-device.mobile-short #entryQualityStep .entry-actions{margin-top:10px;padding-top:9px}
@media(prefers-reduced-motion:reduce){#entryQualityStep .entry-qualities button{transition:none}#entryQualityStep .entry-qualities button:hover:not(:disabled){transform:none}}

.touch-device #entryQualityStep .entry-qualities button{min-height:126px}.touch-device .quality-preset-icon{width:40px;height:40px;margin:2px 0 6px}.touch-device #entryQualityStep .entry-actions{padding-top:10px;margin-top:12px}
.touch-device.mobile-short #entryQualityStep .entry-qualities button{min-height:94px;padding:5px 9px 7px}.touch-device.mobile-short #entryQualityStep .entry-qualities button[aria-pressed=true]{padding:4px 8px 6px}.touch-device.mobile-short .quality-preset-icon{width:24px;height:24px;margin:0 0 3px}.touch-device.mobile-short .quality-tier-meter{margin-top:5px}.touch-device.mobile-short #entryQualityStep .entry-actions{padding-top:5px;margin-top:5px}

.touch-device #walkIntro:has(#entryQualityStep:not([hidden])){max-height:calc(var(--office-height) - 70px)}

/* Keep role choices readable and the next action reachable on landscape phones. */
.touch-device #walkIntro:has(#entryRoleStep:not([hidden])){display:flex;flex-direction:column;left:max(12px,var(--office-safe-left));right:max(12px,var(--office-safe-right));top:max(52px,calc(var(--office-safe-top) + 40px));bottom:max(12px,var(--office-safe-bottom));width:auto;max-width:940px;height:auto;max-height:none;transform:none;margin:0 auto;padding:14px 18px 12px;overflow:hidden;border-radius:18px;background:linear-gradient(145deg,#1c2e24fa,#122018fc);box-shadow:0 14px 48px #0006}
.touch-device #walkIntro:has(#entryRoleStep:not([hidden])) .entry-steps{flex:none;gap:18px;margin:0 0 10px;font-size:11px}
.touch-device #entryRoleStep:not([hidden]){display:grid;grid-template-rows:auto minmax(0,1fr) auto;flex:1;min-height:0}
.touch-device #entryRoleStep .entry-heading h2{margin:0 0 10px;font-size:20px;line-height:1.35;font-weight:600;letter-spacing:0}
.touch-device #entryPeople{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(68px,max-content);align-content:start;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9deb866 transparent;scroll-padding:4px;padding:2px 3px 4px;-webkit-overflow-scrolling:touch}
.touch-device #entryPeople .entry-person{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:1fr auto;column-gap:5px;align-items:center;justify-items:start;min-height:68px;padding:7px 8px;border:1px solid #adc99d38;border-radius:11px;background:#c9dfb708;box-shadow:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.touch-device #entryPeople .entry-person svg{grid-column:1;grid-row:1/3;width:38px;height:49px;align-self:center}
.touch-device #entryPeople .entry-person strong{grid-column:2;align-self:center;margin:0;white-space:nowrap;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:.2px;color:#edf3e6}
.touch-device #entryPeople .entry-person small{grid-column:2;margin:0;font-size:10px;line-height:1.4;color:#acb9a7}
.touch-device #entryPeople .entry-person[aria-pressed=true]{border-color:#d3eab3;background:#cee7ad24;box-shadow:inset 0 0 0 1px #d3eab3}
.touch-device #entryPeople .entry-person[aria-pressed=true]:after{display:grid;place-items:center;right:5px;top:5px;width:15px;height:15px;border-radius:50%;background:#d3eab3;color:#1c3020;font-size:10px;font-weight:700;line-height:1}
.touch-device #entryPeople .entry-person:disabled{opacity:.6;background:#07100b44;box-shadow:none}
.touch-device #entryPeople .entry-person:active:not(:disabled){background:#cee7ad30}
.touch-device #entryPeople .entry-person:focus-visible{outline:2px solid #edf6dc;outline-offset:1px}
.touch-device #entryRoleStep .entry-actions{position:relative;z-index:1;flex:none;justify-content:flex-end;margin:8px 0 0;padding:10px 2px 0;border-top:1px solid #c7ddb522;background:none}
.touch-device #entryRoleStep .entry-actions .primary{min-width:170px;min-height:46px;padding:10px 24px;border-radius:10px;font-size:15px;font-weight:600;box-shadow:0 4px 16px #0003}
.touch-device #entryRoleStep .entry-actions .primary:disabled{opacity:.45;box-shadow:none}
.touch-device #walkIntro:has(#entryRoleStep:not([hidden])) .entry-status{flex:none;margin:6px 0 0}
.touch-device:not(.mobile-narrow):not(.mobile-short) #entryPeople{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(76px,max-content)}
.touch-device:not(.mobile-narrow):not(.mobile-short) #entryPeople .entry-person{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:76px;padding:5px 6px}
.touch-device:not(.mobile-narrow):not(.mobile-short) #entryPeople .entry-person svg{width:40px;height:48px}
.touch-device:not(.mobile-narrow):not(.mobile-short) #entryPeople .entry-person strong{align-self:auto;font-size:14px;line-height:1.35}
.touch-device.mobile-narrow #entryPeople{grid-template-columns:repeat(4,minmax(0,1fr))}
.touch-device.mobile-short #walkIntro:has(#entryRoleStep:not([hidden])){top:max(44px,calc(var(--office-safe-top) + 32px));bottom:max(8px,var(--office-safe-bottom));padding:10px 12px 8px;border-radius:14px}
.touch-device.mobile-short #walkIntro:has(#entryRoleStep:not([hidden])) .entry-steps{margin-bottom:6px;font-size:10px;gap:14px}
.touch-device.mobile-short #entryRoleStep .entry-heading h2{font-size:18px;margin-bottom:6px}
.touch-device.mobile-short #entryRoleStep .entry-actions{margin-top:6px;padding-top:7px}
.touch-device.mobile-short #entryRoleStep .entry-actions .primary{min-height:44px;min-width:150px;padding:8px 18px}
