:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#26372f;background:#eef0e9;font-synthesis:none;font-weight:400;--ink:#26372f;--muted:#879089;--green:#3c6351;--line:#e3e7df;--accent:#bd553e}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #bd553e;outline-offset:4px}button{transition:background .18s,color .18s,box-shadow .18s}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}h1,h2,p{margin:0}#app{height:100dvh;min-height:600px;overflow:hidden}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;background:#fbfcf8;padding:0 32px;border-bottom:1px solid var(--line);position:relative;z-index:20}.brand{display:flex;gap:14px;align-items:center}.brand-mark{width:38px;height:42px;border:1px solid #b9c3b4;display:grid;place-items:center;font-size:21px;font-family:serif;color:var(--green);position:relative}.brand-mark:after{content:"";position:absolute;bottom:-4px;right:-4px;width:12px;height:3px;background:var(--accent)}h1{font-size:21px;letter-spacing:2px;font-weight:650}h1 span{font-size:13px;letter-spacing:1px;color:#738174;margin-left:15px;border-left:1px solid #cdd4c9;padding-left:15px}.brand p{font-size:8px;letter-spacing:2.3px;margin-top:7px;color:#91978f}.top-actions{display:flex;align-items:center;gap:26px}.version{font-size:11px;color:#7b857c;letter-spacing:.6px}.version i,.status-dot{display:inline-block;width:5px;height:5px;background:#59765a;border-radius:100%;margin-right:8px}.button{border:1px solid #c8d0c4;border-radius:4px;padding:10px 14px;font-size:12px;background:#fff}.button span{margin-left:14px}.button:hover{background:#e9eee5}.workspace{display:flex;height:calc(100% - 82px)}.sidebar{width:265px;flex-shrink:0;padding:30px 24px 15px;background:#fbfcf8;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow-y:auto;z-index:10}.eyebrow{display:block;letter-spacing:2px;font-size:9px;font-weight:650;color:#8c958b}.side-intro h2{font-size:17px;letter-spacing:.7px;font-weight:600;margin:13px 0 11px}.side-intro p{font-size:11px;line-height:1.9;color:#889187}.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px 0 22px;margin-bottom:24px;border-bottom:1px solid var(--line)}.stats strong{font-size:29px;font-weight:450;letter-spacing:-1px}.stats strong span{font-size:10px;color:#7e887d;letter-spacing:0;margin-left:4px}.stats small{display:block;font-size:9px;margin-top:5px;color:#8a9388}.section-label{font-size:11px;font-weight:600;letter-spacing:.5px;margin-bottom:10px;display:flex;justify-content:space-between}.section-label span{font-size:9px;color:#949c92;font-weight:400}.layer{display:flex;align-items:center;gap:9px;padding:8px 0;font-size:11px;cursor:pointer}.layer input,.reference-box input[type=checkbox]{accent-color:#486750;width:13px;height:13px;margin:0}.layer small{margin-left:auto;color:#a2a99e;font-size:10px}.layer-dot{width:6px;height:6px;border-radius:2px}.switch-row{position:relative;display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid var(--line);margin-top:10px}.switch-row b{font-size:11px;font-weight:400}.switch-row small{display:block;font-size:9px;color:#9da498;margin-top:5px}.switch-row input{position:absolute;right:0;opacity:0;width:30px;height:24px;cursor:pointer;z-index:2}.switch{width:29px;height:17px;border-radius:20px;background:#c5ccbf;transition:background .2s}.switch:after{content:"";display:block;width:11px;height:11px;background:#fff;border-radius:100%;margin:3px;transition:transform .2s}.switch-row input:checked+.switch{background:#5b7459}.switch-row input:checked+.switch:after{transform:translateX(12px)}.switch-row input:focus-visible+.switch{outline:2px solid var(--accent)}.with-space{margin-top:22px}.zones{display:grid;grid-template-columns:1fr 1fr;gap:6px}.zone-button{border:1px solid #e1e5db;border-radius:3px;background:transparent;font-size:10px;padding:9px 5px}.zone-button:hover{background:#eaf0e5;border-color:#b9c8b0}.zone-button.active{background:#3b5845;color:#fff;border-color:#3b5845}.reference-box{padding:13px 10px;margin-top:24px;background:#f0f3ec;border:1px solid #e8ece2;border-radius:4px}.reference-box>label{display:flex;align-items:center;gap:7px;font-size:10px;cursor:pointer}.tiny{margin-left:auto;color:#97a18e;font-size:8px}.reference-box p{font-size:8px;line-height:1.7;color:#929c8b;margin-top:8px}.reference-box #opacity-control{font-size:9px;color:#7e8b75;margin-top:12px}.reference-box input[type=range]{width:100%;height:10px;accent-color:#5b7459;margin-top:8px}.text-button{border:0;background:none;font-size:9px;color:#788670;text-align:left;padding:13px 0}.text-button span{float:right}.text-button:hover{color:#a14d38}.sidebar-footer{margin-top:auto;padding-top:24px;font-size:8px;color:#a0a79b;letter-spacing:.5px}.sidebar-footer .status-dot{width:4px;height:4px}#viewport{flex:1;min-width:0;position:relative;overflow:hidden;background:#eceee8}#canvas-host{position:absolute;inset:0}#canvas-host canvas{display:block;width:100%;height:100%;touch-action:none}.viewport-heading{position:absolute;left:35px;top:30px;pointer-events:none;z-index:2}.viewport-heading h2{font-size:23px;font-weight:450;letter-spacing:3px;margin:10px 0}.viewport-heading p{font-size:10px;letter-spacing:1px;color:#8b9487}.viewport-heading .eyebrow{font-size:8px;color:#96a18e}.compass{position:absolute;top:32px;right:33px;display:flex;flex-direction:column;align-items:center;color:#6d7f63;pointer-events:none}.compass div{font-size:31px;line-height:1;height:35px;width:35px;text-align:center}.compass span{font-size:8px;letter-spacing:2px;margin-top:7px}.view-tools{position:absolute;top:125px;right:28px;display:flex;flex-direction:column;background:#fbfcf5e8;border:1px solid #d7dfcd;border-radius:5px;overflow:hidden;box-shadow:0 5px 20px #3c52230a}.view-tools button{width:35px;height:36px;background:none;border:0;border-bottom:1px solid #e2e7d9;font-size:15px}.view-tools button:last-child{border:0}.view-tools button:hover,.view-tools button.active{background:#dfe8d5}.labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.model-label{position:absolute;background:#fbfcf3e0;backdrop-filter:blur(6px);padding:4px 7px;border:1px solid #d5decb;border-radius:3px;transform:translate(-50%,-100%);color:#576b48;font-size:9px;white-space:nowrap;box-shadow:0 3px 8px #20341008}.model-label.sample{color:#a5553b;border-color:#cda994;background:#fffaf1ef}.model-label.sample:before{content:"";display:inline-block;width:4px;height:4px;background:#ba654c;border-radius:50%;margin-right:5px}.selection-card{position:absolute;right:28px;bottom:123px;width:246px;background:#fcfdf8f5;border:1px solid #dce2d2;padding:20px;border-radius:5px;box-shadow:0 10px 35px #30402312;backdrop-filter:blur(12px)}.selection-card .eyebrow{font-size:8px;letter-spacing:1.3px}.selection-card h3{font-size:17px;font-weight:500;margin:9px 0 4px}.selection-card .selection-id{font-size:10px;color:#8d9684}.close-card{position:absolute;top:13px;right:13px;border:0;background:none;color:#89947e;font-size:18px}.selection-card dl{display:grid;grid-template-columns:1fr 1.2fr;font-size:10px;gap:9px;margin:18px 0 14px}.selection-card dt{color:#99a28e}.selection-card dd{margin:0;text-align:right;color:#556b46}.selection-card .provenance{font-size:9px;line-height:1.8;color:#8a957c;border-top:1px solid #e6eadd;padding-top:11px;word-break:break-word}.selection-card .focus-button{font-size:10px;background:#3b5946;color:white;border:0;border-radius:3px;width:100%;padding:8px;margin-top:13px}.selection-card .source-state{color:#9b6b4e;font-size:8px;margin-top:8px}.bottom-bar{position:absolute;left:32px;right:32px;bottom:37px;display:flex;align-items:center;justify-content:space-between;gap:20px}.navigation-tabs{display:flex;padding:5px;background:#fcfdf7e8;backdrop-filter:blur(12px);border:1px solid #d9e1ce;border-radius:6px;box-shadow:0 5px 20px #40502b0a;gap:3px}.navigation-tabs button{border:0;background:none;border-radius:3px;padding:10px 14px;font-size:13px;color:#7e8d70;white-space:nowrap}.navigation-tabs button span{font-size:10px;margin-left:4px}.navigation-tabs button.active{background:#3b5946;color:#f2f6ec}.navigation-tabs button:hover:not(.active){background:#e9eee2}.canvas-help{font-size:9px;color:#8c9781;white-space:nowrap}.scale-note{position:absolute;left:35px;bottom:14px;display:flex;gap:9px;align-items:center;font-size:8px;color:#96a18a}.scale-line{display:block;width:30px;height:4px;border:1px solid #96a18a;border-top:0}.scale-note #fps{margin-left:13px;color:#a6ae9c;font-variant-numeric:tabular-nums}.loading{position:absolute;inset:0;background:#f0f3ebf0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:40;gap:14px}.loading b{font-size:15px;font-weight:400;letter-spacing:2px}.loading small{font-size:10px;color:#87927e}.loader{display:block;width:25px;height:25px;border:1px solid #ccd8c1;border-top-color:#58764a;border-radius:100%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:absolute;top:25px;left:50%;transform:translateX(-50%);background:#344b3af2;color:#eef2e9;font-size:11px;line-height:1.6;padding:12px 18px;border-radius:4px;z-index:45;max-width:70%;box-shadow:0 5px 20px #0001}.walk-hint{position:absolute;left:50%;top:110px;transform:translateX(-50%);background:#fffdf2e8;border:1px solid #dbe3cf;color:#576d49;padding:13px 18px;font-size:11px;border-radius:5px;text-align:center;line-height:1.8;z-index:4;white-space:nowrap}.walk-hint span{font-size:9px;color:#8f9b81}#crosshair{position:absolute;left:50%;top:50%;font-size:20px;color:#627854;pointer-events:none;transform:translate(-50%,-50%)}dialog{width:min(720px,90vw);border:1px solid #dbe2d1;border-radius:8px;padding:28px 32px;color:#354930;background:#fcfdf7;box-shadow:0 25px 90px #1a311344;max-height:85vh}dialog::backdrop{background:#24351f66;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8d9;padding-bottom:20px}.dialog-head h2{font-size:20px;font-weight:500;letter-spacing:1px;margin-top:9px}.dialog-head button{font-size:25px;border:0;background:none;color:#8f9c82}.evidence-stat{display:flex;gap:20px;margin:24px 0}.evidence-stat span{font-size:12px;padding:10px 14px;background:#edf2e6;border-radius:4px}.evidence-stat strong{font-size:20px;font-weight:500;margin-right:4px}#evidence-content p{font-size:12px;line-height:1.9;color:#78866a;margin:14px 0}#evidence-content h3{font-size:13px;font-weight:550;margin-top:24px}#evidence-content ul{padding-left:18px;font-size:11px;line-height:1.9;color:#7e896f}#evidence-content li{margin:8px 0}#evidence-content code{font-size:10px;word-break:break-all;color:#687d54}#evidence-content a{color:#496f3c}#evidence-content .note{padding:12px 14px;background:#f4eee0;color:#987654;border-radius:4px}
.mobile-layers{display:none}
@media(min-width:1600px){.sidebar{width:290px;padding:35px 28px}.viewport-heading{left:45px;top:40px}.viewport-heading h2{font-size:28px}.bottom-bar{left:45px;bottom:40px}.canvas-help{font-size:11px}.navigation-tabs button{padding:12px 20px}}
@media(max-height:800px){.sidebar{padding-top:22px}.side-intro p{display:none}.stats{padding:17px 0;margin-bottom:17px}.with-space{margin-top:14px}.reference-box{margin-top:17px}.sidebar-footer{padding-top:14px}.layer{padding:7px 0}}
@media(max-width:1100px){.sidebar{width:230px;padding-left:19px;padding-right:19px}.canvas-help{display:none}.topbar{padding:0 24px}.viewport-heading{left:26px}.bottom-bar{left:23px;right:23px}.navigation-tabs button{padding:10px 11px}.selection-card{width:220px}.version{font-size:9px}.top-actions{gap:14px}}
@media(max-width:760px){#app{min-height:500px}.topbar{height:65px;padding:0 16px}.brand-mark{width:30px;height:34px;font-size:18px}.brand{gap:10px}h1{font-size:17px}h1 span{display:none}.brand p{font-size:6px;letter-spacing:1.8px}.version{display:none}.button{font-size:10px;padding:8px 10px}.workspace{height:calc(100% - 65px)}.sidebar{width:170px;padding:20px 13px 12px}.side-intro h2{font-size:13px;letter-spacing:0}.side-intro .eyebrow{font-size:7px;letter-spacing:1.1px}.stats{gap:7px}.stats strong{font-size:23px}.stats strong span{font-size:8px}.stats small{font-size:8px}.section-label{font-size:10px}.layer{font-size:10px;gap:7px}.with-space{margin-top:13px}.reference-box{padding:9px 7px}.reference-box p{font-size:7px}.reference-box>label{font-size:9px;gap:5px}.reference-box .tiny{display:none}.text-button{font-size:8px;line-height:1.7}.viewport-heading{left:18px;top:25px}.viewport-heading h2{font-size:18px;letter-spacing:1px}.viewport-heading p{font-size:8px}.viewport-heading .eyebrow{font-size:7px;letter-spacing:1px}.compass{right:17px;top:24px}.compass span{font-size:7px}.view-tools{top:110px;right:14px}.view-tools button{width:30px;height:32px}.bottom-bar{left:12px;right:12px;bottom:32px}.navigation-tabs{width:100%;justify-content:space-around;padding:4px;gap:1px}.navigation-tabs button{padding:9px 5px;font-size:13px}.navigation-tabs button span{display:block;font-size:8px;margin:4px 0 0}.selection-card{right:13px;bottom:110px;width:190px;padding:15px}.selection-card h3{font-size:14px}.selection-card dl{font-size:9px;gap:7px;margin:13px 0}.scale-note{left:17px;bottom:13px;font-size:7px}.model-label{font-size:7px;padding:3px 4px}.walk-hint{font-size:9px;max-width:90%;white-space:normal;top:100px;width:240px}.walk-hint span{font-size:8px}.toast{font-size:10px;width:85%;max-width:85%}.stats strong{white-space:nowrap}}
@media(max-width:500px){.sidebar{width:138px;padding:16px 10px}.side-intro h2{font-size:11px}.stats{grid-template-columns:1fr;gap:12px;padding:14px 0}.stats>div{display:flex;align-items:center;justify-content:space-between}.stats strong{font-size:21px}.stats strong span{font-size:7px}.stats small{font-size:7px;max-width:40px;line-height:1.5;margin:0}.section-label span{display:none}.layer-dot{display:none}.layer{font-size:9px}.switch-row b{font-size:9px}.switch-row small{font-size:8px}.zones{gap:5px}.zone-button{font-size:8px;padding:8px 3px}.reference-box{padding:8px 5px;margin-top:15px}.reference-box>label{font-size:8px}.reference-box p{font-size:7px}.text-button{font-size:7px}.sidebar-footer{font-size:7px;line-height:1.7}.viewport-heading h2{font-size:15px}.viewport-heading p{font-size:7px;max-width:100px;line-height:1.7}.compass{right:12px;top:18px}.compass div{font-size:24px}.selection-card{right:10px;width:calc(100% - 20px)}.selection-card .provenance{font-size:8px}.bottom-bar{left:7px;right:7px}.navigation-tabs button{padding:8px 4px;font-size:11px}.navigation-tabs button span{font-size:7px}.view-tools{right:10px}.scale-note #fps{margin-left:0}.scale-line{width:18px}}
@media(max-width:600px){.mobile-layers{display:block}.sidebar{display:none;position:absolute;top:65px;bottom:0;width:220px;box-shadow:15px 0 40px #2c442625}.sidebar.open{display:flex}.sidebar .stats{grid-template-columns:1fr 1fr}.sidebar .stats>div{display:block}.sidebar .stats small{max-width:none}.sidebar .layer{font-size:11px}.sidebar .section-label{font-size:11px}.sidebar .side-intro h2{font-size:16px}.sidebar .text-button{font-size:10px}.sidebar .sidebar-footer{font-size:9px}.sidebar .reference-box>label{font-size:11px}.sidebar .zone-button{font-size:11px}.selection-card{width:230px}.viewport-heading h2{font-size:21px}.viewport-heading p{font-size:9px;max-width:210px}.bottom-bar{left:15px;right:15px}.navigation-tabs button span{font-size:9px}.scale-note{left:20px}.top-actions{gap:7px}.button span{margin-left:5px}}

.inspection-panel{margin-top:16px;padding-top:13px;border-top:1px solid var(--line);font-size:10px}.inspection-panel summary{font-weight:600;cursor:pointer;margin-bottom:10px}.inspection-panel label{display:block;font-size:10px;color:#63765d;margin:10px 0 7px}.inspection-panel .control-row{display:flex;gap:8px;align-items:center}.control-row input{accent-color:#486750;margin:0}.inspection-panel select{font:inherit;width:100%;min-width:0;background:#f4f6ef;border:1px solid #d9e1d2;padding:8px 5px;border-radius:3px;color:#455d3d}.inspection-panel p{font-size:9px;line-height:1.8;color:#85917a;margin-top:8px}.inspection-panel select:focus-visible{outline:2px solid #bd553e;outline-offset:3px}.selection-card{max-height:calc(100% - 150px);overflow:auto}.selection-card .source-state{line-height:1.8}

.model-label.elevation-label{pointer-events:auto;cursor:pointer;color:#8b5639;border-color:#c8aa90}.model-label.elevation-label:focus-visible{outline:2px solid #bd553e;outline-offset:3px}

.underground-indicator{position:static;display:inline-block;margin-top:8px;max-width:100%;padding:6px 9px;border-radius:3px;background:#fcf4e5e8;border:1px solid #d3b988;color:#856435;font-size:10px;pointer-events:none}.selection-card .pipe-basis{font-size:9px;line-height:1.8;color:#7a846c;margin-top:8px}.selection-card dd{overflow-wrap:anywhere}@media(max-width:600px){.underground-indicator{font-size:9px}}

.pipe-notes{font-size:9px;line-height:1.8;margin-top:8px;color:#7a846c}.pipe-notes summary{cursor:pointer}.pipe-notes p{margin-top:7px}

.viewport-heading{max-width:calc(100% - 100px)}

.pipeline-endpoint{position:absolute;width:7px;height:7px;border:1.5px solid #a85f3c;border-radius:50%;background:#fffaf0;transform:translate(-50%,-50%);pointer-events:none}.pipeline-endpoint:before{content:"";position:absolute;left:2px;bottom:5px;height:12px;border-left:1px dashed #a85f3c}.pipeline-endpoint span{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 6px;border:1px dashed #c49778;border-radius:3px;background:#fffaf0ed;color:#865638;font-size:9px;line-height:1.4}
@media(min-width:601px){.selection-card[data-category="gate"],.selection-card[data-object-id="B01"],.selection-card[data-object-id="B02"],.selection-card[data-object-id="B03"],.selection-card[data-object-id="B04"]{max-height:calc(100% - 375px)}}
@media(max-width:600px){.selection-card[data-category="gate"],.selection-card:has(.pipe-basis),.selection-card[data-category="pump"],.selection-card[data-category="tank"],.selection-card[data-category="waterTank"],.selection-card[data-category="loading-island"],.selection-card[data-object-id="P02"],.selection-card[data-object-id="P01"],.selection-card[data-object-id="B01"],.selection-card[data-object-id="B02"],.selection-card[data-object-id="B03"],.selection-card[data-object-id="B04"]{width:calc(100% - 20px);max-height:38%}}
.assembly-focus{width:100%;border:1px solid #b4c2ac;background:#e9eee3;color:#405b3d;border-radius:3px;padding:9px 6px;font:inherit;text-align:left}.assembly-focus:hover{background:#dfe7d7}.assembly-focus:focus-visible{outline:2px solid #bd553e;outline-offset:3px}

.tour-start{margin-top:18px;border:1px solid #aebfa8;background:#e9eee3;border-radius:4px;padding:12px 10px;font-size:11px;text-align:left;flex-shrink:0}.tour-start span{float:right;font-size:9px;color:#73866b}.tour-start:hover{background:#dfe8d6}.tour-panel{position:absolute;z-index:5;left:50%;bottom:112px;transform:translateX(-50%);width:min(410px,calc(100% - 42px));padding:13px 15px 11px;background:#fcfdf8f5;border:1px solid #ced8c5;border-radius:6px;box-shadow:0 8px 30px #30402318;backdrop-filter:blur(12px)}.tour-top{display:flex;align-items:center;gap:9px}.tour-top label{font-size:10px;white-space:nowrap;color:#77876d}.tour-top select{min-width:0;flex:1;font:inherit;font-size:11px;border:0;border-bottom:1px solid #dce3d4;background:transparent;color:#354e31;padding:6px 0}.tour-top select:focus-visible{outline:2px solid var(--accent)}.tour-top button{border:0;background:none;font-size:20px;padding:2px 4px;color:#7d8c72}.tour-actions{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:8px;margin-top:10px}.tour-actions button{font-size:11px;padding:10px 6px;border:1px solid #d5dfcc;border-radius:3px;background:#f1f5eb}.tour-actions #tour-play{background:#3b5946;color:#fff;border-color:#3b5946}.tour-actions button:disabled{cursor:default;opacity:.4}.tour-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:9px;color:#7c8c72}.tour-bottom progress{width:55px;height:4px;accent-color:#597a4a;flex-shrink:0}#tour-layer-note{margin:7px 0 0;color:#93603d;font-size:10px;line-height:1.6}.viewport-heading:has(~ .tour-panel:not([hidden])) p{max-width:410px;line-height:1.7;letter-spacing:0}.viewport-heading:has(~ .tour-panel:not([hidden])) h2{margin:8px 0}.tour-panel button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:600px){.tour-start{font-size:12px}.tour-panel{bottom:110px;width:calc(100% - 30px);padding:10px 12px}.tour-top label{font-size:9px}.tour-actions button{min-height:40px}.tour-bottom{font-size:9px}.viewport-heading:has(~ .tour-panel:not([hidden])){max-width:calc(100% - 90px)}.viewport-heading:has(~ .tour-panel:not([hidden])) p{font-size:10px;max-width:100%;line-height:1.7}.viewport-heading:has(~ .tour-panel:not([hidden])) h2{font-size:20px}}
.viewport-heading:has(~ .tour-panel:not([hidden])){padding:12px;background:#fcfdf7ed;border:1px solid #e1e7d9;border-radius:5px;backdrop-filter:blur(8px)}
/* Drawing review panels do not affect the 3D scene or export. */
.review-button{display:block;width:100%;margin-top:12px;padding:9px 8px;border:1px solid #a9b79e;border-radius:3px;background:#edf2e7;color:#405b36;font-size:10px;text-align:left}
#purlin-review-dialog{width:min(860px,94vw)}.purlin-review-content{font-size:12px;line-height:1.8}.purlin-review-content p{margin:15px 0;color:#65775a}.purlin-review-content .purlin-summary{font-size:14px;color:#354d2e}.purlin-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.purlin-metrics span{background:#edf2e6;border-radius:4px;padding:10px 14px;font-size:11px;color:#6e7e61}.purlin-metrics strong{display:block;font-size:21px;font-weight:500;color:#405b35}.purlin-review-content .purlin-boundary{padding:10px 12px;border-left:3px solid #b77552;background:#f5eee3;color:#875e40}.purlin-review-content label{display:block;margin-top:20px}.purlin-review-content select{width:100%;padding:9px;background:#fff;border:1px solid #c7d1bd;border-radius:3px;color:#425a35;font:inherit}.purlin-review-content .purlin-selected{color:#994e36;font-variant-numeric:tabular-nums}.purlin-review-content svg{display:block;width:100%;height:auto;min-width:440px}.purlin-review-content svg text{font-family:system-ui,sans-serif;font-size:13px;fill:#526747}.purlin-plan,.purlin-conflict{overflow-x:auto;border:1px solid #dde4d4;background:#fafcf6;border-radius:4px}.purlin-review-content h3{font-size:15px;font-weight:550;margin:24px 0 8px}.purlin-levels{display:grid;grid-template-columns:110px 1fr;gap:8px 15px;padding:14px;background:#edf2e6}.purlin-levels dt{color:#6e8062}.purlin-levels dd{margin:0}.purlin-review-content details{padding:13px 0;border-bottom:1px solid #dce4d3}.purlin-review-content summary{cursor:pointer;font-weight:550}.purlin-review-content table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;margin:12px 0}.purlin-review-content th,.purlin-review-content td{text-align:left;border-bottom:1px solid #e1e7d8;padding:6px 8px}.purlin-review-content .purlin-source{font-size:10px;color:#7c8970}
@media(max-width:600px){#purlin-review-dialog{padding:18px 16px;max-height:90dvh}.purlin-metrics{gap:6px}.purlin-metrics span{padding:9px 7px;font-size:10px}.purlin-metrics strong{font-size:18px}.purlin-levels{grid-template-columns:78px 1fr;gap:8px}.purlin-review-content svg{min-width:600px}.purlin-review-content svg text{font-size:15px}.purlin-review-content .purlin-summary{font-size:13px}}

.purlin-evidence-figure{margin:16px 0}.purlin-source-crop{overflow-x:auto;background:#fff;border:1px solid #dde4d4;border-radius:4px}.purlin-source-crop img{display:block;width:100%;min-width:600px;height:auto}.purlin-evidence-figure figcaption{font-size:11px;line-height:1.7;color:#6d7f62;margin:7px 0}.purlin-evidence-figure a{display:inline-block;color:#405f3c;margin-left:8px;text-underline-offset:3px}

#rack-c-review-dialog{width:min(900px,94vw)}.rack-c-review-content{font-size:12px;line-height:1.8;color:#506348}.rack-c-review-content p{margin:14px 0}.c-review-summary{font-size:16px;color:#354d2e}.c-review-boundary{padding:10px 12px;background:#f5eee3;border-left:3px solid #ad6846}.c-review-switch{display:flex;gap:8px;margin:18px 0}.c-review-switch button{flex:1;padding:10px;border:1px solid #bac9b2;border-radius:4px;background:#f6f8f2}.c-review-switch button[aria-pressed=true]{background:#3b5946;color:#fff;border-color:#3b5946}.c-review-selected{min-height:24px}.c-review-plan{overflow-x:auto;border:1px solid #d9e1d0;background:white;border-radius:4px}.c-review-plan svg{display:block;width:100%;min-width:680px;height:auto}.c-marker{stroke-width:5;stroke:#b45a35;fill:#b45a351a}.c-marker.candidate{stroke:#315c85;fill:#315c851a}.c-marker.selected{stroke-width:9}.c-marker-label{font:600 27px system-ui,sans-serif;fill:#a74c29;paint-order:stroke;stroke:#fff;stroke-width:8;stroke-linejoin:round}.c-marker-label.candidate{fill:#315c85}.c-review-caption{font-size:11px;color:#728268}.c-review-caption a{color:#3e644b}.rack-c-review-content h3{font-size:15px;margin:22px 0 8px}.rack-c-review-content details{border-top:1px solid #dce4d3;padding:14px 0}.rack-c-review-content summary{cursor:pointer;font-weight:600}.rack-c-review-content dl{display:grid;grid-template-columns:110px 1fr;gap:8px 16px;background:#eef2e8;padding:14px}.rack-c-review-content dd{margin:0}.c-detail-image{display:block;max-width:100%;height:auto;max-height:850px;margin:16px auto;object-fit:contain}@media(max-width:600px){#rack-c-review-dialog{padding:18px 14px;max-height:90dvh}.c-review-summary{font-size:14px}.c-review-switch{gap:5px}.c-review-switch button{font-size:11px;padding:9px 4px}.rack-c-review-content dl{grid-template-columns:75px 1fr;gap:8px}.c-review-selected{min-height:65px}}

#drainage-review-dialog{width:min(960px,94vw)}.drainage-review-content{font-size:12px;line-height:1.8;color:#506348}.drainage-review-content p{margin:14px 0}.drainage-summary{font-size:16px;color:#354d2e}.drainage-boundary{padding:10px 12px;background:#f5eee3;border-left:3px solid #ad6846}.drainage-tabs{display:flex;gap:8px;margin:18px 0}.drainage-tabs button{flex:1;padding:10px 6px;border:1px solid #bac9b2;border-radius:4px;background:#f6f8f2}.drainage-tabs button[aria-pressed=true]{background:#3b5946;color:#fff;border-color:#3b5946}.drainage-panel h3{font-size:16px;font-weight:550;margin:20px 0 8px}.drainage-panel label{display:block;margin:14px 0 7px}.drainage-panel select{width:100%;padding:9px;background:white;border:1px solid #bccbb2;border-radius:3px;color:#425a35;font:inherit}.drainage-selected{color:#994e36;min-height:24px}.drainage-plan{overflow-x:auto;background:white;border:1px solid #d9e1d0;border-radius:4px}.drainage-plan svg{display:block;width:100%;min-width:820px;height:auto}.drainage-marker{fill:#b45a3526;stroke:#b45a35;stroke-width:8}.drainage-marker-text{font:600 33px system-ui,sans-serif;fill:#a74c29;paint-order:stroke;stroke:#fff;stroke-width:9;stroke-linejoin:round}.drainage-caption,.drainage-source figcaption{font-size:11px;color:#728268}.drainage-panel a{color:#3e644b;text-underline-offset:3px}.drainage-panel dl{display:grid;grid-template-columns:110px 1fr;gap:8px 16px;background:#eef2e8;padding:14px}.drainage-panel dd{margin:0}.drainage-source{margin:16px 0}.drainage-source>div{overflow-x:auto;border:1px solid #dde4d4;border-radius:4px;background:white}.drainage-source img{display:block;width:100%;height:auto}.drainage-source figcaption{margin:7px 0}.drainage-panel table{width:100%;border-collapse:collapse;margin:16px 0}.drainage-panel th,.drainage-panel td{text-align:left;border-bottom:1px solid #e1e7d8;padding:8px;vertical-align:top}.drainage-panel th:first-child,.drainage-panel td:first-child{min-width:90px}.drainage-panel details{padding:14px 0;border-bottom:1px solid #dce4d3}.drainage-panel summary{cursor:pointer;font-weight:600}.drainage-tabs button:focus-visible,.drainage-panel select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:600px){#drainage-review-dialog{padding:18px 14px;max-height:90dvh}.drainage-summary{font-size:14px}.drainage-tabs{gap:5px}.drainage-tabs button{font-size:11px;padding:10px 3px;min-height:42px}.drainage-panel dl{grid-template-columns:68px 1fr;gap:8px}.drainage-panel h3{font-size:15px}.drainage-source img{min-width:600px}.drainage-source img[src*="angle-spacing"]{min-width:0}.drainage-selected{min-height:43px}}

.rainwater-unresolved{padding:12px;border-left:3px solid #a96645;background:#f5eee3;color:#805c40}.rainwater-profile{overflow-x:auto;border:1px solid #d9e1d0;background:#fff;border-radius:4px;margin:14px 0}.rainwater-profile svg{display:block;min-width:620px;width:100%;height:auto}.rainwater-profile text{font:14px system-ui,sans-serif;fill:#4d6244}.rainwater-profile .rainwater-axis-title{font-size:15px;font-weight:600}.rainwater-axis{stroke:#b3c1aa;fill:none}.rainwater-invert-line{stroke:#47738b;stroke-width:3;fill:none}.rainwater-guide{stroke:#ccd7c4;stroke-dasharray:4 4}.rainwater-profile circle{fill:#47738b;stroke:#fff;stroke-width:2}.rainwater-row-description{color:#6a7c60}.rainwater-stations{overflow-x:auto}.rainwater-stations table{font-variant-numeric:tabular-nums}.rainwater-stations th:first-child,.rainwater-stations td:first-child{min-width:0}.rainwater-spec-table td{width:33.33%}@media(max-width:600px){.drainage-tabs{display:grid;grid-template-columns:1fr 1fr}.rainwater-spec-table th,.rainwater-spec-table td{padding:7px 4px;font-size:11px}.rainwater-spec-table th:first-child,.rainwater-spec-table td:first-child{min-width:64px}.rainwater-stations th,.rainwater-stations td{padding:7px 5px;font-size:11px}.rainwater-stations table{min-width:290px}}

.rainwater-search-result{padding:16px 18px;margin:18px 0;border:1px solid #b8c9ac;border-radius:4px;background:#f3f7ed}.rainwater-search-result h3{margin-top:0}.rainwater-search-result details{border-bottom:0;padding-bottom:0}.rainwater-search-result p:last-child{margin-bottom:0}@media(max-width:600px){.rainwater-search-result{padding:12px 10px}.rainwater-search-result dl{grid-template-columns:58px 1fr}}
.rainwater-reference-chain{padding-left:24px}.rainwater-reference-chain li{margin:12px 0;padding-left:5px}.rainwater-reference-chain b,.rainwater-reference-chain span{display:block}.rainwater-reference-chain span{margin-top:4px}

.exterior-access-actions{display:grid;gap:6px;margin-top:12px}.exterior-access-actions .review-button{margin-top:0}
.exterior-ground-actions{display:grid;gap:6px;margin-top:12px}.exterior-ground-actions .review-button{margin-top:0}

.pipeline-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;margin:10px 0;font-size:10px;color:#5f7058}.pipeline-legend span{display:flex;align-items:center;gap:5px}.pipeline-legend i{width:14px;height:4px;flex-shrink:0;border-radius:2px}.pipeline-legend [hidden]{display:none}

@media(max-width:600px){.selection-card[data-category="pipeline-support"]{width:calc(100% - 20px);max-height:38%}}

.fs2-contact-result{font-size:10px;line-height:1.8;margin:12px 0;color:#62705f}.selection-card[data-category="fs2-review"]{max-height:calc(100% - 280px)}@media(max-width:600px){.selection-card[data-category="fs2-review"]{width:calc(100% - 20px);max-height:38%}}
#viewport:has(.selection-card[data-category="fs2-review"]:not([hidden])) .viewport-heading{padding:12px;background:#fcfdf7ed;border:1px solid #e1e7d9;border-radius:5px;backdrop-filter:blur(8px)}

.selection-card[data-category="stair-bypass-review"]{max-height:calc(100% - 280px)}#viewport:has(.selection-card[data-category="stair-bypass-review"]:not([hidden])) .viewport-heading{padding:12px;background:#fcfdf7ed;border:1px solid #e1e7d9;border-radius:5px;backdrop-filter:blur(8px)}@media(max-width:600px){.selection-card[data-category="stair-bypass-review"]{width:calc(100% - 20px);max-height:38%}}


.foundation-section-control{display:block;margin:10px 0;font-size:11px;color:#405b3d}.foundation-section-mode{display:block;width:100%;margin:4px 0 6px;padding:6px;background:#f4f6ef;border:1px solid #b4c2ac;border-radius:3px;font:inherit;color:inherit}.foundation-section-control span{display:block;font-size:10px;line-height:1.45;color:#667761}

.foundation-reference a{display:block;color:#405b3d;font-size:11px}.foundation-reference img{display:block;width:100%;height:auto;margin:7px 0 4px;border:1px solid #d9e1d2;border-radius:3px}

.foundation-shortcuts{display:grid;gap:5px;margin-top:12px;font-size:11px}.foundation-shortcuts a{display:block;text-decoration:none}.foundation-shortcuts .assembly-focus:disabled{opacity:.55;cursor:wait}
#tank-walk-panel .tour-top{justify-content:space-between}
#tank-walk-panel .tour-top strong{font-size:13px;font-weight:600}
#tank-walk-panel .tour-actions{grid-template-columns:repeat(2,1fr)}
#tank-walk-panel .tour-actions button{touch-action:none}
#restore-roof-vent{position:absolute;z-index:5;left:35px;top:128px}
@media(max-width:600px){#restore-roof-vent{left:18px;top:120px}}
@media(max-width:600px){.selection-card[data-object-id="U05"],.selection-card[data-object-id="U08"]{width:calc(100% - 20px);max-height:38%}}

/* Source-based alarm relationships; these are not spatial cable routes. */
#gas-alarm-system-dialog{width:min(1000px,calc(100vw - 32px));max-width:1000px;max-height:90dvh;padding:24px;overflow:auto}
.gas-system-status{margin:16px 0 8px;font-size:13px;color:#486451}.gas-system-status>strong{font-size:28px;font-weight:500;margin-right:8px}
.gas-system-note,.gas-system-notes{font-size:11px;line-height:1.8;color:#6e786c}
.gas-system-inputs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:20px;align-items:start}
.gas-system-group{border:1px solid #c5cfc0;background:#f1f5ed;border-radius:5px;padding:10px;font-size:12px}
.gas-system-group summary{cursor:pointer}.gas-system-group summary strong,.gas-system-group summary small{display:block;margin-top:7px}
.gas-system-group summary strong{font-size:20px;color:#3d604c}.gas-system-group summary small{font-size:10px;color:#6f7c6a}
.gas-system-group button{display:block;width:100%;border:1px solid #cbd4c5;background:#fff;text-align:left;padding:6px 4px;margin-top:6px;border-radius:3px;font-size:11px}
.gas-system-missing{display:block;font-size:11px;color:#865d3f;margin-top:8px}
.gas-system-link{text-align:center;font-size:11px;letter-spacing:.5px;color:#62735d;padding:12px}
.gas-system-controller{text-align:center;border:1px solid #879b83;background:#e4ebdf;border-radius:5px;padding:13px}
.gas-system-controller>strong{font-size:17px;color:#375a45}.gas-system-controller h3{font-size:13px;font-weight:500;margin:6px 0}
.gas-system-controller p{font-size:11px;line-height:1.7;color:#5c6c56}
.gas-system-outputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.gas-system-outputs section{border:1px dashed #a9b79e;border-radius:5px;background:#f8f8ef;padding:12px}
.gas-system-outputs strong{font-size:14px}.gas-system-outputs p{font-size:11px;line-height:1.6;margin:7px 0}.gas-system-outputs small{font-size:10px;color:#896c4a;line-height:1.6;display:block}
.gas-system-pending{margin-top:20px;border-block:1px solid #d4dccd;padding:12px 0;font-size:12px}
.gas-system-pending summary{cursor:pointer}.gas-system-pending ul{padding-left:18px}.gas-system-pending li{margin:12px 0}
.gas-system-pending p{font-size:11px;line-height:1.7;color:#777d70;margin-top:4px}.gas-system-notes{margin-top:16px}.gas-system-notes p+p{margin-top:5px}
@media(max-width:720px){.gas-system-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.gas-system-outputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#gas-alarm-system-dialog{padding:16px}.gas-system-status{font-size:11px}.gas-system-status>strong{font-size:24px}}

.gas-system-outputs button{background:#edf2e6;border:1px solid #bac8ae;border-radius:3px;padding:5px 8px;font-weight:600;font-size:12px}

.gas-system-deferred{background:#f3f2ec!important;border-style:dashed!important;color:#7c7d72}.gas-system-group.gas-system-deferred summary strong{font-size:13px;color:#7c7d72}
