/* KerbAlert */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/overpass.woff2') format('woff2');
}
:root {
  --green: #12935A;
  --green-press: #0D7A49;
  --pin: #3FBF74;
  --pin-edge: #2A9E5A;
  --green-tint: #E8F6EE;
  --ink: #17201C;
  --ink-2: #56625C;
  --ink-3: #8A958F;
  --line: #E1E7E3;
  --mist: #F4F7F5;
  --paper: #FFFFFF;
  --cone: #EE7518;
  --alert: #D9620B; /* the "Alert" in the logo */
  --danger: #C8392D;
  --me: #2F80ED;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --topbar-h: 60px;
  --drawer-peek: 256px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--green); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center-block { display: block; margin: 8px auto 0; }

/* ---------- top bar ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar {
  position: relative; z-index: 5;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 12px 0;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(23, 32, 28, .25);
}
.topbar__side--end { display: flex; justify-content: flex-end; }
.brand {
  justify-self: center; display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: 'Overpass', var(--font);
  font-weight: 900; font-size: 25px; letter-spacing: -0.045em; line-height: 1;
}
.w-kerb { color: var(--green); }
.w-alert { color: var(--alert); }
.brand img { display: block; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn:active { background: var(--mist); }
.icon-btn-spacer { width: 44px; }
#profile-btn.is-signed-in { color: var(--green); }
#profile-btn.is-signed-in::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); transform: translate(12px, -12px); box-shadow: 0 0 0 2px var(--paper);
}
.icon-btn--float {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* ---------- map ---------- */
.map-area { position: relative; flex: 1; }
#map { position: absolute; inset: 0; background: #EEF1EF; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--drawer-peek) + var(--safe-bottom) - 8px); }
.maplibregl-ctrl-attrib.maplibregl-compact { margin: 0 8px 8px 0; }

.chips {
  position: absolute; z-index: 2; top: 10px; left: 0; right: 0;
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 8px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(23,32,28,.12), 0 4px 12px -4px rgba(23,32,28,.18);
}
.chip svg { color: var(--green); }
.chip.is-active { background: var(--green); color: #fff; }
.chip.is-active svg { color: #fff; }

.map-notice {
  position: absolute; z-index: 2; top: 60px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

.map-btn {
  position: absolute; z-index: 2; right: 14px;
  bottom: calc(var(--drawer-peek) + var(--safe-bottom) + 30px);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--me);
  box-shadow: 0 2px 4px rgba(23,32,28,.12), 0 6px 16px -4px rgba(23,32,28,.25);
}
.map-btn--small { width: 40px; height: 40px; right: 10px; bottom: 10px; }

/* user location */
.me-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--me); border: 3px solid #fff;
  box-shadow: 0 0 0 10px rgba(47,128,237,.18), 0 1px 4px rgba(0,0,0,.3);
}

/* item pins: the teardrop is the brand mark */
.pin-btn { display: block; width: 46px; height: 58px; }
.pin { position: relative; width: 46px; height: 58px; transform-origin: 50% 100%; transition: transform .18s var(--ease); }
.pin-btn:hover .pin, .pin-btn:focus-visible .pin { transform: scale(1.1); }
.pin__shape { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(18, 70, 40, .28)); }
.pin__shape path { fill: var(--pin); stroke: var(--pin-edge); stroke-width: 1.5; }
.pin__icon { position: absolute; top: 9px; left: 0; right: 0; display: grid; place-items: center; color: #fff; }
/* orange = just listed (or urgent): go now */
.pin--orange .pin__shape path { fill: var(--alert); stroke: #B9530A; }
.pin--mine .pin__shape path { stroke: #fff; stroke-width: 3; }
.pin__badge {
  position: absolute; top: -4px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.25);
}
.pin--onway .pin__shape { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: pin-drop .35s var(--ease) both; }
  @keyframes pin-drop { from { transform: translateY(-14px) scale(.85); opacity: 0; } }
}

/* ---------- drawer ---------- */
.drawer {
  --drag: 0px;
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  height: min(78vh, calc(100% - var(--topbar-h) - var(--safe-top) - 40px));
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 0 rgba(23,32,28,.04), 0 -10px 30px -12px rgba(23,32,28,.3);
  transform: translateY(calc(100% - var(--drawer-peek) - var(--safe-bottom) + var(--drag)));
  transition: transform .3s var(--ease);
  max-width: 560px; margin: 0 auto;
}
.drawer.is-expanded { transform: translateY(var(--drag)); }
.drawer.is-dragging { transition: none; }
.drawer__grab { padding: 8px 20px 6px; touch-action: none; cursor: grab; flex: none; }
.drawer__handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.drawer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drawer__head h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.drawer__sub { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.impact { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--green-press); }
.impact svg { flex: none; }
.impact strong { font-variant-numeric: tabular-nums; }
.celebrate__kg { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-press); font-weight: 700; font-size: 15px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--3 .stat strong { font-size: 24px; }
.drawer__cta {
  position: absolute; left: 0; right: 0;
  bottom: calc(100% - var(--drawer-peek) - var(--safe-bottom));
  padding: 10px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--paper) 75%, rgba(255,255,255,0));
  transition: bottom .3s var(--ease);
}
.drawer.is-expanded .drawer__cta { bottom: 0; }
.drawer.is-dragging .drawer__cta { transition: none; }

