/* MUDD — app.css · #FF6700 on #0A0A0D · Overpass + JetBrains Mono (bundled) */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/Overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --og: #ff6700;
  --ok: #22c55e;
  --bad: #ff1744;
  --warn: #ffab00;
  --purple: #c084fc;
}
:root[data-theme="dark"] {
  --bg: #0a0a0d; --s1: #111114; --s2: #19191d;
  --bd: #2a2a30; --bdl: #1e1e24;
  --tx: #eaeaf0; --txs: #8a8a96; --txm: #55555f;
  --grid: rgba(255,255,255,.05);
}
:root[data-theme="light"] {
  --bg: #f2f0eb; --s1: #ffffff; --s2: #f8f6f2;
  --bd: #d8d4cc; --bdl: #e4e0d8;
  --tx: #18160f; --txs: #68635a; --txm: #9e9890;
  --grid: rgba(0,0,0,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::-webkit-scrollbar { width: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: "Overpass", system-ui, sans-serif;
  background: var(--bg); color: var(--tx);
  overflow: hidden; position: fixed; inset: 0;
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
}
input, textarea { user-select: text; -webkit-user-select: text; }
.mono { font-family: "JetBrains Mono", monospace; }
.hidden { display: none !important; }
.flex1 { flex: 1; min-width: 0; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.dimtx { color: var(--txm); }
button { font-family: inherit; color: inherit; }

@keyframes ddCardEnter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ddSheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ddOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ddPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes ddRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

/* ── Chrome ─────────────────────────────────────────── */
.statusbar {
  flex-shrink: 0; text-align: center; padding: 3px 10px calc(2px);
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px;
  font-family: "JetBrains Mono", monospace;
  padding-top: calc(3px + env(safe-area-inset-top));
}
.statusbar.on { background: rgba(34, 197, 94, .12); color: var(--ok); }
.statusbar.off { background: rgba(255, 23, 68, .14); color: var(--bad); }

#header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px; border-bottom: 1px solid var(--bdl); background: var(--bg);
}
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand-mark { font-size: 20px; font-weight: 900; letter-spacing: 1px; color: var(--og); font-family: "JetBrains Mono", monospace; }
.brand-sub { font-size: 9px; font-weight: 700; color: var(--txm); text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.badge {
  padding: 3px 8px 2px; border-radius: 4px; font-size: 9px; font-weight: 800;
  letter-spacing: .8px; font-family: "JetBrains Mono", monospace;
}
.badge.ok { background: rgba(34, 197, 94, .12); color: var(--ok); }
.badge.warn { background: rgba(255, 171, 0, .12); color: var(--warn); }
.pill-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--bd);
  background: var(--s1); color: var(--txs); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pill-btn.active { color: var(--warn); border-color: rgba(255, 171, 0, .4); background: rgba(255, 171, 0, .08); }

#view { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

#tabs {
  flex-shrink: 0; display: flex; border-top: 1px solid var(--bdl); background: var(--s1);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; background: none; border: none; cursor: pointer;
  color: var(--txm); position: relative;
}
.tab span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.tab.active { color: var(--og); }
.tab-dot {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--warn); color: #000; font-size: 8px; font-weight: 800;
  min-width: 14px; height: 14px; border-radius: 7px; line-height: 14px; padding: 0 3px;
  font-family: "JetBrains Mono", monospace;
}

#fab {
  position: fixed; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 16px; border: none; cursor: pointer;
  background: var(--og); color: #fff; font-size: 28px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 20px rgba(255, 103, 0, .4); z-index: 60;
  display: flex; align-items: center; justify-content: center;
}

.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  background: var(--s2); color: var(--tx); border: 1px solid var(--bd);
  padding: 10px 18px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255, 23, 68, .4); color: var(--bad); }

