:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17253b;background:#f0f3f7;font-size:13px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.shell{display:flex;height:100vh;min-height:530px}.rail{width:76px;flex-shrink:0;background:#102a43;color:#c9d6e3;display:flex;flex-direction:column;align-items:center;padding:17px 7px;gap:10px}.logo{font-weight:800;font-size:23px;color:white;letter-spacing:-2px}.logo span{color:#54cbb3}.rail-line{height:1px;background:#34516c;width:37px;margin:7px 0 12px}.rail-button{width:62px;height:62px;border:0;background:none;color:#b0c3d7;border-radius:9px;display:grid;place-content:center;font-size:25px}.rail-button small{font-size:10px;display:block;margin-top:4px}.rail-button.active{background:#224765;color:white}.grow{flex:1}.rail-version{font-size:10px;color:#7da0be}.workspace{display:flex;flex-direction:column;min-width:0;flex:1}.topbar{height:83px;background:white;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:14px 25px;gap:20px}.breadcrumb{color:#718096;letter-spacing:1.15px;font-size:10px;font-weight:700}.breadcrumb span{color:#c3ced9;margin:0 8px}.title-group h1{margin:6px 0 0;font-size:21px;letter-spacing:-.5px}.beta{display:inline-block;color:#1f7e72;background:#e0f7f2;border:1px solid #c6e8df;border-radius:4px;padding:4px 6px;font-size:10px;letter-spacing:.65px;vertical-align:middle;margin-left:7px}.top-actions{display:flex;gap:8px}.btn{min-height:33px;border-radius:6px;border:1px solid #d4dfeb;background:white;padding:7px 12px;color:#304661;font-weight:600;font-size:12px;white-space:nowrap}.btn:hover:not(:disabled){background:#eef5fa}.btn.primary{background:#167bba;color:white;border-color:#167bba}.btn.primary:hover{background:#12689f}.btn.full{width:100%}.toolbar{height:55px;background:white;display:flex;align-items:center;justify-content:space-between;padding:8px 20px;border-bottom:1px solid #dde5ee;gap:12px}.toolset{display:flex;gap:3px;align-items:center}.tool{border:1px solid transparent;border-radius:6px;background:white;color:#3b5470;padding:9px 10px;display:flex;align-items:center;gap:7px;font-size:18px;white-space:nowrap;min-height:36px}.tool span{font-size:12px;font-weight:600}.tool:hover{background:#eef5fa}.tool.active{background:#eaf5ff;color:#126aaf;border-color:#bbdef8}.tool.compact{font-size:21px;padding:6px 11px}.sep{height:27px;width:1px;background:#d7e1e9;margin:0 7px}#zoomLabel{font-size:12px;min-width:44px;text-align:center;font-weight:700;color:#456178}.main-layout{flex:1;min-height:0;display:grid;grid-template-columns:188px minmax(300px,1fr) 252px}.catalog{border-right:1px solid #dce5ef;background:#fff;padding:17px 11px;overflow:auto}.section-caption{font-size:10px;letter-spacing:1.1px;font-weight:800;color:#94a5b8;margin:5px 7px 10px}.section-caption.future{margin-top:25px}.catalog-entry{display:flex;align-items:center;gap:12px;border:1px solid transparent;background:#fff;border-radius:7px;padding:9px 8px;width:100%;text-align:left;color:#25415e;font-weight:700}.catalog-entry:hover{background:#f0f6fd}.catalog-entry small{font-weight:400;display:block;color:#8899ad;font-size:10px;margin-top:3px}.symbol{display:grid;place-content:center;width:29px;height:29px;background:#edf4fc;border:1px solid #d9eaf8;border-radius:7px;font-size:20px;color:#1671b1}.symbol.sprinkler{color:#c85c42;background:#fff0ed}.symbol.pipe{font-size:27px}.future-device{padding:8px 7px;display:flex;gap:10px;align-items:center;color:#8e9aab;font-size:12px}.future-device>span:first-child{border:1px solid #e6ecf2;border-radius:5px;padding:4px;min-width:28px;text-align:center}.future-device small{display:block;color:#a3adba;font-size:10px}.catalog-note{margin:25px 4px;padding:12px;background:#f0f6fb;border:1px solid #e0edf7;border-radius:8px;color:#375575;line-height:1.55;font-size:11px}.catalog-note p{margin:4px 0 0;color:#7189a1}.drawing-column{display:flex;flex-direction:column;min-width:0;min-height:0}.canvas-top{height:45px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e4ebf3}.view-tabs{display:flex;height:100%;gap:21px}.tab{border:0;border-bottom:2px solid transparent;background:none;color:#73879c;padding:0 5px;font-weight:700}.tab.active{color:#176bac;border-bottom-color:#176bac}.canvas-modes{display:flex;gap:13px;color:#70859c;font-size:11px}.canvas-modes label{cursor:pointer;white-space:nowrap}.canvas-modes input{accent-color:#177ab9;vertical-align:middle}.canvas-wrap{position:relative;flex:1;min-height:0;overflow:hidden;background:#f8fafc}.canvas-wrap canvas{position:absolute;inset:0;width:100%;height:100%;outline:none;touch-action:none}.canvas-wrap[data-tool="pan"] canvas{cursor:grab}.canvas-wrap[data-tool="pipe"] canvas,.canvas-wrap[data-tool="vertical"] canvas,.canvas-wrap[data-tool="node"] canvas,.canvas-wrap[data-tool="sprinkler"] canvas{cursor:crosshair}.canvas-badge{position:absolute;pointer-events:none;top:15px;left:16px;font-size:10px;letter-spacing:1px;color:#8da2b9;font-weight:800}.hint{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:90%;border:1px solid #dae6ef;background:rgba(255,255,255,.92);border-radius:7px;color:#6f8297;padding:9px 13px;font-size:11px;text-align:center;pointer-events:none;box-shadow:0 2px 8px #18334e08}.statusbar{min-height:31px;border-top:1px solid #dde7f0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:11px;color:#71859a}.statusbar b{font-weight:600}.statusbar>div{display:flex;gap:9px;align-items:center}.live-dot,.save-dot{display:inline-block;width:7px;height:7px;background:#38b18d;border-radius:50%}.status-sep{color:#b8c6d3}.inspector{border-left:1px solid #dce5ef;background:#fff;overflow:auto;padding:18px 15px}.inspector-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4ebf0;padding-bottom:13px}.inspector-heading.second{margin-top:24px}.inspector h2{font-size:13px;margin:0;color:#2c455e}.panel-tag{font-size:10px;color:#8fa2b4;letter-spacing:1px;font-weight:700}.empty-properties{padding:33px 10px;text-align:center;color:#91a0b0;font-size:12px;line-height:1.6}.empty-properties .empty-icon{font-size:32px;color:#cad5e0;margin-bottom:10px}.property-title{margin:15px 0 12px;font-size:12px;color:#2c475e;font-weight:800}.property-field{display:flex;flex-direction:column;gap:5px;margin:10px 0}.property-field label{font-size:10px;color:#7d91a4;font-weight:700}.property-field input,.property-field select{min-height:32px;border:1px solid #d6e0eb;border-radius:5px;padding:6px 8px;width:100%;color:#263f5c;background:#fff}.property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.detail-note{margin-top:9px;color:#8599ad;font-size:11px}.dxf-info{color:#8799aa;font-size:11px;line-height:1.6;padding:13px 0}.dxf-info strong{color:#304b65}.form-row{display:flex;flex-direction:column;gap:11px;font-size:11px;color:#667d91;margin:10px 0 14px}.form-row label{display:flex;align-items:center;gap:8px}.form-row input[type=range]{flex:1;width:80px;accent-color:#247db8}.caution{margin-top:30px;padding:12px;border-left:3px solid #dfad58;background:#fff9ee;color:#8b7551;line-height:1.55;font-size:10px}.footer{height:28px;flex-shrink:0;background:#f2f6fa;border-top:1px solid #e1e8ee;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#8597a8;font-size:10px;gap:10px}.footer>div:last-child{white-space:nowrap}.footer .save-dot{margin-right:6px}@media(max-width:1200px){.main-layout{grid-template-columns:165px minmax(300px,1fr) 225px}.topbar{padding:10px 16px}.tool span{display:none}.toolbar{padding:8px 10px}.top-actions .btn{padding:7px 8px;font-size:11px}}@media(max-width:850px){.rail{width:52px}.rail-button{width:43px}.main-layout{grid-template-columns:130px minmax(250px,1fr)}.inspector{display:none}.catalog{padding:12px 4px}.topbar{height:auto;min-height:84px;flex-wrap:wrap}.footer{display:none}.canvas-wrap{min-height:350px}}@media(max-width:600px){.main-layout{grid-template-columns:1fr}.catalog{display:none}.top-actions{overflow:auto;width:100%}.toolbar{overflow:auto}.canvas-modes{display:none}}

