/* StreetRadar.live (brand 5). Look: asphalt black, caution yellow, hot red, paper cream. Square corners. */
:root {
  --ink: #121212;
  --ink-2: #1A1A1A;
  --ink-3: #0C0C0C;
  --line: #2F2F2F;
  --paper: #F2EBDD;
  --muted: #C9C2B6;
  --muted-2: #8C877F;
  --yellow: #F5E400;
  --yellow-hi: #FFF27A;
  --red: #FF4D2E;
  --f-display: 'Anton', 'Impact', sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --f-hand: 'Permanent Marker', cursive;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--paper); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hi); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.mono { font-family: var(--f-mono); }
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; }
.sr-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.y { color: var(--yellow); }
.r { color: var(--red); }

/* ---------- logo ---------- */
.sr-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-family: var(--f-display); font-size: 28px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.sr-logo:hover { color: var(--paper); }
.sr-logo svg { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn-y, .btn-ink, .btn-line, .btn-red, .btn-paper {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-family: var(--f-display); font-size: 19px; text-transform: uppercase; letter-spacing: 1px; line-height: 1;
  padding: 14px 20px; border: 3px solid transparent; border-radius: 0; white-space: nowrap;
}
.btn-y { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-y:hover { background: var(--yellow-hi); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-ink:hover { color: var(--yellow-hi); }
.btn-red { background: var(--red); color: var(--ink); border-color: var(--red); }
.btn-red:hover { color: var(--ink); filter: brightness(1.08); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { color: var(--ink); }
.btn-line { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-line:hover { color: var(--yellow); border-color: var(--yellow); }
.on-paper .btn-line { color: var(--ink); border-color: var(--ink); }
.btn-sm { font-size: 16px; padding: 10px 14px; }
button:disabled { opacity: .6; cursor: wait; }
.tag { display: inline-block; font: 700 12px var(--f-mono); text-transform: uppercase; padding: 4px 8px; }
.tag-live { background: var(--red); color: var(--ink); }
.tag-live::before { content: '● '; }
.tag-when { border: 2px solid var(--yellow); color: var(--yellow); padding: 2px 8px; }

/* =====================================================================
   LANDING (/)
   ===================================================================== */
.lp-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.lp-header { border-bottom: 2px solid #2A2A2A; }
.lp-header .lp-wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font: 400 14px var(--f-mono); text-transform: uppercase; }
.lp-nav a { color: var(--paper); text-decoration: none; }
.lp-nav a:hover { color: var(--yellow); }
.lp-nav a.go { background: var(--yellow); color: var(--ink); padding: 12px 18px; font-weight: 700; border: 2px solid var(--yellow); }

.lp-hero { padding-top: 64px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lp-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lp-badges { display: flex; flex-wrap: wrap; gap: 10px; font: 400 13px var(--f-mono); text-transform: uppercase; }
.lp-badges .dash { border: 2px dashed var(--yellow); color: var(--yellow); padding: 6px 12px; }
.lp-badges .hot { background: var(--red); color: var(--ink); padding: 8px 12px; font-weight: 700; }
.lp-h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 8vw, 112px); line-height: .92; text-transform: uppercase; letter-spacing: .5px; }
.lp-lede { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.lp-search { display: flex; flex-wrap: wrap; border: 3px solid var(--paper); max-width: 620px; }
.lp-search .field { flex: 1 1 200px; display: flex; flex-direction: column; padding: 10px 16px; min-width: 0; }
.lp-search .field + .field { border-left: 3px solid var(--paper); }
.lp-search label { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--yellow); }
.lp-search input { background: transparent; border: 0; color: var(--paper); font: 600 17px var(--f-body); padding: 6px 0; outline: none; min-width: 0; }
.lp-search input::placeholder { color: var(--muted-2); }
.lp-search button { flex: 0 0 auto; min-height: 64px; background: var(--yellow); color: var(--ink); border: 0; padding: 0 28px; font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.lp-search button:hover { background: var(--yellow-hi); }

.lp-radar-col { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.lp-radar { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--yellow); text-decoration: none;
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(0deg, transparent 0 46px, #262626 46px 50px), repeating-linear-gradient(90deg, transparent 0 62px, #262626 62px 66px); }
.lp-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, rgba(245,228,0,.38), rgba(245,228,0,0) 70deg); animation: sr-sweep 6s linear infinite; }
.lp-radar .ring { position: absolute; border: 2px solid rgba(245,228,0,.45); border-radius: 50%; }
.lp-radar .ring.a { inset: 16%; } .lp-radar .ring.b { inset: 33%; }
.lp-radar .ax { position: absolute; background: rgba(245,228,0,.3); }
.lp-radar .ax.v { left: 50%; top: 0; bottom: 0; width: 2px; } .lp-radar .ax.h { top: 50%; left: 0; right: 0; height: 2px; }
.lp-radar .you { position: absolute; left: calc(50% - 9px); top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); }
.blip { position: absolute; display: flex; align-items: center; gap: 6px; }
.blip .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--red)); border: 3px solid var(--ink); flex-shrink: 0; }
.blip .lbl { background: var(--ink); color: var(--paper); font: 700 12px var(--f-mono); padding: 4px 8px; border: 2px solid var(--c, var(--red)); text-transform: uppercase; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.blip.small .dot { width: 12px; height: 12px; }
@keyframes sr-sweep { to { transform: rotate(360deg); } }

.lp-marquee { background: var(--yellow); color: var(--ink); transform: rotate(-1.5deg); margin: 0 -40px; padding: 14px 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); white-space: nowrap; overflow: hidden; font-family: var(--f-display); font-size: 34px; text-transform: uppercase; letter-spacing: 1px; }
.lp-marquee span { display: inline-block; padding-right: 1ch; animation: sr-marquee 40s linear infinite; }
@keyframes sr-marquee { to { transform: translateX(-100%); } }

.lp-sec { padding-top: 96px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }
.lp-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lp-h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .95; text-transform: uppercase; }
.lp-note { margin: 0; max-width: 420px; font: 400 14px/1.6 var(--f-mono); color: var(--muted); }
.lp-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.scene { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 3px solid var(--paper); color: var(--paper); text-decoration: none; background: var(--ink-2); }
.scene:hover { color: var(--paper); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); }
.scene .num { font: 700 13px var(--f-mono); color: var(--yellow); }
.scene .name { font-family: var(--f-display); font-size: 40px; text-transform: uppercase; line-height: 1; }
.scene .desc { font-size: 16px; line-height: 1.5; color: var(--muted); }
.scene .count { font: 700 12px var(--f-mono); text-transform: uppercase; margin-top: auto; }
.scene.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.scene.yellow .num, .scene.red .num { color: var(--ink); }
.scene.yellow .desc { color: #2A2A2A; }
.scene.red { background: var(--red); border-color: var(--red); color: var(--ink); }
.scene.red .desc { color: #1F1F1F; }
.scene.dashed { border-style: dashed; border-color: var(--yellow); background: var(--ink); }
.scene.yellow:hover, .scene.red:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--paper); }

