:root{--paper:#f5f3ed;--white:#fffefa;--ink:#263c31;--muted:#647168;--line:#d5dacf;--green:#234d38;--warm:#b17950;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 "Trebuchet MS",sans-serif}button,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,select:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b47745;outline-offset:3px}button:disabled{cursor:default;opacity:.4}button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.page{width:min(1560px,100%);margin:auto;padding:30px 36px 18px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:25px}nav{display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:11px;letter-spacing:.05em}nav a{text-decoration:none}h1{font:clamp(27px,3.4vw,48px)/1.03 Georgia,serif;letter-spacing:-.035em;font-weight:400;margin:20px 0 0}h1 em{font-weight:400;color:#72816b}.intro{font-size:14px;line-height:1.7;max-width:355px;color:var(--muted);margin:0 0 2px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.viewer-shell{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);overflow:hidden}.viewer-head{padding:19px 22px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.project-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.eyebrow{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}.project-label strong{font:22px Georgia,serif}.local-label{font-size:9px;border-left:1px solid var(--line);padding-left:10px;color:var(--muted)}.level-tabs{display:flex;gap:4px;flex-wrap:wrap}.level-tabs button,.tools button,.mode-switch button{background:transparent;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:12px;min-height:44px;color:var(--ink)}button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.mode-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 22px}.mode-switch{display:flex;gap:5px}.mode-switch button{border-color:transparent;font-size:11px}.mode-switch button[aria-pressed=true]{color:var(--green);background:#edf1e7;border-color:#d6ddcf}.section-select{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}select{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:8px;max-width:130px}.stage{position:relative;height:clamp(390px,53vw,620px);background:#eaeee4;min-width:0;overflow:hidden}#scene{display:block;width:100%;height:100%;touch-action:none}.stage-caption{position:absolute;left:16px;bottom:12px;padding:5px 9px;border-radius:5px;background:#fffefaeb;color:#53664e;font-size:10px;pointer-events:none}.plan-stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:white;touch-action:none}.plan-stage[hidden]{display:none}.plan-stage img{width:100%;height:100%;object-fit:contain;transform-origin:center;will-change:transform;user-select:none}.loading{position:absolute;inset:0;display:grid;place-items:center;background:#eaeee4e8;font-size:13px}.loading[hidden]{display:none}.stage-error{position:absolute;top:12px;left:12px;right:12px;padding:14px;background:#fffefaed;border:1px solid #b17950;color:#6f3e22}.tools{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--line);flex-wrap:wrap}.view-tools,.navigation-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tools button{padding:8px 10px;font-size:11px}.tools #zoomIn,.tools #zoomOut{font:22px Georgia,serif;min-width:44px}.roof-toggle{display:flex;align-items:center;gap:6px;font-size:11px;min-height:44px;padding:4px}.roof-toggle input{width:17px;height:17px;accent-color:var(--green)}.roof-toggle[hidden]{display:none}.gesture-help{font-size:10px;color:var(--muted);padding:0 18px 12px;margin:0}.info-panel{padding:20px 2px 0;min-width:0}.info-heading h2{font:30px/1.1 Georgia,serif;margin:9px 0 11px;letter-spacing:-.02em}.info-heading p{font-size:12px;color:var(--muted);margin:0}.area-block{padding:22px 0 15px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:2px}.area-block[hidden]{display:none}.area-block strong{font:37px/1 Georgia,serif;letter-spacing:-.04em}.area-block span{font-size:11px;color:var(--muted)}.height-note{font-size:10px;color:var(--muted);margin:15px 0}.room-list{list-style:none;padding:0;margin:0;counter-reset:room}.room-list li{counter-increment:room;display:grid;grid-template-columns:21px minmax(0,1fr) auto;gap:7px;align-items:baseline;border-bottom:1px solid #e5e7df;padding:7px 0;font-size:11px}.room-list li::before{content:counter(room,decimal-leading-zero);font-size:9px;color:#92a08c}.room-list span{min-width:0}.room-list b{font-weight:400;white-space:nowrap}.area-scope{font-size:10px;line-height:1.5;color:var(--muted);margin:13px 0}.source-note{margin-top:23px;padding-top:16px;border-top:1px solid var(--line)}.source-note strong{font-size:10px;letter-spacing:.07em;text-transform:uppercase}.source-note p{font-size:11px;line-height:1.6;color:var(--muted);margin:8px 0}.source-note a{font-size:11px;text-underline-offset:4px}.page-foot{display:flex;justify-content:space-between;gap:22px;font-size:10px;color:var(--muted);padding-top:18px}.page-foot span{white-space:nowrap;letter-spacing:.1em}.page-foot p{max-width:640px;margin:0}#viewerShell:fullscreen{width:100vw;height:100dvh;max-width:none;border:0;border-radius:0;display:flex;flex-direction:column}#viewerShell:fullscreen .stage{flex:1;height:auto;min-height:0}#viewerShell:fullscreen .gesture-help{flex-shrink:0}
@media(max-width:1100px){.page{padding:24px}.layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.viewer-head{align-items:start;flex-direction:column;gap:10px}.intro{max-width:300px;font-size:12px}.mode-bar{padding:8px 12px;gap:6px}.mode-switch button{padding:8px;font-size:10px}.section-select span{display:none}.stage{height:500px}}
@media(max-width:760px){.page{padding:16px 12px}.page-head{display:block;margin-bottom:18px}.intro{max-width:420px;margin-top:14px;font-size:12px;line-height:1.55}.page-head h1{font-size:31px;margin-top:15px}.layout{grid-template-columns:minmax(0,1fr);gap:14px}.viewer-head{padding:14px 12px 9px;gap:12px}.project-label{gap:8px}.project-label .eyebrow{font-size:8px}.project-label strong{font-size:21px}.local-label{font-size:8px}.level-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.level-tabs button{padding:8px 5px;font-size:11px;min-width:0}.mode-bar{align-items:center;padding:7px 8px}.mode-switch{gap:0}.mode-switch button{font-size:10px;padding:7px}.section-select select{font-size:10px;max-width:92px;padding:5px}.stage{height:390px;height:clamp(320px,48dvh,470px)}.tools{padding:9px 8px;gap:6px}.view-tools{flex:1;gap:4px}.tools button{font-size:10px;padding:7px}.navigation-tools{width:100%;justify-content:space-between;gap:5px}.navigation-tools #resetView,.navigation-tools #fullscreen{flex:1}.gesture-help{padding:1px 11px 11px;font-size:9px;line-height:1.5}.info-panel{padding:13px 6px;display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:0 16px}.info-heading{grid-column:1}.info-heading h2{font-size:27px}.info-heading p{font-size:11px}.area-block{grid-column:2;grid-row:1;border:0;padding:9px 0;justify-content:start}.area-block strong{font-size:28px}.area-block span{font-size:9px}.height-note,.room-list,.area-scope,.source-note{grid-column:1/-1}.room-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px}.room-list li{font-size:10px;grid-template-columns:16px minmax(0,1fr) auto;gap:3px}.source-note{margin-top:14px}.page-foot{display:block;font-size:9px}.page-foot p{margin-top:7px}#viewerShell:fullscreen .viewer-head{padding-top:10px}#viewerShell:fullscreen .stage{min-height:100px}}
#scene[hidden]{display:none}
.extra-zones{grid-column:1/-1;margin-top:16px;border-top:1px solid var(--line);padding-top:13px}.extra-zones h3{font-size:10px;letter-spacing:.04em;margin:0 0 8px;font-weight:400;text-transform:uppercase}.extra-zones dl{margin:0}.extra-zones dl div{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:4px 0}.extra-zones dd{margin:0;white-space:nowrap}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.area-block .area-unit-scope{font-size:14px;font-weight:700;color:#224c3a;margin:5px 0 2px;letter-spacing:.01em}

/* Generic model UI: no product geometry or identity in CSS. */
[hidden]{display:none!important}
.page-head h1{font-size:clamp(22px,3.2vw,42px);line-height:1.15;max-width:900px}
.project-label strong{font-size:18px;line-height:1.25}
.level-tabs{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.level-tabs button{min-height:44px;white-space:normal}
.viewer-head{gap:12px}
.test-banner,.review-banner{border:1px solid #b39a47;background:#faf0c9;color:#51451d;border-radius:6px;padding:12px 16px;font-size:14px;font-weight:700;line-height:1.45}
.load-error{border:1px solid #9b4331;color:#762f20;padding:16px;background:#fff4ed}
.area-cards{display:grid;gap:12px;margin:16px 0}
.area-card{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px}
.area-card strong{font:30px/1.1 Georgia,serif}
.area-unit-scope{font-size:14px;font-weight:700;color:#224c3a}
.area-label,.area-section{font-size:11px;line-height:1.45;color:#586657}
#roomSchedules .room-list{margin:0}
.source-note ul{padding-left:16px;font-size:10px;line-height:1.5}
.model-limitations{padding-left:16px;font-size:10px;line-height:1.5;color:#586657}
#elevationNote{font-size:12px;line-height:1.5}
@media(max-width:760px){.info-panel{display:block}.area-cards{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.project-label strong{font-size:15px}.level-tabs{justify-content:start}.level-tabs button{font-size:10px}.viewer-head{padding:12px 10px}.mode-switch{min-width:0}#stageCaption{max-width:calc(100% - 24px)}}
html.hkc3d-embedded .page-head{display:none}html.hkc3d-embedded .page{width:100%;max-width:none;margin:0;padding:0}

/* Adapted accepted landscape controls: own generic markup; see QA/upstream-copies.json. */

@media (min-width:600px) and (max-height:500px) and (orientation:landscape){
  .page{width:100%;max-width:none;padding:0}
  .layout{display:block}
  .viewer-shell,#viewerShell:fullscreen{display:grid;grid-template-columns:252px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);height:100dvh;min-height:0;border:0;border-radius:0}
  .viewer-head{grid-column:1;grid-row:1;display:block;padding:6px;min-width:0}
  #viewerShell:fullscreen .viewer-head{padding:6px}
  .project-label{display:none}
  .level-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px}
  .level-tabs button,.mode-switch button,.tools button{min-width:0;min-height:36px;padding:4px 6px;font-size:11px;line-height:1.2}
  .mode-bar{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:start;gap:6px;padding:4px 6px}
  .mode-switch{display:flex;flex-direction:column;gap:4px}
  .section-select{display:block}
  .section-select span{display:none}
  .section-select select{width:84px;max-width:84px;min-height:36px;padding:4px;font-size:11px}
  .stage,#viewerShell:fullscreen .stage{grid-column:2;grid-row:1/4;height:auto;min-height:0;align-self:stretch;flex:none}
  .tools{grid-column:1;grid-row:3;align-self:start;display:flex;flex-direction:column;gap:4px;padding:4px 6px;min-width:0}
  .view-tools{flex:none;display:flex;flex-wrap:nowrap;gap:4px;justify-content:space-between}
  .roof-toggle{min-height:36px;padding:2px;font-size:11px;gap:4px;white-space:nowrap}
  .roof-toggle input{margin:0}
  .navigation-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px}
  .tools #zoomIn,.tools #zoomOut{min-width:36px;font-size:21px}
  .gesture-help{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
  .stage-caption{left:8px;bottom:8px;padding:4px 6px;max-width:calc(100% - 16px);font-size:10px}
  .info-panel{padding:14px 12px}
  html:not(.hkc3d-embedded) .page-head{display:flex;align-items:center;height:40px;padding:4px 8px;margin:0;gap:8px}
  html:not(.hkc3d-embedded) .page-head nav,html:not(.hkc3d-embedded) .intro{display:none}
  html:not(.hkc3d-embedded) .page-head h1{font-size:18px;line-height:1.2;margin:0}
  html:not(.hkc3d-embedded) .page-head h1 br{display:none}
  html:not(.hkc3d-embedded) .page-head h1 em{margin-left:4px}
  html:not(.hkc3d-embedded) .viewer-shell{height:calc(100dvh - 40px)}
  html:not(.hkc3d-embedded) #viewerShell:fullscreen{height:100dvh}
}

.plan-stage{bottom:42px}
.plan-stage img{min-width:0;min-height:0}

/* Dynamic floor labels can be taller than the original 02 B captions. */
.plan-stage{bottom:var(--plan-caption-space,42px)}
.stage-caption{margin:0}

/* Own local review banner participates in landscape height; no model geometry. */
@media (min-width:600px) and (max-height:500px) and (orientation:landscape){
 html:not(.hkc3d-embedded) body>.review-banner{height:28px;margin:0;padding:4px 8px;border-radius:0;font-size:11px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html:not(.hkc3d-embedded) .viewer-shell{height:calc(100dvh - 68px)}
 html:not(.hkc3d-embedded) #viewerShell:fullscreen{height:100dvh}
}

.width-source-note{color:#78551d;font-size:12px;line-height:1.4;margin:8px 0 0}

/* Own3732 readiness: controls cannot consume input before engine/assets/handlers settle. */
#startupStatus{padding:10px 16px;margin:0 0 12px;background:#edf1e7;border:1px solid var(--line);font-size:13px}
#layout[aria-busy="true"]{opacity:.65}#layout[inert]{cursor:wait}#layout[aria-busy="true"] #scene{visibility:hidden}
.level-tabs{justify-content:flex-end}.level-tabs button{max-width:160px}
@media(max-width:760px){.level-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}
