:root {
  --bg: #0e0518;
  --bg2: #170a28;
  --ink: #fbf7ff;
  --mute: #b4a3d6;
  --dim: #7d6c9e;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);
  --glass2: rgba(255, 255, 255, .08);
  --pink: #ff3d8b;
  --lime: #d4ff3a;
  --violet: #8b5cff;
  --cyan: #3de8ff;
  --amber: #ffb547;
  --r: 22px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; padding-bottom: 84px; }
a { color: var(--cyan); }
h2 { font: 800 clamp(28px, 5vw, 52px)/1.02 var(--display); letter-spacing: -.03em; margin: 8px 0 10px; }
h3 { font: 700 15px var(--display); letter-spacing: .01em; margin: 0 0 12px; }
h3 small { font: 500 12px var(--body); color: var(--mute); }
.dot { color: var(--pink); }
.lede { color: var(--mute); max-width: 62ch; font-size: 16px; margin: 0 0 18px; }
.small { font-size: 13px; color: var(--mute); }
code { background: var(--glass2); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: var(--lime); }
[hidden] { display: none !important; }

/* drifting neon blobs + grain */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: var(--pink); top: -20vmax; left: -15vmax; }
.blobs i:nth-child(2) { background: var(--violet); bottom: -25vmax; right: -10vmax; animation-delay: -8s; }
.blobs i:nth-child(3) { background: #00b3a4; top: 30%; left: 45%; width: 30vmax; height: 30vmax; opacity: .16; animation-delay: -15s; }
.blobs::after { content: ''; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .blobs i, .ticker-track { animation: none !important; } }

/* header */
.top { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 18px; padding: 12px 20px; backdrop-filter: blur(18px) saturate(1.4); background: rgba(14, 5, 24, .72); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 800 19px var(--display); letter-spacing: -.02em; }
.logo svg { color: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.logo b { color: var(--lime); font-weight: 900; }
.cities { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.cities button { flex: none; border: 1px solid var(--line); background: var(--glass); color: var(--ink); padding: 8px 14px; border-radius: 999px; font: 600 13px var(--body); cursor: pointer; transition: .2s; }
.cities button:hover { border-color: var(--pink); }
.cities button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 0 24px rgba(255, 61, 139, .45); }
.cities button .n { opacity: .55; margin-left: 4px; font-size: 11px; }
.stamp { color: var(--dim); font-size: 12px; white-space: nowrap; }

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 61, 139, .12), rgba(139, 92, 255, .12)); }
.ticker-track { display: inline-flex; gap: 42px; padding: 8px 0; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: var(--ink); text-decoration: none; font-size: 13px; }
.ticker-track a b { color: var(--lime); font-family: var(--display); margin-right: 6px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

main { padding: 20px; max-width: 1500px; margin: 0 auto; }
.view { animation: rise .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* radar */
.radar { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; height: calc(100vh - 210px); min-height: 560px; }
.map-wrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 61, 139, .35); }
#map, #zmap { width: 100%; height: 100%; background: #110820; }
.layers { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.layers label { background: rgba(14, 5, 24, .82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; user-select: none; }
.layers input { accent-color: var(--pink); margin: 0 4px 0 0; vertical-align: -2px; }
.feed { display: flex; flex-direction: column; min-height: 0; }
.filters { display: grid; gap: 10px; margin-bottom: 8px; }
input, select, textarea { background: var(--glass); border: 1px solid var(--line); color: var(--ink); border-radius: 14px; padding: 11px 14px; font: 15px var(--body); outline: none; transition: border .2s, box-shadow .2s; width: 100%; }
select { width: auto; cursor: pointer; }
select option { background: var(--bg2); }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 61, 139, .15); }
textarea { resize: vertical; line-height: 1.5; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.range { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); flex: 1; white-space: nowrap; }
.range output { color: var(--lime); font-family: var(--display); font-size: 13px; min-width: 2.4em; }
input[type=range] { -webkit-appearance: none; appearance: none; padding: 0; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--pink)); border: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 0; box-shadow: 0 0 14px var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--glass); color: var(--mute); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--body); cursor: pointer; transition: .18s; user-select: none; }
.chip:hover { color: var(--ink); border-color: var(--violet); }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 6px 20px -6px var(--pink); }
.chip.lime.on { background: var(--lime); border-color: var(--lime); color: #170a28; box-shadow: 0 6px 20px -6px var(--lime); }
.chip .x { margin-left: 6px; opacity: .7; }
.count { font-size: 12px; color: var(--dim); margin: 4px 2px 8px; letter-spacing: .04em; text-transform: uppercase; }
.cards { overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.feed .cards { flex: 1; min-height: 0; }

.card { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 10px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; position: relative; }
.card:hover, .card.hl { transform: translateX(4px); border-color: rgba(255, 61, 139, .6); background: var(--glass2); }
.card .ph { width: 96px; height: 76px; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, var(--violet), var(--pink)); display: grid; place-items: center; font-size: 28px; }
.card h4 { margin: 0 0 3px; font: 600 14px/1.25 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12.5px; color: var(--mute); }
.card .price { font: 700 14px var(--display); color: var(--lime); }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; background: rgba(139, 92, 255, .2); color: #d8c9ff; letter-spacing: .02em; }
.tag.hot { background: rgba(255, 61, 139, .22); color: #ffc2da; }
.tag.money { background: rgba(212, 255, 58, .16); color: var(--lime); }
.tag.new { background: var(--cyan); color: #04212a; font-weight: 700; }
.ring { --p: 50; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--pink)) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); position: relative; font: 800 14px var(--display); }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg2); }
.ring span { position: relative; }

