:root{font-family:system-ui,-apple-system,sans-serif;color:#eaf4ff;background:#0c1927}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:15px 24px;background:#10263a;gap:12px;flex-wrap:wrap}h1{margin:0;font-size:1.55rem}small{font-size:.7rem;color:#90b9d1}button{cursor:pointer;background:#187caa;border:1px solid #3993b7;color:white;padding:10px 14px;border-radius:9px;font-weight:600}button:hover,.active{background:#2c9bc6}nav{display:flex;gap:10px;padding:15px 24px;border-bottom:1px solid #31516b}main{padding:20px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.tab,aside{background:#12283b;padding:20px;border-radius:14px;min-width:0}.tab[hidden]{display:none}h2{margin-top:0}form,.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:16px}label{display:flex;flex-direction:column;gap:5px;font-size:.9rem}input,select{background:#eaf3f9;color:#12283b;border:0;border-radius:6px;padding:9px;max-width:100%}input[type=file]{max-width:240px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px}td,th{text-align:left;padding:10px;border-bottom:1px solid #36536a}td button{padding:5px 9px;background:#a33b4b}.hint{font-size:.85rem;color:#a5c1d4;line-height:1.5}.viewer{overflow:auto;background:#e6e6e6;border-radius:10px;touch-action:pan-x pan-y}canvas{display:block;width:100%;height:auto;touch-action:none}#elements>div{padding:10px;border-bottom:1px solid #35516a}#summary p{border-bottom:1px solid #35516a;padding-bottom:10px}footer{padding:20px;color:#a5c1d4;text-align:center}@media(max-width:850px){main{grid-template-columns:1fr;padding:10px}.tab,aside{padding:14px}header{padding:12px}nav{padding:10px}}

.quote-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:15px 0}.quote-grid input,.quote-grid select{width:100%}.quote-results{background:#0b2031;border:1px solid #31516b;padding:12px 16px;border-radius:10px;margin:15px 0}.quote-results p{margin:6px 0}.warning{color:#ffc78b;font-weight:700}.check{display:flex;flex-direction:row;align-items:center;margin:16px 0}.check input{width:20px;height:20px}#qRows input{width:95px}nav{flex-wrap:wrap}

/* Uproszczona strona startowa */
.home-tab{grid-column:1/-1;max-width:1100px;width:100%;margin:0 auto;padding:clamp(22px,5vw,54px)}.home-hero{text-align:center;margin:8px auto 34px;max-width:700px}.home-kicker{font-size:.72rem;letter-spacing:.14em;font-weight:800;color:#7fcce8}.home-hero h2{font-size:clamp(1.7rem,4vw,2.65rem);margin:12px 0}.home-hero p{color:#afc9da;line-height:1.6}.home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:25px;background:#19364c;border:1px solid #385e78;min-height:260px;border-radius:16px;transition:background .15s,transform .15s}.home-card:hover,.home-card:focus-visible{background:#24516b;transform:translateY(-2px)}.home-card strong{font-size:1.15rem}.home-card>span:not(.home-symbol):not(.home-action){font-weight:400;line-height:1.55;color:#c0d5e3}.home-symbol{display:grid;place-items:center;width:50px;height:50px;border-radius:13px;background:#245f80;color:#b8ebff;font-size:1.9rem}.home-action{margin-top:auto;color:#8be0ff;font-weight:700}.home-note{margin-top:30px;text-align:center;color:#a5c1d4;font-size:.85rem;line-height:1.6}@media(max-width:720px){.home-cards{grid-template-columns:1fr}.home-card{min-height:0;padding:20px}.home-tab{padding:20px 15px}.home-hero{margin-bottom:20px}}

.offer-panel{border:1px solid #cbd9df;border-radius:14px;padding:18px;margin:24px 0}.offer-panel textarea{width:100%;box-sizing:border-box}.pdf-render{position:fixed;left:-10000px;top:0;width:720px;background:white;color:#182c3b;padding:32px;box-sizing:border-box;font:14px Arial,sans-serif}.pdf-render .offer-head{display:flex;justify-content:space-between;border-bottom:3px solid #176b82;padding-bottom:16px}.pdf-render table{width:100%;border-collapse:collapse}.pdf-render th,.pdf-render td{border-bottom:1px solid #ddd;padding:8px;text-align:left}.pdf-render th{background:#eaf2f5}.pdf-render .offer-sums{text-align:right}.pdf-render .offer-notes{white-space:pre-wrap}.pdf-render footer,.pdf-render .offer-disclaimer{font-size:11px;color:#555;margin-top:20px}.pdf-render tr{break-inside:avoid}

/* Logo HeatLoop na stronie startowej */
#home{background:radial-gradient(ellipse at 50% 0%,#321b20 0%,#111923 50%,#0d151e 100%)}
.home-logo{display:block;width:min(100%,540px);height:auto;max-height:420px;object-fit:contain;margin:0 auto 14px;border-radius:18px}
.home-hero{max-width:780px;margin-bottom:24px}.home-hero h2{font-size:clamp(1.35rem,3vw,2rem)}
.home-card:nth-child(1){border-color:#bd3441}.home-card:nth-child(1) .home-symbol{background:#6b222c;color:#fff}
.home-card:nth-child(2){border-color:#2879bc}.home-card:nth-child(2) .home-symbol{background:#164a7a;color:#fff}
.home-card:nth-child(3){border-color:#28965a}.home-card:nth-child(3) .home-symbol{background:#165c37;color:#fff}
@media(max-width:720px){.home-logo{width:min(100%,390px);max-height:310px}.home-hero{margin-bottom:18px}}
/* Layout fix: beta notice and active module occupy full available width */
main{display:block;max-width:1500px;margin:0 auto;padding:20px}
main>.tab{width:100%;min-width:0;margin:0 auto}
main>aside[role="status"]{display:block;width:100%;height:auto;min-height:0;margin:0 0 16px;padding:10px 14px;line-height:1.5;background:#322716;border:1px solid #bb8a35;border-radius:10px;color:#ffe2a2}
#quote{max-width:1200px}
#quote .quote-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
@media(max-width:850px){main{padding:10px}main>aside[role="status"]{padding:10px 12px}}

.tech-panel{border:1px solid #4586a5;border-radius:12px;padding:16px;margin:24px 0;background:#0b2031}.tech-panel a{color:#85d9ff}.tech-panel td input{width:100%;min-width:110px}.tech-panel td:nth-child(3) input{min-width:60px;width:70px}.tech-panel [hidden]{display:none}

#pRooms input{width:100%;min-width:90px}#pRooms td:nth-child(2) input{min-width:150px}#pLoops td button{margin:2px}#pStatus{margin:16px 0}input[readonly]{opacity:.7;cursor:not-allowed}

/* Kotłownia: panel instalatora, schemat funkcjonalny i wspólna wycena. */
.boiler-tab{grid-column:1/-1}.boiler-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px;border-radius:16px;background:linear-gradient(125deg,#12384b,#173050 65%,#493839);border:1px solid #416079}.boiler-hero h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:0}.boiler-hero p{color:#c5dbe8;max-width:600px;line-height:1.6}.boiler-eyebrow{font-size:.7rem;letter-spacing:.13em}.boiler-tag{white-space:nowrap;border:1px solid #eaa478;color:#ffd1b1;padding:8px 10px;border-radius:30px;font-size:.65rem;font-weight:800}.boiler-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:20px 0}.boiler-source{display:flex;flex-direction:column;gap:12px;align-items:flex-start;text-align:left;background:#102235;border:1px solid #37566f;min-height:122px;font-size:.85rem}.boiler-source svg{width:30px;height:30px;fill:none;stroke:#78d6da;stroke-width:1.7}.boiler-source[aria-pressed=true]{background:#244148;border-color:#f4ad7e;box-shadow:inset 0 3px #f4ad7e}.boiler-source[aria-pressed=true] svg{stroke:#ffc69d}.boiler-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.boiler-kpi{padding:18px;border-radius:12px;background:#0c2031;border:1px solid #35546b}.boiler-kpi span{display:block;color:#9cbacb;font-size:.8rem;margin-bottom:8px}.boiler-kpi strong{font-size:clamp(1.2rem,2.5vw,1.8rem);color:#a0eaeb}.boiler-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}.boiler-form details,.boiler-visual{background:#0c2031;border:1px solid #35546b;border-radius:12px;padding:16px;margin-bottom:12px}.boiler-tab summary{cursor:pointer;font-weight:700;line-height:1.6;color:#d4eaf5}.boiler-diagram-head{display:flex;justify-content:space-between;gap:10px;font-size:.65rem;letter-spacing:.08em;color:#9ab9cc}.boiler-visual svg{display:block;width:100%;height:auto}.boiler-result{color:#a4e6e6;font-weight:700;font-size:1rem;line-height:1.6}.boiler-bom input{width:105px}.boiler-bom td:first-child{min-width:230px}.boiler-tab a{color:#8bdde8}.boiler-tab label[hidden]{display:none}.boiler-tab .quote-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
@media(max-width:950px){.boiler-layout{grid-template-columns:1fr}.boiler-visual{order:-1}.boiler-hero{padding:18px;flex-wrap:wrap}}@media(max-width:480px){.boiler-kpis{grid-template-columns:1fr}.boiler-kpi{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.boiler-kpi span{margin:0}.boiler-kpi strong{font-size:1.25rem}.boiler-sources{grid-template-columns:repeat(2,minmax(0,1fr))}.boiler-source{min-height:112px}.boiler-hero{padding:16px}.boiler-form details,.boiler-visual{padding:12px}}