.lp-live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lp-live-head .lp-h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1; }
.hand { font-family: var(--f-hand); color: var(--yellow); text-transform: none; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.pcard { padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 3px solid var(--paper); background: var(--paper); color: var(--ink); }
.pcard.dark { background: var(--ink-2); color: var(--paper); border-color: var(--yellow); }
.pcard.dashed { background: var(--ink-2); color: var(--paper); border-style: dashed; border-color: var(--paper); }
.pcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 12px var(--f-mono); text-transform: uppercase; }
.pcard h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 32px; text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.pcard .kind { margin: 0; font: 400 13px var(--f-mono); color: #3A3A3A; text-transform: uppercase; }
.pcard.dark .kind, .pcard.dashed .kind { color: var(--muted); }
.pcard p { margin: 0; font-size: 15px; line-height: 1.45; }
.pcard.dark p, .pcard.dashed p { color: var(--muted); }
.pcard .acts { display: flex; gap: 8px; margin-top: auto; }
.pcard .acts a { flex: 1; font-size: 18px; padding: 12px; }
.pcard:not(.dark):not(.dashed) .btn-line { color: var(--ink); border-color: var(--ink); }

.lp-tip { background: var(--paper); color: var(--ink); border-top: 6px solid var(--ink); }
.lp-tip .lp-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.lp-tip-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lp-tip-copy .pill { align-self: flex-start; background: var(--ink); color: var(--yellow); font: 700 13px var(--f-mono); text-transform: uppercase; padding: 6px 12px; }
.lp-tip-copy h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: .92; text-transform: uppercase; }
.lp-tip-copy h2 mark { background: var(--yellow); color: inherit; padding: 0 8px; }
.lp-tip-copy p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 480px; }
.lp-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-apps span { border: 3px solid var(--ink); padding: 10px 16px; font-family: var(--f-display); font-size: 22px; text-transform: uppercase; }
.lp-steps { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lp-steps li { display: flex; gap: 20px; align-items: flex-start; background: var(--ink); color: var(--paper); padding: 24px; }
.lp-steps .n { font-family: var(--f-display); font-size: 56px; line-height: .9; color: var(--yellow); }
.lp-steps li:last-child .n { color: var(--red); }
.lp-steps strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.lp-steps span.d { font-size: 16px; line-height: 1.5; color: var(--muted); }

.lp-listed { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lp-listed-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lp-listed-copy .hand { margin: 0; font-size: 30px; color: var(--red); transform: rotate(-2deg); }
.lp-listed-copy h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: .9; text-transform: uppercase; }
.lp-listed-copy p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.lp-listed-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-listed-copy .acts a { font-size: 24px; padding: 18px 28px; }
.lp-feats { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lp-feats li { border: 3px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; }
.lp-feats b { font: 700 12px var(--f-mono); color: var(--yellow); text-transform: uppercase; }

.lp-footer { border-top: 3px solid var(--yellow); background: var(--ink-3); }
.lp-footer .lp-wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font: 400 13px var(--f-mono); color: var(--muted); }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; text-transform: uppercase; }

