html,body{height:100%;overflow:hidden}main.monitor{max-width:none;height:100dvh;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0}.monitor>.map-panel{border:0;border-radius:0;background:#0b1924;min-width:0}.monitor .map-wrap{height:100%}.monitor #map{height:100%;width:100%;cursor:grab;touch-action:pan-y}.monitor #map:active,.monitor #map.is-dragging{cursor:grabbing}.monitor #map path{pointer-events:visiblePainted;cursor:inherit}.monitor .live-sidebar{border-left:1px solid var(--line);padding:25px 22px;gap:21px;display:flex;flex-direction:column;overflow-y:auto;background:#0e1d28}.sidebar-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.sidebar-title .brand{font-size:24px;white-space:nowrap}.sidebar-title .brand span{font-size:13px;margin-left:8px;padding-left:10px}.admin-link{font-size:10px;color:#8ba2b1}.monitor .sync{justify-content:space-between;align-items:center;flex-direction:row;gap:8px;font-size:10px}.monitor .sync button{padding:4px 10px;font-size:17px}.live-summary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0}.online-total{display:flex;align-items:baseline;gap:13px}.online-total strong{font-size:48px;line-height:1.2;color:#39ff14;text-shadow:0 0 22px #39ff1455;font-weight:600}.online-total span{color:#adc1cc;font-size:12px}.summary-line{display:flex;justify-content:space-between;gap:8px;margin-top:18px;color:#8aa3b1;font-size:10px}.summary-line b{color:#e1edf3;margin-left:3px}.live-summary>small{display:block;font-size:9px;margin-top:10px}.focus-info h2{font-size:20px;margin-top:13px;line-height:1.6}.focus-info p{font-size:11px;color:#8ca4b4;margin:7px 0 12px}.focus-info>div{font-size:11px;color:#a4bfc9}.focus-info b{font-size:23px;color:#39ff14;margin-right:6px}.monitor .ranking{border:0;border-radius:0;flex:1;min-height:180px;background:transparent}.monitor .ranking .panel-head{padding:0 0 15px}.monitor .ranking h2{font-size:13px}.monitor .search{margin:0 0 12px}.monitor #ranking{max-height:none}.monitor .region-row{padding:14px 8px;cursor:default;background:transparent}.monitor .region-row:hover{background:transparent}.monitor .region-row.new-online{background:#39ff141c}.monitor .arrival-banner{font-size:11px;line-height:1.9;margin:0;padding:12px 14px}.monitor .sidebar-bottom{position:static;margin-top:auto;color:#6d8796;font-size:9px;line-height:1.8}.monitor .legend{padding:12px 0;justify-content:space-between;gap:5px;font-size:9px}.monitor .legend i{width:12px}.monitor .sidebar-bottom p{margin:9px 0 3px}.monitor .zoom{right:26px;bottom:28px}.monitor .zoom button{background:#142b39cc;backdrop-filter:blur(8px)}@media(max-width:760px){main.monitor{grid-template-columns:minmax(0,1fr) 230px}.monitor .live-sidebar{padding:18px 14px;gap:17px}.admin-link{display:none}.summary-line{flex-wrap:wrap;justify-content:start;gap:9px}.focus-info h2{font-size:16px}.monitor .legend{flex-wrap:wrap;justify-content:start}.monitor .region-row{font-size:10px;padding:12px 5px}.monitor .region-row em{display:none}}@media(max-width:520px){html,body{overflow:auto}main.monitor{height:auto;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:60dvh auto}.monitor .live-sidebar{border-left:0;border-top:1px solid var(--line)}.monitor .ranking{min-height:0}.monitor #ranking{max-height:230px}.monitor .legend{justify-content:start;gap:10px}.monitor .summary-line{justify-content:space-between}}

#regionTooltip{position:absolute;z-index:5;pointer-events:none;white-space:pre-line;background:#06121af5;border:1px solid #5d8294;border-radius:9px;box-shadow:0 8px 28px #0006;padding:13px 16px;color:#e8f8f2;font-size:12px;line-height:1.9;max-width:calc(100% - 16px)}#regionTooltip[hidden]{display:none}

.monitor #map{user-select:none}.monitor #map path.is-registered:not(.is-online){stroke:#9ab1ff;stroke-width:1}.monitor .legend{flex-wrap:wrap;justify-content:flex-start;gap:7px}
.monitor .ranking{display:flex;flex-direction:column;flex:1 1 180px}.monitor .ranking .panel-head,.monitor .ranking .search{flex-shrink:0}.monitor #ranking{min-height:0;overflow-y:auto;flex:1}


.monitor #map path.is-estimated:not(.is-online){stroke:#ffb64c;stroke-width:1.8;stroke-dasharray:4 3}.ip-estimate-panel{border-top:1px solid #6f512c;border-bottom:1px solid #6f512c;padding:14px 0}.ip-estimate-panel h2{font-size:12px;color:#ffbf63;line-height:1.7}.ip-estimate-panel p{font-size:11px;color:#eac596;margin:9px 0}.ip-estimate-panel small,.ip-estimate-panel>a{display:block;font-size:9px;line-height:1.8;color:#a99376;margin-top:8px}#estimatedGroups{max-height:115px;overflow-y:auto}.estimate-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;line-height:1.8;padding:6px 0;color:#c8b49b}.estimate-row b{white-space:nowrap;color:#ffbf63;font-weight:500}.monitor .legend .estimate-key{background:#805322;border:1px dashed #ffb64c}#regionTooltip{max-width:min(360px,calc(100% - 16px));font-size:11px}

#onlineBubble{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-100%) translateY(8px);max-width:calc(100% - 30px);padding:12px 18px;border:1px solid #81ff55;border-radius:12px;background:#102a1bf5;color:#baff9c;font-size:13px;line-height:1.6;box-shadow:0 0 24px #39ff1455;pointer-events:none;opacity:0;transition:opacity .3s ease,transform .3s ease;text-align:center}#onlineBubble.visible{opacity:1;transform:translate(-50%,-100%) translateY(-18px)}#onlineBubble:after{content:"";position:absolute;bottom:-7px;left:calc(50% - 6px);width:12px;height:12px;background:#102a1b;border-right:1px solid #81ff55;border-bottom:1px solid #81ff55;transform:rotate(45deg)}#onlineBubble[hidden]{display:none}@media(prefers-reduced-motion:reduce){#onlineBubble{transition:none}}

#onlineBubble{width:max-content}

.monitor #map #undistrictedOnline{pointer-events:none}.monitor #map #undistrictedOnline path{pointer-events:none;stroke:#bfff00;stroke-width:2;stroke-dasharray:none;vector-effect:non-scaling-stroke}.monitor .legend .undistricted-key{border:1px solid #bfff00;background:repeating-linear-gradient(135deg,transparent 0 3px,#bfff00 3px 4px)}

/* Compact sidebar: totals, current focus, registered list, unregistered list. */
.monitor .live-sidebar{padding:18px;gap:14px;overflow-y:auto}
.sidebar-title .brand{font-size:22px}.sidebar-title .brand span{font-size:11px}
.monitor .sync{font-size:10px;padding-bottom:2px}
.monitor .live-summary{padding:14px 0}.online-total strong{font-size:40px}.online-total span{font-size:13px}
.summary-line{margin-top:12px;gap:8px;flex-wrap:wrap}.live-summary>small{line-height:1.6}
.monitor .focus-info{position:relative;padding:13px 14px;border:1px solid #31533d;border-radius:10px;background:#39ff1408}
.focus-info .live{font-size:9px;letter-spacing:.2px}.monitor .focus-info h2{font-size:17px;margin:8px 58px 0 0;line-height:1.5}.monitor .focus-info p{font-size:10px;margin:5px 50px 0 0}.monitor .focus-info>div{position:absolute;right:14px;top:37px;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:2px}.monitor .focus-info b{font-size:25px;margin:0;line-height:1}
.monitor .ranking{flex:1 1 190px;min-height:155px}.monitor .ranking .panel-head{padding:0 0 9px}.monitor .ranking h2{font-size:12px}.monitor .search{margin:0 0 7px}.monitor .search input{padding:9px 11px;font-size:11px}.monitor .region-row{padding:10px 6px}.monitor #ranking{max-height:250px}
.monitor .ip-estimate-panel{flex:1 1 165px;min-height:130px;display:flex;flex-direction:column;padding:12px 0 0;border-bottom:0;position:relative}.ip-estimate-panel h2{padding-right:40px}.ip-estimate-panel p{margin:7px 0;font-size:11px}.ip-estimate-panel #estimatedGroups{flex:1;min-height:48px;max-height:180px;overflow-y:auto}.estimate-row{padding:7px 2px;border-bottom:1px solid #ffffff08}.ip-estimate-panel small{font-size:9px;margin-top:5px}.ip-estimate-panel>a{position:absolute;right:0;top:9px;font-size:9px}
.monitor .sidebar-bottom{flex-shrink:0;border-top:1px solid var(--line);padding-top:4px}.monitor .legend{padding:7px 0;gap:6px;font-size:8px}.monitor .sidebar-bottom p{margin:4px 0 2px;font-size:8px}
@media(max-width:760px){.monitor .live-sidebar{padding:14px 12px;gap:12px}.summary-line{font-size:9px;gap:7px}.monitor .focus-info{padding:11px}.monitor .focus-info h2{font-size:14px}.monitor .focus-info>div{right:10px}.online-total{gap:8px}.online-total strong{font-size:34px}.online-total span{font-size:11px}}
@media(max-width:520px){.monitor .ranking,.monitor .ip-estimate-panel{flex:none;min-height:0}.monitor #ranking{max-height:200px}.ip-estimate-panel #estimatedGroups{flex:none;max-height:160px}.monitor .live-sidebar{gap:16px;padding:18px}.monitor .focus-info h2{font-size:17px}}

.sidebar-title .brand{display:flex;align-items:center;min-width:0;gap:9px}.sidebar-title .brand img{display:block;width:142px;max-width:100%;height:auto;max-height:42px;object-fit:contain}.sidebar-title .brand span{margin:0;padding-left:9px;font-size:11px}.sidebar-title .admin-link{flex-shrink:0}@media(max-width:760px){.sidebar-title .brand img{width:120px}.sidebar-title .brand{gap:6px}.sidebar-title .brand span{font-size:10px;padding-left:6px}}

.sidebar-title .brand img{width:44px;height:38px;max-height:none}.sidebar-title .brand span{font-size:15px;border:0;padding-left:0}@media(max-width:760px){.sidebar-title .brand img{width:39px;height:34px}.sidebar-title .brand span{font-size:14px}}

.monitor #map #undistrictedHatch path{stroke:#bfff00;stroke-width:1.5;stroke-opacity:.7;vector-effect:none;pointer-events:none}

#toggleTracking{display:block;margin-top:10px;padding:6px 10px;border:1px solid #537449;border-radius:6px;background:#1b3224;color:#d5ffc3;font-size:10px;cursor:pointer}#toggleTracking[aria-pressed="false"]{background:#1b2933;border-color:#526574;color:#c1ccd4}.focus-info:has(#toggleTracking[aria-pressed="false"]) .live{color:#9bb0be;text-shadow:none}.focus-info:has(#toggleTracking[aria-pressed="false"]) .live:before{background:#8295a0;box-shadow:none}

#focusBubble{position:absolute;z-index:7;pointer-events:none;white-space:pre-line;width:max-content;max-width:85%;padding:12px 16px;border:1px solid #e4ffba;border-radius:10px;background:#10251ef5;color:#efffe0;font-size:12px;line-height:1.8;box-shadow:0 4px 20px #0006;opacity:0;transform:translateY(6px);transition:opacity .3s ease,transform .3s ease}#focusBubble.visible{opacity:1;transform:translateY(0)}#focusBubble[hidden]{display:none}.monitor #map #focusOutline,.monitor #map #focusOutline path{pointer-events:none}.monitor #map #focusOutline path{fill:none;stroke:#fff3a6;stroke-width:3;vector-effect:non-scaling-stroke;stroke-dasharray:none;filter:drop-shadow(0 0 3px #d4ff73)}#onlineBubble{display:none!important}@media(prefers-reduced-motion:reduce){#focusBubble{transition:none}}

.monitor .zoom #showPeninsula{font-size:10px;font-weight:600;padding:10px 5px}