/* ── Nearby ─────────────────────────────────────────── */
.searchrow { padding: 12px 14px 8px; }
#search {
  width: 100%; border: 1.5px solid var(--bd); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; background: var(--s1); color: var(--tx); outline: none; font-family: inherit;
}
#search:focus { border-color: var(--og); }
.pills { display: flex; gap: 6px; padding: 4px 14px 10px; overflow-x: auto; flex-wrap: nowrap; }
.pill {
  padding: 6px 13px 5px; border-radius: 20px; border: 1px solid var(--bd); background: var(--s1);
  color: var(--txs); font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.pill.active { background: var(--og); border-color: var(--og); color: #fff; }

.cards { padding-bottom: 90px; }
.card {
  display: flex; background: var(--s1); border-bottom: 1px solid var(--bdl);
  border-left: 4px solid var(--og); animation: ddCardEnter .3s ease both;
}
.card.dim { opacity: .5; }
.card-main {
  flex: 1; display: flex; gap: 13px; padding: 14px 12px 13px 15px;
  background: none; border: none; cursor: pointer; text-align: left; min-width: 0;
}
.card-eta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 50px; flex-shrink: 0; }
.eta-num { font-size: 20px; font-weight: 800; font-family: "JetBrains Mono", monospace; line-height: 1; }
.eta-unit { font-size: 8.5px; font-weight: 800; color: var(--txm); text-transform: uppercase; letter-spacing: 1px; }
.eta-dist { font-size: 10px; color: var(--txm); font-family: "JetBrains Mono", monospace; margin-top: 2px; }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-icons { display: flex; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 2px 7px 1px; border-radius: 3px; font-size: 9.5px; font-weight: 800;
  font-family: "JetBrains Mono", monospace;
}
.chip.open { background: rgba(34, 197, 94, .12); color: var(--ok); }
.chip.closed { background: rgba(255, 23, 68, .12); color: var(--bad); }
.chip.queued { background: rgba(255, 171, 0, .12); color: var(--warn); }
.chip.flagged { background: rgba(255, 23, 68, .12); color: var(--bad); }
.meta-hours { font-size: 10px; color: var(--txm); font-family: "JetBrains Mono", monospace; }
.meta-src { font-size: 10px; color: var(--txm); }
.card-map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 13px; background: none; border: none; border-left: 1px solid var(--bdl);
  cursor: pointer; flex-shrink: 0; color: var(--og);
}
.card-map span { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }

.empty { text-align: center; padding: 60px 30px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty-title { font-size: 17px; font-weight: 800; }
.empty-sub { font-size: 12.5px; color: var(--txs); line-height: 1.6; max-width: 320px; }

/* ── Pages ──────────────────────────────────────────── */
.pagepad { padding: 18px 18px 100px; max-width: 560px; margin: 0 auto; }
.page-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.page-sub { font-size: 13px; color: var(--txs); line-height: 1.65; margin-bottom: 18px; }
.section-label {
  font-size: 10px; font-weight: 800; color: var(--txm); text-transform: uppercase;
  letter-spacing: 1.4px; margin: 20px 0 8px;
}
.hint { font-size: 11.5px; color: var(--txm); line-height: 1.6; margin: 6px 0; }
.notice {
  border: 1px solid var(--bd); background: var(--s1); border-radius: 10px;
  padding: 12px 14px; font-size: 12px; color: var(--txs); line-height: 1.6; margin: 14px 0;
}
.notice.warn { border-color: rgba(255, 171, 0, .35); color: var(--warn); background: rgba(255, 171, 0, .05); }
.notice.ok { border-color: rgba(34, 197, 94, .35); color: var(--ok); background: rgba(34, 197, 94, .05); }

.btn {
  border-radius: 10px; border: 1.5px solid var(--bd); background: var(--s1); color: var(--tx);
  font-weight: 800; font-size: 12.5px; cursor: pointer; padding: 12px 16px;
  text-transform: uppercase; letter-spacing: .6px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn.primary { background: var(--og); border-color: var(--og); color: #fff; }
.btn.ghost { color: var(--txs); }
.btn.big { width: 100%; padding: 14px; font-size: 13.5px; margin-top: 10px; }
.btn.sm { padding: 7px 12px; font-size: 10.5px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.confirm { border-color: rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .06); color: var(--ok); }
.btn.flagbtn { border-color: rgba(255, 23, 68, .25); background: rgba(255, 23, 68, .04); color: var(--bad); }
.btnrow { display: flex; gap: 8px; margin: 8px 0; }
.btnrow .btn { flex: 1; }
.btnrow.mt { margin-top: 16px; }

/* node steps */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 20px; }
.step { display: flex; gap: 13px; align-items: flex-start; }
.step-n {
  width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 103, 0, .12);
  color: var(--og); font-weight: 800; font-size: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: "JetBrains Mono", monospace;
}
.step-t { font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.step-d { font-size: 12px; color: var(--txs); line-height: 1.55; }
.node-actions { display: flex; flex-direction: column; gap: 4px; }

/* mesh */
.mesh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.stat {
  background: var(--s1); border: 1px solid var(--bdl); border-radius: 10px;
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.stat-v { font-size: 17px; font-weight: 800; font-family: "JetBrains Mono", monospace; }
.stat-l { font-size: 8.5px; font-weight: 800; color: var(--txm); text-transform: uppercase; letter-spacing: .6px; text-align: center; }
.synclog { display: flex; flex-direction: column; gap: 6px; }
.log-row {
  display: flex; align-items: baseline; gap: 8px; background: var(--s1);
  border: 1px solid var(--bdl); border-radius: 8px; padding: 8px 12px; font-size: 11px;
}
.log-peer { font-weight: 800; font-family: "JetBrains Mono", monospace; flex-shrink: 0; }
.log-detail { color: var(--txs); font-family: "JetBrains Mono", monospace; flex: 1; min-width: 0; }
.log-time { color: var(--txm); flex-shrink: 0; font-size: 10px; }

/* settings */
.setrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--s1); border: 1px solid var(--bdl); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700;
}
.setrow .hint { margin: 3px 0 0; font-weight: 400; }
.setrow select {
  background: var(--s2); color: var(--tx); border: 1px solid var(--bd); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; font-family: inherit; font-weight: 700; outline: none;
}
.switch {
  width: 46px; height: 26px; border-radius: 13px; border: 1px solid var(--bd);
  background: var(--s2); cursor: pointer; position: relative; flex-shrink: 0;
}
.switch span {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px;
  background: var(--txm); transition: all .18s ease;
}
.switch.on { background: rgba(255, 171, 0, .2); border-color: var(--warn); }
.switch.on span { left: 22px; background: var(--warn); }

/* ── Sheets ─────────────────────────────────────────── */
#sheet { position: fixed; inset: 0; z-index: 200; display: none; }
#sheet.show { display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); animation: ddOverlayIn .2s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 480px; background: var(--bg);
  border-top: 4px solid var(--og); border-radius: 20px 20px 0 0;
  max-height: 90vh; max-height: 90dvh; overflow: hidden; display: flex; flex-direction: column;
  animation: ddSheetUp .28s ease;
}
.sheet-head {
  padding: 18px 20px 13px; border-bottom: 1px solid var(--bd); flex-shrink: 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.sheet-head h2 { font-size: 19px; font-weight: 900; line-height: 1.25; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); }
