:root{--bim-bg:#f3f4f4}
.bim-shell{position:absolute;inset:0;z-index:2;background:var(--bim-bg)}
.bim-shell[hidden]{display:none}
.bim-shell iframe{width:100%;height:100%;border:0;display:block}
.bim-shell iframe[hidden]{display:none}
.bim-active #layout-svg{visibility:hidden}
.bim-active>.map-tools,.bim-active>.map-context{display:none}
.bim-launch{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;gap:12px}
.bim-launch[hidden]{display:none}
.bim-launch h3{font-size:24px;font-weight:650;color:#25423f}
.bim-launch p{font-size:13px;color:#6a7977;max-width:300px;line-height:1.7}
.bim-mark{display:grid;place-items:center;background:#dce9e4;color:#34695f;letter-spacing:.18em;border-radius:22px;width:80px;height:80px;font-weight:700}
#bim-message{position:absolute;left:12px;right:12px;bottom:38px;padding:8px 12px;pointer-events:none;font-size:12px;line-height:1.55;background:#ffffffed;border-radius:7px;color:#526863}
#bim-message:empty{display:none}
.map-panel{min-width:0}
.geometry-note{padding:8px 16px}
@media(max-width:639px){
 .bim-shell{top:58px}
 #floor-tabs{z-index:6}
 .bim-active #floor-tabs{z-index:6}
 .bim-launch h3{font-size:19px}
 .bim-launch{padding:16px;gap:8px}
 #bim-message{bottom:30px;font-size:11px}
 .map-canvas{min-height:0}
}
.source-form-link{font-size:12px;color:#37675e;text-decoration:none;white-space:nowrap;padding:9px}
@media(max-width:639px){.source-form-link{display:none}}
.bim-load-button{border:0;background:#173f3b;color:white;padding:12px 24px;border-radius:7px;font:inherit;font-size:14px;cursor:pointer;min-width:160px}
@media(max-width:639px){
 .map-heading h2:before{content:"BIM 進度"}
 .bim-launch{padding-left:72px}
 .bim-shell{top:0}
 .bim-mobile-note{font-size:11px!important}
 .bim-active #floor-tabs{max-height:100%;overflow-y:auto}
}
@media(max-width:639px),(max-width:1100px) and (max-height:520px){
 .progress-panel .broad-controls:not([hidden]){display:block}
 .progress-panel .broad-filter-row{display:flex;gap:8px;align-items:center;margin-top:5px}
 .progress-panel .broad-filter-row label{display:flex;align-items:center;gap:6px;font-size:11px}
 .progress-panel #broad-zone{max-width:180px;min-height:30px;font-size:12px}
 .progress-panel .broad-filter-row [data-broad-source]{display:inline-block;font-size:11px}
}
.report-entry.model-selected{border-color:#c78854;box-shadow:0 0 0 1px #c7885433}
.report-model-action{display:flex;justify-content:flex-end;margin:8px 0}
.report-model-action button{font-size:12px;color:#315f55;background:#f4f8f4;border:1px solid #d0dfd7;border-radius:5px;padding:5px 9px}
.facade-bim.bim-active #layout-svg{visibility:visible;width:48%;height:100%}
.facade-bim .bim-shell{left:49%;border-left:1px solid #d3ddd6}
@media(max-width:700px){.facade-bim.bim-active #layout-svg{width:100%;height:42%}.facade-bim .bim-shell{left:0;top:43%;border-left:0;border-top:1px solid #d3ddd6}}

.mobile-floor-home,#mobile-bim-tools{display:none}
.mobile-board .app-header{height:46px;min-height:46px;flex:0 0 46px;padding:4px 8px;gap:6px;overflow:hidden;transition:height .18s,min-height .18s,flex-basis .18s,padding .18s}
.mobile-board .identity{gap:5px}.mobile-board .identity h1{font-size:13px;letter-spacing:0}.mobile-board .identity h1 span,.mobile-board .identity p,.mobile-board .source-form-link{display:none}
.mobile-board .brand-mark{width:22px;height:25px;font-size:18px;border-radius:5px}
.mobile-board .header-controls{width:auto;gap:4px;min-width:0}
.mobile-board .date-control input{width:130px;height:34px;min-height:34px;padding:2px 3px;font-size:16px}
.mobile-board .date-control>span,.mobile-board .current-label,.mobile-board .refresh-label,.mobile-board #fullscreen-view{display:none}
.mobile-board .current-short{display:inline}.mobile-board #current-date{min-width:28px;padding:2px;font-size:10px}
.mobile-board .refresh-button{width:30px;min-height:34px;height:34px;padding:0;display:grid;place-items:center}.mobile-board .refresh-button>span{margin:0;font-size:22px}
.mobile-board #open-targets{padding:3px 6px;min-height:32px;border:1px solid #d4dfd7;border-radius:5px;background:#f3f7f1;color:#315d50;font-size:11px;white-space:nowrap}
.mobile-board .status-bar{flex:none;min-height:17px;padding:0 8px;font-size:8px}.mobile-board .status-bar>div{display:block}.mobile-board #sync-time{font-size:8px}
.mobile-board.header-away .app-header{height:0;min-height:0;flex-basis:0;padding-top:0;padding-bottom:0;border:0}
.mobile-board.header-away .status-bar{display:none}
.mobile-board .panel-heading{padding:5px 10px 4px}.mobile-board .panel-heading>.eyebrow{display:none}.mobile-board .panel-title-row h2{font-size:16px}.mobile-board .panel-title-row{gap:6px}
.mobile-board #panel-description{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.mobile-board .back-button,.mobile-board .copy-summary{min-height:27px;padding:3px 6px;font-size:10px}
.mobile-board .mobile-floor-home{display:block;flex:none;padding:5px 7px 0}
.mobile-board .mobile-floor-home .floor-tabs{display:flex;flex-direction:row;gap:1px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;padding:2px;border:0;border-radius:5px;background:#edf1eb}
.mobile-board .mobile-floor-home .floor-tabs button{flex:none;min-width:35px;min-height:29px;padding:3px 8px;font-size:11px}
.mobile-board .broad-controls{padding:3px 7px!important;flex:none}.mobile-board .broad-work-options{gap:3px;padding:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.mobile-board .broad-work-options>span{display:none}.mobile-board .broad-work-options button{flex:none;min-height:28px;padding:2px 6px;font-size:11px;white-space:nowrap}.mobile-board .broad-work-options button small{font-size:9px}
.mobile-board .broad-filter-row,.mobile-board .progress-panel .broad-filter-row{display:none!important}
.mobile-board .panel-content{padding:7px 9px 12px}.mobile-board .discipline{margin-bottom:13px}.mobile-board .discipline h3{font-size:12px;margin:0 0 6px}.mobile-board .discipline h3 span{font-size:10px}
.mobile-board .metrics{display:none}.mobile-board .panel-bottom{min-height:21px;padding:0 8px;font-size:9px}.mobile-board .panel-bottom button{min-height:21px;font-size:9px}
.mobile-board .report-entry{margin-bottom:8px}.mobile-board .report-entry summary{padding:7px 9px;min-height:37px}.mobile-board .report-entry summary strong{font-size:13px}.mobile-board .report-entry summary small{font-size:10px}.mobile-board .report-date-tag{font-size:9px}
.mobile-board .report-body{padding:0 9px 8px}.mobile-board .report-body p{font-size:12px;line-height:1.65;margin:0 0 6px}.mobile-board .report-body.report-with-photos{display:grid;grid-template-columns:minmax(0,1fr) 104px;column-gap:9px;align-items:start}
.mobile-board .report-copy{grid-column:1;order:0;min-width:0}.mobile-board .report-with-photos>.record-photos{grid-column:2;grid-row:1;order:0;width:104px;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 0 5px;gap:4px;position:relative}
.mobile-board .record-photos button{width:104px;flex:0 0 104px;height:94px;scroll-snap-align:start}.mobile-board .report-with-photos>.report-model-action,.mobile-board .report-with-photos>.report-meta{grid-column:1/-1}
.mobile-board .record-photos[data-many=true]::after{content:attr(data-count) ' · 左右滑';position:absolute;right:3px;bottom:3px;padding:1px 4px;border-radius:3px;background:#244d40df;color:#fff;font-size:9px;line-height:1.5;pointer-events:none;white-space:nowrap}
.mobile-board .report-model-action{margin:3px 0 5px}.mobile-board .report-model-action button{min-height:25px;padding:2px 6px;font-size:10px}.mobile-board .report-meta{order:4;padding-top:5px;font-size:9px}
.mobile-board .map-heading{min-height:35px;height:35px;flex:none;padding:0 3px;gap:4px;flex-wrap:nowrap}.mobile-board .map-heading>div:first-child{flex:none}.mobile-board .map-heading .eyebrow,.mobile-board .map-heading h2 span{display:none}
.mobile-board .map-heading h2{font-size:0;white-space:nowrap}.mobile-board .map-heading h2:before{content:'BIM 進度';font-size:13px;font-weight:650}
.mobile-board #floor-tabs-home,.mobile-board .map-meta,.mobile-board .map-footer,.mobile-board .zone-strip{display:none!important}
.mobile-board .map-canvas>.map-tools{display:none}
.mobile-board #mobile-bim-tools{display:flex;align-items:center;gap:3px;margin-left:auto}.mobile-board #mobile-bim-tools button{border:1px solid #d3ded7;border-radius:5px;background:#f8faf6;color:#34584d;min-width:29px;min-height:29px;height:29px;padding:2px 5px;font-size:12px}
.mobile-board .mobile-view-options{display:flex;gap:1px;margin-right:3px}.mobile-board #mobile-bim-tools [data-bim-view]{font-size:11px;min-width:35px}.mobile-board #mobile-bim-tools [aria-pressed=true]{background:#214e43;color:#fff;border-color:#214e43}
.mobile-board #mobile-bim-tools [data-bim-command=fit]{font-size:10px;min-width:36px}.mobile-board #mobile-bim-tools button:disabled{opacity:.4}
.mobile-board #bim-message{bottom:5px;left:7px;right:7px;margin:0;padding:3px 6px;font-size:9px;line-height:1.4;background:#ffffffcf;max-height:30px;overflow:hidden}
.mobile-board .geometry-note{padding:2px 5px;font-size:9px;line-height:1.4;max-height:25px;margin:0;overflow:auto}
.mobile-board .bim-launch{padding:10px}.mobile-board .bim-shell{top:0}.mobile-board .rotation-tip{display:none}
@media(max-width:700px){
 .mobile-board .workspace{--panel-layout:stack;--default-details-ratio:.58;--min-details-height:230;--min-layout-height:220;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,var(--details-height,1.2fr)) 14px minmax(0,1fr);padding:0 4px max(4px,env(safe-area-inset-bottom));gap:0}
 .mobile-board .panel-splitter{height:14px;min-height:14px}.mobile-board .splitter-grip{height:6px;width:44px}.mobile-board .splitter-grip:after{display:none}
 .mobile-board .progress-panel,.mobile-board .map-panel{width:100%;min-height:0}.mobile-board .map-canvas{min-height:0}
}
@media(max-width:360px){.mobile-board .identity h1{display:none}.mobile-board .report-body.report-with-photos{grid-template-columns:minmax(0,1fr) 88px}.mobile-board .report-with-photos>.record-photos,.mobile-board .record-photos button{width:88px}.mobile-board .record-photos button{flex-basis:88px;height:84px}}
@media(prefers-reduced-motion:reduce){.mobile-board .app-header{transition:none}}
