:root{
  --bg:#070b14;
  --panel:#0d1426;
  --panel2:#0b1020;
  --text:#eaf1ff;
  --muted:rgba(234,241,255,.65);

  /* Al Jazeera-ish accent */
  --accent:#ff7a18;

  /* Boundary styling (edit these to change look) */
  --district-stroke:#ff7a18;
  --district-fill:rgba(255,122,24,.10);
  --child-stroke:rgba(255,255,255,.90);
  --child-fill:rgba(255,255,255,.05);
  --selected-stroke:#ff7a18;
  --hover-stroke:#ffffff;

  /* Mask */
  --uganda-mask:rgba(7,11,20,1);
  --focus-mask:rgba(7,11,20,1);
  --focus-edge:rgba(255,122,24,.9);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial}
a{color:inherit}

.topbar{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}

.brand{display:flex;gap:12px;align-items:center}
.brandText .h1{font-weight:900;letter-spacing:.08em;font-size:14px}
.brandText .h2{font-size:13px;color:var(--muted);margin-top:2px}
.brandText .h3{font-size:12px;color:rgba(234,241,255,.85);margin-top:4px;font-weight:800}

.actions{display:flex;gap:10px;align-items:center}

.btn{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{background:rgba(255,255,255,.09)}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:not-allowed}

.btnMode{padding:10px 12px}
.btnModeActive{
  border-color:rgba(255,122,24,.65);
  box-shadow:0 0 0 2px rgba(255,122,24,.15) inset;
}

.layout{
  height:calc(100% - 72px);
  display:grid;
  grid-template-columns: 1fr 340px;
}

#map{height:100%;width:100%}

.side{
  padding:12px;
  border-left:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.panel{
  background:rgba(13,20,38,.75);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  margin-bottom:12px;
  backdrop-filter: blur(10px);
  box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.panelTitle{font-weight:900;margin-bottom:10px;letter-spacing:.04em}
.row{display:flex;justify-content:space-between;gap:10px;margin:8px 0}
.k{color:var(--muted);font-weight:800}
.v{font-weight:900}
.muted{color:var(--muted);line-height:1.4}

.mapLabel{pointer-events:none}
