:root {
  --bg: #0b0f14;
  --surface: rgba(16, 22, 31, 0.92);
  --surface-solid: #111823;
  --surface-2: rgba(18, 25, 36, 0.96);
  --surface-hover: rgba(34, 46, 64, 0.96);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.24);
  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.18);
  --amber: #f59e0b;
  --cyan: #22d3ee;
  --emerald: #10b981;
  --rose: #f43f5e;
  --sky: #38bdf8;
  --indigo: #818cf8;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  --radius-pill: 999px;
  --radius-card: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Map fills 100% viewport */
#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #2c68a4;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}

#mapCanvas,
#overlayCanvas,
.markers-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#overlayCanvas {
  pointer-events: none;
  z-index: 2;
}

.markers-layer {
  pointer-events: none;
  z-index: 3;
}

.markers-layer > * {
  pointer-events: auto;
  position: absolute;
  top: 0;
  left: 0;
}

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  position: relative;
}

/* Top Floating Search & Pinned Filter HUD */
.hud-top {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.hud-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  pointer-events: none;
}

/* Google-Maps Floating Search Pill */
.search-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  height: 46px;
  padding: 0 6px 0 12px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.search-pill:focus-within {
  border-color: rgba(168, 85, 247, 0.55);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

.search-input::placeholder {
  color: var(--text-3);
}

.pill-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background 0.14s ease, color 0.14s ease;
  flex-shrink: 0;
}

.pill-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.hud-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-shrink: 0;
  z-index: 32;
}

.profile-chip-btn {
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 156px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.profile-chip-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.profile-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* Prominent Drop Button: Top-Right inside .hud-right on Desktop, Bottom-Right on Mobile */
.drop-fab {
  position: relative;
  z-index: 32;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(126, 34, 206, 0.48), 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.drop-fab:hover {
  filter: brightness(1.09);
}

.drop-fab:active {
  transform: scale(0.97);
}

.drop-fab.is-armed {
  background: #e11d48;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}

/* Search Dropdown & Quick-Find Tray */
.search-dropdown {
  position: absolute;
  top: 54px;
  left: 0;
  z-index: 42;
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  background: rgba(16, 22, 32, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.68);
  max-height: 410px;
  overflow-y: auto;
  padding: 10px;
}

.qf-section + .qf-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.qf-head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 2px 7px;
}

.qf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qf-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.qf-pill:hover,
.qf-pill.is-active {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: #f3e8ff;
}

.qf-count {
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.qf-places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.qf-place-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  text-align: left;
  min-height: 44px;
}

.qf-place-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.qf-place-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
}

.qf-place-sub {
  font-size: 11px;
  color: var(--text-2);
}

.search-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-align: left;
  min-height: 44px;
}

.search-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-row-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
}

.search-row-sub {
  font-size: 12px;
  color: var(--text-2);
}

/* Pinned Non-Draggable Filter Strip: Wraps to Search Width on Desktop, Smooth Swipe on Mobile */
.filter-strip {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  padding: 2px 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

body.has-search-open .filter-strip {
  opacity: 0;
  pointer-events: none;
}

.filter-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.24);
  margin: 0 2px;
  flex-shrink: 0;
}

.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.chip:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

.chip.is-active {
  background: #f8fafc;
  color: #0b0f14;
  border-color: #f8fafc;
  font-weight: 600;
}

.chip-mine {
  border-color: rgba(168, 85, 247, 0.42);
  color: #e9d5ff;
}

.chip-mine.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
}

.chip-starter {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.42);
}

.chip-starter.is-active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0b0f14;
}

.starter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.chip-starter.is-active .starter-dot {
  background: #0b0f14;
}

.chip-tag {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

.chip-more {
  color: var(--text-1);
}

.more-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* Expandable Secondary Options & Patch Bulletin Popover */
.more-popover {
  position: absolute;
  top: 94px;
  left: 0;
  z-index: 38;
  pointer-events: auto;
  width: min(360px, calc(100vw - 24px));
  background: rgba(16, 22, 32, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.68);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.more-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.more-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  box-shadow: none;
}

.more-row-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.sort-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.sort-btn.is-active {
  background: #f8fafc;
  color: #0b0f14;
}

.more-bulletin {
  border-top: 1px solid var(--border);
  padding-top: 9px;
}

.bulletin-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  text-align: left;
  color: var(--text-2);
}

