body[data-discipline="hvac"] .side-tools a{padding:8px 10px;min-height:38px}body[data-discipline="hvac"] .side-tools strong{font-size:12px;line-height:1.35}body[data-discipline="hvac"] .tool-icon{flex-shrink:0}.hvac-group{border:1px solid var(--line,#dbe5ef);border-radius:12px;padding:16px;margin:0 0 14px;min-width:0}.hvac-group summary{font-weight:650;cursor:pointer}.hvac-group legend{font-weight:650;font-size:14px;padding:0 5px}.hvac-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hvac-group[open]>.hvac-grid{margin-top:16px}.hvac-grid label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;min-width:0}
.hvac-grid label>span:first-child{flex:1}
.hvac-grid label>:is(input,select){margin-top:0}.hvac-grid label[hidden]{display:none}.hvac-grid input,.hvac-grid select{width:100%;min-width:0;font-variant-numeric:tabular-nums}.hvac-rows h3{font-size:15px}.hvac-row{border:1px solid var(--line,#dbe5ef);border-radius:10px;margin:12px 0;padding:12px;min-width:0}.hvac-row legend{font-size:12px}.hvac-row>button{margin-top:10px}.hvac-table-scroll{overflow:auto}.hvac-table-scroll table{white-space:nowrap}.hvac-chart{width:100%;height:auto;margin:20px 0;color:var(--text,#334155);font-size:11px}.hvac-chart text{fill:currentColor}.hvac-chart .grid{stroke:var(--line,#dbe5ef);fill:none}.hvac-chart .humidity{stroke:var(--line,#cbd5e1);fill:none}.hvac-chart .saturation,.hvac-chart .process{stroke:var(--brand,#0369a1);fill:none;stroke-width:2}.hvac-chart .state{fill:var(--brand,#0369a1)}body[data-discipline="hvac"] .calculation-layout{align-items:start}body[data-discipline="hvac"] #result{position:static}body[data-discipline="hvac"] .visual-card[hidden]{display:none!important}@media(max-width:560px){.hvac-grid{grid-template-columns:1fr}.hvac-group{padding:12px}}

body[data-discipline="hvac"] #fields{display:block}body[data-discipline="hvac"] .hvac-group{width:100%}
/* HVAC navigation follows the same discipline groups as HVAC Studio. */
.hvac-tools{display:block}.hvac-nav-group{margin:0 0 10px}.hvac-nav-group h2{margin:10px 10px 4px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--muted,#64748b)}body[data-discipline="hvac"] .hvac-tools a{padding:6px 9px;min-height:32px;gap:8px}body[data-discipline="hvac"] .hvac-tools strong{font-size:11px;line-height:1.35}body[data-discipline="hvac"] .hvac-tools .tool-icon{width:17px;height:17px}.hvac-mobile-tools{display:none}.hvac-diagram{margin:18px 0}.hvac-diagram .engineering-visual{border:1px solid var(--line,#dbe5ef);border-radius:12px;padding:12px;background:var(--canvas,#f8fafc)}.hvac-diagram summary{cursor:pointer;font-weight:650;color:var(--ink,#0c4a6e)}.hvac-diagram summary>span{float:right;font-size:10px;font-weight:400;color:var(--muted,#64748b)}.engineering-visual-body{padding-top:12px}.engineering-drawing{width:100%;max-height:240px;height:auto;display:block;overflow:visible}.hvac-diagram svg text{fill:var(--text,#334155)}.diagram-fill{fill:var(--tint,#f0f9ff);stroke:var(--brand,#0369a1);stroke-width:2}.diagram-window{fill:var(--sky-soft,#bae6fd);stroke:var(--brand,#0369a1);stroke-width:2}.diagram-line,.diagram-flow{stroke:var(--brand,#0369a1);stroke-width:3;fill:none}.diagram-dot{fill:var(--brand,#0369a1)}.diagram-pipe{stroke:var(--sky-soft,#bae6fd);stroke-width:32;fill:none;stroke-linejoin:round}.hvac-diagram [data-visual-field]{cursor:pointer}.hvac-diagram [data-visual-field]:focus-visible{outline:2px solid var(--brand,#0369a1);outline-offset:3px}.hvac-diagram g[data-visual-field]:hover{filter:brightness(.9)}.visual-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.visual-chip{display:flex;flex-direction:column;gap:3px;background:var(--surface,#fff);color:var(--ink,#0c4a6e);border:1px solid var(--line,#dbe5ef);padding:8px 10px;border-radius:8px;font-size:11px}.visual-chip strong{font-size:12px}.visual-caption,.diagram-caption{font-size:11px!important;line-height:1.6;color:var(--muted,#64748b);margin:10px 0 0}.diagram-bars>div{display:grid;grid-template-columns:70px minmax(30px,1fr) 65px;gap:8px;align-items:center;font-size:10px;margin:6px 0}.diagram-bars strong{text-align:right;font-variant-numeric:tabular-nums}.diagram-bar,.visual-loss-bar{height:5px;border-radius:4px;background:var(--line,#dbe5ef);overflow:hidden;display:block}.diagram-bar i,.visual-loss-bar i{display:block;height:100%;background:var(--brand,#0369a1);border-radius:4px}.diagram-process{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.diagram-process>div,.visual-flow-result{border:1px solid var(--line,#dbe5ef);border-radius:10px;padding:12px;background:var(--surface,#fff);font-size:11px}.diagram-process strong,.diagram-process small,.visual-flow strong,.visual-flow small{display:block;margin-top:6px}.diagram-process>span{color:var(--brand,#0369a1)}.diagram-process>span:nth-child(4){display:none}.visual-path{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:5px 2px}.hvac-diagram .visual-node{display:flex;flex-direction:column;gap:8px;min-width:150px;max-width:210px;padding:12px;text-align:left;background:var(--surface,#fff);color:var(--ink,#0c4a6e);border:1px solid var(--line,#dbe5ef);border-radius:10px}.visual-node strong,.visual-node small{overflow-wrap:anywhere}.visual-node small{font-size:10px}.visual-node-number{font-size:10px;color:var(--muted,#64748b)}.visual-loss-bar{width:100%}.visual-flow{display:flex;align-items:center;gap:14px;justify-content:center}.visual-flow-source{font-size:25px;font-weight:700;color:var(--brand,#0369a1)}.visual-flow-source small{font-size:12px}.visual-flow-result{margin:8px 0}.visual-tanks{display:flex;gap:20px;justify-content:center}.visual-tank-state{text-align:center;flex:1;font-size:11px}.visual-tank{position:relative;height:125px;width:80px;max-width:100%;border:2px solid var(--brand,#0369a1);border-radius:40px;overflow:hidden;margin:10px auto;background:var(--surface,#fff)}.visual-water{position:absolute;bottom:0;left:0;right:0;background:var(--sky-soft,#bae6fd)}.visual-tank-state small{display:block}@media(max-width:700px){.hvac-mobile-tools{display:block;border:1px solid var(--line,#dbe5ef);border-radius:10px;background:var(--surface,#fff);margin-bottom:16px;padding:12px}.hvac-mobile-tools>summary{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;cursor:pointer}.hvac-mobile-tools>summary>span:last-child{margin-left:auto}.hvac-mobile-tools .hvac-tools{max-height:60vh;overflow:auto;margin-top:12px}.hvac-mobile-tools .hvac-tools a{min-width:0}.hvac-mobile-tools .hvac-nav-group h2{font-size:11px}.hvac-mobile-tools .hvac-tools strong{font-size:13px}.hvac-mobile-tools .hvac-tools a{padding:10px;min-height:38px}.hvac-diagram summary>span{display:none}}

.visual-tank>span{position:relative;z-index:1;display:block;margin-top:50px;font-weight:700;color:var(--ink,#0c4a6e)}.visual-tanks{align-items:center}.visual-system{font-size:11px}.visual-state{padding:10px;border:1px solid var(--line,#dbe5ef);border-radius:8px}.visual-state.warn{color:var(--warning,#92400e)}
.fan-type-preview>svg{display:block;width:100%;max-height:170px}.fan-type-preview h4{font-size:14px;margin:8px 0;color:var(--ink,#0c4a6e)}.fan-type-preview p{font-size:12px;line-height:1.65}.fan-guide-notes{border:1px solid var(--line,#dbe5ef);border-radius:8px;padding:10px}.fan-duty{padding:10px;background:var(--tint,#f0f9ff);border-radius:8px;font-weight:650}.hvac-candidates{margin:20px 0}.hvac-candidates h4{font-size:13px;color:var(--ink,#0c4a6e);margin:0 0 7px}.hvac-candidates>.muted{font-size:11px}.hvac-candidates .hvac-table-scroll{max-height:340px;overscroll-behavior:contain;border:1px solid var(--line,#dbe5ef);border-radius:8px}.hvac-candidates th,.hvac-candidates td{padding:9px 7px}.hvac-candidates thead th{position:sticky;top:0;background:var(--surface,#fff);z-index:1;font-weight:650}.hvac-candidates .secondary{font-size:10px;padding:6px 9px;min-height:32px}.candidate-selected{background:var(--tint,#f0f9ff)}.hvac-candidates .secondary:disabled{opacity:.65}
.hvac-candidates .size-recommended,.hvac-candidates .pipe-status.size-recommended{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;min-height:34px;padding:6px 10px;background:var(--brand,#245d8b);border-color:var(--brand,#245d8b);color:var(--surface,#fff);font-size:11px;font-weight:700;white-space:nowrap}
.hvac-candidates .size-recommended:disabled{opacity:1}
.hvac-candidates tbody tr:hover{background:var(--canvas,#f8fafc)}
.hvac-row-actions{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.hvac-row-actions button{font-size:11px;min-height:32px}.hvac-row-actions button:disabled{opacity:.4;cursor:default}.hvac-result-jump{display:none}body[data-discipline="hvac"] #result{scroll-margin-top:90px}@media(max-width:900px){.hvac-result-jump{display:inline-flex;margin-left:8px;align-items:center}}

.sidebar .hvac-nav-group{display:flex;flex-direction:column;margin:0 0 14px;gap:0}.sidebar .hvac-nav-group h2{font-size:10px;line-height:1.7;margin:12px 10px 6px;font-weight:700;flex-shrink:0}.sidebar .hvac-tools .hvac-nav-group>a{flex-shrink:0;min-height:38px;margin:2px 0;padding:8px 10px;align-items:center;column-gap:10px}.sidebar .hvac-nav-group>a strong{font-size:12px;line-height:1.65;font-weight:600}.sidebar .hvac-nav-group .tool-icon{width:18px;height:18px;flex-shrink:0}
.hvac-live-context{margin:0 0 14px;padding:10px 12px;border-left:3px solid var(--brand,#3d6b8c);background:var(--tint,#e4edf3);color:var(--text-secondary,#506779);font-size:11px;line-height:1.65;border-radius:0 7px 7px 0}.hvac-grid>.load-field{display:flex;flex-direction:column;min-width:0;margin:0}
.hvac-grid>.load-field>label{flex:1;padding-right:0}
.hvac-grid>.load-field>label>span:first-child{padding-right:28px}
.hvac-grid>.load-field>label>:is(input,select){width:100%}
.hvac-grid .field-help{top:0;right:0}.hvac-grid>.load-field[hidden]{display:none}.hvac-quick-pick{border:1px dashed var(--line,#cdd9e2);border-radius:8px;padding:10px;grid-column:1/-1}.hvac-insight{margin:18px 0;border:1px solid var(--line,#cdd9e2);border-radius:10px;padding:12px;background:var(--canvas,#e7edf1)}.hvac-insight h4{font-size:13px;margin:0 0 10px;color:var(--ink,#2b4356)}.hvac-insight p{font-size:11px;line-height:1.65;margin:8px 0}.hvac-insight .hvac-table-scroll{max-height:300px;overflow:auto}.hvac-insight th,.hvac-insight td{padding:8px 6px;white-space:nowrap}.hvac-insight thead th{font-size:10px;background:var(--surface,#f2f5f7)}.hvac-check-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line,#cdd9e2);font-size:11px}.hvac-check-line>strong{min-width:90px}.hvac-check-line .secondary{font-size:10px;padding:5px 8px;margin-left:auto}.hvac-sort{border:0!important;background:transparent!important;color:var(--muted,#607486)!important;font:inherit;font-weight:650;padding:0;min-height:30px;cursor:pointer;white-space:nowrap}.hvac-sort:focus-visible{outline-offset:1px}.hvac-chart{cursor:crosshair}.hvac-chart-controls{display:flex;gap:8px}.hvac-chart-controls .secondary{font-size:11px;padding:7px 10px}.hvac-chart-controls [aria-pressed=true]{background:var(--brand,#3d6b8c);color:var(--surface,#f2f5f7)}.hvac-chart-caption{font-size:11px;line-height:1.65;color:var(--muted,#607486)}

/* Compact, text-labelled pipe checks remain legible in both colour modes. */
.hvac-candidates .pipe-status{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:30px;padding:4px 9px;border:1px solid transparent;border-radius:999px;font:inherit;font-size:11px;font-weight:650;white-space:nowrap;cursor:pointer}
.hvac-candidates .pipe-status.is-pass{color:#166349;background:#e4f1eb;border-color:#b4d8c6}
.hvac-candidates .pipe-status.is-fail{color:#983e47;background:#fae9eb;border-color:#e8bdc3}
.hvac-candidates .pipe-status:disabled{opacity:1;cursor:default;box-shadow:0 0 0 2px var(--surface,#fff),0 0 0 3px currentColor}
.hvac-candidates .pipe-status:focus-visible{outline:2px solid var(--ink,#245781);outline-offset:3px}
[data-theme="dark"] .hvac-candidates .pipe-status.is-pass{color:#a9dfc7;background:#193d32;border-color:#396454}
[data-theme="dark"] .hvac-candidates .pipe-status.is-fail{color:#f0bdc4;background:#482c34;border-color:#76505b}

.pipe-candidates th,.pipe-candidates td{font-size:11px;padding:7px 5px;text-align:center;vertical-align:middle}.pipe-candidates .hvac-sort{white-space:normal;font-size:11px}.pipe-candidates .pipe-wall{display:block;font-size:10px;font-weight:400;color:var(--muted,#607486)}

.demand-contribution{margin:12px 0}.demand-contribution-label{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;font-size:12px}.demand-contribution-label>span{min-width:0;overflow-wrap:anywhere}.demand-contribution-label>strong{white-space:nowrap}.demand-contribution-label>small{flex-basis:100%;font-size:10px;color:var(--muted,#607486)}.demand-bar{height:6px;border-radius:6px;background:var(--line,#cdd9e2);overflow:hidden;margin-top:6px}.demand-bar>i{display:block;height:100%;background:var(--brand,#3d6b8c);border-radius:inherit}

body[data-discipline="plumbing"][data-active-tool="demand"] #tool-description{display:none}body[data-discipline="plumbing"][data-active-tool="demand"] #fields>p.muted{display:inline-block;font-size:10px;line-height:1.4;border:1px solid var(--line,#cdd9e2);border-radius:999px;padding:3px 9px;margin:0 0 14px}

.demand-row-equation{padding:10px 12px;margin:12px 0 0;border-radius:8px;background:var(--tint,#e4edf3);color:var(--brand-strong,#315a78);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-row label:has([name=name]){grid-column:1/-1}body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-row label:has([name=unitFlow]){grid-column:1/-1}

body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-row .load-field:has([name=name]),body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-row .load-field:has([name=unitFlow]){grid-column:1/-1}body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-grid .field-help{width:24px;height:24px;line-height:22px;top:-3px}body[data-discipline="plumbing"][data-active-tool="demand"] .hvac-grid .load-field>label>span:first-child{min-height:24px;padding-right:30px}

.demand-fixture{padding:0;overflow:visible}.demand-fixture>summary{cursor:pointer;padding:12px;list-style:disclosure-closed;color:var(--ink,#2b4356);font-size:12px}.demand-fixture[open]>summary{list-style:disclosure-open;border-bottom:1px solid var(--line,#cdd9e2);margin-bottom:12px}.demand-fixture>summary strong{overflow-wrap:anywhere}.demand-fixture-overview{display:block;font-size:10px;line-height:1.5;color:var(--muted,#607486);font-weight:400;margin:4px 0 0 14px}.demand-fixture>.hvac-grid,.demand-fixture>.demand-row-equation,.demand-fixture>.hvac-row-actions{margin-left:12px;margin-right:12px}.demand-fixture>.hvac-row-actions{margin-bottom:12px}.demand-row-toggles{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}.demand-row-toggles .secondary{font-size:11px;padding:6px 9px;min-height:32px}
.hvac-form-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:6px 10px;border:1px solid var(--line,#cdd9e2);border-radius:8px;background:var(--canvas,#f8fafc)}
.hvac-draft-status{font-size:11px;color:var(--muted,#607486)}
.hvac-reset-draft{min-height:30px;padding:4px 10px;font-size:11px}
.booster-segment-helper{grid-column:1/-1;margin-top:4px}
.booster-segment-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.booster-segment-row{display:grid;grid-template-columns:minmax(100px,1.4fr) repeat(3,minmax(70px,1fr)) auto auto;gap:8px;align-items:end}
.booster-segment-row label{display:flex;flex-direction:column;gap:3px;font-size:11px;margin:0}
.booster-segment-row input{min-height:34px;padding:5px 8px;font-size:12px}
.booster-segment-sub{font-size:11px;font-weight:600;color:var(--brand,#0369a1);white-space:nowrap;padding-bottom:8px;font-variant-numeric:tabular-nums}
.booster-segment-remove{min-height:34px;min-width:32px;padding:4px 8px}
.booster-segment-total{font-size:12px;font-weight:600;margin:8px 0;color:var(--ink,#0c4a6e)}
.booster-segment-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.booster-segment-row{grid-template-columns:1fr 1fr;align-items:center}}

