* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f5f7fa; color: #1e4b69; }
.container { max-width: 750px; margin: 0 auto; padding: 16px; }
h2 { text-align: center; font-size: 1.3rem; margin-bottom: 12px; }
.controls { text-align: center; margin-bottom: 12px; display: flex; gap: 8px; justify-content: center; }
.mode-btn { padding: 6px 18px; border-radius: 6px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: all 0.2s; }
.mode-btn.active { background: #1e4b69; color: #fff; border-color: #1e4b69; }
.map-area { background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 12px; }
#mapSvg { width: 100%; height: auto; }
.continent { font-size: 11px; fill: #94a3b8; font-weight: 600; }
.label { font-size: 9px; font-weight: 600; }
.origin-label { fill: #1d4ed8; }
.edge-label { fill: #16a34a; }
.user-label { fill: #d97706; }
.user-group:hover circle { r: 13; }
.latency-bar { display: flex; gap: 12px; margin-bottom: 12px; }
.lat-item { flex: 1; background: #fff; border-radius: 8px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.lat-label { font-size: 0.72rem; color: #64748b; display: block; margin-bottom: 4px; }
.lat-bar-bg { height: 10px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.lat-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.hit-fill { background: #22c55e; }
.miss-fill { background: #f59e0b; }
.lat-val { font-size: 0.85rem; font-weight: 700; display: block; margin-top: 4px; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 0.78rem; }
.leg { display: flex; align-items: center; gap: 4px; }