/* leaflet skin */
.leaflet-container { font-family: var(--body); }
.dark-tiles { filter: invert(1) hue-rotate(200deg) brightness(.82) contrast(1.1) saturate(.6); }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; }
.leaflet-popup-content b { font-family: var(--display); color: var(--lime); }
.leaflet-control-zoom a { background: var(--bg2) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(14, 5, 24, .7) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--mute) !important; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 18px var(--glow, var(--pink)); transition: transform .2s; }
.pin span { transform: rotate(45deg); font: 800 11px var(--display); color: #0e0518; }
.pin.big { transform: rotate(-45deg) scale(1.35); z-index: 999; }
.zone-label { background: none; border: 0; box-shadow: none; color: var(--lime); font: 700 11px var(--display); text-shadow: 0 0 8px #000, 0 0 2px #000; white-space: nowrap; }
.zone-label::before { display: none; }

/* location, near me, directions */
.locate { position: absolute; z-index: 500; top: 86px; left: 10px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.locate:hover, .locate.on { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px rgba(61, 232, 255, .45); }
.locate.busy { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(61, 232, 255, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 18px rgba(61, 232, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 232, 255, 0); } }
.near-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dual { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.dual output { color: var(--lime); font: 700 13px var(--display); white-space: nowrap; min-width: 5.5em; }
.dual-track { position: relative; flex: 1; height: 22px; }
.dual-track input { position: absolute; inset: 8px 0 auto; pointer-events: none; background: none; }
.dual-track input:first-child { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.dual-track input::-webkit-slider-thumb { pointer-events: auto; }
.dual-track input::-moz-range-thumb { pointer-events: auto; }
.dual.off { opacity: .4; }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input { width: 7.5em; padding: 8px 10px; font-size: 14px; }
.card .dist { color: var(--cyan); font-weight: 700; }
.route-panel { position: absolute; z-index: 600; top: 12px; right: 12px; width: min(330px, calc(100% - 70px)); max-height: calc(100% - 70px); overflow-y: auto; background: rgba(23, 10, 40, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font-size: 13px; }
.route-panel h4 { margin: 0 0 4px; font: 700 14px var(--display); padding-right: 24px; }
.route-panel .big { font: 800 20px var(--display); color: var(--lime); }
.route-panel ol { margin: 8px 0 0; padding-left: 18px; color: var(--mute); }
.route-panel li { margin: 4px 0; }
.route-panel .x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--mute); font-size: 18px; cursor: pointer; }
.nav-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.nav-apps a, .nav-apps button { justify-content: flex-start; }
.mode-seg { margin-top: 8px; }

/* swipe */
.swipe-head { text-align: center; }
.swipe-head p { color: var(--mute); }
.deck { position: relative; width: min(420px, 92vw); height: 540px; margin: 10px auto 0; }
.sw { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); touch-action: none; user-select: none; cursor: grab; transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); will-change: transform; }
.sw.drag { transition: none; cursor: grabbing; }
.sw img, .sw .noimg { width: 100%; height: 58%; object-fit: cover; display: block; pointer-events: none; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.sw .noimg { display: grid; place-items: center; font-size: 80px; }
.sw .body { padding: 16px 20px; }
.sw h4 { margin: 0 0 6px; font: 700 18px/1.2 var(--display); }
.sw .ring { position: absolute; top: 14px; right: 14px; width: 62px; height: 62px; font-size: 18px; }
.sw .stampx { position: absolute; top: 40px; font: 900 34px var(--display); padding: 4px 14px; border: 4px solid; border-radius: 12px; opacity: 0; transform: rotate(-14deg); }
.sw .stampx.like { left: 20px; color: var(--lime); }
.sw .stampx.nope { right: 20px; color: var(--pink); transform: rotate(14deg); }
.sw .why { font-size: 13px; color: var(--mute); margin-top: 8px; }
.swipe-btns { display: flex; justify-content: center; gap: 22px; margin: 22px 0 30px; }
.sb { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass2); font-size: 26px; cursor: pointer; transition: .2s; color: var(--ink); }
.sb:hover { transform: scale(1.12); }
.sb.no:hover { background: var(--pink); }
.sb.yes { color: var(--lime); }
.sb.yes:hover { background: var(--lime); color: var(--bg); }
.sb.super { width: 54px; height: 54px; margin-top: 6px; color: var(--cyan); }
.sub { margin-top: 10px; }
.empty { text-align: center; color: var(--mute); padding: 60px 20px; border: 2px dashed var(--line); border-radius: 28px; position: absolute; inset: 0; display: grid; place-items: center; }

/* zones / panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.panel.glow { border-color: rgba(212, 255, 58, .35); box-shadow: 0 0 0 1px rgba(212, 255, 58, .08), 0 30px 60px -30px rgba(212, 255, 58, .25); }
.form { display: grid; gap: 10px; }
.label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 6px; }
.zone-map-wrap { height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.zgeo { display: flex; gap: 8px; }
.seg { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--mute); padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 500 13px var(--body); }
.seg button.on { background: var(--violet); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; padding: 11px 18px; border-radius: 999px; font: 700 14px var(--body); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px var(--pink); }
.btn.ghost { background: var(--glass2); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.big { padding: 16px 28px; font-size: 16px; margin: 6px 0 10px; background: var(--lime); color: var(--bg); }
.zone { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.zone:last-child { border: 0; }
.zone .ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--glass2); }
.zone .nm { flex: 1; }
.zone .nm small { display: block; color: var(--dim); font-size: 12px; }
.zone button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 18px; }
.zone button:hover { color: var(--pink); }
.rec { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border: 0; }
.rec .nm { font-weight: 700; }
.rec .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rec .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink), var(--lime)); border-radius: 99px; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.rec .why { grid-column: 1 / -1; font-size: 12.5px; color: var(--mute); }
.rec .ages { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
.rec .ages i { width: 8px; background: var(--cyan); border-radius: 2px; opacity: .8; }

/* match */
.match-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; margin-bottom: 22px; }
.match-box textarea { font-size: 17px; background: transparent; border: 0; padding: 4px; box-shadow: none; }
#aiOut { white-space: pre-wrap; }

/* events */
.timeline { margin-top: 18px; display: grid; gap: 28px; }
.month h3 { font: 900 22px var(--display); color: var(--pink); letter-spacing: -.02em; position: sticky; top: 112px; background: linear-gradient(var(--bg) 70%, transparent); padding: 6px 0; z-index: 2; }
.evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ev { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; position: relative; overflow: hidden; }
.ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vc, var(--violet)); }
.ev .d { font: 700 12px var(--display); color: var(--lime); padding-right: 96px; }
.ev h4 a { text-decoration: none; }
.ev h4 a:hover { color: var(--pink) !important; }
.ev h4 { margin: 4px 0; font: 700 15px/1.25 var(--body); }
.ev p { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.ev p b { color: var(--ink); font-weight: 600; }
.ev .top-r { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; align-items: center; }
.ev .fit { font: 800 13px var(--display); }
.vibe { font-size: 11px; padding: 2px 9px; border-radius: 99px; font-weight: 700; }
.vibe.classy { background: rgba(212, 255, 58, .18); color: var(--lime); }
.vibe.mixed { background: rgba(61, 232, 255, .16); color: var(--cyan); }
.vibe.rowdy { background: rgba(255, 61, 139, .2); color: #ff9cc4; }
.agebar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.agebar i:nth-child(1) { background: var(--pink); }
.agebar i:nth-child(2) { background: var(--violet); }
.agebar i:nth-child(3) { background: var(--cyan); }
.agebar i:nth-child(4) { background: var(--lime); }
.tog { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; cursor: pointer; }
.tog input { width: auto; accent-color: var(--pink); }

/* money */
.sliders { display: grid; gap: 14px; }
.sl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--mute); }
.sl output { font: 700 13px var(--display); color: var(--ink); }
.sl input { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.kpi { background: var(--glass2); border-radius: 16px; padding: 12px 14px; }
.kpi .v { font: 800 20px var(--display); letter-spacing: -.02em; }
.kpi .k { font-size: 12px; color: var(--mute); }
.kpi.good .v { color: var(--lime); }
.kpi.bad .v { color: var(--pink); }
.chart { height: 300px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mute); margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.opt { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.opt .ty { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); font-weight: 700; }
.opt h4 { margin: 4px 0 6px; font: 700 15px var(--body); }
.opt p { margin: 0 0 6px; font-size: 13px; color: var(--mute); }
.opt .fit { color: var(--lime); }
.opt a { font-size: 12.5px; }
.case { border-left: 3px solid var(--lime); padding: 4px 0 4px 14px; margin: 12px 0; }
.case b { font-family: var(--display); font-size: 14px; }
.case p { margin: 4px 0; color: var(--mute); font-size: 13.5px; }
.steps li { margin: 6px 0; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; font-size: 13px; }
.src { background: var(--glass2); border-radius: 12px; padding: 8px 12px; }
.src.bad { color: var(--pink); }
.rules-block h3 { margin-top: 18px; color: var(--lime); }
.rules-block .opt h4 { font-size: 14px; }
.strategy { background: linear-gradient(135deg, rgba(255, 61, 139, .14), rgba(139, 92, 255, .14)); border: 1px solid rgba(255, 61, 139, .3); border-radius: 18px; padding: 14px 18px; margin-top: 12px; }
.strategy li { margin: 6px 0; }

/* bottom tabs */
.tabs { position: fixed; z-index: 1001; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(23, 10, 40, .82); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 13px; border-radius: 999px; color: var(--mute); text-decoration: none; font: 600 11px var(--body); transition: .2s; flex: none; }
.tabs a span { font-size: 18px; line-height: 1; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--ink); color: var(--bg); }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 2, 10, .6); backdrop-filter: blur(6px); display: grid; place-items: end center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { width: min(720px, 100vw); max-height: 88vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 28px 28px 0 0; padding: 22px; animation: up .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-body img.hero { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; }
.sheet-body h3 { font-size: 20px; margin: 14px 0 6px; }
.sheet-body .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.sheet-body ul { padding-left: 18px; color: var(--mute); }
.toast { position: fixed; z-index: 3000; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--lime); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .radar { grid-template-columns: 1fr; height: auto; }
  .map-wrap { height: 46vh; min-height: 300px; }
  .feed .cards { max-height: none; overflow: visible; }
  .split { grid-template-columns: 1fr; }
  .stamp { display: none; }
  main { padding: 14px 16px; }
  .top { padding: 10px 16px; gap: 10px; }
  .logo span { display: none; }
  .month h3 { top: 96px; }
}
@media (max-width: 520px) {
  .card { grid-template-columns: 72px 1fr auto; }
  .card .ph { width: 72px; height: 64px; }
  .ring { width: 44px; height: 44px; font-size: 12px; }
  .tabs a { padding: 6px 9px; }
  .deck { height: 500px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* place picker */
.place-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-on { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; background: rgba(212, 255, 58, .08); border: 1px solid rgba(212, 255, 58, .3); border-radius: 999px; padding: 4px 6px 4px 12px; }
.place-on .pl-name { color: var(--lime); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14em; }
.place-on .range { min-width: 0; }
.pl-x { border: 0; background: var(--glass2); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex: none; }
.picker { display: grid; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.picker .pk-tabs { justify-self: start; }
.pk-body { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.pk-res { display: grid; gap: 4px; }
.pk-h { font: 600 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 8px 0 2px; }
.pk-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: var(--glass); color: var(--ink); border-radius: 14px; padding: 8px 10px; cursor: pointer; font: 500 14px var(--body); }
.pk-item:hover, .pk-item:focus-visible { border-color: var(--violet); background: var(--glass2); outline: none; }
.pk-ico { width: 1.6em; text-align: center; flex: none; }
.pk-nm { flex: 1; min-width: 0; }
.pk-nm small { display: block; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-n { color: var(--lime); font: 700 12px var(--display); }
.chip .pk-n { color: inherit; opacity: .75; margin-left: 2px; }
.pk-tree details { margin-left: 4px; }
.pk-tree details details { margin-left: 12px; border-left: 1px dashed var(--line); padding-left: 8px; }
.pk-tree summary { cursor: pointer; padding: 6px 4px; font-weight: 700; list-style-position: inside; }
.pk-all { justify-self: start; margin-bottom: 4px; }
.place-on .range input { min-width: 60px; }
@media (max-width: 520px) {
  .place-on { flex-basis: 100%; }
  .place-on .pl-name { max-width: 9em; }
  .place-on .range { font-size: 0; gap: 6px; }
  .place-on .range output { font-size: 12px; min-width: 3.8em; }
}
