#js-tool-container-pool-heat-exchanger-calculator .pex-app { --pex-blue: #2563eb; --pex-heat: #f59e0b; display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-pool-heat-exchanger-calculator .pex-app { --pex-blue: #60a5fa; --pex-heat: #fbbf24; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0 0 14px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-pool-heat-exchanger-calculator .pex-checkbox { width: 22px; height: 22px; accent-color: var(--accent-primary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-outcome { display: flex; flex-direction: column; gap: 18px; }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero { border: 1px solid var(--border-color); border-left: 4px solid var(--pex-blue); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 148px; }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero-value { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; line-height: 1.05; color: var(--text-primary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero-sub { font-size: 1rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
#js-tool-container-pool-heat-exchanger-calculator .pex-vol-value { font-weight: 700; color: var(--pex-blue); }
#js-tool-container-pool-heat-exchanger-calculator .pex-hero-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance { display: flex; flex-direction: column; gap: 8px; }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-label { font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-track { display: flex; height: 22px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-tertiary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-seg { display: block; height: 100%; min-width: 0; }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-loss { background: var(--pex-blue); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-heat { background: var(--pex-heat); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-balance-item { display: flex; align-items: center; gap: 7px; }
#js-tool-container-pool-heat-exchanger-calculator .pex-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
#js-tool-container-pool-heat-exchanger-calculator .pex-dot-loss { background: var(--pex-blue); }
#js-tool-container-pool-heat-exchanger-calculator .pex-dot-heat { background: var(--pex-heat); }
#js-tool-container-pool-heat-exchanger-calculator .pex-metrics { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { #js-tool-container-pool-heat-exchanger-calculator .pex-metrics { grid-template-columns: repeat(3, 1fr); } }
#js-tool-container-pool-heat-exchanger-calculator .pex-metric { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 84px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-result-label { font-size: 0.83rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-result-row { display: flex; align-items: baseline; gap: 8px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-result-value { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-pool-heat-exchanger-calculator .pex-details { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
#js-tool-container-pool-heat-exchanger-calculator .pex-table-caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 0.84rem; color: var(--text-secondary); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-table th, #js-tool-container-pool-heat-exchanger-calculator .tbcalc-table td { padding: 8px 14px; text-align: left; border-top: 1px solid var(--border-color); }
#js-tool-container-pool-heat-exchanger-calculator .tbcalc-table td:nth-child(2), #js-tool-container-pool-heat-exchanger-calculator .tbcalc-table th:nth-child(2) { text-align: right; }
#js-tool-container-pool-heat-exchanger-calculator .pex-limits { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 600px) { #js-tool-container-pool-heat-exchanger-calculator .tbcalc-grid-2 { grid-template-columns: 1fr; } }