@media (max-width: 640px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-nav { gap: 14px; font-size: 12px; }
  .lp-nav .opt { display: none; }
  .lp-hero { padding-top: 36px; gap: 36px; }
  .lp-search .field + .field { border-left: 0; border-top: 3px solid var(--paper); }
  .lp-search button { flex: 1 1 100%; min-height: 56px; }
  .lp-marquee { font-size: 26px; }
  .lp-sec { padding-top: 64px; }
  .blip .lbl { font-size: 10px; max-width: 110px; }
}

/* =====================================================================
   MAP APP (/map)
   ===================================================================== */
body.sr-app { overflow: hidden; height: 100vh; height: 100dvh; }
.app-top { position: fixed; z-index: 1001; left: 0; right: 0; top: 0; padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(var(--ink) 70%, rgba(18,18,18,0)); pointer-events: none; }
.app-top > * { pointer-events: auto; }
.app-row { display: flex; align-items: center; gap: 10px; }
.app-row .sr-logo { font-size: 24px; }
.app-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--ink); border: 3px solid var(--paper); padding-left: 14px; height: 52px; }
.app-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); font: 600 16px var(--f-body); outline: none; }
.app-search input::placeholder { color: var(--muted-2); }
.app-search button { width: 52px; height: 46px; background: var(--yellow); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.app-search button.near { background: transparent; width: 44px; }
.app-acct { display: flex; gap: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 14px; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); font: 700 12px var(--f-mono); text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--c); }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.chip.live[aria-pressed="true"] { background: var(--red); border-color: var(--ink); }

#sr-map { position: fixed; inset: 0; background: #1B1B1B; z-index: 1; }
.leaflet-container { font-family: var(--f-body); background: #1B1B1B; }
.leaflet-tile-pane { filter: grayscale(.85) contrast(1.05) brightness(.95); }
.leaflet-control-attribution { background: rgba(18,18,18,.8) !important; color: var(--muted-2) !important; font: 400 10px var(--f-mono); }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--line) !important; border-radius: 0 !important; }
.leaflet-bar { border: 2px solid var(--paper) !important; border-radius: 0 !important; }

