.statistics-link{display:flex;align-items:center;gap:7px;padding:4px 8px;min-height:24px;border:1px solid #555762;background:transparent;color:#fff;font:inherit;white-space:nowrap;cursor:pointer}
.statistics-link svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
.statistics-link:hover,.statistics-link[aria-current=page]{color:#f47732;border-color:#f47732}
.statistics-link:focus-visible,.statistics-panel button:focus-visible,.statistics-panel select:focus-visible{outline:2px solid #f47732;outline-offset:2px}
#statisticsView.active{position:fixed;inset:var(--header-height,94px) 0 var(--status-height,28px) var(--workspace-left,84px);display:grid;grid-template-columns:310px minmax(0,1fr);padding:0;overflow:hidden;background:#19191d}
.statistics-panel{padding:24px;overflow-y:auto;border-right:1px solid #555762;z-index:2;background:#19191d}
.statistics-panel h1{font:500 24px/1.2 var(--sans);margin:12px 0 16px;color:#fff}
.statistics-panel>p{font-size:12px;line-height:1.6;color:#c5c5ca}
.statistics-panel label{display:grid;gap:8px;margin:18px 0;font-size:12px;color:#fff}
.statistics-panel select{width:100%;min-width:0;font-size:12px}
.statistics-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0;padding:18px 0;border-block:1px solid #555762}
.statistics-totals dt{font:10px/1.5 var(--mono);color:#c5c5ca}
.statistics-totals dd{margin:8px 0 0;font:28px/1 var(--mono);color:#f47732;font-variant-numeric:tabular-nums}
.statistics-country-detail{min-height:82px;padding:14px 0;border-block:1px solid #555762;font-size:12px;line-height:1.8}
.statistics-country-detail strong{display:block;font-size:15px;color:#fff}
.statistics-panel .statistics-method{font-size:11px;color:#a8a8b0}
.statistics-panel>.ghost-btn{width:100%;margin:6px 0;min-height:40px}
.statistics-map-shell{position:relative;min-height:0;min-width:0}
#statisticsMap{position:absolute;inset:0;background:#09090b}
#statisticsMap .leaflet-control-zoom{margin:14px}
#statisticsMap .map-style-control{margin:14px}
#statisticsMap .leaflet-control-attribution{max-width:85%;font-size:9px}
.country-colour-legend{position:absolute;z-index:450;left:16px;bottom:24px;max-width:calc(100% - 32px);min-width:160px;padding:12px 14px;border:1px solid #555762;background:#19191dec;color:#fff;font:11px/1.5 var(--mono);pointer-events:none}
.country-colour-legend strong{display:block;font:11px/1.5 var(--sans);margin-bottom:8px}
.country-colour-legend .country-gradient{height:7px;background:linear-gradient(90deg,#211c18,#774124,#f47732);margin:6px 0}
.country-colour-legend .country-scale{display:flex;justify-content:space-between;gap:20px;font-variant-numeric:tabular-nums}
.country-stat-tooltip{border:1px solid #f47732;border-radius:2px;background:#19191d;color:#fff;padding:10px 12px;box-shadow:none;font:12px/1.6 var(--sans)}
.country-stat-tooltip strong{display:block}
.country-stat-popup .leaflet-popup-content-wrapper,.country-stat-popup .leaflet-popup-tip{background:#19191d;color:#fff;border:1px solid #f47732;border-radius:2px;box-shadow:none}
.country-stat-popup .leaflet-popup-content{font:12px/1.6 var(--sans);margin:14px 24px 14px 14px}
.country-stat-popup strong{display:block}
.country-stat-popup a.leaflet-popup-close-button{color:#fff;width:28px;height:28px;line-height:28px}
path[data-country]{outline:none}
path[data-country]:focus-visible{stroke:#fff;stroke-width:2}
.country-density-filter{display:flex;align-items:center;gap:8px;padding:12px 0;color:#fff;font-size:12px;line-height:1.5}
.country-density-filter input{flex:none}
.country-density-status{font-size:11px;line-height:1.6;color:#c5c5ca;margin:4px 0 12px}
#mapView>.country-colour-legend{left:calc(var(--workspace-left,84px) + 16px);bottom:calc(var(--timeline-height,0px) + var(--status-height,28px) + 12px);max-width:calc(100vw - var(--workspace-left,84px) - var(--workspace-right,0px) - 32px)}
@media(max-width:760px){
  .navigation-shell .console-subbar{gap:8px}
  .statistics-link{font-size:9px;padding:3px 6px}
  .console-subbar .console-product{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
  #statisticsView.active{overflow-y:auto;display:flex;flex-direction:column}
  .statistics-panel{padding:18px;border-right:0;border-bottom:1px solid #555762;overflow:visible}
  .statistics-panel h1{font-size:21px}
  .statistics-totals{margin:16px 0}
  .statistics-map-shell{height:42vh;min-height:260px;flex:none;order:-1}
  #statisticsMap .map-style-control{max-width:180px}
  #mapView>.country-colour-legend{bottom:calc(var(--status-height,66px) + var(--timeline-height,0px) + 70px);left:calc(var(--workspace-left,64px) + 12px);font-size:9px;min-width:130px;padding:8px 10px}
}
@media(max-width:760px),(max-width:1024px) and (hover:none) and (pointer:coarse){
  .top-actions .statistics-link{display:grid;place-items:center;width:44px;height:44px;min-width:44px;flex:none;padding:6px}
  .top-actions .statistics-link svg{width:18px;height:18px}
  .top-actions .statistics-link span{display:none}
}
@media(max-width:360px){.topbar:has(.statistics-link) .brand span{display:none}}
