/* Find My chrome: a frosted sidebar floating over a full-bleed map. */
:root {
  /* Apple's system colours, so nothing is a hand-mixed approximation. */
  --blue: #007aff;
  --red: #ff3b30;
  --green: #34c759;
  --ink: #1d1d1f;
  --label-2: #3c3c43;      /* secondary label */
  --label-3: #8e8e93;      /* tertiary label */
  --muted: var(--label-3);
  --muted-2: var(--label-2);
  --rule: rgba(60, 60, 67, 0.13);   /* separator */
  --sidebar: 380px;
  --gold: #f2b705;
  --silver: #b4b8c0;
  --bronze: #d97f2b;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #dfe7ec;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.2px;
}

h1, h2, h3, h4, p { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; }

#map { position: fixed; inset: 0; background: #E9E5D8; }
.maplibregl-ctrl-attrib { font-size: 10px; }
/* Keep MapLibre's chrome clear of the sidebar. */
.maplibregl-ctrl-bottom-left { left: var(--sidebar); }

/* ---------- sidebar ---------- */

#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  /* Apple's sidebar material: near-neutral, heavily blurred, hairline edge. */
  background: rgba(245, 246, 248, 0.94);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-right: 0.5px solid rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.lights { display: flex; gap: 8px; padding: 14px 16px 8px; }
