.th-hero{padding:48px 0 44px;background:linear-gradient(180deg,#f7fafc 0,#fff 100%);overflow:hidden}.th-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:38px;align-items:center}.th-hero-copy h1{font-size:clamp(38px,4.4vw,68px);line-height:.98;letter-spacing:-.05em;margin:18px 0 20px;color:#111827}.th-hero-copy>p{font-size:19px;line-height:1.6;max-width:760px;color:#556273}.th-hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.th-hero-badges span{display:inline-flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #dce5ed;border-radius:13px;background:#fff;color:#2d3b4b;box-shadow:0 8px 26px rgba(37,55,72,.05)}.th-hero-badges svg{width:20px;height:20px;fill:none;stroke:#0f766e;stroke-width:1.8}.th-hero-art{min-height:410px;position:relative}.th-hero-graphic{position:absolute;inset:10px 0 0;border-radius:30px;background:linear-gradient(145deg,#0f172a,#1f3348 54%,#0c5d61);box-shadow:0 30px 70px rgba(15,23,42,.22);overflow:hidden}.th-hero-graphic:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:32px 32px}.th-hero-stack{position:absolute;left:48px;right:48px;top:78px;height:226px;display:flex;transform:skewY(-3deg);filter:drop-shadow(0 18px 20px rgba(0,0,0,.24))}.th-hero-stack i{display:block;height:100%;border-right:1px solid rgba(255,255,255,.45)}.th-hero-stack i:nth-child(1){width:8%;background:#e6ddd0}.th-hero-stack i:nth-child(2){width:35%;background:#d88968}.th-hero-stack i:nth-child(3){width:34%;background:#d7bd58}.th-hero-stack i:nth-child(4){width:15%;background:#e4e7eb}.th-hero-stack i:nth-child(5){width:8%;background:#eef4f3}.th-hero-line{position:absolute;left:50px;right:50px;bottom:52px;height:3px;background:linear-gradient(90deg,#ff9a76,#f1f5f9,#7dd3fc);box-shadow:0 0 22px rgba(125,211,252,.45)}.th-hero-line:after{content:"+20°C                         4,18 м²·°C/Вт                         −31°C";position:absolute;left:0;right:0;top:14px;color:#d9e5ee;font:600 13px/1.4 system-ui;letter-spacing:.04em;white-space:pre;text-align:center}.th-hero-kicker{position:absolute;top:30px;left:42px;color:#a7f3d0;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.th-hero-r{position:absolute;right:38px;top:32px;color:#fff;font-size:34px;font-weight:800;letter-spacing:-.04em}.th-hero-r small{display:block;color:#9fb2c3;font-size:11px;letter-spacing:.08em;text-transform:uppercase;text-align:right;margin-bottom:3px}
.th-calc{padding:24px 0 50px;background:#f4f7f9}.th-wrap{width:min(1540px,calc(100% - 32px));margin:0 auto}.th-shell{background:#fff;border:1px solid #dce4ea;border-radius:28px;box-shadow:0 22px 64px rgba(33,48,60,.09);overflow:hidden}.th-shell-head{display:grid;grid-template-columns:minmax(0,1fr) 470px;gap:26px;padding:30px 32px;border-bottom:1px solid #e4ebf0;background:linear-gradient(180deg,#fff,#fbfcfd)}.th-shell-head h2{margin:5px 0 8px;font-size:30px;letter-spacing:-.035em;color:#17212b}.th-shell-head p{margin:0;color:#5d6976;line-height:1.55}.th-eyebrow{color:#0f766e;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.th-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-self:start;background:#eef3f5;border-radius:16px;padding:5px}.th-mode-switch button{border:0;border-radius:12px;padding:12px 13px;background:transparent;text-align:left;color:#5d6976;cursor:pointer}.th-mode-switch button b,.th-mode-switch button small{display:block}.th-mode-switch button b{font-size:14px;color:inherit}.th-mode-switch button small{font-size:11px;margin-top:3px;line-height:1.3}.th-mode-switch button.is-active{background:#fff;color:#142433;box-shadow:0 4px 18px rgba(31,45,57,.09)}
.th-stage-nav{display:grid;gap:0;padding:0 24px;border-bottom:1px solid #e4ebf0;background:#fff;overflow-x:auto}.th-stage-nav.simple{grid-template-columns:repeat(5,minmax(160px,1fr))}.th-stage-nav.pro{grid-template-columns:repeat(8,minmax(150px,1fr))}.th-stage-nav button{min-width:0;border:0;border-bottom:3px solid transparent;background:transparent;padding:16px 12px;display:flex;gap:10px;align-items:center;text-align:left;cursor:pointer;color:#74808c}.th-stage-nav button>span{flex:0 0 28px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid #d6e0e7;background:#f8fafb;font-size:12px;font-weight:800}.th-stage-nav button b,.th-stage-nav button small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.th-stage-nav button b{font-size:12px;color:#394958}.th-stage-nav button small{font-size:10px;margin-top:2px}.th-stage-nav button.is-active{border-bottom-color:#0f766e}.th-stage-nav button.is-active>span,.th-stage-nav button.is-done>span{background:#0f766e;color:#fff;border-color:#0f766e}.th-stage-nav button.is-active b{color:#0f766e}
.th-workbench{display:grid;grid-template-columns:minmax(440px,.78fr) minmax(620px,1.22fr);min-height:810px}.th-controls{padding:26px 28px 30px;border-right:1px solid #e2e9ee;min-width:0}.th-current-step{display:flex;gap:14px;align-items:center;margin-bottom:22px}.th-current-step>span{font-size:11px;font-weight:800;color:#0f766e;background:#ecfdf5;padding:8px 10px;border-radius:10px}.th-current-step b,.th-current-step small{display:block}.th-current-step b{font-size:19px;color:#1d2a35}.th-current-step small{font-size:12px;color:#7b8792;margin-top:2px}.th-step-head{margin-bottom:15px}.th-step-head>span{font-size:11px;color:#0f766e;text-transform:uppercase;font-weight:800;letter-spacing:.12em}.th-step-head h3{font-size:25px;margin:5px 0 7px;letter-spacing:-.03em;color:#17212b}.th-step-head p{margin:0;color:#65727e;line-height:1.5}.th-card{border:1px solid #dfe7ec;border-radius:18px;padding:18px;margin:14px 0;background:#fff}.th-card h4{font-size:15px;margin:0 0 13px;color:#22313d}.th-grid-2,.th-grid-3{display:grid;gap:12px}.th-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.th-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.th-field{display:block;min-width:0}.th-field>span{display:block;font-size:11px;font-weight:700;color:#63717e;margin-bottom:6px}.th-field input,.th-field select{width:100%;height:43px;border:1px solid #d4dee5;border-radius:11px;background:#fff;color:#1f2d38;padding:0 11px;font:600 13px/1 system-ui;outline:none}.th-field input:focus,.th-field select:focus{border-color:#5ba8a2;box-shadow:0 0 0 3px rgba(15,118,110,.08)}.th-field input[readonly]{background:#f5f8f9;color:#51606c}.th-unit{display:flex;align-items:center;position:relative}.th-unit input{padding-right:66px}.th-unit b{position:absolute;right:10px;font-size:10px;color:#81909c;font-weight:700;pointer-events:none}.th-help{font-size:11px;color:#71808d;line-height:1.45;margin-top:8px}.th-help strong{color:#354856}.th-live-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.th-live-strip span{padding:10px;border-radius:11px;background:#f5f8fa;border:1px solid #e2e9ee}.th-live-strip small,.th-live-strip b{display:block}.th-live-strip small{font-size:9px;text-transform:uppercase;color:#83909b;letter-spacing:.06em}.th-live-strip b{font-size:12px;margin-top:3px;color:#203341}.th-segmented{display:flex;flex-wrap:wrap;gap:8px}.th-segmented label{cursor:pointer}.th-segmented input{position:absolute;width:1px!important;height:1px!important;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.th-segmented span{display:block;padding:10px 12px;border:1px solid #d7e0e7;border-radius:11px;font-size:12px;font-weight:700;color:#52616e}.th-segmented input:checked+span{border-color:#0f766e;background:#eaf8f6;color:#0f766e}.th-switch{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #dfe7ec;border-radius:13px;cursor:pointer}.th-switch input{width:18px;height:18px;accent-color:#0f766e;margin-top:2px}.th-switch b,.th-switch small{display:block}.th-switch b{font-size:13px;color:#2b3a46}.th-switch small{font-size:11px;color:#71808d;line-height:1.4;margin-top:3px}.th-note{padding:12px 13px;border-radius:12px;font-size:11px;line-height:1.5;background:#f6f8fa;color:#5f6d79;border:1px solid #e1e7ec}.th-note.warning{background:#fff8eb;border-color:#f1d59b;color:#765623}.th-note.info{background:#eff8ff;border-color:#cfe4f5;color:#3a6079}
.th-layers{display:grid;gap:10px}.th-layer-row{display:grid;grid-template-columns:44px minmax(170px,1.35fr) 100px 104px 104px 116px 44px;gap:8px;align-items:end;padding:10px;border:1px solid #dfe7ec;border-radius:14px;background:#fbfcfd}.th-layer-order{display:grid;gap:2px;align-self:center}.th-layer-order button{width:28px;height:24px;border:0;border-radius:7px;background:#edf2f5;color:#52616d;cursor:pointer}.th-layer-order span{text-align:center;font-size:9px;color:#9aa5ae}.th-layer-remove{width:32px;height:43px;border:0;border-radius:10px;background:#fff0f0;color:#b53d3d;font-size:20px;cursor:pointer}.th-add-layer{width:100%;height:42px;border:1px dashed #a9beca;border-radius:12px;background:#f8fbfc;color:#0f766e;font-weight:800;cursor:pointer;margin-top:10px}.th-pro-param.is-hidden-simple{display:none}.th-layer-row:has(.is-hidden-simple){grid-template-columns:44px minmax(220px,1fr) 120px 44px}
.th-step-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}.th-step-actions button{height:44px;border-radius:12px;padding:0 18px;font-weight:800;cursor:pointer}.th-step-actions button:first-child{background:#fff;border:1px solid #d5dfe5;color:#5c6a76}.th-step-actions button:last-child{background:#0f766e;border:1px solid #0f766e;color:#fff}.th-step-actions button:disabled{opacity:.4;cursor:not-allowed}
.th-visual{padding:22px;background:linear-gradient(180deg,#f9fbfc,#f4f7f9);min-width:0;position:relative}.th-visual-sticky{position:sticky;top:12px}.th-visual-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.th-visual-head small,.th-visual-head h3,.th-visual-head p{display:block}.th-visual-head small{font-size:10px;color:#0f766e;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.th-visual-head h3{font-size:21px;margin:4px 0 4px;color:#1b2934}.th-visual-head p{font-size:11px;color:#778490;margin:0;max-width:520px;line-height:1.4}.th-view-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.th-view-tabs button{height:34px;padding:0 10px;border:1px solid #d8e2e8;border-radius:9px;background:#fff;color:#64727e;font-size:10px;font-weight:800;cursor:pointer}.th-view-tabs button.is-active{background:#183746;color:#fff;border-color:#183746}.th-svg-wrap{margin-top:14px;border:1px solid #dbe5eb;border-radius:22px;background:#eef3f6;overflow:hidden}.th-svg-wrap svg{display:block;width:100%;height:auto;aspect-ratio:900/560}.th-svg-bg{fill:#f8fbfd;stroke:#dbe6ec}.th-layer-fill{stroke:#fff;stroke-width:2}.th-layer-top{stroke:#fff;stroke-width:1}.th-layer-0{fill:#ece5dd}.th-layer-1{fill:#d49a79}.th-layer-2{fill:#cbb35e}.th-layer-3{fill:#91b8a4}.th-layer-4{fill:#d9dee3}.th-layer-5{fill:#7f9eb0}.th-layer-6{fill:#b9d7dd}.th-layer-7{fill:#c3a7d5}.th-svg-layer-name{font-size:10px;font-weight:800;fill:#1f2d37;text-anchor:middle}.th-svg-layer-th{font-size:10px;font-weight:700;fill:#53626e;text-anchor:middle}.th-svg-layer-meta{font-size:9px;fill:#6f7d89;text-anchor:middle}.th-svg-in,.th-svg-out{font-size:11px;font-weight:800;fill:#415665}.th-svg-out{text-anchor:end}.th-flow-arrow{stroke:#466777;stroke-width:2.5;fill:none}.th-arrow-head{fill:#466777}.th-svg-main{font-size:12px;font-weight:800;fill:#25414e;text-anchor:middle}.th-svg-foot{font-size:10px;font-weight:700;fill:#566b78}.th-svg-status{font-size:10px;font-weight:800;text-anchor:end}.th-svg-status.ok{fill:#0f766e}.th-svg-status.bad{fill:#b34747}.th-svg-title{font-size:13px;font-weight:800;fill:#263b48;text-anchor:middle}.th-grid{stroke:#dbe4ea;stroke-width:1}.th-axis{font-size:9px;fill:#7d8993;text-anchor:end}.th-boundary{stroke:#e1e8ed;stroke-dasharray:4 4}.th-temp-line{fill:none;stroke:#e5653f;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.th-temp-dot{fill:#fff;stroke:#e5653f;stroke-width:3}.th-dew-line{stroke:#2c87b7;stroke-width:1.5;stroke-dasharray:7 5}.th-dew-label{font-size:9px;fill:#2c6f93;text-anchor:end}.th-temp-kpis rect{fill:#fff;stroke:#dbe5ea}.th-kpi-label{font-size:8px;fill:#77858f;text-anchor:middle}.th-kpi-value{font-size:14px;font-weight:800;fill:#203b49;text-anchor:middle}.th-ps-line{fill:none;stroke:#2c87b7;stroke-width:3}.th-pv-line{fill:none;stroke:#e5653f;stroke-width:3}.th-risk-dot{fill:rgba(192,50,50,.16);stroke:#c43f3f;stroke-width:3}.th-legend-text{font-size:9px;fill:#61727f}.th-flow-track{fill:#e8eef2}.th-flow-bar{opacity:.9}.th-flow-name{font-size:10px;font-weight:800;fill:#1e303b}.th-flow-value{font-size:10px;font-weight:800;fill:#263d4a;text-anchor:end}.th-visual-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.th-visual-kpis article{padding:11px;border:1px solid #dce6eb;border-radius:12px;background:#fff}.th-visual-kpis small,.th-visual-kpis b{display:block}.th-visual-kpis small{font-size:9px;color:#7a8791;text-transform:uppercase}.th-visual-kpis b{font-size:14px;color:#203440;margin-top:3px}
.th-results{padding:28px 30px 44px;border-top:1px solid #e1e8ed;background:#fff}.th-result-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.th-result-head h2{font-size:28px;margin:0 0 5px;color:#17242e}.th-result-head p{margin:0;color:#6b7985}.th-status{padding:9px 12px;border-radius:10px;font-size:12px;font-weight:800}.th-status.ok{background:#e8f8f2;color:#0f766e}.th-status.bad{background:#fff0ef;color:#b13e3e}.th-kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}.th-kpi-grid article{padding:15px;border:1px solid #dfe7ec;border-radius:14px;background:#fbfcfd;min-width:0}.th-kpi-grid small,.th-kpi-grid b,.th-kpi-grid span{display:block}.th-kpi-grid small{font-size:9px;color:#7b8994;text-transform:uppercase;letter-spacing:.05em}.th-kpi-grid b{font-size:22px;color:#172a36;margin:5px 0 2px;letter-spacing:-.03em}.th-kpi-grid span{font-size:10px;color:#70808c;line-height:1.35}.th-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.th-result-card{border:1px solid #dfe7ec;border-radius:18px;padding:18px;background:#fff;min-width:0}.th-result-card h3{font-size:17px;margin:0 0 12px;color:#24343f}.th-checks{display:grid;gap:8px}.th-check{display:flex;gap:10px;padding:11px;border-radius:12px;background:#f6f9fa;border:1px solid #e2e9ed}.th-check>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 25px}.th-check b,.th-check small{display:block}.th-check b{font-size:12px;color:#243743}.th-check small{font-size:10px;color:#667783;line-height:1.4;margin-top:2px}.th-check.ok>span{background:#dff4ec;color:#0f766e}.th-check.bad>span{background:#fde3e1;color:#b73f3f}.th-check.neutral{background:#fbfcfd}.th-opt-ok,.th-opt-alert{padding:15px;border-radius:13px}.th-opt-ok{background:#ecf8f3;border:1px solid #cfe8dd}.th-opt-alert{background:#fff4e8;border:1px solid #efd4b4}.th-opt-ok b,.th-opt-alert b{font-size:16px}.th-opt-ok p,.th-opt-alert p{margin:6px 0 0;font-size:12px;line-height:1.55;color:#536570}.th-ledger-tabs{display:flex;gap:7px;overflow-x:auto;margin:20px 0 10px}.th-ledger-tabs button{white-space:nowrap;border:1px solid #dce5ea;border-radius:10px;background:#fff;padding:9px 11px;font-size:11px;font-weight:800;color:#576774;cursor:pointer}.th-ledger-tabs button.is-active{background:#183746;border-color:#183746;color:#fff}.th-ledger-panel[hidden]{display:none}.th-table-wrap{overflow:auto;border:1px solid #dfe7ec;border-radius:14px}.th-table-wrap table{width:100%;border-collapse:collapse;min-width:680px}.th-table-wrap th,.th-table-wrap td{padding:10px 11px;border-bottom:1px solid #e6ecef;text-align:left;font-size:11px;vertical-align:top}.th-table-wrap th{background:#f6f9fa;color:#647480;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.th-table-wrap td{color:#41535f}.th-table-wrap tr:last-child td{border-bottom:0}.th-mini-status{display:inline-block;padding:4px 7px;border-radius:8px;font-weight:800}.th-mini-status.ok{background:#e8f7f1;color:#0f766e}.th-mini-status.bad{background:#fdebea;color:#b54040}.th-export-row{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #e2e9ed}.th-export-actions{display:flex;gap:8px;flex-wrap:wrap}.th-export-actions button{height:40px;border-radius:10px;padding:0 13px;font-weight:800;cursor:pointer}.th-export-actions .btn-soft{border:1px solid #d5e0e6;background:#fff;color:#536674}.th-export-actions .btn-primary{border:1px solid #0f766e;background:#0f766e;color:#fff}.th-export-note{font-size:10px;color:#6f7d88;max-width:600px;line-height:1.45}.th-export-note strong{color:#2c4655}
.th-info{padding:48px 0}.th-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.th-info article{border:1px solid #e0e7eb;border-radius:20px;padding:22px;background:#fff}.th-info h2{margin:0 0 12px;font-size:24px;color:#1e2e39}.th-info p,.th-info li{font-size:14px;line-height:1.7;color:#5c6c78}.th-info code{background:#edf3f5;padding:2px 5px;border-radius:5px}.th-source-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.th-source-tags span{padding:7px 9px;border-radius:9px;background:#eef6f5;color:#1f675f;font-size:11px;font-weight:700}.th-disclaimer-inline{margin-top:18px;padding:15px 16px;border-radius:14px;background:#fff8e9;border:1px solid #efd59b;color:#684f20;font-size:12px;line-height:1.55}.th-disclaimer-inline b{color:#443615}
@media(max-width:1220px){.th-shell-head{grid-template-columns:1fr}.th-workbench{grid-template-columns:1fr}.th-controls{border-right:0;border-bottom:1px solid #e2e9ee}.th-visual-sticky{position:relative;top:auto}.th-layer-row{grid-template-columns:44px minmax(160px,1fr) 95px 100px 100px 108px 44px}.th-kpi-grid{grid-template-columns:repeat(3,1fr)}.th-hero-grid{grid-template-columns:1fr .8fr}}
@media(max-width:880px){.th-hero-grid{grid-template-columns:1fr}.th-hero-art{min-height:330px}.th-shell{border-radius:20px}.th-shell-head{padding:22px 18px}.th-mode-switch{grid-template-columns:1fr}.th-stage-nav{padding:0 10px}.th-controls,.th-visual,.th-results{padding:18px 14px}.th-layer-row,.th-layer-row:has(.is-hidden-simple){grid-template-columns:32px 1fr 96px 32px}.th-layer-row .th-pro-param{grid-column:auto}.th-layer-row .th-layer-material{grid-column:2/3}.th-layer-row>.th-pro-param:not(.is-hidden-simple){grid-column:2/4}.th-grid-3{grid-template-columns:1fr 1fr}.th-kpi-grid{grid-template-columns:repeat(2,1fr)}.th-result-grid,.th-info-grid{grid-template-columns:1fr}.th-result-head,.th-export-row,.th-visual-head{display:block}.th-view-tabs{justify-content:flex-start;margin-top:10px}.th-export-actions{margin-top:10px}.th-visual-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.th-wrap{width:min(100% - 16px,1540px)}.th-hero{padding-top:25px}.th-hero-copy h1{font-size:38px}.th-hero-copy>p{font-size:16px}.th-hero-art{min-height:270px}.th-hero-stack{left:24px;right:24px;top:70px;height:150px}.th-hero-r{font-size:26px}.th-hero-line{left:24px;right:24px;bottom:34px}.th-hero-line:after{font-size:9px}.th-grid-2,.th-grid-3{grid-template-columns:1fr}.th-live-strip{grid-template-columns:1fr}.th-kpi-grid{grid-template-columns:1fr 1fr}.th-kpi-grid article{padding:12px}.th-kpi-grid b{font-size:18px}.th-stage-nav button{padding:13px 8px}.th-stage-nav button div{display:none}.th-stage-nav.simple,.th-stage-nav.pro{grid-template-columns:repeat(8,minmax(44px,1fr))}.th-stage-nav.simple button:nth-child(n+6){display:none}.th-svg-wrap{border-radius:14px}.th-svg-wrap svg{min-height:330px}.th-info{padding:32px 0}}

/* v307: explicit project-energy-factor confirmation */
.th-toggle-line{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #dfe7ec;border-radius:12px;background:#f8fbfb;cursor:pointer}
.th-toggle-line input{width:18px;height:18px;margin-top:2px;accent-color:#0f766e;flex:0 0 18px}
.th-toggle-line b,.th-toggle-line small{display:block}
.th-toggle-line b{font-size:12px;color:#263945}
.th-toggle-line small{font-size:10px;color:#6f7e89;line-height:1.4;margin-top:3px}
.th-field input:disabled{background:#f0f3f5;color:#8a969f;cursor:not-allowed}

/* v310 hero background image replacement */
.th-hero{
  position:relative;
  overflow:hidden;
  background-color:#f7fafc;
  background-image:
    linear-gradient(90deg,#f7fafc 0%,rgba(247,250,252,.995) 33%,rgba(255,255,255,.94) 47%,rgba(255,255,255,.70) 60%,rgba(255,255,255,.26) 77%,rgba(255,255,255,0) 90%),
    url("../assets/thermal-calculator-hero-v311.webp");
  background-repeat:no-repeat,no-repeat;
  background-position:left center,right center;
  background-size:100% 100%,auto 100%;
}
.th-hero-grid{
  grid-template-columns:1fr;
  min-height:520px;
  gap:0;
  align-items:center;
}
.th-hero-copy{position:relative;z-index:2;max-width:780px}
.th-hero-art{display:none !important}

@media(max-width:1220px){
  .th-hero{
    background-size:100% 100%,auto 88%;
    background-position:left center,108% center;
  }
  .th-hero-grid{min-height:480px}
}
@media(max-width:880px){
  .th-hero{
    background-image:
      linear-gradient(180deg,#f7fafc 0%,rgba(247,250,252,.992) 48%,rgba(255,255,255,.88) 62%,rgba(255,255,255,.48) 79%,rgba(255,255,255,.12) 92%,rgba(255,255,255,0) 100%),
      url("../assets/thermal-calculator-hero-v311.webp");
    background-position:center top,center bottom;
    background-size:100% 100%,auto 280px;
  }
  .th-hero-grid{
    min-height:auto;
    padding:34px 0 290px;
  }
}
@media(max-width:560px){
  .th-hero{
    background-size:100% 100%,auto 225px;
  }
  .th-hero-grid{
    padding:25px 0 230px;
  }
}


/* v311 publication SEO / FAQ blocks */
.th-seo-kicker{display:block;margin-bottom:7px;color:#0f766e;font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.th-seo-list{margin:10px 0 0;padding-left:20px}
.th-seo-list li+li{margin-top:5px}
.th-seo-metric{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.th-seo-metric span{display:block;padding:12px 13px;border:1px solid #dfe7ec;border-radius:13px;background:#f8fafb;color:#526571;font-size:12px;line-height:1.45}
.th-seo-metric b{display:block;margin-bottom:3px;color:#17313e;font-size:13px}
.th-faq{padding:48px 0;background:#f7f9fa}
.th-faq-head{max-width:820px;margin-bottom:18px}.th-faq-head h2{margin:0 0 8px;font-size:30px;letter-spacing:-.035em;color:#17242e}.th-faq-head p{margin:0;color:#687783;line-height:1.65}
.th-faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.th-faq details{border:1px solid #dfe7ec;border-radius:15px;background:#fff;overflow:hidden}
.th-faq summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:800;color:#263a46;position:relative;padding-right:44px}
.th-faq summary::-webkit-details-marker{display:none}.th-faq summary:after{content:"+";position:absolute;right:17px;top:12px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eef4f4;color:#0f766e;font-size:20px;font-weight:500}.th-faq details[open] summary:after{content:"−"}
.th-faq details p{margin:0;padding:0 18px 17px;color:#5b6d79;font-size:13px;line-height:1.7}
.th-publish-note{margin-top:12px;padding:12px 14px;border-left:3px solid #0f766e;background:#f0f8f6;color:#4f625f;font-size:12px;line-height:1.6}
@media(max-width:880px){.th-seo-metric,.th-faq-grid{grid-template-columns:1fr}.th-faq{padding:32px 0}}

/* v870 — thermal expanded row containment fix */
.th-layer-row,
.th-layer-row > *{min-width:0}
.th-layer-row .th-field,
.th-layer-row .th-unit,
.th-layer-row .th-unit input,
.th-layer-row .th-layer-material,
.th-layer-row .th-layer-material select{min-width:0}
.th-layer-row{
  grid-template-columns:44px minmax(0,1.7fr) minmax(84px,.75fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.05fr) 44px;
}
.th-layer-row:has(.is-hidden-simple){
  grid-template-columns:44px minmax(0,1.8fr) minmax(110px,.8fr) 44px;
}
.th-layer-row .th-unit input{padding-right:58px}
.th-layer-row .th-unit b{right:8px;font-size:9px;max-width:50px;text-align:right;line-height:1.15;white-space:normal}
@media (max-width:1360px){
  .th-layer-row{
    grid-template-columns:44px minmax(0,1.45fr) minmax(80px,.7fr) minmax(0,.85fr) minmax(0,.85fr) minmax(0,1fr) 44px;
  }
}
@media (max-width:1220px){
  .th-layer-row{
    grid-template-columns:44px minmax(0,1.35fr) minmax(78px,.7fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,.95fr) 44px;
  }
}


/* v872: desktop portal rails can leave less space than a tablet viewport. */
.th-shell{container-name:thermal-workspace-v872;container-type:inline-size}
@container thermal-workspace-v872 (max-width:1060px){
 .th-workbench{grid-template-columns:minmax(0,1fr)}
 .th-controls{border-right:0;border-bottom:1px solid #e2e9ee}
}

/* v871: PRO fields must stay legible when the workbench has a narrow column. */
.th-controls{container-name:thermal-editor-v871;container-type:inline-size;min-width:0}
.th-layer-row,.th-layer-row > *,.th-layer-row .th-unit{min-width:0;max-width:100%;box-sizing:border-box}
@container thermal-editor-v871 (max-width:760px){
 .th-layer-row:not(:has(.is-hidden-simple)){
  grid-template-columns:44px repeat(2,minmax(0,1fr)) 44px;
  gap:9px;
 }
 .th-layer-row:not(:has(.is-hidden-simple)) > .th-layer-order{grid-column:1;grid-row:1}
 .th-layer-row:not(:has(.is-hidden-simple)) > .th-layer-material{grid-column:2/4;grid-row:1}
 .th-layer-row:not(:has(.is-hidden-simple)) > .th-layer-remove{grid-column:4;grid-row:1}
 .th-layer-row:not(:has(.is-hidden-simple)) > :nth-child(3){grid-column:2;grid-row:2}
 .th-layer-row:not(:has(.is-hidden-simple)) > :nth-child(4){grid-column:3;grid-row:2}
 .th-layer-row:not(:has(.is-hidden-simple)) > :nth-child(5){grid-column:2;grid-row:3}
 .th-layer-row:not(:has(.is-hidden-simple)) > :nth-child(6){grid-column:3;grid-row:3}
 .th-layer-row:has(.is-hidden-simple){grid-template-columns:44px minmax(0,1fr) minmax(108px,.75fr) 44px}
}
@container thermal-editor-v871 (max-width:380px){
 .th-layer-row:not(:has(.is-hidden-simple)){grid-template-columns:44px minmax(0,1fr) 44px}
 .th-layer-row:not(:has(.is-hidden-simple)) > .th-layer-material{grid-column:2;grid-row:1}
 .th-layer-row:not(:has(.is-hidden-simple)) > .th-layer-remove{grid-column:3;grid-row:1}
 .th-layer-row:not(:has(.is-hidden-simple)) > :nth-child(n+3):nth-child(-n+6){grid-column:2;grid-row:auto}
 .th-layer-row:has(.is-hidden-simple){grid-template-columns:44px minmax(0,1fr) 44px}
 .th-layer-row:has(.is-hidden-simple) > .th-layer-order{grid-column:1;grid-row:1}
 .th-layer-row:has(.is-hidden-simple) > .th-layer-material{grid-column:2;grid-row:1}
 .th-layer-row:has(.is-hidden-simple) > .th-layer-remove{grid-column:3;grid-row:1}
 .th-layer-row:has(.is-hidden-simple) > :nth-child(3){grid-column:2;grid-row:2}
}


/* v872: preserve 44px touch controls and give phone layer fields a full row. */
@container thermal-editor-v871 (max-width:380px){
 .th-layer-row:not(:has(.is-hidden-simple)),.th-layer-row:has(.is-hidden-simple){grid-template-columns:44px minmax(0,1fr) 44px}
 .th-layer-row > .th-layer-order{display:flex;align-items:center;gap:4px;grid-column:1/3!important;grid-row:1!important}
 .th-layer-order button{flex:0 0 44px}
 .th-layer-order span{flex:0 0 auto}
 .th-layer-row > .th-layer-material{grid-column:1/-1!important;grid-row:2!important}
 .th-layer-row > .th-layer-remove{grid-column:3!important;grid-row:1!important;justify-self:end}
 .th-layer-row > :nth-child(n+3):nth-child(-n+6){grid-column:1/-1!important;grid-row:auto!important}
}

/* v947: keep stage names visible in the portal mobile card layout. */
@media(max-width:560px){.th-stage-nav button div{display:block;min-width:0}.th-stage-nav button b,.th-stage-nav button small{white-space:normal;overflow:visible;text-overflow:clip}}