/* pins: a label tag over a dot, like the mockup */
.pin { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translate(-50%, -100%); position: absolute; left: 0; top: 0; }
.pin .lbl { background: var(--c); color: var(--ink); font: 700 11px var(--f-mono); padding: 4px 8px; border: 2px solid var(--ink); text-transform: uppercase; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); position: relative; }
.pin.live .dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--red); animation: sr-ping 1.6s ease-out infinite; }
.pin.off .lbl { background: var(--ink); color: var(--c); border-color: var(--c); }
.pin.sel .lbl { outline: 3px solid var(--yellow); outline-offset: 1px; }
.pin.sel { z-index: 10; }
@keyframes sr-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.marker-cluster { background: rgba(245,228,0,.3) !important; border-radius: 50% !important; }
.marker-cluster div { background: var(--yellow) !important; color: var(--ink) !important; font: 700 13px var(--f-mono) !important; border: 3px solid var(--ink); }
.marker-cluster span { line-height: 24px; }

.map-note { position: fixed; z-index: 1003; left: 50%; transform: translateX(-50%); top: 128px; background: var(--ink); border: 2px solid var(--yellow); color: var(--paper); padding: 8px 14px; font: 700 12px var(--f-mono); text-transform: uppercase; display: none; max-width: calc(100vw - 32px); text-align: center; }

