/* LitterPin: mobile first, one breakpoint at 900 px. System fonts (self-hosted none needed). */
:root {
  --brand: #1f7a47; --brand-d: #145c34; --brand-l: #e6f4ec; --ink: #17201b; --muted: #59625d; --bg: #f6f7f4; --card: #fff; --line: #dfe4df;
  --s-reported: #c62828; --s-claimed: #a35f00; --s-cleaned: #1f7a47; --s-confirmed: #145c34; --s-pro: #6a3fb5; --s-gone: #6b7280;
  --r: 14px; --sh: 0 2px 10px rgba(0,0,0,.12); --top: 56px; --nav: 64px;
  --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow: hidden; }
a { color: var(--brand-d); }
h1 { font-size: 1.375rem; margin: 0 0 8px; line-height: 1.25; }
h1 small { font-size: .875rem; font-weight: 400; color: var(--muted); }
h2 { font-size: 1.0625rem; margin: 20px 0 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small, small { font-size: .875rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--brand); font-weight: 700; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; background: var(--card); border-bottom: 1px solid var(--line); z-index: 1000; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.125rem; min-height: 44px; }
.top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sel { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 6px; max-width: 96px; }
.lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .875rem; }
.who { display: flex; align-items: center; gap: 6px; min-height: 44px; max-width: 132px; border: 1px solid var(--line); border-radius: 22px; background: var(--brand-l); padding: 0 10px 0 4px; cursor: pointer; }
.who-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; flex: none; }

/* stage */
.stage { position: fixed; top: var(--top); bottom: calc(var(--nav) + var(--sb)); left: 0; right: 0; }
.mapwrap, #map { position: absolute; inset: 0; }
.mapwrap { z-index: 0; }
#map { background: #e9ece6; }
.panel { display: none; position: absolute; inset: 0; z-index: 900; overflow-y: auto; background: var(--bg); padding: 14px 16px 96px; -webkit-overflow-scrolling: touch; }
.panel.open { display: block; }
.panel.full { position: fixed; inset: 0; z-index: 1500; padding: 16px; }
.map-ui { position: absolute; top: 10px; left: 10px; right: 60px; z-index: 800; display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card); border-radius: 22px; box-shadow: var(--sh); overflow: hidden; }
.seg button { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; background: none; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.pill { min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--sh); cursor: pointer; white-space: nowrap; }
.legend { position: absolute; left: 10px; bottom: 42px; z-index: 800; background: var(--card); border-radius: 12px; box-shadow: var(--sh); padding: 0 12px; font-size: .875rem; }
.legend summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.legend ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.demo-note { position: absolute; left: 10px; right: 10px; bottom: 4px; z-index: 800; margin: 0; font-size: .8125rem; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 8px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaflet-control-attribution { font-size: 11px; }
.leaflet-bottom.leaflet-right { bottom: 30px; }

/* pins */
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, #c62828); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin-c { transform: rotate(45deg); font-size: 18px; line-height: 1; }
.pin-s { position: absolute; right: -8px; top: -8px; transform: rotate(45deg); width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--c); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--c); }
.cl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.s-reported { --c: var(--s-reported); } .s-claimed { --c: var(--s-claimed); } .s-cleaned { --c: var(--s-cleaned); } .s-confirmed { --c: var(--s-confirmed); } .s-pro { --c: var(--s-pro); } .s-gone { --c: var(--s-gone); }
.pin.s-gone, .pin.s-confirmed { opacity: .75; }
path.cm { stroke: #fff; stroke-width: 2; fill-opacity: 1; }
path.cm.s-reported { fill: var(--s-reported); } path.cm.s-claimed { fill: var(--s-claimed); } path.cm.s-cleaned, path.cm.s-confirmed { fill: var(--s-cleaned); } path.cm.s-pro { fill: var(--s-pro); } path.cm.s-gone { fill: var(--s-gone); }

/* status badge (colour + shape + word) */
.st { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--c); background: #fff; border: 1px solid var(--c); border-radius: 12px; padding: 1px 8px; white-space: nowrap; }
.st-reported { --c: var(--s-reported); } .st-claimed { --c: var(--s-claimed); } .st-cleaned { --c: var(--s-cleaned); } .st-confirmed { --c: var(--s-confirmed); } .st-pro { --c: var(--s-pro); } .st-gone { --c: var(--s-gone); }
.demo-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: #fff4cc; color: #6b4e00; border: 1px solid #e3c766; border-radius: 6px; padding: 0 6px; }
.ai-tag { position: absolute; left: 8px; bottom: 8px; font-size: .75rem; font-weight: 700; background: rgba(0,0,0,.72); color: #fff; border-radius: 6px; padding: 1px 6px; }

/* bottom nav + FAB */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + var(--sb)); padding-bottom: var(--sb); display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; background: var(--card); border-top: 1px solid var(--line); z-index: 1000; }
.bottom a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .8125rem; min-height: 44px; }
.bottom a span { font-size: 1.25rem; line-height: 1; }
.bottom a[aria-current="page"] { color: var(--brand-d); font-weight: 700; }
.dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--s-reported); color: #fff; font-size: .6875rem; display: grid; place-items: center; padding: 0 4px; }
.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--sb)); z-index: 1100; width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 2.5rem; line-height: 1; box-shadow: 0 4px 14px rgba(20,92,52,.45); border: 4px solid #fff; }
body[data-route="report"] .fab, body[data-route="onboarding"] .fab { display: none; }