.xbtn {
  width: 34px; height: 34px; border-radius: 10px; background: var(--s2); border: 1px solid var(--bd);
  color: var(--txm); cursor: pointer; font-size: 13px; flex-shrink: 0;
}
.xbtn.sm { width: 38px; height: auto; border-radius: 8px; background: rgba(255, 23, 68, .08); border: none; color: var(--bad); font-weight: 800; }
.src-line { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--txm); margin-bottom: 4px; }
.addr { font-size: 12px; color: var(--txs); margin-top: 3px; }
.dist-line { font-size: 12px; color: var(--og); font-weight: 700; font-family: "JetBrains Mono", monospace; margin-top: 5px; }
.coords { font-size: 10px; color: var(--txm); text-align: center; margin-top: 16px; }

.svc {
  border-left: 3px solid var(--og); background: var(--s1); border-radius: 0 10px 10px 0;
  padding: 11px 13px; margin-bottom: 9px;
}
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.svc-name { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; display: inline-flex; align-items: center; gap: 5px; }
.svc-hours { font-size: 11px; color: var(--txm); font-family: "JetBrains Mono", monospace; }
.svc-hours b { font-size: 9px; margin-right: 4px; }
.svc-desc { font-size: 12.5px; color: var(--txs); line-height: 1.6; }

.offline-nav {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--og); border-radius: 10px; padding: 9px 12px;
}
.offnav-main { font-size: 16px; font-weight: 800; color: var(--og); font-family: "JetBrains Mono", monospace; }
.offnav-sub { font-size: 9.5px; color: var(--txm); text-align: center; }

