.btc-heatmap{margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text)}.btc-heatmap h2{font-size:20px;margin:3px 0 8px}.btc-heatmap .heat-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--muted)}.heat-controls{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.heat-controls button{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:7px;padding:10px 16px;cursor:pointer}.heat-controls button[aria-pressed=true]{background:#098c7c;color:#fff;border-color:#098c7c}.heat-controls button:focus-visible{outline:3px solid #35c8b1;outline-offset:2px}.heat-controls .heat-refresh{margin-left:auto}.heat-chart{position:relative;width:100%}.heat-chart canvas{display:block;width:100%;height:480px;touch-action:pan-y}.heat-tooltip{position:absolute;pointer-events:none;max-width:240px;padding:9px 12px;background:#102d2deb;color:#fff;border-radius:7px;font-size:12px;white-space:pre-line;z-index:2}.heat-status,.heat-caption{font-size:12px;line-height:1.6;color:var(--muted)}.heat-status[data-error=true]{color:var(--red)}.heat-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;margin-top:10px}.heat-legend span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;background:#439b71}.heat-legend span:nth-child(2):before{background:#d65a55}.heat-legend span:nth-child(3):before{width:65px;background:linear-gradient(90deg,#1a0b34,#345f8d,#36b778,#ffe635)}.heat-summary{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;margin:12px 0}.heat-summary b{color:var(--text)}.heat-caption a{color:var(--blue)}@media(max-width:600px){.btc-heatmap{padding:13px}.heat-chart canvas{height:370px}.heat-controls button{padding:9px 11px}.heat-controls .heat-refresh{margin-left:0}.heat-summary{gap:8px}}

.heat-symbol-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;margin-top:16px}.heat-symbol{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:10px 34px 10px 12px;cursor:pointer}.heat-symbol:focus-visible{outline:3px solid #098c7c;outline-offset:2px}

.heat-band-strip{position:absolute;inset:0;pointer-events:none}.heat-band-label{position:absolute;min-width:0;padding:5px 8px;border:1px solid #7ec8ab80;border-radius:5px;background:#0d171ed9;color:var(--text);font:10px/1.4 Arial,Helvetica,sans-serif}.heat-band-label strong,.heat-band-label span{display:block;overflow-wrap:anywhere}.heat-band-label strong{color:var(--green);font-size:11px}.heat-band-long{border-color:#db939080}.heat-band-long strong{color:var(--red)}.heat-band-label[hidden]{display:none}.heat-labels-below .heat-band-strip{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.heat-labels-below .heat-band-label{position:static;width:auto!important}@media(max-width:639px){.heat-band-strip,.heat-labels-below .heat-band-strip{position:static;display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0}.heat-band-label{position:static;width:auto!important}}

.heat-status[data-stale=true]{color:var(--amber)}.heat-zoom-readout{align-self:center;padding:0 8px;color:var(--muted);font:12px monospace}.heat-chart canvas:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.heat-price-axis{position:absolute;right:0;top:12px;width:63px;height:436px;cursor:ns-resize;touch-action:none;user-select:none;z-index:1}.heat-price-axis:hover,.heat-price-axis.is-dragging{background:#82b4e80b}.heat-price-axis:focus-visible{outline:1px solid var(--blue);outline-offset:1px}

.heat-markets,.heat-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0;font-size:12px}.heat-markets>span{font-weight:600;margin-right:4px}.heat-markets button,.heat-fullscreen{padding:9px 15px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);cursor:pointer}.heat-markets button[aria-pressed=true]{background:#098c7c;border-color:#35c8b1;color:white}.heat-tools label{display:flex;align-items:center;gap:10px;color:var(--muted)}.heat-intensity{width:110px;accent-color:#098c7c}.heat-fullscreen{margin-left:auto}.heat-markets button:focus-visible,.heat-fullscreen:focus-visible{outline:2px solid #35c8b1;outline-offset:3px}
.heat-chart canvas{cursor:crosshair;touch-action:none}.heat-chart canvas.is-panning{cursor:grabbing}.heat-current-price{position:absolute;right:0;min-width:63px;box-sizing:border-box;padding:4px 3px;text-align:center;background:#126452;color:#fff;border:1px solid #65d7b5;border-radius:3px;font:600 10px/14px system-ui;pointer-events:none;z-index:1}.heat-current-price[hidden]{display:none}
.heat-band-label{padding:0;background:#0d171ef5;border:1.5px solid #65d7b5;box-shadow:0 2px 8px #0006}.heat-band-long{border-color:#f17d83}.heat-band-label strong{padding:6px 8px}.heat-band-label span{padding:5px 8px;border-top:1px solid #65d7b599;font-weight:600;font-size:11px}.heat-band-long span{border-color:#f17d8399}.heat-band-label small{display:block;padding:0 8px 5px;color:var(--muted);font-size:10px}.heat-tooltip{background:#0d171ef5;border:1px solid #80b9c9;box-shadow:0 2px 8px #0006}
.btc-heatmap.heat-expanded{position:fixed;inset:0;z-index:1000;overflow:auto;margin:0;border-radius:0;background:var(--panel,#101820);box-sizing:border-box}.btc-heatmap.heat-expanded .heat-chart canvas{height:max(370px,calc(100dvh - 330px))}.btc-heatmap:fullscreen{width:100%;height:100%}
.heat-chart{user-select:none}.heat-status[title]{cursor:help}

.heat-band-label{border-radius:3px;--band-color:#65d7b5;--band-fill:#122d27;background:var(--band-fill);color:var(--band-color);border-color:var(--band-color);text-align:center}.heat-band-long{--band-color:#f17d83;--band-fill:#301d24}.heat-band-label strong{padding:6px 8px;font-size:13px;color:var(--band-color)}.heat-band-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--band-color);border-bottom:1px solid var(--band-color)}.heat-band-label .heat-band-prices span{padding:7px 4px;border:0;font-size:14px;font-weight:700;color:var(--band-color);white-space:nowrap;overflow-wrap:normal}.heat-band-label .heat-band-prices span+span{border-left:1px solid var(--band-color)}.heat-band-label small{padding:5px 6px;font-size:12px;font-weight:600;color:var(--band-color)}
.heat-band-label strong{padding:3px 4px;font-size:10px}.heat-band-label .heat-band-prices span{padding:3px 2px;font-size:11px}.heat-band-label small{padding:2px 4px;font-size:10px}
.heat-chart canvas.heat-crosshair{position:absolute;inset:0 auto auto 0;pointer-events:none}
.heat-status{font-size:10px;line-height:1.4;margin:3px 0 7px;opacity:.8}.heat-status[data-error=true]{font-size:12px;opacity:1}

/* Compact controls and readable snapshot state. */
.heat-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0 8px}.heat-toolbar .heat-markets{margin:0}.heat-toolbar .heat-controls{flex:1;margin:0}.heat-tools{position:relative;margin:8px 0 12px}.heat-display-controls{display:flex;gap:8px;margin-left:auto}.heat-display-controls button{padding:9px 15px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);cursor:pointer}.heat-display-controls button:focus-visible{outline:2px solid #35c8b1;outline-offset:3px}.heat-levels[aria-pressed=true]{border-color:#35c8b1}.heat-help{position:static;color:var(--muted)}.heat-help summary{cursor:pointer;padding:8px}.heat-help[open] .heat-caption{position:absolute;top:100%;left:0;right:0;width:auto;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:7px;box-shadow:0 3px 12px #0006;z-index:5;margin:0}.heat-status{font-size:12px;line-height:1.6;opacity:1;margin:6px 0 8px}.heat-status[data-stale=true]{font-weight:600}.heat-current-price{white-space:pre-line;font-size:10px;line-height:13px;padding:3px}.heat-fullscreen{margin-left:0}@media(max-width:639px){.heat-toolbar{gap:10px}.heat-toolbar .heat-controls{flex-basis:100%}.heat-tools{gap:6px}.heat-display-controls{margin-left:auto}}

.heat-levels-hidden .heat-band-strip{display:none}.heat-band-label{pointer-events:auto}
