:root{font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:#20282b;background:#f7f8fa;font-synthesis:none;--blue:#3458cd;--blue-deep:#2746ab;--border:#dfe3e6;--muted:#687378;--mono:"IBM Plex Mono",Consolas,monospace}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,a,input,select{font:inherit}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,#stage:focus-visible{outline:3px solid #758eed;outline-offset:3px}button svg,span svg,a svg,h2 svg{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none}button>span[data-i],a>span[data-i],h2>span[data-i]{display:inline-flex;align-items:center}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}[hidden]{display:none!important}
.topbar{height:72px;display:flex;align-items:center;padding:0 clamp(20px,3.4vw,66px);border-bottom:1px solid var(--border);background:#fff;gap:22px;position:relative}.brand{display:flex;align-items:center;gap:10px}.brand img{width:34px;height:34px}.brand strong{color:#202b32;font-size:22px;font-weight:720;letter-spacing:-1.05px}.project-name{font-weight:600;font-size:15px;color:#58656d;border-left:1px solid #d7dce1;padding-left:20px;white-space:nowrap}.topbar nav{align-self:stretch;display:flex;align-items:stretch;gap:30px;margin-left:clamp(10px,3vw,52px)}.topbar nav a{display:flex;align-items:center;position:relative;font-size:15px;white-space:nowrap;color:#616b73}.topbar nav a[aria-current=page]{color:var(--blue);font-weight:650}.topbar nav a[aria-current=page]:after{content:"";height:3px;background:var(--blue);position:absolute;bottom:0;left:0;right:0;border-radius:2px 2px 0 0}.local{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:13px;color:#52605b;white-space:nowrap}.local i,.param-source i{width:7px;height:7px;background:#3e916e;border-radius:50%;display:inline-block}.local i{box-shadow:0 0 0 4px #e7f2eb}
main{max-width:1820px;margin:auto;padding:0 clamp(20px,3.4vw,66px)}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:30px 0 23px}.breadcrumb{display:flex;align-items:center;gap:9px;color:#6c777e;font-size:13px;margin-bottom:9px}.breadcrumb svg{width:15px;height:15px}.breadcrumb b{color:#acb3b9;font-weight:400;padding:0 2px}h1{font-size:clamp(28px,2.5vw,42px);font-weight:690;line-height:1.35;letter-spacing:-.045em}h2{font-size:18px;letter-spacing:-.03em}h3{font-size:16px}.mode-tabs,.floors,.view-tabs{display:inline-flex;align-items:center}.mode-tabs{padding:4px;border:1px solid #dde2e6;border-radius:9px;background:#eceff2}.mode-tabs button,.floors button,.view-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;white-space:nowrap;font-weight:550;border-radius:6px}.mode-tabs button{padding:8px 14px;color:#667178;min-height:35px}.mode-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 4px #152a431c}.mode-tabs svg{width:16px;height:16px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(270px,23vw,345px);gap:18px;align-items:stretch}.panel{background:white;border:1px solid var(--border);border-radius:12px}.viewer{position:relative;overflow:hidden;isolation:isolate;background-color:#edf0f2;background-image:linear-gradient(#90a1aa13 1px,transparent 1px),linear-gradient(90deg,#90a1aa13 1px,transparent 1px),radial-gradient(ellipse at center,#f4f5f3 0%,#eaf0f2 100%);background-size:25px 25px,25px 25px,100% 100%;min-height:490px}.viewer.expanded,.viewer:fullscreen{position:fixed;inset:0;width:100%;height:100%;z-index:30;border-radius:0}.view-title{position:absolute;left:24px;top:23px;pointer-events:none}.overline{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.04em;color:#59676e}.blue-dot{width:6px;height:6px;background:var(--blue);border-radius:2px}.view-title h2{font-size:23px;font-weight:650;color:#2d383e;margin-top:4px}.floors{position:absolute;right:19px;top:20px;background:#ffffffeb;padding:4px;border:1px solid #d7dfe2;border-radius:8px;box-shadow:0 2px 6px #22364805}.floors button{font-size:13px;min-width:43px;min-height:30px;color:#657076}.floors button[aria-pressed=true]{color:white;background:#34454f}.viewer #stage,.viewer #labels{position:absolute;inset:0}.viewer #stage{touch-action:none}.viewer canvas{display:block;touch-action:none}.viewer #labels{pointer-events:none}.room-label{position:absolute;transform:translate(-50%,-100%);border:1px solid #d5dce0;border-radius:5px;box-shadow:0 2px 6px #14273512;font-size:12px;padding:3px 7px;background:#fffffff2;pointer-events:auto;white-space:nowrap}.room-label:after{display:block;content:"";width:1px;height:6px;background:#737c82;position:absolute;top:100%;left:50%}.view-footer{position:absolute;bottom:18px;left:20px;right:20px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.view-footer>*{pointer-events:auto}.view-tabs,.expand,.zoom-tools{background:#fffffff2;border:1px solid #d2dade;border-radius:8px;box-shadow:0 2px 6px #1e33450a}.view-tabs{padding:4px;gap:2px}.view-tabs button{font-size:13px;padding:7px 11px;color:#59676e;min-height:32px}.view-tabs svg{width:16px;height:16px}.view-tabs button[aria-pressed=true]{background:#e9eefb;color:var(--blue-deep)}.zoom-tools{position:absolute;right:20px;bottom:73px;display:flex;flex-direction:column;padding:3px}.zoom-tools button,.icon-button{display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border-radius:6px;color:#59666e}.zoom-tools button:hover,.icon-button:hover{background:#edf1f6}.zoom-tools svg{width:16px;height:16px}.expand{height:39px;width:39px;background:#fffffff2}.view-footer .expand:hover{background:white}.viewer #modelNote{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);padding:9px 13px;background:#ffffffeb;border-radius:6px;color:#52606a;font-size:13px;max-width:85%;text-align:center}#modelNote.subtle{top:auto;bottom:60px;max-width:72%;font-size:12px}.model-fallback{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.inspector{display:flex;flex-direction:column;gap:12px}.panel-head,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head{min-height:40px}.panel-head h2,.section-heading h2{display:flex;align-items:center;gap:9px}.panel-head h2{font-size:16px;font-weight:670}.panel-head h2 svg{color:#51616c;width:17px;height:17px}.panel-head .icon-button{width:30px;height:30px}.panel-head .icon-button svg{width:14px;height:14px}.layer-panel,.params-panel{padding:8px 17px 12px}.layer-panel .panel-head{border-bottom:1px solid #edf0f2;margin-bottom:4px}.layer-row{display:flex;align-items:center;gap:10px;width:100%;min-height:37px;font-size:14px;text-align:left;padding:2px 0}.layer-row>.swatch{width:22px;display:flex;justify-content:center}.swatch svg{width:16px;height:16px}.toggle{height:18px;width:32px;border-radius:12px;position:relative;background:#c6ced2;transition:background .15s;margin-left:auto;flex:none}.toggle:after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #0002;transition:left .15s}.layer-row[aria-checked=true] .toggle{background:var(--blue)}.layer-row[aria-checked=true] .toggle:after{left:17px}.text-action,#evidenceLink{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--blue);font-weight:550}.text-action svg,#evidenceLink svg{width:14px;height:14px}.text-action:hover,#evidenceLink:hover{text-decoration:underline}#evidenceLink{padding:8px 0 0}.measurements{display:flex;margin:8px 0 11px}.measurements>div{width:50%;color:#738087;font-size:12px}.measurements>div+div{border-left:1px solid var(--border);padding-left:18px}.measurements span{display:block;font-size:12px;color:#69757d;margin-bottom:3px}.measurements strong{font-family:var(--mono);font-weight:530;font-size:24px;color:#243138;letter-spacing:-.09em}.param-source{font-size:12px;color:#768087;display:flex;align-items:center;gap:6px}.param-source i{width:5px;height:5px;background:#ba8d41}.params-panel>.panel-head{min-height:32px}.pano-feature{display:block;position:relative;flex:1;min-height:126px;overflow:hidden;text-align:left;border-radius:11px;background:#584f47;padding:0}.pano-feature>img,.angle-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}.pano-feature:hover>img,.angle-card:hover>img{transform:scale(1.035)}.feature-shade{position:absolute;inset:0;background:linear-gradient(0deg,#121a21b3,transparent 78%)}.pano-copy{position:absolute;left:16px;bottom:13px;color:white}.pano-copy small{display:flex;align-items:center;gap:6px;font-size:12px;margin-bottom:4px}.pano-copy small svg{width:16px;height:16px}.pano-copy strong{font-size:20px;font-weight:620}.feature-open,.angle-open{position:absolute;right:14px;bottom:15px;color:white;display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff80;border-radius:50%;background:#ffffff15}.feature-open svg,.angle-open svg{width:15px;height:15px}.angles{margin-top:26px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:21px}.section-line{width:4px;height:19px;background:var(--blue);border-radius:3px}.angle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.angle-card{position:relative;aspect-ratio:2.25;overflow:hidden;display:block;border-radius:9px;text-align:left;background:#586067}.angle-card>strong{position:absolute;left:14px;bottom:12px;color:white;font-weight:600;font-size:17px}.angle-card .angle-open{width:26px;height:26px;right:12px;bottom:12px}.angle-card .angle-open svg{width:13px;height:13px}
footer{margin:32px 0 18px;border-top:1px solid var(--border);padding-top:14px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#809098}.footer-brand{display:flex;gap:7px;align-items:center;font-weight:600;letter-spacing:-.03em}.footer-brand img{filter:grayscale(1);width:17px;height:17px;opacity:.65}
dialog{border:1px solid var(--border);border-radius:14px;padding:0;background:#fafbfc;width:min(505px,94vw);max-width:96vw;max-height:92dvh;color:inherit;box-shadow:0 20px 100px #101c3a26}dialog.wide{width:min(1150px,96vw)}dialog::backdrop{background:#17233087;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--border);background:white;position:sticky;top:0;z-index:4}.dialog-head h2{font-size:17px}.dialog-head .icon-button{background:#f1f3f5}.dialog-gallery,.room-grid{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.dialog-gallery .angle-card{aspect-ratio:1.7}.dialog-frame{width:100%;height:min(71dvh,720px);border:0;display:block}.form-body{padding:20px;display:grid;gap:15px}.form-body label{display:grid;gap:7px;font-size:14px;font-weight:600}.form-body input,.form-body select,.room-picker{border:1px solid #cbd3d8;border-radius:6px;padding:9px 10px;background:white;color:inherit;font-size:16px;min-height:40px}.form-body p,.hint{font-size:13px;line-height:1.7;color:#66757d}.form-actions{display:flex;justify-content:flex-end;gap:10px}.primary-btn,.sub-btn,.room-choice{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;font-size:14px;font-weight:580;min-height:38px;padding:8px 15px}.primary-btn{background:var(--blue);color:white}.sub-btn,.room-choice{background:white;border:1px solid var(--border)}.primary-btn:hover{background:var(--blue-deep)}.room-choice:hover,.sub-btn:hover{background:#eef2f9}.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;background:#263b49;color:white;border-radius:7px;padding:10px 18px;font-size:14px;z-index:50}.viewer #walkPad{position:absolute;bottom:78px;left:20px;text-align:center}.viewer #walkPad button{width:36px;height:36px;margin:1px;background:white;border:1px solid var(--border);border-radius:6px}.room-picker{position:absolute;top:87px;left:23px;max-width:42%;min-height:32px;padding:3px 8px;font-size:13px}.object-info{position:absolute;left:20px;bottom:75px;max-width:68%;padding:8px 10px;border-radius:6px;background:white;border:1px solid var(--border);font-size:13px;box-shadow:0 2px 8px #0001}
@media(min-width:1550px){.viewer{min-height:570px}.layer-row{min-height:43px}.pano-feature{min-height:160px}.layer-panel,.params-panel{padding-left:20px;padding-right:20px}}
@media(max-width:1050px){.topbar{gap:14px}.topbar nav{gap:17px;margin-left:8px}.project-name{padding-left:14px}.workspace{grid-template-columns:minmax(0,1fr) 244px;gap:12px}.layer-panel,.params-panel{padding-left:13px;padding-right:13px}.view-title{left:16px;top:17px}.floors{right:12px;top:14px}.view-title h2{font-size:21px}.view-footer{left:12px;right:12px}.zoom-tools{right:12px}.view-tabs button{padding:6px 9px}.angle-grid{gap:10px}}
@media(max-width:760px){.topbar{height:auto;min-height:55px;padding-top:9px;flex-wrap:wrap;gap:6px 12px}.brand img{width:28px;height:28px}.brand strong{font-size:19px}.project-name{font-size:13px}.topbar nav{order:4;width:100%;height:42px;gap:24px;margin:0}.topbar nav a{font-size:14px}.local{font-size:12px}.workspace{grid-template-columns:1fr}.viewer{min-height:clamp(380px,55vh,580px)}.inspector{display:grid;grid-template-columns:1fr 1fr;gap:10px}.layer-panel{grid-row:span 2}.pano-feature{min-height:98px}.layer-row{min-height:40px}.page-heading{margin:18px 0 15px}.breadcrumb{margin-bottom:5px}.mode-tabs button{font-size:13px;padding:7px 8px}.angle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-gallery{grid-template-columns:1fr 1fr}.angles{margin-top:20px}.view-title h2{font-size:19px}.floors button{min-width:40px}.feature-open{width:25px;height:25px;right:9px;bottom:9px}}
@media(max-width:490px){main,.topbar{padding-left:14px;padding-right:14px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.mode-tabs button{min-height:29px}.topbar nav{gap:0;justify-content:space-between}.viewer{min-height:385px}.view-title{left:12px;top:12px}.floors{top:12px}.view-title h2{font-size:17px}.layer-panel,.params-panel{padding:6px 10px 9px}.panel-head h2{font-size:14px;gap:5px}.layer-row{font-size:13px;gap:5px}.measurements strong{font-size:20px}.measurements>div+div{padding-left:6px}.angle-card{aspect-ratio:1.65}.pano-copy{left:10px;bottom:8px}.section-heading h2{font-size:18px}.local{font-size:11px}.dialog-gallery{padding:12px}.view-tabs button{font-size:12px}.room-picker{top:68px;left:12px}}
.gesture{margin:auto auto auto 12px;color:#647079;font-size:12px;pointer-events:none!important;text-shadow:0 1px 3px #fff}.evidence-note{border-top:1px solid var(--border);margin-top:6px;padding-top:8px;color:#68767d;font-size:12px;line-height:1.65}.evidence-note a{display:flex!important;width:fit-content}.object-info{display:flex;flex-wrap:wrap;align-items:center;gap:8px;line-height:1.5}.revision{display:flex;align-items:center;justify-content:space-between;padding-top:9px;margin-top:9px;border-top:1px solid var(--border);font-size:13px;color:#64717a}.revision select{color:#344864;background:white;border:1px solid var(--border);border-radius:5px;font-size:13px;padding:5px 8px}.viewer[data-view=walk] .view-title{padding:7px 11px;border-radius:7px;background:#ffffffdc}.viewer[data-view=walk] .room-picker{top:101px}.viewer[data-view=walk] .gesture{background:#ffffffdf;border-radius:5px;padding:5px 7px}.form-error{color:#a2392e!important}
@media(min-width:761px) and (max-width:900px) and (orientation:portrait){.workspace{grid-template-columns:1fr}.viewer{min-height:48vh}.inspector{display:grid;grid-template-columns:1.1fr 1fr 1fr}.layer-row{min-height:34px}.params-panel{height:fit-content}.pano-feature{min-height:145px;max-height:210px}}
@media(max-width:980px){.gesture{display:none}}@media(max-width:490px){.viewer[data-view=walk] .room-picker{top:81px}}
.reference-source{border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;font-size:13px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.ceiling-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:3px 0 9px;color:#677078;font-size:12px}.ceiling-legend span{display:flex;align-items:center;gap:5px}.ceiling-legend i{width:9px;height:9px;border-radius:2px}
.system-row{display:flex;align-items:center;gap:9px}.system-row .layer-row{flex:1;min-width:0}.system-row .layer-row:disabled{opacity:.5}.system-row+.layer-row{border-top:1px solid var(--border);margin-top:4px;padding-top:5px}
.layer-solo,.layer-empty{font-size:12px;white-space:nowrap}.layer-solo{color:#49598a;background:#f1f4f9;border:1px solid #dde4ee;border-radius:5px;padding:4px 7px;min-height:30px}.layer-solo:hover{background:#e4eaf5}.layer-empty{color:#79818a}
.evidence-note a[hidden]{display:none!important}
.service-info{z-index:3;max-height:52%;overflow:auto;padding:12px 30px 12px 13px;max-width:min(78%,540px)}.service-info>strong,.service-info>span{flex-basis:100%}.service-info>span{color:#53616a}.info-close{position:absolute;right:4px;top:4px}.info-close svg{width:15px;height:15px}.service-plan{width:100%;height:100%;display:block}.service-plan path[role=button]{cursor:pointer}
@media(max-width:490px){.inspector:has(.system-row){grid-template-columns:1fr}.inspector:has(.system-row) .layer-panel{grid-row:auto}.service-info{left:8px;max-width:calc(100% - 16px);bottom:59px}}

#layerPeek{display:none}
body:has(.viewer.expanded),body:has(dialog[open]){overflow:hidden}
@media (max-width:640px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
  button,a,select{touch-action:manipulation}
  main,.topbar{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  .topbar{padding-top:max(8px,env(safe-area-inset-top));height:auto;min-height:53px;flex-wrap:wrap;gap:5px 10px}
  .brand img{height:27px;width:27px}.brand strong{font-size:19px}
  .topbar nav{height:44px;gap:0;justify-content:space-between;margin:0;order:4;width:100%}
  .topbar nav a{min-height:44px;font-size:14px}
  .workspace{grid-template-columns:minmax(0,1fr);gap:12px}
  .page-heading{margin:16px 0 12px;align-items:center;gap:8px 16px;flex-wrap:wrap}
  .mode-tabs button{min-height:40px}
  .viewer{--viewer-top:61px;--viewer-bottom:63px;min-height:0;height:clamp(354px,54svh,530px)}
  .viewer #stage,.viewer #labels{inset:var(--viewer-top) 0 var(--viewer-bottom)}
  .view-title,.viewer[data-view=walk] .view-title{left:12px;top:10px;max-width:calc(100% - 170px)}
  .view-title h2{font-size:16px;line-height:1.3;margin-top:3px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .overline{font-size:11px}
  .floors{top:8px;right:8px;padding:2px}
  .floors button{min-width:44px;min-height:40px}
  .view-footer{left:7px;right:7px;bottom:8px;align-items:center;gap:4px}
  .view-tabs{padding:2px;gap:0}.view-tabs button{min-height:40px;padding:5px 7px;gap:4px;font-size:13px}
  .view-tabs svg{width:15px;height:15px}
  .viewer .expand,.zoom-tools button,.viewer #walkPad button{height:42px;width:42px;flex:none}
  #layerPeek{margin-left:auto;display:inline-flex;gap:4px;align-items:center;justify-content:center;min-height:44px;padding:0 8px;font-size:13px;color:#42515b;background:#ffffffed;border:1px solid #d2dade;border-radius:8px}
  #layerPeek svg{width:16px;height:16px}#layerPeek[aria-expanded=true]{color:var(--blue);border-color:#9aabe0;background:#f1f4ff}
  #layerDrawer{position:absolute;z-index:5;inset:auto 7px calc(var(--viewer-bottom) - 2px);max-height:calc(100% - var(--viewer-top) - var(--viewer-bottom));overflow:auto;overscroll-behavior:contain;border:1px solid #ccd6de;border-radius:10px;box-shadow:0 5px 25px #1a2f4830;background:white}
  #layerDrawer .layer-panel{padding:0 12px 9px;border:0}
  #layerDrawer .panel-head{position:sticky;top:0;background:#fff;z-index:1}
  .viewer:has(#layerDrawer:not([hidden])) .zoom-tools,.viewer:has(#layerDrawer:not([hidden])) #walkPad{visibility:hidden}
  .zoom-tools{inset:auto 8px calc(var(--viewer-bottom) + 1px) auto;flex-direction:row;padding:1px}
  .zoom-tools button{width:40px;height:40px}
  .viewer #walkPad{left:8px;bottom:calc(var(--viewer-bottom) + 1px)}
  .viewer[data-view=walk] .view-title,.viewer[data-view=walk] .zoom-tools [data-act^=zoom]{display:none}
  .viewer[data-view=walk] .room-picker{top:8px;left:8px;max-width:calc(100% - 160px);min-height:44px;padding:4px 8px;font-size:16px}
  .viewer .object-info{bottom:calc(var(--viewer-bottom) + 1px);left:7px;max-width:calc(100% - 14px);max-height:54%;overflow:auto;z-index:3}
  .viewer:has(.object-info) .zoom-tools,.viewer:has(.object-info) #walkPad{visibility:hidden}
  .viewer .service-info{padding-right:40px}.info-close{width:40px;height:40px}
  .viewer #modelNote.subtle{bottom:var(--viewer-bottom);max-width:55%;left:7px;transform:none;padding:4px;font-size:11px}
  .viewer.expanded,.viewer:fullscreen{height:100dvh;min-height:0;--viewer-top:calc(61px + env(safe-area-inset-top));--viewer-bottom:calc(63px + env(safe-area-inset-bottom))}
  .viewer:is(.expanded,:fullscreen) .view-title,.viewer:is(.expanded,:fullscreen) .room-picker,.viewer:is(.expanded,:fullscreen) .floors{top:calc(8px + env(safe-area-inset-top))}
  .viewer:is(.expanded,:fullscreen) .view-title,.viewer:is(.expanded,:fullscreen) .room-picker,.viewer:is(.expanded,:fullscreen) #walkPad{left:max(8px,env(safe-area-inset-left))}
  .viewer:is(.expanded,:fullscreen) .view-footer{bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}
  .viewer:is(.expanded,:fullscreen) .floors,.viewer:is(.expanded,:fullscreen) .zoom-tools{right:max(8px,env(safe-area-inset-right))}
  .inspector{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .inspector:has(.system-row){grid-template-columns:minmax(0,1fr)}
  .inspector:has(.system-row) .layer-panel{grid-row:auto}
  .layer-row,.layer-solo,.panel-head .icon-button,.panel-head .text-action,.text-action#allAngles{min-height:44px}
  .panel-head .icon-button,.layer-solo{min-width:44px}
  .evidence-note a,.object-info .text-action{min-height:40px}
  .dialog-head{padding:6px 12px}.dialog-head .icon-button,.form-actions button,.room-choice{min-height:44px}
  .dialog-head .icon-button{min-width:44px}.dialog-head h2{font-size:16px}
  footer{padding-bottom:env(safe-area-inset-bottom)}.gesture{display:none}
}
@media (max-width:375px){
  .inspector{grid-template-columns:minmax(0,1fr)}.layer-panel{grid-row:auto}
  .view-tabs button{padding-inline:5px;gap:2px}
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape){
  .topbar{flex-wrap:nowrap}.topbar nav{width:auto;flex:1;order:initial;justify-content:center;gap:clamp(12px,3vw,28px)}
  .page-heading{margin:12px 0}.page-heading h1{font-size:25px}
  .viewer{height:clamp(278px,83svh,414px)}
  #layerDrawer{left:auto;width:min(350px,55%)}.zoom-tools{right:210px;bottom:9px}
  .viewer[data-view=walk] #walkPad{bottom:calc(var(--viewer-bottom) + 1px)}
  .inspector,.inspector:has(.system-row){display:grid;grid-template-columns:1.15fr 1fr 1fr}
  .inspector .layer-panel{grid-row:auto}.inspector .params-panel{align-self:start}
}