/* panel content */
.ph-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ph-head h1 { margin: 0; flex: 1; }
.back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); font-size: 1.25rem; cursor: pointer; flex: none; }
.tag { color: var(--muted); margin: 0 0 10px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.card { display: flex; gap: 12px; align-items: center; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-height: 64px; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.thumb.ic { display: grid; place-items: center; background: var(--brand-l); font-size: 1.75rem; }
.cbody { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.cbody small { color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; padding: 10px 16px; margin: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 700; text-align: center; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:disabled { opacity: .6; }
.btn.ghost { background: var(--card); }
.btn.sm { min-height: 44px; width: auto; margin: 0; padding: 6px 12px; font-size: .9375rem; }
.btn small { display: block; font-weight: 400; color: var(--muted); }
.sticky { position: sticky; bottom: 8px; box-shadow: var(--sh); }
.link { background: none; border: 0; color: var(--brand-d); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
.err { color: var(--s-reported); font-weight: 700; }
.stub { background: #fff4cc; border: 1px solid #e3c766; border-radius: 10px; padding: 8px 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; font-size: .9375rem; }
.ph { position: relative; margin: 8px 0; border-radius: var(--r); overflow: hidden; background: #e7ebe6; }
.ph img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.ph.small img { max-height: 160px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba .ph img { aspect-ratio: 1; }
.ba-l { display: grid; grid-template-columns: 1fr 1fr; margin: 0; text-align: center; }
.note { font-style: italic; background: var(--card); border-left: 4px solid var(--brand); padding: 8px 12px; border-radius: 6px; }
.safety { background: #fff1f0; border: 2px solid var(--s-reported); border-radius: var(--r); padding: 10px 14px; margin: 10px 0; }
.safety p { margin: 6px 0 0; }
.who-l { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; }
.who-l dt { color: var(--muted); } .who-l dd { margin: 0; }
.acts { margin: 6px 0; }
.claim { background: var(--brand-l); border-radius: var(--r); padding: 8px 12px; margin-bottom: 4px; }
.q { font-weight: 700; margin: 10px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 14px; border-radius: 24px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.chips.sm .chip { min-height: 44px; }
.chip.on, .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.chip input { width: 20px; height: 20px; accent-color: var(--brand); }
.chip span { font-size: 1.25rem; }
.steps { color: var(--muted); font-size: .875rem; margin: 0 0 8px; }
.shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; border: 3px dashed var(--brand); border-radius: 18px; background: var(--brand-l); cursor: pointer; text-align: center; padding: 16px; }
.shot.sm { min-height: 130px; }
.shot .cam { font-size: 3rem; }
.shot b { font-size: 1.125rem; } .shot small { color: var(--muted); }
.chosen { font-weight: 700; }
.mini-wrap { position: relative; margin: 8px 0; }
.mini { height: 300px; border-radius: var(--r); border: 1px solid var(--line); }
.crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.25rem; z-index: 500; pointer-events: none; }
details.more { margin: 10px 0; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--brand-d); list-style: none; }
details.more > summary.btn { color: var(--ink); }
.form { display: grid; gap: 10px; margin: 8px 0; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .9375rem; }
input:not([type=radio]):not([type=checkbox]):not([type=range]), textarea, select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c2bb; border-radius: 10px; background: #fff; font-weight: 400; }
input[type=range] { width: 100%; min-height: 44px; accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 4px; }
.kinds { display: grid; gap: 8px; }
.kind { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
label.kind { flex-direction: row; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-weight: 400; }
label.kind:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
label.kind input { width: 22px; height: 22px; accent-color: var(--brand); }
label.kind span { display: grid; } label.kind small { color: var(--muted); }
.inline-f { display: flex; gap: 8px; margin: 12px 0; }
.inline-f .btn { width: auto; margin: 0; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin: 10px 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: center; }
.stats b { display: block; font-size: 1.5rem; color: var(--brand-d); }
.stats span { font-size: .875rem; color: var(--muted); }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.invite .btn { width: auto; margin: 0; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.125rem; letter-spacing: .08em; }
.members { list-style: none; padding: 0; display: grid; gap: 6px; }
.members li { display: flex; align-items: center; gap: 8px; }
.push { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 12px; margin: 12px 0; }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.feed a { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); min-height: 56px; }
.feed li.unread a { border-left: 4px solid var(--brand); }
.feed small { display: block; color: var(--muted); }
.fi { font-size: 1.375rem; }
.thanks { background: var(--brand-l); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.bars { list-style: none; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; gap: 8px; align-items: center; font-size: .9375rem; }
.bar { height: 14px; background: #e3e8e3; border-radius: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 7px; }
.sts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.job .job-a { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 4px; }
.hist ol { padding-left: 20px; } .hist summary, .legend summary { font-weight: 700; }
.hist summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.mod { display: flex; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }

/* onboarding */
.ob { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100%; }
.ob .skip { align-self: flex-end; }
.ob-img { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--brand-l); }
.ob-img img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 8px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #c7cfc9; }
.dots span.on { background: var(--brand); width: 26px; border-radius: 5px; }
.ob h1 { font-size: 1.625rem; text-align: center; }
.lead { font-size: 1.0625rem; text-align: center; color: #333d37; margin: 0 0 8px; }
.ob .kinds { grid-template-columns: 1fr 1fr; }
.ob .kind.btn { margin: 0; align-items: flex-start; }

/* sheets + toast */
.sheet-bg { position: fixed; inset: 0; z-index: 2000; background: rgba(10,20,14,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--sb)); }
.sheet h2 { margin-top: 0; padding-right: 48px; }
.sheet .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 1.125rem; }
.sheet .big { font-size: 3rem; text-align: center; margin: 0; }
.stack { display: grid; }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btns .btn { margin: 0; flex-direction: column; }
.demo-b.on { border-color: var(--brand); background: var(--brand-l); }
.or { text-align: center; color: var(--muted); margin: 14px 0 8px; }
.biz-b { flex-direction: column; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + 24px + var(--sb)); transform: translateX(-50%); z-index: 3000; background: #17201b; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--sh); max-width: 90vw; transition: opacity .4s; }
.toast.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* desktop: side panel + map */
@media (min-width: 900px) {
  :root { --nav: 0px; }
  .stage { bottom: 0; display: grid; grid-template-columns: 440px 1fr; }
  .panel { display: block; position: relative; inset: auto; border-right: 1px solid var(--line); padding: 18px 22px 110px; }
  .mapwrap { position: relative; }
  .bottom { left: 0; right: auto; width: 440px; height: 64px; bottom: 0; border-right: 1px solid var(--line); }
  .fab { left: auto; right: 28px; transform: none; bottom: 40px; }
  .panel.full { left: 0; right: 0; background: rgba(246,247,244,.97); padding-top: 40px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 20px; }
  .who { max-width: 220px; }
  .sel { max-width: 140px; }
  .demo-note { right: auto; max-width: 70%; }
  .mini { height: 260px; }
}
.dot[hidden] { display: none; }
.panel.full { top: var(--top); }
body[data-route="onboarding"] .bottom { display: none; }
body[data-route="onboarding"] .stage { bottom: 0; }
.sel { min-width: 84px; padding-right: 2px; }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; }
.stats span { overflow-wrap: anywhere; }

/* ---------- v2: big Mark button, bottom sheets over a visible map, compact banners, intro video, sign-up ---------- */
.bottom { grid-template-columns: repeat(4, 1fr); }
.fab-gap { display: none; }
.fab { width: auto; height: 56px; padding: 0 24px 0 18px; border-radius: 28px; font-size: 1.125rem; font-weight: 800; gap: 8px; display: flex; align-items: center; bottom: calc(var(--nav) + 14px + var(--sb)); border: 3px solid #fff; background: #2E9E5B; white-space: nowrap; }
.fab span { font-size: 1.375rem; }
body[data-route="mark"] .fab, body[data-route="item"] .fab, body[data-route="report"] .fab { display: none; }
.menu-b { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 1.25rem; cursor: pointer; }
.menu { display: grid; gap: 6px; }
.mi { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; text-align: left; width: 100%; }
.demo-note { display: flex; align-items: center; gap: 6px; right: auto; max-width: calc(100% - 20px); padding: 2px 2px 2px 8px; white-space: normal; }
.demo-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip-x { flex: none; width: 36px; height: 36px; min-width: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: .9375rem; color: var(--muted); }
@media (pointer: coarse) { .chip-x { width: 44px; height: 44px; } }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; }
.stepper li { display: flex; align-items: center; gap: 6px; flex: 1; padding: 6px 8px; border-radius: 22px; background: #eef1ee; color: var(--muted); font-weight: 700; font-size: .9375rem; }
.stepper li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid currentColor; font-size: .8125rem; }
.stepper li.on { background: #2E9E5B; color: #fff; } .stepper li.on b { color: #2E9E5B; border-color: #fff; }
.stepper li.done { background: var(--brand-l); color: var(--brand-d); }
.report .stepper { margin: 4px 0 12px; }
.mk-row { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.mk-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.mk-thumb.ic { display: grid; place-items: center; background: var(--brand-l); font-size: 1.75rem; }
.mk-hint { margin: 0; font-size: 1.0625rem; font-weight: 700; color: #1F6F78; }
.cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; align-items: center; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cats .chip { flex: none; padding: 4px 12px; font-size: .9375rem; }
.cats-l { flex: none; font-size: .875rem; color: var(--muted); font-weight: 700; }
.btn.big { min-height: 60px; font-size: 1.1875rem; border-radius: 16px; }
.tip { display: inline-block; margin: 6px 0; border-radius: 16px; background: #fff1f0; border: 1px solid var(--s-reported); font-size: .9375rem; max-width: 100%; }
.tip summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; padding: 0 12px; color: var(--s-reported); font-weight: 700; list-style: none; }
.tip[open] { display: block; padding-bottom: 8px; } .tip p { margin: 4px 12px; }
.banner { margin: 6px 0; padding: 6px 10px; border-radius: 10px; font-size: .9375rem; }
.banner.warn { background: #fff8e1; border: 1px solid #f4b942; }
.banner a { font-weight: 700; }
.map-hint { position: absolute; top: 10px; left: 10px; right: 64px; z-index: 850; max-width: 460px; background: #1F6F78; color: #fff; font-weight: 700; font-size: 1.0625rem; text-align: center; border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh); pointer-events: none; }
body.marking .map-ui, body.marking .legend, body.marking .demo-note { display: none; }
.pin-new { --c: #2E9E5B; width: 48px; height: 48px; animation: lp-bob 1.2s ease-in-out 2; }
@keyframes lp-bob { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: #c7cfc9; margin: 0 auto 6px; }
.ish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.ish .ph, .ish .ba { margin: 0; }
.ish-ph img { aspect-ratio: 1; max-height: 220px; }
.ph.noimg { display: grid; place-items: center; aspect-ratio: 1; font-size: 3rem; background: var(--brand-l); }
.ish-acts { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.ish-acts .btn.big { margin: 0; height: 100%; max-height: 140px; flex-direction: column; }
.ish-small { display: grid; gap: 6px; }
.ish-small .btn { width: 100%; font-size: .875rem; font-weight: 600; }
.done-l { margin: 0; font-weight: 700; color: var(--brand-d); }
.thanks-c { text-align: center; } .thanks-c h1 { font-size: 1.75rem; } .thanks-c .link { margin: 4px auto; }
.big { font-size: 3rem; margin: 0; }
.pts { display: inline-block; background: #fff4cc; border-radius: 16px; padding: 4px 12px; font-weight: 700; }
.nudge { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 6px 4px 6px 12px; border-radius: 14px; background: #e7f3f4; border: 1px solid #1F6F78; font-size: .9375rem; font-weight: 600; }
.nudge span { flex: 1; } .nudge .btn { flex: none; }
.cta { background: #e7f3f4; border: 1px solid #b8d8db; border-radius: var(--r); padding: 4px 14px 10px; margin: 10px 0; }
.rank { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.rank li.me { border-color: #2E9E5B; background: var(--brand-l); }
.rk { width: 32px; text-align: center; font-weight: 800; font-size: 1.125rem; flex: none; }
.rn { flex: 1; min-width: 0; display: grid; } .rn small { color: var(--muted); }
.rank b { font-size: 1.125rem; color: #1F6F78; }
.oauth { gap: 10px; } .oauth:disabled { opacity: .55; cursor: not-allowed; }
.oa-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; background: #fff; border: 1px solid var(--line); }
.oa-facebook .oa-ic { background: #1877F2; color: #fff; border-color: #1877F2; }
.oauth .soon { font-weight: 400; }
.tabs { display: flex; width: 100%; margin: 4px 0; } .tabs button { flex: 1; }
.danger { color: var(--s-reported); }
.intro { position: fixed; inset: 0; z-index: 4000; background: rgba(10,20,14,.88); display: grid; place-items: center; padding: 12px; }
.intro-box { width: min(100%, 960px); }
.intro video { display: block; width: 100%; max-height: calc(100vh - 140px); background: #000; border-radius: 14px; }
.intro-bar { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.intro-bar .btn { width: auto; min-width: 120px; }
.intro-note { color: #dfe7e2; font-size: .8125rem; text-align: center; margin: 6px 0 0; }
body.legal { overflow: auto; background: #FBF7EC; }
.legal-m { max-width: 720px; margin: 0 auto; padding: 16px 18px 48px; }
@media (max-width: 899px) {
  .panel.sheetp { top: auto; bottom: 0; max-height: 62%; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.18); padding: 8px 14px 14px; }
  .panel.sheetp .ph-head h1 { font-size: 1.1875rem; }
}
@media (min-width: 900px) {
  .bottom { grid-template-columns: repeat(4, 1fr); }
  .fab { right: 28px; left: auto; bottom: 32px; height: 64px; font-size: 1.25rem; }
}
.form label.kind { display: flex; flex-direction: row; align-items: center; }
@media (min-width: 900px) { .grab { display: none; } }

/* toast fix (22 Oct): show toasts under the header so they never cover the bottom sheet's main button */
.toast { top: calc(var(--top) + 12px + env(safe-area-inset-top, 0px)); bottom: auto; pointer-events: none; text-align: center; }

/* v3: settings gear, distance filter, online count, neighbourhood feed, settings form */
.gear { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 1.125rem; text-decoration: none; flex: none; }
.pill.scope { padding: 0 10px; font: inherit; color: var(--ink); max-width: 150px; }
.online { margin: 0; display: flex; flex-basis: auto; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: var(--sh); font-size: .8125rem; font-weight: 700; color: var(--brand-d); }
.online[hidden] { display: none; }
body.marking .online { display: none; }
.seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; flex: 1; }
.seg a[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.nf-sc { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 700; }
.nf-sc .sel { max-width: none; flex: 1; }
.set fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); display: grid; gap: 8px; }
.set legend { font-weight: 700; padding: 0 4px; }
.set .sel { max-width: none; width: 100%; }
.set .row, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.set .row label { display: flex; align-items: center; gap: 6px; }
.set input[type=time] { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: inherit; }
.set .lbl { margin: 4px 0 0; font-weight: 700; font-size: .9375rem; }
.set .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.set .chip, .form .set .chip { display: inline-flex; flex-direction: row; min-height: 44px; font-weight: 600; padding: 6px 12px; }
.tog { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 600 !important; }
.tog input { width: 22px; height: 22px; accent-color: var(--brand); }
.set [hidden] { display: none !important; }
.btn.danger { color: #a3261b; }
@media (max-width: 420px) { .pill.scope { max-width: 118px; } }

/* FAB fix (22 Oct): the floating "Mark litter" button covered settings toggles and forms; show it only on map, feed and ranking */
body[data-route="settings"] .fab, body[data-route="me"] .fab, body[data-route="groups"] .fab, body[data-route="group"] .fab,
body[data-route="join"] .fab, body[data-route="business"] .fab, body[data-route="city"] .fab { display: none; }