.bulletin-acc-btn:hover {
  color: var(--text-1);
}

.bulletin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.bulletin-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

.bulletin-mini-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

.bulletin-acc-body {
  padding-top: 6px;
}

.bulletin-body {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.48;
}

/* Custom Map Pin Markers */
.pin-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 22, 0.93);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) translate(-50%, -50%);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
  user-select: none;
  will-change: transform;
}

.pin-marker.is-filtered {
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), 0 0 0 2px rgba(168, 85, 247, 0.35);
}

.pin-marker.is-starter {
  border-color: rgba(251, 191, 36, 0.88);
}

.pin-marker:hover,
.pin-marker.is-selected {
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 2px), 0) translate(-50%, -50%) scale(1.04);
  border-color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72), 0 0 0 3px rgba(168, 85, 247, 0.48);
  z-index: 10;
}

.pin-glyph {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-secret  { background: rgba(245, 158, 11, 0.2); color: var(--amber); }
.cat-spawn   { background: rgba(129, 140, 248, 0.22); color: #a5b4fc; }
.cat-clip    { background: rgba(34, 211, 238, 0.2); color: var(--cyan); }
.cat-meetup  { background: rgba(16, 185, 129, 0.22); color: var(--emerald); }
.cat-glitch  { background: rgba(244, 63, 94, 0.22); color: var(--rose); }
.cat-bounty  { background: rgba(56, 189, 248, 0.22); color: var(--sky); }

.pin-label {
  white-space: nowrap;
}

.pin-votes {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
}

.pin-cluster-badge {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--purple);
  color: #fff;
}

.pin-private-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.drop-target-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.32), 0 8px 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) translate(-50%, -50%);
}

.place-target-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 7px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  color: #0b0f14;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--purple);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(168, 85, 247, 0.28);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) translate(-50%, -100%);
  pointer-events: none;
}

/* Composer (Desktop floating beside pin; Mobile slides up as Google-Maps bottom sheet) */
.pin-composer {
  position: fixed;
  z-index: 44;
  width: min(368px, calc(100vw - 24px));
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.composer-loc {
  font-size: 12px;
  font-weight: 650;
  color: var(--purple);
}

.composer-coords {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.composer-user-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.composer-user-pill:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
}

.field-input, .field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text-1);
  outline: none;
}

.field-input-lg {
  font-size: 14.5px;
  font-weight: 550;
  padding: 10px 11px;
}

.field-input:focus, .field-textarea:focus {
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.08);
}

.field-textarea {
  resize: none;
  min-height: 52px;
}

.composer-media-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-upload-btn {
  height: 35px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.38);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.media-upload-btn:hover {
  background: rgba(34, 211, 238, 0.2);
}

.composer-photo-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 120px;
}

.composer-photo-preview img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.85);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-picker::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-2);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-1);
}

.cat-btn.is-active {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: #f3e8ff;
  font-weight: 650;
}

.composer-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.toggle-pill {
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  background: rgba(11, 15, 20, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.toggle-pill:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--text-1);
}

.toggle-check {
  width: 13px;
  height: 13px;
  border-radius: 3.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.toggle-pill.is-on .toggle-check::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: currentColor;
}

.toggle-pill.toggle-spoiler.is-on {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde68a;
}

.toggle-pill.toggle-spoiler.is-on .toggle-check {
  border-color: #fde68a;
}

.toggle-pill.toggle-private.is-on {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.6);
  color: #a5f3fc;
}

.toggle-pill.toggle-private.is-on .toggle-check {
  border-color: #a5f3fc;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.composer-hint {
  font-size: 11px;
  color: var(--text-3);
}

.composer-err {
  font-size: 12px;
  color: #fda4af;
}

.btn-primary {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

/* Google Maps Place / Help / Pins / Contributors Sheet */
.place-sheet {
  position: fixed;
  top: 108px;
  left: 12px;
  bottom: 80px;
  width: 386px;
  z-index: 25;
  background: var(--surface-2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet-grab {
  display: none;
}

.sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.sheet-scroll > * {
  flex-shrink: 0;
}

.sheet-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sheet-top-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease;
}

.sheet-top-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.sheet-top-btn.is-bookmarked {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--amber);
  color: #fde68a;
}

.sheet-top-btn.is-copied {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald);
  color: #a7f3d0;
}