.lights i { width: 12px; height: 12px; border-radius: 100%; display: block; }
.lights .r { background: #ff5f57; }
.lights .y { background: #febc2e; }
.lights .g { background: #28c840; }

.mobile-sheet-head,
.mobile-tabs { display: none; }

#scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 18px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}

/* ---------- segmented control ---------- */

.segmented {
  display: flex;
  margin: 0 14px 10px;
  padding: 2px;
  background: rgba(120, 120, 128, 0.12);
  border-radius: 8px;
}
.seg {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.seg.active {
  background: #fff;
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

/* ---------- cards ---------- */

.card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.1);
}
.card p { color: var(--label-2); font-size: 13px; line-height: 1.42; }

.counter-label { font-size: 12px; color: var(--label-3); }
.counter-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.12;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.counter-sub { font-size: 12px; color: var(--label-2); margin-top: 2px; line-height: 1.35; }
.counter-oldest {
  font-size: 11px;
  color: var(--label-3);
  margin-top: 7px;
  padding-top: 7px;
  border-top: 0.5px solid var(--rule);
  line-height: 1.4;
}

/* The play card: just a name and a button until you are in the game, then
   identity, score and the location prompt. The rules live in the modal. */
.play p { margin-bottom: 10px; }
.namefield + .btn { margin-top: 2px; }
.btn {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
}
.btn.secondary { background: rgba(120, 120, 128, 0.16); color: var(--ink); }
.btn + .btn { margin-top: 7px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.you {
  display: flex;
  align-items: center;
  gap: 10px;
}
.you .face { margin: 0; }
.you-name { font-weight: 600; font-size: 14px; }
.you-sub { font-size: 12px; color: var(--label-3); }
.you-score {
  margin-left: auto;
  font-weight: 700;
  font-size: 17px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.namefield {
  width: 100%;
  border: 0.5px solid rgba(60, 60, 67, 0.28);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 14px;
  margin-bottom: 7px;
  font-family: inherit;
}
/* The browser's default focus ring is a hard blue rectangle-ish outline that
   sits outside the rounded corners. Replace it, don't just remove it. */
.namefield:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}
.btn:focus-visible,
.seg:focus-visible,
.chip:focus-visible,
.claimbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.4);
}

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  border: 0;
  background: rgba(120, 120, 128, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--label-2);
  cursor: pointer;
}
.chip.active { background: var(--ink); color: #fff; }

/* ---------- rows ---------- */

/* A macOS sidebar list: rows sit on the window material, not in a white card,
   separated by hairlines inset to the text column. */
.calls { background: none; box-shadow: none; }
.call {
  position: relative;
  padding: 8px 10px;
  border-radius: 7px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: background-color 120ms;
  cursor: pointer;
}
/* Apple insets a list separator to start where the text starts, not under the
   avatar. A pseudo-element does that without breaking the selected-row fill. */
.call::after {
  content: "";
  position: absolute;
  left: 55px;
  right: 0;
  bottom: -0.5px;
  height: 0.5px;
  background: var(--rule);
}
.call:last-child::after { display: none; }
.call:hover { background-color: rgba(120, 120, 128, 0.1); }
/* The selected pothole: a filled rounded block. Apple drops the hairline on
   both sides of a selection, so the block sits in clean space. `:has` picks the
   row above, which no sibling combinator can reach. */
.call.is-selected { background-color: var(--blue); }
.call.is-selected::after,
.call:has(+ .call.is-selected)::after { display: none; }
.call.is-selected .title,
.call.is-selected .line { color: #fff; }
.call.is-selected .line.alert,
.call.is-selected .line.near,
.call.is-selected .line.claimed { color: rgba(255, 255, 255, 0.92); }
.call.is-selected .face { border-color: rgba(255, 255, 255, 0.9); }
.call.is-selected .claimbtn { background: #fff; color: var(--green); }

.leftcall { display: flex; flex-direction: column; width: 34px; align-items: center; flex-shrink: 0; }

/* The Find My contact face: one grey puck for everyone, lit from the top,
   ringed in white and floated on a soft shadow. Deliberately uniform — status
   is carried by the words in the row, not by tinting the puck. */
.face {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1.5px solid #fff;
  flex-shrink: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #9c9ca2 0%, #76767c 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}
.face.fixed { opacity: 0.72; }
.rightcall { flex: 1; min-width: 0; }
.row-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.24px;
  margin-bottom: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line { color: var(--label-2); font-size: 13px; line-height: 1.32; }
.line.alert { color: var(--red); }
.row-place {
  text-transform: lowercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.row-age {
  flex-shrink: 0;
  color: var(--label-3);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.call.is-selected .row-age { color: rgba(255, 255, 255, 0.82); }
.line.meta { font-size: 11px; color: var(--label-3); margin-top: 1px; }
.line.near { color: var(--blue); font-weight: 600; }
.line.claimed { color: var(--green); font-weight: 600; }

.claimbtn {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  cursor: pointer;
}
.claimbtn:disabled { opacity: 0.55; cursor: default; }

.empty { padding: 18px 10px; color: var(--label-3); font-size: 13px; }
.more {
  width: 100%;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- leaderboard ---------- */

.rank {
  width: 22px;
  height: 22px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(120, 120, 128, 0.32);
  flex-shrink: 0;
  margin-top: 8px;
}
.rank.g1 { background: var(--gold); }
.rank.g2 { background: var(--silver); }
.rank.g3 { background: var(--bronze); }
.score {
  margin-left: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.photos { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 5px; }
.photos .ph {
  font-size: 11px;
  color: var(--label-2);
  background: #fff;
  border: 0.5px solid var(--rule);
  border-radius: 6px;
  padding: 3px 7px;
  text-transform: lowercase;
}
.official {
  display: inline-block;
  margin-top: 11px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.claimlist { padding: 2px 10px 10px 55px; }
.claimlist .ci {
  font-size: 12px;
  color: var(--muted-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
/* The pothole's name keeps its capital; only the landmark is lowercased. */
.claimlist .ci .where { text-transform: lowercase; }
.claimlist .ci:last-child { border-bottom: 0; }
.claimlist .ci:hover { color: var(--ink); }

/* ---------- footer ---------- */

.howbtn {
  border: 0;
  border-top: 0.5px solid var(--rule);
  background: transparent;
  padding: 11px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: var(--label-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.howbtn:hover { color: var(--ink); }
.qmark {
  width: 17px;
  height: 17px;
  border-radius: 100%;
  border: 1.4px solid var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- how-it-works modal ---------- */

/* display:flex would otherwise beat the `hidden` attribute and leave an
   invisible full-screen layer eating every click on the page. */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sheet {
  background: #fff;
  border-radius: 18px;
  width: min(560px, 100%);
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--rule);
}
.sheet-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; }
.sheet-body { overflow-y: auto; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }
.sheet-body section { padding: 14px 0 2px; border-bottom: 1px solid var(--rule); }
.sheet-body section:last-of-type { border-bottom: 0; }
.sheet-body h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--label-3);
  margin-bottom: 5px;
}
.sheet-body p { font-size: 13px; line-height: 1.5; color: var(--ink); }
.sheet-body ul { margin: 0; padding-left: 18px; }
.sheet-body li { font-size: 13px; line-height: 1.55; color: var(--ink); }
.sheet-body a { color: var(--blue); }
.sheet-body .warn { margin-top: 8px; font-size: 12px; color: var(--label-3); }
.colophon {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: var(--label-3) !important;
}

/* ---------- map pins ---------- */

/* Selected marker: a Find My callout above the puck. No animation — the black
   ripple that used to sit here was distracting. */
.pin { position: relative; width: 0; height: 0; pointer-events: none; }
.callout {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: 250px;
  background: #fff;
  border-radius: 11px;
  padding: 7px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.callout b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; letter-spacing: -0.2px; }
.callout span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: lowercase;
  max-width: 226px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The tail pointing down at the puck. */
.callout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 11px;
  height: 11px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* ---------- floating detail card ---------- */

.floatcard {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 330px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  z-index: 10;
  background: rgba(252, 252, 253, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.fc-head { display: flex; align-items: flex-start; gap: 10px; }
.fc-title { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -0.4px; }
.fc-sub { font-size: 13px; color: var(--label-2); text-transform: lowercase; margin-top: 2px; line-height: 1.35; }
.fc-meta { font-size: 11px; color: var(--label-3); margin-top: 3px; }
.fc-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background: rgba(120, 120, 128, 0.14);
  color: var(--label-2);
  /* A button centres text on the baseline, which leaves the glyph sitting high
     in the circle. Flex centres it on the box instead. */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.fc-close:hover { background: rgba(120, 120, 128, 0.24); }

.fc-tiles { display: flex; gap: 9px; margin: 13px 0 4px; }
.tile { flex: 1; border-radius: 11px; padding: 10px 12px; background: #f2f4f7; }
.tile b { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: 11px; color: var(--label-2); margin-top: 1px; }
.tile.ok { background: #eaf3ff; }
.tile.ok b { color: #0a84ff; }
.tile.bad { background: #fdeceb; }
.tile.bad b { color: var(--red); }
.tile.good { background: #eaf7ef; }
.tile.good b { color: var(--green); }

.fc-found { font-size: 12px; color: #248a3d; font-weight: 600; margin-top: 10px; }
.fc-claim { margin-top: 11px; background: var(--green); }
.fc-note { font-size: 12px; color: var(--label-3); margin-top: 10px; line-height: 1.4; }
.fc-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--label-3);
  margin: 14px 0 2px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.floatcard .quote { font-size: 13px; line-height: 1.45; color: var(--ink); padding: 6px 0 2px; }
.floatcard .qattrib { font-size: 11px; color: var(--label-3); line-height: 1.45; }
.floatcard .qattrib a { color: var(--blue); }
.floatcard .photos { margin: 8px 0 5px; }
.floatcard .official { margin-top: 4px; }

/* "You are here", the Find My blue dot. */
.mepin { position: relative; width: 0; height: 0; pointer-events: none; }
.medot {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background: #0a84ff;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mehalo {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 100%;
  background: rgba(10, 132, 255, 0.18);
  animation: mepulse 2.4s ease-out infinite;
}
@keyframes mepulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: calc(var(--sidebar) + 50%);
  transform: translateX(-50%);
  bottom: 28px;
  z-index: 20;
  background: rgba(20, 20, 22, 0.93);
  color: #fff;
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  max-width: min(420px, 70vw);
  text-align: center;
}
#toast.good { background: rgba(23, 163, 74, 0.96); }

/* ---------- mobile ---------- */

@media (max-width: 820px) {
  :root { --sidebar: 100%; }
  /* The page itself never scrolls on a phone: the map is pinned to the top and
     only #scroll inside the sheet moves. Previously body scrolled, which
     dragged the map away and left the segmented control stranded. */
  html, body { height: 100%; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
  #map { position: fixed; inset: 0; height: 100dvh; }
  .maplibregl-ctrl-bottom-left { left: 0; }

  #sidebar {
    --sheet-top: 63dvh;
    position: fixed;
    top: var(--sheet-top);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-right: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    background: rgba(248, 250, 252, 0.97);
  }
  #sidebar.is-settling {
    transition: top 360ms cubic-bezier(0.22, 0.72, 0, 1);
  }
  #sidebar.is-dragging { user-select: none; }
  .lights,
  .segmented,
  .howbtn { display: none; }

  .mobile-sheet-head {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 67px;
    padding: 19px 24px 8px;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
  }
  #sidebar.is-dragging .mobile-sheet-head { cursor: grabbing; }
  .sheet-grabber {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 5px;
    border-radius: 99px;
    background: #969da8;
    transform: translateX(-50%);
  }
  .mobile-sheet-head h1 {
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  .mobile-info {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--label-2);
    border-radius: 50%;
    background: transparent;
    color: var(--label-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 1px;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }
  #scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 16px 12px;
  }

  #counter {
    padding: 9px 12px;
    border: 0.5px solid rgba(255, 59, 48, 0.2);
    background: rgba(255, 59, 48, 0.055);
    box-shadow: none;
  }
  .counter-label,
  .counter-oldest { display: none; }
  .counter-value {
    display: inline;
    font-size: 14px;
    letter-spacing: -0.2px;
  }
  .counter-sub {
    display: inline;
    margin: 0 0 0 3px;
    font-size: 12px;
  }
  .card { margin-bottom: 8px; }
  #play:has(#join) { padding: 8px; }
  #play:has(#join) .play-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }
  #play:has(#join) .namefield { margin: 0; }
  #play:has(#join) .btn { width: auto; white-space: nowrap; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px 5px;
    padding: 0 16px 4px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  .call {
    min-height: 64px;
    padding: 9px 8px;
    gap: 12px;
    align-items: center;
  }
  .call::after { left: 60px; }
  .leftcall,
  .face { width: 40px; }
  .face { height: 40px; font-size: 14px; }
  .title { font-size: 16px; }
  .line { font-size: 14px; line-height: 1.35; }

  .mobile-tabs {
    display: flex;
    flex-shrink: 0;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 5px 12px env(safe-area-inset-bottom);
    border-top: 0.5px solid var(--rule);
    background: rgba(252, 252, 253, 0.94);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
  }
  .mobile-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #9a9da4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 1.1;
    cursor: pointer;
  }
  .mobile-tab svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-tab svg circle { fill: none; }
  .mobile-tab.active { color: var(--blue); }

  #toast { left: 50%; bottom: 20px; max-width: 86vw; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { border-radius: 18px 18px 0 0; max-height: 88vh; }
  .floatcard {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 74vh;
    border-radius: 18px 18px 0 0;
    padding-bottom: 26px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.24);
  }
}
