.tool{scroll-margin-top:calc(var(--header-h) + 12px)}
.p2d .sheet{background:var(--sheet)}
.p2d .tool-body{background:none;height:clamp(580px,calc(100vh - var(--header-h) - 40px),800px);height:clamp(580px,calc(100dvh - var(--header-h) - 40px),800px)}
.p2d .app-bar{gap:12px;min-width:0}
.p2d .tool-status{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;letter-spacing:.04em}
.tool-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex:none}
.p2d .btn:disabled{opacity:.45;cursor:default}
.heat-stage{display:grid;grid-template-columns:440px minmax(0,1fr);min-height:0}
.heat-panel{display:flex;flex-direction:column;gap:14px;min-height:0;padding:16px;overflow:auto;border-right:1px solid var(--hair)}
.heat-panel h3{font:500 11.5px/1.2 var(--font-mono);letter-spacing:.09em;text-transform:uppercase;color:var(--ink-label);margin:0}
.heat-form{display:flex;flex-direction:column;gap:14px}
.heat-fields{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 10px;font-size:13.5px}
.heat-field{display:contents}
.heat-fields .unit{display:grid;grid-template-columns:minmax(0,1fr) 2.6em;align-items:center;gap:6px;font:400 12.5px/1 var(--font-mono);color:var(--ink-muted)}
.heat-panel input[type=number],.heat-panel select{width:100%;min-width:0;height:32px;padding:0 8px;border:1px solid var(--hair-strong);border-radius:4px;background:var(--sheet);color:var(--ink);font:400 13.5px/1 var(--font-sans)}
.heat-panel input[type=number]:focus,.heat-panel select:focus{outline:none;border-color:var(--accent)}
.heat-panel input[type=number].is-wrong{border-color:var(--accent-ink);background:var(--accent-wash)}
.heat-panel input:disabled,.heat-panel select:disabled{opacity:.4}
.heat-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.heat-table th{font:500 10.5px/1.2 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-label);text-align:left;padding:0 3px 6px}
.heat-table td{padding:2px 3px}
.heat-table input[type=number],.heat-table select{height:30px;padding:0 5px;font-size:12.5px}
.heat-remove{width:22px;height:30px;padding:0;border:0;background:none;color:var(--ink-muted);font-size:16px;cursor:pointer}
.heat-remove:hover:not(:disabled){color:var(--accent-ink)}
.heat-remove:disabled{opacity:.3;cursor:default}
.heat-load-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.p2d #heat-file-name{text-transform:none;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.heat-check{display:flex;align-items:center;gap:8px;font-size:13.5px}
.heat-file{display:flex;align-items:center;gap:10px;min-width:0}
.heat-file[hidden]{display:none}
.heat-field[hidden]{display:none}
.heat-data{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;margin:0;font-size:13px}
.heat-data dt{color:var(--ink-muted)}
.heat-data dt.is-sub{padding-left:12px}
.heat-data dd{margin:0;font:400 12.5px/1.4 var(--font-mono);text-align:right}
.heat-notes{margin:0;font-size:13px;color:var(--accent-ink)}
.heat-notes[hidden]{display:none}
.heat-view{position:relative;min-height:0}
.tool-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;visibility:hidden}
.tool-frame.is-visible{visibility:visible}
.heat-empty{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:14px;padding:24px;text-align:center;color:var(--ink-muted);font-size:14.5px}
.heat-empty[hidden]{display:none}
.heat-empty:not(.is-waiting) .loading-mark{display:none}
.sheet-area{position:relative}
.sheet-area:fullscreen{background:var(--sheet)}
.sheet-area:fullscreen .tool-body{height:100vh}
@container (max-width:860px){
  .p2d .tool-body{height:auto}
  .heat-stage{grid-template-columns:1fr}
  .heat-panel{border-right:0;border-bottom:1px solid var(--hair);overflow:visible}
  .heat-view{height:760px;order:-1}
}
.heat-group{display:flex;flex-direction:column}
.heat-group summary{display:flex;align-items:baseline;gap:8px;cursor:pointer;list-style:none;font:500 11.5px/1.2 var(--font-mono);letter-spacing:.09em;text-transform:uppercase;color:var(--ink-label)}
.heat-group summary::-webkit-details-marker{display:none}
.heat-group summary::before{content:"+";width:10px;color:var(--ink-muted)}
.heat-group[open] summary::before{content:"\2212"}
#heat-summary,#heat-solver-summary{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;letter-spacing:.04em;color:var(--ink-muted)}
.heat-group[open] #heat-summary,.heat-group[open] #heat-solver-summary{visibility:hidden}
.heat-group .heat-fields{margin-top:14px}
.heat-group .heat-check{margin-top:12px}
.heat-panel hr{width:100%;margin:2px 0;border:0;border-top:1px solid var(--hair)}
.p2d .heat-table th,.p2d .heat-table td{border:0;background:none}
.p2d .heat-table th{padding:0 3px 6px;white-space:nowrap;border-bottom:1px solid var(--hair);text-transform:none;letter-spacing:.02em}
.p2d .heat-table td{padding:3px}
.heat-data{grid-template-columns:max-content minmax(0,1fr)}
.heat-data dt{white-space:nowrap}
.heat-data dd{overflow-wrap:break-word}
.heat-data .is-wide{grid-column:1/-1}
.heat-data dd.is-wide{margin-top:-3px}
.heat-fields{grid-template-columns:8.8em minmax(0,1fr)}
.heat-samples{margin:0;font-size:13px;color:var(--ink-muted)}
.p2d .heat-sample{padding:0;border:0;background:none;color:var(--accent-ink);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.p2d .heat-sample:disabled{opacity:.5;cursor:default}
.p2d #heat-solver{text-transform:none;letter-spacing:.04em;color:var(--ink-muted)}
.heat-table input:disabled{opacity:.4}
.p2d .example-figure img{display:block;width:100%;height:100%;object-fit:contain}
.heat-check-line{position:relative;display:flex;align-items:center;gap:6px;margin-top:12px}
.heat-check-line .heat-check{margin-top:0}
.info{display:inline-grid;place-items:center;flex:none;width:14px;height:14px;border:1px solid var(--hair-strong);border-radius:50%;font:italic 600 9.5px/1 var(--font-display);color:var(--ink-muted);cursor:help}
.info:hover,.info:focus{border-color:var(--accent);color:var(--accent-ink);outline:none}
.info .tip{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:10;display:none;padding:8px 10px;border:1px solid var(--hair);border-radius:4px;background:var(--sheet);box-shadow:var(--lift-2,0 6px 20px rgb(0 0 0 / .15));font:400 12.5px/1.45 var(--font-sans);font-style:normal;color:var(--ink);text-align:left}
.info:hover .tip,.info:focus .tip{display:block}
.heat-results-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.p2d .heat-panel .heat-results-head select{width:auto;max-width:60%;height:28px;font-size:12.5px}
.heat-stage{grid-template-columns:480px minmax(0,1fr)}
.heat-conds th:nth-child(1){width:25%}
.heat-conds th:nth-child(2){width:13%}
.heat-conds th:nth-child(3){width:19%}
.heat-conds th:nth-child(4){width:24%}
.heat-conds th:nth-child(5){width:14%}
.heat-conds th:nth-child(6){width:22px}
.heat-value{display:flex;align-items:center;gap:3px}
.heat-unit{flex:none;font:400 10.5px/1 var(--font-mono);color:var(--ink-muted)}
.heat-regions th:nth-child(1){width:12%}
.heat-regions th:nth-child(2){width:36%}
.heat-regions:not(.is-transient) .t-only{display:none}
.heat-region-name{font:500 12.5px/1 var(--font-mono);color:var(--accent-ink)}
.heat-time{display:flex;flex-direction:column;gap:6px}
.heat-time[hidden]{display:none}
.heat-time-bar{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink-muted)}
.heat-time-bar input[type=range]{-webkit-appearance:none;appearance:none;flex:1 1 auto;height:14px;margin:0;background:none;cursor:pointer}
.heat-time-bar input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:1px;background:var(--hair-strong)}
.heat-time-bar input[type=range]::-moz-range-track{height:2px;border-radius:1px;background:var(--hair-strong)}
.heat-time-bar input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;margin-top:-4px;border-radius:50%;border:1.5px solid var(--ink-label);background:var(--sheet)}
.heat-time-bar input[type=range]::-moz-range-thumb{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink-label);background:var(--sheet)}
.heat-time-bar input[type=range]:hover::-webkit-slider-thumb,.heat-time-bar input[type=range]:focus-visible::-webkit-slider-thumb{border-color:var(--accent)}
.heat-time-bar input[type=range]:hover::-moz-range-thumb,.heat-time-bar input[type=range]:focus-visible::-moz-range-thumb{border-color:var(--accent)}
.heat-time-bar input[type=range]:focus{outline:none}
#heat-moment-label{min-width:7em;text-align:right;font:400 12.5px/1 var(--font-mono);color:var(--ink)}
#heat-curve svg{display:block;width:100%;height:auto}
#heat-curve .axis{stroke:var(--hair-strong);stroke-width:1}
#heat-curve .curve{fill:none;stroke:#d6336c;stroke-width:1.8}
#heat-curve .steady{stroke:var(--ink-muted);stroke-width:1;stroke-dasharray:4 3}
#heat-curve .mark{stroke:var(--ink-muted);stroke-width:1;stroke-dasharray:1 2}
#heat-curve .now{stroke:var(--accent);stroke-width:1.4}
#heat-curve text{font:400 10px var(--font-mono);fill:var(--ink-muted)}
[data-mode][hidden],[data-transient][hidden]{display:none}
@container (max-width:860px){.heat-stage{grid-template-columns:1fr}}