/* P0.2b usability controls */
.canvas-top{height:auto;min-height:45px;flex-shrink:0;gap:0 12px}
.view-tabs{height:auto;min-height:45px;align-self:stretch;flex:none;gap:8px;white-space:nowrap}
.canvas-modes [hidden]{display:none}
.canvas-modes{gap:11px;align-items:center;white-space:nowrap;min-width:0;flex-wrap:wrap;padding:4px 0}
.canvas-modes .grid-contrast-control{display:flex;align-items:center;gap:6px}
.canvas-modes input[type="range"]{width:90px;cursor:pointer;accent-color:#126ba7}
.canvas-modes output{display:inline-block;min-width:33px;font-variant-numeric:tabular-nums;font-weight:700;color:#526981}
.canvas-modes input[type="number"]{width:59px;min-height:26px;border:1px solid #d1dce9;border-radius:4px;padding:3px 4px;color:#314d67}
.dxf-info{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1450px){.canvas-modes{gap:6px}.canvas-modes input[type=range]{width:60px}}
@media(max-width:1050px){.canvas-modes{gap:5px}.canvas-modes .grid-contrast-control{font-size:0}.canvas-modes .grid-contrast-control input,.canvas-modes .grid-contrast-control output{font-size:11px}}

/* DXF layer manager — functional controls in the existing inspector, not a UI redesign. */
.dxf-layer-manager{margin-top:16px;padding-top:13px;border-top:1px solid #e1eaf2}
.dxf-layer-manager[hidden]{display:none}
.dxf-layer-title{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#2d465e;font-size:12px;margin-bottom:9px}
.dxf-layer-title span{font-size:10px;color:#72889e;white-space:nowrap}
.dxf-layer-search{width:100%;min-height:32px;padding:7px 9px;border:1px solid #d4e0ed;border-radius:6px;background:#fff;color:#294259;font-size:11px}
.dxf-layer-search:focus{outline:2px solid #8bbbdc;outline-offset:1px}
.dxf-layer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:8px 0}
.dxf-layer-actions .btn{padding:5px 3px;min-height:30px;font-size:10px;white-space:normal;line-height:1.1}
.dxf-layer-list{max-height:285px;min-height:48px;overflow-y:auto;overflow-x:hidden;border:1px solid #e0e8f0;border-radius:6px;background:#fbfdff}
.dxf-layer-item{display:flex;align-items:center;gap:5px;padding:6px 7px;border-bottom:1px solid #edf1f5;min-width:0;font-size:11px}
.dxf-layer-item:last-child{border-bottom:none}
.dxf-layer-item:hover{background:#eff6fb}
.dxf-layer-item.is-hidden .dxf-layer-name{color:#9aa9b7}
.dxf-layer-label{display:flex;align-items:center;gap:7px;min-width:0;flex:1;cursor:pointer}
.dxf-layer-label input{flex-shrink:0;accent-color:#1f83b7}
.dxf-layer-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334e67}
.dxf-layer-count{font-variant-numeric:tabular-nums;color:#8598a9;font-size:10px;min-width:18px;max-width:44px;text-align:right;overflow:hidden}
.dxf-layer-solo{border:1px solid #d9e7ef;border-radius:4px;padding:3px 5px;min-width:32px;background:#fff;color:#41718b;font-size:10px;cursor:pointer}
.dxf-layer-solo:hover{background:#ddecf8;border-color:#97bfda}
.dxf-layer-empty{padding:18px 8px;text-align:center;color:#7f94a8;font-size:11px}
.dxf-layer-footnote{margin-top:8px;font-size:10px;line-height:1.45;color:#889aa9}

/* P0.3a — drawing-first workspace, collapsible panels and active equipment library */
.main-layout{grid-template-columns:226px minmax(320px,1fr) 278px}
.main-layout.library-collapsed{grid-template-columns:minmax(320px,1fr) 278px}
.main-layout.inspector-collapsed{grid-template-columns:226px minmax(320px,1fr)}
.main-layout.library-collapsed.inspector-collapsed{grid-template-columns:minmax(320px,1fr)}
.main-layout.library-collapsed>.catalog,.main-layout.inspector-collapsed>.inspector{display:none}
.tool.panel-toggle{font-size:15px;padding:7px 8px}
.tool.panel-toggle span{font-size:11px}
.catalog{padding:13px 9px}
.catalog-header{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-right:5px}
.catalog-header .section-caption{margin:6px 5px 9px}
.catalog-version{font-size:9px;background:#eaf4fb;color:#3e789e;padding:3px 6px;border-radius:4px;font-weight:800}
.catalog-search{width:100%;border:1px solid #d4e2ef;background:#fcfeff;border-radius:6px;font-size:11px;min-height:34px;padding:7px 9px;margin:3px 0 13px}
.catalog-search:focus{outline:2px solid #8cc7e5;outline-offset:1px}
.catalog-group-title{margin:14px 6px 5px;font-size:10px;color:#66839d;font-weight:800;letter-spacing:.5px}
.catalog-group-note{display:block;margin-top:2px;font-size:9px;font-weight:400;letter-spacing:0;color:#91a6b6}
.catalog-entry[data-tool].active,.catalog-entry[data-select-tool].active,.equipment-entry.active{background:#eaf5ff;border-color:#a8d7fa;color:#155d95}
.equipment-group{margin:14px 0 0}
.equipment-group-heading{display:flex;align-items:center;justify-content:space-between;margin:0 5px 5px;gap:5px;font-size:10px;font-weight:800;color:#70859a;letter-spacing:.5px}
.equipment-group-heading span{font-size:9px;color:#93a5b6;font-weight:500;letter-spacing:0}
.equipment-entry{display:flex;align-items:center;gap:11px;padding:8px 6px;margin:2px 0;width:100%;text-align:left;border:1px solid transparent;background:white;color:#2e4d68;border-radius:7px}
.equipment-entry:hover{background:#f1f7fc;border-color:#e0ebf5}
.equipment-entry.active{background:#eaf5ff;border-color:#9bccea}
.equipment-entry .equipment-glyph{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border:1px solid #d8e5ef;border-radius:6px;color:#2b6894;background:#f6fbff;font-size:19px;line-height:1}
.equipment-entry .equipment-text{flex:1;min-width:0;font-size:11px;font-weight:700}
.equipment-entry .equipment-text small{display:block;margin-top:3px;color:#8a9ba9;font-size:9px;font-weight:400}
.equipment-catalog-empty{padding:12px 6px;color:#8d9fb0;font-size:11px}
.equipment-entry .symbol-note{font-size:8px;color:#8e7456;border:1px solid #e9dcc9;background:#fff8ed;border-radius:4px;padding:2px 4px}
.catalog-note{margin-top:14px}
.canvas-wrap[data-tool="equipment"] canvas{cursor:crosshair}
.symbol-only-alert{font-size:10px;padding:10px;background:#fff8e9;border-left:3px solid #e3ad56;color:#775d36;border-radius:4px;margin-top:10px;line-height:1.5}
@media(max-width:1320px){
 .main-layout{grid-template-columns:185px minmax(310px,1fr) 235px}
 .main-layout.library-collapsed{grid-template-columns:minmax(310px,1fr) 235px}
 .main-layout.inspector-collapsed{grid-template-columns:185px minmax(310px,1fr)}
 .main-layout.library-collapsed.inspector-collapsed{grid-template-columns:minmax(310px,1fr)}
}
@media(max-width:850px){
 .main-layout{grid-template-columns:158px minmax(260px,1fr)}
 .main-layout.library-collapsed{grid-template-columns:minmax(260px,1fr)}
 .main-layout.inspector-collapsed{grid-template-columns:158px minmax(260px,1fr)}
 .main-layout.library-collapsed.inspector-collapsed{grid-template-columns:minmax(260px,1fr)}
 .main-layout>.inspector{display:none}
 .main-layout>.catalog{display:block}
 .main-layout.library-collapsed>.catalog{display:none}
}

.catalog-entry[hidden]{display:none!important}

/* P0.3b independent CAD project tabs and distraction-free drawing focus */
.project-tabbar{display:flex;align-items:center;gap:9px;height:40px;background:#f4f7fb;border-bottom:1px solid #d6e2ed;padding:4px 13px;flex-shrink:0;min-width:0}
.project-tab-list{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;flex:1}
.project-tab-item{display:flex;align-items:center;min-width:90px;max-width:235px;flex-shrink:0;border:1px solid #d8e4ef;border-radius:6px 6px 0 0;background:#eaf1f7;color:#667d92}
.project-tab-item.active{background:white;color:#196da7;border-color:#9bc9e5;border-bottom-color:#fff}
.project-tab-name{border:0;background:none;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:185px;padding:7px 9px;cursor:pointer;font-weight:600;font-size:11px}
.project-tab-close{border:0;background:none;color:#8195a8;font-size:16px;min-width:25px;height:25px;cursor:pointer}
.project-tab-close:hover{color:#b84343;background:#fceaea}
.project-tab-add{flex-shrink:0;min-height:28px;border:1px dashed #b8cbdd;border-radius:5px;background:#fff;color:#35729d;padding:4px 9px;font-size:11px;font-weight:700}
.project-tab-add:hover{background:#e5f1fa}
.iso-orbit-hint{position:absolute;right:15px;top:12px;pointer-events:none;background:rgba(255,255,255,.88);border:1px solid #d4e3ee;border-radius:6px;color:#5b7791;padding:7px 10px;font-size:10px;box-shadow:0 2px 8px #17324a0c}
.iso-orbit-hint[hidden]{display:none}
.iso-orbit-hint span{margin-left:7px;color:#176b9d;font-weight:700}
.full-view-toggle{font-size:15px;min-height:34px;padding:7px 8px}
.full-view-toggle span{font-size:11px}
body.full-canvas-view .rail,body.full-canvas-view .topbar,body.full-canvas-view .footer{display:none}
body.full-canvas-view .workspace{width:100%;height:100vh}
body.full-canvas-view .main-layout{grid-template-columns:minmax(300px,1fr)}
body.full-canvas-view .main-layout>.catalog,body.full-canvas-view .main-layout>.inspector{display:none}
body.full-canvas-view .drawing-column{height:100%}
body.full-canvas-view .canvas-wrap{min-height:0}
@media(max-width:1200px){.iso-orbit-hint{font-size:9px;max-width:44%;line-height:1.25}.project-tab-name{max-width:140px}}

/* P0.3b hotfix: orbit controls always accept mouse events in Iso view. */
.iso-orbit-hint{z-index:5;min-width:225px}
.iso-orbit-hint summary,.iso-orbit-hint button{pointer-events:auto}
.iso-orbit-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:11px;font-weight:700}
.iso-orbit-caption strong{color:#176b9d}
.iso-orbit-controls{display:flex;gap:4px;margin-bottom:4px}
.iso-orbit-controls button{min-width:29px;height:28px;border:1px solid #cadfec;background:#fff;border-radius:4px;color:#286c9b;font-size:16px;cursor:pointer}
.iso-orbit-controls button:hover{background:#e3f2fb;border-color:#8ec4df}
.iso-orbit-controls button:last-child{flex:1;font-size:10px}
.iso-orbit-hint small{display:block;color:#71869a;font-size:9px}

/* P0.3d: minimal line sliders for CAD controls. 
 * Remove thick OS accent tracks while preserving keyboard/drag usability. */
input[type="range"].thin-slider{
 -webkit-appearance:none;appearance:none;display:block;min-width:48px;
 width:88px;height:18px;margin:0;outline:none;border:0;
 background:transparent;cursor:pointer;accent-color:unset;
}
input[type="range"].thin-slider::-webkit-slider-runnable-track{
 height:2px;border:0;border-radius:2px;background:#bbc9d5;
}
input[type="range"].thin-slider::-moz-range-track{
 height:2px;border:0;border-radius:2px;background:#bbc9d5;
}
input[type="range"].thin-slider::-moz-range-progress{
 height:2px;border:0;border-radius:2px;background:#7790a5;
}
input[type="range"].thin-slider::-webkit-slider-thumb{
 -webkit-appearance:none;appearance:none;width:9px;height:9px;
 margin-top:-3.5px;border:1.4px solid #68859a;border-radius:50%;
 background:#fff;box-shadow:0 0 0 2px #ffffff88;
}
input[type="range"].thin-slider::-moz-range-thumb{
 width:8px;height:8px;border:1.4px solid #68859a;
 border-radius:50%;background:#fff;
}
input[type="range"].thin-slider:focus-visible{
 outline:2px solid #8ab6d1;outline-offset:2px;border-radius:2px;
}
.canvas-modes input[type="range"].thin-slider{width:78px}
@media(max-width:1400px){
 .canvas-modes .grid-contrast-control{font-size:0}
 .canvas-modes input[type="range"].thin-slider{width:44px}
 .canvas-modes .grid-contrast-control output{font-size:11px;min-width:27px}
}
.form-row input[type="range"].thin-slider{width:100%;flex:1}
.labels-selector{display:flex;align-items:center;gap:3px;position:relative;white-space:nowrap}
.labels-selector .labels-master{display:flex;align-items:center;gap:3px}
.label-types-menu{position:relative;z-index:30}
.label-types-menu>summary{
 list-style:none;display:grid;place-items:center;width:19px;height:23px;
 border:1px solid transparent;border-radius:4px;color:#69859b;
 cursor:pointer;user-select:none;
}
.label-types-menu>summary::-webkit-details-marker{display:none}
.label-types-menu>summary:hover,.label-types-menu[open]>summary{
 color:#176c9e;background:#f1f6fa;border-color:#e2eaf2;
}
.label-types-popover{
 position:absolute;top:calc(100% + 8px);right:0;width:205px;
 display:flex;flex-direction:column;gap:3px;
 padding:12px;background:#fff;border:1px solid #d8e3ed;
 border-radius:8px;box-shadow:0 9px 26px #182d451f;z-index:31;
 white-space:normal;
}
.label-types-heading{font-size:11px;font-weight:750;color:#344f66;margin-bottom:5px}
.label-types-popover label{
 display:flex;align-items:center;gap:9px;cursor:pointer;
 padding:5px 3px;font-size:11px;color:#506b81;
}
.label-types-popover label:hover{background:#f6f9fc}
.label-types-popover input[type="checkbox"]{accent-color:#1879b4;margin:0}
.label-types-footnote{
 padding-top:8px;margin-top:5px;border-top:1px solid #edf1f5;
 font-size:10px;line-height:1.45;color:#8a9aac;
}

/* P0.4 — Equipment specification inspector, consistent with minimal CAD workspace */
.equipment-section-heading{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin-top:17px;padding:0 0 7px;border-bottom:1px solid #e2eaf0;
}
.equipment-section-heading h4{font-size:11px;font-weight:750;color:#2d4c66;margin:0}
.equipment-section-heading span{font-size:9px;color:#8197a9;white-space:nowrap}
.equipment-spec-group{margin:12px 0 15px}
.equipment-spec-subheading{
 color:#8397aa;font-size:9px;letter-spacing:.5px;font-weight:750;
 text-transform:uppercase;margin:10px 0 8px;
}
.equipment-spec-field{margin:8px 0}
.equipment-spec-field label{font-size:10px;font-weight:650;color:#647e95}
.equipment-unit{font-weight:450;color:#9eafbd}
.equipment-spec-field textarea,
.equipment-spec-field select{
 min-height:32px;border:1px solid #d6e0eb;border-radius:5px;
 padding:7px 8px;width:100%;color:#263f5c;background:#fff;
 font:inherit;font-size:11px;resize:vertical;
}
.equipment-spec-field textarea{line-height:1.5;min-height:64px}
.equipment-spec-field input:focus-visible,
.equipment-spec-field select:focus-visible,
.equipment-spec-field textarea:focus-visible{
 outline:2px solid #9bcbe8;outline-offset:1px;
}
.equipment-spec-hint{
 font-size:9px;line-height:1.5;color:#90a0b1;margin-top:1px;
}
.equipment-reference-text{
 margin:10px 0;font-size:10px;line-height:1.55;color:#617b91;
}
.equipment-reference-text strong{color:#2f627e}
.equipment-port-list{display:flex;flex-wrap:wrap;gap:5px}
.equipment-port{
 display:inline-flex;font-size:10px;color:#48758f;background:#f2f7fb;
 padding:3px 7px;border:1px solid #e0edf4;border-radius:4px;
}
.equipment-connection-status{
 margin:9px 0 7px;padding:8px 9px;border-left:2px solid #b2c1ce;
 background:#f7f9fb;border-radius:3px;color:#8496a6;font-size:10px;
}
.equipment-connection-status strong{color:#586f82}
.equipment-spec-disclaimer{
 margin:11px 0 5px;padding:9px 10px;color:#83715c;background:#fffaf2;
 border-left:2px solid #cfb18b;font-size:10px;line-height:1.55;
}

/* P0.4b compact +/− disclosure controls (keyboard and screen reader friendly). */
.inspector-disclosure{margin-top:22px;min-width:0}
.inspector-disclosure>.disclosure-heading{
 list-style:none;display:flex;align-items:center;justify-content:flex-start;
 gap:8px;cursor:pointer;user-select:none;margin:0;
 padding:0 0 10px;border-bottom:1px solid #e4ebf0;
}
.inspector-disclosure>.disclosure-heading::-webkit-details-marker{display:none}
.inspector-disclosure>.disclosure-heading::before,
.cad-disclosure>summary::before{
 content:'+';display:grid;place-items:center;flex-shrink:0;
 width:17px;height:17px;border:1px solid #d7e1eb;border-radius:4px;
 color:#6a8297;background:#fff;font-size:14px;font-weight:500;line-height:1;
}
.inspector-disclosure[open]>.disclosure-heading::before,
.cad-disclosure[open]>summary::before{content:'−'}
.inspector-disclosure>.disclosure-heading:hover::before,
.cad-disclosure>summary:hover::before{
 background:#f1f6fa;color:#236e9e;border-color:#bcd2e3;
}
.inspector-disclosure>.disclosure-heading:focus-visible,
.cad-disclosure>summary:focus-visible{outline:2px solid #88b8d8;outline-offset:2px}
.dxf-background-body{padding-top:4px}
.cad-disclosure>summary{list-style:none;cursor:pointer;user-select:none}
.cad-disclosure>summary::-webkit-details-marker{display:none}
.iso-orbit-hint{padding:7px 9px}
.iso-orbit-caption{justify-content:flex-start;margin:0;gap:7px}
.iso-orbit-caption strong{margin-left:auto;font-size:10px}
.iso-orbit-body{padding-top:7px}
.iso-orbit-hint:not(:has(details[open])){min-width:155px}
@media(max-width:1200px){.iso-orbit-hint{max-width:52%}}

/* DN inheritance is a drafting default, never a guessed hydraulic component size. */
.equipment-dn-source{display:block;color:#58829c;line-height:1.45;margin-top:3px}
.equipment-dn-reset{
 background:transparent;color:#2675a4;border:0;border-bottom:1px solid #a6c8da;
 border-radius:0;padding:3px 0;margin:2px 0 5px;align-self:flex-start;
 font:inherit;font-size:10px;cursor:pointer;text-align:left;
}
.equipment-dn-reset:hover{color:#155e92;border-color:#155e92}
.equipment-dn-reset:focus-visible{outline:2px solid #8ab9d6;outline-offset:2px}

/* P0.4c: manufacturer / model move to catalog reference, not engineering inspector */
.library-reference{
 border:1px solid #dbe7ef;border-radius:7px;background:#fafcfe;
 padding:10px;margin:9px 0 14px;
}
.library-reference[hidden]{display:none}
.library-reference-title{color:#7792a5;font-size:9px;font-weight:750;letter-spacing:.5px}
.library-reference-name{color:#31546d;font-size:11px;font-weight:750;margin-top:6px}
.library-reference-subnote{font-size:9px;color:#8ba0b0;line-height:1.45;margin:4px 0 10px}
.library-reference-field{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.library-reference-field label{font-size:10px;color:#708da1}
.library-reference-field input,.library-reference-field textarea{
 padding:6px 7px;min-width:0;width:100%;
 border:1px solid #dbe5ed;background:#fff;border-radius:4px;color:#2e475d;font:inherit;
 font-size:10px;line-height:1.5;resize:vertical;
}
.library-reference-field input:focus-visible,.library-reference-field textarea:focus-visible{
 outline:2px solid #8cbddd;outline-offset:1px;
}
.equipment-auto-status{
 font-size:10px;color:#55758d;border-left:2px solid #9abccc;
 background:#f5f9fc;padding:8px 9px;margin-top:9px;line-height:1.5;
}
.epanet-reference{margin-top:13px;border-top:1px solid #e6edf2;padding-top:9px}
.epanet-reference summary{font-size:10px;font-weight:700;color:#5e8095;cursor:pointer}
.epanet-reference-body{padding:9px 4px;font-size:10px;color:#8195a5;line-height:1.55}
.epanet-reference-body strong{color:#315a75}
.epanet-reference-body p{margin:6px 0}
.epanet-reference-body small{font-size:9px}

/* P0.4d — compact, independently expandable Properties and equipment subgroups */
.properties-disclosure{margin-top:0}
.properties-disclosure>.disclosure-heading{padding-bottom:13px}
.properties-disclosure>.disclosure-heading .panel-tag{margin-left:auto}
.properties-body{padding-top:2px}
.property-subsection{border-top:1px solid #e8eef3;margin-top:12px}
.property-subsection>summary{
 display:flex;align-items:center;gap:7px;cursor:pointer;user-select:none;
 list-style:none;padding:10px 2px;color:#415e76;font-size:10px;font-weight:750;
 letter-spacing:.1px;
}
.property-subsection>summary::-webkit-details-marker{display:none}
.property-subsection>summary::before{
 content:'+';width:15px;height:15px;display:grid;place-items:center;flex-shrink:0;
 color:#728ca2;background:#fff;border:1px solid #dbe5ed;
 border-radius:3px;font-size:12px;line-height:1;
}
.property-subsection[open]>summary::before{content:'−'}
.property-subsection>summary:hover::before{border-color:#aac7db;color:#246a98;background:#f4f9fc}
.property-subsection>summary:focus-visible{outline:2px solid #8bb9d5;outline-offset:2px}
.property-subsection-body{padding:0 2px 6px}
.property-subsection-body>.equipment-properties-panel>.equipment-section-heading,
.property-subsection-body>.equipment-connection-panel>.equipment-section-heading{display:none}
.property-subsection-body .equipment-spec-subheading{margin-top:6px}
.property-subsection-body .equipment-connection-panel{padding-top:2px}


/* PIPRIVA Inspector v2: read-first presentation, explicit inline editing. */
.properties-body .property-title{margin:9px 0 6px;font-size:12px}
.properties-body .property-field{gap:3px;margin:7px 0}
.properties-body .property-grid{gap:7px}
.properties-body .property-subsection{margin-top:8px}
.properties-body .property-subsection>summary{padding:8px 2px}
.properties-body .property-subsection-body{padding-bottom:3px}
.inspector-compact-tools{display:flex;align-items:center;justify-content:space-between;
 gap:8px;padding:4px 0 7px;color:#8799aa;font-size:10px}
.inspector-compact-tools span{min-width:0;line-height:1.4}
.inspector-help-toggle{flex-shrink:0;border:0;background:none;color:#2778a7;
 padding:3px 0;font-size:10px;font-weight:650;text-decoration:underline;
 text-underline-offset:2px}
.inspector-help-toggle:hover{color:#16557d}
.inspector-value{display:block;min-height:26px;max-width:100%;
 padding:5px 7px;border:1px solid transparent;border-radius:4px;
 color:#2b4964;font-size:11px;font-weight:650;line-height:1.35;
 white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.inspector-value.is-editable{cursor:default;background:#f7fafc;border-color:#e8eef3}
.inspector-value.is-editable:hover{background:#edf6fc;border-color:#b6d5e7}
.inspector-value.is-editable:hover::after{content:'✎';float:right;color:#6a98b8;margin-left:4px}
.inspector-value.is-editable:focus-visible{outline:2px solid #8bb9d5;outline-offset:2px}
.inspector-value.is-readonly{color:#768b9c;font-weight:550}
.properties-body .inspector-edit-control:not([hidden]){outline:2px solid #9bcde8;
 outline-offset:1px;background:#fff;min-height:30px}
.properties-body .inspector-edit-control[hidden],
.properties-body .inspector-value[hidden]{display:none!important}
.properties-body:not(.inspector-show-explanations) .inspector-explanation,
.properties-body:not(.inspector-show-explanations) .inspector-note,
.properties-body:not(.inspector-show-explanations) .property-field>small,
.properties-body:not(.inspector-show-explanations) .equipment-spec-hint,
.properties-body:not(.inspector-show-explanations) .equipment-spec-disclaimer,
.properties-body:not(.inspector-show-explanations) .library-reference-subnote,
.properties-body:not(.inspector-show-explanations) .equipment-port-note,
.properties-body:not(.inspector-show-explanations) .fitting-library-picker>small{
 display:none!important;
}
.properties-body .detail-note.inspector-essential{font-size:10px;margin-top:5px;color:#72889c}

/* P0.5 — Dual design-code inputs; never present uncomputed values as results. */
.design-standards-disclosure{margin-top:0;margin-bottom:14px}
.design-standards-panel{padding:12px 1px 8px}
.design-panel-intro{color:#68849b;font-size:10px;line-height:1.5;margin-bottom:10px}
.design-mode-control{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 12px}
.design-mode-control label{display:flex;align-items:center;gap:5px;font-size:10px;color:#5e788d;cursor:pointer}
.design-mode-control input{margin:0;accent-color:#277fac}
.design-standard-picker{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:750;color:#6e8495;margin:10px 0}
.design-standard-picker select{min-height:31px;border:1px solid #d9e4ec;border-radius:5px;padding:5px 7px;background:#fff;color:#345775;width:100%}
.design-case-card{border:1px solid #dfebf2;border-radius:6px;padding:10px 9px;margin:8px 0;background:#fcfdfe;min-width:0}
.design-case-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;border-bottom:1px solid #e9f0f4;padding-bottom:8px;margin-bottom:9px}
.design-case-heading strong{font-size:11px;color:#31536e}
.design-case-heading span{font-size:9px;color:#859bad}
.design-case-fields{display:flex;flex-direction:column;gap:10px}
.design-case-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.design-case-field label{font-size:10px;color:#607d93;font-weight:650}
.design-case-field label small{font-weight:450;color:#9baeb9}
.design-case-field input,.design-case-field select{height:31px;padding:5px 7px;border:1px solid #d7e3ec;border-radius:5px;width:100%;font-size:11px;color:#2c4a65}
.design-case-field>small{font-size:9px;color:#91a4b4;line-height:1.4}
.design-case-field input:focus-visible,.design-case-field select:focus-visible{outline:2px solid #9cc8df;outline-offset:1px}
.design-input-summary{display:flex;flex-direction:column;gap:5px}
.design-input-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:7px}
.design-input-summary span{font-size:9px;color:#7e95a6}
.design-input-summary strong{font-size:10px;color:#35546c;text-align:right;word-break:break-word}
.design-case-warning{font-size:9px;line-height:1.5;color:#8c7d66;padding-top:9px;margin-top:9px;border-top:1px solid #edf1f4}
.design-calculation-limit{font-size:10px;line-height:1.5;color:#8e7863;background:#fcfaf6;border-left:2px solid #cbbba5;padding:8px 9px;margin-top:11px}
.design-calculation-limit strong{color:#806346}
@media(min-width:1440px){.design-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}}

/* P0.5b — Project Data workspace separate from canvas/toolbars */
#mainLayout[hidden],#projectDataPane[hidden],.workspace>.toolbar[hidden],
.project-data-section[hidden]{display:none!important}
.workspace-mode-tabs{display:flex;align-items:flex-end;gap:5px;flex-shrink:0;
 border-bottom:1px solid #dbe5ec;background:#f7fafc;padding:6px 17px 0;min-height:42px}
.workspace-mode-tab{border:1px solid transparent;border-bottom:0;background:transparent;
 color:#688296;font:inherit;font-weight:650;font-size:12px;padding:10px 19px;
 border-radius:6px 6px 0 0;cursor:pointer}
.workspace-mode-tab.active{background:#fff;color:#215f89;border-color:#dbe5ec;
 box-shadow:0 2px 0 #fff;position:relative}
.workspace-mode-tab:hover:not(.active){color:#2e6e98;background:#edf3f7}
.workspace-mode-tab:focus-visible{outline:2px solid #91bedc;outline-offset:-2px}
.project-data-page{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;
 background:#fff;overflow:hidden}
.project-data-header{padding:18px 25px 15px;display:flex;justify-content:space-between;
 align-items:center;gap:20px;border-bottom:1px solid #e6edf2}
.project-data-header h2{margin:5px 0 5px;font-size:20px;font-weight:750;color:#2c4b64}
.project-data-header p{margin:0;max-width:850px;font-size:11px;color:#71899b;line-height:1.55}
.shared-library-panel{padding:9px 24px;border-bottom:1px solid #e0e9ef;background:#f5f9fc;
 display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between;font-size:11px}
.shared-library-summary{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;color:#405e73}
.shared-library-summary strong{color:#204b68;font-size:12px}
.shared-library-panel form,.shared-library-panel #sharedLibraryActions{
 display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.shared-library-panel [hidden]{display:none!important}
.shared-library-panel input{width:138px;padding:5px 7px;border:1px solid #b8cbd9;
 border-radius:4px;background:#fff;color:#264760;font:inherit}
.shared-library-panel .btn{font-size:11px;padding:5px 9px}
.project-pump-copy{display:flex;justify-content:space-between;align-items:center;
 gap:12px;padding:9px 0;color:#476478;font-size:12px}
.project-data-sections{display:flex;align-items:center;gap:4px;
 border-bottom:1px solid #e0e9ef;background:#fbfcfd;overflow-x:auto;
 padding:8px 20px 0;flex-shrink:0}
.project-data-sections button{white-space:nowrap;border:0;border-bottom:2px solid transparent;
 color:#758a9b;background:transparent;font:inherit;font-size:11px;
 font-weight:650;padding:10px 16px;cursor:pointer}
.project-data-sections button.active{color:#1d75a8;border-bottom-color:#2779a9}
.project-data-sections button:hover:not(.active){background:#f0f5f9;color:#276b95}
.project-data-body{flex:1;min-height:0;overflow:auto;padding:24px;
 background:#fff}
.project-data-section{width:100%;max-width:1180px;margin:0 auto}
.input-library-header{display:flex;justify-content:space-between;align-items:flex-start;
 gap:20px;padding-bottom:17px}
.input-library-header h3{font-size:16px;color:#2b506c;font-weight:750;margin:0 0 5px}
.input-library-header p{font-size:11px;color:#8095a6;line-height:1.5;margin:0;max-width:780px}
.project-input-table-wrap{max-width:100%;overflow:auto;border:1px solid #e0e9f1;border-radius:7px}
.project-input-table{border-collapse:collapse;width:100%;font-size:11px}
.project-input-table th{padding:12px 11px;text-align:left;font-size:10px;
 color:#7d95a6;background:#f6f9fb;font-weight:700;white-space:nowrap;
 border-bottom:1px solid #e4eaf1}
.project-input-table td{border-bottom:1px solid #ecf1f5;padding:9px 10px}
.project-input-table tr:last-child td{border-bottom:0}
.project-input-table input:not([type="radio"]),.project-input-table select{
 width:100%;min-width:80px;max-width:350px;box-sizing:border-box;font:inherit;font-size:11px;
 padding:7px 8px;background:#fff;color:#324f69;border:1px solid #d9e4ed;border-radius:4px}
.project-input-table input[type="radio"]{accent-color:#247dac;cursor:pointer}
.project-input-table input:focus-visible,.project-input-table select:focus-visible{
 outline:2px solid #8ebbd7;outline-offset:1px}
.project-input-table td:nth-child(1){width:115px;text-align:center}
.input-row-remove{border:0;background:transparent;color:#a07b7b;cursor:pointer;font-size:19px;
 border-radius:4px;padding:3px 9px}
.input-row-remove:hover{background:#fcf0f0;color:#b24949}
.project-empty-data{text-align:center!important;padding:35px!important;color:#9cafbe}
.project-data-note{font-size:10px;line-height:1.65;color:#8499aa;margin:16px 0;
 max-width:1000px;padding-left:10px;border-left:2px solid #c5d5e1}
.unit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px}
.unit-setting{border:1px solid #e2ebf2;border-radius:6px;padding:14px;
 display:flex;flex-direction:column;gap:9px;background:#fff}
.unit-setting label{font-size:11px;color:#678398;font-weight:600}
.unit-setting input,.unit-setting select{font:inherit;padding:9px 11px;width:100%;
 background:#fff;border:1px solid #dbe6ee;border-radius:4px;color:#37566f;font-size:12px}
.unit-setting input:disabled{background:#f5f8fa;color:#839bad}
.project-data-standards{max-width:1100px}
.project-data-standards .design-case-card{padding:17px;margin:10px 0}
.project-data-standards .design-case-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}
.project-data-standards .design-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.project-data-standards .design-case-heading strong{font-size:13px}
.project-data-standards .design-panel-intro{font-size:13px}
.project-data-standards .design-standard-picker{max-width:350px}
.project-data-standards .design-mode-control label{font-size:12px}
.project-data-standards .design-input-summary>div{padding:4px 0}
.project-data-standards .design-input-summary span,.project-data-standards .design-input-summary strong{font-size:11px}
.project-data-section .library-reference{max-width:500px}
@media(max-width:800px){
 .project-data-header{padding:14px;align-items:flex-start}
 .project-data-header p{font-size:10px}
 .project-data-body{padding:15px}
 .project-data-standards .design-comparison{grid-template-columns:minmax(0,1fr)}
 .input-library-header{flex-direction:column}
}

/* P0.5c — project-cover metadata and reporting organizations */
#projectInformationPanel{max-width:1130px}
.project-info-section{margin-bottom:24px;border:1px solid #e1eaf1;
 border-radius:8px;background:#fff;padding:18px 19px 20px}
.project-info-section-header{padding-bottom:13px;margin-bottom:17px;border-bottom:1px solid #ebf0f5}
.project-info-section-header h4{font-size:13px;font-weight:750;color:#2c506b;margin:0 0 5px}
.project-info-section-header p{font-size:10px;line-height:1.5;color:#8a9faf;margin:0}
.project-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 21px}
.project-info-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.project-info-field.wide{grid-column:1/-1}
.project-info-field label{color:#56758d;font-size:11px;font-weight:650;
 display:flex;align-items:center;gap:7px}
.project-info-report-tag{font-weight:600;font-size:9px;line-height:1.2;
 color:#7f9bb0;border:1px solid #dbe6ef;background:#f8fbfd;
 border-radius:3px;padding:2px 5px}
.project-info-field input,.project-info-field textarea{
 width:100%;min-width:0;box-sizing:border-box;appearance:none;background:#fff;
 font:inherit;font-size:12px;line-height:1.5;color:#34536b;
 border:1px solid #d9e4ed;border-radius:5px;padding:9px 10px;
}
.project-info-field input::placeholder,.project-info-field textarea::placeholder{color:#aab9c5}
.project-info-field textarea{resize:vertical;min-height:57px}
.project-info-field input:focus-visible,.project-info-field textarea:focus-visible{
 outline:2px solid #91bfda;outline-offset:1px}
.project-info-report-preview{margin:20px 0 30px;border:1px solid #dce7ee;
 background:#fafcfe;border-radius:8px;padding:18px 20px}
.project-info-preview-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.project-info-preview-title h4{color:#2e5673;font-size:13px;margin:0;font-weight:750}
.project-info-preview-title small{color:#8197a9;font-size:10px}
.project-info-report-note{color:#7d90a2;font-size:10px;line-height:1.5;
 margin:9px 0 17px}
.project-info-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}
.project-info-preview-item{display:flex;flex-direction:column;gap:4px;
 border-bottom:1px solid #e8eef3;padding-bottom:10px;min-width:0}
.project-info-preview-item span{font-size:10px;color:#829aaa}
.project-info-preview-item strong{font-size:11px;color:#36536b;line-height:1.5;
 font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}
.project-info-preview-item .project-info-not-specified{font-weight:450;color:#a8b7c4}
@media(max-width:780px){
 .project-info-section{padding:14px}
 .project-info-grid,.project-info-preview-grid{grid-template-columns:minmax(0,1fr)}
 .project-info-preview-title{align-items:flex-start;flex-direction:column}
}

/* P0.6a — topology preflight: readable on desktop, scrolls on small screens */
#hydraulicPreflightPanel{max-width:1130px}
.preflight-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}
.preflight-header h3{font-size:17px;color:#264f6c;margin:0 0 7px}
.preflight-header p,.preflight-caption{font-size:11px;line-height:1.65;color:#6c8698;margin:0}
.preflight-status{white-space:nowrap;font-size:10px;color:#376b8e;background:#edf6fa;
 border:1px solid #d5e7f0;padding:6px 10px;border-radius:5px;font-weight:700}
.preflight-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}
.preflight-stat{border:1px solid #deebf3;border-radius:7px;background:#fff;padding:16px;
 display:flex;flex-direction:column;gap:7px}
.preflight-stat-value{font-weight:750;color:#254e6c;font-size:21px}
.preflight-stat-label{font-size:10px;color:#738da1}
.preflight-block{border:1px solid #dce8f0;border-radius:8px;background:#fff;padding:18px;margin-bottom:17px}
.preflight-block h4{font-size:13px;font-weight:750;color:#355b76;margin:0 0 9px}
.preflight-table-scroll{overflow-x:auto;margin-top:13px}
.preflight-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}
.preflight-table th{background:#f3f7fb;color:#627f93;font-weight:700}
.preflight-table th,.preflight-table td{padding:11px;border-bottom:1px solid #ebf0f5;white-space:nowrap}
.preflight-table td:last-child{white-space:normal;min-width:155px}
.preflight-empty{font-size:11px;color:#8ca2b2;padding:10px 0}
.preflight-issues{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.preflight-issue{border:1px solid #e1eaf0;border-left:3px solid #b2c4d2;
 border-radius:4px;padding:11px 12px;background:#fcfdfe;font-size:11px}
.preflight-issue.error{border-left-color:#c95b50}
.preflight-issue.warning{border-left-color:#c99544}
.preflight-issue strong{color:#365c75;font-size:10px}
.preflight-issue p{color:#5c758a;line-height:1.5;margin:5px 0 2px}
.preflight-entity{color:#8aa0b0;font-size:10px}
.preflight-limit{font-size:11px;color:#7a8d9b;border-top:1px solid #e0eaf0;
 line-height:1.7;padding:13px 3px;margin:8px 0 25px}
@media(max-width:700px){
 .preflight-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .preflight-header{flex-direction:column}
}

/* P0.6b — explicit equipment ports (not active hydraulic links) */
.equipment-port-binding-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:13px 0}
.equipment-port-binding{display:flex;flex-direction:column;gap:5px;min-width:0}
.equipment-port-binding label{font-size:10px;color:#658298;font-weight:700}
.equipment-port-binding select{width:100%;min-width:0;background:#fff;border:1px solid #d4e3ed;
 color:#34536d;border-radius:5px;font:inherit;font-size:11px;padding:8px}
.equipment-port-binding select:disabled{background:#f0f4f7;color:#9cb1c1}
.equipment-port-note{font-size:10px;color:#7b92a3;line-height:1.55;margin:9px 0}
.equipment-port-warning{font-size:10px;color:#855d2d;line-height:1.6;background:#fff9ee;
 border-left:2px solid #d9af68;padding:8px 9px;margin:8px 0}

/* P0.6C: keep topology controls in Properties, not as another sidebar */
.equipment-inline-action{border:1px solid #d9e6ee;border-radius:7px;background:#f8fbfd;padding:12px;margin:13px 0}
.equipment-inline-action strong{display:block;color:#2d5c79;font-size:11px;margin-bottom:6px}
.equipment-inline-action p{color:#688498;font-size:10px;line-height:1.6;margin:0 0 10px}
.equipment-inline-action label{color:#688498;font-size:10px;display:block;margin-bottom:6px}
.equipment-inline-action select{width:100%;font-size:11px;background:white;border-radius:5px;border:1px solid #cbdfe9;padding:8px;margin-bottom:9px}
.equipment-inline-action button{width:100%}

/* Unified valve silhouettes in CAD palette and drawing. */
.equipment-entry .equipment-glyph svg{width:29px;height:25px;display:block;overflow:visible}

/* P0.6D pump mapping: two pipe endpoints only, scoped to the current pipe. */
.equipment-pipe-autobind{margin:10px 0;padding:10px 11px;border:1px solid #cae3d9;
 border-radius:6px;background:#f5fbf8}
.equipment-pipe-autobind strong{display:block;color:#246455;font-size:11px;font-weight:750}
.equipment-pipe-autobind p{margin:6px 0 0;color:#51756d;font-size:10px;line-height:1.6}
.equipment-pipe-autobind button{margin-top:8px;width:100%}

#removeEquipmentBtn{margin:12px 0 6px;border-color:#d5bfc0;color:#87555d}

/* P0.6F: persisted pump Q-H points only; never show derived Q or H. */
.equipment-pump-curve{border:1px solid #d4e3ed;background:#f7fafc;border-radius:7px;padding:12px;margin:10px 0}
.equipment-pump-curve strong{display:block;font-size:11px;color:#2e5e7b}
.equipment-pump-curve p,.equipment-pump-curve small{font-size:10px;line-height:1.55;color:#657c8b}
.equipment-pump-curve textarea{box-sizing:border-box;width:100%;min-height:92px;resize:vertical;
 font:11px/1.5 ui-monospace,Consolas,monospace;border:1px solid #bcd2df;border-radius:5px;
 background:white;padding:8px}
.equipment-pump-curve button{width:100%;margin-top:9px}

/* P0.6G: shared pump Q-H library in L/s and m, Inspector preview */
.pump-library-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}
.pump-library-picker label{font-weight:700;font-size:12px;color:#334e63}
.pump-library-picker select{min-width:230px;max-width:480px;flex:1;border:1px solid #b9cbd9;border-radius:6px;padding:9px}
.pump-library-layout{display:grid;grid-template-columns:minmax(300px,1.05fr) minmax(340px,1fr);gap:20px;align-items:start}
.pump-library-editor,.pump-library-preview{border:1px solid #d8e2eb;border-radius:9px;background:#fff;padding:18px;min-width:0}
.pump-library-editor h4,.pump-library-preview h4{font-size:13px;color:#29495f;margin:0 0 12px}
.pump-library-editor h4:not(:first-child){margin-top:20px}
.pump-library-editor>p{font-size:11px;color:#64748b;margin:4px 0 10px}
.pump-data-field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:11px;color:#54697a}
.pump-data-field input{width:100%;box-sizing:border-box;background:white;border:1px solid #c8d6e2;border-radius:5px;padding:8px;font-size:12px}
.pump-library-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
.pump-point-table input{min-width:80px;max-width:130px;width:100%;box-sizing:border-box;border:1px solid #c7d5e0;border-radius:4px;padding:7px}
.pump-point-table td:last-child{width:70px}
.pump-add-point{background:#f7fafc}
.pump-add-point button{font-size:11px;white-space:nowrap;padding:7px}
.pump-chart{width:100%;max-width:800px;min-width:0;border:1px solid #e3e9ef;border-radius:7px;background:#fff;overflow:hidden}
.pump-chart svg{width:100%;height:auto;display:block}
.pump-chart small{display:block;text-align:center;font-size:10px;color:#718094;padding:0 8px 10px}
.pump-chart-compact{max-width:380px}
.pump-chart-empty{padding:30px 14px;text-align:center;font-size:12px;line-height:1.6;color:#64748b;background:#fafcfd}
.pump-reference-name{display:flex;flex-direction:column;gap:4px;margin:10px 0;font-size:12px}
.pump-reference-name small{color:#64748b}
.pump-reference-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.pump-reference-summary>div{border:1px solid #e1e8ef;border-radius:5px;padding:8px;display:flex;flex-direction:column;gap:5px}
.pump-reference-summary span{font-size:10px;color:#687d90}
.pump-reference-summary b{font-size:12px;color:#29485d}
.equipment-pump-reference .btn{margin-top:9px;width:100%}
@media(max-width:900px){.pump-library-layout{grid-template-columns:1fr}}

.hydraulic-basis-section{border:1px solid #d9e4ed;border-radius:8px;padding:16px 18px;margin:14px 0;background:#fff}
.hydraulic-basis-section h4{font-size:13px;color:#254b62;margin:0 0 9px}
.hydraulic-basis-section>p{font-size:11px;color:#62798b;line-height:1.6}
.hydraulic-basis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.basis-input{display:flex;flex-direction:column;font-size:11px;color:#344c60;gap:6px;font-weight:600}
.basis-input input{border:1px solid #bfcfdb;border-radius:5px;padding:9px;max-width:100%;width:100%;box-sizing:border-box;font-size:12px}
.basis-input small{font-size:10px;color:#77889a;font-weight:400;line-height:1.5}
.hydraulic-preview-table th,.hydraulic-preview-table td{font-size:11px;white-space:nowrap;padding:9px}
.hydraulic-preview-table input{width:120px;min-width:100px;padding:7px;border:1px solid #bfcfdb;border-radius:5px;font-size:11px}
.hydraulic-trial-pending{color:#8f6541;font-style:italic}
@media(max-width:840px){.hydraulic-basis-grid{grid-template-columns:1fr}}

.network-solver-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;
 flex-shrink:0;max-width:100%}
.network-solver-method{font-size:12px;font-weight:650;color:#2b506c}
.network-solver-banner{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;
 border:1px solid #d4e2ec;border-radius:8px;background:#f5f9fc;padding:12px 16px;margin:13px 0}
.network-solver-banner strong{font-size:11px;letter-spacing:.06em;color:#2d6074}
.network-solver-banner span{font-size:11px;color:#586f80}
.network-solver-diagnostic{font-size:12px;line-height:1.6;color:#506b7d;margin:14px 0}

/* Methodology reference — read-only, searchable, engineering review UI */
.methodology-header{gap:20px;align-items:flex-start}
.methodology-header h3{font-size:19px;margin:5px 0;color:#25445d}
.methodology-header p{line-height:1.65;max-width:790px;color:#597487}
.methodology-revision{white-space:nowrap;padding:9px 12px;border:1px solid #d5e2eb;border-radius:6px;background:#f3f8fb;font-size:11px;color:#53748a}
.methodology-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:16px 0 18px}
.methodology-overview>div{display:flex;flex-direction:column;gap:7px;border:1px solid #d9e5ed;border-radius:8px;background:#fff;padding:14px}
.methodology-overview strong{font-size:11px;color:#2d5670}
.methodology-overview span{font-size:11px;line-height:1.65;color:#64798a}
.methodology-tools{border:1px solid #dae6ee;border-radius:8px;background:#f7fafc;padding:14px;margin-bottom:15px;display:flex;flex-direction:column;gap:9px}
.methodology-tools label{font-size:11px;font-weight:750;color:#3e6278}
.methodology-tool-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.methodology-tool-row input{min-width:190px;flex:1;border:1px solid #bfd0da;border-radius:6px;background:white;padding:10px 12px;font-size:12px}
.methodology-tools small{font-size:10px;color:#8092a0}
.methodology-topics{display:flex;flex-direction:column;gap:11px}
.methodology-topic{border:1px solid #d8e4ed;border-radius:8px;background:#fff;overflow:hidden}
.methodology-topic[hidden]{display:none!important}
.methodology-topic summary{display:flex;align-items:center;gap:16px;padding:15px 17px;cursor:pointer;list-style:none;background:#f9fbfd}
.methodology-topic summary::-webkit-details-marker{display:none}
.methodology-topic summary::before{content:'+';color:#64899c;font-size:17px;font-weight:750}
.methodology-topic[open] summary::before{content:'−'}
.methodology-topic[open] summary{background:#f3f8fc;border-bottom:1px solid #e1eaf1}
.methodology-topic-title{flex:1;font-size:13px;font-weight:750;line-height:1.5;color:#2b516d}
.methodology-topic-status{font-size:9px;letter-spacing:.04em;font-weight:700;color:#597e91;text-align:right;max-width:185px}
.methodology-topic[data-methodology-status="pending"] .methodology-topic-status{color:#935d3d}
.methodology-topic[data-methodology-status="input-only"] .methodology-topic-status{color:#94702c}
.methodology-topic-body{padding:17px 20px 20px}
.methodology-summary{font-size:12px;color:#47657b;line-height:1.65;margin:0 0 17px}
.methodology-concepts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.methodology-concept{border:1px solid #e3edf3;border-radius:6px;background:white;padding:13px;min-width:0}
.methodology-concept h4{font-size:12px;color:#385e7a;margin:0 0 8px}
.methodology-concept p{font-size:11px;line-height:1.7;color:#5e7587;margin:0}
.methodology-formula{margin-top:10px;padding:11px 12px;border-radius:5px;background:#f3f7f9;border:1px solid #dfe8ef;color:#28475d;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}
.methodology-evidence,.methodology-sources{font-size:11px;line-height:1.7;color:#617b8a;margin-top:15px}
.methodology-evidence b,.methodology-sources b{color:#375c75}
.methodology-sources{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.methodology-sources code{font-size:10px;color:#527086;background:#f6f9fc;border:1px solid #dbe6ef;border-radius:4px;padding:3px 7px;overflow-wrap:anywhere}
.methodology-footer{margin-top:22px;padding:15px 0 18px;border-top:1px solid #dfe9f0;font-size:11px;line-height:1.7;color:#758a99}
@media(max-width:940px){.methodology-overview,.methodology-concepts{grid-template-columns:1fr}.methodology-topic summary{flex-wrap:wrap}}

/* Unified node / pipe / sprinkler accent; keep selection orange. */
.symbol.sprinkler{color:#1671b1;background:#edf4fc;border-color:#d9eaf8}


/* Modules move into the fixed-width left rail; preserve tool palette and
 * Inspector independent toggles, and reclaim the old horizontal mode row. */
.rail{padding-top:14px;gap:8px}
.rail-modules{width:100%;display:flex;flex-direction:column;align-items:center;gap:9px}
.rail-modules .rail-button{min-height:62px;padding:7px 2px;font-size:24px}
.rail-modules .rail-button small{font-size:9px;font-weight:650;line-height:1.15;white-space:normal;max-width:60px}
.rail-modules .rail-button.active{background:#224765;box-shadow:inset 3px 0 0 #54cbb3}
.rail-modules .rail-button:hover:not(:disabled):not(.active){background:#1c3b57;color:#fff}
.rail-modules .rail-button:focus-visible{outline:2px solid #9adcf2;outline-offset:2px}
.rail-modules .rail-button:disabled{opacity:.45}
#methodologyPane[hidden]{display:none!important}
.methodology-page>.project-data-body{background:#f7fafc}
.methodology-page .project-data-section{max-width:1240px}
#equipmentReferenceInspector{max-width:100%;padding:11px 12px;margin:0;border:0;background:transparent}
#equipmentReferenceInspector .library-reference-title{display:none}
#equipmentReferenceInspector .library-reference-name{font-size:12px}
#equipmentReferenceInspector .library-reference-field label{font-size:11px}
#equipmentReferenceInspector .library-reference-field input,
#equipmentReferenceInspector .library-reference-field textarea{font-size:12px;padding:8px 9px}
.workspace>.workspace-mode-tabs{display:none!important}
.topbar{height:68px;padding:9px 20px;min-height:0;flex-shrink:0}
.title-group h1{font-size:19px;margin-top:3px}
.project-tabbar{height:34px}
#calculationPane[hidden]{display:none!important}
@media(max-width:850px){
 .rail-modules .rail-button{width:43px;font-size:22px}
 .rail-modules .rail-button small{font-size:8px;max-width:40px;overflow-wrap:anywhere}
 .topbar{height:auto;min-height:70px}
}


/* P0.7B QA — editing controls and zoom together at left; Inspector alone at right.
 * Compact layouts scroll the command group without moving the Inspector. */
.toolbar{gap:8px}
.toolbar>.workspace-command-tools{flex:0 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap}
.toolbar>.inspector-tools{flex:0 0 auto;padding-left:6px;border-left:1px solid #dce5ef}
.drawing-scale-control{flex:0 0 auto;display:flex;align-items:center;gap:7px;margin-left:auto;color:#365772;font-size:11px;white-space:nowrap}
.drawing-scale-control label{font-weight:700}
.drawing-scale-control select{min-height:29px;padding:4px 5px;border:1px solid #c5d5e3;border-radius:5px;color:#244861;background:#fff;font:inherit}
.drawing-scale-control span{font-weight:650;color:#526981}
@media(max-width:960px){.drawing-scale-control label{display:none}}
.workspace-command-tools>.tool,.workspace-command-tools>.sep,.workspace-command-tools>#zoomLabel{flex-shrink:0}
.workspace-command-tools .sep{margin:0 4px}
.workspace-command-tools #zoomLabel{min-width:45px;font-variant-numeric:tabular-nums}
@media(max-width:1200px){.workspace-command-tools>.tool.compact{padding-left:8px;padding-right:8px}}
/* Red only after a blocked/failed solve. Before Run remains neutral. */
.network-solver-banner.solver-error strong{color:#b42318}
.network-solver-banner.solver-error span{color:#a12b21}
.network-solver-diagnostic.solver-error,.solver-error-details{color:#b42318;font-weight:650}

/* Network Properties: topology-aware accessories and non-mutating related
 * object navigation. Long labels wrap inside the narrow Inspector panel. */
.inspector-association-summary{font-size:11px;font-weight:750;color:#2e6b90;margin:8px 0 10px}
.inspector-accessories,.inspector-link-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.inspector-accessory-item,.inspector-connection-item{border:1px solid #e1e9f0;background:#fafcfe;
 border-radius:6px;padding:9px;min-width:0;overflow-wrap:anywhere}
.inspector-accessory-head,.inspector-connection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;flex-wrap:wrap}
.inspector-kind{font-size:10px;color:#587185;line-height:1.5}
.inspector-accessory-metadata{display:flex;flex-direction:column;gap:4px;margin-top:7px}
.inspector-accessory-metadata span,.inspector-meta{font-size:10px;line-height:1.5;color:#688297;overflow-wrap:anywhere}
.inspector-ref{appearance:none;padding:0;border:0;background:none;color:#1f6fa8;cursor:pointer;
 text-align:left;font-size:11px;font-weight:650;line-height:1.6;text-decoration:underline;text-decoration-color:#b7d4e8;
 overflow-wrap:anywhere;max-width:100%}
.inspector-ref:hover{color:#0e4879;text-decoration-color:currentColor}
.inspector-ref:focus-visible{outline:2px solid #4f9acd;outline-offset:2px;border-radius:2px}
.inspector-loss-summary{display:flex;flex-direction:column;gap:5px;margin:12px 0 8px;padding:10px;
 border:1px solid #d6e8f2;background:#f3f9fd;border-radius:6px}
.inspector-loss-summary strong{font-size:11px;color:#2b5f81}
.inspector-loss-summary small,.inspector-note,.inspector-empty-data{font-size:10px;color:#71899c;line-height:1.6}
.inspector-note{margin:9px 0 4px}
.inspector-related-title{font-size:11px;color:#395d76;margin:14px 0 7px}
.inspector-related-row{line-height:1.65;font-size:10px;color:#5e7b90;margin:8px 0;overflow-wrap:anywhere}
.inspector-solved-values{display:flex;flex-direction:column;gap:5px;padding:10px;background:#f1f8fd;
 border-radius:6px;color:#315b79;font-size:10px}
.inspector-connection-heading span{font-size:10px;font-weight:750;color:#668397}

/* P0.7D Plan overlapping-node selector */
.node-stack-picker{position:absolute;z-index:12;box-sizing:border-box;width:270px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);
 overflow:auto;padding:10px;border:1px solid #c9d8e6;border-radius:9px;background:#fff;
 color:#25405c;box-shadow:0 10px 30px rgba(17,43,76,.22);pointer-events:auto}
.node-stack-picker[hidden]{display:none}
.quick-dimension-editor{
 position:absolute;z-index:16;width:248px;max-width:calc(100% - 16px);
 max-height:calc(100% - 16px);overflow:auto;padding:11px 12px;
 border:1px solid #bfd3e4;border-radius:8px;background:#fff;color:#25405c;
 box-shadow:0 8px 24px #15345126;
}
.quick-dimension-editor[hidden]{display:none}
.quick-dimension-editor form{display:grid;gap:6px}
.quick-dimension-editor strong{font-size:13px;margin-bottom:3px;overflow-wrap:anywhere}
.quick-dimension-editor label{font-size:11px;font-weight:650}
.quick-dimension-editor .equipment-spec-field{margin:0}
.quick-dimension-editor input,.quick-dimension-editor select{
 min-width:0;min-height:29px;border:1px solid #c5d5e3;border-radius:5px;
 padding:4px 7px;color:#25405c;background:#fff;font:inherit;
}
.quick-dimension-editor input:focus,.quick-dimension-editor select:focus{
 outline:2px solid #167bba;outline-offset:1px;
}
.quick-dimension-editor small{color:#506980;line-height:1.35}
.quick-dimension-editor .quick-dimension-error{
 margin:0;color:#a04737;font-size:11px;line-height:1.35;overflow-wrap:anywhere;
}
.quick-dimension-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:3px}
.quick-dimension-actions .btn{min-height:27px;padding:4px 10px;font-size:11px}

.node-stack-title{font-size:12px;font-weight:800;display:block;margin:1px 3px 3px}
.node-stack-subtitle{font-size:10px;color:#8294a7;margin:0 3px 7px}
.node-stack-option{display:grid;grid-template-columns:1fr auto;gap:3px 8px;
 width:100%;text-align:left;background:#fff;border:1px solid transparent;
 border-radius:6px;padding:8px 7px;color:#29445f;cursor:pointer}
.node-stack-option:hover,.node-stack-option:focus-visible{background:#edf5fd;border-color:#9cc5e6;outline:none}
.node-stack-option.at-work-z{background:#f3f8ff}
.node-stack-name{font-weight:700;font-size:11px;overflow-wrap:anywhere}
.node-stack-elevation{font-size:11px;color:#166eaa;font-weight:800;font-variant-numeric:tabular-nums}
.node-stack-option small{grid-column:1 / -1;font-size:10px;color:#8495a5}

.node-stack-warning{margin:8px 1px 5px;padding:8px;border-left:3px solid #bc6d2c;
 background:#fff7ee;color:#805225;font-size:10px;line-height:1.5}
.node-stack-repair{margin-top:5px;width:100%;padding:8px;border-radius:5px;
 background:#fff;border:1px solid #d7a471;color:#8d5125;font-weight:700;
 font-size:10px;cursor:pointer;text-align:left}
.node-stack-repair:hover,.node-stack-repair:focus-visible{background:#fff3e4;border-color:#b97332}

/* P0.7J: explicit default-K assignment, visually distinguished from library editing. */
.sprinkler-default-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;
 border:1px solid #cddfea;background:#f5faff;padding:13px 15px;border-radius:8px;margin:13px 0 15px}
.sprinkler-default-toolbar strong{color:#244c70;font-size:12px}
#sprinklerDefaultStatus{margin-top:4px;color:#17679e;font-weight:750;font-size:13px}
#sprinklerDefaultCandidate{display:block;margin-top:5px;color:#748b9e;font-size:11px;line-height:1.5}
#applySprinklerDefault{flex:0 0 auto}
.sprinkler-preset-title{font-weight:650;color:#385370}
.sprinkler-metric-output{display:inline-block;padding:5px 7px;font-variant-numeric:tabular-nums;
 color:#41647e;font-weight:650;background:#f2f6fa;border:1px solid #e4ebf2;border-radius:4px}
#projectSprinklerLibrary input[readonly],#sprinklerKMetricReadOnly,#sprinklerKUsReadOnly{
 background:#f0f4f7;color:#4c667e;cursor:default}
@media(max-width:680px){.sprinkler-default-toolbar{align-items:stretch;flex-direction:column}
 #applySprinklerDefault{align-self:flex-start}}

/* P0.7K Pipe Library: material reference and specification creation */
.pipe-material-reference{border:1px solid #dce7f0;border-radius:8px;background:#fff;margin:13px 0}
.pipe-material-reference>summary{cursor:pointer;padding:11px 13px;color:#375b77;font-size:12px;font-weight:750}
.pipe-material-reference>.project-input-table-wrap{margin:0 10px 10px}
.pipe-material-reference>.project-data-note{margin:7px 12px 12px}
.pipe-nfpa-reference-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
 margin:8px 12px 12px;color:#375b77;font-size:11px;font-weight:650}
.pipe-nfpa-reference-picker select{max-width:100%;padding:6px 8px;border:1px solid #cfdce8;
 border-radius:5px;background:#fff;color:#304d63;font:inherit}
#pipeNfpaReferenceResults{margin:0 10px 10px}
.pipe-create-panel{background:#f6f9fc;border:1px solid #d9e6ef;border-radius:8px;padding:13px;margin:13px 0 19px}
.pipe-create-panel h4,.pipe-library-heading{font-weight:750;font-size:13px;color:#294f6e;margin:2px 0 12px}
.pipe-material-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 15px;align-items:end}
.pipe-material-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#52718a;font-weight:650;min-width:0}
.pipe-material-form label[hidden]{display:none!important}
.pipe-material-form input,.pipe-material-form select{background:#fff;border:1px solid #cfdce8;
 border-radius:5px;padding:7px 8px;min-width:0;width:100%;min-height:32px;color:#304d63;font-size:12px}
.pipe-create-preview{font-size:11px;color:#557791;grid-column:1 / -1;padding:8px 10px;
 border-left:3px solid #9dbbd2;background:#fff;min-height:30px}
.pipe-material-form #createMaterialPipe{justify-self:start}
.pipe-dimension-legacy{color:#a0adb9}
.project-input-table input[readonly]{background:#f2f6f9;color:#6e889d;cursor:default}
@media(max-width:1050px){.pipe-material-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.pipe-material-form{grid-template-columns:minmax(0,1fr)}}

/* P0.7L: Pipe specifications display-only until Edit. Separate project defaults. */
.pipe-choice-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0;
 padding:13px;background:#f5faff;border:1px solid #d2e2ef;border-radius:9px}
.pipe-choice-toolbar>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.pipe-choice-toolbar label,.pipe-choice-toolbar strong{color:#2c5977;font-size:12px;font-weight:800}
.pipe-choice-toolbar select{max-width:100%;width:100%;padding:8px;border:1px solid #c9d9e6;border-radius:6px;background:#fff}
.pipe-choice-toolbar small{color:#73899c;line-height:1.5;font-size:10px}
.pipe-choice-status{color:#2c6a98;font-size:12px;font-weight:700;min-height:18px;overflow-wrap:anywhere}
.pipe-choice-toolbar button{margin-top:auto}
.pipe-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
.pipe-row-actions button{font-size:11px;padding:4px 8px;min-height:28px}
#projectPipeSpecifications td{white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
#projectPipeSpecifications tr[hidden]{display:none}
.pipe-spec-editor{padding:15px;margin:13px 0;border:1px solid #9ec5e3;background:#f4f9fd;border-radius:9px}
.pipe-spec-editor[hidden]{display:none}
.pipe-spec-editor h4{margin:0 0 6px;color:#265a80;font-size:13px}
.pipe-spec-editor .pipe-material-form>label[hidden]{display:none}
.pipe-edit-buttons{display:flex;gap:8px;align-items:center;grid-column:1 / -1}
.pipe-spec-editor input[readonly]{background:#e8eef3;color:#587087;cursor:default}
@media(max-width:750px){.pipe-choice-toolbar{grid-template-columns:minmax(0,1fr)}}


/* Low-flow head rise is accepted by PCHIP and must not look like a blocking error. */
.pump-point-table tr.pump-rise-point{background:#fffaf0}
.pump-point-table tr.pump-rise-point td:first-child{color:#826422;font-weight:750}
.pump-point-table tr.pump-rise-point input{border-color:#decda5;background:#fffdf8}
.pump-qh-shape-note{margin:12px 0;padding:11px 13px;line-height:1.65;
 color:#526071;background:#f7f9fc;border:1px solid #d9e2e9;border-radius:5px}
.solver-pump-curve-info{margin:10px 0;line-height:1.6}
.solver-pump-curve-info .btn{margin-left:8px}
.solver-disconnect-help{padding:14px 15px;margin:12px 0;
 background:#fff;border:1px solid #d6e0e8;border-radius:7px}
.solver-disconnect-help strong{color:#334f69}
.solver-disconnect-help p{color:#536b7e;margin:7px 0;line-height:1.55}
.solver-disconnect-help button{margin-top:6px}


/* P0.7V: pump operating point comes exclusively from the converged network.
   Compact facts are distinct from manufacturer reference fields. */
.pump-performance-section{border-color:#c5dce9;background:#f9fcfe}
.pump-performance-section>h4{font-size:14px;color:#244f6c}
.pump-duty-card{border:1px solid #d7e4ed;border-radius:8px;background:#fff;
 padding:15px 15px 17px;margin:16px 0 2px}
.pump-duty-heading{display:flex;justify-content:space-between;align-items:flex-start;
 gap:12px;margin-bottom:13px}
.pump-duty-heading h4{font-size:14px;margin:0 0 5px;color:#234b65}
.pump-duty-heading p{color:#70899a;font-size:11px;margin:0;line-height:1.5}
.pump-duty-heading button{flex-shrink:0}
.pump-duty-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;
 margin-bottom:13px}
.pump-duty-metric{border:1px solid #d7e6f0;border-radius:6px;padding:11px 12px;
 min-width:0;background:#f5fafd;display:flex;flex-direction:column;gap:6px}
.pump-duty-metric strong{font-size:20px;font-variant-numeric:tabular-nums;color:#24516d}
.pump-duty-metric span{font-size:10px;color:#557389;line-height:1.4}
.pump-duty-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(330px,1.1fr);
 gap:16px;align-items:start}
.pump-duty-details,.pump-duty-curve{min-width:0}
.pump-duty-details h5,.pump-duty-specs h5{font-size:12px;color:#3a617c;margin:4px 0 9px}
.pump-duty-specs{margin-top:12px}
.pump-duty-table th{width:54%;text-align:left!important;white-space:normal;
 color:#546f83;font-weight:650;font-size:10px}
.pump-duty-table td{text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
.pump-duty-curve .pump-chart{max-width:none}
.pump-duty-source,.pump-duty-subnote,.pump-duty-notice{font-size:10px;color:#687f91;
 line-height:1.65;margin:12px 0 0;overflow-wrap:anywhere}
.pump-duty-notice{color:#745222;border-left:3px solid #e4c378;padding:7px 10px;
 background:#fffaf0;border-radius:4px}
@media(max-width:1100px){
 .pump-duty-layout{grid-template-columns:1fr}
 .pump-duty-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .pump-duty-summary{grid-template-columns:1fr}
 .pump-duty-heading{flex-direction:column}
 .pump-duty-card{padding:11px}
}


/* P0.7W: ephemeral Solver analysis overlay; never mistaken for code approval. */
.analysis-mode-control{display:inline-flex;flex:none;align-items:center;gap:4px;
 color:#24675f;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.analysis-mode-control input{margin:0;accent-color:#168b79}
.analysis-mode-control:has(input:disabled){color:#8a9cab;cursor:not-allowed}
#analysisOverlayStatus{font-size:9px;border-radius:3px;border:1px solid #c9e0d9;
 background:#f1faf7;color:#347363;padding:3px 5px}
.analysis-mode-control:has(input:disabled) #analysisOverlayStatus{background:#f5f7f9;
 color:#8a9bab;border-color:#e5ebf0}
.canvas-badge.mode-analyzed{color:#147e69}
.analysis-canvas-legend{position:absolute;right:16px;top:13px;display:flex;
 flex-direction:column;gap:7px;background:rgba(255,255,255,.95);
 border:1px solid #cce3db;border-radius:7px;padding:10px 12px;
 pointer-events:none;color:#37665c;font-size:10px;min-width:180px;
 box-shadow:0 2px 10px #18334e0d}
.analysis-canvas-legend[hidden]{display:none}
.analysis-canvas-legend strong{font-size:11px;color:#1b6c60}
.analysis-canvas-legend span{display:flex;gap:9px;align-items:center}
.analysis-canvas-legend i{width:23px;height:0;display:inline-block;
 border-top:3px solid #168b79;flex-shrink:0}
.analysis-canvas-legend i.flow-legend-zero{border-color:#8496a8}
.analysis-canvas-legend small{color:#7c8f91;font-size:9px}
.solver-property-results{padding:7px 2px 8px}
.solver-property-caption{font-size:10px;color:#477665;margin:0 0 12px;line-height:1.5}
.solver-property-result-row{display:flex;justify-content:space-between;align-items:baseline;
 gap:10px;border-bottom:1px solid #edf2f3;padding:8px 1px;font-size:10px;line-height:1.45}
.solver-property-result-row span{color:#657f89;min-width:0}
.solver-property-result-row strong{color:#245663;text-align:right;min-width:0;
 overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.solver-result-unavailable{font-size:10px;line-height:1.55;color:#8a6a37}
.analysis-result-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
 margin:13px 0 18px;padding:12px 14px;border:1px solid #cfdfeb;
 border-radius:7px;background:#f6fafc}
.analysis-result-actions span{font-size:11px;color:#617e90}
@media(max-width:1500px){#analysisOverlayStatus{display:none}}
@media(max-width:680px){.analysis-canvas-legend{top:29px;right:8px;min-width:155px}}


/* P0.7X: sprinkler outlet scenario controls. An active head represents an
   explicitly opened nozzle in one steady-state calculation, not a fire timer. */
.sprinkler-scenario-panel{margin:0 0 18px;border:1px solid #d8e6ed;
 border-radius:8px;background:#fbfdfe;padding:14px}
.sprinkler-scenario-heading{display:flex;align-items:flex-start;
 justify-content:space-between;gap:12px}
.sprinkler-scenario-heading h4{margin:1px 0 5px;color:#294f69;font-size:14px}
.sprinkler-scenario-heading p{margin:0;color:#72899b;font-size:11px}
#sprinklerActiveCount{white-space:nowrap;background:#e9f7f2;color:#177963;
 border:1px solid #c4e5d8;border-radius:6px;padding:6px 9px;
 font-size:12px;font-variant-numeric:tabular-nums}
.sprinkler-scenario-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
.sprinkler-scenario-actions .btn{min-height:29px;font-size:11px}
.sprinkler-scenario-custom{display:flex;gap:9px;align-items:center;
 flex-wrap:wrap;margin-bottom:12px;font-size:11px;color:#556f83}
.sprinkler-scenario-custom input{max-width:70px;min-height:30px;
 border:1px solid #cddce7;border-radius:5px;padding:5px 8px}
.sprinkler-scenario-note{font-size:10px;line-height:1.65;
 padding:9px 11px;background:#f4f8fb;color:#698094;border-radius:5px}
.sprinkler-scenario-list{max-height:290px;overflow:auto;display:grid;
 grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:6px;margin-top:13px}
.sprinkler-scenario-item{display:flex;align-items:center;gap:8px;
 border:1px solid #e0e9ef;border-radius:5px;background:white;
 padding:7px 9px;font-size:11px;color:#334e66;cursor:pointer;min-width:0}
.sprinkler-scenario-item input{accent-color:#168b79}
.sprinkler-scenario-index{color:#94a6b6;font-size:10px;min-width:15px}
.sprinkler-scenario-label{font-weight:700;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap}
.sprinkler-scenario-item small{font-size:10px;color:#8798a7;
 overflow:hidden;text-overflow:ellipsis}
.sprinkler-scenario-item strong{font-size:9px;margin-left:auto;
 white-space:nowrap;letter-spacing:.3px}
.sprinkler-scenario-item .head-active{color:#16816b}
.sprinkler-scenario-item .head-inactive{color:#929ba4}


/* P0.7Z: engineering reference library; values must be sourced, not guessed. */
.fitting-library-panel{display:flex;flex-direction:column;gap:12px}
.fitting-library-card{border:1px solid #d9e5ed;background:#fff;border-radius:8px;
 padding:15px;display:flex;flex-direction:column;gap:12px}
.fitting-library-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fitting-library-heading strong{color:#2b4b61;font-size:13px;margin-right:auto}
.fitting-library-heading .fl-ready{color:#147d65;background:#e8f7f1;border-radius:5px;
 padding:5px 7px;font-weight:700;font-size:10px}
.fitting-library-heading .fl-draft{color:#876d34;background:#fff9e9;border-radius:5px;
 padding:5px 7px;font-weight:700;font-size:10px}
.fitting-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
 gap:12px}
.fitting-library-field{display:flex;flex-direction:column;gap:6px;min-width:0;
 font-size:10px;color:#506a7e;font-weight:600}
.fitting-library-field input,.fitting-library-field select,
.fitting-library-picker select{width:100%;min-width:0;min-height:32px;
 border-radius:5px;border:1px solid #cbdce7;background:white;
 padding:6px 8px;color:#304f64;font-size:11px}
.fitting-library-field input:focus,.fitting-library-field select:focus,
.fitting-library-picker select:focus{outline:2px solid #9dcfc5;outline-offset:1px}
.fitting-library-row-foot{margin:0;font-size:10px;line-height:1.6;color:#7890a1}
.fitting-library-picker{padding:11px;border:1px solid #d6e5ee;border-radius:7px;
 background:#f8fcfd;display:flex;flex-direction:column;gap:9px;margin:12px 0}
.fitting-library-picker>label{font-size:11px;color:#2d6171;font-weight:700}
.fitting-library-picker-controls{display:flex;align-items:center;gap:8px}
.fitting-library-picker-controls select{flex:1;min-width:0}
.fitting-library-picker small,.fitting-library-provenance{
 font-size:10px;line-height:1.5;color:#627e8a;overflow-wrap:anywhere}
.fitting-library-provenance{font-weight:600;margin-right:auto}
@media(max-width:650px){.fitting-library-picker-controls{flex-direction:column;align-items:stretch}}


/* P0.82 — One standard-first Hydraulic Basis workflow (NFPA / TCVN). */
.standard-primary-selector{background:#f7fbfe;border:1px solid #d7e5ef;border-radius:9px;
 padding:19px 22px;margin:0 0 17px}
.standard-primary-selector .section-caption,.standard-design-inputs>.section-caption,
.standard-hydraulic-section>.section-caption{font-size:10px;color:#587d9b;
 font-weight:750;letter-spacing:.065em;margin-bottom:8px}
.standard-primary-selector h3{font-size:18px;line-height:1.3;margin:0 0 15px;
 color:#294d67}
.standard-primary-selector .design-standard-picker{margin:0;max-width:440px;
 font-size:12px;color:#395e74}
.standard-primary-selector .design-standard-picker select{font-size:13px;
 min-height:40px;padding:7px 11px;border-color:#b6d0e2}
.standard-primary-selector .project-data-note{margin:14px 0 0;font-size:11px;
 line-height:1.65;color:#506e82}
.standard-design-inputs{margin-bottom:17px}
.standard-design-inputs .design-case-card{margin:10px 0 0}
.standard-design-inputs .design-mode-control{margin:9px 0 11px}
.standard-design-inputs .design-calculation-limit{margin-bottom:0}
.standard-hydraulic-fields{border-top:1px solid #dbe7ed;padding-top:21px}
.standard-hydraulic-fields[hidden]{display:none!important}
.standard-hydraulic-section>.input-library-header{margin-bottom:15px}
.standard-hydraulic-section .hydraulic-basis-section{margin:13px 0}
.standard-hydraulic-section .hydraulic-basis-section .hydraulic-basis-grid{
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.standard-hydraulic-section .hydraulic-preview-table{white-space:nowrap}
@media(max-width:700px){
 .standard-primary-selector{padding:14px}
 .standard-primary-selector h3{font-size:16px}
 .standard-hydraulic-fields{padding-top:13px}
}


/* P0.8: Solver-bound calculation report. Screen and paper share the same
 * escaped engineering data; browser print dialog provides Save as PDF. */
.reports-page[hidden]{display:none!important}
.reports-body{background:#f3f6fa}
.reports-body>.project-data-section{max-width:1460px}
.reports-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:14px 19px;background:#fff;border:1px solid #dae5ee;border-radius:9px;margin-bottom:18px}
.reports-toolbar>div:first-child{display:flex;flex-direction:column;gap:4px}
.reports-toolbar strong{color:#244967;font-size:15px}
.reports-toolbar small{color:#738ca4;font-size:11px}
.reports-actions{display:flex;flex-wrap:wrap;gap:9px}
.hydraulic-report{background:white;border:1px solid #d4e0e8;border-radius:10px;
 padding:28px 32px 36px;box-shadow:0 3px 20px rgba(22,54,78,.05)}
.reports-cover{border-bottom:2px solid #204c6c;padding-bottom:20px;margin-bottom:19px}
.reports-kicker{color:#6f8aa3;letter-spacing:1.1px;font-weight:800;font-size:10px}
.reports-cover h2{font-size:23px;color:#163f61;margin:10px 0;overflow-wrap:anywhere}
.reports-cover>p{font-size:13px;color:#50728a;margin:0 0 17px}
.reports-cover-grid,.reports-run-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.report-detail{background:#f5f8fb;border:1px solid #e4ebf2;border-radius:6px;padding:9px 11px;
 min-width:0;display:flex;flex-direction:column;gap:5px}
.report-detail span{font-size:10px;color:#738ca1}
.report-detail strong{font-size:11px;font-weight:650;color:#234c6a;overflow-wrap:anywhere}
.reports-disclaimer{padding:13px 15px;background:#fff7e9;border:1px solid #e6cda5;
 border-left:4px solid #ad7732;color:#744e23;line-height:1.65;font-size:11px}
.reports-disclaimer strong{font-size:11px}
.reports-missing{margin:10px 0;color:#986f37;font-size:11px}
.reports-section{padding-top:19px;margin-top:18px;border-top:1px solid #e4ecf2}
.reports-section h3{font-size:15px;color:#184767;margin:0 0 15px}
.reports-stats{margin-top:13px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.report-stat{display:flex;gap:6px;flex-direction:column;padding:13px;
 background:#eaf4fa;border:1px solid #d1e7f2;border-radius:7px}
.report-stat span{font-size:11px;color:#5c7a92}
.report-stat strong{font-size:19px;color:#0f5984;font-variant-numeric:tabular-nums}
.reports-table-scroll{width:100%;overflow-x:auto}
.reports-table{width:100%;font-variant-numeric:tabular-nums}
.reports-table th,.reports-table td{white-space:nowrap;font-size:11px;text-align:left}
.reports-table th{font-weight:750}
.reports-technical-note{color:#668298;line-height:1.65;font-size:11px}
.reports-section p{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.reports-unavailable{padding:22px;border:1px solid #e5bbbc;border-radius:8px;
 background:#fff8f8;color:#9e383a}
.reports-unavailable strong{font-size:14px}
.reports-warning-inner{background:#f7f9fb;padding:12px 16px;border-radius:7px}
@media(max-width:1100px){
 .reports-cover-grid,.reports-run-details{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reports-toolbar{align-items:flex-start;flex-direction:column}
 .reports-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .hydraulic-report{padding:18px 12px}
 .reports-cover-grid,.reports-run-details,.reports-stats{grid-template-columns:1fr}
}
@page{size:A4 landscape;margin:12mm}
@media print{
 html,body,.shell,.workspace{height:auto!important;min-height:0!important;
  width:100%!important;display:block!important;overflow:visible!important;
  background:white!important}
 .rail,.topbar,.project-tabbar,.toolbar,.main-layout,#projectDataPane,
 #calculationPane,#methodologyPane,.reports-page>.project-data-header,.reports-toolbar,
 .reports-actions,#nodeStackPicker,.statusbar{display:none!important}
 #reportsPane{display:block!important;position:static!important;min-height:0!important;
  width:100%!important;height:auto!important;overflow:visible!important;
  margin:0!important;border:0!important}
 #reportsPane .project-data-body{display:block!important;overflow:visible!important;
  height:auto!important;padding:0!important;background:white!important}
 #reportsPane .project-data-section{max-width:none!important;width:100%!important}
 .hydraulic-report{box-shadow:none!important;border:0!important;padding:0!important;
  border-radius:0!important}
 .reports-cover-grid,.reports-run-details{grid-template-columns:repeat(4,minmax(0,1fr))}
 .reports-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .report-detail,.report-stat{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .reports-section{break-inside:auto}
 .reports-section h3{break-after:avoid}
 .reports-table-scroll{overflow:visible!important}
 .reports-table{font-size:9px;width:100%;table-layout:auto}
 .reports-table td,.reports-table th{font-size:9px!important;white-space:normal;overflow-wrap:anywhere}
 .reports-table thead{display:table-header-group}
 .reports-table tr{break-inside:avoid}
 .reports-disclaimer{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}


/* P0.86: Detailed pressure worksheet and live Plan/Isometric network diagram. */
.reports-view-choice{font-size:11px;font-weight:750;color:#42637f;align-self:center}
.reports-view-select{min-height:34px;border:1px solid #c6d8e8;border-radius:6px;
 color:#204966;background:#fff;padding:7px 11px;min-width:106px}
.reports-diagram-container{width:100%;overflow:hidden;background:#fff;border-radius:7px}
.reports-diagram-svg{display:block;width:100%;height:auto;min-height:270px;
 border:1px solid #dfebf3;border-radius:7px}
.reports-diagram-legend{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0;color:#57748a;
 font-size:11px}
.reports-diagram-legend span{display:inline-flex;align-items:center;gap:6px}
.reports-diagram-legend i{display:inline-block;width:19px;height:4px;border-radius:2px}
.reports-leg-pipe{background:#245c85}
.reports-leg-flow{background:#158972}
.reports-leg-head{background:#c44d47}
.reports-leg-inactive{background:#9aa7b1}
.reports-leg-draft{height:0!important;border-top:2px dashed #a6b8c5}
.reports-sheet-intro{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;
 background:#eff5f9;color:#345a75;padding:11px 14px;border:1px solid #d7e6f0;border-radius:6px 6px 0 0}
.reports-sheet-intro strong{font-size:12px;color:#214b6a}
.reports-sheet-intro span{font-size:11px}
.reports-sheet-scroll{overflow-x:auto;width:100%;margin:0}
.reports-calculation-table{border-collapse:collapse;min-width:1500px;width:100%;font-size:10px;
 font-variant-numeric:tabular-nums}
.reports-calculation-table th{background:#dfeefa;color:#174461;text-align:center;vertical-align:middle;
 font-weight:750;border:1px solid #b9d1e1;padding:9px 6px;white-space:normal}
.reports-calculation-table thead tr:nth-child(2) th{background:#ecf5fb}
.reports-calculation-table td{padding:8px 7px;border:1px solid #d7e2ea;font-size:10px;
 vertical-align:middle}
.reports-calculation-table tbody tr:nth-child(even){background:#f7fafc}
.reports-calculation-table .report-numeric{text-align:right;white-space:nowrap}
.reports-diagram-page h3,.reports-calculation-page h3{color:#15577e}
@media print{
 @page{size:A3 landscape;margin:10mm}
 .reports-diagram-page{break-before:page;page-break-before:always}
 .reports-calculation-page{break-before:page;page-break-before:always}
 .reports-diagram-container,.reports-diagram-svg{overflow:visible!important;
  border:0!important;max-width:100%!important;min-height:0!important}
 .reports-diagram-svg{display:block!important;width:100%!important;height:auto!important;
  max-height:200mm!important}
 .reports-diagram-legend{gap:10px;font-size:9px}
 .reports-sheet-scroll{overflow:visible!important;width:100%!important}
 .reports-calculation-table{min-width:0!important;width:100%!important;font-size:8px!important;
  table-layout:auto!important}
 .reports-calculation-table th,.reports-calculation-table td{
  font-size:7.5px!important;padding:4px 3px!important;overflow-wrap:anywhere;
  white-space:normal!important;line-height:1.25!important}
 .reports-calculation-table thead{display:table-header-group}
 .reports-calculation-table tbody tr{break-inside:avoid;page-break-inside:avoid}
 .reports-diagram-page,.reports-diagram-container{break-inside:avoid;page-break-inside:avoid}
 .reports-calculation-page{break-inside:auto!important}
 .reports-sheet-intro,.reports-calculation-table th{print-color-adjust:exact;
  -webkit-print-color-adjust:exact}
}


/* P0.87: Traditional hydraulic calculation report typography.
 * Scope intentionally limited to Reports; no global editor/font changes. */
.hydraulic-report,
.hydraulic-report *,
.hydraulic-report svg text{
 font-family:"Courier New",Consolas,"Liberation Mono",monospace;
 font-variant-numeric:tabular-nums;
}
.hydraulic-report .reports-table td,
.hydraulic-report .reports-table th,
.hydraulic-report .reports-calculation-table td,
.hydraulic-report .reports-calculation-table th{
 font-family:"Courier New",Consolas,"Liberation Mono",monospace;
 letter-spacing:0;
 font-variant-numeric:tabular-nums;
}
.hydraulic-report .report-pipe-annotation text{
 dominant-baseline:auto;
 text-rendering:geometricPrecision;
}
@media print{
 .hydraulic-report,.hydraulic-report *,.hydraulic-report svg text{
  font-family:"Courier New",Consolas,"Liberation Mono",monospace!important;
 }
}


/* P0.89 — Portrait engineering report + independently oriented drawing pages.
 * Named @page contexts allow Chromium Save as PDF to mix A4 orientations.
 * Wide calculation tables are split before printing; never scale to A3. */
@page{size:A4 portrait;margin:12mm}
@page reportPortrait{size:A4 portrait;margin:12mm}
@page reportLandscape{size:A4 landscape;margin:10mm}
.reports-print-diagrams{display:none}
.hydraulic-report{font-size:14px;line-height:1.48}
.hydraulic-report .reports-section h3{font-size:17px}
.hydraulic-report .reports-section h4{font-size:14px;color:#28546f;margin:12px 0 8px}
.hydraulic-report .reports-technical-note,
.hydraulic-report .reports-section p{font-size:13px;line-height:1.65}
.hydraulic-report .reports-table th,
.hydraulic-report .reports-table td{font-size:13px;line-height:1.4;padding:9px 8px}
.hydraulic-report .reports-calculation-table{min-width:0;width:100%;table-layout:auto}
.hydraulic-report .reports-calculation-table th,
.hydraulic-report .reports-calculation-table td{font-size:13px;padding:9px 7px;line-height:1.4;
 white-space:normal;overflow-wrap:anywhere}
.hydraulic-report .reports-calculation-table td.report-numeric{white-space:nowrap}
.hydraulic-report .reports-sheet-intro span,
.hydraulic-report .reports-sheet-intro strong{font-size:13px}
.hydraulic-report .report-detail span,
.hydraulic-report .report-stat span{font-size:12px}
.hydraulic-report .report-detail strong{font-size:13px}
.hydraulic-report .reports-cover>p{font-size:14px}
.hydraulic-report .reports-disclaimer{font-size:12px}
.reports-worksheet-group,.reports-table-group{margin-top:15px}
.reports-worksheet-group>.reports-sheet-scroll,
.reports-table-group>.reports-table-scroll{margin-top:6px}
.reports-view-hint{color:#4d6c82;font-size:13px;line-height:1.5}
@media print{
 .hydraulic-report{page:reportPortrait;font-size:10.5pt!important;line-height:1.4!important}
 .reports-section{page:reportPortrait;break-inside:auto}
 .reports-screen-diagram{display:none!important}
 .reports-print-diagrams{display:block!important}
 .reports-diagram-page{break-before:auto!important;page-break-before:auto!important;
  margin:0!important;padding:0!important;border:0!important}
 .reports-diagram-page>h3{display:none!important}
 .reports-print-sheet{page:reportLandscape;break-before:page;page-break-before:always;
  display:block!important;min-height:0!important;break-inside:avoid;
  margin:0!important;padding:0!important}
 .reports-print-sheet h4{font-size:14pt!important;line-height:1.3;margin:0 0 10mm!important}
 .reports-print-sheet .reports-diagram-svg{width:100%!important;height:auto!important;
  max-height:165mm!important;min-height:0!important}
 .reports-print-sheet .reports-diagram-legend{font-size:10pt!important;gap:12px}
 .reports-print-sheet .reports-technical-note{font-size:9.5pt!important}
 .reports-cover-grid,.reports-run-details{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .reports-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .report-detail span,.report-stat span{font-size:9.5pt!important}
 .report-detail strong,.report-stat strong{font-size:10.5pt!important}
 .reports-section h3{font-size:12pt!important}
 .reports-worksheet-group h4,.reports-table-group h4{font-size:10.5pt!important}
 .reports-sheet-scroll,.reports-table-scroll{overflow:visible!important}
 .reports-calculation-table,.reports-table{width:100%!important;min-width:0!important;
  table-layout:auto!important}
 .reports-calculation-table th,.reports-calculation-table td{
  font-size:9.5pt!important;line-height:1.32!important;padding:5px 4px!important;
  white-space:normal!important;overflow-wrap:anywhere}
 .reports-table th,.reports-table td{
  font-size:9.5pt!important;line-height:1.32!important;padding:5px 4px!important;
  white-space:normal!important;overflow-wrap:anywhere}
 .reports-technical-note,.reports-section p{font-size:10pt!important}
 .reports-disclaimer{font-size:9.5pt!important}
 .reports-worksheet-group,.reports-table-group{break-inside:auto}
 .reports-worksheet-group>h4,.reports-table-group>h4{break-after:avoid}
 .reports-worksheet-group table thead,.reports-table-group table thead{display:table-header-group}
 .reports-calculation-page{page:reportPortrait;break-before:page;page-break-before:always}
}


/* P0.90 · Pre-solver network actual-dimensions register */
.geometry-calc-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.geometry-register{max-width:1200px;margin:0 auto;padding:4px 2px 30px}
.geometry-register-header{margin-bottom:15px}
.geometry-register-header .section-caption{font-size:10px;color:#6d8aa1;
 font-weight:750;letter-spacing:.08em;margin-bottom:8px}
.geometry-register-header h3{font-size:19px;color:#254d68;margin:0 0 9px}
.geometry-register-header p{color:#5f7d95;line-height:1.55;font-size:12px;margin:0}
.geometry-register-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:12px;margin:14px 0}
.geometry-register-counters>div{border:1px solid #dce8ef;border-radius:8px;
 background:#f6fafc;padding:13px 16px;display:flex;gap:6px;flex-direction:column}
.geometry-register-counters strong{font-size:21px;color:#1f5374;font-variant-numeric:tabular-nums}
.geometry-register-counters span{font-size:11px;color:#658399}
.geometry-register-note{padding:14px 17px;border:1px solid #d4e6ef;border-left:4px solid #3796ac;
 background:#f4fafc;color:#395f74;font-size:12px;line-height:1.65;border-radius:6px}
.geometry-register-note strong{font-weight:750;color:#235472}
.geometry-register-block{margin:22px 0 0}
.geometry-register-block h4{font-size:15px;margin:0 0 10px;color:#315b77}
.geometry-register-table{width:100%;font-size:12px}
.geometry-register-table th{background:#eef5f9!important;white-space:nowrap;
 font-size:11px;color:#4d6e84!important}
.geometry-register-table th em{font-size:9px;font-style:normal;color:#248c7b;
 font-weight:650;margin-left:2px}
.geometry-register-table td{font-size:12px;vertical-align:middle;white-space:nowrap;
 font-variant-numeric:tabular-nums}
.geometry-register-table td:first-child{text-align:left;width:auto}
.geometry-register-table .geometry-numeric{text-align:right;font-variant-numeric:tabular-nums}
.geometry-register-table .geometry-edit{width:100%;min-width:105px;max-width:170px;
 height:34px;padding:6px 8px;font-size:12px;border:1px solid #b7cddb;
 background:#fff;border-radius:5px;color:#23455c;font-variant-numeric:tabular-nums}
.geometry-register-table select.geometry-edit{max-width:190px;min-width:160px}
.geometry-register-table input.geometry-edit:disabled{background:#f2f5f8;color:#8497a5}
.geometry-register-table .geometry-edit:focus-visible{outline:2px solid #3180ac;outline-offset:1px}
.geometry-open{background:none;border:0;text-align:left;font-size:12px;
 font-weight:750;color:#1974a3;cursor:pointer;padding:4px 0;text-decoration:underline;
 text-decoration-color:transparent;text-underline-offset:3px}
.geometry-open:hover,.geometry-open:focus-visible{text-decoration-color:currentColor}
.geometry-register-footnote{margin:17px 0;color:#688397;font-size:11px;line-height:1.65}
@media(max-width:690px){.geometry-register-counters{grid-template-columns:1fr}}


/* P0.91: pre-Solver fittings and pipe equipment declarations */
.accessories-register{max-width:1320px}
.accessories-register .geometry-register-note{margin-bottom:20px}
.accessory-register-table{min-width:1020px}
.accessory-register-table td{vertical-align:middle}
.accessory-register-table th:last-child{min-width:100px}
.accessory-register-table .accessory-input,
.accessory-register-table .accessory-select{width:100%;min-width:76px;max-width:170px;
 border:1px solid #c2d2e0;border-radius:5px;background:white;padding:7px 8px;
 height:34px;font-size:12px;color:#2b4f65;font-variant-numeric:tabular-nums}
.accessory-register-table .accessory-input:disabled,
.accessory-register-table .accessory-select:disabled{background:#f3f6f8;color:#8599a5}
.accessory-register-table .accessory-input:focus-visible,
.accessory-register-table .accessory-select:focus-visible,
.accessory-quick-form :is(input,select):focus-visible,
.accessory-library-form select:focus-visible{outline:2px solid #287bac;outline-offset:1px}
.accessory-register-table .accessory-input[type=number]{max-width:118px}
.accessory-register-table td:first-child{min-width:145px}
.accessory-register-table .accessory-reference{white-space:normal;max-width:290px;
 font-size:11px;line-height:1.5;color:#607b8c}
.accessory-register-table .accessory-subtitle{display:block;font-size:10px;
 color:#7690a1;font-weight:500;margin:5px 0 0}
.accessory-pipe-picker{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;
 margin:10px 0 13px;color:#345a74}
.accessory-pipe-picker select{padding:8px 11px;border:1px solid #b9d1e1;
 border-radius:6px;background:white;color:#2a5c78;min-width:240px}
.accessory-quick-form{display:flex;flex-wrap:wrap;align-items:end;gap:11px;
 padding:14px;background:#f6fafc;border:1px solid #dce9f2;border-radius:7px;
 margin-top:14px}
.accessory-quick-form>label,
.accessory-library-form>label{display:flex;flex-direction:column;gap:6px;min-width:116px;
 font-size:11px;font-weight:650;color:#486d85}
.accessory-quick-form>label:first-child{min-width:182px;flex:1}
.accessory-quick-form input,
.accessory-quick-form select,
.accessory-library-form select{min-height:36px;padding:7px 9px;border:1px solid #b8cede;
 border-radius:5px;background:white;color:#264d67;font-size:12px}
.accessory-library-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;
 padding:14px;border:1px dashed #c6d8e6;border-radius:7px;margin:14px 0}
.accessory-library-form label{flex:1;min-width:220px}
.accessory-device-status{display:inline-flex;padding:5px 8px;font-size:10px;font-weight:750;
 border-radius:5px;line-height:1.4;white-space:nowrap}
.accessory-device-status.physically-installed{background:#eaf6f2;color:#16745f}
.accessory-device-status.schematic-only{background:#fff4e3;color:#94662b}
.accessory-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.accessory-actions .btn{font-size:11px;padding:7px 9px;white-space:nowrap}
@media(max-width:700px){
 .accessory-pipe-picker{align-items:flex-start;flex-direction:column}
 .accessory-pipe-picker select{min-width:0;width:100%}
 .accessory-quick-form>label{min-width:48%;flex:1}
}

.iso-draft-bar{
 display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;
 padding:5px 12px;border-bottom:1px solid #d5e3ef;background:#f2f8fc;color:#365772;
 font-size:11px;min-height:36px;flex-shrink:0;
}
.iso-draft-bar[hidden],.iso-draft-bar:not([data-view="isometric"]) [data-iso-draft-only]{display:none}
.iso-draft-bar>strong{color:#176bac}
.iso-draft-bar label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.iso-draft-bar select,#isoDraftLength{
 min-height:25px;padding:3px 5px;border:1px solid #c5d5e3;border-radius:5px;
 color:#244861;background:#fff;font:inherit;
}
#isoDraftLength{width:72px}
.iso-draft-bar input[type="checkbox"]{accent-color:#176bac}
.iso-draft-readout{flex:1 0 165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 color:#17665d;font-variant-numeric:tabular-nums;min-width:0}
.iso-draft-readout[data-blocked]{color:#9d4a37}
/* H3 CAD drafting: compact DN chooser at the marked spot, after start hint. */
.iso-draft-bar[hidden] #pipeDraftDNControl,
.iso-draft-bar[hidden] #pipeDraftLibraryBtn,
#pipeDraftDNControl[hidden],#pipeDraftLibraryBtn[hidden]{display:none}
#pipeDraftDN{max-width:min(218px,31vw);min-width:135px;font-weight:600}
#pipeDraftLibraryBtn{padding:3px 7px;min-height:25px;font-size:11px;white-space:nowrap}
.iso-draft-bar[data-tool="vertical"] [data-iso-draft-only],
.iso-draft-bar[data-tool="vertical"] label:has(#isoDraftLength){display:none}

.iso-draft-bar[data-view="plan"] .iso-draft-readout{
 flex:0 1 auto;min-width:130px;max-width:360px
}
@media (max-width:1100px){
 .iso-draft-bar .iso-draft-readout{max-width:250px}
 #pipeDraftDN{max-width:150px;min-width:104px}
}


#deleteBtn{color:#a65343}
#deleteBtn:disabled{color:#9eafbb}
#deleteSelectedEntityBtn{margin-top:12px;color:#9d4a37;border-color:#e7c0b8}
[data-remove-node-fitting]{margin-top:9px;border-color:#bee0d7!important;color:#176c64!important;white-space:normal!important}

.cad-command-tools{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.tool.cad-command-tool{justify-content:center;font-size:12px;font-weight:600;padding:5px 4px;
 min-height:30px;border-color:#dce8f2}
.canvas-wrap[data-cad-command]:not([data-cad-command="select"]) canvas{cursor:crosshair}
.cad-command-options{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);
 display:flex;align-items:center;gap:10px;white-space:nowrap;padding:5px 8px;border:1px solid #dae6ef;
 border-radius:7px;background:#fff;color:#3b5470;font-size:12px;box-shadow:0 2px 8px #18334e12}
.cad-command-options[hidden],.cad-command-options [hidden]{display:none}
.cad-command-options .btn{min-height:28px;padding:4px 8px}
#cadRotateAngle{width:92px;padding:4px 6px;border:1px solid #b8cde1;border-radius:4px;color:inherit}
#cadMirrorKeep{vertical-align:middle;accent-color:#177ab9}

/* CAD performance diagnostics, enabled only by the user. */
.cad-perf-monitor{position:absolute;right:12px;top:44px;z-index:24;width:260px;max-width:calc(100% - 24px);
 background:rgba(249,251,254,.97);border:1px solid #b9ccd9;border-radius:9px;
 box-shadow:0 4px 17px rgba(31,53,76,.16);padding:10px 12px;color:#28475e;
 font:11px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cad-perf-monitor[hidden]{display:none!important}
.cad-perf-monitor strong{font-size:12px}
.cad-perf-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;margin-top:8px}
.cad-perf-grid output{font-variant-numeric:tabular-nums;color:#0c7765;font-weight:700;text-align:right}
.cad-perf-monitor p{margin:7px 0 3px;color:#49677a;font-size:10px}
.cad-perf-monitor small{color:#687f90;font-size:10px;display:block}
.cad-perf-actions{display:flex;gap:7px;margin:8px 0}
.cad-perf-actions button{cursor:pointer;background:#eff5fa;border:1px solid #bfd0de;border-radius:5px;
 font-size:11px;color:#2a506a;padding:4px 9px}
.cad-perf-actions button:hover{background:#dbeef8}

#cadDistanceOption{display:inline-flex;align-items:center;gap:5px}#cadDistanceOption[hidden]{display:none}
#cadDistanceLength{width:76px}#cadDistanceDirection{max-width:145px}
#cadDistanceLength,#cadDistanceDirection{padding:5px 6px;border:1px solid #b8cde1;border-radius:4px;color:inherit;background:#fff}

/* V1 workspace object finder and explicit, category-scoped bulk selection. */
.workspace-find-bar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;
  min-height:41px;padding:5px 13px;border-bottom:1px solid #e2e9f0;background:#fff;
  color:#526c84;font-size:11px;white-space:nowrap}
.workspace-find-controls{position:relative;display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.workspace-find-controls>label{font-weight:750;white-space:nowrap;color:#4c6d86}
.workspace-find-controls select,.workspace-find-controls input{height:28px;min-width:0;
  border:1px solid #cad9e5;border-radius:5px;padding:3px 7px;color:#2a4b65;background:#fff}
.workspace-find-controls select{width:73px;flex-shrink:0}
.workspace-find-controls input{width:100%;flex:1;max-width:260px}
.workspace-find-controls>.btn{min-height:28px;padding:4px 10px}
.workspace-find-results{position:absolute;top:calc(100% + 5px);left:60px;z-index:32;
  width:min(395px,calc(100vw - 140px));max-height:265px;overflow:auto;border:1px solid #cbdbe7;
  border-radius:7px;background:#fff;box-shadow:0 8px 22px #1c395331;padding:5px}
.workspace-find-results[hidden]{display:none!important}
.workspace-find-results button{display:flex;justify-content:space-between;align-items:center;
  gap:10px;width:100%;min-height:32px;border:0;border-radius:4px;background:#fff;
  color:#274d6b;font-size:11px;text-align:left;padding:6px 9px}
.workspace-find-results button:hover,.workspace-find-results button:focus-visible{background:#eaf5fd;outline:none}
.workspace-find-results button small{color:#6e859a;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.workspace-find-no-results{padding:9px;color:#8195a7;font-size:11px}
.workspace-select-kind{display:flex;align-items:center;gap:4px;flex-shrink:0}
.workspace-select-kind>span{font-weight:750;color:#657f94;margin-right:3px}
.workspace-select-kind button{border:1px solid #d5e2ec;border-radius:4px;background:#f7fafc;
  min-height:28px;padding:3px 8px;color:#2d638a;font-size:11px;font-weight:650}
.workspace-select-kind button:hover{background:#e5f3fc;border-color:#b9d7ec}
.properties-body .bulk-apply{margin:5px 0 12px;min-height:29px;font-size:11px;
  white-space:normal;text-align:center}
@media(max-width:1150px){
 .workspace-find-bar{flex-wrap:wrap;gap:4px 10px;padding:5px 8px}
 .workspace-find-controls{flex-basis:100%}
 .workspace-select-kind{margin-left:50px}
}

/* Compact CAD workspace menus: one fixed-height strip, all controls float over
 * (rather than consume height from) the workspace canvas. */
.canvas-top.workspace-menu-bar{position:relative;z-index:31;height:39px!important;min-height:39px!important;
 flex:0 0 39px;display:flex;align-items:center;justify-content:flex-start;gap:5px;
 padding:3px 9px;border-bottom:1px solid #dce6ee;background:#fff;overflow:visible}
.workspace-menu{position:relative;display:block;flex:0 0 auto;font:11px/1.45 inherit;color:#405d75}
.workspace-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;
 min-height:31px;padding:5px 11px;border:1px solid transparent;border-radius:6px;
 color:#3b5f79;font-size:12px;font-weight:700;white-space:nowrap;user-select:none}
.workspace-menu>summary::-webkit-details-marker{display:none}
.workspace-menu>summary:hover,.workspace-menu[open]>summary{background:#eaf3fa;color:#176a9c;border-color:#c8dcea}
.workspace-menu>summary:focus-visible{outline:2px solid #73b2da;outline-offset:1px}
.workspace-menu .menu-chevron{font-size:13px;color:#7b95a8;margin-left:1px}
.workspace-menu-panel{position:absolute;top:calc(100% + 7px);left:0;z-index:70;width:272px;
 max-width:calc(100vw - 160px);padding:12px;border:1px solid #cbdce9;border-radius:8px;
 box-shadow:0 10px 30px #1b395129;background:rgba(255,255,255,.99);color:#35536e}
.workspace-menu-heading{margin:2px 0 9px;font-size:10px;font-weight:800;letter-spacing:.055em;
 text-transform:uppercase;color:#7990a5}
.workspace-menu-heading:not(:first-child){margin-top:13px;padding-top:9px;border-top:1px solid #edf1f4}
.workspace-menu-note{margin:10px 0 1px;color:#7a8ea0;font-size:10px;line-height:1.5;white-space:normal}
.workspace-menu-panel .view-tabs{height:auto;min-height:0;align-self:auto;display:flex;flex-direction:column;
 gap:2px;white-space:normal}
.workspace-menu-panel .view-tabs .tab{width:100%;min-height:34px;border:0;border-radius:5px;
 display:block;text-align:left;padding:7px 11px;font-size:12px;font-weight:650;color:#4d657a}
.workspace-menu-panel .view-tabs .tab:hover{background:#ecf5fb;color:#155f91}
.workspace-menu-panel .view-tabs .tab.active{background:#e2f2fc;color:#0e679e;font-weight:800}
.workspace-menu-check{display:flex;align-items:center;gap:9px;min-height:29px;color:#38546e;
 cursor:pointer;font-size:11px;white-space:normal}
.workspace-menu-check input{accent-color:#187ab5;flex-shrink:0}
.workspace-menu-field{display:flex;flex-direction:column;gap:5px;margin-top:8px;color:#4d6c84;
 font-size:11px;font-weight:650}
.workspace-menu-field select,.workspace-menu-field input,.workspace-value-row select,
.workspace-value-row input[type=number]{width:100%;height:29px;min-width:0;border:1px solid #c9d9e6;
 border-radius:5px;padding:4px 7px;background:#fff;color:#304e68;font-size:11px}
.workspace-value-row{display:flex;align-items:center;gap:7px;margin:8px 0;min-width:0}
.workspace-value-row label{font-size:10px;white-space:nowrap;color:#637f95}
.workspace-value-row input[type=range]{min-width:0;flex:1;accent-color:#1683bf;cursor:pointer}
.workspace-value-row input[type=number]{max-width:70px;flex-shrink:0}
.workspace-value-row select{flex:1}
.workspace-value-row output{min-width:39px;text-align:right;color:#315f83;font-weight:700}
.workspace-value-row .btn{min-height:28px;padding:3px 9px}
.workspace-value-row.zoom-actions{justify-content:space-between}
.workspace-value-row.zoom-actions button{flex:1}
.workspace-menu-panel .labels-selector{display:flex;align-items:center;gap:7px;white-space:normal}
.workspace-menu-panel .labels-selector .labels-master{display:flex;align-items:center;gap:6px;min-height:30px}
.workspace-menu-panel .label-types-menu{position:relative;z-index:2}
.workspace-menu-panel .label-types-menu>summary{height:27px;min-width:90px;padding:5px 9px;
 border:1px solid #d7e4ed;border-radius:5px;cursor:pointer;color:#3b6484;font-size:11px;font-weight:700}
.workspace-menu-panel .label-types-popover{position:absolute;left:0;right:auto;top:calc(100% + 6px);
 width:232px;max-width:calc(100vw - 155px);z-index:80}
.workspace-menu-panel #workZControl[hidden],.workspace-menu-panel #elevationOffsetControl[hidden]{display:none!important}
.workspace-menu-panel .workspace-find-bar{display:flex;flex-direction:column;align-items:stretch;
 min-height:0;padding:0;gap:12px;border:0;background:transparent;width:100%;white-space:normal}
.workspace-menu-panel .workspace-find-controls{position:relative;display:grid;
 grid-template-columns:71px minmax(0,1fr) auto;gap:6px;width:100%;align-items:center}
.workspace-menu-panel .workspace-find-controls>label{grid-column:1;grid-row:1}
.workspace-menu-panel .workspace-find-controls>select{grid-column:2 / 4;grid-row:1;width:100%}
.workspace-menu-panel .workspace-find-controls>input{grid-column:1 / 3;grid-row:2;
 max-width:none;width:100%;min-width:0}
.workspace-menu-panel .workspace-find-controls>.btn{grid-column:3;grid-row:2;white-space:nowrap}
.workspace-menu-panel .workspace-find-results{position:absolute;left:0;right:0;top:calc(100% + 5px);
 max-width:100%;width:100%;z-index:85;max-height:260px}
.workspace-menu-panel .workspace-select-kind{display:flex;flex-wrap:wrap;gap:6px;white-space:nowrap}
.workspace-menu-panel .workspace-select-kind>span{width:100%;margin:0 0 3px}
.workspace-menu-panel .workspace-select-kind button{flex:1;padding:5px 8px}
.workspace-menu-panel.view-menu-panel{width:215px}
.workspace-menu-panel.grid-menu-panel{width:281px}
.workspace-menu-panel.zoom-menu-panel{width:272px}
.workspace-menu-panel.display-menu-panel{width:288px}
.workspace-menu-panel.find-menu-panel{width:360px}
#workspaceFindMenu .workspace-menu-panel{left:auto;right:0}
@media(max-width:900px){
 .canvas-top.workspace-menu-bar{gap:2px;padding:3px 5px}
 .workspace-menu>summary{font-size:11px;padding:5px 7px;gap:4px}
}

/* Small portal navigation in CAD header. Keep the existing drawing viewport. */
.top-actions .portal-editor-link{display:inline-flex;align-items:center;justify-content:center;
 padding:7px 9px;border-radius:5px;color:#426781;font-size:12px;font-weight:700;
 white-space:nowrap;text-decoration:none}
.top-actions .portal-editor-link:hover,.top-actions .portal-editor-link:focus-visible{
 background:#e8f6f3;color:#087e74}
.top-actions{flex-wrap:nowrap;min-width:0}
@media(max-width:1260px){.top-actions .portal-editor-link{padding:5px 6px;font-size:11px}}