/* bottom sheet: the selected spot */
.sheet { position: fixed; z-index: 1002; left: 0; right: 0; bottom: 76px; background: var(--paper); color: var(--ink); border-top: 4px solid var(--ink); padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sheet .grab { align-self: center; width: 48px; height: 5px; background: var(--ink); border: 0; padding: 0; cursor: pointer; }
.sheet .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 11px var(--f-mono); text-transform: uppercase; }
.sheet .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 60px; height: 60px; flex: 0 0 60px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 26px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sheet h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sub { font: 400 12px var(--f-mono); color: #3A3A3A; text-transform: uppercase; }
.sheet .tl { font-size: 14px; line-height: 1.4; }
.sheet .acts { display: flex; gap: 8px; }
.sheet .acts a { flex: 1; height: 48px; padding: 0 10px; }
.sheet .tools { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; align-self: flex-start; }
.sheet .tools button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); border: 3px solid var(--ink); cursor: pointer; padding: 0; }
.sheet .tools button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.sheet .tools { flex-direction: row; }
.sheet .next { border-top: 2px dashed var(--ink); padding-top: 10px; display: flex; justify-content: space-between; gap: 8px; font: 700 12px var(--f-mono); text-transform: uppercase; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.sheet .empty { font: 700 13px var(--f-mono); text-transform: uppercase; text-align: center; padding: 6px 0; }
.sheet.mini .tl, .sheet.mini .acts, .sheet.mini .next, .sheet.mini .who { display: none; }

/* list panel */
.list { position: fixed; z-index: 1002; left: 0; right: 0; top: 0; bottom: 76px; background: var(--ink); overflow-y: auto; padding: 128px 0 16px; display: none; }
body.show-list .list { display: block; }
body.show-list .sheet { display: none; }
.list-head { padding: 0 16px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.list-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.list-head span { font: 700 12px var(--f-mono); text-transform: uppercase; color: var(--muted); text-align: right; }
.litem { display: flex; gap: 12px; padding: 14px 16px; border-top: 2px dashed #3A3A3A; cursor: pointer; align-items: flex-start; }
.litem:hover, .litem.active { background: var(--ink-2); }
.litem .avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 22px; border: 2px solid var(--c); }
.litem .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.litem .top { display: flex; justify-content: space-between; gap: 8px; font: 700 11px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.litem h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.litem .k { font: 400 12px var(--f-mono); text-transform: uppercase; color: var(--c); }
.litem p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.litem .acts { display: flex; gap: 8px; margin-top: 6px; }
.list-empty { padding: 32px 20px; text-align: center; font: 700 13px/1.6 var(--f-mono); text-transform: uppercase; color: var(--muted); }
.list-foot { padding: 20px 16px; font: 400 12px/1.6 var(--f-mono); color: var(--muted); border-top: 2px dashed #3A3A3A; }

/* bottom nav */
.bnav { position: fixed; z-index: 1004; left: 0; right: 0; bottom: 0; height: 76px; background: var(--ink-3); border-top: 3px solid var(--yellow); display: flex; align-items: stretch; padding-bottom: env(safe-area-inset-bottom); }
.bnav button, .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); background: none; border: 0; text-decoration: none; font: 700 10px var(--f-mono); text-transform: uppercase; cursor: pointer; padding: 0; }
.bnav [aria-current="true"] { color: var(--yellow); }
.bnav .golive span { width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; background: var(--red); border: 4px solid var(--ink-3); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-display); font-size: 15px; line-height: 1; text-transform: uppercase; }
.bnav .golive.is-live span { background: var(--yellow); }

/* desktop: list on the left, sheet floats bottom-right, no bottom nav */
@media (min-width: 900px) {
  .app-top { left: 400px; background: none; padding-top: 16px; }
  .app-top .sr-logo { display: none; }
  #sr-map { left: 400px; }
  .list { display: block !important; right: auto; width: 400px; bottom: 0; padding-top: 0; border-right: 3px solid var(--yellow); }
  .list-brand { display: flex !important; padding: 18px 16px; border-bottom: 2px solid #2A2A2A; margin-bottom: 14px; }
  body.show-list .sheet { display: flex; }
  .sheet { left: auto; right: 20px; bottom: 20px; width: 380px; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
  .sheet .grab { display: none; }
  .bnav { display: none; }
  .map-note { top: 136px; left: calc(50% + 200px); }
  .desk-only { display: inline-flex !important; }
  .leaflet-bottom.leaflet-right { right: 0; }
}
.list-brand { display: none; align-items: center; justify-content: space-between; }
.desk-only { display: none !important; }
@media (max-width: 899px) {
  .app-row .sr-logo .word { display: none; }
  .leaflet-control-zoom { display: none; }
}

/* =====================================================================
   DIALOGS (Bootstrap modals, restyled)
   ===================================================================== */
.modal-content { background: var(--ink); color: var(--paper); border: 3px solid var(--paper); border-radius: 0; }
.modal-header { border-bottom: 3px solid var(--yellow); }
.modal-footer { border-top: 2px dashed #3A3A3A; }
.modal-title { font-family: var(--f-display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1; }
.btn-close { filter: invert(1); opacity: .8; }
.form-control, .form-select { background: var(--ink-2); border: 2px solid var(--paper); border-radius: 0; color: var(--paper); font: 600 16px var(--f-body); }
.form-control:focus, .form-select:focus { background: var(--ink-2); color: var(--paper); border-color: var(--yellow); box-shadow: none; }
.form-control::placeholder { color: var(--muted-2); }
.form-label, .lbl-mono { font: 700 11px var(--f-mono); text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; display: block; }
.form-check-input { border-radius: 0 !important; background-color: var(--ink-2); border: 2px solid var(--paper); }
.form-check-input:checked { background-color: var(--yellow); border-color: var(--yellow); }
.form-switch .form-check-input { border-radius: 2em !important; }
.form-check-label { font-weight: 700; }
.note { font: 400 12px/1.6 var(--f-mono); color: var(--muted); }
.type-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick label { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; border: 3px solid var(--line); padding: 12px 6px; text-align: center; cursor: pointer; font-family: var(--f-display); font-size: 17px; text-transform: uppercase; line-height: 1; }
.type-pick label .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--c); }
.type-pick input:checked + label { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.type-pick input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
#sr-spot-map { height: 220px; border: 3px solid var(--paper); }
.box { border: 3px solid var(--line); padding: 14px; }
.box.live { border-color: var(--red); }
.msg { font: 700 12px var(--f-mono); text-transform: uppercase; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-backdrop.show { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .lp-radar .sweep, .lp-marquee span, .pin.live .dot::after, .tag-live::before { animation: none; }
  .scene:hover { transform: none; }
}
.marker-cluster div { width: 30px; height: 30px; margin: 5px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.marker-cluster { width: 40px !important; height: 40px !important; }