.item-list { list-style: none; margin: 0; padding: 0 8px 110px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.item-list li + li .item-row { border-top: 1px solid var(--line); }
.item-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; text-align: left; border-radius: 14px;
}
.item-row:hover { background: var(--mist); }
.item-row__thumb {
  flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--green-tint); color: var(--green);
}
.item-row__thumb { background-size: cover; background-position: center; }
.item-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
img.fade { opacity: 0; transition: opacity .25s ease-out; }
img.fade.in { opacity: 1; }

/* placeholder rows while the first items load */
.skeleton { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
.skeleton i { display: block; border-radius: 8px; background: var(--mist); }
.skeleton .sk-thumb { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.skeleton .sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton .sk-lines i:first-child { height: 14px; width: 60%; }
.skeleton .sk-lines i:last-child { height: 12px; width: 35%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton i { background: linear-gradient(90deg, var(--mist) 0%, #EAF0EC 50%, var(--mist) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }
}

/* a listing that is still uploading */
.pin-btn--pending { pointer-events: none; }
.pin-btn--pending .pin { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .pin-btn--pending .pin { animation: pending 1s ease-in-out infinite alternate; }
  @keyframes pending { to { opacity: .95; transform: translateY(-4px); } }
}
.item-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-row__title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row__meta { font-size: 14px; color: var(--ink-2); }
.item-row__time { flex: none; font-size: 14px; color: var(--ink-3); }

.empty { padding: 18px 16px 8px; text-align: center; }
.empty p { margin: 4px 0; }
.empty__art { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }

.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag--urgent, .tag--new { background: #FDEBDC; color: #9A4A08; }
.onway-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 650; color: var(--ink); }

.onway { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; font-size: 15px; }
.onway svg { flex: none; margin-top: 1px; }
.onway span { flex: 1; }
.onway--other { background: var(--mist); color: var(--ink); }
.onway--mine { background: var(--ink); color: #fff; }
.onway--mine .link-btn { color: #fff; text-decoration: underline; padding: 0; }
.onway-btn { margin-bottom: 0; }
.onway-btn + .hint { margin: 6px 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-press); }
.btn--ghost { background: var(--mist); color: var(--ink); }
.btn--ghost:hover { background: #E9EEEB; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 18px; border-radius: 16px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; font-weight: 600; padding: 8px 4px; }
.link-btn:hover { color: var(--ink); }

/* ---------- modal sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 19, .4); opacity: 0; transition: opacity .25s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100% - var(--safe-top) - 24px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  transform: translateY(100%); transition: transform .28s var(--ease);
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-title { margin: 4px 0 8px; font-size: 22px; letter-spacing: -0.02em; }

.sheet-wrap--detail .sheet { padding: 0 0 calc(20px + var(--safe-bottom)); }
.sheet-wrap--detail .sheet-handle { position: absolute; z-index: 1; top: 8px; left: 50%; margin-left: -20px; background: rgba(255,255,255,.8); }

/* ---------- item detail ---------- */
.detail__photo { position: relative; aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; background-color: var(--mist); background-size: cover; background-position: center; overflow: hidden; border-radius: 22px 22px 0 0; }
.detail__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green); background: var(--green-tint); }
.detail__body { padding: 16px 20px 0; }
.detail__cat { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 14px; font-weight: 650; }
.detail__title { margin: 4px 0 2px; font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; }
.detail__meta { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.detail__desc { margin: 0 0 10px; white-space: pre-line; }
.detail__by { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }
.detail__actions { display: flex; gap: 10px; margin-bottom: 16px; }
.detail__actions .btn { flex: 1; }
.detail__more { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }

/* collect: the button fills as you walk toward the item */
.collect {
  --progress: 0;
  position: relative; width: 100%; height: 58px; border-radius: 16px; overflow: hidden;
  background: var(--green-tint); color: var(--green-press);
  font-size: 18px; font-weight: 700;
}
.collect__fill {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--pin) 38%, var(--green-tint));
  transform-origin: left; transform: scaleX(var(--progress)); transition: transform .6s var(--ease);
}
.collect__label { position: relative; }
.collect[data-mode="ready"], .collect[data-mode="signin"] { background: var(--green); color: #fff; }
.collect[data-mode="ready"] .collect__fill, .collect[data-mode="signin"] .collect__fill { display: none; }
.collect[data-mode="done"] { background: var(--mist); color: var(--ink-3); }
.collect:disabled { cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .collect[data-mode="ready"] { animation: ready-pulse 1.8s ease-out 2; }
  @keyframes ready-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,147,90,.45); } 100% { box-shadow: 0 0 0 14px rgba(18,147,90,0); } }
}
.collect + .hint { margin-top: 8px; }

.owner-box { background: var(--green-tint); border-radius: 16px; padding: 14px 16px; }
.owner-box p { margin: 0; }
.owner-box .btn-row { margin-top: 12px; }
.owner-box .btn--ghost { background: var(--paper); }
.owner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn--danger-text { color: var(--danger); }

.celebrate { text-align: center; padding: 8px 0 4px; }
.celebrate__mark { width: 76px; height: 76px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.celebrate .btn { margin-top: 14px; }

/* ---------- full-screen views ---------- */
.view {
  position: fixed; inset: 0; z-index: 20; background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateY(24px); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
}
.view.open { transform: none; opacity: 1; }
.view__bar {
  flex: none; height: calc(56px + var(--safe-top)); padding: var(--safe-top) 8px 0;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.view__bar h1 { margin: 0; text-align: center; font-size: 18px; letter-spacing: -0.01em; }
.view__body { flex: 1; overflow-y: auto; padding: 20px 20px calc(28px + var(--safe-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }

/* ---------- forms ---------- */
.form .field, .field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field .label { display: block; margin-bottom: 8px; font-weight: 650; font-size: 15px; padding: 0; }
.optional { color: var(--ink-3); font-weight: 500; }
input:not([type=radio]):not([type=file]), textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 17px; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 84px; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.hint.warn { color: #9A4A08; background: #FDEBDC; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.form-error { color: var(--danger); font-weight: 600; font-size: 15px; margin: 0 0 12px; min-height: 0; }
.form-error:empty { display: none; }
.form-foot { margin-top: 8px; }

.photo-pick {
  display: block; position: relative; margin: 0 0 20px;
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--mist); border: 2px dashed #C9D3CD;
}
.photo-pick.has-photo { border: 0; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick.has-photo::after {
  content: "Change photo"; position: absolute; right: 12px; bottom: 12px;
  background: rgba(23,32,28,.75); color: #fff; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.photo-pick__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); text-align: center; padding: 16px; }
.photo-pick__empty strong { color: var(--ink); font-size: 17px; }
.photo-pick__empty span:last-child { font-size: 14px; }
.photo-pick__icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); margin-bottom: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink-2);
}
.cat svg { color: var(--green); }
.cat.is-active { border-color: var(--green); background: var(--green-tint); color: var(--ink); }

.loc-map { position: relative; height: 220px; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line); }
#post-map { position: absolute; inset: 0; }
.loc-map__pin {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 34px; height: 44px;
  margin: -44px 0 0 -17px; pointer-events: none;
  background: url("/img/logo-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(18,70,40,.3));
}
.loc-map__pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 4px; margin-left: -4px; border-radius: 50%; background: rgba(0,0,0,.25); }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--mist); border-radius: 12px; padding: 4px; gap: 4px; }
.seg__opt { height: 40px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.seg__opt.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(23,32,28,.15); }

.radio-list { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 16px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.radio:has(input:checked) { background: var(--green-tint); }
.radio input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }

.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------- welcome ---------- */
.welcome { text-align: center; padding-top: 4px; }
.welcome img { display: block; margin: 0 auto 6px; }
.welcome__steps { list-style: none; padding: 0; margin: 12px 0 20px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.welcome__steps li { display: flex; gap: 14px; align-items: flex-start; }
.welcome__steps svg { flex: none; color: var(--green); margin-top: 1px; }

/* ---------- profile ---------- */
.me { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.me__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 24px; font-weight: 700; }
.me__name { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.me p { margin: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--green-tint); border-radius: 16px; padding: 14px 16px; }
.stat strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--ink-2); }
.section-h { margin: 26px 0 8px; font-size: 17px; }
.my-list { list-style: none; margin: 0 -12px; padding: 0; }
.my-list > li.muted { padding: 0 12px; }
.status { flex: none; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.status--live { background: var(--green-tint); color: var(--green-press); }
.status--done { background: var(--ink); color: #fff; }
.status--muted { background: var(--mist); color: var(--ink-2); }
.status--warn { background: #FDEBDC; color: #B25209; }
.menu { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu a, .menu button { display: block; text-align: left; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; }
.menu .danger { color: var(--danger); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; top: calc(var(--safe-top) + 72px);
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px;
  font-weight: 600; font-size: 15px; max-width: calc(100% - 32px); width: max-content;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- larger screens: list beside the map ---------- */
@media (min-width: 900px) {
  :root { --drawer-peek: 0px; }
  .map-area { margin-left: 400px; }
  .drawer {
    top: calc(var(--topbar-h) + var(--safe-top)); left: 0; right: auto; width: 400px; height: auto;
    margin: 0; max-width: none; border-radius: 0; transform: none !important;
    box-shadow: 1px 0 0 var(--line);
  }
  .drawer__grab { cursor: default; padding-top: 16px; }
  .drawer__handle { display: none; }
  .drawer__cta { bottom: 0 !important; }
  .map-btn { bottom: 28px; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; max-height: 88vh; }
  .sheet-wrap--detail .sheet-handle, .sheet-wrap .sheet-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
