@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(vendor/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(vendor/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #0b0d10;
  --glass: rgba(16, 19, 24, 0.82);
  --card: rgba(255, 255, 255, 0.04);
  --card-h: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f4f6f8;
  --mute: #8b94a1;
  --accent: #c6f432;
  --accent-ink: #0b0d10;
  --reliable: #c6f432;
  --mixed: #ffb547;
  --refused: #ff5d6c;
  --new: #6b7380;
  --r: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

#map { position: fixed; inset: 0; background: var(--bg); }
.leaflet-control-attribution { background: rgba(11,13,16,.6) !important; color: var(--mute) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--mute) !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { background: var(--glass) !important; color: var(--ink) !important; border-color: var(--line) !important; backdrop-filter: blur(16px); }

/* ---------- Pins ---------- */
.pin { width: 34px; height: 34px; display: grid; place-items: center; }
.pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--c), 0 0 24px var(--c); transition: transform .2s; }
.pin.active i { transform: scale(1.5); }
.pin:hover i { transform: scale(1.3); }
.pin.reliable { --c: var(--reliable); } .pin.mixed { --c: var(--mixed); }
.pin.refused { --c: var(--refused); } .pin.new { --c: var(--new); }
.pin.official i { background: var(--bg); border: 3px solid var(--c); box-shadow: 0 0 14px var(--c); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #4aa3ff; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(74,163,255,.25); }

/* ---------- Panel ---------- */
.panel { position: fixed; z-index: 500; top: 16px; left: 16px; bottom: 16px; width: 400px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; }
.handle { display: none; }
.brand { padding: 22px 22px 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo svg { width: 32px; height: 32px; color: var(--accent); stroke-width: 2.4; }
.tagline { margin: 4px 0 0; color: var(--mute); font-size: 14px; }

.view { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 10px 16px 16px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 14px; transition: border-color .2s; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; color: var(--mute); flex: none; }
.search input[type=search] { flex: 1; background: none; border: 0; border-radius: 0; outline: 0; color: var(--ink); font: inherit; padding: 13px 0; }
.search input::placeholder { color: var(--mute); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; transition: all .15s; }
.chip:hover { background: var(--card-h); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.meta { display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: 12.5px; padding: 8px 4px; }
#count[data-demo]::after { content: "  ·  demo data"; color: var(--mixed); }
.vbtn:disabled, .primary:disabled { opacity: .5; cursor: wait; }
.link { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.link.on::before { content: "✓ "; }

.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.item:hover { background: var(--card-h); }
.item.active { border-color: var(--accent); }
.item:active { transform: scale(.99); }
.ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); flex: none; }
.item .body { flex: 1; min-width: 0; }
.item h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item p { margin: 2px 0 0; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { text-align: right; flex: none; }
.score b { display: block; font-size: 16px; font-weight: 700; }
.score small { color: var(--mute); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.reliable { --c: var(--reliable); } .mixed { --c: var(--mixed); } .refused { --c: var(--refused); } .new { --c: var(--new); }
.empty { color: var(--mute); text-align: center; padding: 30px 10px; font-size: 14px; }

/* ---------- Ads ---------- */
.ad { position: relative; border-radius: var(--r); border: 1px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.02); padding: 14px 14px 14px 16px; }
.ad-tag { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ad-body { display: flex; flex-direction: column; gap: 2px; }
.ad-body strong { font-size: 13.5px; } .ad-body small { color: var(--mute); font-size: 12px; }
.ad.ad-live { border-style: solid; padding: 22px 8px 8px; min-height: 100px; }
.ad-banner { margin-top: 10px; flex: none; }
.foot { color: var(--mute); font-size: 11.5px; padding: 10px 4px 0; flex: none; }
.foot a { color: var(--ink); }

/* ---------- Detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 13px; font-weight: 500; padding: 4px 0 12px; }
.back:hover { color: var(--ink); }
.detail { overflow-y: auto; flex: 1; min-height: 0; }
.detail h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.detail .where { color: var(--mute); font-size: 14px; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat { background: var(--card); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.stat small { color: var(--mute); font-size: 11.5px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,93,108,.35); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--reliable); border-radius: 6px; }

.vote { background: linear-gradient(135deg, rgba(198,244,50,.1), rgba(198,244,50,.02)); border: 1px solid rgba(198,244,50,.2); border-radius: var(--r); padding: 16px; margin: 6px 0 18px; }
.vote h4 { margin: 0 0 10px; font-size: 14px; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vbtn { padding: 13px; border-radius: 13px; font-weight: 700; font-size: 14px; transition: transform .1s, filter .15s; }
.vbtn:active { transform: scale(.97); }
.vbtn.y { background: var(--accent); color: var(--accent-ink); }
.vbtn.n { background: rgba(255,93,108,.14); color: var(--refused); }
.vote textarea { margin-top: 10px; }
.vote .done { color: var(--accent); font-weight: 600; font-size: 14px; }

.policy { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.policy-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; }
.policy p { margin: 8px 0 6px; font-size: 14px; }
.policy small { color: var(--mute); font-size: 12px; }
.policy a { color: var(--accent); text-decoration: none; font-weight: 600; }
.qs { display: flex; flex-direction: column; gap: 8px; }
.q { color: var(--mute); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.qs .seg { margin-top: 0; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; margin-top: 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.qnote { color: var(--mute); font-size: 12px; margin: 2px 0 0; }
.qnote a { color: var(--ink); }
.qerr { color: var(--refused); font-size: 13px; font-weight: 600; margin: 0; }
.vote .actions { margin-top: 10px; }
.detailed { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(198,244,50,.12); padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
dialog { max-height: calc(100vh - 24px); overflow-y: auto; }
.section-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 18px 0 8px; font-weight: 600; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.review:last-child { border: 0; }
.rv-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.rv-ico.y { background: rgba(198,244,50,.15); color: var(--reliable); }
.rv-ico.n { background: rgba(255,93,108,.15); color: var(--refused); }
.review p { margin: 0; font-size: 14px; }
.review small { color: var(--mute); font-size: 12px; }
.directions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-weight: 600; text-decoration: none; color: var(--ink); margin-top: 6px; }
.directions:hover { background: var(--card-h); }

/* ---------- Controls ---------- */
.map-controls { position: fixed; z-index: 500; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ctrl { width: 46px; height: 46px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); display: grid; place-items: center; box-shadow: var(--shadow); }
.ctrl svg { width: 20px; }
.ctrl:hover { color: var(--accent); }
.leaflet-top.leaflet-right { top: 70px; }
.fab { position: fixed; z-index: 500; right: 20px; bottom: 28px; display: flex; align-items: center; gap: 8px; padding: 15px 22px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 40px rgba(198,244,50,.35); transition: transform .15s; }
.fab span { font-size: 20px; line-height: 1; }
.fab:hover { transform: translateY(-2px); }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-weight: 600; padding: 11px 18px; border-radius: 999px; transition: all .25s; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.pick-banner { position: fixed; z-index: 600; top: 16px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.pick-banner .link { color: var(--accent-ink); text-decoration: underline; }
body.picking #map { cursor: crosshair; }

/* ---------- Dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 24px; background: #12151a; color: var(--ink); padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
dialog form { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
dialog h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sub { margin: -6px 0 4px; color: var(--mute); font-size: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }
input:not([type=radio]), select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: 0; width: 100%; resize: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: #12151a; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.seg button { padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: -4px; }
.yesno input { display: none; }
.yesno label { flex-direction: row; justify-content: center; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 14px; }
#okY:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#okN:checked + label { background: rgba(255,93,108,.18); color: var(--refused); border-color: var(--refused); }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 20px; border-radius: 12px; }
.ghost { padding: 12px 16px; border-radius: 12px; color: var(--mute); font-weight: 600; }
.how { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.how strong { color: var(--ink); margin-right: 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 4px; flex: none; box-shadow: 0 0 12px var(--c); }

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 760px) {
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 52vh; border-radius: 26px 26px 0 0; border-bottom: 0; transition: height .3s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .panel.min { height: 168px; }
  .panel.max { height: 88vh; }
  .handle { display: grid; place-items: center; width: 100%; padding: 10px 0 0; }
  .handle span { width: 40px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }
  .brand { padding: 6px 18px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .logo { font-size: 19px; } .logo svg { width: 26px; height: 26px; }
  .tagline { font-size: 12px; }
  .fab { bottom: calc(52vh + 14px); right: 14px; padding: 12px 18px; font-size: 14px; transition: bottom .3s cubic-bezier(.2,.8,.2,1); }
  body.sheet-min .fab { bottom: 182px; } body.sheet-max .fab { opacity: 0; pointer-events: none; }
  .map-controls { top: 12px; right: 12px; }
  .toast { bottom: calc(52vh + 80px); }
  .foot { display: none; }
  .ad-banner { padding: 10px 14px; }
  .ad-banner small { display: none; }
}