.sheet-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 650;
}

.sheet-district {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.sheet-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text-1);
}

.sheet-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.author-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-1);
}

.author-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.author-link-btn.is-starter {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.sheet-author {
  font-size: 12px;
  color: var(--text-3);
}

.sheet-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.52;
  color: #cbd5e1;
}

.pin-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #090d12;
}

.pin-photo-img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  display: block;
}

.spoiler-shield {
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  padding: 12px;
}

.spoiler-shield.is-blurred .spoiler-content {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.spoiler-reveal-btn {
  margin-top: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  font-size: 12px;
  font-weight: 600;
}

/* Lazy Clip Card */
.clip-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #090d12;
}

.clip-preview-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  min-height: 48px;
}

.clip-preview-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.clip-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* Single-Row Action Bar inside Place Sheet */
.sheet-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.action-btn {
  height: 35px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.action-btn.is-voted {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: #f3e8ff;
}

.action-btn.is-route {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.action-btn.is-works {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.action-btn.is-patched {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.vote-group {
  display: inline-flex;
  align-items: center;
  height: 35px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.vote-group-btn {
  height: 100%;
  padding: 0 9px;
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vote-group-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vote-group-btn.is-voted {
  background: var(--purple-dim);
  color: #f3e8ff;
}

.vote-group-btn.is-downvoted {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.vote-group-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.mini-vote-group {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.mini-vote-seg {
  height: 28px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}

.mini-vote-seg:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mini-vote-seg.is-voted {
  background: var(--purple-dim);
  color: #f3e8ff;
}

.mini-vote-seg.is-downvoted {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
}

.verify-drawer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

/* Inline Navigation Box (Pin is Destination by default) */
.directions-box {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.36);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dir-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dir-mode-btn {
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.dir-mode-btn.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.dir-endpoints {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dir-inputs-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dir-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 15, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 8px 0 10px;
  height: 38px;
}

.dir-field-wrap.is-focused {
  border-color: var(--purple);
  background: rgba(11, 15, 20, 0.92);
}

.dir-dot-origin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.dir-dot-dest {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.24);
  flex-shrink: 0;
}

.dir-field-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}

.dir-field-input::placeholder {
  color: var(--text-3);
}

.dir-swap-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dir-swap-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

.dir-autocomplete {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 200px;
  overflow-y: auto;
  background: #0d131d;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 5px;
}

.dir-auto-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  min-height: 40px;
}

.dir-auto-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dir-auto-title {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-1);
}

.dir-auto-sub {
  font-size: 11.5px;
  color: var(--text-2);
}

.dir-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #f3e8ff;
  font-variant-numeric: tabular-nums;
}

/* Nearby Within X.X Miles & Lists */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 2px 0 6px;
}

.radius-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radius-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: left;
  width: 100%;
  min-height: 44px;
}

.radius-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.radius-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.radius-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.radius-row-sub {
  font-size: 11.5px;
  color: var(--text-2);
}

.radius-upvote-mini {
  height: 30px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.show-more-btn {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

/* Discussion & Comments */
.comments-acc-btn {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.comments-acc-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.comment-author {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-2);
  margin-bottom: 2px;
}

.comment-body {
  font-size: 13px;
  color: var(--text-1);
}

.comment-form {
  display: flex;
  gap: 6px;
}

/* Help Sheet (Reddit-Style Community Help) */
.sheet-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-tab-btn {
  flex: 1 1 0;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.sheet-tab-btn.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f14;
}

.help-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.help-compose-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
}

.help-thread-card {
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-thread-card.is-solved {
  border-color: rgba(16, 185, 129, 0.35);
}

.help-thread-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.help-thread-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-1);
  line-height: 1.35;
}

.help-thread-meta {
  font-size: 11.5px;
  color: var(--text-2);
}

.solved-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 650;
}

/* Contributors & Accolades */
.contrib-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: left;
  width: 100%;
}

.contrib-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.accolade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.accolade-badge {
  font-size: 10.5px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Profile & Notification Form */
.profile-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-1);
  cursor: pointer;
}