/* add sheet */
.field-label {
  font-size: 10px; font-weight: 800; color: var(--txm); text-transform: uppercase;
  letter-spacing: 1.2px; margin: 14px 0 5px;
}
.inp {
  width: 100%; border: 1.5px solid var(--bd); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; background: var(--s1); color: var(--tx); outline: none; font-family: inherit;
}
.inp:focus { border-color: var(--og); }
textarea.inp { resize: vertical; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.svc-label-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.svc-edit {
  background: var(--s1); border-radius: 10px; border-left: 3px solid var(--og);
  padding: 11px 12px; margin-bottom: 9px;
}
.typegrid { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.typebtn {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 7px;
  border: 1px solid var(--bd); background: transparent; cursor: pointer;
}
.typebtn span { font-size: 9.5px; font-weight: 700; color: var(--txs); }
.typebtn.active { border: 2px solid var(--og); background: rgba(255, 103, 0, .07); }
.typebtn.active span { color: var(--og); }
.timerow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.timerow .inp { font-size: 12.5px; padding: 8px 10px; }
.descrow { display: flex; gap: 6px; }
.descrow .inp { font-size: 12.5px; padding: 8px 10px; }

/* offline maps */
.progress { height: 8px; border-radius: 4px; background: var(--s2); border: 1px solid var(--bdl); overflow: hidden; margin: 12px 0 4px; }
.progress-fill { height: 100%; width: 0; background: var(--og); transition: width .2s ease; }

/* p2p */
.qrwrap { display: flex; justify-content: center; padding: 10px; background: #fff; border-radius: 12px; margin: 4px 0 10px; }
.qrwrap canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.divider { height: 1px; background: var(--bd); margin: 18px 0 4px; }
.peerline { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.peerdot { width: 9px; height: 9px; border-radius: 5px; background: var(--purple); animation: ddPulse 1.6s infinite; }
#pVideo { width: 100%; border-radius: 12px; margin: 8px 0; max-height: 40vh; object-fit: cover; }

/* ── Map ────────────────────────────────────────────── */
#mapwrap { position: absolute; inset: 0; top: 0; z-index: 10; display: flex; }
#mapwrap.hidden { display: none; }
#map { flex: 1; position: relative; }
.mapengine { overflow: hidden; background: var(--bg); }
.mapengine .map-tiles, .mapengine .map-overlay, .mapengine .map-areas { position: absolute; inset: 0; }
.mapengine .map-areas { width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.mapengine .map-overlay { pointer-events: none; z-index: 3; }
.mapengine .map-overlay .map-pin { pointer-events: auto; }
.map-tile {
  position: absolute; left: 0; top: 0; width: 256px; height: 256px;
  pointer-events: none; will-change: transform;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-tile.missing { opacity: .9; }
.map-attrib {
  position: absolute; right: 4px; bottom: 4px; z-index: 5;
  font-size: 9px; color: var(--txm); background: color-mix(in srgb, var(--bg) 75%, transparent);
  padding: 2px 6px; border-radius: 4px;
}
.map-attrib a { color: var(--txs); text-decoration: none; }
.map-pin {
  position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 3;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4));
}
.map-pin.dim { opacity: .45; }
.pin-queued {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 5px;
  background: var(--warn); border: 2px solid var(--bg); animation: ddPulse 1.4s infinite;
}
.pin-sat {
  position: absolute; left: 50%; top: 100%; width: 9px; height: 9px; border-radius: 5px;
  border: 1.5px solid var(--bg);
}
.map-user { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: 16px; height: 16px; }
.map-user::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: #4285f4; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.map-user .ring { position: absolute; inset: -4px; border-radius: 50%; background: rgba(66, 133, 244, .35); animation: ddRing 2.2s infinite; }
#mapctls {
  position: absolute; right: 12px; top: 12px; z-index: 20;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.map-ctl.wide { padding: 0 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--og); }

@media (min-width: 700px) {
  .cards { max-width: 640px; margin: 0 auto; }
  .searchrow, .pills { max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* ── Affected areas ─────────────────────────────────── */
.haz-sw { display: inline-block; border-radius: 3px; flex-shrink: 0; opacity: .85; }
.haz-row { display: flex; align-items: center; gap: 10px; }
.haz-row .hint { margin: 0; font-family: "JetBrains Mono", monospace; }
.typebtn .haz-sw { margin-bottom: 2px; }
.src-line .haz-sw { margin-right: 2px; }
.drawbar {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 20; max-width: 480px; margin: 0 auto;
  background: var(--s1); border: 1px solid var(--og); border-radius: 12px; padding: 12px 14px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.drawbar.hidden, #mapctls.hidden { display: none; }
.drawbar-t { font-size: 13px; font-weight: 800; }
.drawbar .hint { margin: 2px 0 0; font-family: "JetBrains Mono", monospace; }

/* ── Browse by location ─────────────────────────────── */
.segment { display: flex; gap: 0; margin: 0 14px 8px; border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; }
.seg {
  flex: 1; padding: 8px 10px 7px; background: var(--s1); color: var(--txs); border: none;
  font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.seg.active { background: var(--og); color: #fff; }
.placebar { display: flex; gap: 6px; padding: 0 14px 8px; }
.placebar select {
  flex: 1; min-width: 0; background: var(--s1); color: var(--tx); border: 1px solid var(--bd); border-radius: 8px;
  padding: 8px 6px; font-size: 12px; font-family: inherit; font-weight: 700; outline: none;
}
.placehint { padding: 0 14px; margin: 0 0 6px; }
.group-head {
  font-size: 10px; font-weight: 800; color: var(--txm); text-transform: uppercase; letter-spacing: 1.4px;
  padding: 14px 15px 6px; background: var(--bg); border-bottom: 1px solid var(--bdl);
}
@media (min-width: 700px) {
  .segment, .placebar, .placehint { max-width: 640px; margin-left: auto; margin-right: auto; }
  .segment { max-width: 612px; }
}

/* ── Search: place chips, map-area filter ───────────── */
.suggest { display: flex; gap: 6px; padding: 0 14px; overflow-x: auto; }
.suggest:not(:empty) { padding-bottom: 8px; }
.sugg {
  padding: 6px 12px 5px; border-radius: 20px; border: 1px solid var(--og); background: rgba(255, 103, 0, .08);
  color: var(--og); font-size: 11.5px; font-weight: 800; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit;
}
.areachip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px 8px;
  padding: 7px 10px 7px 12px; border-radius: 10px; border: 1px solid var(--og); background: rgba(255, 103, 0, .08);
  font-size: 12px; font-weight: 800; color: var(--og);
}
.areachip button { background: none; border: none; color: var(--txs); font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit; }
.areapill {
  position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 19;
  display: flex; gap: 6px; white-space: nowrap;
}
.areapill.hidden { display: none; }
.pillbtn {
  height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--bd); background: var(--s1);
  color: var(--tx); font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.pillbtn.primary { background: var(--og); border-color: var(--og); color: #fff; }
@media (min-width: 700px) {
  .suggest, .areachip { max-width: 612px; margin-left: auto; margin-right: auto; }
  .suggest { padding-left: 0; padding-right: 0; }
}

/* ── Hazard confidence + labels ─────────────────────── */
.map-hz {
  position: absolute; transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid; border-radius: 8px;
  padding: 4px 8px 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.map-hz b { font-size: 10.5px; font-weight: 800; }
.map-hz span { font-size: 9px; color: var(--txs); font-family: "JetBrains Mono", monospace; }
.map-hz.conf-low { opacity: .75; border-style: dashed; }
.conf {
  display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--bdl);
  border-radius: 10px; padding: 10px 12px; margin: 4px 0 8px;
}
.conf b { font-size: 13px; }
.conf .hint { margin: 2px 0 0; }
.conf-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.conf-bars span { width: 6px; border-radius: 2px; background: var(--bd); }
.conf-bars span:nth-child(1) { height: 8px; }
.conf-bars span:nth-child(2) { height: 14px; }
.conf-bars span:nth-child(3) { height: 20px; }
.conf-low .conf-bars span:nth-child(1),
.conf-medium .conf-bars span:nth-child(-n+2),
.conf-high .conf-bars span { background: var(--ok); }
.conf-low .conf-bars span:nth-child(1) { background: var(--warn); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 2px; border-bottom: 1px solid var(--bdl); }
.kv span { color: var(--txs); }
.kv b { font-weight: 700; text-align: right; }
.btn[disabled] { opacity: .45; cursor: default; }

/* ── Official (NWS) alerts ──────────────────────────── */
.map-hz.official { border-style: solid; border-width: 1.5px; }
.haz-sw.hatch { background: repeating-linear-gradient(45deg, currentColor 0 2px, transparent 2px 5px); border: 1.5px solid currentColor; opacity: 1; }
.chip.official { background: rgba(56, 189, 248, .14); color: #38bdf8; }
.nws-text { font-size: 12.5px; color: var(--txs); line-height: 1.65; margin-bottom: 8px; user-select: text; -webkit-user-select: text; }
.kv.today b, .kv.today span { color: var(--og); }

/* ── Refresh button ─────────────────────────────────── */
.pill-btn[disabled] { opacity: .4; cursor: default; }
.pill-btn.spin svg { animation: ddSpin .9s linear infinite; }
@keyframes ddSpin { to { transform: rotate(360deg); } }

/* ── Storms, gauges, banners ────────────────────────── */
.map-storm {
  position: absolute; transform: translate(-50%, -130%); z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1.5px solid #fff; border-radius: 8px; padding: 4px 9px 3px;
}
.map-storm b { font-size: 11px; font-weight: 800; color: #fff; }
.map-storm span { font-size: 9.5px; color: var(--txs); font-family: "JetBrains Mono", monospace; }
.map-gauge {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 3px; border-radius: 10px; border: 1.5px solid;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.map-gauge i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.map-gauge span { font-size: 9.5px; font-weight: 800; font-family: "JetBrains Mono", monospace; color: var(--tx); }
.banner {
  margin: 0 14px 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid; font-size: 12px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; width: calc(100% - 28px); font-family: inherit;
}
.banner b { display: block; font-size: 12.5px; margin-bottom: 1px; }
.banner.aid { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .07); color: var(--tx); }
.banner.zone { border-color: rgba(234, 179, 8, .5); background: rgba(234, 179, 8, .07); color: var(--tx); }
.banner .bi { font-size: 16px; line-height: 1.2; }
.chip.full { background: rgba(255, 23, 68, .14); color: var(--bad); }
.chip.standby { background: rgba(255, 171, 0, .14); color: var(--warn); }
@media (min-width: 700px) { .banner { max-width: 612px; margin-left: auto; margin-right: auto; width: auto; display: flex; } }

/* ── Logo + sharing ─────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 8px; }
.brand .logo { flex-shrink: 0; display: block; }
.card-share { color: var(--txs); }
.btn.share-cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 6px;
  background: rgba(255, 103, 0, .12); border: 1.5px solid var(--og); color: var(--og); font-weight: 900;
}
.share-preview { display: flex; justify-content: center; align-items: center; min-height: 160px; margin: 4px 0 12px; }
.share-preview img { width: min(100%, 300px); aspect-ratio: 2 / 3; border-radius: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); display: block; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-chip {
  padding: 9px 14px 8px; border-radius: 20px; border: 1px solid var(--bd); background: var(--s1); color: var(--tx);
  font-size: 12.5px; font-weight: 800; text-decoration: none;
}

/* ── River forecast ─────────────────────────────────── */
.gchart { width: 100%; height: auto; display: block; margin: 10px 0 2px; background: var(--s1); border: 1px solid var(--bdl); border-radius: 10px; }
.gleg { margin-top: 2px; }
.imp { border-left: 3px solid var(--bd); padding: 6px 0 6px 10px; margin: 6px 0; }
.imp.now { border-color: var(--bad); }
.imp.exp { border-color: var(--warn); }
.imp.later { opacity: .6; }
.imp.hidden { display: none; }
.imp-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.imp p { font-size: 12.5px; color: var(--txs); line-height: 1.55; margin-top: 3px; }

.near-row {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 2px; background: none; border: none;
  border-bottom: 1px solid var(--bdl); color: var(--tx); cursor: pointer; text-align: left; font-family: inherit;
}
.near-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-dist { font-size: 11px; color: var(--txm); font-family: "JetBrains Mono", monospace; }
.share-caption { font-size: 12.5px; line-height: 1.5; resize: vertical; }

/* ── Call ahead ─────────────────────────────────────── */
.contact { margin: 4px 0 6px; }
.contact-call { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.contact .btnrow a { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.card-call { color: var(--ok); text-decoration: none; }

/* ── Site sheet v2 ──────────────────────────────────── */
.actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.actgrid .act { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 48px; margin: 0; }
.actgrid .offline-nav.act { flex-direction: column; }
.btn.call { background: rgba(34, 197, 94, .12); border: 1.5px solid var(--ok); color: var(--ok); font-weight: 900; }
.actgrid .share-cta { width: auto; margin: 0; }
.contact-links { font-size: 12.5px; font-weight: 800; margin: 4px 2px 2px; }
.contact-links a, .helpline a { color: var(--og); text-decoration: none; }
.helpline { font-size: 12.5px; color: var(--txs); line-height: 1.6; margin: 8px 2px 0; }
.detail-note { margin: 6px 0; }
.accuracy { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--bdl); }
.accuracy .section-label { margin-top: 4px; }
.pills.wrap { flex-wrap: wrap; padding: 2px 0 8px; }

/* ── Pin clusters ───────────────────────────────────── */
.map-cluster {
  position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: auto; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 5px rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .4);
}
.map-cluster b { font-size: 14px; font-weight: 900; font-family: "JetBrains Mono", monospace; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.cl-dots { position: absolute; bottom: -7px; display: flex; gap: 2px; }
.cl-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bg); display: block; }
.actgrid .act.wide { grid-column: 1 / -1; }

/* ── Site sheet v3: grouped sections ───────────────── */
.dsec { margin-top: 20px; }
.dsec .section-label { margin: 0 0 4px; }
.dsec .kv:last-of-type { border-bottom: 0; }
.detail-note { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg2, rgba(255,255,255,.04)); border: 1px solid var(--bdl); font-size: 13px; line-height: 1.5; }
.amens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.amen { font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 99px; border: 1px solid var(--bdl); color: var(--txs); }
.amen.yes { color: var(--ok); border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }

.find-drc { margin-top: 6px; }

/* ── Warning ↔ gauge links ─────────────────────────── */
.link-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 6px 0; padding: 10px 12px;
  background: var(--bg2, rgba(255,255,255,.04)); border: 1px solid var(--bdl); border-left: 4px solid; border-radius: 10px; color: var(--tx); cursor: pointer; font: inherit; }
.lr-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lr-main b { font-size: 13px; font-weight: 800; }
.lr-main span { font-size: 12px; color: var(--txs); font-weight: 700; }
.lr-go { font-size: 22px; color: var(--txm); line-height: 1; }

/* area alerts: one summary row above the list, opens to the full set */
.area-alerts { margin: 0 14px 8px; padding: 0 12px; border: 1px solid var(--bdl); border-radius: 10px; background: rgba(255,255,255,.03); }
.area-alerts.urgent { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .06); }
.area-alerts > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.area-alerts > summary::-webkit-details-marker { display: none; }
.aa-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aa-main b { font-size: 12.5px; font-weight: 800; }
.area-alerts.urgent .aa-main b { color: #ef4444; }
.aa-main span { font-size: 12px; color: var(--txs); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-main em { font-style: normal; color: var(--txm); }
.area-alerts > summary .lr-go { transition: transform .15s; }
.area-alerts[open] > summary .lr-go { transform: rotate(90deg); }
.area-alerts[open] { padding-bottom: 6px; }
.area-alerts .section-label { margin: 10px 0 2px; }
@media (min-width: 700px) { .area-alerts { max-width: 612px; margin-left: auto; margin-right: auto; } }

/* ── Map controls v2 + Add menu ─────────────────────────
   View controls: top right, identical 44px squares in grouped panels.
   Contributing: the one orange "+ Add" button, bottom right. */
.ctl-group {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--s1); border: 1px solid var(--bd); box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.ctl-group .map-ctl {
  width: 44px; height: 44px; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  color: var(--tx); font-size: 22px; font-weight: 600; padding: 0;
}
.ctl-group .map-ctl + .map-ctl { border-top: 1px solid var(--bd); }
.ctl-group .map-ctl:active { background: var(--s2); }
@media (hover: hover) { .ctl-group .map-ctl:hover { background: var(--s2); } }

#fab { width: auto; padding: 0 20px 0 16px; gap: 6px; border-radius: 28px; height: 52px; transition: transform .15s; }
#fab .fab-plus { font-size: 26px; font-weight: 700; line-height: 1; transition: transform .2s; display: inline-block; }
#fab .fab-label { font-size: 15px; font-weight: 900; letter-spacing: .02em; }
#fab.open .fab-plus { transform: rotate(45deg); }
.addmenu {
  position: fixed; right: 16px; bottom: calc(136px + env(safe-area-inset-bottom)); z-index: 61;
  width: min(320px, calc(100vw - 32px)); background: var(--s1); border: 1px solid var(--bd); border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5); padding: 6px; display: flex; flex-direction: column;
  transform-origin: bottom right; animation: amIn .14s ease-out;
}
.addmenu.hidden { display: none; }
@keyframes amIn { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.am-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 12px; background: transparent;
  color: var(--tx); text-align: left; cursor: pointer; font: inherit; }
.am-item:active { background: var(--s2); }
@media (hover: hover) { .am-item:hover { background: var(--s2); } }
.am-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 103, 0, .14); color: var(--og); }
.am-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.am-tx b { font-size: 14px; font-weight: 900; }
.am-tx span { font-size: 12px; color: var(--txs); font-weight: 600; line-height: 1.35; }

/* -- Map search (address / city / ZIP) + searched-place pin -- */
.mapsearch { position: absolute; top: 12px; left: 12px; right: 68px; z-index: 21; max-width: 460px; display: flex;
  background: var(--s1); border: 1px solid var(--bd); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.mapsearch input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--tx); padding: 0 12px; font: 600 14px/1 inherit; font-family: inherit; outline: none; }
.mapsearch input::-webkit-search-cancel-button { filter: invert(.6); }
.ms-go { width: 44px; height: 44px; border: 0; border-left: 1px solid var(--bd); background: transparent; color: var(--og); font-size: 22px; cursor: pointer; }
.ms-res { position: absolute; top: 50px; left: 0; right: 0; background: var(--s1); border: 1px solid var(--bd); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); padding: 4px; max-height: 50vh; overflow: auto; }
.ms-res.hidden { display: none; }
.ms-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--tx); cursor: pointer; font: inherit; }
.ms-item b { font-size: 13.5px; font-weight: 800; }
.ms-item span { font-size: 11.5px; color: var(--txs); }
.ms-item:active { background: var(--s2); }
@media (hover: hover) { .ms-item:hover { background: var(--s2); } }
.ms-msg { margin: 0; padding: 12px; font-size: 12.5px; color: var(--txs); }
.map-searchpin { position: absolute; transform: translate(-50%, -100%); z-index: 6; pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.map-searchpin .sp-dot { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 5px solid #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); order: 2; }
.map-searchpin .sp-label { order: 1; margin-bottom: 4px; background: #111; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* -- Zoomed-out count bubbles (one per grid square not loaded) -- */
.map-cellcount { position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: auto; cursor: pointer;
  min-width: 40px; height: 30px; padding: 0 10px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(10, 10, 13, .88); border: 2px solid var(--og); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.map-cellcount b { color: #fff; font: 900 13px/1 "JetBrains Mono", monospace; }
.pillbtn.static { cursor: default; font-weight: 700; white-space: normal; text-align: center; max-width: 70vw; }

/* -- Service schedules: days of week + date ranges (add form + display) -- */
.svc-when { font-size: 12px; font-weight: 700; color: var(--txs); margin: 4px 0 0; }
.svc-hours b.warn { color: var(--warn); }
.schedsum { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 8px 0 2px; padding: 9px 11px;
  border: 1px dashed var(--bd); border-radius: 10px; background: transparent; color: var(--tx); font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; }
.schedsum.open { border-style: solid; border-color: var(--og); }
.schedsum .ss-edit { color: var(--og); font-weight: 800; flex-shrink: 0; }
.sched { padding: 4px 2px 6px; }
.field-label.sm { font-size: 10.5px; margin: 10px 0 6px; }
.pill.sm { padding: 6px 11px; font-size: 11.5px; }
.daychips { display: flex; gap: 6px; margin-top: 8px; }
.daychip { flex: 1; min-width: 0; height: 36px; border-radius: 9px; border: 1px solid var(--bd); background: transparent; color: var(--txs); font: 800 13px/1 inherit; font-family: inherit; cursor: pointer; }
.daychip.on { background: rgba(255, 103, 0, .14); border-color: var(--og); color: var(--og); }
label.mini { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 10.5px; font-weight: 800; color: var(--txs); text-transform: uppercase; letter-spacing: .04em; }
label.mini .inp { text-transform: none; letter-spacing: 0; }
.linkbtn { border: 0; background: transparent; color: var(--og); font: inherit; font-size: 12px; font-weight: 800; padding: 8px 2px 2px; cursor: pointer; }

/* -- Place the pin (Add a resource, step 1): fixed center pin + bar -- */
.pickpin { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 22; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pickpin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 4px; margin-left: -4px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.pickbar { display: none; position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 22; max-width: 480px; margin: 0 auto;
  background: var(--s1); border: 1px solid var(--og); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
#mapwrap.picking .pickpin, #mapwrap.picking .pickbar { display: block; }
#mapwrap.picking .map-pin, #mapwrap.picking .map-cluster { opacity: .55; }
.linkbtn.inline { padding: 0 0 0 6px; font-size: 11.5px; text-transform: none; }

/* -- Reported flooding (NWS storm reports) -- */
.map-report { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 4px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.map-report svg { display: block; flex-shrink: 0; }
.map-report span { font-size: 10px; font-weight: 800; color: #fff; background: #1d4ed8; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

/* -- Recent flooding (ended warnings) -- */
.map-hz.recentfl { border-color: #60a5fa; border-style: dashed; opacity: .92; }
.map-hz.recentfl b { color: #93c5fd; }
.rf-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 2px; border-bottom: 1px solid var(--bdl); font-size: 12.5px; }
.rf-row b { font-weight: 800; }
.rf-row span { color: var(--txs); font-weight: 600; }
.rf-row a { color: var(--og); text-decoration: none; }

/* -- Recent flooding: one banner / pill instead of shapes -- */
.banner.recentfl { border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .08); color: var(--tx); }
.banner.recentfl b { color: #93c5fd; }

/* -- Road closures -- */
.map-closure { position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.map-closure i { width: 20px; height: 20px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .5); position: relative; display: block; }
.map-closure i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: #fff; border-radius: 2px; }
.map-closure.lane i { background: #f97316; }
.map-closure.sm i { width: 12px; height: 12px; border-width: 1.5px; }
.map-closure.sm i::after { left: 2px; right: 2px; height: 2px; margin-top: -1px; }
.map-closure span { font-size: 10px; font-weight: 800; color: #fff; background: rgba(17, 17, 17, .85); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
