/* Saved-result heatmaps are a display mode; selections and values remain legible. */
.floor-plan .fp-plan-options>.fp-display-switch,.fp-display-switch{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;padding:3px;border:1px solid #637c8e66;border-radius:9px;background:#222b32}
.floor-plan .fp-plan-options .fp-display-switch button,.fp-display-switch button{font:inherit;font-size:12px;font-weight:600;min-height:38px;padding:8px 14px;line-height:1.4;border:1px solid transparent;border-radius:6px;background:transparent;color:#afc4d4;white-space:nowrap}
.floor-plan .fp-plan-options .fp-display-switch button:hover,.fp-display-switch button:hover{background:#ffffff08;color:#e0edf6}
.floor-plan .fp-plan-options .fp-display-switch [aria-pressed=true],.fp-display-switch [aria-pressed=true]{background:#31516a;border-color:#7da6c5;color:#e6f4ff}
.fp-display-switch button:focus-visible{outline:2px solid #a5d7fa;outline-offset:1px}
.fp-heatmap-controls{margin:0 0 15px;padding:14px 16px;background:#24313a;border-radius:8px;box-shadow:inset 0 0 0 1px #88a7bc21;min-width:0}
.fp-heatmap-controls[hidden],.fp-heatmap-hour[hidden]{display:none!important}
.fp-heatmap-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.fp-heatmap-title h3{font-size:14px;line-height:1.5;font-weight:650;margin:0;color:#deebf5}.fp-heatmap-title>span{font-size:11px;color:#a5bdce;line-height:1.6}
.fp-heatmap-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.fp-heatmap-settings label{display:flex;flex-direction:column;gap:5px;margin:0;min-width:0;font-size:12px;line-height:1.6;color:#b9cbd9}
.fp-heatmap-settings select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:40px;font-size:13px;margin:0;padding:8px 10px;background-color:#202a31;border-color:#587184}
.fp-heatmap-settings select:focus-visible{outline:2px solid #9bd0f2;outline-offset:2px}
.fp-heatmap-hour{margin:13px 0 0;padding-top:11px;border-top:1px solid #88a7bc22;min-width:0}
.fp-heatmap-hour-label{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;color:#b9ccd9;font-size:12px;line-height:1.6;margin-bottom:7px}
.fp-heatmap-hour-label strong,.fp-heatmap-hour-label [data-plan-heatmap-hour-readout]{color:#e2f1fc;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fp-heatmap-hour-controls{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;min-width:0}
.fp-heatmap-hour-controls button{box-sizing:border-box;min-width:40px;min-height:40px;width:40px;font-size:18px;line-height:1;padding:7px;border:1px solid #5b778b;border-radius:6px;background:#2a3b48;color:#d5e9f7}
.fp-heatmap-hour-controls button:hover{background:#354d60}.fp-heatmap-hour-controls button:disabled{opacity:.45;cursor:default}
.fp-heatmap-hour-controls input[type=range]{appearance:auto;-webkit-appearance:auto;box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:36px;height:36px;margin:0;padding:0;border:0;border-radius:0;background:transparent;accent-color:#91c5e8;cursor:pointer;touch-action:pan-y}
.fp-heatmap-hour-controls input[type=range]:focus-visible{outline:2px solid #a1d2f5;outline-offset:3px;border-radius:4px}
.fp-heatmap-hour-controls button:focus-visible{outline:2px solid #a1d2f5;outline-offset:2px}
.fp-heatmap-times{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 52px;font-size:10px;line-height:1.6;color:#9eb8cb;font-variant-numeric:tabular-nums}
.fp-heatmap-hint,.fp-heatmap-empty{font-size:12px;line-height:1.7;color:#b2c9da;margin:11px 0 0;overflow-wrap:anywhere}
.fp-heatmap-empty{color:#e1c294;border-left:2px solid #a3875f;padding-left:10px}.fp-heatmap-empty button{font:inherit;min-height:38px;margin-top:8px}
.fp-load-legend{margin:14px 0;color:#b1c6d5;font-size:12px;line-height:1.7;min-width:0}
.fp-load-legend>div:first-child{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px}
.fp-load-legend strong{color:#dcebf6;font-size:13px;font-weight:600}
.fp-load-scale{display:flex;flex-direction:column;gap:4px;width:min(100%,270px);min-width:180px;max-width:100%;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.fp-load-scale i{display:block;width:100%;height:10px;border:1px solid #d4e5f129;border-radius:4px}
.fp-load-scale-markers{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:#bfd1df;white-space:normal;font-size:11px;font-variant-numeric:tabular-nums}
.fp-load-scale-markers>span:first-child{text-align:left}.fp-load-scale-markers>span:last-child{text-align:right}
.fp-load-legend p{margin:8px 0 0}.fp-load-scale-note{font-size:11px;color:#9cb7ca;line-height:1.7}
.fp-load-warning{color:#e5c496!important;border-left:2px solid #b69261;padding:8px 11px;background:#ad89520b;line-height:1.7}
.fp-load-key{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;font-size:11px;color:#b4c8d7}
.fp-load-key>span{display:inline-flex;align-items:center;gap:7px}.fp-load-key i{display:inline-block;width:18px;height:12px;flex-shrink:0;border:1px solid #93a9bb55;border-radius:2px}
.fp-load-key .fp-load-no-result{background:repeating-linear-gradient(135deg,#8394a344 0px,#8394a344 1px,#303941 1px,#303941 5px)}
.fp-load-missing{font-size:11px;color:#a6becf;line-height:1.7}
.fp-heatmap-method{margin-top:8px;font-size:11px;color:#a9c0d1;line-height:1.7}.fp-heatmap-method>summary{box-sizing:border-box;min-height:32px;padding:6px 0;color:#c0d9eb;cursor:pointer;font-size:11px;font-weight:600}.fp-heatmap-method>summary::marker{color:#94c1e0}.fp-heatmap-method>summary:focus-visible{outline:2px solid #9bcdf0;outline-offset:2px;border-radius:3px}.fp-heatmap-method>p{margin:3px 0 0}
.fp-load-readout{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px;margin:0 0 11px;padding:10px 0;font-variant-numeric:tabular-nums;line-height:1.6;border-top:1px solid #97b1c124;border-bottom:1px solid #97b1c124}
.fp-load-readout strong{font-size:17px;font-weight:650;color:#e3f0f9}.fp-load-readout span{font-size:13px;color:#a9c5d8}.fp-load-readout small{flex-basis:100%;font-size:11px;color:#a8c0d1}
.fp-load-components{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:11px;color:#b5cbd9}.fp-load-components span{font-size:11px}
/* Color and text contrast come from the measured value, not selected/hover state. */
.fp-room.has-load .fp-selection{stroke:#f2f8ff;stroke-width:2.1;filter:drop-shadow(0 0 1px #172733)}
.fp-room.has-load:focus-visible .fp-selection{stroke:#ffffff;stroke-width:3}
.fp-room.has-load .fp-wall.outside{stroke:var(--fp-heat-text,#d8e3eb);stroke-opacity:.8;stroke-width:1.8}
.fp-room.has-load .fp-wall.interior{stroke:var(--fp-heat-text,#a5b8c8);stroke-opacity:.68;stroke-width:1.15}
.fp-room.has-load .fp-window{stroke:#c8edff;stroke-width:4.2}
.fp-room.has-load .fp-neighbor-selection{stroke:#edf6ff;stroke-width:2;stroke-dasharray:4 3}
.fp-canvas.fp-heatmap .fp-shared,.fp-canvas.fp-heatmap .fp-window,.fp-canvas.fp-heatmap .fp-internal-window{filter:drop-shadow(0 0 1px #172733)}
@media(max-width:600px){
 .floor-plan .fp-plan-options>.fp-display-switch{flex:0 0 auto;width:auto;display:inline-flex;flex-wrap:nowrap;padding:2px;gap:2px}
 .floor-plan .fp-plan-options .fp-display-switch button{flex:0 0 auto;min-height:40px;font-size:12px;padding:7px 10px}
 .fp-heatmap-controls{padding:12px;margin-bottom:12px}.fp-heatmap-title{gap:6px;margin-bottom:10px;flex-wrap:wrap}.fp-heatmap-title h3{font-size:14px}.fp-heatmap-settings{grid-template-columns:1fr;gap:10px}
 .fp-heatmap-settings label{font-size:12px}.fp-heatmap-settings select{font-size:16px;min-height:44px;padding:9px 10px}
 .fp-heatmap-hour-controls{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.fp-heatmap-hour-controls button{width:44px;min-width:44px;min-height:44px}.fp-heatmap-hour-controls input[type=range]{height:44px;min-height:44px}
 .fp-heatmap-times{margin:0 52px;font-size:9px;gap:3px}.fp-heatmap-hour-label{font-size:12px}
 .fp-heatmap-hint,.fp-heatmap-empty{font-size:11px;line-height:1.7}.fp-load-readout{gap:2px 9px;margin-bottom:10px;padding:8px 0}.fp-load-readout strong{font-size:16px}.fp-load-readout span{font-size:12px}.fp-load-readout small{font-size:11px}
 .fp-load-legend{font-size:11px}.fp-load-legend>div:first-child{align-items:stretch;gap:9px}.fp-load-legend strong{font-size:12px}.fp-load-scale{flex-basis:100%;width:100%;min-width:0}.fp-load-scale-markers{font-size:10px}.fp-load-legend .fp-load-warning{font-size:11px}
 .fp-heatmap-method>summary{min-height:44px;display:list-item;align-content:center;padding:10px 0}
}
@media(max-width:400px){.fp-heatmap-times>span:nth-child(2),.fp-heatmap-times>span:nth-child(4){display:none}}
@media print{.fp-display-switch,.fp-heatmap-controls{display:none!important}.fp-load-legend{break-inside:avoid}.fp-load-readout,.fp-load-legend strong{color:#20384a}}