/* Google Maps Style 4-Tab Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  user-select: none;
}

.bnav-btn {
  height: 44px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.bnav-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
}

.bnav-btn.is-active {
  background: var(--purple-dim);
  color: #f3e8ff;
}

.bnav-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--sky);
  color: #0b0f14;
  font-variant-numeric: tabular-nums;
}

/* Bottom-Right Map Controls */
.map-controls {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ctrl-stack {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ctrl-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ctrl-divider {
  height: 1px;
  background: var(--border);
}

/* Bottom-Left Minimal Coord Readout */
.map-foot {
  position: fixed;
  left: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 20, 0.68);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Armed Targeting Reticle Banner */
.arm-banner {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--purple);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.is-pinning #map,
body.is-pinning #map * {
  cursor: crosshair !important;
}

@media (hover: hover) and (pointer: fine) {
  body.is-pinning #map,
  body.is-pinning #map * {
    cursor: none !important;
  }
}

.cursor-pin {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  will-change: transform;
}

.cursor-pin-icon {
  display: inline-flex;
  transform: translate(-11px, -21px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

.cursor-pin-label {
  transform: translate(-4px, -18px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.94);
  border: 1px solid var(--purple);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

/* 15s Non-Resetting Receipt Toast */
.toast {
  position: fixed;
  top: max(68px, calc(env(safe-area-inset-top) + 56px));
  right: 16px;
  z-index: 50;
  max-width: min(350px, calc(100vw - 24px));
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toast-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-1);
}

.toast-sub {
  font-size: 12px;
  color: var(--text-2);
}

.toast-undo {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--purple-dim);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

body.has-sheet .map-foot {
  display: none;
}

/* Mobile Google Maps Layout (<= 760px) */
@media (max-width: 760px) {
  .hud-top {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
  }

  .hud-right {
    display: contents;
  }

  .hud-left {
    max-width: 100%;
    gap: 6px;
  }

  .search-pill {
    max-width: 100%;
    padding-right: 116px;
  }

  .filter-strip {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 26px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }

  .filter-strip::-webkit-scrollbar {
    display: none;
  }

  /* Drop button pinned Bottom-Right above Bottom Nav; Center icon above Drop; Zoom +/- hidden */
  .drop-fab {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    height: 44px;
    padding: 0 15px;
    font-size: 13px;
  }

  .map-controls {
    right: 12px;
    bottom: calc(122px + env(safe-area-inset-bottom));
  }

  #zoomInBtn,
  #zoomOutBtn,
  .ctrl-divider {
    display: none;
  }

  .ctrl-stack {
    border-radius: 999px;
  }

  .ctrl-btn.ctrl-recenter {
    width: 40px;
    height: 40px;
  }

  .bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }

  .bnav-btn {
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    height: 48px;
    padding: 4px 2px;
    font-size: 11px;
    border-radius: 12px;
  }

  .bnav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 22px);
    font-size: 9.5px;
    padding: 0 5px;
  }

  .pin-marker {
    height: 27px;
    padding: 0 7px 0 5px;
    font-size: 11.5px;
    gap: 5px;
  }

  .pin-glyph {
    width: 18px;
    height: 18px;
  }

  .sheet-actions {
    gap: 5px;
  }

  .action-btn {
    padding: 0 9px;
    font-size: 11.5px;
  }

  .vote-group-btn {
    padding: 0 7.5px;
    font-size: 11.5px;
  }

  .place-sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 54svh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    transition: max-height 0.2s ease;
  }

  .place-sheet.is-expanded {
    max-height: 82svh;
  }

  .pin-composer {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  }

  .cat-btn {
    height: 29px;
    padding: 0 7.5px;
    font-size: 11.5px;
    gap: 4px;
  }

  .profile-chip-btn {
    position: fixed;
    top: max(17px, calc(env(safe-area-inset-top) + 7px));
    right: 16px;
    z-index: 33;
    height: 32px;
    max-width: 104px;
    padding: 0 9px;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cursor-pin {
    display: none !important;
  }

  .sheet-grab {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .sheet-grab-bar {
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.24);
  }

  .map-foot {
    display: none;
  }

  body.has-sheet .map-controls,
  body.has-sheet .drop-fab {
    display: none;
  }

  body.has-composer .map-controls,
  body.has-composer .drop-fab {
    display: none;
  }

  .toast {
    top: max(64px, calc(env(safe-area-inset-top) + 52px));
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
