/* One map toolbar, no duplicate floating layer controls. */
#map .gs-flat-region{
  display:grid;place-content:center;text-align:center;pointer-events:none;
  font:650 13px/1.1 system-ui,sans-serif;color:white;text-shadow:0 1px 3px #142935,1px 0 2px #142935,-1px 0 2px #142935;
}
#map { background-color:#102934; }
#map :is(.event-cluster-bubble,.conflict-cluster-bubble) small{display:none}
.map-panel .gs-flat-controls {
  display:flex;align-items:stretch;overflow:hidden;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);box-shadow:0 2px 6px #0004;
}
.map-panel .gs-flat-controls :is(a,button) {
  display:grid;place-items:center;box-sizing:border-box;min-width:44px;width:auto;height:44px;
  line-height:1;border:0;border-radius:0;margin:0;background:var(--panel);color:var(--text);
}
.map-panel .gs-flat-controls > * + * {border-inline-start:1px solid var(--line)}
.map-panel .gs-flat-controls #fit {padding:0 9px;font:600 16px/1.2 system-ui,sans-serif}
.map-panel .gs-flat-controls .leaflet-disabled{opacity:.55}
.map-panel .gs-flat-controls :focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.map-panel.gs-globe-active .gs-flat-controls{display:none}
.gs-globe-active #flat-tile-status{display:none}
@media(max-width:700px){
 body.gs-mobile-appmode[data-gs-mobile-view="map"] .map-panel:not(:fullscreen) .map-bar{order:1}
 body.gs-mobile-appmode[data-gs-mobile-view="map"] .map-panel:not(:fullscreen) .map-bar>span:first-child{display:none}
 body.gs-mobile-appmode[data-gs-mobile-view="map"] .map-panel:not(:fullscreen) .map-footer{order:2}
 body.gs-mobile-appmode[data-gs-mobile-view="map"] .map-panel:not(:fullscreen) .map-layer-dock{top:calc(var(--gs-toolbar-height,65px) + 8px)!important}
 body.gs-mobile-appmode[data-gs-mobile-view="map"] .map-panel:not(:fullscreen) #map {
   flex:none;min-height:0;height:min(72vw,58svh,560px);
 }
}
.gs-projection-toolbar{--projection-ink:#07262e;--projection-fill:#a8e4e6;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px;background:var(--panel);border-bottom:1px solid var(--line);z-index:970;position:relative;flex:none}
body.light .gs-projection-toolbar{--projection-ink:#fff;--projection-fill:#126575}
.gs-projection-choice{display:inline-flex;align-items:stretch;max-width:100%;padding:2px;border:1px solid var(--line);border-radius:9px}
.gs-projection-toolbar button{font-size:19px!important;font-weight:650;min-height:44px!important;padding:7px 12px;border-radius:7px;white-space:nowrap}
.gs-projection-choice button{border-color:transparent!important;background:transparent!important}
.gs-projection-choice button[aria-pressed=true]{color:var(--projection-ink)!important;background:var(--projection-fill)!important;border-color:transparent!important}
.gs-projection-toolbar button:focus-visible{outline:3px solid var(--projection-fill)!important;outline-offset:2px}
.gs-projection-toolbar button[aria-expanded=true]{border-color:var(--gs-selected-border)!important;color:var(--gs-selected-fill)!important}body.light .gs-projection-toolbar button[aria-expanded=true]{color:#795900!important}
.gs-projection-note{color:var(--muted);font-size:18px;line-height:1.4;flex:1 1 130px;text-align:right}
.map-panel.gs-toolbar-ready #gs-map-layers-fab,.map-panel.gs-toolbar-ready .map-layer-dock.dock-collapsed{display:none!important}
.map-panel.gs-toolbar-ready .map-layer-dock{top:var(--gs-dock-top,122px)!important;max-height:calc(100% - 185px)!important}
.map-panel.gs-toolbar-ready .map-bar{min-height:46px;height:auto;flex:none;padding:10px 12px;gap:8px;flex-wrap:wrap}.map-panel.gs-toolbar-ready .map-bar>span{font-family:inherit;font-size:18px!important;line-height:1.4}
/* The previous mobile status strip duplicated the source count and covered controls. The source count stays in the map bar. */
.map-panel.gs-toolbar-ready #gs-map-live-strip{display:none!important}
/* The Leaflet header and footer describe the flat viewport and its severity colors.
   The globe supplies its own count, color key, instructions and reset control. */
.map-panel.gs-globe-active #map,.map-panel.gs-globe-active .map-bar,
.map-panel.gs-globe-active .gs-projection-note:not(.gs-projection-error),
.map-panel.gs-globe-active .map-footer>span,.map-panel.gs-globe-active .map-footer #fit{display:none!important}

.gs-globe-view[hidden], .gs-globe-detail[hidden] { display:none!important }
.gs-globe-view {
 --globe-ink:#edf7fa; --globe-muted:#bad0dc; --globe-rule:#2d505f; --globe-accent:#98e1e7; --globe-dots:#77c5d124;
 --globe-button:#122732; --globe-button-line:#3b616d;
 flex:1 1 auto; min-width:0; min-height:0; position:relative; z-index:1;
 container:globe / inline-size; color:var(--globe-ink); overflow:auto;
 background:radial-gradient(ellipse at 34% 35%,#163341 0,#0a1c28 48%,#081620 80%,#07131d);
}
body.light .gs-globe-view {
 --globe-ink:#142f42; --globe-muted:#355066; --globe-rule:#adc4c9; --globe-accent:#216c77; --globe-dots:#28667b2b;
 --globe-button:#f6fafc; --globe-button-line:#879fac;
 background:radial-gradient(ellipse at 38% 38%,#fff 0,#edf4f7 42%,#dce8ed);
}
.gs-globe-layout {
 width:100%; max-width:1250px; margin:auto; box-sizing:border-box;
 display:grid; justify-items:center; align-items:center; gap:15px;
 padding:clamp(10px,2.2%,28px);
}
.gs-globe-stage { width:min(100%,630px); min-width:0; display:grid; justify-items:stretch }
.gs-globe-frame {
 position:relative; isolation:isolate; overflow:hidden; touch-action:none;
 width:100%; aspect-ratio:1;
 background:radial-gradient(circle at 1px 1px,var(--globe-dots) .8px,transparent 1px) center/20px 20px;
}
.gs-globe-frame::before {
 content:"";position:absolute;inset:0;pointer-events:none;
 --corner:linear-gradient(var(--globe-rule),var(--globe-rule));
 background:var(--corner) left top/15px 1px,var(--corner) left top/1px 15px,
            var(--corner) right top/15px 1px,var(--corner) right top/1px 15px,
            var(--corner) left bottom/15px 1px,var(--corner) left bottom/1px 15px,
            var(--corner) right bottom/15px 1px,var(--corner) right bottom/1px 15px;
 background-repeat:no-repeat;
}
.gs-globe-canvas {
 display:block; width:100%; height:100%; touch-action:none; cursor:grab;
 user-select:none; -webkit-user-select:none;
}
.gs-globe-canvas:active { cursor:grabbing }
.gs-globe-canvas:focus-visible { outline:3px solid #61bddd; outline-offset:-4px; border-radius:12px }
.gs-globe-tools { width:100%; max-width:630px; min-width:0; text-align:left }
.gs-globe-view p { margin:0; color:var(--globe-muted); font-size:18px; line-height:1.45 }
.gs-globe-view .gs-globe-count { color:var(--globe-ink); font-size:19px; font-weight:550; line-height:1.25 }
.gs-globe-count strong { margin-right:.12em; color:var(--globe-accent); font:650 clamp(28px,3vw,42px)/1.05 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums }
.gs-globe-hint { padding-top:4px }
.gs-globe-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:14px 0 }
.gs-globe-control-group { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px }
.gs-globe-controls button, .gs-globe-detail button {
 color:var(--globe-ink); background:var(--globe-button); border:1px solid var(--globe-button-line);
 border-radius:6px; min-width:44px; min-height:44px!important; padding:4px 10px;
 font-weight:600; line-height:1.25; font-family:inherit; font-size:19px!important;
}
.gs-globe-controls button:not(:disabled):hover, .gs-globe-detail button:hover { border-color:var(--globe-ink) }
.gs-globe-controls button:focus-visible, .gs-globe-detail button:focus-visible { outline:3px solid #42a6cd; outline-offset:2px }
.gs-globe-controls button:disabled { opacity:.54; cursor:default }
.gs-globe-controls #gs-globe-zoom-in, .gs-globe-controls #gs-globe-zoom-out { font-size:24px!important }
.gs-globe-reading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:2px 10px; padding:7px 0; border-bottom:1px solid var(--globe-rule); color:var(--globe-muted); font-size:16px }
.gs-globe-coordinates { color:var(--globe-accent); font:550 17px/1.4 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums; white-space:pre-wrap }
.gs-globe-source:empty { display:none }
.gs-globe-key { margin:0; padding:0; background:transparent; border:0; border-top:1px solid var(--globe-rule) }
.gs-globe-key summary { width:100%; padding:12px 0; min-height:44px; color:var(--globe-ink); font-weight:650; font-size:18px; cursor:pointer }
.gs-globe-key summary:focus-visible { outline:2px solid var(--globe-accent); outline-offset:2px }
.gs-globe-legend { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 14px; font-size:17px; line-height:1.4; color:var(--globe-muted) }
.gs-globe-legend span { display:inline-flex; align-items:center; gap:6px }
.gs-globe-legend i { width:10px; height:10px; flex:none; border:1px solid #314758; border-radius:50% }
.gs-globe-view .gs-globe-note { margin:12px 0 0; font-size:17px }
@container globe (min-width:850px) {
 .gs-globe-layout { grid-template-columns:minmax(0,1fr) minmax(235px,30%); gap:clamp(20px,3%,40px); padding:clamp(18px,2.5%,32px) }
 .gs-globe-tools { padding:6px 0 6px clamp(16px,2vw,28px); border-left:1px solid var(--globe-rule) }
 .gs-globe-stage { width:min(100%,64vh,680px) }
 .map-panel:fullscreen .gs-globe-stage { width:min(100%,76vh,760px) }
}
.gs-globe-markers { position:absolute; inset:0; z-index:2; pointer-events:none }
.gs-globe-markers .gs-globe-marker {
 position:absolute!important; transform:translate(-50%,-50%); display:grid!important; place-items:center!important;
 pointer-events:auto; touch-action:none; cursor:pointer!important;
 color:#fff!important; background:transparent!important; border:0!important; border-radius:999px!important;
 box-shadow:none!important; padding:0!important; margin:0; min-width:32px!important; min-height:32px!important;
 width:auto!important; height:32px!important; white-space:nowrap!important; line-height:1!important;
}
.gs-globe-markers .gs-globe-marker:not(.cluster)::before {
 content:""; grid-area:1/1; width:10px; height:10px; box-sizing:border-box; border-radius:50%;
 background:var(--marker-color); border:1.5px solid #102735; box-shadow:0 0 0 1.5px var(--marker-color),0 0 0 3px #0b202bad;
}
.gs-globe-markers .gs-globe-marker.cluster {
 min-width:27px!important; min-height:27px!important; height:27px!important; padding:0 5px!important;
 font:700 16px/1 system-ui,sans-serif!important; font-variant-numeric:tabular-nums!important;
 background:#102536!important; border:2px solid var(--marker-color)!important; box-shadow:0 1px 4px #07131eaa!important;
}
.gs-globe-markers .gs-globe-marker.cluster::after { content:""; position:absolute; inset:-3px; border-radius:inherit }
.gs-globe-marker:hover, .gs-globe-marker:focus-visible { outline:3px solid #fff!important; outline-offset:1px; z-index:3 }
.gs-globe-frame .gs-globe-detail {
 position:absolute; z-index:5; left:6px; right:6px; bottom:6px; max-height:62%; overflow:auto; overscroll-behavior:contain;
 touch-action:pan-y; padding:12px; color:var(--globe-ink); background:var(--globe-button); border:1px solid var(--globe-button-line); border-radius:12px;
 box-shadow:0 6px 24px #06132188;
}
.gs-globe-detail>strong { display:inline-block; font-size:21px; margin-bottom:8px }
.gs-globe-detail .gs-globe-clear { float:right; margin-left:8px }
.gs-globe-point { display:flex; flex-wrap:wrap; align-items:center; clear:both; gap:6px 10px; padding:10px 0; border-top:1px solid var(--globe-button-line) }
.gs-globe-point strong, .gs-globe-point small { flex:1 1 100%; overflow-wrap:anywhere }
.gs-globe-point strong { font-size:20px }
.gs-globe-point small { font-size:18px; color:var(--globe-muted) }
.gs-globe-point a { color:#9cdfff; font-size:18px }
body.light .gs-globe-point a { color:#07597a }
@media(max-width:700px) {
 .gs-projection-toolbar { gap:6px; padding:7px 8px; justify-content:space-between }
 .gs-projection-toolbar button { font-size:18px!important; padding:7px 9px; min-width:0 }
 .gs-projection-note:not(.gs-projection-error) { display:none }
 .gs-projection-note.gs-projection-error { flex:1 1 100%; text-align:left }
 .map-panel.gs-toolbar-ready .map-layer-dock { top:var(--gs-dock-top,152px)!important; max-height:calc(100% - 210px)!important }
 .gs-globe-controls { gap:7px }
}
@media(max-width:360px) {
 .gs-projection-toolbar .gs-filter-label { display:none }
 .gs-projection-toolbar button { font-size:18px!important; padding:6px 5px }
 .map-panel.gs-toolbar-ready .map-layer-dock { top:var(--gs-dock-top,160px)!important }
}
#gs-guide-dialog{max-width:570px;max-height:90dvh;overflow:auto;padding:20px;border-radius:18px}#gs-guide-dialog h2{font-size:26px!important}#gs-guide-dialog .gs-guide-options{display:grid;gap:10px}#gs-guide-dialog .gs-guide-options button{text-align:left;padding:12px;border-radius:12px}#gs-guide-dialog .gs-guide-options strong,#gs-guide-dialog .gs-guide-options small{display:block}#gs-guide-dialog .gs-guide-options strong{font-size:21px}#gs-guide-dialog .gs-guide-options small{font-size:18px;color:var(--muted);line-height:1.4}
