.thermal { background: #f7fafb; color: #21333c; padding: 0 0 64px; }
.thermal * { box-sizing: border-box; letter-spacing: 0; }
.thermal-jump { display: none; }
#thermal-result { scroll-margin-top: 105px; }
.thermal-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.thermal fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.thermal legend { font-size: 1.15rem; font-weight: 800; margin: 0 0 18px; padding: 0; }
.thermal .thermal-room { border-top: 1px solid #c8d7df; padding-top: 18px; }
.thermal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.thermal label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .85rem; min-width: 0; }
.thermal input, .thermal select, .thermal textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #a9bec9; border-radius: 5px; background: #fff; color: #21333c; font: inherit; height: 44px; }
.thermal input:focus-visible, .thermal select:focus-visible, .thermal button:focus-visible, .thermal a:focus-visible, .thermal summary:focus-visible { outline: 3px solid #079da5; outline-offset: 3px; }
.thermal-room-heading { display: flex; align-items: end; gap: 14px; margin-bottom: 16px; }
.thermal-room-heading label { flex: 1; }
.thermal button { background: #077b82; color: #fff; padding: 11px 15px; border: 1px solid #077b82; border-radius: 5px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.thermal button:hover { filter: brightness(.94); }
.thermal button:disabled { opacity: .45; cursor: not-allowed; }
.thermal button.thermal-secondary { background: #fff; color: #275362; border-color: #a9bec9; font-size: .85rem; }
.thermal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thermal-result { position: sticky; top: 105px; border-left: 1px solid #c8d7df; padding-left: 28px; min-width: 0; }
.thermal-result-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.thermal-result h2 { font-size: 1.2rem; margin: 0 0 14px; }
.thermal-result-top span { font-size: .8rem; white-space: nowrap; }
.thermal-caption { font-size: .82rem; margin: 5px 0; color: #506772; }
.thermal-power { font-size: 2rem; font-weight: 800; color: #087b80; line-height: 1.25; margin: 8px 0; overflow-wrap: anywhere; min-height: 40px; }
#thermal-breakdown { margin: 24px 0; }
.thermal-load { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; margin-bottom: 12px; font-size: .78rem; --bar-color: #06858c; }
.thermal-load--solar { --bar-color: #c28c20; }
.thermal-load--air { --bar-color: #5688cb; }
.thermal-load--people { --bar-color: #bc6473; }
.thermal-load--equipment { --bar-color: #677467; }
.thermal-bar { grid-column: 1 / -1; height: 6px; background: #e2e9ee; position: relative; }
.thermal-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--load-width); background: var(--bar-color); }
.thermal-table-wrap { overflow-x: auto; }
.thermal table { width: 100%; border-collapse: collapse; font-size: .78rem; table-layout: fixed; }
.thermal caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
.thermal th, .thermal td { text-align: left; padding: 9px 4px; border-bottom: 1px solid #d6e0e5; overflow-wrap: anywhere; }
.thermal-note { border-left: 3px solid #c28c20; padding-left: 12px; font-size: .8rem; color: #50606a; line-height: 1.5; margin: 20px 0; }
#thermal-contact { width: 100%; }
#thermal-error { color: #a52b32; font-size: .9rem; }
#thermal-status { font-size: .85rem; }
#thermal-summary { height: 180px; margin-top: 12px; }
.thermal-method { border-top: 1px solid #c8d7df; margin-top: 36px; padding-top: 24px; font-size: .9rem; max-width: 900px; }
.thermal-method h2 { font-size: 1.3rem; }
.thermal-method summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.thermal-method details { margin-bottom: 20px; }
@media (max-width: 900px) {
 .thermal-jump { display: inline-block; padding: 8px 0; font-weight: 700; }
 .thermal-layout { grid-template-columns: 1fr; gap: 24px; }
 .thermal-result { position: static; border-left: 0; border-top: 1px solid #c8d7df; padding: 24px 0 0; }
}
@media (max-width: 480px) {
 .thermal-fields { grid-template-columns: 1fr; }
 .thermal-room-heading { align-items: stretch; flex-direction: column; }
 .thermal > .container { padding-top: 24px; }
}
@media print {
 .site-header, .site-footer, .mobile-call, .cookies-banner, .page-hero, .thermal button, #thermal-status, #thermal-error { display: none !important; }
 .thermal { background: white; padding: 0; }
 .thermal-layout { display: block; }
 .thermal-result { position: static; border: 0; padding: 0; break-before: page; }
 .thermal-room { break-inside: avoid; }
 .thermal-fields { grid-template-columns: 1fr 1fr; }
 .thermal input, .thermal select { border: 0; padding: 0; height: auto; appearance: none; }
}

.thermal > .container { padding-top: 36px; }
