/* Heatmap layout and 3D controls use the shared module theme. */
#heatmap-module{--atlas-ink:var(--bs-body-color,#697a8d);--atlas-muted:#8592a3;--atlas-line:#d9dee3;--atlas-paper:#fff;--atlas-field:#fff;--atlas-accent:var(--bs-primary,#696cff);color:var(--atlas-ink)}






.heatmap-explorer{overflow:visible}
.heatmap-toolbar{padding:0 0 18px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:0;position:relative;z-index:10}
.heatmap-filters,.heatmap-toolbar-actions{display:flex;align-items:center;gap:20px}
.heatmap-field{display:flex;align-items:center;gap:12px}.heatmap-field label{font-size:13px;color:var(--atlas-muted);margin:0}
.heatmap-field select{min-width:150px;cursor:pointer}.heatmap-field-year select{min-width:75px}
.heatmap-view-switch{display:flex;gap:0}
#export-map button>span{margin-left:12px}
#export-map .map-export-menu{position:absolute;right:0;top:100%;min-width:155px;background:var(--atlas-paper)!important;border:1px solid var(--atlas-line)!important;border-radius:6px!important;box-shadow:0 10px 28px #20252212!important;padding:5px;z-index:30}
#export-map .map-export-menu button{display:block;width:100%;text-align:left;padding:9px 12px;font-weight:400;border-radius:3px}#export-map .map-export-menu button:hover{background:var(--atlas-field)}#export-map .d-none{display:none}
.heatmap-wrap{position:relative}#map{position:relative;z-index:1;height:620px;background:var(--atlas-field)}#map[hidden],#map-3d[hidden],#map-3d-stage[hidden]{display:none!important}#map-3d{height:100%;width:100%}
.heatmap-loading{position:absolute;inset:0;display:grid;place-items:center;background:#ffffffb8;z-index:8}.heatmap-loading.hidden{display:none}.heatmap-loading-box{display:flex;align-items:center;gap:12px;padding:13px 18px;border:1px solid var(--atlas-line);background:var(--atlas-paper);border-radius:6px;font-size:12px;color:var(--atlas-ink)}.heatmap-spinner{width:15px;height:15px;border:2px solid #d5d8ce;border-top-color:var(--atlas-accent);border-radius:50%;animation:hm3d-spin .8s linear infinite}
.heatmap-explorer-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--atlas-line);padding:13px 24px;font-size:10px;line-height:1.7;color:var(--atlas-muted)}.heatmap-explorer-footer>span:first-child{flex:none}.heatmap-explorer-footer>span:last-child{text-align:right}
.heatmap-trends{margin-top:24px;scroll-margin-top:90px}.heatmap-trends-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px}.heatmap-trends-heading h2{font-size:21px;font-weight:500;letter-spacing:-.5px;margin:8px 0 0;color:var(--atlas-ink)}.heatmap-trends-heading p{font-size:11px;line-height:1.7;max-width:240px;margin:0;color:var(--atlas-muted)}
.heatmap-trend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.heatmap-trend{padding:24px 20px 12px;min-width:0}.heatmap-trend-heading{display:flex;justify-content:space-between;gap:14px;align-items:start}.heatmap-index{font-size:9px;letter-spacing:.12em;color:var(--atlas-muted)}.heatmap-trend h3{font-size:16px;margin:9px 0;color:var(--atlas-ink);font-weight:600}.heatmap-trend-year{font-size:11px;color:var(--atlas-muted)}.heatmap-trend-region{font-size:11px;color:var(--atlas-muted);margin:0}.heatmap-trend-canvas{height:265px;width:100%}
.hm3d-stage{--hm-bg:#fff;--hm-card:#fff;--hm-text:var(--bs-heading-color,#566a7f);--hm-muted:var(--bs-body-color,#697a8d);--hm-accent:var(--bs-primary,#696cff);--hm-tint:#ededff;--hm-line:#d9dee3;position:relative;padding:30px;background:var(--hm-bg);color:var(--hm-text);overflow:hidden;font-family:inherit;font-variant-numeric:tabular-nums}
.hm3d-heading{position:relative;z-index:2;max-width:410px;pointer-events:none}.hm3d-pill{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--hm-muted);text-transform:uppercase;padding:0;background:none;border-radius:0}.hm3d-heading h2{font-family:inherit;font-size:32px;font-weight:600;letter-spacing:normal;line-height:1.05;margin:13px 0;color:var(--hm-text)}.hm3d-heading p{max-width:330px;font-size:12px;line-height:1.8;color:var(--hm-muted);margin:0}
.hm3d-summary{position:absolute;right:32px;top:32px;max-width:300px;display:flex;flex-direction:column;gap:7px;text-align:right;z-index:2}.hm3d-summary span{font-size:10px;color:var(--hm-muted)}.hm3d-summary strong{font-size:25px;font-weight:500;letter-spacing:-.7px;color:var(--hm-text)}.hm3d-summary small{font-size:10px;color:var(--hm-muted)}
.hm3d-canvas{position:relative;height:440px;margin:0;z-index:1;view-transition-name:heatmap-scene;overflow-anchor:none}.hm3d-canvas #map-3d{height:100%;width:100%}
.hm3d-bottom{display:grid;grid-template-columns:minmax(275px,1fr) minmax(100px,.65fr) minmax(275px,1fr);gap:28px;align-items:end;position:relative;z-index:2}.hm3d-card{background:var(--hm-card);border:1px solid var(--hm-line);border-radius:8px;padding:20px;min-width:0;box-shadow:0 2px 6px 0 #4359711f}.hm3d-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.hm3d-card h3{font-size:15px;font-weight:600;color:inherit;margin:0}.hm3d-card-heading>span{font-size:10px;color:var(--hm-muted)}
.hm3d-row{display:grid;grid-template-columns:19px minmax(0,1fr) auto;gap:4px 10px;width:100%;padding:8px 0;text-align:left;border:0;border-bottom:1px solid var(--hm-line);border-radius:0;background:transparent;color:var(--hm-text);font-family:inherit;cursor:pointer}.hm3d-row:last-child{border-bottom:0}.hm3d-number{font-size:10px;font-weight:500;color:var(--hm-muted);grid-row:span 2;align-self:center;display:grid;place-items:center;min-width:18px;height:20px}.hm3d-row-name{font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}.hm3d-row-value{font-size:10px;font-weight:500;align-self:center}.hm3d-bar{grid-column:2/4;height:2px;background:var(--hm-line);overflow:hidden;border-radius:0}.hm3d-bar i{display:block;height:100%;background:#9ba29a}.hm3d-row[aria-pressed=true] .hm3d-row-name,.hm3d-row[aria-pressed=true] .hm3d-number{color:var(--hm-accent)}.hm3d-row[aria-pressed=true] .hm3d-bar i{background:var(--hm-accent)}.hm3d-row:hover{color:var(--hm-accent)}
.hm3d-note{font-size:10px;line-height:1.8;color:var(--hm-muted);text-align:center;margin:0 0 3px}.hm3d-eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--hm-muted)}.hm3d-selection h3{font-size:24px;letter-spacing:-.6px;line-height:1.15;margin:10px 0}.hm3d-value{display:block;font-size:23px;letter-spacing:-.5px;color:var(--hm-accent);font-weight:500;overflow-wrap:anywhere}.hm3d-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0;padding:13px 0;border-top:1px solid var(--hm-line)}.hm3d-facts div{display:flex;flex-direction:column;gap:7px}.hm3d-facts span{font-size:10px;color:var(--hm-muted)}.hm3d-facts b{font-size:16px;font-weight:500;overflow-wrap:anywhere}.hm3d-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:5px;background:var(--bs-primary,#696cff);color:#fff;padding:13px 14px;font-family:inherit;font-size:11px;font-weight:500;cursor:pointer}.hm3d-detail:hover{filter:brightness(.95);color:#fff}.hm3d-detail:disabled{opacity:.4;cursor:default}
.hm3d-tools{display:flex;justify-content:center;align-items:center;gap:16px;position:relative;z-index:3;font-size:10px;color:var(--hm-muted);margin:16px 0}.hm3d-tools button{border:1px solid var(--hm-line);border-radius:5px;padding:8px 11px;background:var(--hm-bg);color:var(--hm-muted);font-family:inherit;font-size:10px;cursor:pointer}.hm3d-tools button:hover{color:var(--hm-text)}
.hm3d-sector-header[hidden],.hm3d-sector-list[hidden],.hm3d-sector-detail[hidden]{display:none!important}.hm3d-drilldown{display:grid;grid-template-columns:minmax(0,1fr) minmax(295px,31%);grid-template-areas:'heading sectors' 'canvas sectors' 'tools sectors' 'detail sectors';gap:16px 28px;align-items:start}.hm3d-drilldown>.hm3d-heading,.hm3d-drilldown>.hm3d-summary,.hm3d-drilldown>.hm3d-bottom{display:none}.hm3d-sector-header{grid-area:heading}.hm3d-sector-header>button{display:block;font-family:inherit;font-size:11px;background:none;border:0;color:var(--hm-muted);padding:0;margin:0 0 23px;cursor:pointer}.hm3d-sector-header>button:hover{color:var(--hm-accent)}.hm3d-sector-header h2{font-family:inherit;font-weight:600;font-size:30px;letter-spacing:normal;color:var(--hm-text);margin:10px 0;line-height:1.15}.hm3d-sector-header p{font-size:11px;line-height:1.8;max-width:390px;color:var(--hm-muted);margin:0}.hm3d-drilldown>.hm3d-canvas{grid-area:canvas;height:450px;margin:0}.hm3d-drilldown>.hm3d-tools{grid-area:tools;margin:0}.hm3d-drilldown>.hm3d-tools span{font-size:0}.hm3d-drilldown>.hm3d-tools span:after{content:'Geser untuk memutar · Pilih miniatur untuk melihat sektor';font-size:10px}
.hm3d-sector-list{grid-area:sectors;display:flex;flex-direction:column;max-height:950px;overflow:hidden;align-self:stretch}.hm3d-sector-list>.hm3d-card-heading{flex:none;margin-bottom:4px;padding-bottom:12px;border-bottom:1px solid var(--hm-line)}#map-3d-sector-status{font-size:10px;line-height:1.7;color:var(--hm-muted);margin:8px 0 12px}#map-3d-sector-list{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c2c7bd transparent;flex:1}.hm3d-sector-list .hm3d-note{text-align:left;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--hm-line);font-size:9px}
.hm3d-sector-row{display:grid;grid-template-columns:18px minmax(0,1fr);gap:5px 9px;text-align:left;background:transparent;color:var(--hm-text);border:0;border-bottom:1px solid var(--hm-line);border-radius:0;padding:10px 0;width:100%;font-family:inherit;cursor:pointer}.hm3d-sector-row .hm3d-number{grid-row:span 3}.hm3d-sector-label{font-size:11px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}.hm3d-sector-amount{grid-column:2;font-size:10px;color:var(--hm-muted)}.hm3d-sector-row .hm3d-bar{grid-column:2}.hm3d-sector-row:hover .hm3d-sector-label,.hm3d-sector-row[aria-pressed=true] .hm3d-sector-label,.hm3d-sector-row[aria-pressed=true] .hm3d-number{color:var(--hm-accent)}.hm3d-sector-row[aria-pressed=true] .hm3d-bar i{background:var(--hm-accent)}.hm3d-sector-detail{grid-area:detail}.hm3d-sector-detail h3{font-size:20px;letter-spacing:-.4px;line-height:1.3;margin:9px 0}.hm3d-sector-detail .hm3d-facts{margin:12px 0}.hm3d-sector-metrics{display:flex;gap:18px;flex-wrap:wrap;font-size:10px;color:var(--hm-muted)}.hm3d-sector-metrics b{display:block;font-size:12px;font-weight:500;color:var(--hm-text);margin-top:5px}
.hm3d-diorama{position:absolute;inset:0;min-width:0;overflow:hidden}.hm3d-diorama[hidden]{display:none!important}.hm3d-diorama canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}.hm3d-diorama canvas:focus-visible{outline:2px solid var(--hm-accent);outline-offset:-4px}.hm3d-scene-tooltip,.hm3d-selected-callout{position:absolute;max-width:210px;border-radius:6px;background:var(--hm-accent);color:#fff;font-size:10px;font-weight:500;line-height:1.5;padding:9px 12px;pointer-events:none;z-index:3}.hm3d-selected-callout{transform:translate(-50%,-100%);width:max-content;text-align:center}.hm3d-selected-callout strong{display:block;font-size:16px;font-weight:500;line-height:1.5}.hm3d-selected-callout:after{content:'';position:absolute;bottom:-6px;left:calc(50% - 6px);border-inline:6px solid transparent;border-top:7px solid var(--hm-accent)}.hm3d-selected-callout[hidden]{display:none}.hm3d-diorama-controls{display:flex;gap:4px;position:absolute;right:8px;bottom:8px;z-index:3}.hm3d-diorama-controls button{width:30px;height:30px;font-size:18px;background:var(--hm-card);border:1px solid var(--hm-line);border-radius:4px;color:var(--hm-text);cursor:pointer}
.hm3d-stage button:focus-visible,#heatmap-module button:focus-visible,#heatmap-module select:focus-visible,#heatmap-module a:focus-visible{outline:2px solid var(--bs-primary,#696cff);outline-offset:3px;box-shadow:none}
.hm3d-stage .maplibregl-ctrl-group{box-shadow:none;border:1px solid var(--hm-line);border-radius:5px;background:var(--hm-card)}.hm3d-stage .maplibregl-ctrl-group button{width:29px;height:29px}.hm3d-stage .maplibregl-popup-content{font-family:inherit;border:1px solid var(--hm-line);border-radius:5px;padding:10px 12px;background:var(--hm-card);color:var(--hm-text);box-shadow:0 5px 20px #20252212;font-size:11px}
.hm3d-opening>.hm3d-heading,.hm3d-opening>.hm3d-summary,.hm3d-opening>.hm3d-bottom{opacity:.3;transition:opacity .35s;pointer-events:none}.hm3d-opening .hm3d-detail{cursor:progress}.hm3d-opening .hm3d-detail:after{content:'';width:12px;height:12px;border:2px solid #fff6;border-top-color:white;border-radius:50%;animation:hm3d-spin .7s linear infinite}
.hm3d-stage:not(.hm3d-drilldown)>.hm3d-heading,.hm3d-drilldown>.hm3d-sector-header{view-transition-name:heatmap-heading}.hm3d-stage:not(.hm3d-drilldown) .hm3d-selection,.hm3d-drilldown>.hm3d-sector-list{view-transition-name:heatmap-panel}::view-transition-group(heatmap-scene),::view-transition-group(heatmap-heading),::view-transition-group(heatmap-panel){animation-duration:700ms;animation-timing-function:cubic-bezier(.22,.61,.36,1)}::view-transition-old(heatmap-scene),::view-transition-new(heatmap-scene){height:100%;width:100%;object-fit:fill;animation-duration:700ms;mix-blend-mode:normal}html.hm3d-view-transition::view-transition-old(root){animation:none;opacity:0}html.hm3d-view-transition::view-transition-new(root){animation:none}
.leaflet-legend{background:#fff;padding:10px 12px;line-height:20px;border:1px solid #ddd;font-size:11px;border-radius:5px}.leaflet-legend i{display:inline-block;width:10px;height:10px;margin-right:7px}.kabkot-hover{border:0!important;border-radius:5px!important;padding:10px 12px!important;background:#252a28!important;color:white!important}.kabkot-tooltip{display:flex;align-items:center;gap:10px}.kabkot-logo{width:30px;height:30px;object-fit:contain;background:#fff}.kabkot-tooltip-title{font-size:12px;font-weight:600}.kabkot-tooltip-value{font-size:11px;margin-top:4px}
@keyframes hm3d-spin{to{transform:rotate(360deg)}}
@media(min-width:1050px){.hm3d-stage:not(.hm3d-drilldown){height:clamp(740px,calc(100vh - 170px),860px)}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-heading{position:absolute;left:32px;top:32px}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-canvas{position:absolute;inset:155px 14px 185px;height:auto}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-tools{position:absolute;bottom:250px;left:35%;right:35%;margin:0}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-tools>span{display:none}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-bottom{position:absolute;bottom:28px;left:28px;right:28px}}
@media(max-width:1049px){.heatmap-page{padding-inline:18px!important}.hm3d-bottom{grid-template-columns:1fr 1fr;gap:18px}.hm3d-bottom>.hm3d-note{grid-column:1/-1;grid-row:2}.hm3d-stage{padding:24px}.hm3d-heading{max-width:60%}.hm3d-heading h2{font-size:30px}.hm3d-summary{right:24px;top:25px;max-width:32%}.hm3d-summary strong{font-size:21px}.hm3d-drilldown{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.hm3d-drilldown>.hm3d-canvas{height:370px}.heatmap-trend-grid{gap:12px}.heatmap-trend{padding:18px 14px}}
@media(max-width:800px){.heatmap-toolbar{padding:12px 16px;gap:10px}.heatmap-filters{gap:12px}.heatmap-field{gap:6px}.heatmap-field label{display:none}.heatmap-toolbar-actions{gap:10px}.heatmap-explorer-footer{padding:12px 16px;flex-direction:column;gap:4px}.heatmap-explorer-footer>span:last-child{text-align:left}.heatmap-trends-heading{align-items:start;flex-direction:column;gap:12px}.heatmap-trends-heading p{max-width:none}.heatmap-trend-grid{grid-template-columns:1fr}.heatmap-trend-canvas{height:250px}.hm3d-drilldown{grid-template-columns:1fr;grid-template-areas:'heading' 'canvas' 'tools' 'detail' 'sectors'}.hm3d-sector-list{max-height:none}.hm3d-drilldown>.hm3d-canvas{height:340px}.hm3d-sector-header h2{font-size:34px}}
@media(max-width:540px){.heatmap-page{padding-inline:12px!important}.heatmap-toolbar{flex-wrap:wrap}.heatmap-filters{justify-content:space-between;width:100%;border-bottom:1px solid var(--atlas-line);padding-bottom:7px}.heatmap-toolbar-actions{justify-content:space-between;width:100%}.heatmap-field select{min-width:130px}.heatmap-field-year select{min-width:70px}.hm3d-stage{padding:22px 16px}.hm3d-heading{max-width:none}.hm3d-heading h2{font-size:28px}.hm3d-heading p{font-size:11px}.hm3d-summary{position:static;max-width:none;flex-direction:row;flex-wrap:wrap;align-items:center;text-align:left;gap:8px 12px;margin-top:22px;border-block:1px solid var(--hm-line);padding:12px 0}.hm3d-summary span{width:100%;font-size:10px}.hm3d-summary strong{font-size:24px}.hm3d-canvas{height:300px}.hm3d-bottom{grid-template-columns:1fr}.hm3d-bottom>.hm3d-note{grid-row:3}.hm3d-selection{grid-row:1}.hm3d-card{padding:18px}.hm3d-tools span{display:none}.hm3d-drilldown>.hm3d-canvas{height:300px}.hm3d-selected-callout{max-width:155px;font-size:9px;padding:7px 10px}.hm3d-selected-callout strong{font-size:13px}.hm3d-scene-tooltip{max-width:160px;font-size:10px}#map{height:450px}.heatmap-explorer-footer>span:first-child{flex:initial}.heatmap-trends-heading h2{font-size:20px;max-width:280px}}
html.custom-dark-mode #heatmap-module{--atlas-ink:#e5e7eb;--atlas-muted:#94a3b8;--atlas-line:#334155;--atlas-paper:#111827;--atlas-field:#0f172a}html.custom-dark-mode .hm3d-stage{--hm-bg:#0f172a;--hm-card:#111827;--hm-text:#e5e7eb;--hm-muted:#94a3b8;--hm-line:#334155;--hm-tint:#292b50}html.custom-dark-mode .heatmap-loading{background:#0f172abb}html.custom-dark-mode .hm3d-stage .maplibregl-ctrl-icon{filter:invert(1)}html.custom-dark-mode .leaflet-legend{background:#111827;color:#e5e7eb;border-color:#334155}
@media(prefers-reduced-motion:reduce){.hm3d-opening .hm3d-detail:after,.heatmap-spinner{animation:none}.hm3d-opening>.hm3d-heading,.hm3d-opening>.hm3d-summary,.hm3d-opening>.hm3d-bottom{transition:none}}
/* Keep the diorama close to its heading instead of stretching rows to the sector list. */
.hm3d-drilldown{grid-template-rows:max-content 450px max-content 1fr}
@media(max-width:1049px){.hm3d-drilldown{grid-template-rows:max-content 370px max-content 1fr}}
@media(max-width:800px){.hm3d-drilldown{grid-template-rows:none}}
/* Give the overview its own space and keep region ranks tied to the map. */
.hm3d-map-rank{width:25px;height:25px;border:2px solid #fff;border-radius:50%;background:var(--bs-primary,#696cff);color:white;font:600 11px/1 inherit;box-shadow:0 2px 5px #0002;cursor:pointer;display:grid;place-items:center;padding:0}
.hm3d-drilldown .hm3d-map-rank,.hm3d-opening .hm3d-map-rank{visibility:hidden}
.hm3d-map-legend{display:flex;justify-content:center;align-items:center;gap:8px;font-size:10px;color:var(--hm-muted);margin:10px 0 0}
.hm3d-map-legend i{width:90px;height:7px;border-radius:3px;background:linear-gradient(90deg,#e4e4e2,#cececc,#afafac,#858582,#4b4b49)}
.hm3d-drilldown>.hm3d-map-legend{display:none}
@media(min-width:1050px){.hm3d-stage:not(.hm3d-drilldown){height:auto}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-heading{position:relative;left:auto;top:auto}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-canvas{position:relative;inset:auto;height:460px;margin-top:12px}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-tools{position:static;margin:12px 0}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-bottom{position:static;margin-top:20px}}
.hm3d-popup-facts,.hm3d-popup-action{display:block;font-size:10px;line-height:1.6;margin-top:6px;color:var(--hm-muted)}
.hm3d-popup-action{color:var(--hm-accent);border-top:1px solid var(--hm-line);padding-top:6px}
.hm3d-stage .maplibregl-popup-content strong{display:block;margin-bottom:4px}
.hm3d-stage .maplibregl-popup{max-width:260px!important;pointer-events:none}
@media(min-width:1050px){.hm3d-stage:not(.hm3d-drilldown)>.hm3d-canvas{height:520px;margin-top:0}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-bottom{margin-top:12px}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-heading p{max-width:450px;line-height:1.6}}
.hm3d-mobile-back{display:none}
@media(max-width:800px){.hm3d-mobile-back:not([hidden]){display:block;position:fixed;left:20px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:1050;padding:12px 16px;box-shadow:0 3px 12px #0002;font-size:12px}.hm3d-drilldown{padding-bottom:72px;scroll-margin-top:80px}.hm3d-map-legend{flex-wrap:wrap}}
.hm3d-popup-heading{display:flex;align-items:center;gap:10px}.hm3d-popup-logo{width:34px;height:40px;object-fit:contain;flex:none}.hm3d-stage[data-rise=waiting] .hm3d-map-rank,.hm3d-stage[data-rise=running] .hm3d-map-rank{visibility:hidden}
/* The same canvas keeps its size while the camera travels into a region. */
.hm3d-world-rank{position:absolute;transform:translate(-50%,-50%);z-index:3}
.hm3d-region-tooltip{background:var(--hm-card);color:var(--hm-text);border:1px solid var(--hm-line);box-shadow:0 4px 16px #0002;max-width:250px;min-width:200px}
.hm3d-region-tooltip strong{display:block;margin-bottom:4px}
.hm3d-drilldown{grid-template-columns:minmax(0,1fr) minmax(295px,35%);grid-template-areas:'heading heading' 'canvas canvas' 'tools tools' 'detail sectors';grid-template-rows:max-content 520px max-content auto}
.hm3d-drilldown>.hm3d-canvas{height:520px}.hm3d-drilldown>.hm3d-sector-list{max-height:480px}.hm3d-sector-detail{align-self:start}
.hm3d-drilldown>.hm3d-sector-header{min-height:122px}.hm3d-sector-header>button{margin-bottom:12px}
@media(max-width:1049px){.hm3d-drilldown{grid-template-rows:max-content 440px max-content auto}.hm3d-drilldown>.hm3d-canvas{height:440px}}
@media(max-width:800px){.hm3d-drilldown{grid-template-columns:1fr;grid-template-areas:'heading' 'canvas' 'tools' 'detail' 'sectors';grid-template-rows:none}.hm3d-drilldown>.hm3d-canvas{height:340px}.hm3d-drilldown>.hm3d-sector-list{max-height:none}}
@media(max-width:540px){.hm3d-drilldown>.hm3d-canvas{height:300px}}
/* Match the module theme while keeping the map as the main content. */
.hm3d-stage{padding:24px}.hm3d-heading h2{margin:10px 0}.hm3d-heading p{max-width:460px}.hm3d-summary{top:24px;right:24px}
.hm3d-map-legend i{background:linear-gradient(90deg,#c4c4cc,#aba9c9,#918cc7,#7770bd,#5b52a5)}
.hm3d-bottom{display:block}.hm3d-ranking{box-shadow:none;border:0;border-top:1px solid var(--hm-line);padding:18px 0 0}.hm3d-ranking .hm3d-card-heading{margin-bottom:12px}#map-3d-ranking{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.hm3d-ranking .hm3d-row{border-bottom:0}.hm3d-ranking .hm3d-row-name{white-space:normal;line-height:1.5;min-height:32px}.hm3d-ranking .hm3d-row-value{grid-column:2;grid-row:2}.hm3d-ranking .hm3d-bar{grid-row:3}.hm3d-bottom>.hm3d-note{margin:14px 0 0}
.hm3d-diorama-controls{right:14px;bottom:14px;gap:6px}.hm3d-diorama-controls button{width:34px;height:34px;border-radius:5px}.hm3d-tools>button{padding:8px 12px;font-size:11px;border-radius:5px}.hm3d-sector-header>button{display:inline-flex;padding:8px 12px;border:1px solid var(--hm-accent);border-radius:5px;color:var(--hm-accent);font-size:11px;margin-bottom:14px}.hm3d-sector-header .hm3d-pill{display:block}.hm3d-sector-header h2{font-size:28px}
@media(min-width:1050px){.hm3d-stage:not(.hm3d-drilldown)>.hm3d-canvas{height:550px;margin-top:-12px}.hm3d-drilldown{grid-template-columns:minmax(0,1fr) 310px;grid-template-areas:'heading sectors' 'canvas sectors' 'tools sectors' 'detail sectors';grid-template-rows:max-content 520px max-content auto;gap:16px 24px}.hm3d-drilldown>.hm3d-sector-list{max-height:850px;align-self:start;box-shadow:none}.hm3d-drilldown>.hm3d-sector-header{min-height:122px}.hm3d-sector-list .hm3d-sector-row{padding:9px 0}.hm3d-sector-detail{box-shadow:none}.hm3d-drilldown>.hm3d-tools{justify-content:flex-start}}
@media(max-width:1049px){#map-3d-ranking{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px}}
@media(max-width:800px){.hm3d-stage{padding:20px 16px}.hm3d-sector-header h2{font-size:26px}.hm3d-sector-list{box-shadow:none}.hm3d-drilldown{padding-bottom:72px}.hm3d-map-legend{font-size:10px;gap:6px}}
@media(max-width:540px){#map-3d-ranking{grid-template-columns:1fr;gap:0}.hm3d-ranking .hm3d-row{border-bottom:1px solid var(--hm-line)}.hm3d-ranking .hm3d-row-name{min-height:0}.hm3d-ranking .hm3d-row-value{grid-column:3;grid-row:1}.hm3d-ranking .hm3d-bar{grid-row:2}.hm3d-summary{gap:6px 10px}.hm3d-canvas{height:340px}}
/* Reserve panel space in the camera, without resizing the shared canvas after zoom. */
@media(min-width:1050px){.hm3d-stage>.hm3d-heading,.hm3d-drilldown>.hm3d-sector-header{height:140px;min-height:140px;max-width:calc(100% - 350px)}.hm3d-stage:not(.hm3d-drilldown)>.hm3d-canvas{margin-top:0;height:550px}.hm3d-drilldown{display:block;position:relative}.hm3d-drilldown>.hm3d-canvas{height:550px;margin:0}.hm3d-drilldown>.hm3d-sector-list{position:absolute;right:24px;top:24px;width:310px;height:740px;max-height:740px;z-index:4}.hm3d-drilldown>.hm3d-sector-detail{margin-top:16px;max-width:calc(100% - 334px)}.hm3d-drilldown>.hm3d-tools{margin:12px 0;justify-content:flex-start}.hm3d-drilldown .hm3d-diorama-controls{right:350px}}
@media(prefers-reduced-motion:no-preference){.hm3d-drilldown>.hm3d-sector-list{animation:hm3d-panel-in .22s ease-out}@keyframes hm3d-panel-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:1049px){.hm3d-drilldown{row-gap:0}.hm3d-drilldown>.hm3d-sector-header{height:var(--hm-header-space,140px);min-height:0}.hm3d-drilldown>.hm3d-tools{margin:12px 0}.hm3d-drilldown>.hm3d-sector-detail,.hm3d-drilldown>.hm3d-sector-list{margin-top:16px}}
@media(min-width:541px) and (max-width:800px){.hm3d-stage>.hm3d-canvas,.hm3d-drilldown>.hm3d-canvas{height:400px}}
@media(max-width:540px){.hm3d-drilldown>.hm3d-canvas{height:340px}}
/* Detail highlights follow the current indicator palette. */
.hm3d-map-rank{background:var(--hm-accent,var(--bs-primary,#696cff))}.hm3d-sector-header>button:hover{background:var(--hm-tint);border-color:var(--hm-accent);color:var(--hm-accent)}.hm3d-sector-row:focus-visible,.hm3d-diorama canvas:focus-visible{outline-color:var(--hm-accent)}
.hm3d-open-status{position:absolute;top:12px;left:12px;right:12px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:440px;padding:10px 12px;border:1px solid var(--hm-line);border-radius:5px;background:var(--hm-card);color:var(--hm-text);font-size:12px;box-shadow:0 3px 12px #0001}.hm3d-open-status[hidden],.hm3d-retry[hidden]{display:none!important}.hm3d-open-status>span:before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid var(--hm-line);border-top-color:var(--hm-accent);border-radius:50%;animation:hm3d-spin .7s linear infinite;vertical-align:-2px}.hm3d-retry{color:var(--hm-accent);border-color:var(--hm-accent);margin:8px 0}.hm3d-sector-row.is-previewed{background:var(--hm-tint);border-radius:4px}.hm3d-sector-row.is-previewed .hm3d-sector-label{color:var(--bs-primary,#696cff)}.hm3d-selected-callout[data-preview=true]{background:var(--bs-primary,#696cff)}.hm3d-selected-callout[data-preview=true]:after{border-top-color:var(--bs-primary,#696cff)}
@media(pointer:coarse){.hm3d-sector-row{min-height:48px}.hm3d-diorama-controls button{width:44px;height:44px}.hm3d-diorama canvas{touch-action:pan-y}}
@media(prefers-reduced-motion:reduce){.hm3d-open-status>span:before{animation:none}}
/* A compact status with a clear region name, separate from map controls. */
.hm3d-open-status{top:auto;bottom:14px;left:50%;right:auto;transform:translateX(-50%);width:min(420px,calc(100% - 32px));max-width:none;gap:12px;padding:12px 14px;border-radius:6px;box-shadow:0 2px 8px #0000000d}.hm3d-open-status>.heatmap-spinner{width:16px;height:16px;flex:0 0 16px;border-color:var(--hm-line);border-top-color:var(--hm-accent);margin:0}.hm3d-open-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.5}.hm3d-open-copy strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.hm3d-open-copy>span{font-size:11px;color:var(--hm-muted)}.hm3d-open-cancel{flex:none;min-height:36px;padding:6px 8px;font-size:11px;color:var(--hm-muted);text-decoration:none}.hm3d-open-cancel:hover{color:var(--hm-text);background:var(--hm-tint)}.hm3d-opening>.hm3d-heading,.hm3d-opening>.hm3d-summary,.hm3d-opening>.hm3d-bottom{opacity:1}.hm3d-open-status>span:before{content:none}.heatmap-loading-box{padding:14px 18px;border-radius:6px;box-shadow:0 2px 8px #0000000d}.heatmap-spinner{border-top-color:var(--atlas-accent,var(--bs-primary,#696cff))}
.hm3d-sector-row.is-previewed .hm3d-sector-label{color:var(--hm-accent)}.hm3d-selected-callout[data-preview=true]{background:var(--hm-accent)}.hm3d-selected-callout[data-preview=true]:after{border-top-color:var(--hm-accent)}
@media(max-width:540px){.hm3d-open-status{bottom:66px;width:calc(100% - 24px);padding:10px 12px}.hm3d-open-cancel{min-width:44px;min-height:44px}}
.hm3d-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:11px;color:var(--hm-muted)}.hm3d-pagination .pagination{display:flex;list-style:none;padding:0;gap:4px}.hm3d-pagination .page-link{min-width:32px;min-height:32px;font-size:11px;border-radius:4px}.hm3d-pagination .page-link:focus-visible{outline:2px solid var(--hm-accent);outline-offset:2px}#map-3d-ranking{min-height:100px}
@media(min-width:541px) and (max-width:1049px){#map-3d-ranking{min-height:180px}}
@media(max-width:540px){.hm3d-pagination{flex-direction:column;align-items:flex-start}.hm3d-pagination .page-link{min-width:34px;min-height:36px}#map-3d-ranking{min-height:280px}}
