#js-tool-container-registry-otopleniya-calculator .reg-app { --reg-steel: #0284c7; --reg-heat: #e11d48; --reg-pipe-bg: #475569; --reg-ok: #10b981; display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-registry-otopleniya-calculator .reg-app { --reg-steel: #38bdf8; --reg-heat: #fb7185; --reg-pipe-bg: #64748b; --reg-ok: #34d399; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 20px 20px; margin: 0 0 16px; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-legend { padding: 0 8px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-registry-otopleniya-calculator .reg-outcome { display: flex; flex-direction: column; gap: 20px; }
#js-tool-container-registry-otopleniya-calculator .reg-hero { border: 1px solid var(--border-color); border-left: 5px solid var(--reg-heat); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; box-sizing: border-box; }
#js-tool-container-registry-otopleniya-calculator .reg-hero-label { font-size: 0.92rem; font-weight: 500; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .reg-hero-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#js-tool-container-registry-otopleniya-calculator .reg-hero-value { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--reg-heat); }
#js-tool-container-registry-otopleniya-calculator .reg-hero-tag { background: var(--accent-light); color: var(--accent-primary); font-size: 0.88rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
#js-tool-container-registry-otopleniya-calculator .reg-hero-tag-match { background: rgba(225, 29, 72, 0.12); color: var(--reg-heat); font-size: 0.88rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(225, 29, 72, 0.3); }
#js-tool-container-registry-otopleniya-calculator .reg-hero-note { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-unit { font-size: 1.05rem; font-weight: 500; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .reg-blueprint-wrap { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-tertiary); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
#js-tool-container-registry-otopleniya-calculator .reg-blueprint-header { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 600; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .reg-bp-pipes { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; align-items: center; }
#js-tool-container-registry-otopleniya-calculator .reg-bp-pipe-row { display: flex; align-items: center; width: 100%; max-width: 520px; height: 34px; border-radius: 999px; border: 2px solid var(--border-color); background: linear-gradient(90deg, var(--reg-heat) 0%, var(--reg-pipe-bg) 50%, var(--reg-steel) 100%); position: relative; justify-content: space-between; padding: 0 16px; box-sizing: border-box; color: #ffffff; font-size: 0.82rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
#js-tool-container-registry-otopleniya-calculator .reg-bp-connector { width: 12px; height: 14px; background: var(--border-color); margin: -4px 0 -4px 34px; align-self: flex-start; }
#js-tool-container-registry-otopleniya-calculator .reg-coverage-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
#js-tool-container-registry-otopleniya-calculator .reg-coverage-head { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 500; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .reg-coverage-track { display: flex; height: 18px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-tertiary); }
#js-tool-container-registry-otopleniya-calculator .reg-bar-power { display: block; height: 100%; background: var(--reg-heat); transition: width 0.2s ease; max-width: 100%; }
#js-tool-container-registry-otopleniya-calculator .reg-coverage-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
#js-tool-container-registry-otopleniya-calculator .reg-legend-item { display: flex; align-items: center; gap: 6px; }
#js-tool-container-registry-otopleniya-calculator .reg-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
#js-tool-container-registry-otopleniya-calculator .reg-dot-fact { background: var(--reg-heat); }
#js-tool-container-registry-otopleniya-calculator .reg-dot-target { background: var(--accent-primary); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; line-height: 1.45; color: var(--text-secondary); box-sizing: border-box; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-registry-otopleniya-calculator .reg-derived { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { #js-tool-container-registry-otopleniya-calculator .reg-derived { grid-template-columns: repeat(4, 1fr); } }
#js-tool-container-registry-otopleniya-calculator .reg-derived-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 88px; background: var(--bg-secondary); box-sizing: border-box; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-result-label { font-size: 0.83rem; color: var(--text-secondary); font-weight: 500; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-result-row { display: flex; align-items: baseline; gap: 8px; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-result-value { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; color: var(--text-primary); }
#js-tool-container-registry-otopleniya-calculator .reg-details { display: flex; flex-direction: column; gap: 14px; }
#js-tool-container-registry-otopleniya-calculator .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
#js-tool-container-registry-otopleniya-calculator .reg-table-caption { caption-side: top; text-align: left; padding: 12px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-table th, #js-tool-container-registry-otopleniya-calculator .tbcalc-table td { padding: 9px 16px; text-align: left; border-top: 1px solid var(--border-color); }
#js-tool-container-registry-otopleniya-calculator .tbcalc-table td:nth-child(2), #js-tool-container-registry-otopleniya-calculator .tbcalc-table th:nth-child(2) { text-align: right; }
#js-tool-container-registry-otopleniya-calculator .reg-limits { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 600px) {
  #js-tool-container-registry-otopleniya-calculator .tbcalc-grid-2 { grid-template-columns: 1fr; }
  #js-tool-container-registry-otopleniya-calculator .reg-hero { padding: 16px 18px; }
}