:root{font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#172835;font-synthesis:none;--ink:#101f2b;--accent:#a0e4ef;--line:#ffffff21}*{box-sizing:border-box}body{margin:0;background:var(--ink)}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,#viewport:focus-visible{outline:3px solid #10a4c0;outline-offset:3px}button{border:0}button:disabled{opacity:.6}button[hidden],[hidden]{display:none!important}header{height:82px;display:flex;align-items:center;gap:35px;padding:0 28px;background:#fff;border-bottom:1px solid #e4e8eb}.brand{text-decoration:none;color:var(--ink);font-size:23px;font-weight:800;letter-spacing:.19em;line-height:1.15}.brand span{display:block;font-size:12px;letter-spacing:.19em;margin-top:5px}.project{display:flex;align-items:center;gap:20px;border-left:1px solid #d9e0e4;padding-left:30px}.project strong{font-size:16px}.project span{font-size:14px;color:#677781}.icon-button{margin-left:auto;width:42px;height:42px;background:#edf3f5;border-radius:50%;font-size:24px;color:#334d5c}main{display:flex;height:calc(100dvh - 82px);min-height:560px}.sidebar{width:278px;flex-shrink:0;background:var(--ink);color:white;display:flex;flex-direction:column}.side-top{padding:30px 25px 22px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700}.side-top .eyebrow{color:var(--accent)}h1{font-size:22px;line-height:1.65;font-weight:600;margin:14px 0 9px;letter-spacing:.01em}.side-top p{font-size:12px;color:#9bafb9;margin:0}.room-list{overflow-y:auto;flex:1;padding:0 13px 15px;scrollbar-width:thin;scrollbar-color:#49616e transparent}.group-label{padding:16px 12px 8px;color:#879ea9;font-size:12px;letter-spacing:.07em}.room-button{width:100%;display:flex;align-items:center;gap:12px;background:transparent;color:#dce5e8;padding:12px;border-radius:8px;text-align:left;transition:background .2s}.room-button:hover{background:#ffffff0e}.room-button.active{background:#254350;color:white}.room-num{font-size:11px;font-weight:700;color:#84afbe;width:20px}.room-name{font-size:14px;flex:1}.room-arrow{font-size:17px;opacity:.5}.side-bottom{border-top:1px solid var(--line);padding:17px 25px 20px}.side-bottom>span{font-size:10px;letter-spacing:.13em;color:#899da7}.side-bottom button{display:block;color:#dde9ee;background:none;padding:10px 0 0;font-size:13px}.viewer{position:relative;flex:1;min-width:0;overflow:hidden;background:#e4edf0}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{width:100%;height:100%;display:block;outline:none}.view-top{position:absolute;top:22px;left:24px;right:24px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.view-top>*{pointer-events:auto}.mode-switch{display:flex;padding:5px;gap:2px;border:1px solid #ffffffa0;background:#ffffffed;border-radius:12px;box-shadow:0 4px 18px #1932400c}.mode-switch button{padding:10px 18px;border-radius:8px;background:transparent;font-size:14px;color:#536774;white-space:nowrap}.mode-switch button.selected{background:var(--ink);color:white}.glass{background:#fffffff0;border:1px solid #ffffff80;border-radius:9px;box-shadow:0 3px 16px #102d3c08;color:#354e5b}.square{height:49px;width:49px;font-size:26px}.view-title{position:absolute;top:110px;left:30px;pointer-events:none;text-shadow:0 1px 12px #ffffff}.view-title .eyebrow{color:#537383;font-size:10px}h2{font-size:26px;font-weight:600;letter-spacing:.02em;margin:9px 0}.view-title p{margin:9px 0;font-size:13px;color:#58727e}.model-tools{position:absolute;top:98px;right:24px;display:flex;flex-direction:column;gap:9px}.model-tools label{padding:10px 13px;display:flex;align-items:center;gap:7px;font-size:13px;cursor:pointer}.model-tools input{accent-color:#1a5e71;width:15px;height:15px;margin:0}.enter-button{position:absolute;bottom:76px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:17px 25px;border-radius:12px;box-shadow:0 6px 24px #102b4330;font-size:15px;white-space:nowrap}.enter-button span{color:var(--accent);margin-left:24px}.bottom-info{position:absolute;bottom:22px;left:28px;right:24px;display:flex;justify-content:space-between;align-items:center;gap:15px;pointer-events:none;font-size:12px;color:#526b76;text-shadow:0 0 4px white}.prototype{background:#ffffffcd;padding:7px 11px;border-radius:5px;color:#58727d}.labels{position:absolute;inset:0;pointer-events:none}.room-label{position:absolute;background:#fffffff0;color:#345363;padding:5px 9px;font-size:11px;font-weight:600;border-radius:5px;white-space:nowrap;box-shadow:0 2px 10px #26455012;transform:translate(-50%,-50%);transition:opacity .2s}.minimap-wrap{position:absolute;right:22px;bottom:68px;background:#fffffff5;border:1px solid #fff;width:222px;border-radius:12px;box-shadow:0 8px 30px #18344317;overflow:hidden}.map-heading{padding:10px 13px 2px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5e7885}.map-heading button{background:transparent;width:27px;height:23px;font-size:19px;color:#55707e}#minimap{width:100%;display:block;padding:3px 6px 8px}#minimap circle{cursor:pointer}#minimap text{font-size:.36px;fill:#5e7a88;pointer-events:none}.movement{position:absolute;bottom:68px;left:28px;text-align:center;user-select:none}.movement>span{font-size:11px;color:#48636f;display:block;margin-top:12px;background:#ffffffb0;padding:5px 8px;border-radius:4px}.joystick{height:112px;width:112px;border-radius:50%;background:#ffffffaa;border:1px solid #ffffffc0;box-shadow:0 4px 20px #1c3d4e15;position:relative;touch-action:none}.joy-mark{position:absolute;inset:0;display:grid;place-items:center;color:#546e79;font-size:12px}#joy-knob{position:absolute;width:46px;height:46px;background:#1b435dcc;border:2px solid #ffffffa0;border-radius:50%;left:33px;top:33px;box-shadow:0 2px 8px #18374633;pointer-events:none}.loading,.viewer-error{position:absolute;inset:0;background:#e4edf0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.loading p{font-size:14px;color:#577482}.spinner{width:34px;height:34px;border:2px solid #bacfd8;border-top-color:#244f62;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.viewer-error h2{font-size:20px}.viewer-error p{font-size:15px;max-width:420px;line-height:1.8}.viewer-error button{background:var(--ink);color:white;border-radius:8px;padding:12px 18px}.fade{position:absolute;inset:0;background:#e4edf0;opacity:0;transition:opacity .18s;pointer-events:none;z-index:12}.fade.active{opacity:1}dialog{border:0;border-radius:15px;padding:0;width:min(1100px,94vw);max-height:92dvh;box-shadow:0 30px 100px #0005;color:var(--ink)}dialog::backdrop{background:#0d1c2c99;backdrop-filter:blur(5px)}.dialog-head{padding:22px 27px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3ebee}.dialog-head h2{font-size:22px;margin:5px 0 0}.dialog-head .eyebrow{font-size:10px;color:#738a96}.close{background:#edf2f4;color:#4b6572;width:39px;height:39px;border-radius:50%;font-size:25px}.plan-image{overflow:auto;padding:12px;background:#fff}.plan-image img{display:block;width:100%;height:auto}.dialog-note{padding:0 25px 15px;font-size:13px;color:#607783}#about-dialog{max-width:650px}.about-content{padding:8px 28px 25px;font-size:15px;line-height:1.9}.about-content dt{font-weight:700;margin:20px 0 5px}.about-content dd{margin:0;color:#56707f}.about-content .notice{background:#edf5f8;padding:15px 18px;border-radius:8px;font-size:14px}.about-content h3{font-size:17px;margin-top:25px}.walking .view-title{background:#ffffffe8;padding:12px 17px 13px;border-radius:10px;left:24px;top:93px;box-shadow:0 3px 15px #122d3a08}.walking .view-title h2{font-size:21px;margin:6px 0}.walking .view-title p{font-size:12px;margin:5px 0 0}.walking .bottom-info{color:#263f4b}.walking .view-title .eyebrow{font-size:9px}
@media(min-width:1450px){.sidebar{width:300px}.side-top{padding:35px 30px 24px}.room-button{padding:13px 15px}.room-name{font-size:15px}}
@media(max-width:1050px){.sidebar{width:235px}.side-top{padding:25px 20px 15px}h1{font-size:19px}.view-title{top:101px;left:25px}.view-title h2{font-size:23px}.model-tools{top:auto;bottom:76px;right:20px}.model-tools label{font-size:12px;padding:8px}.bottom-info #gesture{max-width:230px;font-size:11px}.minimap-wrap{width:185px}.enter-button{left:35%;font-size:14px;padding:15px 18px}.enter-button span{margin-left:10px}}
@media(max-width:720px){header{height:66px;padding:0 16px;gap:15px}.brand{font-size:19px}.brand span{font-size:10px;margin-top:4px}.project{padding-left:15px;gap:4px;display:flex;flex-direction:column;align-items:flex-start}.project strong{font-size:12px}.project span{font-size:11px}.icon-button{width:34px;height:34px;font-size:21px}main{height:calc(100dvh - 66px);min-height:500px;display:flex;flex-direction:column-reverse}.sidebar{width:100%;height:74px;flex-shrink:0}.side-top,.side-bottom,.group-label,.room-num,.room-arrow{display:none}.room-list{display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;padding:10px 13px;scrollbar-width:none;flex:1}.room-button{width:auto;white-space:nowrap;flex-shrink:0;border:1px solid #ffffff20;border-radius:8px;padding:12px 13px}.room-button.active{border-color:#9cdbea66}.room-name{font-size:13px}.viewer{width:100%;min-height:0}.view-top{top:14px;left:14px;right:14px;gap:8px}.mode-switch{padding:4px;gap:0;border-radius:10px}.mode-switch button{padding:10px 12px;font-size:12px}.square{height:45px;width:40px}.view-title{top:83px;left:18px}.view-title h2{font-size:22px}.view-title p{font-size:12px;max-width:210px;line-height:1.7}.model-tools{right:14px;bottom:70px;gap:6px}.model-tools label{font-size:11px;padding:9px 10px}.model-tools input{width:13px;height:13px}.enter-button{left:16px;transform:none;bottom:74px;font-size:13px;padding:14px 15px;border-radius:9px}.enter-button span{margin-left:10px}.bottom-info{left:15px;right:14px;bottom:18px;font-size:10px;gap:8px}.bottom-info #gesture{max-width:160px;font-size:10px;line-height:1.7}.prototype{font-size:10px;padding:6px 8px;white-space:nowrap}.room-label{font-size:9px;padding:4px 6px}.walking .view-title{left:14px;top:77px;padding:10px 13px}.walking .view-title h2{font-size:18px}.walking .view-title p{font-size:11px}.minimap-wrap{right:14px;bottom:62px;width:156px;border-radius:9px}.map-heading{padding:6px 9px 0;font-size:10px}.movement{left:18px;bottom:70px}.joystick{width:94px;height:94px}#joy-knob{width:40px;height:40px;left:27px;top:27px}.movement>span{font-size:10px;margin-top:7px}.map-heading button{height:20px}dialog{width:96vw;max-height:94dvh;border-radius:11px}.dialog-head{padding:17px 18px}.plan-image img{min-width:720px}.about-content{padding:5px 20px 20px;font-size:14px}.dialog-note{font-size:12px}.walking .bottom-info #gesture{max-width:160px}.viewer-error h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation:none}}

/* Keep the viewer within the available screen height. */
.app{display:flex;flex-direction:column;height:100dvh}
.app>header{flex-shrink:0}
.app>main{height:auto;flex:1;min-height:0}

/* Walk controls remain legible without covering the centre of the room. */
.joy-mark{display:block;font-size:16px;font-weight:600}.joy-mark span{position:absolute;line-height:1}.joy-mark span:nth-child(1){top:7px;left:calc(50% - 5px)}.joy-mark span:nth-child(2){left:8px;top:calc(50% - 8px)}.joy-mark span:nth-child(3){right:8px;top:calc(50% - 8px)}.joy-mark span:nth-child(4){bottom:7px;left:calc(50% - 5px)}
.walk-feedback{position:absolute;left:50%;bottom:82px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;flex-direction:column;pointer-events:none;z-index:5;width:min(360px,calc(100% - 36px));text-align:center}
#walk-status{background:#fffffff0;box-shadow:0 3px 16px #17374a18;border-radius:8px;padding:10px 15px;color:#355565;font-size:14px;line-height:1.6}#walk-status:empty{display:none}#stop-walk{pointer-events:auto;color:white;background:#173b4d;border-radius:8px;padding:11px 17px;font-size:14px;box-shadow:0 3px 16px #17374a18}
.room-name{font-size:14px}.mode-switch button{font-size:14px}.model-tools label{font-size:14px}.movement>span{font-size:12px}.map-heading{font-size:12px}
@media(max-width:720px){.walk-feedback{bottom:202px}.mode-switch button{font-size:13px;padding:10px}.model-tools label{font-size:12px}.room-name{font-size:14px}.movement>span{font-size:11px;max-width:105px;line-height:1.5}.walking .view-title{max-width:calc(100% - 28px)}.walking .view-title p{max-width:none}.walking .bottom-info #gesture{font-size:12px;max-width:195px}.prototype{font-size:11px}.joy-mark{font-size:14px}.minimap-wrap{bottom:68px}.room-button{min-height:45px}.walk-feedback #walk-status{font-size:13px}}
@media(max-width:360px){.minimap-wrap{width:140px}.mode-switch button{padding:10px 8px;font-size:12px}.project strong{font-size:11px}.project{padding-left:10px}header{gap:10px}.walking .bottom-info #gesture{font-size:11px}}

/* Room-first viewing: fixed eye position, simple room-to-room navigation. */
main{min-height:0}
.view-options{position:absolute;right:24px;top:94px;display:flex;gap:8px}
.view-options button{padding:11px 15px;font-size:14px;min-height:44px}
.view-options button.selected,.view-options button[aria-pressed="true"]{background:#21495b;color:#fff;border-color:#21495b}
.room-nav{position:absolute;bottom:74px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;padding:7px;background:#fffffff5;box-shadow:0 5px 25px #173a4d1a;border:1px solid #fff;border-radius:12px;white-space:nowrap}
.room-nav button{padding:12px 17px;border-radius:8px;color:#244554;background:#eef4f6;min-height:44px;font-size:14px}
.room-nav button:last-child{background:#173d50;color:#fff}.room-nav span{font-size:12px;color:#5d7580;min-width:40px;text-align:center}
.room-view .view-title{max-width:calc(100% - 310px)}.room-view .bottom-info #gesture{font-size:13px}
@media(max-width:720px){
 main{min-height:0}.view-options{top:auto;bottom:83px;left:14px;right:14px;justify-content:center}.view-options button{padding:10px 17px;font-size:13px}
 .room-nav{bottom:18px;gap:10px;padding:5px;width:calc(100% - 28px);justify-content:space-between}.room-nav button{font-size:13px;padding:11px 13px;flex:1}.room-nav span{min-width:38px}
 .room-view .view-title{max-width:calc(100% - 28px)}.room-view .bottom-info{bottom:139px;justify-content:center}.room-view .bottom-info .prototype{display:none}.room-view .bottom-info #gesture{max-width:none;font-size:12px;background:#ffffffe8;border-radius:5px;padding:7px 10px;text-shadow:none}
 .free-walk .view-options{bottom:222px}.free-walk .walk-feedback{bottom:278px}.room-view .walk-feedback{display:none}
}
@media(max-height:520px) and (min-width:600px){
 header{height:52px;padding:0 16px}.brand{font-size:18px}.brand span{font-size:10px}.project strong{font-size:13px}.project span{font-size:12px}
 main{height:calc(100dvh - 52px);min-height:0;flex-direction:row}.sidebar{width:180px;height:auto}.side-top,.side-bottom,.group-label{display:none}.room-list{display:block;overflow:auto;padding:10px;scrollbar-width:thin}.room-button{width:100%;white-space:normal;border:0}.room-name{font-size:12px}.room-num,.room-arrow{display:none}
 .view-top{top:10px;left:12px;right:12px}.mode-switch button{padding:8px 12px;font-size:12px}.square{height:40px;width:40px}.view-title,.walking .view-title{top:66px;left:12px;padding:8px 11px;max-width:calc(100% - 218px)}.walking .view-title h2{font-size:16px}.walking .view-title p{font-size:11px}.view-title .eyebrow{display:none}
 .view-options,.free-walk .view-options{top:68px;bottom:auto;left:auto;right:12px;gap:6px}.view-options button{padding:8px 11px;font-size:12px;min-height:40px}.room-nav{bottom:13px;width:auto;gap:10px}.room-nav button{min-height:40px;padding:9px 13px}.walking .bottom-info{display:none}.movement{bottom:14px;left:15px}.movement>span{display:none}.minimap-wrap{bottom:12px;width:145px}.walk-feedback,.free-walk .walk-feedback{bottom:20px;width:200px}.model-tools{bottom:15px}.enter-button{bottom:20px}.bottom-info{display:none}
}

/* Wallpaper selection reserves real canvas space on phones as well as desktop. */
.wallpaper-trigger{margin-left:auto;flex-shrink:0;padding:11px 17px;min-height:44px;background:#173d50;color:white;border-radius:9px;font-size:14px;font-weight:600}.wallpaper-trigger.selected{background:#d9eee9;color:#164e49}header .icon-button{margin-left:0;flex-shrink:0}
#wallpaper-panel{--paper-width:340px;position:absolute;z-index:15;top:0;right:0;bottom:0;width:var(--paper-width);background:#faf9f5;box-shadow:-4px 0 24px #142e3a12;display:flex;flex-direction:column;color:#213e46;border-left:1px solid #dce3df}
.paper-head{padding:20px 18px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e0e5df;flex-shrink:0}.paper-head .eyebrow{font-size:9px;color:#638179;letter-spacing:.13em}.paper-head h2{font-size:20px;margin:6px 0 0}.paper-head .close{flex-shrink:0;width:38px;height:38px;background:#e9eee8;color:#506858}
.paper-body{overflow-y:auto;overscroll-behavior:contain;padding:16px 17px 20px;scrollbar-width:thin;min-height:0}
.paper-targets{display:flex;gap:5px;border-radius:9px;padding:4px;background:#e9ede7}.paper-targets button{flex:1;min-height:40px;padding:8px 5px;background:transparent;border-radius:6px;font-size:12px;color:#577267;white-space:nowrap}.paper-targets button[aria-pressed="true"]{background:#214e45;color:white;box-shadow:0 2px 6px #234a3514}
.paper-scope{font-size:11px;line-height:1.6;color:#67796f;margin:10px 0 14px;min-height:18px}
.paper-swatches{display:grid;grid-template-columns:1fr 1fr;gap:9px}.paper-swatch{padding:0 0 9px;border:2px solid #dce3da;background:#fff;border-radius:9px;overflow:hidden;text-align:left;position:relative;min-width:0;color:#28473b}.paper-swatch img{display:block;width:100%;height:77px;object-fit:cover}.paper-swatch span,.paper-swatch small{display:block;margin:7px 9px 0;font-size:11px;font-weight:500;white-space:nowrap}.paper-swatch small{font-size:11px;margin-top:4px;font-weight:700;color:#64786a;letter-spacing:.03em}.paper-swatch i{display:none;position:absolute;right:5px;top:5px;border-radius:50%;background:#214e45;color:white;font-size:13px;font-style:normal;width:23px;height:23px;line-height:23px;text-align:center}.paper-swatch[aria-pressed="true"]{border-color:#214e45;box-shadow:0 0 0 1px #214e45}.paper-swatch[aria-pressed="true"] i{display:block}.paper-swatch:hover{border-color:#72988a}
.paper-detail{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0 8px}.paper-detail>div{min-width:0;flex:1}.paper-detail strong{display:block;font-size:16px;letter-spacing:.025em}.paper-detail span{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:#6a7b70}.paper-detail button{background:#214e45;color:white;border-radius:8px;min-height:42px;padding:9px 12px;font-size:12px;flex-shrink:0}
.paper-actions{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:35px}.paper-actions a,.paper-note a{color:#336f60;text-underline-offset:3px;font-size:11px}.paper-actions button{font-size:11px;color:#60786c;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:10px 0;margin-left:auto;min-height:40px}
#paper-status{font-size:11px;color:#436859;line-height:1.6;margin:0 0 8px}#paper-status:empty{display:none}.paper-selection{border-top:1px solid #dfe6dc;margin-top:10px;padding-top:13px}.paper-selection>span{font-size:10px;font-weight:700;color:#6a8172}.paper-selection p{font-size:11px;line-height:1.8;margin:5px 0}.paper-note{font-size:10px;line-height:1.8;color:#7a887e;margin:12px 0 0}.paper-note a{display:block;font-size:10px;margin-top:5px}
.wallpaper-open #viewport{right:340px}.wallpaper-open .view-top{right:360px}.wallpaper-open .view-title{max-width:calc(100% - 390px);padding:9px 12px}.wallpaper-open .view-title h2{font-size:18px}.wallpaper-open .view-title .eyebrow,.wallpaper-open .view-title p{display:none}.wallpaper-open .model-tools,.wallpaper-open .view-options,.wallpaper-open .room-nav,.wallpaper-open .movement,.wallpaper-open .minimap-wrap,.wallpaper-open .enter-button,.wallpaper-open .bottom-info,.wallpaper-open .walk-feedback{display:none!important}
#wallpaper-example-dialog{max-width:940px}.paper-photo{margin:0;padding:18px;background:#faf9f5}.paper-photo img{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;margin:auto}.paper-photo figcaption{font-size:12px;color:#627469;margin:12px auto 0;text-align:center;line-height:1.6}#wallpaper-example-dialog .dialog-note{font-size:12px;line-height:1.8;margin:0;padding:15px 22px}#wallpaper-example-dialog a{color:#2f6a5c;text-underline-offset:3px}
@media(max-width:1200px){.wallpaper-open .sidebar{display:none}header{gap:22px}.project{gap:12px;padding-left:20px}}
@media(max-width:720px){
 header{gap:12px}.wallpaper-trigger{font-size:12px;padding:10px 13px;min-height:40px}header .icon-button{width:34px;height:34px}
 .wallpaper-open .viewer{--paper-height:min(330px,48%)}
 #wallpaper-panel{top:auto;left:0;width:100%;height:var(--paper-height);border:0;border-top:1px solid #dce3df;border-radius:17px 17px 0 0;box-shadow:0 -5px 24px #142e3a16}
 .paper-head{padding:11px 15px 9px}.paper-head h2{font-size:16px;margin:0}.paper-head .eyebrow{display:none}.paper-head .close{height:30px;width:30px;font-size:23px}.paper-body{padding:8px 14px 18px}
 .paper-targets button{min-height:36px}.paper-scope{font-size:10px;margin:5px 0 8px;min-height:0}
 .paper-swatches{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:thin;scroll-snap-type:x proximity}.paper-swatch{flex:0 0 116px;scroll-snap-align:start;padding-bottom:7px}.paper-swatch img{height:58px}.paper-swatch span,.paper-swatch small{font-size:10px;margin:5px 7px 0}.paper-swatch small{margin-top:3px}
 .paper-detail{padding-top:9px;padding-bottom:0}.paper-detail strong{font-size:14px}.paper-detail span{font-size:10px;margin-top:2px}.paper-detail button{min-height:38px;padding:8px 12px;font-size:11px}.paper-actions{min-height:28px}.paper-actions button{min-height:34px;padding:8px 0}
 .wallpaper-open #viewport{right:0;bottom:var(--paper-height)}.wallpaper-open .view-top{right:14px}.wallpaper-open .view-title{top:75px;max-width:calc(100% - 28px)}.wallpaper-open .view-title h2{font-size:15px}.wallpaper-open .labels{bottom:var(--paper-height)}
 .paper-selection{margin-top:5px;padding-top:8px}.paper-note{margin-top:6px}
}
@media(max-width:600px){header .project{display:none}}
.paper-photo figcaption{display:flex;align-items:center;justify-content:center;gap:12px;text-align:left;white-space:pre-line}.paper-photo figcaption img{width:60px;height:60px;object-fit:cover;margin:0;border-radius:5px;flex-shrink:0}
@media(max-height:520px) and (min-width:600px){
 .wallpaper-open .sidebar{display:none}.wallpaper-open #viewport{right:300px;bottom:0}.wallpaper-open .view-top{right:312px}.wallpaper-open .view-title{max-width:calc(100% - 330px);top:62px}
 #wallpaper-panel{top:0;left:auto;right:0;bottom:0;width:300px;height:auto;border-radius:0;border-left:1px solid #dce3df}.paper-head{padding:10px 13px}.paper-head h2{font-size:16px}.paper-head .eyebrow{display:none}.paper-body{padding:10px 13px}.paper-swatches{display:grid;grid-template-columns:1fr 1fr}.paper-swatch{flex:none}.paper-swatch img{height:60px}.paper-scope{font-size:10px}.wallpaper-open .mode-switch button{padding:8px;font-size:11px}
}

/* Exterior keeps the house in view while offering simple camera destinations. */
.exterior-tools{position:absolute;bottom:66px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:6px;background:#fffffff2;border:1px solid white;border-radius:11px;box-shadow:0 5px 25px #183d4e18;white-space:nowrap}
.exterior-tools button{padding:11px 18px;min-height:44px;font-size:14px;color:#49616c;background:transparent;border-radius:7px}.exterior-tools button[aria-pressed="true"]{background:#173d50;color:white}.exterior-tools button:last-child{border-left:1px solid #e0e7e7;border-radius:0 7px 7px 0}
.exterior-view .enter-button{bottom:136px;left:50%;transform:translateX(-50%)}.exterior-view .view-title{background:#ffffffd9;padding:12px 17px;border-radius:10px;top:99px;left:24px}.exterior-view .view-title h2{font-size:23px;margin:6px 0}.exterior-view .view-title p{font-size:13px;margin:6px 0}.exterior-view .view-title .eyebrow{font-size:10px;color:#617d86}
.exterior-reference-note{margin:0;padding:18px 24px;line-height:1.8}.exterior-reference-images{padding:0 18px 18px;background:#f4f6f5}.exterior-reference-images figure{margin:0 0 14px}.exterior-reference-images img{display:block;width:100%;height:auto;border-radius:5px}
@media(max-width:1050px){.exterior-view .sidebar{display:none}}
@media(max-width:720px){
 .mode-switch button{min-width:52px;padding:10px 11px}.mode-switch{gap:0}.view-top{gap:6px}
 .exterior-view .view-title{top:78px;left:14px;padding:9px 12px}.exterior-view .view-title h2{font-size:19px}.exterior-view .view-title p{font-size:12px;max-width:none}.exterior-view .view-title .eyebrow{font-size:9px}
 .exterior-tools{bottom:60px;width:calc(100% - 28px);max-width:400px;padding:5px;gap:2px;justify-content:center}.exterior-tools button{font-size:13px;padding:10px 12px;flex:1}.exterior-tools button:last-child{flex:1.4}
 .exterior-view .enter-button{bottom:124px;padding:13px 20px}.exterior-view .bottom-info{font-size:11px;bottom:16px}.exterior-view .prototype{font-size:10px}.exterior-view #gesture{max-width:165px;font-size:10px}
 .exterior-reference-note{padding:14px 17px;font-size:12px}.exterior-reference-images{padding:0 10px 10px}
}
@media(max-width:360px){.mode-switch button{min-width:45px;padding:10px 8px}.exterior-tools button{padding:10px 9px}.view-top{left:10px;right:10px}}
@media(max-height:520px) and (min-width:600px){
 .exterior-tools{bottom:12px;width:auto;padding:4px;gap:3px}.exterior-tools button{min-height:38px;padding:8px 15px;font-size:12px}.exterior-view .enter-button{bottom:13px;left:auto;right:13px;transform:none;padding:12px 15px;font-size:12px}.exterior-view .enter-button span{margin-left:7px}
 .exterior-view .exterior-tools{left:13px;transform:none}.exterior-view .view-title{top:64px;left:12px;padding:8px 12px;max-width:none}.exterior-view .view-title h2{font-size:17px}.exterior-view .view-title p{font-size:11px}
}

/* Revised portrait plan: fit the sheet first, then use native image zoom. */
#plan-dialog .plan-image img{min-width:0;max-width:100%;width:100%;height:auto}
.elevation-reference figcaption{padding:12px 0;color:#617985;font-size:13px}

/* Scale figures use a separate editing surface, leaving the house unobscured. */
#place-people{min-height:44px;padding:10px 13px;font-size:14px;background:#173e51;color:white;border-color:#173e51}
.people-editing .sidebar,.people-editing .view-title,.people-editing .model-tools,.people-editing .labels,.people-editing .enter-button,.people-editing .bottom-info,.people-editing .walk-feedback{display:none!important}
.people-editing #viewport{top:76px;right:320px;bottom:0;cursor:grab}
.people-editing #viewport:active{cursor:grabbing}
.people-panel{position:absolute;z-index:6;right:14px;top:90px;width:292px;max-height:calc(100% - 106px);overflow:auto;background:#fffffffa;border:1px solid #cbdbe2;border-radius:12px;box-shadow:0 7px 25px #16364b16;padding:14px;color:#173b4d;font-size:14px}
.people-heading,.people-row{display:flex;align-items:center;gap:8px}
.people-heading{justify-content:space-between;margin-bottom:8px}.people-heading strong{font-size:16px}
.people-row{margin-top:8px;flex-wrap:wrap}
.people-panel button,.people-panel select,.people-panel summary{min-height:44px;font:inherit;border:1px solid #c7d9e1;border-radius:7px;background:#edf4f7;color:#1b4e63;padding:8px 10px;line-height:1.5}
.people-panel select{flex:1;min-width:0;background:white;max-width:100%}
.people-panel button:disabled{opacity:.45;cursor:default}
#people-close,#people-add{background:#184e65;color:white;border-color:#184e65}
#people-add[aria-pressed="true"]{background:#e0f5fa;color:#16455a;border-color:#1584a3}
#people-turn{flex:1}
#people-status{font-size:14px;line-height:1.6;margin:12px 0 0;min-height:2.5em;color:#466575}
.people-camera-tools{padding-top:8px;border-top:1px solid #e1eaf0}
#people-zoom-in,#people-zoom-out{min-width:44px;font-size:20px;padding:4px}
.people-nudge{flex:1}.people-nudge summary{list-style:none;cursor:pointer;text-align:center}.people-nudge[open]{flex-basis:100%}.people-nudge>div{display:flex;gap:6px;margin-top:8px}.people-nudge button{flex:1;font-size:20px}
@media(max-width:900px){
 .people-editing #viewport{top:68px;right:0;bottom:var(--people-panel-height,240px)}
 .people-panel{top:auto;bottom:0;left:0;right:0;width:auto;max-height:55%;padding:10px 14px;border-radius:12px 12px 0 0}
 .people-heading{margin:0}.people-heading strong{font-size:15px}.people-heading button{min-height:36px;padding:4px 12px}
 .people-row{margin-top:6px;flex-wrap:nowrap}.people-camera-tools{padding-top:6px}
 #people-turn{flex:0 0 auto}#people-status{margin-top:7px;min-height:0;font-size:13px}
 .people-nudge[open]{position:absolute;bottom:0;left:0;right:0;background:white;padding:10px;box-shadow:0 -4px 20px #16364b16}
}
@media(max-height:540px) and (min-width:600px){
 .people-editing #viewport{top:60px;right:282px;bottom:0}
 .people-panel{top:60px;bottom:0;left:auto;right:0;width:274px;max-height:none;border-radius:10px 0 0 0;overflow:auto}
 .people-panel .people-row{flex-wrap:wrap}
}

#people-count{font-size:12px;font-weight:500;color:#617f8e;white-space:nowrap;display:inline-block;margin-left:5px}

#people-autowalk{flex:1;background:#e0f5fa;color:#16455a;border-color:#1584a3;font-weight:600}
#people-autowalk[aria-pressed="true"]{background:#184e65;color:white;border-color:#184e65}

#garden-play-toggle{pointer-events:auto;min-height:44px;padding:8px 12px;margin-top:4px;font-size:14px;border:1px solid #bfd1d8;border-radius:7px;background:#fffffff0;color:#184e65}
@media(max-width:720px){.exterior-tools button{padding:10px 8px}}
@media(max-height:520px) and (min-width:600px){#garden-play-toggle{padding:5px 9px;min-height:38px}}

#model-autowalk{min-height:44px;padding:10px 13px;font-size:14px;background:#e0f5fa;color:#16455a;border-color:#1584a3}
#model-autowalk[aria-pressed="true"]{background:#184e65;color:white;border-color:#184e65}
/* Keep settings collapsed regardless of device detection or browser mode. */
.model-tools{display:block;top:auto;bottom:70px;left:auto;right:14px;width:132px;z-index:5}
.model-tools>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 12px;font-size:14px;font-weight:600;color:#173e51;border-color:#c6d7df;box-shadow:0 3px 16px #102d3c15;list-style:none;cursor:pointer;user-select:none}
.model-tools>summary::-webkit-details-marker{display:none}
.model-tools>summary:focus-visible{outline:3px solid #10a4c0;outline-offset:3px}
.model-tools .menu-chevron{margin-left:auto;font-size:17px;line-height:1}
.model-tools[open] .menu-chevron{transform:rotate(180deg)}
.model-tools[open]>summary{background:#173e51;color:white;border-color:#173e51}
.model-tools-content{position:absolute;bottom:56px;right:0;width:280px;max-width:calc(100vw - 28px);max-height:clamp(88px,calc(100dvh - 320px),260px);overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px;border:1px solid #cbdbe2;border-radius:12px;background:#fffffff7;box-shadow:0 6px 28px #16364b25}
.model-tools:not([open])>.model-tools-content{display:none}
.model-tools label{min-height:44px;justify-content:center;padding:9px 5px;font-size:14px;gap:5px;white-space:nowrap}
.model-tools-content>button{grid-column:1/-1}
body:not(.walking):not(.exterior-view):not(.people-editing):not(.wallpaper-open) .enter-button{bottom:70px;left:16px;transform:none}
@media(max-height:540px) and (pointer:coarse){
 .model-tools{bottom:14px}
 .model-tools-content{max-height:clamp(88px,calc(100dvh - 235px),210px)}
 body:not(.walking):not(.exterior-view):not(.people-editing):not(.wallpaper-open) .enter-button{bottom:14px}
}

/* The same couple can be paused from either the model or interior view. */
#indoor-autowalk{border-color:#1584a3;background:#e0f5fa;color:#16455a}
#indoor-autowalk[aria-pressed="true"]{background:#184e65;color:white;border-color:#184e65}
@media(min-width:721px){
 .view-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:230px}
 .view-options #indoor-autowalk{grid-column:1/-1}
 .room-view .view-title{max-width:calc(100% - 290px)}
}
@media(max-width:720px){.view-options{gap:6px}.view-options button{padding:10px;font-size:13px;white-space:nowrap}}
@media(max-width:360px){.view-options button{padding:10px 8px;font-size:12px}}
@media(max-height:520px) and (min-width:600px){
 .view-options,.free-walk .view-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:204px;gap:6px}
 .view-options #indoor-autowalk{grid-column:1/-1}
 .room-view .view-title{max-width:calc(100% - 230px)}
}

.paper-coming-soon{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#e0f5fa;color:#16455a;font-size:14px;line-height:1.6;font-weight:600}

/* Office tour: shared TOUMEI controls, with compact project identification. */
.labels .room-label{pointer-events:auto;cursor:pointer;font:inherit;font-size:12px;border:1px solid #afc1c9;white-space:nowrap}
.project strong{letter-spacing:.02em}.project span{white-space:nowrap}
.exterior-view .view-title{pointer-events:none}
@media(max-width:720px){header .project{display:none}.wallpaper-trigger{margin-left:auto}.view-title{max-width:calc(100% - 30px)}.exterior-tools{flex-wrap:wrap;max-width:calc(100% - 28px)}.room-nav{gap:8px}.room-nav button{font-size:13px;white-space:nowrap}.prototype{font-size:11px}}

/* One campus, with both buildings kept in the same Three.js scene. */
.building-switch{position:absolute;z-index:5;top:79px;left:24px;display:flex;gap:4px;padding:4px;background:#fffffff5;border:1px solid #c9d9df;border-radius:10px;box-shadow:0 4px 18px #15344512}
.building-switch button{min-height:38px;padding:8px 18px;background:transparent;border-radius:7px;color:#405b68;font-size:14px;font-weight:600}
.building-switch button[aria-pressed="true"]{background:#173d50;color:#fff}
.view-title,.walking .view-title,.exterior-view .view-title{top:140px;left:24px;max-width:calc(100% - 48px)}
.view-title h2{font-size:23px;margin:7px 0}.view-title p{max-width:none}
.building-heading{margin:19px 12px 5px;padding-bottom:10px;border-bottom:1px solid #ffffff20;font-size:15px;font-weight:700;color:#e9f8fb}
.room-list .group-label{padding-top:10px}
.menu-section{border:0;padding:6px 0 0;margin:0;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}
.menu-section legend{font-size:12px;color:#627c87;padding:0 2px}.menu-section .wide{grid-column:1/-1}
.shutter-control{position:absolute;z-index:4;right:14px;bottom:138px;min-height:44px;padding:12px 15px;color:#173d50;background:#fffffff2;font-size:13px;border:1px solid #c9d9df;border-radius:10px;box-shadow:0 4px 18px #15344515}
.shutter-control[aria-pressed="true"]{background:#e1f2f2}
.exterior-view .enter-button{bottom:138px;left:24px;right:auto;transform:none;padding:13px 19px}
.exterior-tools{bottom:68px}.building-label{font-weight:700!important;padding:12px 16px!important;box-shadow:0 4px 18px #173d5025}
.drawing-tabs{display:flex;gap:6px;padding:12px 20px;background:#f0f5f6}.drawing-tabs button{min-height:42px;padding:9px 18px;background:white;color:#385460;border-radius:7px;font-size:14px}.drawing-tabs button[aria-pressed="true"]{background:#173d50;color:#fff}
.wallpaper-open .building-switch{z-index:4}.wallpaper-open .shutter-control{display:none}
@media(max-width:720px){
 .building-switch{top:67px;left:14px;right:auto}.building-switch button{min-height:36px;padding:8px 17px;font-size:13px}
 .view-title,.walking .view-title,.exterior-view .view-title{top:124px;left:14px;max-width:calc(100% - 28px)}
 .view-title h2,.walking .view-title h2,.exterior-view .view-title h2{font-size:19px}.view-title p{font-size:11px}
 .exterior-view .enter-button{bottom:126px;left:14px;padding:12px 16px;font-size:13px}.shutter-control{bottom:126px;right:14px;padding:12px 10px;font-size:12px}
 .walking .shutter-control{bottom:84px}.exterior-tools{bottom:60px}.drawing-tabs{padding:10px;gap:5px}.drawing-tabs button{flex:1;padding:9px 10px;font-size:13px}
 .project strong{font-size:14px}.wallpaper-trigger{font-size:12px}
}
@media(max-height:560px) and (min-width:600px){
 .building-switch{top:60px;left:12px}.building-switch button{min-height:33px;padding:6px 14px}
 .view-title,.walking .view-title,.exterior-view .view-title{top:110px;left:12px;padding:7px 10px}.view-title h2,.walking .view-title h2,.exterior-view .view-title h2{font-size:16px}.view-title p{display:none}
 .exterior-view .enter-button{bottom:14px;left:auto;right:14px}.shutter-control{bottom:66px}.walking .shutter-control{bottom:76px}.exterior-tools{bottom:14px;left:12px;transform:none}
}
