.map-layer-controls {flex:0 0 auto;min-width:0;}
.map-layer-controls .segmented button {white-space:nowrap;}
[data-heat-toggle]>span {display:inline-block;margin-left:7px;color:var(--accent-soft);transition:transform .18s ease;}
[data-heat-toggle][aria-expanded="true"]>span {transform:rotate(90deg);}
.map-heat-menu {position:absolute;inset:0 0 0 auto;z-index:25;display:flex;flex-direction:column;width:min(280px,100%);max-height:100%;background:var(--bg);border-left:2px solid var(--accent-soft);box-shadow:-12px 0 30px #0005;animation:heat-menu-slide .2s ease-out;}
.map-heat-menu[hidden] {display:none;}
.map-heat-menu>header {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);}
.map-heat-menu>header strong {font-family:var(--display);font-size:20px;letter-spacing:1px;text-transform:uppercase;}
.map-heat-menu>header button {background:transparent;border:0;color:var(--muted);font-size:24px;min-width:36px;min-height:36px;}
.map-heat-menu [role="menu"] {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:7px 12px;}
.map-heat-menu [role="menuitemradio"] {display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:36px;background:transparent;border:0;border-bottom:1px solid var(--line-soft);padding:8px 5px;color:var(--paper);font-family:var(--display);font-size:14px;text-align:left;}
.map-heat-menu [role="menuitemradio"]>span {color:var(--muted);font-size:11px;}
.map-heat-menu [role="menuitemradio"]:is(:hover,:focus-visible),.map-heat-menu [aria-checked="true"] {background:var(--panel);color:var(--accent-soft);}
.map-heat-menu [role="menuitemradio"]:focus-visible {outline-offset:-2px;}
@keyframes heat-menu-slide {from {transform:translateX(100%);opacity:.5;} to {transform:translateX(0);opacity:1;}}
.map-metric-legend {flex:1 0 100%;min-width:0;}
.map-metric-caption {display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:3px 14px;min-height:20px;}
.map-metric-caption strong {font-family:var(--display);font-size:12px;letter-spacing:.7px;}
.map-metric-caption output {font-size:10px;color:var(--paper);min-height:15px;}
.map-gradient {height:9px;width:100%;margin-top:3px;}
.map-gradient-ticks {display:flex;justify-content:space-between;font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;}
.map-gradient-bands {display:grid;grid-template-columns:repeat(var(--band-count),minmax(0,1fr));gap:4px 12px;margin-top:5px;}
.map-gradient-bands>span {display:flex;flex-wrap:wrap;gap:3px 5px;align-items:center;color:var(--muted);font-size:10px;letter-spacing:0;}
.map-gradient-bands b {font-weight:400;color:var(--paper);font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.map-gradient-bands i {width:8px;height:8px;border:0;flex:none;}
@media(max-width:1100px) {
  .map-toolbar {flex-wrap:wrap;align-items:flex-start;}
  .map-toolbar .map-controls {flex:1;flex-wrap:wrap;align-items:flex-start;}
  .map-gradient-bands {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px) {
  .map-toolbar .map-controls {width:100%;flex-basis:100%;justify-content:space-between;}
  .map-controls .map-regions {flex:1;}
  .map-heat-menu [role="menuitemradio"],.map-heat-menu>header button {min-height:44px;}
  .view-world .map-legend {max-height:155px;flex-shrink:0;}
  .map-metric-caption output {width:100%;}
  .map-gradient-bands {gap:4px 7px;}
}
