:root {
  --ink: #101722;
  --ink-soft: #354253;
  --muted: #657386;
  --blue: #168bff;
  --blue-deep: #0871e8;
  --glass: rgba(255, 255, 255, .29);
  --glass-light: rgba(255, 255, 255, .20);
  --glass-strong: rgba(255, 255, 255, .36);
  --line: rgba(255, 255, 255, .42);
  --line-strong: rgba(255, 255, 255, .58);
  --shadow: 0 18px 46px rgba(25, 38, 55, .12);
  --blur: blur(18px) saturate(170%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #d7e0ea;
}

body {
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  justify-items: stretch;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.legal-page {
  display: block;
  min-height: 100svh;
  overflow: auto;
  color: #102a2d;
  background:
    radial-gradient(circle at 12% 0%, rgba(18,184,187,.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(34,113,232,.14), transparent 30%),
    linear-gradient(180deg, #eef8f6, #f7fbfb 42%, #e9f3f5);
}

.legal-document {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.legal-back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 24px;
  color: #063b3e;
  font-weight: 900;
  text-decoration: none;
}

.legal-document .eyebrow {
  margin: 0 0 8px;
  color: #0a898d;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-document h1 {
  max-width: 720px;
  margin: 0;
  color: #071f24;
  font-size: 2.35rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.legal-document .muted {
  margin: 12px 0 28px;
  color: #51676d;
  font-weight: 760;
}

.legal-document section {
  margin: 16px 0;
  padding: 22px;
  color: #123236;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,89,94,.12);
  border-radius: 16px;
}

.legal-document h2 {
  margin: 0 0 10px;
  color: #0a3034;
  font-size: 1.08rem;
}

.legal-document p {
  max-width: 72ch;
  margin: 0;
  color: #334c52;
  line-height: 1.65;
}

.legal-document a {
  color: #0871e8;
  font-weight: 850;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.legal-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  color: #073135;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,89,94,.14);
  border-radius: 999px;
  text-decoration: none;
}

.phone-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: #d9e3ee;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.screen.active {
  display: block;
}

.map-canvas,
.blur-photo,
.profile-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 39%, rgba(255,255,255,.9) 0 4.5%, transparent 4.8%),
    radial-gradient(circle at 48% 39%, rgba(128,178,118,.42) 0 2.4%, transparent 2.8%),
    linear-gradient(33deg, transparent 0 17%, rgba(255,255,255,.78) 17.6% 20.2%, rgba(93,110,128,.16) 20.3% 21.1%, transparent 21.4%),
    linear-gradient(116deg, transparent 0 27%, rgba(255,255,255,.70) 27.8% 30.2%, rgba(93,110,128,.14) 30.3% 31%, transparent 31.4%),
    linear-gradient(-18deg, transparent 0 44%, rgba(255,255,255,.62) 44.4% 46.1%, rgba(90,105,121,.12) 46.2% 46.8%, transparent 47.2%),
    linear-gradient(83deg, transparent 0 10%, rgba(83,98,115,.09) 10.2% 10.7%, transparent 11% 36%, rgba(83,98,115,.08) 36.3% 36.8%, transparent 37.1% 71%, rgba(83,98,115,.07) 71.3% 71.8%, transparent 72.1%),
    linear-gradient(174deg, transparent 0 14%, rgba(83,98,115,.08) 14.2% 14.7%, transparent 15% 44%, rgba(83,98,115,.07) 44.2% 44.7%, transparent 45% 78%, rgba(83,98,115,.07) 78.2% 78.7%, transparent 79%),
    radial-gradient(circle at 80% 33%, rgba(116,164,128,.28), transparent 16%),
    radial-gradient(circle at 15% 78%, rgba(255,127,91,.12), transparent 18%),
    radial-gradient(circle at 82% 82%, rgba(69,143,203,.18), transparent 24%),
    linear-gradient(180deg, #c9d6e4 0%, #edf3f8 48%, #d2deea 100%);
}

.map-canvas::before,
.blur-photo::before,
.profile-bg::before {
  position: absolute;
  inset: -8%;
  content: "";
  background:
    linear-gradient(27deg, transparent 0 13%, rgba(74,112,149,.16) 13.2% 13.7%, transparent 14% 42%, rgba(74,112,149,.12) 42.2% 42.7%, transparent 43%),
    linear-gradient(106deg, transparent 0 21%, rgba(94,112,130,.14) 21.2% 21.8%, transparent 22.2% 66%, rgba(94,112,130,.11) 66.2% 66.7%, transparent 67%),
    linear-gradient(4deg, transparent 0 7%, rgba(83,98,115,.08) 7.2% 7.5%, transparent 7.8% 17%, rgba(83,98,115,.06) 17.2% 17.5%, transparent 17.8% 27%, rgba(83,98,115,.055) 27.2% 27.5%, transparent 27.8% 39%, rgba(83,98,115,.055) 39.2% 39.5%, transparent 39.8% 53%, rgba(83,98,115,.05) 53.2% 53.5%, transparent 53.8% 69%, rgba(83,98,115,.05) 69.2% 69.5%, transparent 69.8%),
    linear-gradient(94deg, transparent 0 9%, rgba(83,98,115,.055) 9.2% 9.5%, transparent 9.8% 22%, rgba(83,98,115,.05) 22.2% 22.5%, transparent 22.8% 37%, rgba(83,98,115,.05) 37.2% 37.5%, transparent 37.8% 55%, rgba(83,98,115,.045) 55.2% 55.5%, transparent 55.8% 73%, rgba(83,98,115,.045) 73.2% 73.5%, transparent 73.8%);
  filter: blur(.25px);
}

.map-canvas::after,
.blur-photo::after,
.profile-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.22));
  pointer-events: none;
}

.blur-photo,
.profile-bg {
  filter: blur(7px);
  transform: scale(1.04);
}

.map-canvas.soft {
  filter: blur(2px) brightness(1.04);
  transform: scale(1.04);
}

.route,
.park,
.water {
  position: absolute;
  border-radius: 999px;
}

.route {
  height: 7px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 0 1px rgba(86,104,124,.08);
}

.r1 { top: 24%; left: -12%; width: 138%; transform: rotate(-28deg); }
.r2 { top: 54%; left: -18%; width: 132%; transform: rotate(22deg); }
.r3 { top: 39%; left: 18%; width: 90%; transform: rotate(93deg); }

.park {
  width: 156px;
  height: 114px;
  background: rgba(112, 170, 118, .24);
  filter: blur(1px);
}

.p1 { top: 26%; right: -30px; transform: rotate(-18deg); }
.p2 { bottom: 21%; left: -42px; transform: rotate(26deg); }

.water {
  right: -72px;
  bottom: 9%;
  width: 190px;
  height: 270px;
  background: rgba(86, 158, 215, .16);
  transform: rotate(24deg);
}

.marker {
  position: absolute;
  z-index: 3;
  width: 39px;
  height: 39px;
  color: #fff;
  background: linear-gradient(145deg, #2aa4ff, #0574ea);
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(22,139,255,.28);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.marker::after {
  position: absolute;
  inset: -16px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: rgba(22,139,255,.14);
}

.marker:active,
.marker.selected {
  transform: scale(1.12);
  box-shadow: 0 16px 36px rgba(22,139,255,.36);
}

.m1 { top: 30%; left: 18%; }
.m2 { top: 40%; left: 58%; }
.m3 { top: 56%; left: 34%; }
.m4 { top: 22%; right: 18%; }

.top-glass {
  position: absolute;
  z-index: 8;
  top: calc(20px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: center;
}

.icon-button,
.avatar-button,
.round-ghost,
.place-title,
.search-tray,
.filter-panel,
.live-sheet,
.activity-card,
.bottom-nav,
.auth-card,
.provider-stack,
.row p,
.composer input,
.composer button,
.chat-tabs-mini button,
.profile-card,
.stats span,
.profile-card article,
.profile-edit input {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.icon-button,
.avatar-button,
.round-ghost {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(25,38,55,.10);
}

.icon-button svg,
.round-ghost svg,
.bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-button {
  width: 44px;
}

.place-title {
  min-width: 0;
  padding: 9px 16px;
  border-radius: 22px;
}

.place-title strong,
.place-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-title strong {
  font-size: .98rem;
  font-weight: 900;
}

.place-title span {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
}

.avatar-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #182232, #3b5d78);
  border-radius: inherit;
  font-size: .68rem;
  font-weight: 900;
}

.search-tray {
  position: absolute;
  z-index: 7;
  top: calc(80px + env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  height: 0;
  padding: 0 14px;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  transition: height .22s ease, opacity .18s ease;
}

.phone-shell.search-open .search-tray {
  height: 48px;
  opacity: 1;
}

.search-tray svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.search-tray input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
}

.search-tray input::placeholder,
.auth-card input::placeholder,
.composer input::placeholder {
  color: rgba(53,66,83,.72);
}

.filter-panel {
  position: absolute;
  z-index: 7;
  top: calc(80px + env(safe-area-inset-top));
  right: 18px;
  display: grid;
  gap: 8px;
  width: 152px;
  padding: 10px;
  pointer-events: none;
  opacity: 0;
  border-radius: 24px;
  transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .2s ease;
}

.phone-shell.filters-open .filter-panel {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.filter-panel button {
  min-height: 34px;
  color: var(--ink);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}

.filter-panel button.selected,
.filter-panel button:focus-visible {
  color: #fff;
  background: rgba(16,23,34,.90);
  outline: 0;
}

.live-sheet {
  position: absolute;
  z-index: 9;
  left: 14px;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  padding: 12px;
  border-radius: 28px;
  transform: translateY(calc(100% - 36px));
  transition: transform .28s ease;
}

.live-sheet.open {
  transform: translateY(0);
}

.live-sheet.compact {
  transform: translateY(calc(100% - 36px));
}

.grabber {
  display: block;
  width: 52px;
  height: 5px;
  margin: 0 auto 11px;
  padding: 0;
  background: rgba(16,23,34,.24);
  border: 0;
  border-radius: 999px;
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-heading span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.sheet-heading strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 950;
}

.small-pill,
.primary-action,
.text-action,
.demo-action,
.provider-stack button,
.profile-edit button {
  border-radius: 999px;
}

.small-pill {
  padding: 9px 14px;
  color: #fff;
  background: rgba(16,23,34,.92);
  border: 0;
  font-size: .75rem;
  font-weight: 900;
}

.activity-carousel {
  display: grid;
  grid-auto-columns: 132px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.activity-carousel::-webkit-scrollbar {
  display: none;
}

.activity-card {
  min-height: 150px;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(25,38,55,.08);
}

.activity-card:active {
  transform: translateY(1px);
}

.activity-photo {
  height: 70px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.coffee { background: radial-gradient(circle at 68% 34%, #f8f3e9 0 10%, transparent 11%), linear-gradient(135deg, #5b4b3e, #d9c3a7 58%, #f7f2ea); }
.bike { background: radial-gradient(circle at 74% 62%, #1b2634 0 12%, transparent 13%), linear-gradient(135deg, #a9d3ff, #f1f7ff 48%, #6b7b8b); }
.art { background: radial-gradient(circle at 32% 38%, #eef4f7 0 22%, transparent 23%), linear-gradient(135deg, #e8edf1, #a8b9c8 48%, #596879); }
.food { background: radial-gradient(circle at 70% 36%, #f7dfbe 0 18%, transparent 19%), linear-gradient(135deg, #30231d, #f48654 54%, #f7dfbe); }

.activity-card strong,
.activity-card span,
.activity-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: .82rem;
}

.activity-card span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 800;
}

.activity-card small {
  margin-top: 6px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 950;
}

.bottom-nav {
  position: absolute;
  z-index: 30;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: 64px;
  padding: 6px;
  border-radius: 28px;
}

.bottom-nav button {
  display: grid;
  grid-template-rows: 23px 1fr;
  min-width: 0;
  color: #516175;
  background: transparent;
  border: 0;
  border-radius: 22px;
  font-size: .56rem;
  font-weight: 900;
  place-items: center;
}

.bottom-nav button.current {
  color: #fff;
  background: rgba(16,23,34,.92);
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plus {
  display: grid;
  width: 23px;
  height: 23px;
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
}

.simple-header,
.chat-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(20px + env(safe-area-inset-top)) 18px 0;
}

.simple-header strong,
.chat-header strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.auth-screen {
  display: none;
}

.auth-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-card {
  position: relative;
  z-index: 4;
  align-self: center;
  width: min(78vw, 304px);
  margin: 8px auto calc(88px + env(safe-area-inset-bottom));
  padding: 24px 16px 16px;
  color: var(--ink);
  border-radius: 30px;
}

.auth-status {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 900;
}

.auth-card h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.05;
}

.auth-card label {
  display: block;
  margin-top: 9px;
}

.auth-card label span {
  display: none;
}

.auth-card input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255,255,255,.27);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  outline: 0;
  font-weight: 760;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.primary-action,
.text-action,
.demo-action,
.provider-stack button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  font-weight: 950;
}

.primary-action {
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border: 0;
  box-shadow: 0 10px 24px rgba(25,38,55,.08);
}

.text-action {
  color: var(--ink-soft);
  background: transparent;
  border: 0;
}

.demo-action {
  color: #fff;
  background: rgba(16,23,34,.88);
  border: 0;
}

.provider-stack {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(25,38,55,.08);
}

.provider-stack button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
}

.provider-stack b {
  color: var(--ink);
  font-size: 1.08rem;
}

.chat-header {
  color: var(--ink);
}

.chat-header span {
  display: grid;
  width: 34px;
  height: 34px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
  place-items: center;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.chat-tabs-mini {
  position: relative;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 22px 0;
  scrollbar-width: none;
}

.chat-tabs-mini::-webkit-scrollbar {
  display: none;
}

.chat-tabs-mini button {
  min-height: 36px;
  padding: 0 16px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.chat-tabs-mini button.selected {
  color: #fff;
  background: rgba(16,23,34,.92);
}

.message-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 28px 22px 88px;
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
}

.face {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #234, #fff);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
}

.f1 { background: linear-gradient(145deg, #33211c, #e8b98a); }
.f2 { background: linear-gradient(145deg, #1c2330, #d9af7d); }
.f3 { background: linear-gradient(145deg, #24374a, #ead2b9); }
.f4 { background: linear-gradient(145deg, #153c45, #f1d2c1); }

.row p {
  display: grid;
  min-height: 45px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 22px;
}

.row p b,
.row p span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row p b {
  color: rgba(17,24,39,.9);
  font-size: .73rem;
}

.row p span {
  color: rgba(17,24,39,.72);
  font-size: .72rem;
  font-weight: 800;
}

.row time {
  color: rgba(17,24,39,.48);
  font-weight: 900;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.mine {
  justify-self: end;
  color: #fff;
  background: linear-gradient(145deg, #1a9bff, #0871e8);
  box-shadow: 0 16px 34px rgba(22,139,255,.28);
}

.composer {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 58px 38px;
  gap: 8px;
}

.composer input,
.composer button {
  height: 45px;
  border-radius: 999px;
}

.composer input {
  padding: 0 16px;
  color: var(--ink);
  outline: 0;
}

.composer button {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 950;
}

.profile-bg {
  filter: blur(3px);
  transform: scale(1.02);
}

.profile-card {
  position: relative;
  z-index: 3;
  width: calc(100% - 36px);
  margin: 42px auto 0;
  padding: 26px 14px 16px;
  text-align: center;
  border-radius: 28px;
}

.profile-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  color: #fff;
  background: linear-gradient(145deg, #23384e, #53b5ff);
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 50%;
  font-weight: 950;
  place-items: center;
}

.profile-card h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stats span,
.profile-card article {
  padding: 13px 10px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(25,38,55,.06);
}

.stats b,
.profile-card article strong,
.profile-card article p {
  display: block;
}

.stats b {
  font-size: 1.45rem;
}

.stats span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.profile-card article {
  margin-top: 10px;
  text-align: left;
}

.profile-card article p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.profile-edit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-edit input,
.profile-edit button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 850;
}

.profile-edit input {
  color: var(--ink);
}

.profile-edit button {
  color: #fff;
  background: rgba(16,23,34,.92);
  border: 0;
}

.bottom-nav button:focus-visible,
.icon-button:focus-visible,
.avatar-button:focus-visible,
.round-ghost:focus-visible,
.small-pill:focus-visible,
.primary-action:focus-visible,
.text-action:focus-visible,
.demo-action:focus-visible {
  outline: 2px solid rgba(22,139,255,.55);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  body {
    justify-items: center;
  }

  .phone-shell {
    height: min(900px, 96svh);
    min-height: 780px;
    border: 12px solid #0b0d12;
    border-radius: 52px;
  }

  .phone-shell::before {
    position: absolute;
    z-index: 60;
    top: 10px;
    left: 50%;
    width: 116px;
    height: 34px;
    content: "";
    background: #050609;
    border-radius: 999px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Mecly profile map app */
.status-bar,
.profile-topbar,
.profile-preview-card,
.stats-card,
.info-glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.status-bar {
  position: absolute;
  z-index: 12;
  top: calc(8px + env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 4px;
  color: rgba(16,23,34,.88);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: .78rem;
  font-weight: 900;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.status-icons {
  letter-spacing: .02em;
}

.profile-topbar {
  position: absolute;
  z-index: 10;
  top: calc(42px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 50px;
  padding: 4px;
  border-radius: 999px;
}

.profile-topbar strong {
  text-align: center;
  font-size: 1rem;
  font-weight: 950;
}

.map-profile-stack {
  position: absolute;
  z-index: 6;
  top: calc(132px + env(safe-area-inset-top));
  left: 22px;
  right: 22px;
  display: grid;
  gap: 12px;
}

.profile-preview-card {
  display: grid;
  grid-template-columns: 54px 1fr 12px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border-radius: 28px;
}

.preview-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.9), transparent 13%),
    linear-gradient(145deg, #263349, #4aa8f0);
  border: 2px solid rgba(255,255,255,.74);
  border-radius: 50%;
  font-weight: 950;
  place-items: center;
}

.profile-preview-card strong {
  display: block;
  font-size: 1.12rem;
}

.profile-preview-card p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 760;
}

.online-dot {
  width: 11px;
  height: 11px;
  background: #34d661;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
}

.stats-card span {
  display: grid;
  min-height: 72px;
  color: var(--muted);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 850;
  place-items: center;
}

.stats-card b {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.info-glass-card {
  padding: 16px 18px;
  border-radius: 24px;
}

.info-glass-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

.info-glass-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 780;
}

.map-profile-screen .bottom-nav,
.bottom-nav {
  bottom: calc(16px + env(safe-area-inset-bottom));
  height: 66px;
  border-radius: 999px;
}

/* Photorealistic app shell */
body {
  position: relative;
  justify-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.88), transparent 18%),
    radial-gradient(circle at 82% 52%, rgba(42,76,98,.34), transparent 24%),
    radial-gradient(circle at 18% 72%, rgba(214,147,91,.22), transparent 22%),
    linear-gradient(105deg, #a8b6bf 0 15%, #eef2f4 18% 42%, #7d8f99 44% 56%, #e9edef 58% 72%, #59666e 74% 100%);
}

body::before {
  position: fixed;
  inset: -28px;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(31,39,43,.22) 16% 22%, transparent 23% 48%, rgba(255,255,255,.42) 49% 55%, transparent 56% 78%, rgba(33,39,42,.20) 79% 84%, transparent 85%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.10)),
    radial-gradient(circle at 44% 80%, rgba(184,215,225,.58), transparent 25%);
  filter: blur(18px);
  transform: scale(1.04);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.05) 52%, rgba(0,0,0,.18));
  pointer-events: none;
}

.phone-shell {
  width: min(72vw, 272px);
  height: min(76svh, 590px);
  min-height: 0;
  overflow: hidden;
  background: #e4edf3;
  border: 7px solid #07090c;
  border-radius: 42px;
  box-shadow:
    0 42px 90px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.24),
    inset 0 0 0 1px rgba(255,255,255,.18);
}

.phone-shell::before {
  position: absolute;
  z-index: 80;
  top: 10px;
  left: 50%;
  width: 76px;
  height: 22px;
  content: "";
  background: #020306;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: inset 0 -1px 1px rgba(255,255,255,.14);
}

.phone-shell::after {
  position: absolute;
  inset: 0;
  z-index: 70;
  content: "";
  background:
    linear-gradient(105deg, rgba(255,255,255,.20), transparent 24% 68%, rgba(255,255,255,.10)),
    radial-gradient(circle at 50% 4%, rgba(255,255,255,.18), transparent 18%);
  border-radius: 34px;
  pointer-events: none;
}

.map-frame {
  position: absolute;
  inset: -34px -30px -118px;
  z-index: 0;
  width: calc(100% + 60px);
  height: calc(100% + 152px);
  border: 0;
  filter: saturate(.92) contrast(.96) brightness(1.07);
  pointer-events: none;
}

.map-texture::before,
.map-texture::after {
  opacity: .34;
}

.map-texture .route,
.map-texture .park,
.map-texture .water {
  display: none;
}

.marker {
  z-index: 2;
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: .72rem;
}

.map-label {
  position: absolute;
  z-index: 1;
  color: rgba(64,75,86,.62);
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  pointer-events: none;
}

.label-mitte {
  top: 31%;
  left: 57%;
  font-size: .7rem;
  letter-spacing: .12em;
}

.label-market {
  top: 22%;
  right: 7%;
}

.label-street-a {
  top: 17%;
  left: 29%;
  transform: rotate(-20deg);
}

.label-street-b {
  top: 46%;
  left: 12%;
  transform: rotate(21deg);
}

.label-park {
  top: 68%;
  left: 9%;
  transform: rotate(-18deg);
}

.marker::after {
  inset: -10px;
}

.status-bar {
  top: 9px;
  left: 14px;
  right: 14px;
  height: 18px;
  font-size: .54rem;
}

.profile-topbar {
  top: 34px;
  left: 13px;
  right: 13px;
  grid-template-columns: 30px 1fr 30px;
  min-height: 34px;
  padding: 3px;
  background: rgba(255,255,255,.26);
}

.profile-topbar .round-ghost {
  width: 28px;
  height: 28px;
}

.profile-topbar strong {
  font-size: .68rem;
}

.profile-topbar svg,
.bottom-nav svg {
  width: 14px;
  height: 14px;
}

.map-profile-stack {
  top: 246px;
  left: 14px;
  right: 14px;
  gap: 7px;
}

.profile-preview-card {
  grid-template-columns: 36px 1fr 8px;
  min-height: 58px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.30);
}

.preview-avatar {
  width: 36px;
  height: 36px;
  font-size: .62rem;
}

.profile-preview-card strong {
  font-size: .74rem;
}

.profile-preview-card p {
  margin-top: 1px;
  font-size: .55rem;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-width: 1px;
}

.stats-card {
  gap: 5px;
  padding: 6px;
  border-radius: 17px;
  background: rgba(255,255,255,.27);
}

.stats-card span {
  min-height: 48px;
  border-radius: 13px;
  font-size: .48rem;
}

.stats-card b {
  font-size: .96rem;
}

.info-glass-card {
  padding: 9px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.30);
}

.info-glass-card strong {
  margin-bottom: 2px;
  font-size: .55rem;
}

.info-glass-card p {
  font-size: .50rem;
}

.bottom-nav {
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 46px;
  padding: 4px;
  background: rgba(255,255,255,.30);
}

.bottom-nav button {
  grid-template-rows: 16px 1fr;
  border-radius: 17px;
  font-size: .43rem;
}

.bottom-nav button.current {
  background: rgba(16,23,34,.90);
}

.plus {
  width: 16px;
  height: 16px;
  font-size: .86rem;
}

@media (max-width: 360px) {
  .phone-shell {
    width: min(76vw, 262px);
    height: min(76svh, 568px);
  }

  .map-profile-stack {
    top: 232px;
  }
}

.profile-screen .profile-card {
  max-height: calc(100% - 106px);
  margin-top: 18px;
  padding: 18px 12px 76px;
  overflow-y: auto;
  scrollbar-width: none;
}

.profile-screen .profile-card::-webkit-scrollbar {
  display: none;
}

.profile-screen .profile-avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
}

.profile-screen .profile-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.profile-screen .stats {
  gap: 6px;
  margin-bottom: 8px;
}

.profile-screen .stats span,
.profile-screen .profile-card article {
  padding: 9px 8px;
  border-radius: 16px;
}

.profile-screen .stats b {
  font-size: 1.05rem;
}

.profile-screen .profile-card article {
  margin-top: 8px;
}

.phone-shell .chat-header {
  padding: 54px 18px 0;
}

.phone-shell .chat-header strong {
  max-width: 122px;
  line-height: 1.05;
}

.phone-shell .chat-tabs-mini {
  padding-top: 14px;
}

.phone-shell .composer {
  left: 16px;
  right: 16px;
  grid-template-columns: 1fr 32px;
  gap: 6px;
}

.phone-shell .composer [data-share-location] {
  display: none;
}

.phone-shell .composer button {
  overflow: hidden;
  color: transparent;
  position: relative;
}

.phone-shell .composer [data-send-message]::after {
  content: "›";
}

.phone-shell .composer [data-share-location]::after {
  content: "⌖";
}

.phone-shell .composer button::after {
  position: absolute;
  inset: 0;
  display: grid;
  color: var(--ink);
  font-size: .82rem;
  place-items: center;
}

.auth-screen .map-canvas.soft,
.chat-screen .blur-photo,
.profile-screen .profile-bg {
  filter: none;
  transform: none;
}

.auth-screen .map-canvas.soft::after,
.chat-screen .blur-photo::after,
.profile-screen .profile-bg::after {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.36));
}

.chat-screen .message-list,
.profile-screen .profile-card,
.auth-screen .auth-card {
  background: rgba(255,255,255,.22);
}

/* Full-screen app mode: the product is the map, not an iPhone mockup. */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  display: block;
  min-height: 100svh;
  overflow: hidden;
  background: #dbe6ef;
}

body::before,
body::after,
.phone-shell::before,
.phone-shell::after {
  display: none !important;
  content: none !important;
}

.phone-shell {
  width: 100vw;
  max-width: none;
  height: 100svh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.screen {
  inset: 0;
}

.map-frame {
  inset: -42px -42px -140px;
  width: calc(100% + 84px);
  height: calc(100% + 182px);
  pointer-events: none;
  display: none;
}

.map-texture {
  background:
    linear-gradient(180deg, rgba(244,249,252,.02), rgba(244,249,252,.03)),
    url("/map-texture.svg") center / cover no-repeat;
}

.status-bar {
  top: calc(8px + env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  height: 28px;
  font-size: .78rem;
}

.profile-topbar {
  top: calc(42px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  grid-template-columns: 42px 1fr 42px;
  min-height: 50px;
  padding: 4px;
}

.profile-topbar .round-ghost {
  width: 42px;
  height: 42px;
}

.profile-topbar strong {
  font-size: 1rem;
}

.profile-topbar svg,
.round-ghost svg,
.simple-header svg,
.bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-profile-stack {
  top: calc(132px + env(safe-area-inset-top));
  left: 22px;
  right: 22px;
  gap: 12px;
}

.profile-preview-card {
  grid-template-columns: 54px 1fr 12px;
  min-height: 82px;
  padding: 14px;
  border-radius: 28px;
}

.preview-avatar {
  width: 54px;
  height: 54px;
  font-size: .85rem;
}

.profile-preview-card strong {
  font-size: 1.12rem;
}

.profile-preview-card p {
  margin-top: 3px;
  font-size: .82rem;
}

.online-dot {
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.stats-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  overflow: hidden;
}

.stats-card span {
  min-width: 0;
  min-height: 72px;
  border-radius: 20px;
  overflow: hidden;
  font-size: .62rem;
  text-align: center;
}

.stats-card b {
  max-width: 100%;
  overflow: hidden;
  font-size: 1.36rem;
  text-overflow: ellipsis;
}

.info-glass-card {
  padding: 16px 18px;
  border-radius: 24px;
}

.info-glass-card strong {
  margin-bottom: 4px;
  font-size: .95rem;
}

.info-glass-card p {
  font-size: .95rem;
}

.bottom-nav {
  left: 10px;
  right: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  height: 66px;
  padding: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.bottom-nav button {
  grid-template-rows: 23px 1fr;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  font-size: .5rem;
}

.plus {
  width: 23px;
  height: 23px;
  font-size: 1.2rem;
}

.phone-shell .chat-header {
  padding: calc(18px + env(safe-area-inset-top)) 18px 0;
}

.phone-shell .chat-header strong {
  max-width: none;
  line-height: 1.1;
}

.phone-shell .chat-tabs-mini {
  padding-top: 20px;
}

.phone-shell .composer {
  left: 18px;
  right: 18px;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.phone-shell .composer [data-share-location] {
  display: none;
}

.phone-shell .composer [data-send-message]::after {
  content: ">";
}

.phone-shell .composer [data-share-location]::after {
  content: "+";
}

/* Reference pass: map-profile screen should match the light premium mockup. */
.profile-topbar [data-open="profile"] {
  color: transparent;
  background:
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)),
    url("https://randomuser.me/api/portraits/men/32.jpg") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 8px 18px rgba(18,31,48,.12);
}

.profile-topbar [data-open="profile"] svg {
  display: none;
}

.preview-avatar,
.profile-avatar {
  color: transparent;
  font-size: 0;
  background:
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
    url("https://randomuser.me/api/portraits/men/32.jpg") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 0 8px 18px rgba(18,31,48,.14);
}

.profile-preview-card {
  grid-template-columns: 64px 1fr 12px;
  min-height: 104px;
  padding: 18px;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
}

.preview-avatar {
  width: 64px;
  height: 64px;
}

.profile-preview-card strong {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: 0;
}

.profile-preview-card p {
  color: #223044;
  font-size: .88rem;
  font-weight: 520;
}

.stats-card {
  gap: 0;
  min-height: 112px;
  padding: 0;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(27,39,56,.11);
}

.stats-card span {
  position: relative;
  min-height: 112px;
  color: #202a37;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .88rem;
  font-weight: 500;
  gap: 9px;
  align-content: center;
}

.stats-card span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(255,255,255,.72);
}

.stats-card b {
  color: #070b12;
  font-size: 1.72rem;
  font-weight: 560;
  letter-spacing: 0;
}

.info-glass-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 15px 18px;
  color: #151c27;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(27,39,56,.09);
}

.info-glass-card::before {
  flex: 0 0 auto;
  display: grid;
  width: 28px;
  height: 28px;
  color: #243044;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  place-items: center;
}

.info-glass-card:nth-of-type(3)::before {
  content: "◎";
}

.info-glass-card:nth-of-type(4)::before {
  content: "☆";
  border: 0;
  font-size: 1.65rem;
}

.info-glass-card strong,
.info-glass-card p {
  display: inline;
  margin: 0;
  color: #151c27;
  font-size: .88rem;
  font-weight: 500;
}

.info-glass-card strong::after {
  content: ": ";
}

.bottom-nav {
  left: 18px;
  right: 18px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(21,32,49,.12), inset 0 1px 1px rgba(255,255,255,.66);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  overflow: hidden;
}

.bottom-nav button {
  flex: 0 0 46px;
  width: 46px;
  height: 58px;
  grid-template-rows: 26px 16px;
  color: #162235;
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 620;
  letter-spacing: 0;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bottom-nav button.current {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  color: #fff;
  background: radial-gradient(circle at 72% 18%, rgba(255,255,255,.3), transparent 24%), linear-gradient(145deg, #26365b, #071124 72%);
  box-shadow: 0 12px 24px rgba(12,19,35,.28), inset 0 1px 1px rgba(255,255,255,.26);
}

.bottom-nav button:not(.current):hover,
.bottom-nav button:not(.current):focus-visible {
  background: rgba(255,255,255,.2);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
}

.bottom-nav .create-button {
  background: transparent;
}

.bottom-nav .create-button .plus {
  width: 42px;
  height: 42px;
  color: #101827;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.74), 0 8px 18px rgba(21,32,49,.08);
  font-size: 1.7rem;
  font-weight: 260;
}

.bottom-nav .create-button span:last-child {
  margin-top: -8px;
}

/* Functional Live Map start screen */
.live-topbar {
  position: absolute;
  z-index: 20;
  top: calc(42px + env(safe-area-inset-top));
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  gap: 8px;
  align-items: center;
}

.search-pill {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  gap: 10px;
  color: #111827;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 12px 28px rgba(16,24,39,.1);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  font-size: .92rem;
  font-weight: 760;
}

.search-pill svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-map-sheet {
  position: absolute;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: calc(104px + env(safe-area-inset-bottom));
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.2));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(18,31,48,.14), inset 0 1px 1px rgba(255,255,255,.72);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
}

.sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 10px;
  background: rgba(17,24,39,.18);
  border-radius: 999px;
}

.sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sheet-title strong {
  color: #111827;
  font-size: 1rem;
}

.sheet-title button {
  min-height: 32px;
  padding: 0 12px;
  color: #132033;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 760;
}

.activity-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 166px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.activity-carousel::-webkit-scrollbar {
  display: none;
}

.activity-tile[hidden] {
  display: none;
}

.activity-tile {
  display: grid;
  grid-template-rows: 62px auto auto auto;
  gap: 5px;
  min-height: 146px;
  padding: 8px;
  text-align: left;
  color: #111827;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 10px 22px rgba(18,31,48,.08);
}

.event-discovery-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-auto-flow: row;
  min-height: 132px;
  padding: 10px;
  gap: 7px 9px;
  cursor: pointer;
}

.event-discovery-card.selected {
  border-color: rgba(22,139,255,.66);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.68), 0 0 0 3px rgba(22,139,255,.16), 0 14px 28px rgba(18,31,48,.12);
}

.event-discovery-card:focus-visible,
.activity-tile:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.event-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 12px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5);
  font-size: 1.1rem;
  line-height: 1;
}

.event-card-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.event-card-main b {
  overflow: hidden;
  color: #0f172a;
  font-size: .86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-main small,
.event-card-main em {
  overflow: hidden;
  color: #334155;
  font-size: .68rem;
  font-style: normal;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-main em {
  color: #0f172a;
}

.event-card-chips {
  grid-column: 1 / -1;
  display: flex;
  min-height: 22px;
  gap: 5px;
  overflow: hidden;
  flex-wrap: wrap;
}

.event-card-chip,
.event-card-status,
.event-status-chip,
.event-card-details,
.event-card-join {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.event-card-chip {
  color: #1f2937;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.5);
}

.event-card-chip.route {
  color: #075985;
  background: rgba(224,242,254,.64);
}

.event-card-chip.quest {
  color: #713f12;
  background: rgba(254,243,199,.72);
}

.event-card-chip.privacy {
  color: #4338ca;
  background: rgba(224,231,255,.72);
}

.event-card-chip.joined,
.event-card-status.joined {
  flex: 1 1 58px;
  max-width: 100%;
  color: #065f46;
  background: rgba(209,250,229,.8);
}

.event-card-chip.full,
.event-card-status.full {
  flex: 1 1 100%;
  max-width: 100%;
  color: #7f1d1d;
  background: rgba(254,226,226,.82);
}

.event-status-chip {
  color: #0f172a;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.58);
}

.event-status-chip.live {
  color: #065f46;
  background: rgba(209,250,229,.82);
}

.event-status-chip.upcoming {
  color: #075985;
  background: rgba(224,242,254,.78);
}

.event-status-chip.ended {
  color: #7f1d1d;
  background: rgba(254,226,226,.82);
}

.event-card-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  overflow: hidden;
}

.event-card-details {
  flex: 1 1 74px;
  color: #172033;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
}

.event-card-join {
  color: #fff;
  background: rgba(15,23,42,.86);
  border: 1px solid rgba(255,255,255,.34);
  cursor: pointer;
}

.event-card-join:focus-visible {
  outline: 3px solid rgba(22,139,255,.34);
  outline-offset: 2px;
}

.tile-photo {
  display: block;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
}

.tile-photo.coffee {
  background-image: linear-gradient(135deg, rgba(71,54,37,.2), rgba(255,255,255,.05)), url("https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=240&q=70");
}

.tile-photo.ride {
  background-image: linear-gradient(135deg, rgba(30,64,175,.18), rgba(255,255,255,.04)), url("https://images.unsplash.com/photo-1485965120184-e220f721d03e?auto=format&fit=crop&w=240&q=70");
}

.tile-photo.gallery {
  background-image: linear-gradient(135deg, rgba(88,28,135,.16), rgba(255,255,255,.05)), url("https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=240&q=70");
}

.activity-tile b {
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-tile small,
.activity-tile em {
  color: #334155;
  font-size: .7rem;
  font-style: normal;
  font-weight: 680;
}

.activity-tile em {
  color: #0f172a;
}

.activity-tile.created.just-created {
  border-color: rgba(0,122,255,.62);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 0 0 4px rgba(0,122,255,.12), 0 14px 30px rgba(18,31,48,.13);
  animation: createdTileIn .52s cubic-bezier(.22,1,.36,1);
}

.event-discovery-empty {
  display: grid;
  margin: 6px 4px 2px;
  padding: 10px 12px;
  gap: 8px;
  justify-items: center;
  color: #334155;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 740;
  text-align: center;
}

.event-discovery-empty button {
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: rgba(15,23,42,.86);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 820;
}

.event-discovery-empty button:focus-visible {
  outline: 3px solid rgba(22,139,255,.32);
  outline-offset: 2px;
}

.event-discovery-empty[hidden] {
  display: none;
}

@keyframes createdTileIn {
  from {
    opacity: .66;
    transform: translateY(8px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bottom-nav {
  left: 18px;
  right: 18px;
  height: 74px;
  padding: 7px 8px;
}

.bottom-nav button,
.bottom-nav button.current {
  flex: 1 1 0;
  width: auto;
  height: 58px;
  min-width: 0;
  border-radius: 24px;
}

.bottom-nav button.current {
  box-shadow: 0 10px 22px rgba(12,19,35,.22), inset 0 1px 1px rgba(255,255,255,.26);
}

.bottom-nav span {
  max-width: 100%;
  font-size: .52rem;
}

.bottom-nav .create-button .plus {
  width: 34px;
  height: 34px;
  font-size: 1.45rem;
}

.bottom-nav .create-button span:last-child {
  margin-top: -4px;
}

.notifications-screen .profile-bg {
  position: absolute;
  inset: 0;
}

.notification-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 28px 18px 100px;
}

.notification-list article {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #111827;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(18,31,48,.1);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.notification-list span {
  color: #475569;
  font-size: .82rem;
  font-weight: 650;
}

/* v19: real map + clearer glass layer */
.map-profile-screen .map-canvas {
  background: #dfe8ef;
}

.map-profile-screen .map-canvas::before {
  opacity: .06;
}

.map-profile-screen .map-canvas::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 34%, rgba(255,255,255,.1)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.2), transparent 34%);
  pointer-events: none;
  z-index: 2;
}

.real-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.02) brightness(1.03);
}

.real-map .leaflet-container,
.leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: inherit;
}

.leaflet-control-attribution {
  display: none;
}

.mecly-map-pin {
  display: grid;
  place-items: center;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  color: #fff;
  background: rgba(31, 136, 239, .88);
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(20,72,130,.24), inset 0 1px 1px rgba(255,255,255,.5);
  transform: translate(-17px, -17px);
}

.mecly-map-pin span {
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.mecly-map-pin.created-event-pin {
  width: 40px !important;
  height: 40px !important;
  color: #101722;
  background: rgba(255,255,255,.46);
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.72);
  transform: translate(-20px, -20px);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.mecly-map-pin.created-event-pin span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255,255,255,.34);
  border-radius: 50%;
  font-size: 1rem;
}

.mecly-map-pin.created-event-pin.selected,
.mecly-map-pin.created-event-pin.just-created {
  border-color: rgba(0,122,255,.75);
  box-shadow: 0 0 0 7px rgba(0,122,255,.13), 0 14px 32px rgba(15,23,42,.2), inset 0 1px 1px rgba(255,255,255,.82);
}

.mecly-map-pin.created-event-pin.just-created {
  animation: createdMarkerIn .72s cubic-bezier(.22,1,.36,1);
}

@keyframes createdMarkerIn {
  0% {
    opacity: 0;
    transform: translate(-20px, -20px) scale(.62);
  }
  68% {
    opacity: 1;
    transform: translate(-20px, -20px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(-20px, -20px) scale(1);
  }
}

.mecly-user-pin {
  display: grid;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  place-items: center;
  background: rgba(22,139,255,.18);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(22,139,255,.14);
  transform: translate(-12px, -12px);
}

.mecly-user-pin span {
  width: 12px;
  height: 12px;
  background: #168bff;
  border: 2px solid #fff;
  border-radius: 50%;
}

.map-frame {
  display: none;
}

.live-topbar {
  z-index: 30;
}

.event-discovery-bar {
  position: absolute;
  z-index: 42;
  top: calc(64px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.event-discovery-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 128px);
  gap: 7px;
  padding: 0 2px 4px;
  pointer-events: auto;
}

.event-discovery-search,
.event-discovery-sort {
  min-width: 0;
  min-height: 36px;
  color: #142033;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.64), 0 10px 24px rgba(16,24,39,.09);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.event-discovery-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 3px;
  padding: 0 6px 0 12px;
}

.event-discovery-search span {
  color: rgba(15,23,42,.58);
  font-size: .82rem;
  font-weight: 900;
}

.event-discovery-search input,
.event-discovery-sort select {
  width: 100%;
  min-width: 0;
  color: #142033;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
}

.event-discovery-search input::placeholder {
  color: rgba(15,23,42,.58);
}

.event-discovery-search button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #334155;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 50%;
  font-size: .94rem;
  font-weight: 900;
  line-height: 1;
}

.event-discovery-search button[hidden] {
  display: none;
}

.event-discovery-sort {
  display: grid;
  align-items: center;
  padding: 0 8px 0 12px;
}

.event-discovery-sort select {
  height: 34px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(15,23,42,.66) 50%), linear-gradient(135deg, rgba(15,23,42,.66) 50%, transparent 50%);
  background-position: calc(100% - 10px) 14px, calc(100% - 5px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 18px;
}

.event-discovery-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
  pointer-events: auto;
}

.event-discovery-scroll::-webkit-scrollbar {
  display: none;
}

.event-discovery-scroll button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px 0 12px;
  gap: 6px;
  color: #142033;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 10px 24px rgba(16,24,39,.09);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  font-size: .76rem;
  font-weight: 780;
  white-space: nowrap;
}

.event-discovery-scroll button b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #334155;
  background: rgba(255,255,255,.52);
  border-radius: 999px;
  font-size: .66rem;
  line-height: 18px;
  text-align: center;
}

.event-discovery-scroll button.selected {
  color: #fff;
  background: rgba(15,23,42,.84);
  border-color: rgba(255,255,255,.44);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 12px 26px rgba(15,23,42,.16);
}

.event-discovery-scroll button.selected b {
  color: #0f172a;
  background: rgba(255,255,255,.86);
}

.event-discovery-search:focus-within,
.event-discovery-sort:focus-within,
.event-discovery-search button:focus-visible,
.event-discovery-scroll button:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.viewport-discovery-control {
  position: absolute;
  z-index: 41;
  top: calc(148px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  justify-content: center;
  width: min(300px, calc(100% - 28px));
  pointer-events: none;
  transform: translateX(-50%);
}

.viewport-discovery-control[hidden],
.viewport-area-button[hidden],
.viewport-area-chip[hidden] {
  display: none;
}

.phone-shell.event-selected .event-discovery-bar,
.phone-shell.share-panel-open .event-discovery-bar,
.phone-shell.user-profile-open .event-discovery-bar,
.phone-shell.notification-center-open .event-discovery-bar,
.phone-shell:has(.create-screen.active) .event-discovery-bar,
.phone-shell.event-selected .viewport-discovery-control,
.phone-shell.share-panel-open .viewport-discovery-control,
.phone-shell.user-profile-open .viewport-discovery-control,
.phone-shell.notification-center-open .viewport-discovery-control,
.phone-shell:has(.create-screen.active) .viewport-discovery-control {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.viewport-area-button,
.viewport-area-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  gap: 7px;
  color: #142033;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.64), 0 10px 24px rgba(16,24,39,.10);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  font-size: .76rem;
  font-weight: 820;
  line-height: 1;
  pointer-events: auto;
  white-space: nowrap;
}

.viewport-area-button {
  padding: 0 13px;
}

.viewport-area-chip {
  padding: 0 5px 0 12px;
}

.viewport-area-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewport-area-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #334155;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1;
}

.viewport-area-button:focus-visible,
.viewport-area-chip button:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.user-mini-profile-trigger {
  position: absolute;
  z-index: 42;
  top: calc(172px + env(safe-area-inset-top));
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.66), 0 10px 24px rgba(16,24,39,.10);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  font-size: .72rem;
  font-weight: 900;
}

.user-mini-profile-trigger:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.phone-shell.user-profile-open .user-mini-profile-trigger {
  color: #fff;
  background: rgba(15,23,42,.84);
}

.notification-center-trigger {
  position: absolute;
  z-index: 42;
  top: calc(216px + env(safe-area-inset-top));
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.66), 0 10px 24px rgba(16,24,39,.10);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  font-size: .92rem;
}

.notification-center-trigger b {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: #ef4444;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 950;
  line-height: 14px;
  text-align: center;
}

.notification-center-trigger b[hidden] {
  display: none;
}

.notification-center-trigger:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.phone-shell.notification-center-open .notification-center-trigger {
  color: #fff;
  background: rgba(15,23,42,.84);
}

.phone-shell.sheet-open .user-mini-profile-trigger,
.phone-shell.sheet-open .notification-center-trigger,
.phone-shell.share-panel-open .user-mini-profile-trigger,
.phone-shell.share-panel-open .notification-center-trigger,
.phone-shell.create-actions-open .user-mini-profile-trigger,
.phone-shell.create-actions-open .notification-center-trigger,
.phone-shell.post-composer-open .user-mini-profile-trigger,
.phone-shell.post-composer-open .notification-center-trigger,
.phone-shell.map-picker-open .user-mini-profile-trigger,
.phone-shell.map-picker-open .notification-center-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.96);
}

.phone-shell:has(.event-room-screen.active) .event-discovery-bar,
.phone-shell:has(.event-recap-screen.active) .event-discovery-bar,
.phone-shell:has(.event-room-screen.active) .viewport-discovery-control,
.phone-shell:has(.event-recap-screen.active) .viewport-discovery-control,
.phone-shell:has(.event-room-screen.active) .user-mini-profile-trigger,
.phone-shell:has(.event-recap-screen.active) .user-mini-profile-trigger,
.phone-shell:has(.event-room-screen.active) .notification-center-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.96);
}

.phone-shell:has(.event-recap-screen.active) .notification-center-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.96);
}

.phone-shell:has(.event-room-screen.active) .bottom-nav,
.phone-shell:has(.event-recap-screen.active) .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}

.user-mini-profile-panel {
  position: absolute;
  z-index: 58;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  max-height: min(520px, 58vh);
  overflow: auto;
  gap: 10px;
  padding: 12px;
  color: #142033;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15,23,42,.16), inset 0 1px 1px rgba(255,255,255,.66);
  backdrop-filter: blur(24px) saturate(1.20);
  -webkit-backdrop-filter: blur(24px) saturate(1.20);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.notification-center-panel {
  position: absolute;
  z-index: 59;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  max-height: min(520px, 58vh);
  overflow: auto;
  gap: 10px;
  padding: 12px;
  color: #142033;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15,23,42,.16), inset 0 1px 1px rgba(255,255,255,.66);
  backdrop-filter: blur(24px) saturate(1.20);
  -webkit-backdrop-filter: blur(24px) saturate(1.20);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.user-mini-profile-panel[aria-hidden="true"],
.notification-center-panel[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

.notification-center-head {
  position: sticky;
  top: -12px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  margin: -12px -12px 0;
  padding: 12px;
  background: rgba(244,250,239,.72);
  border-bottom: 1px solid rgba(255,255,255,.48);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  backdrop-filter: blur(18px) saturate(1.14);
}

.notification-center-head small {
  color: rgba(15,23,42,.66);
  font-size: .7rem;
  font-weight: 820;
}

.notification-center-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.notification-center-head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #334155;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.notification-center-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.notification-center-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
}

.notification-list {
  display: grid;
  gap: 7px;
}

.notification-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 12px;
  text-align: left;
}

.notification-row.read {
  opacity: .72;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: #168bff;
  border-radius: 50%;
}

.notification-row.read .notification-dot {
  background: rgba(51,65,85,.30);
}

.notification-main {
  min-width: 0;
}

.notification-main b,
.notification-main small,
.notification-main em,
.notification-meta small,
.notification-meta time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-main b {
  font-size: .82rem;
  line-height: 1.15;
}

.notification-main small,
.notification-main em {
  margin-top: 2px;
  color: rgba(15,23,42,.66);
  font-size: .68rem;
  font-style: normal;
  font-weight: 760;
}

.notification-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.notification-meta small {
  max-width: 72px;
  padding: 4px 6px;
  color: #334155;
  background: rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 900;
}

.notification-meta time {
  max-width: 64px;
  color: rgba(15,23,42,.58);
  font-size: .62rem;
  font-weight: 760;
}

.notification-empty {
  margin: 0;
  padding: 10px;
  color: rgba(15,23,42,.66);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 780;
}

.user-mini-profile-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.user-mini-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgba(15,23,42,.88);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
}

.user-mini-profile-head small,
.user-mini-section-title,
.user-mini-row small,
.user-mini-empty {
  color: rgba(15,23,42,.66);
}

.user-mini-profile-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.user-mini-profile-head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #334155;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.user-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.user-mini-stats span {
  min-width: 0;
  padding: 8px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 12px;
}

.user-mini-stats b,
.user-mini-stats small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini-stats b {
  font-size: 1rem;
}

.user-mini-stats small {
  color: rgba(15,23,42,.62);
  font-size: .66rem;
  font-weight: 780;
}

.user-mini-section {
  display: grid;
  gap: 6px;
}

.user-mini-section-title {
  font-size: .72rem;
  font-weight: 900;
}

.user-mini-list {
  display: grid;
  gap: 6px;
}

.user-mini-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 7px;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 12px;
  text-align: left;
}

.user-mini-row-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: rgba(255,255,255,.48);
  border-radius: 10px;
  font-size: 1rem;
}

.user-mini-row-main {
  min-width: 0;
}

.user-mini-row-main b,
.user-mini-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini-row-main b {
  font-size: .82rem;
  line-height: 1.15;
}

.user-mini-row-main small {
  margin-top: 2px;
  font-size: .68rem;
  font-weight: 760;
}

.user-mini-row em {
  padding: 5px 7px;
  color: #334155;
  background: rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .64rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.user-mini-row em.joined,
.user-mini-row.quest em {
  color: #065f46;
  background: rgba(16,185,129,.16);
}

.user-mini-empty {
  margin: 0;
  padding: 9px 10px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 780;
}

.notification-center-head button:focus-visible,
.notification-center-actions button:focus-visible,
.notification-row:focus-visible,
.user-mini-profile-head button:focus-visible,
.user-mini-row:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .notification-center-panel,
  .user-mini-profile-panel {
    transition: none;
  }
}

.search-pill,
.live-topbar .round-ghost,
.sheet-title button,
.filter-row button {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.48);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 10px 26px rgba(16,24,39,.08);
  backdrop-filter: blur(20px) saturate(1.24);
  -webkit-backdrop-filter: blur(20px) saturate(1.24);
}

.live-map-sheet {
  z-index: 30;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.44);
  box-shadow: 0 18px 44px rgba(15,23,42,.11), inset 0 1px 1px rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.filter-row {
  display: none;
  gap: 8px;
  margin: -2px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filters-open .filter-row {
  display: flex;
}

.filter-row button {
  min-height: 32px;
  padding: 0 13px;
  color: #142033;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 760;
  white-space: nowrap;
}

.filter-row button.selected {
  color: #fff;
  background: rgba(18,28,47,.82);
  border-color: rgba(255,255,255,.36);
}

.activity-tile {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.54), 0 10px 24px rgba(18,31,48,.07);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

.bottom-nav {
  left: 12px;
  right: 12px;
  height: 78px;
  padding: 8px 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 18px 44px rgba(15,23,42,.13), inset 0 1px 1px rgba(255,255,255,.64);
  backdrop-filter: blur(20px) saturate(1.34);
  -webkit-backdrop-filter: blur(20px) saturate(1.34);
}

.bottom-nav button,
.bottom-nav button.current {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 60px;
  border-radius: 26px;
}

.bottom-nav button:not(.current) {
  background: transparent;
  color: #142033;
}

.bottom-nav button.current {
  color: #fff;
  background: radial-gradient(circle at 70% 12%, rgba(255,255,255,.26), transparent 27%), linear-gradient(145deg, #263a63, #071126 78%);
  box-shadow: 0 10px 22px rgba(12,19,35,.22), inset 0 1px 1px rgba(255,255,255,.28);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.bottom-nav span {
  font-size: .53rem;
  line-height: 1;
}

.bottom-nav .create-button .plus {
  width: 34px;
  height: 34px;
}

.search-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
}

.people-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dating-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.search-screen .profile-bg {
  opacity: .96;
}

.search-panel {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 12px;
  width: calc(100% - 28px);
  margin: 18px auto calc(110px + env(safe-area-inset-bottom));
  padding: 14px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15,23,42,.12), inset 0 1px 1px rgba(255,255,255,.62);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.search-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.search-field svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field input {
  min-width: 0;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .95rem;
  font-weight: 760;
}

.search-field input::placeholder {
  color: rgba(17,24,39,.62);
}

.search-panel [data-geo-status] {
  margin: 0 4px;
  color: rgba(17,24,39,.68);
  font-size: .78rem;
  font-weight: 760;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-results button,
.empty-search,
.people-hub {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 12px;
  width: calc(100% - 28px);
  margin: 14px auto calc(96px + env(safe-area-inset-bottom));
  color: #111827;
  overflow-y: auto;
  scrollbar-width: none;
}

.people-hub::-webkit-scrollbar {
  display: none;
}

.people-hero,
.people-search,
.people-dating-entry,
.people-card {
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 12px 28px rgba(15,23,42,.10);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.people-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.people-hero small {
  color: #0f766e;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.people-hero h1 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.14;
  text-wrap: balance;
}

.people-hero > span {
  display: grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(37,99,235,.24);
}

.people-search {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
}

.people-search svg,
.people-screen .simple-header svg,
.dating-screen .simple-header svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.people-search input {
  min-width: 0;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .95rem;
  font-weight: 780;
}

.people-search input::placeholder {
  color: rgba(17,24,39,.58);
}

.people-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
}

.people-filter-row::-webkit-scrollbar {
  display: none;
}

.people-filter-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: #0f172a;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.people-filter-row button.selected {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-color: transparent;
}

.people-list {
  display: grid;
  gap: 10px;
}

.people-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.people-card-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.people-avatar {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #8b5cf6);
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 950;
}

.people-avatar.online::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  content: "";
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
}

.people-card-main small,
.people-card-main em {
  display: block;
  overflow: hidden;
  color: rgba(15,23,42,.62);
  font-size: .74rem;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-card-main b {
  display: block;
  margin: 2px 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-card p {
  margin: 0;
  color: rgba(15,23,42,.72);
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 760;
}

.people-chips,
.people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.people-chips span {
  padding: 6px 9px;
  color: #0f766e;
  background: rgba(240,253,250,.74);
  border: 1px solid rgba(20,184,166,.20);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
}

.people-actions button {
  flex: 1 1 88px;
  min-height: 38px;
  color: #0f172a;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 930;
}

.people-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-color: transparent;
}

.people-dating-entry {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 11px 13px;
  color: #0f172a;
  text-align: left;
}

.people-dating-entry span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: 920;
  box-shadow: 0 12px 26px rgba(236,72,153,.24);
}

.people-dating-entry b,
.people-dating-entry small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-dating-entry b {
  font-size: 1rem;
  font-weight: 950;
}

.people-dating-entry small {
  margin-top: 2px;
  color: rgba(15,23,42,.62);
  font-size: .76rem;
  font-weight: 780;
}

.dating-hub {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 12px;
  width: calc(100% - 28px);
  margin: 14px auto calc(96px + env(safe-area-inset-bottom));
  color: #111827;
  overflow-y: auto;
  scrollbar-width: none;
}

.dating-hub::-webkit-scrollbar {
  display: none;
}

.dating-hero,
.dating-card {
  color: #111827;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 14px 34px rgba(15,23,42,.12);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.dating-hero {
  display: grid;
  gap: 5px;
  padding: 15px;
}

.dating-hero small {
  color: #be185d;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.dating-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.12;
  text-wrap: balance;
}

.dating-hero p {
  margin: 0;
  color: rgba(15,23,42,.66);
  font-size: .8rem;
  line-height: 1.35;
  font-weight: 760;
}

.dating-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
}

.dating-filter-row::-webkit-scrollbar {
  display: none;
}

.dating-filter-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: #0f172a;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.dating-filter-row button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: transparent;
}

.dating-list {
  display: grid;
  gap: 12px;
}

.dating-card {
  overflow: hidden;
}

.dating-photo {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  background-position: center;
  background-size: cover;
}

.dating-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #0f172a;
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 920;
}

.dating-card-body {
  display: grid;
  gap: 11px;
  padding: 13px;
}

.dating-card-body small {
  color: rgba(15,23,42,.62);
  font-size: .75rem;
  font-weight: 840;
}

.dating-card-body h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.34rem;
  line-height: 1.06;
}

.dating-card-body p {
  margin: 5px 0 0;
  color: rgba(15,23,42,.72);
  font-size: .88rem;
  line-height: 1.32;
  font-weight: 760;
}

.dating-tags,
.dating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dating-tags span {
  padding: 6px 9px;
  color: #be185d;
  background: rgba(253,242,248,.78);
  border: 1px solid rgba(236,72,153,.18);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
}

.dating-actions button,
.dating-profile-link {
  min-height: 42px;
  color: #0f172a;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 920;
}

.dating-actions button {
  flex: 1 1 86px;
}

.dating-actions button:nth-child(2) {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: transparent;
}

.dating-card.liked .dating-actions button:nth-child(2) {
  background: #be185d;
}

.dating-profile-link {
  width: 100%;
}

.demo-switcher {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.54), 0 10px 24px rgba(18,31,48,.07);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

.search-results button {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  color: #111827;
  border-radius: 20px;
}

.search-results span {
  color: rgba(17,24,39,.52);
  font-size: .68rem;
  font-weight: 900;
}

.search-results b {
  font-size: 1rem;
}

.search-results small {
  color: rgba(17,24,39,.66);
  font-size: .78rem;
  font-weight: 760;
}

.empty-search {
  margin: 0;
  padding: 18px;
  color: rgba(17,24,39,.68);
  border-radius: 20px;
  font-weight: 760;
}

.activation-empty {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 13px;
  color: #111827;
  text-align: left;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.54), 0 10px 24px rgba(18,31,48,.07);
  backdrop-filter: blur(16px) saturate(1.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.14);
}

.activation-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  font-size: 1rem;
}

.activation-empty b,
.activation-empty small {
  display: block;
}

.activation-empty b {
  font-size: .9rem;
  line-height: 1.18;
  font-weight: 940;
}

.activation-empty small {
  margin-top: 3px;
  color: rgba(17,24,39,.68);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 760;
}

.activation-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.activation-empty-actions button,
.search-results .activation-empty-actions button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px !important;
  width: auto !important;
  padding: 0 12px !important;
  color: #111827;
  text-align: center;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  box-shadow: none;
  font-size: .75rem;
  font-weight: 900;
}

.activation-empty-actions button.primary,
.search-results .activation-empty-actions button.primary {
  color: #fff;
  background: #111827;
  border-color: rgba(17,24,39,.18);
}

.activation-empty-actions button:focus-visible {
  outline: 3px solid rgba(0,122,255,.32);
  outline-offset: 2px;
}

.demo-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 6px;
  border-radius: 999px;
}

.demo-switcher button {
  min-height: 34px;
  color: #111827;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.chat-screen.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.chat-screen .message-list {
  align-content: start;
  align-items: start;
  min-height: 0;
  overflow-y: auto;
  gap: 12px;
  padding: 16px 20px calc(170px + env(safe-area-inset-bottom));
}

.chat-screen .chat-header strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.chat-screen .chat-tabs-mini {
  padding: 16px 22px 0;
}

.chat-screen .chat-tabs-mini button {
  min-height: 38px;
  font-size: .78rem;
}

.chat-screen .row {
  grid-template-columns: 40px minmax(0, 1fr) 42px;
}

.chat-screen .row p {
  min-width: 0;
}

.chat-screen .row p span {
  white-space: normal;
}

.chat-screen .bubble {
  align-self: start;
  max-width: 76%;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: .9rem;
  line-height: 1.18;
}

.chat-screen .row p {
  padding: 9px 14px;
}

.chat-screen .row p b {
  font-size: .76rem;
}

.chat-screen .row p span,
.chat-screen .row time {
  font-size: .76rem;
}

.chat-screen .composer {
  bottom: calc(92px + env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr) 58px 42px;
}

@media (max-width: 360px) {
  .bottom-nav {
    left: 8px;
    right: 8px;
    padding-inline: 6px;
  }

  .bottom-nav span {
    font-size: .49rem;
  }
}

/* v21: one top search, no fake device status, auth-first profile flow */
.status-bar {
  display: none !important;
}

.live-topbar {
  top: calc(14px + env(safe-area-inset-top));
  grid-template-columns: minmax(0, 1fr) 46px;
}

.search-pill {
  height: 46px;
  max-width: 100%;
  transition: max-width .22s ease, transform .18s ease, background .18s ease;
}

.search-screen .simple-header,
.auth-screen .simple-header,
.profile-screen .simple-header,
.notifications-screen .simple-header {
  padding-top: calc(14px + env(safe-area-inset-top));
}

.auth-real-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: saturate(1.02) brightness(1.05);
}

.auth-real-map .leaflet-container {
  width: 100%;
  height: 100%;
}

.auth-card label[hidden],
[hidden] {
  display: none !important;
}

.auth-screen .map-canvas.soft {
  background: #dfe8ef;
}

.auth-screen .map-canvas.soft::after {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.08) 32%, rgba(17,24,39,.18)),
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.35), transparent 36%);
}

.auth-screen .auth-card {
  width: min(80vw, 314px);
  margin-top: 12px;
  padding: 22px 16px 16px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 28px;
  box-shadow: 0 20px 46px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.58);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.auth-screen .auth-status {
  margin-bottom: 8px;
  color: rgba(17,24,39,.62);
  font-size: .72rem;
}

.auth-screen .auth-card h1 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  line-height: 1.06;
}

.auth-screen .auth-card input {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.48);
}

.forgot-action {
  width: 100%;
  min-height: 30px;
  margin-top: 7px;
  color: rgba(17,24,39,.7);
  background: transparent;
  border: 0;
  font-size: .78rem;
  font-weight: 900;
}

.auth-screen .primary-action {
  color: #fff;
  background: rgba(9,14,27,.9);
  box-shadow: 0 14px 28px rgba(9,14,27,.18);
}

.auth-screen .demo-action {
  color: #fff;
  background: rgba(14,23,38,.78);
}

.auth-screen .provider-stack {
  background: rgba(255,255,255,.14);
}

.auth-screen .provider-stack button {
  color: rgba(17,24,39,.72);
}

.phone-shell:has(.auth-screen.active) .bottom-nav {
  display: none;
}

.phone-shell:has(.auth-screen.active) .auth-card {
  margin-bottom: max(18px, env(safe-area-inset-bottom));
}

/* v24: animated login/register card */
.auth-screen.active {
  align-content: center;
  padding-top: 0;
}

.auth-screen .simple-header {
  top: 12px;
}

.auth-header-back {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.auth-screen .auth-card {
  width: min(84vw, 350px);
  min-height: 548px;
  margin-top: 46px;
  padding: 24px 24px 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.17));
  border-color: rgba(255,255,255,.58);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.72);
  transition: min-height .52s cubic-bezier(.22,1,.36,1), transform .52s cubic-bezier(.22,1,.36,1), padding .52s cubic-bezier(.22,1,.36,1);
}

.auth-screen.register-mode .auth-card {
  min-height: 728px;
  transform: translateY(-10px);
}

.auth-back-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  margin: -4px 0 8px;
  padding: 0;
  color: rgba(17,24,39,.78);
  background: transparent;
  border: 0;
  font-size: .95rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .26s ease, transform .26s ease, height .35s ease, margin .35s ease;
}

.auth-back-row span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
}

.auth-screen.register-mode .auth-back-row {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-screen:not(.register-mode) .auth-back-row {
  height: 0;
  margin: 0;
}

.auth-screen .auth-status {
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 850;
}

.auth-screen .auth-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 9vw, 2.65rem);
  letter-spacing: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.auth-screen.register-mode .auth-card h1 {
  font-size: clamp(2rem, 8vw, 2.42rem);
}

.auth-card label {
  transform-origin: top;
  transition: opacity .32s ease, transform .32s ease, max-height .38s ease, margin .38s ease;
}

.auth-card label[hidden] {
  display: grid !important;
  max-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scaleY(.96);
}

.auth-screen .auth-card input {
  min-height: 52px;
  padding-inline: 18px;
  background: rgba(255,255,255,.52);
  border-color: rgba(255,255,255,.68);
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 760;
}

.auth-screen .primary-action,
.auth-screen .demo-action,
.auth-screen .provider-stack button {
  min-height: 52px;
  border-radius: 999px;
  font-size: .95rem;
}

.auth-screen .primary-action {
  margin-top: 4px;
}

.auth-screen .text-action {
  color: #2563eb;
  font-weight: 850;
}

.auth-screen .demo-action,
.auth-screen .demo-switcher {
  transition: opacity .25s ease, max-height .35s ease, margin .35s ease, transform .25s ease;
}

.auth-screen.register-mode .demo-action,
.auth-screen.register-mode .demo-switcher {
  max-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  overflow: hidden;
}

.auth-screen .provider-stack {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 24px;
}

@media (max-height: 760px) {
  .auth-screen .auth-card {
    min-height: 520px;
    margin-top: 36px;
    padding: 20px;
  }

  .auth-screen.register-mode .auth-card {
    min-height: 670px;
  }

  .auth-screen .provider-stack {
    display: none;
  }
}

/* v23: reference bottom navigation */
.bottom-nav {
  left: 10px;
  right: 10px;
  bottom: max(9px, env(safe-area-inset-bottom));
  height: 78px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 8px 10px 9px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 30px;
  box-shadow: 0 16px 34px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.82);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
}

.bottom-nav button,
.bottom-nav button.current {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 60px;
  padding: 3px 0 1px;
  display: grid;
  grid-template-rows: 36px 15px;
  place-items: center;
  gap: 3px;
  color: #111827;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bottom-nav button svg {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 5px;
  color: #111827;
  background: transparent;
  border-radius: 50%;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.bottom-nav button span {
  max-width: 100%;
  color: #111827;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav button.current svg {
  color: #fff;
  background: radial-gradient(circle at 70% 18%, rgba(255,255,255,.24), transparent 27%), linear-gradient(145deg, #263652, #071126 78%);
  box-shadow: 0 8px 17px rgba(12,19,35,.23), inset 0 1px 1px rgba(255,255,255,.28);
  transform: translateY(-1px);
}

.bottom-nav button.current span {
  color: #111827;
  font-weight: 760;
}

.bottom-nav .create-button {
  grid-template-rows: 42px 0;
}

.bottom-nav .create-button .plus {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #111827;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(15,23,42,.08), inset 0 1px 1px rgba(255,255,255,.8);
}

.bottom-nav .create-button .plus svg {
  width: 25px;
  height: 25px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
}

.bottom-nav .create-button span:last-child {
  display: none;
}

.bottom-nav .create-button.current .plus {
  color: #fff;
  background: radial-gradient(circle at 70% 18%, rgba(255,255,255,.24), transparent 27%), linear-gradient(145deg, #263652, #071126 78%);
}

@media (max-width: 360px) {
  .bottom-nav {
    left: 8px;
    right: 8px;
    padding-inline: 6px;
  }

  .bottom-nav button span {
    font-size: 9px;
  }
}

/* v25: gated profile, collapsed Live Map, event info, app settings */
.profile-bg.map-texture {
  background: #dfe8ef;
}

.profile-bg.map-texture .map-frame {
  display: block;
  opacity: .92;
  filter: saturate(1.05) brightness(1.05);
}

.profile-bg.map-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.16) 44%, rgba(235,242,248,.3)),
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.26), transparent 34%);
  pointer-events: none;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  height: 34px;
  min-height: 34px;
  padding: 10px 0;
  overflow: hidden;
  cursor: pointer;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .filter-row,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-detail {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.sheet-handle {
  display: block;
  width: 50px;
  height: 6px;
  margin: 0 auto 10px;
  padding: 0;
  background: rgba(17,24,39,.18);
  border: 0;
  border-radius: 999px;
}

.live-map-sheet {
  transition: height .38s cubic-bezier(.22,1,.36,1), min-height .38s cubic-bezier(.22,1,.36,1), bottom .38s cubic-bezier(.22,1,.36,1), padding .38s cubic-bezier(.22,1,.36,1);
}

.event-detail {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 10px 0 12px;
  padding: 12px;
  color: #111827;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.66);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  animation: eventDetailIn .24s cubic-bezier(.22,1,.36,1);
}

@keyframes eventDetailIn {
  from { opacity: .72; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.event-detail[hidden] {
  display: none !important;
}

.event-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 21px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55);
}

.event-photo em {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
  font-style: normal;
  font-size: 1.18rem;
}

.event-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  color: #101722;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 850;
}

.event-photo.coffee {
  background-image: url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=220&q=80");
}

.event-photo.ride {
  background-image: url("https://images.unsplash.com/photo-1485965120184-e220f721d03e?auto=format&fit=crop&w=220&q=80");
}

.event-photo.gallery {
  background-image: url("https://images.unsplash.com/photo-1545987796-200677ee1011?auto=format&fit=crop&w=220&q=80");
}

.event-detail small {
  display: block;
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 850;
}

.event-detail h2 {
  margin: 3px 0 2px;
  font-size: 1.16rem;
  line-height: 1.05;
}

.event-detail p {
  margin: 0;
  color: rgba(17,24,39,.72);
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.28;
}

.event-detail [data-event-description] {
  margin-top: 5px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-detail-grid,
.event-modules,
.event-quests {
  grid-column: 1 / -1;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-detail-grid span {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 16px;
}

.event-detail-grid span.wide {
  grid-column: 1 / -1;
}

.event-detail-grid b,
.event-modules > small,
.event-quests > small {
  display: block;
  margin-bottom: 3px;
  color: rgba(17,24,39,.58);
  font-size: .66rem;
  font-weight: 850;
}

.event-detail-grid em {
  display: block;
  overflow: hidden;
  color: #101722;
  font-style: normal;
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-modules div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-modules span,
.event-module-chip {
  padding: 7px 10px;
  color: #101722;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 820;
}

.event-module-chip {
  cursor: pointer;
}

.event-module-chip.route-chip {
  color: #075985;
  background: rgba(255,255,255,.34);
  border-color: rgba(8,124,255,.42);
}

.event-module-chip.assistant-chip {
  color: rgba(16,23,34,.68);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.34);
}

.event-module-chip.template-chip {
  color: rgba(16,23,34,.72);
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.36);
}

.event-module-chip.route-chip:focus-visible {
  outline: 3px solid rgba(0,122,255,.32);
  outline-offset: 2px;
}

.event-quests {
  display: grid;
  gap: 7px;
}

.event-quests div {
  display: grid;
  gap: 7px;
}

.event-quests article {
  padding: 9px 10px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 16px;
}

.event-quests article b {
  display: block;
  color: #101722;
  font-size: .78rem;
}

.event-quests article p {
  margin: 3px 0;
  -webkit-line-clamp: unset;
}

.event-quests article small {
  color: rgba(17,24,39,.62);
}

.join-confirmation,
.event-participants,
.event-activity {
  grid-column: 1 / -1;
  padding: 12px;
  color: #101722;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.68), 0 12px 28px rgba(15,23,42,.10);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.join-confirmation:not([hidden]) {
  display: grid;
  gap: 9px;
  animation: eventDetailIn .22s ease-out both;
}

.join-confirmation strong {
  font-size: .98rem;
  font-weight: 900;
}

.join-confirmation p {
  margin: 0;
  color: rgba(17,24,39,.68);
  font-size: .8rem;
  line-height: 1.35;
}

.join-confirmation div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.join-confirmation button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  font-weight: 860;
}

.join-confirmation button[data-confirm-join] {
  color: #fff;
  background: rgba(9,14,27,.92);
  border-color: rgba(9,14,27,.28);
}

.join-confirmation button[data-cancel-join] {
  color: #101722;
  background: rgba(255,255,255,.36);
}

.event-participants:not([hidden]) {
  display: grid;
  gap: 10px;
}

.event-participants > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-participants small {
  color: rgba(17,24,39,.58);
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.event-participants b {
  color: #101722;
  font-size: .84rem;
}

.event-participants [data-event-participant-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-participants [data-event-participant-list] span,
.event-participants [data-event-participant-list] strong,
.event-participants [data-event-participant-list] em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
}

.event-participants [data-event-participant-list] span {
  color: #fff;
  background: linear-gradient(135deg, rgba(0,122,255,.92), rgba(6,76,178,.92));
  box-shadow: 0 8px 18px rgba(0,122,255,.18);
}

.event-participants [data-event-participant-list] strong {
  color: #0c6b3f;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.28);
}

.event-participants [data-event-participant-list] em {
  color: rgba(17,24,39,.56);
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.46);
}

.event-participants [data-event-participant-list] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.event-person-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 7px 9px;
  color: #101722;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 16px;
}

.event-participants [data-event-participant-list] .event-person-card > span {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #0aa5a4, #2478f2);
  border: 0;
  border-radius: 13px;
  box-shadow: none;
  font-size: .8rem;
  font-weight: 950;
}

.event-person-card.open-spot > span {
  color: #075985 !important;
  background: #dffbf3 !important;
}

.event-person-card.invited > span {
  background: linear-gradient(135deg, #8b5cf6, #2478f2) !important;
}

.event-person-card.demo > span {
  background: linear-gradient(135deg, #14b8a6, #f59e0b) !important;
}

.event-person-card.me {
  border-color: rgba(20,184,166,.42);
}

.event-person-card div {
  min-width: 0;
}

.event-person-card b,
.event-person-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-person-card b {
  color: #101722;
  font-size: .84rem;
  font-weight: 910;
  line-height: 1.15;
}

.event-person-card small {
  margin-top: 3px;
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.event-participants [data-event-participant-list] > .invited-person-chip {
  justify-self: start;
}

.event-activity {
  display: grid;
  gap: 10px;
}

.event-activity-head {
  display: grid;
  gap: 2px;
}

.event-activity-head small {
  color: rgba(17,24,39,.56);
  font-size: .68rem;
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.event-activity-head strong {
  color: #101722;
  font-size: .98rem;
  font-weight: 920;
}

.event-activity-lock,
.quest-actions-empty {
  margin: 0;
  padding: 10px 12px;
  color: rgba(17,24,39,.62);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
}

.event-activity-body:not([hidden]) {
  display: grid;
  gap: 10px;
  animation: eventDetailIn .20s ease-out both;
}

.event-system-messages {
  display: grid;
  gap: 6px;
}

.event-system-messages article {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 10px;
  color: rgba(17,24,39,.72);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 760;
}

.event-system-messages article::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
  flex: 0 0 auto;
}

.quest-actions {
  display: grid;
  gap: 8px;
}

.quest-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 16px;
  transition: transform .18s ease-out, border-color .18s ease-out, background .18s ease-out;
}

.quest-action-card.completed {
  background: rgba(34,197,94,.13);
  border-color: rgba(34,197,94,.28);
}

.quest-action-card small,
.quest-action-card em {
  display: block;
  color: rgba(17,24,39,.58);
  font-size: .7rem;
  font-style: normal;
  font-weight: 760;
}

.quest-action-card b {
  display: block;
  margin: 2px 0 3px;
  color: #101722;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.18;
}

.quest-action-card button {
  min-width: 88px;
  min-height: 36px;
  color: #fff;
  background: rgba(9,14,27,.92);
  border: 0;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
}

.quest-action-card button:disabled {
  color: #0c6b3f;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(34,197,94,.26);
  cursor: default;
}

.event-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.event-actions button,
.profile-settings-preview button,
.settings-card button {
  min-height: 42px;
  color: #fff;
  background: rgba(9,14,27,.9);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.event-actions button:first-child {
  color: #fff;
  background: rgba(9,14,27,.92);
  border: 0;
}

.event-actions button[data-join-event].joined {
  background: linear-gradient(135deg, rgba(0,122,255,.94), rgba(3,92,210,.94));
}

.event-actions button[data-join-event]:disabled {
  color: rgba(17,24,39,.48);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.48);
  cursor: not-allowed;
}

.event-actions button[data-leave-event] {
  color: #7f1d1d;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.58);
  font-size: .78rem;
}

.event-actions button[data-share-event] {
  color: #101722;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.78);
}

.event-actions button[data-edit-event] {
  min-height: 38px;
  color: rgba(16,23,34,.72);
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.46);
  font-size: .78rem;
}

.event-actions button[data-open-event-chat] {
  min-height: 38px;
  color: #101722;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  font-size: .78rem;
}

.event-share-panel {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #101722;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 16px 32px rgba(15,23,42,.12);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  animation: eventDetailIn .20s ease-out both;
}

.event-share-panel[hidden] {
  display: none;
}

.event-share-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  color: rgba(17,24,39,.68);
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 850;
}

.event-share-head {
  display: grid;
  gap: 2px;
  padding-right: 34px;
}

.event-share-head small,
.event-share-code span,
.event-share-field span {
  color: rgba(17,24,39,.56);
  font-size: .68rem;
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.event-share-head strong {
  color: #101722;
  font-size: 1.02rem;
  font-weight: 920;
}

.event-share-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 16px;
}

.event-share-preview > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 15px;
  font-size: 1.25rem;
}

.event-share-preview b,
.event-share-preview small,
.event-share-preview em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-share-preview b {
  color: #101722;
  font-size: .9rem;
  font-weight: 900;
}

.event-share-preview small,
.event-share-preview em {
  color: rgba(17,24,39,.62);
  font-size: .74rem;
  font-style: normal;
  font-weight: 720;
}

.event-share-privacy,
.event-share-status {
  margin: 0;
  color: rgba(17,24,39,.68);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.event-share-field {
  display: grid;
  gap: 6px;
}

.event-share-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: #101722;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 14px;
  font-size: .76rem;
  font-weight: 760;
}

.event-share-copy,
.event-share-code button {
  min-height: 40px;
  color: #fff;
  background: rgba(9,14,27,.92);
  border: 0;
  border-radius: 999px;
  font-weight: 860;
}

.event-share-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 16px;
}

.event-share-code span {
  grid-column: 1 / -1;
}

.event-share-code strong {
  color: #101722;
  font-size: 1rem;
  font-weight: 930;
  letter-spacing: .04em;
}

.event-share-code button {
  min-height: 36px;
  padding: 0 13px;
  color: #101722;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.66);
  font-size: .76rem;
}

.mecly-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(330px, calc(100vw - 32px));
  padding: 11px 14px;
  color: #101722;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15,23,42,.14);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  font-size: .82rem;
  font-weight: 850;
}

.event-actions button:focus-visible,
.join-confirmation button:focus-visible,
.quest-action-card button:focus-visible,
.event-share-close:focus-visible,
.event-share-copy:focus-visible,
.event-share-code button:focus-visible,
.event-share-field input:focus-visible,
.event-detail-close:focus-visible {
  outline: 3px solid rgba(0,122,255,.32);
  outline-offset: 3px;
}

.profile-settings-preview {
  display: grid;
  gap: 7px;
}

.profile-settings-preview button {
  width: 100%;
}

.settings-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.settings-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 358px;
  margin: 18px auto 104px;
  padding: 24px 16px 16px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.17));
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(15,23,42,.16), inset 0 1px 1px rgba(255,255,255,.76);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.settings-card h1 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.settings-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 0 14px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  color: rgba(17,24,39,.76);
  font-weight: 820;
}

.settings-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #111827;
}

.settings-card label:has(input:not([type="checkbox"])),
.settings-card label:has(textarea) {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
}

.settings-card input:not([type="checkbox"]),
.settings-card textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  background: rgba(255,255,255,.54);
  border-radius: 14px;
  padding: 10px 12px;
  color: #111827;
  font: inherit;
  font-weight: 760;
}

.settings-card input:not([type="checkbox"]):focus-visible,
.settings-card textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(17,24,39,.14);
}

.auth-status-card {
  display: grid;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  color: rgba(17,24,39,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.auth-status-card small {
  display: block;
  margin-bottom: 2px;
  font-size: .72rem;
  font-weight: 820;
  color: rgba(17,24,39,.54);
}

.auth-status-card strong {
  display: block;
  font-size: .95rem;
  color: #111827;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-actions button {
  flex: 1 1 150px;
  min-height: 38px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .78rem;
}

.auth-actions button:focus-visible {
  outline: 3px solid rgba(17,24,39,.2);
  outline-offset: 2px;
}

.backend-mode-card {
  display: grid;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  color: rgba(17,24,39,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.backend-mode-card small {
  display: block;
  margin-bottom: 2px;
  font-size: .72rem;
  font-weight: 820;
  color: rgba(17,24,39,.54);
}

.backend-mode-card strong {
  display: block;
  font-size: .95rem;
  color: #111827;
}

.backend-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 999px;
}

.backend-mode-toggle button {
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: rgba(17,24,39,.66);
  font-size: .78rem;
}

.backend-mode-toggle button.selected {
  background: rgba(17,24,39,.9);
  color: #fff;
  box-shadow: 0 6px 12px rgba(17,24,39,.12);
}

.backend-mode-toggle button:focus-visible {
  outline: 3px solid rgba(17,24,39,.2);
  outline-offset: 2px;
}

.backend-mode-card [data-backend-warning] {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245,158,11,.14);
  color: rgba(92,48,8,.92);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.firebase-auth-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.firebase-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.firebase-auth-actions button,
.provider-stack [data-login-google] {
  flex: 1 1 150px;
  min-height: 38px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .78rem;
}

.firebase-auth-card [data-firebase-auth-message] {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(59,130,246,.12);
  color: rgba(30,64,175,.92);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.firebase-auth-card [data-firebase-auth-message].warning {
  background: rgba(245,158,11,.14);
  color: rgba(92,48,8,.92);
}

.moderation-panel {
  gap: 12px;
}

.moderation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.36);
}

.moderation-toolbar span {
  color: rgba(17,24,39,.72);
  font-size: .78rem;
  font-weight: 860;
}

.moderation-toolbar button {
  min-height: 38px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .76rem;
}

.moderation-list {
  display: grid;
  gap: 10px;
}

.moderation-row,
.moderation-empty {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.38);
  color: rgba(17,24,39,.78);
}

.moderation-row small,
.moderation-row span,
.moderation-row em {
  display: block;
  color: rgba(17,24,39,.54);
  font-size: .72rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.moderation-row strong {
  display: block;
  margin: 3px 0;
  color: #111827;
  font-size: .92rem;
}

.moderation-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.moderation-status-actions b {
  margin-right: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(13,148,136,.12);
  color: #0f766e;
  font-size: .7rem;
}

.moderation-status-actions button {
  min-height: 32px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: .7rem;
}

.moderation-empty {
  color: rgba(17,24,39,.56);
  font-size: .82rem;
  font-weight: 760;
  text-align: center;
}

.backend-sync-status {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(34,197,94,.12);
  color: rgba(22,101,52,.92);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.backend-sync-status.warning {
  background: rgba(245,158,11,.14);
  color: rgba(92,48,8,.92);
}

.settings-card [data-settings-status] {
  min-height: 18px;
  margin: 9px 0 0;
  color: rgba(17,24,39,.68);
  text-align: center;
  font-size: .78rem;
  font-weight: 750;
}

.create-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.create-screen .profile-bg {
  filter: saturate(1.05) brightness(1.04);
}

.create-screen .simple-header {
  margin-top: 10px;
}

.create-event-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 358px;
  margin: 18px auto 104px;
  padding: 22px 16px 16px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.33), rgba(255,255,255,.17));
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(15,23,42,.16), inset 0 1px 1px rgba(255,255,255,.76);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

/* v26: one real-map background everywhere, lighter glass */
.screen .profile-bg,
.screen .blur-photo,
.screen .map-canvas.soft {
  background: #eaf2f4 !important;
}

.screen .profile-bg::before,
.screen .blur-photo::before {
  display: none !important;
}

.screen .profile-bg::after,
.screen .blur-photo::after,
.screen .map-canvas.soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.06) 42%, rgba(235,242,248,.12)),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.14), transparent 38%) !important;
  pointer-events: none;
}

.screen .profile-bg .map-frame,
.screen .blur-photo .map-frame,
.screen .map-canvas.soft .map-frame {
  display: block !important;
  opacity: .98 !important;
  filter: saturate(1.06) contrast(.98) brightness(1.07) !important;
}

.chat-screen .blur-photo {
  filter: none !important;
}

.live-map-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.12)) !important;
  border-color: rgba(255,255,255,.48) !important;
  box-shadow: 0 16px 36px rgba(18,31,48,.11), inset 0 1px 1px rgba(255,255,255,.58) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

.activity-tile,
.event-detail,
.profile-screen .profile-card,
.auth-screen .auth-card,
.create-event-card,
.settings-card,
.search-panel,
.notification-list article,
.chat-screen .row p,
.chat-screen .composer,
.chat-screen .chat-tabs-mini {
  background-color: rgba(255,255,255,.24) !important;
  border-color: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(19px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(19px) saturate(1.16) !important;
}

.bottom-nav {
  background: rgba(255,255,255,.56) !important;
  border-color: rgba(255,255,255,.66) !important;
  backdrop-filter: blur(22px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.22) !important;
}

.create-event-card h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  letter-spacing: 0;
}

.create-event-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: rgba(17,24,39,.68);
  font-size: .74rem;
  font-weight: 760;
}

.create-event-card input,
.create-event-card select,
.create-event-card textarea {
  width: 100%;
  min-height: 43px;
  padding: 0 14px;
  color: #111827;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.52);
  outline: 0;
  font: inherit;
  font-weight: 700;
}

.create-event-card textarea {
  min-height: 78px;
  padding: 13px 14px;
  border-radius: 22px;
  resize: none;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.create-event-card .primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  color: #fff;
  background: rgba(9,14,27,.9);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(9,14,27,.18);
  font-weight: 850;
}

.create-event-card [data-create-status] {
  min-height: 18px;
  margin: 9px 0 0;
  color: rgba(17,24,39,.68);
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
}

/* v27: map-first glass. Keep every screen on the same real map, not photo panels. */
html,
body,
.phone-shell {
  background: #edf5f8 !important;
}

.screen .profile-bg,
.screen .blur-photo,
.screen .map-canvas.soft {
  background: #edf5f8 !important;
  filter: none !important;
  transform: none !important;
}

.screen .profile-bg::before,
.screen .blur-photo::before,
.screen .map-canvas.soft::before {
  display: none !important;
}

.screen .profile-bg::after,
.screen .blur-photo::after,
.screen .map-canvas.soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.04) 48%, rgba(237,245,248,.06)),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.10), transparent 42%) !important;
  pointer-events: none;
}

.screen .profile-bg .map-frame,
.screen .blur-photo .map-frame,
.screen .map-canvas.soft .map-frame {
  display: block !important;
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1) brightness(1.08) !important;
}

.live-topbar,
.simple-header,
.chat-header {
  top: max(10px, env(safe-area-inset-top)) !important;
}

.search-pill,
.live-topbar .round-ghost,
.simple-header .round-ghost,
.chat-header .round-ghost,
.chat-header span {
  background: rgba(255,255,255,.42) !important;
  border-color: rgba(255,255,255,.62) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.10), inset 0 1px 1px rgba(255,255,255,.52) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
}

.live-map-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)) !important;
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 14px 30px rgba(18,31,48,.09), inset 0 1px 1px rgba(255,255,255,.45) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  background: rgba(255,255,255,.13) !important;
}

.activity-tile,
.event-detail,
.profile-screen .profile-card,
.auth-screen .auth-card,
.create-event-card,
.settings-card,
.search-panel,
.notification-list article,
.chat-screen .row p,
.chat-screen .composer,
.chat-screen .chat-tabs-mini,
.profile-card article,
.stats span,
.profile-edit input,
.auth-card input,
.settings-card label,
.create-event-card input,
.create-event-card select,
.create-event-card textarea {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.10)) !important;
  border-color: rgba(255,255,255,.46) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.08), inset 0 1px 1px rgba(255,255,255,.42) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

.profile-screen .profile-card,
.auth-screen .auth-card,
.create-event-card,
.settings-card,
.search-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)) !important;
  border-color: rgba(255,255,255,.44) !important;
  box-shadow: 0 18px 38px rgba(15,23,42,.10), inset 0 1px 1px rgba(255,255,255,.44) !important;
}

.bottom-nav {
  background: rgba(255,255,255,.46) !important;
  border-color: rgba(255,255,255,.62) !important;
  box-shadow: 0 16px 36px rgba(15,23,42,.12), inset 0 1px 1px rgba(255,255,255,.52) !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.18) !important;
}

/* v28: extra transparency pass from phone review. */
.search-pill,
.live-topbar .round-ghost,
.simple-header .round-ghost,
.chat-header .round-ghost,
.chat-header span {
  background: rgba(255,255,255,.30) !important;
  border-color: rgba(255,255,255,.52) !important;
  backdrop-filter: blur(14px) saturate(1.10) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.10) !important;
}

.live-map-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035)) !important;
  border-color: rgba(255,255,255,.34) !important;
  backdrop-filter: blur(13px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.08) !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .sheet-handle {
  width: 104px;
  height: 7px;
  background: rgba(17,24,39,.22) !important;
  box-shadow: 0 6px 18px rgba(255,255,255,.42), inset 0 1px 1px rgba(255,255,255,.35);
}

.activity-tile,
.event-detail,
.profile-screen .profile-card,
.auth-screen .auth-card,
.create-event-card,
.settings-card,
.search-panel,
.notification-list article,
.chat-screen .row p,
.chat-screen .composer,
.chat-screen .chat-tabs-mini,
.profile-card article,
.stats span,
.profile-edit input,
.auth-card input,
.settings-card label,
.create-event-card input,
.create-event-card select,
.create-event-card textarea {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.065)) !important;
  border-color: rgba(255,255,255,.38) !important;
  backdrop-filter: blur(13px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.08) !important;
}

.profile-screen .profile-card,
.auth-screen .auth-card,
.create-event-card,
.settings-card,
.search-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)) !important;
}

.bottom-nav {
  background: rgba(255,255,255,.38) !important;
  border-color: rgba(255,255,255,.54) !important;
  backdrop-filter: blur(17px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(17px) saturate(1.12) !important;
}

/* v30: location button, full filter sheet, requested transparency tuning. */
.live-topbar {
  grid-template-columns: minmax(0, 1fr) 46px 54px 46px !important;
  top: max(10px, env(safe-area-inset-top)) !important;
}

.locate-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.distance-button {
  width: 54px !important;
  border-radius: 999px !important;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.distance-button span {
  display: block;
  line-height: 1;
}

.filter-panel {
  position: absolute !important;
  z-index: 42 !important;
  top: calc(66px + env(safe-area-inset-top)) !important;
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
  max-width: none !important;
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  color: #111827 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.075)) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 38px rgba(15,23,42,.12), inset 0 1px 1px rgba(255,255,255,.44) !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-10px) scale(.985) !important;
  transition: opacity .2s ease, transform .2s ease !important;
}

.phone-shell.filters-open .filter-panel {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  z-index: 960 !important;
}

.phone-shell.filters-open .live-map-sheet {
  pointer-events: none !important;
}

/* v153 final: last-word mobile tap targets after all historical overrides. */
@media (max-width: 700px) {
  .live-topbar .search-pill {
    min-height: 44px !important;
  }

  .live-topbar .search-pill input {
    min-height: 44px !important;
    line-height: 44px !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .locate-button,
  .live-topbar .distance-button {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
  }

  .live-topbar .distance-button {
    width: 56px !important;
  }

  .event-discovery-scroll button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
  }

  .event-discovery-scroll button b {
    min-width: 16px !important;
    min-height: 16px !important;
    line-height: 16px !important;
  }

  .user-mini-profile-trigger,
  .notification-center-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .notification-center-trigger b {
    min-width: 18px !important;
    height: 18px !important;
    line-height: 14px !important;
  }

  .leaflet-marker-icon.mecly-map-pin,
  .leaflet-marker-icon.background-pin {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    margin-left: -22px !important;
  }

  .mecly-map-pin span {
    width: 34px !important;
    height: 34px !important;
    margin: 5px !important;
  }
}

/* v156 final: event detail close target remains finger-size after all historical overrides. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

/* v157 final-tail: event page actions keep a reliable finger-size target. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-actions button {
  min-height: 44px !important;
  height: 44px !important;
}

/* v181 final-tail: event page must win after every historical override. */
.phone-shell.event-selected .live-map-sheet.detail-open {
  display: block !important;
  width: min(620px, calc(100vw - 28px)) !important;
  max-height: min(88dvh, 760px) !important;
  padding: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(236,250,247,.70)),
    rgba(244, 252, 249, .78) !important;
  touch-action: pan-y !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-title {
  display: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-handle {
  position: sticky !important;
  top: 0 !important;
  z-index: 18 !important;
  display: block !important;
  margin: 0 auto 8px !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 0 0 8px !important;
  color: #0e2530 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  position: sticky !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 30 !important;
  justify-self: end !important;
  margin: 0 6px -54px 0 !important;
  color: #102532 !important;
  background: rgba(255,255,255,.88) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(7, 25, 35, .18) !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-cover {
  height: clamp(230px, 34dvh, 320px) !important;
  min-height: 230px !important;
  border-radius: 24px !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-actions {
  position: relative !important;
  bottom: auto !important;
  z-index: 10 !important;
  background: rgba(248, 253, 250, .86) !important;
  border-radius: 22px !important;
}

@media (max-width: 520px) {
  .phone-shell.event-selected .live-map-sheet.detail-open {
    width: calc(100vw - 22px) !important;
    max-height: calc(100dvh - 104px) !important;
    border-radius: 24px !important;
  }

  .phone-shell.event-selected .live-map-sheet.detail-open .event-cover {
    height: 236px !important;
    min-height: 236px !important;
  }
}

@media (prefers-color-scheme: dark) {
  .phone-shell.event-selected .live-map-sheet.detail-open {
    background:
      linear-gradient(180deg, rgba(13, 38, 45, .90), rgba(4, 22, 29, .92)),
      rgba(4, 22, 29, .92) !important;
  }
}

/* v187: calmer first-run experience - visual first, advanced auth second. */
.mecly-onboarding {
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(22, 163, 154, .22), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, .16), transparent 30%),
    linear-gradient(180deg, rgba(241, 250, 248, .74), rgba(232, 244, 247, .92)) !important;
}

.onboarding-card {
  width: min(100%, 424px) !important;
  max-height: calc(100svh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  gap: 11px !important;
  padding: 16px !important;
  color: #081a20 !important;
  background: rgba(255, 255, 255, .84) !important;
  border: 1px solid rgba(10, 72, 78, .12) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 30px rgba(9, 28, 36, .14) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

.onboarding-card > small {
  order: 1;
}

.onboarding-map-preview {
  order: 2;
}

.onboarding-card h1 {
  order: 3;
}

.onboarding-lede {
  order: 4;
}

.onboarding-copy {
  order: 5;
}

.onboarding-points {
  order: 6;
}

.onboarding-actions {
  order: 7;
}

.onboarding-card > small {
  justify-self: start !important;
  padding: 6px 10px !important;
  color: #075d63 !important;
  background: rgba(10, 151, 149, .10) !important;
  border: 0 !important;
  font-size: .7rem !important;
  letter-spacing: .05em !important;
}

.onboarding-card h1 {
  max-width: 13ch !important;
  font-size: 2rem !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

.onboarding-lede {
  color: #102a31 !important;
  font-size: .98rem !important;
  line-height: 1.28 !important;
}

.onboarding-copy {
  max-width: 52ch !important;
  color: rgba(16, 42, 49, .78) !important;
  font-size: .84rem !important;
  line-height: 1.42 !important;
}

.onboarding-mode-note {
  display: none !important;
}

.onboarding-map-preview {
  min-height: 154px !important;
  border-color: rgba(10, 72, 78, .10) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(19, 134, 94, .12) 0 19%, transparent 19% 100%),
    linear-gradient(0deg, rgba(255,255,255,.44) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255,255,255,.44) 0 1px, transparent 1px 100%),
    linear-gradient(22deg, transparent 0 43%, rgba(248, 181, 70, .34) 43% 47%, transparent 47%),
    linear-gradient(140deg, transparent 0 59%, rgba(40, 126, 236, .20) 59% 63%, transparent 63%),
    rgba(255, 255, 255, .34) !important;
  background-size: auto, 42px 42px, 42px 42px, auto, auto, auto !important;
}

.onboarding-map-preview::before {
  inset: 20px 38px 32px 64px !important;
  border: 0 !important;
  border-top: 3px dashed rgba(11, 123, 126, .35) !important;
  border-radius: 999px !important;
  transform: rotate(-18deg) !important;
}

.onboarding-route-line {
  position: absolute;
  left: 24%;
  top: 18%;
  width: 46%;
  height: 58%;
  border-right: 5px solid rgba(11, 123, 126, .48);
  border-bottom: 5px solid rgba(11, 123, 126, .48);
  border-radius: 0 0 28px 0;
  transform: rotate(-16deg);
}

.onboarding-map-pin {
  width: 38px !important;
  height: 38px !important;
  color: #0d3338 !important;
  background: rgba(255, 255, 255, .90) !important;
  border: 1px solid rgba(10, 72, 78, .10) !important;
  box-shadow: 0 10px 18px rgba(9, 28, 36, .13) !important;
  font-size: .96rem !important;
}

.onboarding-map-pin.main {
  left: 44% !important;
  top: 36% !important;
  color: #fff !important;
  background: #0b7b7e !important;
}

.onboarding-map-pin.coffee {
  left: 12% !important;
  top: 60% !important;
}

.onboarding-map-pin.walk {
  right: 12% !important;
  top: 16% !important;
}

.onboarding-preview-card {
  left: auto !important;
  width: min(54%, 210px) !important;
  padding: 9px 11px !important;
  color: #102a31 !important;
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(10, 72, 78, .10) !important;
  box-shadow: 0 8px 18px rgba(9, 28, 36, .11) !important;
}

.onboarding-preview-card b {
  font-size: .88rem !important;
}

.onboarding-preview-card small {
  color: rgba(16, 42, 49, .68) !important;
  font-size: .72rem !important;
}

.onboarding-points {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.onboarding-points span {
  display: grid !important;
  min-height: 62px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  padding: 8px 6px !important;
  color: #102a31 !important;
  background: rgba(246, 251, 250, .86) !important;
  border: 1px solid rgba(10, 72, 78, .10) !important;
  border-radius: 14px !important;
}

.onboarding-points b {
  width: 26px !important;
  height: 26px !important;
  color: #0b7b7e !important;
  background: rgba(10, 151, 149, .12) !important;
}

.onboarding-points em {
  color: rgba(16, 42, 49, .82) !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.onboarding-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.onboarding-actions button {
  min-height: 46px !important;
  border-radius: 14px !important;
  color: #102a31 !important;
  background: rgba(246, 251, 250, .94) !important;
  border: 1px solid rgba(10, 72, 78, .10) !important;
  box-shadow: none !important;
}

.onboarding-actions .primary-action {
  grid-column: 1 / -1 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0aa5a4, #2478f2) !important;
  border: 0 !important;
}

.onboarding-actions .quiet-action {
  grid-column: 1 / -1 !important;
  min-height: 40px !important;
  color: rgba(16, 42, 49, .72) !important;
  background: transparent !important;
  border: 0 !important;
}

.auth-more-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.auth-more-options summary {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #0f6f73;
  background: rgba(246, 251, 250, .86);
  border: 1px solid rgba(16, 111, 115, .12);
  border-radius: 14px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 900;
  list-style: none;
}

.auth-more-options summary::-webkit-details-marker {
  display: none;
}

.auth-more-options[open] summary {
  color: #0d2a30;
  background: rgba(235, 248, 247, .92);
}

.auth-screen .provider-stack {
  margin-top: 8px !important;
}

.auth-screen .auth-card {
  gap: 8px !important;
}

.auth-screen .demo-switcher {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.auth-screen .demo-switcher button {
  min-height: 34px !important;
  border-radius: 12px !important;
  font-size: .78rem !important;
}

@media (min-width: 720px) {
  .onboarding-card {
    grid-template-columns: minmax(0, .9fr) minmax(240px, 1.1fr) !important;
    align-items: center !important;
    width: min(92vw, 840px) !important;
    padding: 22px !important;
  }

  .onboarding-card > small,
  .onboarding-card h1,
  .onboarding-lede,
  .onboarding-copy {
    grid-column: 1;
  }

  .onboarding-map-preview {
    grid-column: 2;
    grid-row: 1 / span 4;
    min-height: 270px !important;
  }

  .onboarding-points,
  .onboarding-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .onboarding-card {
    gap: 8px !important;
    padding: 14px !important;
  }

  .onboarding-card h1 {
    max-width: 16ch !important;
    font-size: 1.54rem !important;
    line-height: 1.08 !important;
  }

  .onboarding-lede {
    font-size: .86rem !important;
  }

  .onboarding-copy {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }

  .onboarding-map-preview {
    min-height: 142px !important;
  }

  .onboarding-points span {
    min-height: 50px !important;
  }

  .onboarding-points em {
    font-size: .64rem !important;
  }

  .onboarding-actions button {
    min-height: 42px !important;
    font-size: .84rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-route-line,
  .onboarding-map-pin {
    animation: none !important;
  }
}

/* v180: event face page polish and stable scroll/close behavior. */
.phone-shell.event-selected .live-map-sheet.detail-open {
  display: block !important;
  width: min(620px, calc(100vw - 28px)) !important;
  max-height: min(88dvh, 760px) !important;
  padding: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  border: 1px solid color-mix(in srgb, var(--line, rgba(13, 68, 70, .26)) 70%, rgba(255,255,255,.44)) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(236,250,247,.70)),
    rgba(244, 252, 249, .78) !important;
  box-shadow: 0 24px 80px rgba(8, 24, 32, .25), inset 0 1px 0 rgba(255,255,255,.76) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.16) !important;
  backdrop-filter: blur(22px) saturate(1.16) !important;
  touch-action: pan-y !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-title {
  display: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-handle {
  position: sticky !important;
  top: 0 !important;
  z-index: 18 !important;
  display: block !important;
  margin: 0 auto 8px !important;
  background: rgba(13, 33, 42, .24) !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 0 0 8px !important;
  color: #0e2530 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  position: sticky !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 30 !important;
  justify-self: end !important;
  margin: 0 6px -54px 0 !important;
  color: #102532 !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(12, 57, 65, .16) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(7, 25, 35, .18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
}

.phone-shell.event-selected .event-detail .event-cover {
  height: clamp(230px, 34dvh, 320px) !important;
  min-height: 230px !important;
  border: 1px solid rgba(255,255,255,.70) !important;
  border-radius: 24px !important;
  background-color: #dcefeb !important;
  box-shadow: 0 20px 52px rgba(4, 28, 35, .18), inset 0 -150px 110px rgba(3, 22, 29, .46) !important;
}

.phone-shell.event-selected .event-detail .event-cover em {
  top: 14px !important;
  left: 14px !important;
  width: 46px !important;
  height: 46px !important;
  font-size: 1.18rem !important;
  color: #0f2b35 !important;
  background: rgba(255,255,255,.90) !important;
  box-shadow: 0 12px 26px rgba(6, 25, 34, .16) !important;
}

.event-face-data {
  gap: 8px !important;
  padding: 14px !important;
}

.event-face-data span {
  padding: 10px !important;
  background: rgba(5, 24, 31, .58) !important;
  border-color: rgba(255,255,255,.30) !important;
}

.phone-shell.event-selected .event-detail .event-headline {
  display: grid !important;
  gap: 6px !important;
  padding: 2px 2px 0 !important;
}

.phone-shell.event-selected .event-detail .event-headline > small,
.phone-shell.event-selected .event-detail .event-source-badge {
  justify-self: start !important;
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.phone-shell.event-selected .event-detail .event-source-badge {
  color: #06423f !important;
  background: rgba(207, 250, 229, .82) !important;
  border: 1px solid rgba(20, 184, 166, .24) !important;
}

.phone-shell.event-selected .event-detail .event-headline h2 {
  margin: 0 !important;
  color: #061b26 !important;
  font-size: clamp(1.45rem, 4vw, 2.05rem) !important;
  line-height: 1.02 !important;
}

.phone-shell.event-selected .event-detail .event-headline [data-event-meta],
.phone-shell.event-selected .event-detail .event-headline [data-event-description] {
  color: rgba(8, 31, 42, .78) !important;
}

.phone-shell.event-selected .event-detail .event-headline [data-event-description] {
  display: block !important;
  max-width: 62ch !important;
  font-size: .95rem !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: unset !important;
}

.phone-shell.event-selected .event-face-summary,
.phone-shell.event-selected .event-storyline,
.phone-shell.event-selected .event-host-strip,
.phone-shell.event-selected .event-moments,
.phone-shell.event-selected .event-quick-facts,
.phone-shell.event-selected .event-detail-grid,
.phone-shell.event-selected .event-route-preview,
.phone-shell.event-selected .event-modules,
.phone-shell.event-selected .event-quests,
.phone-shell.event-selected .event-participants,
.phone-shell.event-selected .event-activity {
  color: #0d2731 !important;
  background: rgba(255,255,255,.68) !important;
  border: 1px solid rgba(12, 60, 66, .12) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 12px 34px rgba(8, 35, 43, .08) !important;
}

.phone-shell.event-selected .event-face-summary {
  padding: 9px !important;
}

.phone-shell.event-selected .event-face-summary span,
.phone-shell.event-selected .event-quick-facts span,
.phone-shell.event-selected .event-detail-grid span {
  color: #0d2731 !important;
  background: rgba(237, 249, 246, .74) !important;
  border: 1px solid rgba(13, 78, 81, .11) !important;
}

.phone-shell.event-selected .event-storyline {
  background:
    radial-gradient(circle at 12% 0%, rgba(20,184,166,.20), transparent 36%),
    radial-gradient(circle at 90% 20%, rgba(37,99,235,.12), transparent 34%),
    rgba(255,255,255,.70) !important;
}

.phone-shell.event-selected .event-storyline li {
  padding: 8px !important;
  background: rgba(247, 253, 251, .72) !important;
  border: 1px solid rgba(13, 78, 81, .08) !important;
  border-radius: 14px !important;
}

.phone-shell.event-selected .event-host-strip {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 12px !important;
}

.phone-shell.event-selected .event-host-strip > span {
  width: 48px !important;
  height: 48px !important;
  color: #052a31 !important;
  background: linear-gradient(135deg, #bffbea, #8bd7ff) !important;
  box-shadow: 0 12px 24px rgba(20, 184, 166, .18) !important;
}

.phone-shell.event-selected .event-actions {
  position: relative !important;
  bottom: auto !important;
  z-index: 22 !important;
  gap: 8px !important;
  padding: 8px !important;
  background: rgba(248, 253, 250, .86) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 50px rgba(7, 28, 36, .16), inset 0 1px 0 rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
}

.phone-shell.event-selected .event-action-group {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .event-action-group-primary {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)) !important;
}

.phone-shell.event-selected .event-action-group-social,
.phone-shell.event-selected .event-action-group-manage {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important;
}

.phone-shell.event-selected .event-actions button {
  min-height: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
}

.phone-shell.event-selected .event-actions button[data-join-event],
.phone-shell.event-selected .event-actions button[data-event-place-route-action],
.phone-shell.event-selected .event-actions button[data-open-event-chat] {
  color: #fff !important;
  background: linear-gradient(135deg, #10b5aa, #2563eb) !important;
  border-color: rgba(255,255,255,.40) !important;
}

@media (prefers-color-scheme: dark) {
  .phone-shell.event-selected .live-map-sheet.detail-open {
    background:
      linear-gradient(180deg, rgba(13, 38, 45, .90), rgba(4, 22, 29, .92)),
      rgba(4, 22, 29, .92) !important;
    border-color: rgba(116, 227, 211, .16) !important;
  }

  .phone-shell.event-selected .live-map-sheet.detail-open .event-detail:not([hidden]) {
    color: #eefcf8 !important;
  }

  .phone-shell.event-selected .event-detail .event-headline h2,
  .phone-shell.event-selected .event-face-summary b,
  .phone-shell.event-selected .event-storyline strong,
  .phone-shell.event-selected .event-storyline li b,
  .phone-shell.event-selected .event-host-strip b,
  .phone-shell.event-selected .event-quick-facts b,
  .phone-shell.event-selected .event-detail-grid b,
  .phone-shell.event-selected .event-detail-grid em {
    color: #f5fffc !important;
  }

  .phone-shell.event-selected .event-detail .event-headline [data-event-meta],
  .phone-shell.event-selected .event-detail .event-headline [data-event-description],
  .phone-shell.event-selected .event-face-summary small,
  .phone-shell.event-selected .event-face-summary em,
  .phone-shell.event-selected .event-storyline li small,
  .phone-shell.event-selected .event-host-strip small,
  .phone-shell.event-selected .event-host-strip em,
  .phone-shell.event-selected .event-quick-facts small,
  .phone-shell.event-selected .event-detail-grid small {
    color: rgba(236, 253, 245, .72) !important;
  }

  .phone-shell.event-selected .event-face-summary,
  .phone-shell.event-selected .event-storyline,
  .phone-shell.event-selected .event-host-strip,
  .phone-shell.event-selected .event-moments,
  .phone-shell.event-selected .event-quick-facts,
  .phone-shell.event-selected .event-detail-grid,
  .phone-shell.event-selected .event-route-preview,
  .phone-shell.event-selected .event-modules,
  .phone-shell.event-selected .event-quests,
  .phone-shell.event-selected .event-participants,
  .phone-shell.event-selected .event-activity {
    background: rgba(10, 45, 49, .72) !important;
    border-color: rgba(125, 241, 220, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 38px rgba(0,0,0,.22) !important;
  }

  .phone-shell.event-selected .event-face-summary span,
  .phone-shell.event-selected .event-quick-facts span,
  .phone-shell.event-selected .event-detail-grid span,
  .phone-shell.event-selected .event-storyline li {
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(125, 241, 220, .10) !important;
  }

  .phone-shell.event-selected .event-actions {
    background: rgba(7, 31, 34, .90) !important;
    border-color: rgba(125, 241, 220, .14) !important;
  }
}

@media (max-width: 520px) {
  .phone-shell.event-selected .live-map-sheet.detail-open {
    width: calc(100vw - 22px) !important;
    max-height: calc(100dvh - 104px) !important;
    border-radius: 24px !important;
  }

  .phone-shell.event-selected .event-detail .event-cover {
    height: 236px !important;
    min-height: 236px !important;
  }

  .phone-shell.event-selected .event-face-summary {
    grid-template-columns: 1fr !important;
  }

  .phone-shell.event-selected .event-face-data {
    grid-template-columns: 1fr 1fr !important;
  }

  .phone-shell.event-selected .event-face-data span:last-child {
    grid-column: 1 / -1 !important;
  }

  .phone-shell.event-selected .event-action-group-primary,
  .phone-shell.event-selected .event-action-group-social,
  .phone-shell.event-selected .event-action-group-manage {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v171: event page reads like a compact live plan instead of a generic card. */
.phone-shell.event-selected .event-storyline {
  gap: 9px !important;
  padding: 12px !important;
  color: #10202d !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(223, 251, 243, .58)),
    rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(15, 118, 110, .18) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .event-storyline > div {
  align-items: end !important;
}

.phone-shell.event-selected .event-storyline > div small {
  color: rgba(15, 118, 110, .86) !important;
  font-size: .68rem !important;
  font-weight: 920 !important;
  letter-spacing: .02em !important;
}

.phone-shell.event-selected .event-storyline > div strong {
  color: #10202d !important;
  font-size: .98rem !important;
  font-weight: 940 !important;
}

.phone-shell.event-selected .event-storyline ul {
  gap: 7px !important;
}

.phone-shell.event-selected .event-storyline li {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 7px 8px !important;
  background: rgba(255, 255, 255, .52) !important;
  border: 1px solid rgba(15, 118, 110, .12) !important;
  border-radius: 14px !important;
}

.phone-shell.event-selected .event-storyline li > span {
  width: 34px !important;
  height: 34px !important;
  color: #072f2c !important;
  background: #dffbf3 !important;
  border: 1px solid rgba(20, 184, 166, .28) !important;
  border-radius: 12px !important;
  font-size: .78rem !important;
}

.phone-shell.event-selected .event-storyline li[data-kind="route"] > span {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  border-color: transparent !important;
}

.phone-shell.event-selected .event-storyline li[data-kind="chat"] > span {
  color: #075985 !important;
  background: #dbeafe !important;
}

.phone-shell.event-selected .event-storyline li[data-kind="photo"] > span {
  color: #6d2870 !important;
  background: #fce7f3 !important;
}

.phone-shell.event-selected .event-storyline li[data-kind="people"] > span {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
}

.phone-shell.event-selected .event-storyline li b {
  color: #10202d !important;
  font-size: .86rem !important;
  font-weight: 920 !important;
}

.phone-shell.event-selected .event-storyline li small {
  color: rgba(16, 32, 45, .68) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}

@media (prefers-color-scheme: dark) {
  .phone-shell.event-selected .event-storyline {
    color: #ecfffb !important;
    background:
      linear-gradient(145deg, rgba(18, 83, 78, .78), rgba(8, 39, 44, .86)),
      rgba(7, 31, 34, .94) !important;
    border-color: rgba(127, 233, 213, .18) !important;
  }

  .phone-shell.event-selected .event-storyline > div strong,
  .phone-shell.event-selected .event-storyline li b {
    color: #ecfffb !important;
  }

  .phone-shell.event-selected .event-storyline > div small,
.phone-shell.event-selected .event-storyline li small {
    color: rgba(223, 251, 243, .72) !important;
  }

  .phone-shell.event-selected .event-storyline li {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(127, 233, 213, .13) !important;
  }
}

/* v172: event cover is treated as the face of the meetup in the create flow. */
.create-event-preview-cover {
  align-content: center !important;
  gap: 8px !important;
}

.create-event-preview-cover > b {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  min-height: 24px;
  padding: 5px 8px;
  overflow: hidden;
  color: #073a37;
  background: rgba(223, 251, 243, .92);
  border: 1px solid rgba(20, 184, 166, .28);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 920;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-event-preview-cover.has-image > b {
  color: #ffffff;
  background: rgba(5, 17, 24, .64);
  border-color: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.photo-picker {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  align-items: stretch !important;
  padding: 10px !important;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .10), rgba(37, 99, 235, .06)),
    rgba(255, 255, 255, .24) !important;
  border-color: rgba(255, 255, 255, .46) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.photo-picker > button {
  width: 92px !important;
  height: 74px !important;
  min-height: 74px !important;
  overflow: hidden !important;
  color: #0f766e !important;
  background:
    linear-gradient(135deg, rgba(223, 251, 243, .84), rgba(219, 234, 254, .74)),
    rgba(255, 255, 255, .34) !important;
  background-position: center !important;
  background-size: cover !important;
  border: 1px solid rgba(15, 118, 110, .18) !important;
  border-radius: 16px !important;
}

.photo-picker > button.has-image {
  border-color: rgba(255, 255, 255, .54) !important;
}

.photo-picker > button.has-image span {
  display: none !important;
}

.photo-picker > button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(255, 255, 255, .86);
  border-radius: 12px;
  font-size: 1.1rem;
}

.photo-picker > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.photo-picker b {
  color: #10202d !important;
  font-size: .95rem !important;
  font-weight: 930 !important;
}

.photo-picker small {
  color: rgba(16, 32, 45, .68) !important;
  font-size: .72rem !important;
  line-height: 1.3 !important;
}

.photo-picker div button {
  justify-self: start !important;
  min-height: 38px !important;
  margin-top: 2px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  border: 0 !important;
  border-radius: 14px !important;
}

.photo-picker .media-upload-status:not([hidden]) {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  color: #075985 !important;
  background: #dbeafe;
  border-radius: 999px;
}

@media (max-width: 390px) {
  .photo-picker {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .photo-picker > button {
    width: 82px !important;
  }
}

@media (prefers-color-scheme: dark) {
  .create-event-preview-cover > b {
    color: #ecfffb;
    background: rgba(7, 31, 34, .76);
    border-color: rgba(127, 233, 213, .18);
  }

  .photo-picker {
    background:
      linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(37, 99, 235, .08)),
      rgba(7, 31, 34, .84) !important;
    border-color: rgba(127, 233, 213, .16) !important;
  }

  .photo-picker b {
    color: #ecfffb !important;
  }

  .photo-picker small {
    color: rgba(223, 251, 243, .70) !important;
  }
}

/* v173: moments preview inside the event detail page. */
.event-moments {
  display: grid;
  gap: 9px;
  padding: 12px;
  color: #10202d;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .70), rgba(219, 234, 254, .48)),
    rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 18px;
}

.event-moments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-moments-head div {
  min-width: 0;
}

.event-moments-head small,
.event-moments-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-moments-head small {
  color: rgba(15, 118, 110, .86);
  font-size: .68rem;
  font-weight: 920;
}

.event-moments-head strong {
  color: #10202d;
  font-size: .98rem;
  font-weight: 940;
}

.event-moments-head button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  background: #10202d;
  border: 0;
  border-radius: 14px;
  font-size: .74rem;
  font-weight: 900;
}

.event-moments-head button:disabled {
  color: rgba(16, 32, 45, .56);
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(16, 32, 45, .10);
}

.event-moments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-moment-card {
  position: relative;
  display: grid;
  min-height: 102px;
  align-content: end;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  color: #10202d;
  background:
    linear-gradient(135deg, rgba(223, 251, 243, .78), rgba(219, 234, 254, .78)),
    rgba(255, 255, 255, .44);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 15px;
}

.event-moment-card.has-image {
  color: #ffffff;
}

.event-moment-card.has-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(4, 12, 18, .04) 20%, rgba(4, 12, 18, .62) 100%);
  pointer-events: none;
}

.event-moment-card > * {
  position: relative;
  z-index: 1;
}

.event-moment-card span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #073a37;
  background: rgba(255, 255, 255, .72);
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 950;
}

.event-moment-card b,
.event-moment-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-moment-card b {
  font-size: .82rem;
  font-weight: 920;
}

.event-moment-card small {
  color: rgba(16, 32, 45, .68);
  font-size: .68rem;
  font-weight: 780;
}

.event-moment-card.has-image small {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 390px) {
  .event-moments {
    padding: 11px;
  }

  .event-moment-card {
    min-height: 94px;
  }
}

@media (prefers-color-scheme: dark) {
  .event-moments {
    color: #ecfffb;
    background:
      linear-gradient(145deg, rgba(18, 83, 78, .72), rgba(8, 39, 44, .86)),
      rgba(7, 31, 34, .92);
    border-color: rgba(127, 233, 213, .16);
  }

  .event-moments-head small,
  .event-moments-head strong,
  .event-moment-card b {
    color: #ecfffb;
  }

  .event-moments-head button {
    color: #073a37;
    background: #dffbf3;
  }

  .event-moments-head button:disabled {
    color: rgba(223, 251, 243, .54);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(127, 233, 213, .14);
  }

  .event-moment-card {
    color: #ecfffb;
    background:
      linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(37, 99, 235, .10)),
      rgba(255, 255, 255, .06);
    border-color: rgba(127, 233, 213, .14);
  }

  .event-moment-card small {
    color: rgba(223, 251, 243, .70);
  }
}

/* v174: post composer has a clear event-moment mode. */
.post-composer-sheet.moment-mode {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(223, 251, 243, .74)),
    rgba(255, 255, 255, .82);
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 20px;
}

.post-composer-sheet.moment-mode .post-composer-head small {
  color: #0f766e;
  font-size: .68rem;
  font-weight: 920;
}

.post-composer-sheet.moment-mode .post-composer-head strong {
  color: #10202d;
  font-size: 1.08rem;
  font-weight: 940;
}

.post-context-chip.moment {
  color: #073a37;
  background: #dffbf3;
  border-color: rgba(20, 184, 166, .28);
}

.post-photo-options:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.post-photo-options button {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-items: start;
  min-height: 54px;
  padding: 6px 8px !important;
  border-radius: 15px !important;
}

.post-photo-options button.selected {
  border-color: rgba(15, 118, 110, .34);
  background: rgba(223, 251, 243, .72);
}

.post-photo-options .photo-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  color: #073a37;
  background: rgba(255, 255, 255, .70);
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  font-size: .66rem;
  font-weight: 920;
}

.post-photo-options b {
  align-self: center;
  max-width: 100% !important;
  color: #10202d;
}

@media (max-width: 390px) {
  .post-photo-options:not([hidden]) {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .post-composer-sheet.moment-mode {
    background:
      linear-gradient(145deg, rgba(18, 83, 78, .82), rgba(8, 39, 44, .92)),
      rgba(7, 31, 34, .94);
    border-color: rgba(127, 233, 213, .18);
  }

  .post-composer-sheet.moment-mode .post-composer-head small,
  .post-composer-sheet.moment-mode .post-composer-head strong,
  .post-photo-options b {
    color: #ecfffb;
  }

  .post-context-chip.moment {
    color: #073a37;
    background: #dffbf3;
  }

  .post-photo-options button.selected {
    background: rgba(20, 184, 166, .18);
    border-color: rgba(127, 233, 213, .22);
  }
}

/* v158: route stops become a first-class part of the event page. */
.event-route-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  color: #0e2028;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(13,32,40,.08);
  border-radius: 18px;
}

.event-route-preview[hidden] {
  display: none !important;
}

.event-route-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-route-preview-head div {
  min-width: 0;
}

.event-route-preview-head small,
.event-route-preview-head strong {
  display: block;
}

.event-route-preview-head small {
  color: rgba(7,23,29,.58);
  font-size: .68rem;
  font-weight: 900;
}

.event-route-preview-head strong {
  color: #07171d;
  font-size: .98rem;
  line-height: 1.18;
}

.event-route-preview-head button {
  min-width: 96px;
  min-height: 44px;
  padding: 0 12px;
  color: #fff;
  background: #10242b;
  border: 0;
  border-radius: 13px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.event-route-preview ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-route-preview li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.event-route-preview li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0aa5a4, #2478f2);
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 950;
}

.event-route-preview li div {
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(13,32,40,.07);
  border-radius: 14px;
}

.event-route-preview li b,
.event-route-preview li small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-route-preview li b {
  color: #07171d;
  font-size: .86rem;
  line-height: 1.2;
}

.event-route-preview li small {
  margin-top: 2px;
  color: rgba(7,23,29,.62);
  font-size: .72rem;
  font-weight: 760;
}

/* v159: route builder rows carry stop name, time and place without crowding the phone form. */
.route-builder-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--event-ink);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 16px;
}

.route-builder-head b,
.route-builder-head small {
  display: block;
}

.route-builder-head b {
  font-size: .86rem;
  line-height: 1.15;
}

.route-builder-head small {
  margin-top: 2px;
  color: var(--event-muted);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.25;
}

.route-point-row {
  grid-template-columns: 28px minmax(110px, 1fr) minmax(86px, .42fr) minmax(72px, .62fr) 36px;
}

.route-point-time {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-point-time input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  color: var(--event-ink);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 520px) {
  .route-point-row {
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    align-items: start;
  }

  .route-point-row > label:not(.route-point-time) {
    grid-column: 2 / 3;
  }

  .route-point-time {
    grid-column: 2 / 3;
    width: min(128px, 100%);
  }

  .route-point-row small {
    grid-column: 2 / 3;
    white-space: normal;
  }

  .route-point-row button {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

/* v157: event detail reads like a focused event page, not a small popup. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-detail {
  gap: 12px !important;
  padding: 10px 10px 18px !important;
  color: #0e2028 !important;
  background: rgba(248,252,251,.82) !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 24px !important;
}

.phone-shell.event-selected .event-detail .event-cover {
  height: clamp(196px, 32svh, 276px) !important;
  min-height: 196px !important;
  border-radius: 20px !important;
  background-color: #15393f !important;
  box-shadow: inset 0 -138px 108px rgba(3,12,18,.54), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.phone-shell.event-selected .event-detail .event-cover::after {
  background:
    linear-gradient(180deg, rgba(3,12,18,.02) 12%, rgba(3,12,18,.32) 56%, rgba(3,12,18,.72) 100%) !important;
}

.phone-shell.event-selected .event-detail .event-cover em {
  top: 12px !important;
  left: 12px !important;
  width: 46px !important;
  height: 46px !important;
  color: #0b2028 !important;
  background: rgba(255,255,255,.90) !important;
}

.phone-shell.event-selected .event-face-data {
  gap: 8px !important;
  padding: 12px !important;
}

.phone-shell.event-selected .event-face-data span {
  min-height: 58px !important;
  padding: 9px 10px !important;
  background: rgba(4,16,22,.54) !important;
  border-color: rgba(255,255,255,.22) !important;
  border-radius: 14px !important;
}

.phone-shell.event-selected .event-face-data b {
  font-size: .84rem !important;
}

.phone-shell.event-selected .event-headline {
  display: grid;
  gap: 5px;
  padding: 0 2px !important;
}

.phone-shell.event-selected .event-headline small[data-event-type] {
  width: fit-content;
  min-height: 24px;
  padding: 5px 9px;
  color: #0f766e !important;
  background: rgba(204,251,241,.88);
  border: 1px solid rgba(13,148,136,.18);
  border-radius: 999px;
  font-size: .7rem !important;
}

.phone-shell.event-selected .event-headline h2 {
  margin: 0 !important;
  color: #07171d !important;
  font-size: 1.42rem !important;
  line-height: 1.08 !important;
}

.phone-shell.event-selected .event-headline [data-event-meta] {
  color: rgba(7,23,29,.72) !important;
  font-size: .82rem !important;
}

.phone-shell.event-selected .event-headline [data-event-description] {
  color: rgba(7,23,29,.78) !important;
  font-size: .9rem !important;
  line-height: 1.42 !important;
  -webkit-line-clamp: 4 !important;
}

.event-host-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(13,32,40,.08);
  border-radius: 16px;
}

.event-host-strip > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0aa5a4, #2478f2);
  border-radius: 14px;
  font-weight: 950;
}

.event-host-strip div {
  min-width: 0;
}

.event-host-strip small,
.event-host-strip b,
.event-host-strip em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-host-strip small {
  color: rgba(7,23,29,.58) !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
}

.event-host-strip b {
  color: #07171d;
  font-size: .94rem;
  line-height: 1.18;
}

.event-host-strip em {
  color: rgba(7,23,29,.64);
  font-size: .76rem;
  font-style: normal;
  font-weight: 760;
}

.event-quick-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.event-quick-facts span {
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  color: #07171d;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(13,32,40,.08);
  border-radius: 14px;
}

.event-quick-facts b,
.event-quick-facts small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-quick-facts b {
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.12;
}

.event-quick-facts small {
  color: rgba(7,23,29,.60);
  font-size: .68rem;
  font-weight: 850;
}

.phone-shell.event-selected .event-actions {
  gap: 8px !important;
}

.phone-shell.event-selected .event-action-group {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .event-action-group-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.phone-shell.event-selected .event-action-group-social {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.phone-shell.event-selected .event-actions button {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

.phone-shell.event-selected .event-detail-grid {
  gap: 8px !important;
}

.phone-shell.event-selected .event-detail-grid span,
.phone-shell.event-selected .event-modules,
.phone-shell.event-selected .event-quests article,
.phone-shell.event-selected .event-participants,
.phone-shell.event-selected .event-activity {
  background: rgba(255,255,255,.56) !important;
  border-color: rgba(13,32,40,.08) !important;
  box-shadow: none !important;
}

@media (max-width: 390px) {
  .phone-shell.event-selected .event-action-group-social {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .phone-shell.event-selected .event-headline h2 {
    font-size: 1.28rem !important;
  }
}

/* v156 final: last-word event close target after historical overrides. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

/* v155: compact auth sheet, reachable phone login, no unreachable bottom buttons. */
.auth-screen.active {
  grid-template-rows: 1fr !important;
  align-content: start !important;
  place-items: center !important;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom)) !important;
  overflow: hidden auto !important;
  overscroll-behavior: contain;
}

.auth-screen .simple-header {
  position: absolute !important;
  inset: calc(8px + env(safe-area-inset-top)) 14px auto !important;
  padding: 0 !important;
  pointer-events: none;
}

.auth-screen .simple-header .round-ghost {
  display: none !important;
}

.auth-screen .auth-card {
  display: grid !important;
  gap: 9px !important;
  width: min(92vw, 420px) !important;
  min-height: 0 !important;
  max-height: calc(100svh - 26px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  margin: 0 auto !important;
  padding: 18px !important;
  overflow: hidden auto !important;
  color: #10242b !important;
  background: rgba(247,252,251,.76) !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 34px rgba(9,28,36,.14), inset 0 1px 0 rgba(255,255,255,.78) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.12) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
  scrollbar-width: thin;
}

.auth-screen.register-mode .auth-card {
  min-height: 0 !important;
  transform: none !important;
}

.auth-screen .auth-status {
  margin: 0 !important;
  color: rgba(16,36,43,.72) !important;
  font-size: .76rem !important;
  line-height: 1.25 !important;
}

.auth-screen .auth-card h1 {
  margin: 0 0 2px !important;
  color: #08171d !important;
  font-size: 1.85rem !important;
  line-height: 1.03 !important;
  text-wrap: balance;
}

.auth-screen.register-mode .auth-card h1 {
  font-size: 1.72rem !important;
}

.auth-screen .auth-card label {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
}

.auth-screen .auth-card label span {
  display: block !important;
  color: rgba(16,36,43,.72) !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
}

.auth-screen .auth-card input,
.auth-screen .phone-login-panel select {
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 14px !important;
  color: #08171d !important;
  background: rgba(255,255,255,.74) !important;
  border: 1px solid rgba(16,111,115,.18) !important;
  border-radius: 14px !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
}

.auth-screen .auth-card input::placeholder {
  color: rgba(8,23,29,.58) !important;
}

.auth-screen .forgot-action {
  min-height: 30px !important;
  margin: -2px 0 0 !important;
  color: rgba(16,36,43,.68) !important;
}

.auth-screen .primary-action,
.auth-screen .demo-action,
.auth-screen .provider-stack button,
.auth-screen .phone-login-panel button {
  min-height: 46px !important;
  border-radius: 14px !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
}

.auth-screen .primary-action {
  margin: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0aa5a4, #2478f2) !important;
  box-shadow: 0 10px 20px rgba(15,101,152,.18) !important;
}

.auth-screen .text-action {
  min-height: 36px !important;
  color: #0f6f73 !important;
}

.auth-screen .demo-action,
.auth-screen .demo-switcher {
  margin: 0 !important;
}

.auth-screen .demo-action {
  color: #0d2a30 !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(16,111,115,.14) !important;
  box-shadow: none !important;
}

.auth-screen .provider-stack {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 7px !important;
  margin: 0 !important;
  padding: 8px !important;
  background: rgba(255,255,255,.50) !important;
  border: 1px solid rgba(16,111,115,.12) !important;
  border-radius: 18px !important;
}

.auth-screen .provider-stack button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px !important;
  color: #10242b !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(16,111,115,.12) !important;
  text-align: left;
}

.auth-screen .provider-stack b {
  display: grid;
  width: 30px !important;
  height: 30px !important;
  place-items: center;
  color: #fff !important;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed) !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
}

.auth-screen .provider-stack button:disabled {
  opacity: .62 !important;
}

.auth-screen .phone-login-panel,
.auth-screen .auth-captcha-panel {
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px !important;
  color: #10242b !important;
  background: rgba(235,248,247,.76) !important;
  border: 1px solid rgba(16,111,115,.14) !important;
  border-radius: 18px !important;
}

.auth-screen .phone-login-panel {
  grid-template-columns: minmax(112px, .82fr) minmax(0, 1fr);
  align-items: end;
}

.auth-screen .phone-login-panel button[data-send-phone-code],
.auth-screen .phone-login-panel p {
  grid-column: 1 / -1;
}

.auth-screen .phone-login-panel label span,
.auth-screen .auth-captcha-panel span {
  color: rgba(16,36,43,.72) !important;
}

.auth-screen .phone-login-panel p,
.auth-screen .auth-captcha-panel p {
  color: rgba(16,36,43,.72) !important;
  font-size: .72rem !important;
}

.auth-screen .phone-login-panel button {
  color: #fff !important;
  background: #116c70 !important;
  border: 0 !important;
}

.auth-screen .auth-legal-note {
  margin: 0 !important;
  color: rgba(16,36,43,.64) !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

@media (max-height: 760px) {
  .auth-screen .provider-stack {
    display: grid !important;
  }
}

@media (max-width: 380px) {
  .auth-screen .auth-card {
    width: min(94vw, 360px) !important;
    padding: 14px !important;
    gap: 7px !important;
    border-radius: 20px !important;
  }

  .auth-screen .auth-card h1 {
    font-size: 1.58rem !important;
  }

  .auth-screen .auth-status,
  .auth-screen .auth-legal-note {
    font-size: .66rem !important;
  }

  .auth-screen .phone-login-panel {
    grid-template-columns: 1fr;
  }
}

/* v156: event detail stays open while scrolling; close is always reachable. */
.phone-shell.event-selected .live-map-sheet.detail-open {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  scrollbar-width: thin;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail:not([hidden]) {
  min-height: min-content !important;
  padding-top: 0 !important;
  padding-bottom: 18px !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  position: sticky !important;
  top: 8px !important;
  z-index: 60 !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 4px -48px auto !important;
  color: #0d2028 !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(13,32,40,.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 16px rgba(8,18,28,.18) !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-handle {
  position: sticky !important;
  top: 0 !important;
  z-index: 58 !important;
  cursor: pointer;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-photo {
  margin-top: 2px !important;
}

@media (max-width: 700px) {
  .phone-shell.event-selected .live-map-sheet.detail-open {
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    max-height: none !important;
  }
}

/* v154: first-run onboarding is a clear entry gate, not a hidden modal trap. */
.mecly-onboarding {
  align-items: center !important;
  justify-items: center !important;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)) !important;
  background:
    linear-gradient(180deg, rgba(237, 248, 246, .58), rgba(229, 244, 248, .84)),
    radial-gradient(circle at 20% 18%, rgba(18, 199, 181, .28), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(37, 99, 235, .18), transparent 34%) !important;
}

.onboarding-card {
  width: min(100%, 440px) !important;
  max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  gap: 12px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 18px !important;
  color: #071f24 !important;
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(8, 91, 95, .14) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  scrollbar-width: none !important;
}

.onboarding-card::-webkit-scrollbar {
  display: none;
}

.onboarding-card > small {
  width: fit-content !important;
  padding: 7px 10px !important;
  color: #075d63 !important;
  background: rgba(15, 118, 110, .10) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  letter-spacing: .04em !important;
}

.onboarding-card h1 {
  max-width: 12ch !important;
  color: #071f24 !important;
  font-size: 2.06rem !important;
  line-height: 1 !important;
}

.onboarding-lede {
  color: #102a31 !important;
  font-size: 1.02rem !important;
}

.onboarding-copy {
  color: #28454c !important;
  font-size: .9rem !important;
}

.onboarding-mode-note {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  color: #0b3036;
  background: rgba(7, 47, 52, .07);
  border: 1px solid rgba(7, 47, 52, .10);
  border-radius: 14px;
}

.onboarding-mode-note strong {
  font-size: .88rem;
  line-height: 1.1;
}

.onboarding-mode-note span {
  color: #31545b;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.onboarding-map-preview {
  min-height: 104px !important;
  border-color: rgba(7, 47, 52, .10) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, .13) 0 19%, transparent 19%),
    linear-gradient(22deg, transparent 0 43%, rgba(245, 158, 11, .32) 43% 48%, transparent 48%),
    linear-gradient(140deg, transparent 0 57%, rgba(37, 99, 235, .18) 57% 62%, transparent 62%),
    rgba(255, 255, 255, .44) !important;
}

.onboarding-points {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.onboarding-points span {
  display: grid !important;
  min-height: 66px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  padding: 9px 6px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, .62) !important;
  border-color: rgba(7, 47, 52, .10) !important;
}

.onboarding-points b {
  width: 26px !important;
  height: 26px !important;
  color: #fff !important;
  background: #07363b !important;
}

.onboarding-points em {
  max-width: 11ch !important;
  color: #17343b !important;
  font-size: .72rem !important;
  line-height: 1.1 !important;
}

.onboarding-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 9px !important;
}

.onboarding-actions button {
  min-height: 48px !important;
  border: 1px solid rgba(7, 47, 52, .12) !important;
  border-radius: 14px !important;
  color: #09262c !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: none !important;
  font-size: .88rem !important;
}

.onboarding-actions .primary-action {
  min-height: 54px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #10a99e, #2268e8) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 20px rgba(34, 104, 232, .18) !important;
}

.onboarding-actions .account-action {
  background: rgba(255, 255, 255, .92) !important;
}

.onboarding-actions .quiet-action {
  grid-column: 1 / -1 !important;
  color: #17454b !important;
  background: rgba(7, 47, 52, .06) !important;
  border-color: rgba(7, 47, 52, .08) !important;
}

@media (max-width: 390px) {
  .onboarding-card {
    gap: 10px !important;
    padding: 14px !important;
  }

  .onboarding-card h1 {
    font-size: 1.78rem !important;
  }

  .onboarding-map-preview {
    min-height: 96px !important;
  }

  .onboarding-points span {
    min-height: 58px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mecly-onboarding,
  .onboarding-card,
  .onboarding-actions button {
    transition: none !important;
  }
}

/* v153: mobile touch targets. Keep the map UI visually compact, but make
   tappable areas large enough for real thumbs on Android/iOS. */
@media (max-width: 700px) {
  .live-topbar .search-pill {
    min-height: 44px !important;
  }

  .live-topbar .search-pill input {
    min-height: 32px !important;
    line-height: 32px !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .locate-button,
  .live-topbar .distance-button {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
  }

  .live-topbar .distance-button {
    width: 56px !important;
  }

  .event-discovery-scroll button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
  }

  .event-discovery-scroll button b {
    min-width: 16px !important;
    min-height: 16px !important;
    line-height: 16px !important;
  }

  .user-mini-profile-trigger,
  .notification-center-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .notification-center-trigger b {
    min-width: 18px !important;
    height: 18px !important;
    line-height: 14px !important;
  }

  .leaflet-marker-icon.mecly-map-pin,
  .leaflet-marker-icon.background-pin {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    margin-left: -22px !important;
  }

  .mecly-map-pin span {
    width: 34px !important;
    height: 34px !important;
    margin: 5px !important;
  }
}

.auth-legal-note {
  margin: 2px 0 0;
  color: rgba(15, 42, 47, .70);
  font-size: .73rem;
  font-weight: 720;
  line-height: 1.45;
  text-align: center;
}

.auth-legal-note a {
  color: #0871e8;
  font-weight: 900;
  text-decoration: none;
}

.auth-captcha-panel,
.phone-login-panel {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  color: #102a2f;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 18px;
}

.auth-captcha-panel[hidden],
.phone-login-panel[hidden] {
  display: none !important;
}

.auth-captcha-panel span,
.phone-login-panel label span {
  color: rgba(15,42,47,.72);
  font-size: .72rem;
  font-weight: 900;
}

.auth-captcha-panel p,
.phone-login-panel p {
  margin: 0;
  color: rgba(15,42,47,.72);
  font-size: .75rem;
  font-weight: 760;
  line-height: 1.35;
}

.auth-captcha-panel input,
.phone-login-panel input,
.phone-login-panel select {
  min-height: 42px !important;
  width: 100%;
  padding: 0 12px;
  color: #0f2529;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,89,94,.16);
  border-radius: 14px !important;
  font-size: .9rem;
  font-weight: 820;
}

.phone-login-panel button {
  min-height: 42px;
  color: #fff;
  background: #0f6f73;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.phone-login-panel [data-tone="warning"] {
  color: #8a3b00;
}

.phone-login-panel [data-tone="info"] {
  color: #0f6f73;
}

html:has(body.legal-page),
body.legal-page {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 100svh !important;
  max-width: none !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
}

body.legal-page {
  position: static !important;
  inset: auto !important;
  display: block !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(18,184,187,.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(34,113,232,.14), transparent 30%),
    linear-gradient(180deg, #eef8f6, #f7fbfb 42%, #e9f3f5) !important;
}

/* release-glass-135: selected events must always open the real detail card. */
.phone-shell.event-selected .map-profile-screen.active .live-map-sheet,
.phone-shell.event-selected .live-map-sheet.detail-open {
  position: absolute !important;
  z-index: 940 !important;
  top: auto !important;
  right: 14px !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  left: 14px !important;
  display: block !important;
  visibility: visible !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100svh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  padding: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 28px !important;
  background: rgba(246, 252, 247, .82) !important;
  box-shadow: 0 20px 54px rgba(8, 18, 28, .22), inset 0 1px 1px rgba(255, 255, 255, .54) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  transform: none !important;
  contain: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open > :not(.sheet-handle):not(.event-detail),
.phone-shell.event-selected .live-map-sheet.detail-open .sheet-title,
.phone-shell.event-selected .live-map-sheet.detail-open .filter-row,
.phone-shell.event-selected .live-map-sheet.detail-open .activity-carousel,
.phone-shell.event-selected .live-map-sheet.detail-open .event-discovery-empty,
.phone-shell.event-selected .live-map-sheet.detail-open .demo-events-note {
  position: absolute !important;
  inset: auto !important;
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-handle {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  display: block !important;
  visibility: visible !important;
  width: 52px !important;
  height: 14px !important;
  min-width: 52px !important;
  min-height: 14px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .sheet-handle::before {
  position: absolute !important;
  top: 4px !important;
  left: 50% !important;
  display: block !important;
  width: 42px !important;
  height: 5px !important;
  content: "" !important;
  background: rgba(18, 35, 45, .42) !important;
  border-radius: 999px !important;
  transform: translateX(-50%) !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail:not([hidden]) {
  position: relative !important;
  z-index: 3 !important;
  display: grid !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: pan-y !important;
  transform: none !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  position: sticky !important;
  top: 8px !important;
  right: auto !important;
  z-index: 24 !important;
  display: grid !important;
  justify-self: end !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 4px -52px auto !important;
  color: #0f172a !important;
  background: rgba(255, 255, 255, .88) !important;
  border: 1px solid rgba(255, 255, 255, .96) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(8, 18, 28, .22), inset 0 1px 1px rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.phone-shell.event-selected .event-actions {
  padding: 8px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, .24) !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .34) !important;
}

.phone-shell.event-selected .event-action-group {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell.event-selected .event-action-group-manage {
  grid-template-columns: 1fr !important;
}

.phone-shell.event-selected .event-actions button {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
}

.phone-shell.event-selected .bottom-nav {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(calc(115% + env(safe-area-inset-bottom))) !important;
}

@media (min-width: 720px) {
  .phone-shell.event-selected .map-profile-screen.active .live-map-sheet,
  .phone-shell.event-selected .live-map-sheet.detail-open {
    right: auto !important;
    bottom: 24px !important;
    left: 50% !important;
    width: min(560px, calc(100vw - 48px)) !important;
    max-height: min(720px, calc(100svh - 112px)) !important;
    transform: translateX(-50%) !important;
  }
}

/* v131: cleaner profile surface with fewer competing buttons. */
.profile-screen .travel-profile-card {
  text-align: left !important;
}

.profile-screen .profile-cover {
  height: 118px !important;
  margin-bottom: 0 !important;
}

.profile-screen .travel-profile-card .photo-avatar {
  width: 82px !important;
  height: 82px !important;
  margin: -42px auto 8px !important;
}

.profile-screen .profile-identity {
  text-align: center;
}

.profile-screen .profile-bio {
  max-width: 310px !important;
}

.profile-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0 12px;
}

.profile-action-row button {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: rgba(15, 23, 42, .88);
  background: rgba(255,255,255,.24);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.44);
  font-size: .82rem;
  font-weight: 920;
  white-space: nowrap;
}

.profile-action-row .profile-primary {
  width: auto !important;
  margin: 0 !important;
  color: #fff;
  background: linear-gradient(145deg, rgba(38,58,99,.94), rgba(7,17,38,.94)) !important;
  border-color: rgba(255,255,255,.46) !important;
  box-shadow: 0 10px 18px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.24) !important;
}

.profile-action-row button:focus-visible {
  outline: 2px solid rgba(17,156,255,.72);
  outline-offset: 2px;
}

.profile-stats-line {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 8px 0 14px !important;
}

.profile-stats-line button {
  min-height: 54px !important;
  padding: 7px 3px !important;
  border-radius: 16px !important;
  font-size: .66rem !important;
  line-height: 1.08;
  text-align: center;
}

.profile-stats-line button b {
  font-size: 1rem;
}

.profile-achievement-preview {
  margin-top: 8px !important;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 20px;
  background: rgba(255,255,255,.14);
}

.profile-achievement-strip {
  padding-bottom: 2px !important;
}

.profile-tabs {
  display: flex !important;
  gap: 8px !important;
  margin: 12px -4px 12px !important;
  padding: 2px 4px 8px !important;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 0 !important;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
}

.profile-tabs button.selected {
  box-shadow: 0 10px 18px rgba(15,23,42,.14);
}

.profile-tab-frame {
  min-height: 180px !important;
}

@media (max-width: 430px) {
  .profile-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 78px;
    gap: 7px;
  }

  .profile-action-row button {
    min-height: 40px;
    padding: 0 9px;
    font-size: .76rem;
  }

  .profile-stats-line {
    grid-template-columns: repeat(5, minmax(58px, 1fr)) !important;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .profile-stats-line::-webkit-scrollbar {
    display: none;
  }

  .profile-stats-line button {
    min-width: 58px;
  }
}

/* Profile achievements: compact glass badges with shareable progress. */
.profile-achievement-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-achievement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-achievement-head strong {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 950;
}

.profile-achievement-head button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(12, 26, 55, .82);
  background: rgba(255, 255, 255, .34);
  font-size: .78rem;
  font-weight: 900;
}

.profile-achievement-strip {
  display: flex;
  gap: 10px;
  margin-inline: -8px;
  padding: 2px 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.profile-achievement-strip::-webkit-scrollbar {
  display: none;
}

.achievement-badge {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, .24);
  text-align: left;
  overflow: hidden;
}

.achievement-badge.compact {
  flex: 0 0 82px;
  width: 82px;
  min-height: 96px;
  place-items: center;
  padding: 10px 8px;
  text-align: center;
}

.achievement-medal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #119cff, #7c3aed 75%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 10px 22px rgba(17, 24, 39, .16);
  font-size: 1rem;
  font-weight: 950;
}

.achievement-badge.gold .achievement-medal { background: linear-gradient(145deg, #f8c33c, #e67400); }
.achievement-badge.green .achievement-medal { background: linear-gradient(145deg, #1ddf88, #0b8e60); }
.achievement-badge.blue .achievement-medal { background: linear-gradient(145deg, #19b5ff, #1f46d8); }
.achievement-badge.pink .achievement-medal { background: linear-gradient(145deg, #ff6bbd, #9b2cff); }
.achievement-badge.violet .achievement-medal { background: linear-gradient(145deg, #a855f7, #2f4bef); }

.creator-tier-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 20px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}

.creator-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creator-tier-head small,
.creator-tier-head span {
  display: block;
  color: rgba(15, 23, 42, .64);
  font-size: .78rem;
  font-weight: 850;
}

.creator-tier-head strong {
  display: block;
  margin: 2px 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 950;
}

.creator-tier-head > b {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, rgba(38,58,99,.96), rgba(7,17,38,.96));
  box-shadow: 0 14px 24px rgba(15, 23, 42, .16);
  font-size: 1.25rem;
  font-weight: 950;
}

.creator-tier-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.creator-tier-step {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 16px;
  background: rgba(255, 255, 255, .22);
  color: rgba(15, 23, 42, .56);
  text-align: center;
  overflow: hidden;
}

.creator-tier-step::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  width: var(--creator-progress, 0%);
  background: rgba(17, 24, 39, .18);
}

.creator-tier-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #8b5e34, #3f2a1e);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5);
  font-size: .75rem;
  font-weight: 950;
}

.creator-tier-step b {
  max-width: 100%;
  overflow: hidden;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.creator-tier-step small {
  color: rgba(15, 23, 42, .5);
  font-size: .62rem;
  font-weight: 900;
}

.creator-tier-step.unlocked {
  color: #111827;
  background: rgba(255, 255, 255, .34);
}

.creator-tier-step.unlocked::before {
  width: 100%;
  background: linear-gradient(90deg, rgba(17,156,255,.72), rgba(155,44,255,.72));
}

.creator-tier-step.bronze span { background: linear-gradient(145deg, #d58b4f, #7a3d18); }
.creator-tier-step.silver span { background: linear-gradient(145deg, #f5f7fb, #7f8ea3); color: #102034; }
.creator-tier-step.gold span { background: linear-gradient(145deg, #ffe476, #e67400); color: #1f1300; }
.creator-tier-step.platinum span { background: linear-gradient(145deg, #e8f8ff, #5d8dff); color: #0f1d3f; }
.creator-tier-step.diamond span { background: linear-gradient(145deg, #95f7ff, #8b5cf6); }

.achievement-badge.locked {
  color: rgba(17, 24, 39, .58);
}

.achievement-badge.locked .achievement-medal {
  filter: grayscale(.75);
  opacity: .62;
}

.achievement-badge b {
  min-width: 0;
  overflow: hidden;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.achievement-badge.compact b {
  max-width: 68px;
  font-size: .7rem;
  line-height: 1.05;
}

.achievement-badge small {
  color: rgba(15, 23, 42, .68);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.25;
}

.achievement-badge em {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(12, 26, 55, .84);
  background: rgba(255, 255, 255, .5);
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
}

.achievement-badge.compact em {
  justify-self: center;
  padding: 3px 7px;
  font-size: .62rem;
}

.achievement-badge i {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
  overflow: hidden;
}

.achievement-badge i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--achievement-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #119cff, #9b2cff);
}

.achievements-panel {
  display: grid;
  gap: 12px;
}

.achievements-hero,
.exploration-stats-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 18px;
  background: rgba(255, 255, 255, .22);
}

.achievements-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.achievements-hero small,
.achievements-hero span,
.exploration-stats-card span {
  color: rgba(15, 23, 42, .64);
  font-size: .78rem;
  font-weight: 800;
}

.achievements-hero strong {
  display: block;
  margin: 2px 0;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 950;
}

.achievements-hero button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, rgba(38,58,99,.95), rgba(7,17,38,.95) 78%);
  font-weight: 950;
  white-space: nowrap;
}

.achievements-hero button:disabled {
  color: rgba(15, 23, 42, .42);
  background: rgba(255, 255, 255, .34);
}

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

.exploration-stats-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.exploration-stats-card b {
  display: block;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 950;
}

.profile-post-kind-chip.achievement {
  color: #5b21b6;
  background: rgba(168, 85, 247, .16);
  border-color: rgba(168, 85, 247, .24);
}

.profile-post-kind-chip.moment {
  color: #0f766e;
  background: rgba(20, 184, 166, .16);
  border-color: rgba(20, 184, 166, .26);
}

.profile-post-card.achievement-post .profile-post-image {
  background:
    radial-gradient(circle at 32% 28%, rgba(25,181,255,.76), transparent 30%),
    radial-gradient(circle at 72% 34%, rgba(255,107,189,.72), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
}

@media (max-width: 430px) {
  .achievements-hero {
    grid-template-columns: 1fr;
  }

  .achievements-hero button {
    width: 100%;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .creator-tier-track {
    display: flex;
    margin-inline: -6px;
    padding: 0 6px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }

  .creator-tier-track::-webkit-scrollbar {
    display: none;
  }

  .creator-tier-step {
    flex: 0 0 72px;
  }
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-panel-head small {
  display: block;
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 800;
}

.filter-panel-head strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.filter-panel-head button {
  width: 38px;
  height: 38px;
  color: #111827;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chips button,
.filter-actions button,
.filter-grid select {
  min-height: 38px;
  color: #111827;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-weight: 820;
}

.filter-chips button {
  flex: 0 0 auto;
  padding: 0 14px;
}

.filter-chips button.selected,
.filter-actions button:last-child {
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border-color: rgba(255,255,255,.36);
}

.range-control {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 22px;
}

.range-control span {
  display: flex;
  justify-content: space-between;
  color: rgba(17,24,39,.72);
  font-size: .82rem;
  font-weight: 850;
}

.range-control b {
  color: #111827;
}

.range-control input {
  width: 100%;
  accent-color: #111827;
}

.filter-origin-control {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 22px;
}

.filter-origin-control > span {
  color: rgba(17,24,39,.7);
  font-size: .78rem;
  font-weight: 850;
}

.filter-origin-control > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-origin-control button {
  min-height: 38px;
  color: #111827;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-weight: 850;
}

.filter-origin-control button.selected {
  color: #fff;
  background: linear-gradient(145deg, rgba(38,58,99,.94), rgba(7,17,38,.94) 78%);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 12px 24px rgba(15,23,42,.14);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
}

.filter-grid span {
  padding-left: 4px;
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 820;
}

.filter-grid select {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  outline: 0;
}

.filter-actions {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 10px;
}

.filter-actions button {
  min-height: 44px;
}

.map-action-sheet {
  position: absolute;
  z-index: 70;
  left: 18px;
  right: 18px;
  bottom: calc(184px + env(safe-area-inset-bottom));
  display: grid;
  gap: 9px;
  padding: 10px 12px 12px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15,23,42,.12), inset 0 1px 1px rgba(255,255,255,.48);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  transition: opacity .2s ease, transform .2s ease;
}

.phone-shell.map-action-open .event-entry-popup,
.phone-shell.marker-action-open .marker-action-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.phone-shell.marker-action-open .event-entry-popup,
.phone-shell.map-action-open .marker-action-sheet {
  opacity: 0 !important;
  pointer-events: none !important;
}

.map-long-press-indicator {
  position: absolute;
  z-index: 650;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 128px;
  color: #142033;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-long-press-indicator[hidden] {
  display: none;
}

.map-long-press-indicator span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(22,139,255,.72);
  box-shadow: 0 0 0 0 rgba(22,139,255,.34), 0 10px 24px rgba(15,23,42,.16);
  animation: mapLongPressPulse 3s linear forwards;
}

.map-long-press-indicator em {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  backdrop-filter: blur(14px) saturate(1.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.14);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

@keyframes mapLongPressPulse {
  to {
    box-shadow: 0 0 0 18px rgba(22,139,255,0), 0 10px 24px rgba(15,23,42,.16);
  }
}

.map-action-sheet .sheet-handle.small {
  width: 56px;
  height: 5px;
  margin: 0 auto 2px;
}

.map-action-sheet small {
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 820;
}

.map-action-sheet strong {
  font-size: 1.08rem;
  line-height: 1.05;
}

.map-action-sheet div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-action-sheet button:not(.sheet-handle) {
  min-height: 42px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
}

.map-action-sheet button[data-add-map-marker] {
  color: #111827;
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.46);
}

.mecly-custom-pin {
  display: grid;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(15,23,42,.22), inset 0 1px 1px rgba(255,255,255,.32);
  transform: translate(-16px, -16px);
}

.mecly-custom-pin span {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.bottom-nav {
  background: rgba(255,255,255,.28) !important;
  border-color: rgba(255,255,255,.48) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}

/* v33: complete Ukrainian travel profile screen. */
.profile-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.profile-screen .simple-header {
  z-index: 12;
}

.travel-profile-card {
  position: relative;
  z-index: 3;
  width: calc(100% - 28px);
  max-height: calc(100svh - 104px);
  margin: 14px auto calc(96px + env(safe-area-inset-bottom));
  padding: 0 14px 18px;
  overflow-y: auto;
  text-align: center;
  border-radius: 30px;
  scrollbar-width: none;
}

.travel-profile-card::-webkit-scrollbar {
  display: none;
}

.profile-cover {
  height: 124px;
  margin: 0 -14px;
  border-radius: 28px 28px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.18)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80") center / cover;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42);
}

.travel-profile-card .photo-avatar {
  width: 92px;
  height: 92px;
  margin: -46px auto 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0)),
    url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=220&q=80") center / cover;
  border: 4px solid rgba(255,255,255,.82);
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
}

.profile-identity h2 {
  margin: 0;
  color: #101722;
  font-size: 1.46rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-handle,
.profile-bio {
  margin: 4px auto 0;
  color: rgba(17,24,39,.72);
  font-weight: 760;
}

.profile-handle {
  font-size: .82rem;
}

.profile-bio {
  max-width: 270px;
  font-size: .78rem;
  line-height: 1.22;
}

.profile-primary {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 12px;
  color: #fff;
  background: linear-gradient(180deg, #168bff, #0871e8);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,122,255,.22), inset 0 1px 1px rgba(255,255,255,.28);
  font-weight: 900;
}

.profile-stats-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(17,24,39,.78);
  font-size: .76rem;
  font-weight: 760;
}

.profile-stats-line span {
  white-space: nowrap;
}

.profile-stats-line b {
  color: #101722;
  font-weight: 950;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 -2px 12px;
  border-bottom: 1px solid rgba(17,24,39,.10);
}

.profile-tabs button {
  position: relative;
  min-height: 38px;
  padding: 0 2px;
  color: rgba(17,24,39,.72);
  background: transparent;
  border: 0;
  font-size: .74rem;
  font-weight: 850;
}

.profile-tabs button.selected {
  color: #007aff;
}

.profile-tabs button.selected::after {
  position: absolute;
  right: 10%;
  bottom: -1px;
  left: 10%;
  height: 2px;
  content: "";
  background: #007aff;
  border-radius: 999px;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.place-card {
  position: relative;
  min-height: 100px;
  overflow: hidden;
  color: #fff;
  background: #dfe8ef;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(15,23,42,.08);
}

.place-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.36));
}

.place-card::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
}

.place-card span {
  position: absolute;
  right: 6px;
  bottom: 7px;
  left: 6px;
  font-size: .72rem;
  font-weight: 860;
  text-shadow: 0 1px 8px rgba(0,0,0,.26);
}

.place-card span::before {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 2px;
  content: "";
  background: radial-gradient(circle at 50% 35%, transparent 0 25%, #fff 26% 42%, transparent 43%), radial-gradient(circle at 50% 78%, #fff 0 14%, transparent 15%);
}

.place-card.mountains { background: url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=260&q=80") center / cover; }
.place-card.city { background: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=260&q=80") center / cover; }
.place-card.sea { background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=260&q=80") center / cover; }
.place-card.forest { background: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=260&q=80") center / cover; }
.place-card.castle { background: url("https://images.unsplash.com/photo-1529655683826-aba9b3e77383?auto=format&fit=crop&w=260&q=80") center / cover; }
.place-card.skyline { background: url("https://images.unsplash.com/photo-1514565131-fce0801e5785?auto=format&fit=crop&w=260&q=80") center / cover; }

.profile-panel {
  display: grid;
  gap: 10px;
  text-align: left;
}

.profile-panel[hidden],
.profile-gallery[hidden],
.compact-edit[hidden] {
  display: none !important;
}

.profile-panel article {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
}

.profile-panel b {
  color: #101722;
  font-size: .9rem;
}

.profile-panel span {
  color: rgba(17,24,39,.68);
  font-size: .78rem;
  font-weight: 760;
}

.compact-edit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  animation: profileEditIn .22s ease-out both;
}

.compact-edit input,
.compact-edit button {
  min-height: 42px;
}

@keyframes profileEditIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-map-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)) !important;
  border-color: rgba(255,255,255,.38) !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .sheet-handle {
  background: rgba(17,24,39,.30) !important;
}

/* v34: richer profile tabs, separate edit flow, stronger frosted glass. */
.travel-profile-card,
.profile-edit-card,
.profile-list-drawer {
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.26)) !important;
  border-color: rgba(255,255,255,.62) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.22) !important;
  backdrop-filter: blur(30px) saturate(1.22) !important;
}

.profile-cover {
  position: relative;
  height: 138px;
  z-index: 1;
}

.cover-edit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #101722;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.cover-edit svg,
.profile-edit-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.travel-profile-card .photo-avatar {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 50%;
  margin-top: -54px;
}

button.photo-avatar {
  padding: 0;
}

.profile-stats-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.profile-stats-line button {
  min-height: 42px;
  padding: 4px 2px;
  color: rgba(17,24,39,.78);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-size: .72rem;
  font-weight: 760;
}

.profile-stats-line button:active {
  background: rgba(255,255,255,.36);
}

.profile-tab-frame {
  position: relative;
  min-height: 238px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.profile-panel-current {
  animation: profileTabIn .22s ease-out both;
}

@keyframes profileTabIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.floating-profile-action {
  position: sticky;
  right: 10px;
  bottom: 8px;
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: #007aff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0,122,255,.22);
  font-weight: 850;
}

.stories-head,
.map-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stories-head strong,
.profile-panel h3 {
  margin: 0;
  color: #101722;
  font-size: .92rem;
  text-align: left;
}

.stories-head button,
.map-filter-row button,
.saved-panel article button {
  min-height: 34px;
  padding: 0 12px;
  color: #007aff;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
}

.story-strip {
  display: flex;
  gap: 10px;
  margin: 12px -4px 14px;
  overflow-x: auto;
  padding: 2px 4px 8px;
  scrollbar-width: none;
}

.story-strip::-webkit-scrollbar {
  display: none;
}

.story-bubble {
  flex: 0 0 74px;
  height: 92px;
  overflow: hidden;
  color: #fff;
  background: #ccd8e2;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 24px;
  box-shadow: 0 10px 18px rgba(15,23,42,.10);
  position: relative;
}

.story-bubble::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.42));
}

.story-bubble span {
  position: absolute;
  right: 6px;
  bottom: 8px;
  left: 6px;
  z-index: 1;
  font-size: .66rem;
  font-weight: 850;
}

.story-bubble.mountains { background: url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=180&q=80") center / cover; }
.story-bubble.city { background: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=180&q=80") center / cover; }
.story-bubble.sea { background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=180&q=80") center / cover; }
.story-bubble.forest { background: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=180&q=80") center / cover; }

.archive-section,
.saved-panel section {
  display: grid;
  gap: 9px;
}

.saved-panel {
  gap: 14px;
}

.saved-panel article,
.archive-section article {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.empty-state {
  opacity: .72;
}

.map-filter-row {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.map-filter-row::-webkit-scrollbar {
  display: none;
}

.map-filter-row button {
  flex: 0 0 auto;
  color: rgba(17,24,39,.76);
}

.map-filter-row button.selected {
  color: #fff;
  background: #101722;
  border-color: transparent;
}

.profile-mini-map {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 22px;
  background-color: rgba(255,255,255,.18);
  background-image:
    url("https://tile.openstreetmap.org/14/8801/5373.png"),
    url("https://tile.openstreetmap.org/14/8802/5373.png"),
    url("https://tile.openstreetmap.org/14/8801/5374.png"),
    url("https://tile.openstreetmap.org/14/8802/5374.png");
  background-position: left top, right top, left bottom, right bottom;
  background-repeat: no-repeat;
  background-size: 50% 50%;
}

.profile-real-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 250px;
  background: #dfeaf0;
}

.profile-real-map.leaflet-container,
.profile-real-map .leaflet-container {
  width: 100%;
  height: 100%;
}

.profile-real-map .leaflet-popup-pane,
.profile-real-map .leaflet-tooltip-pane,
.profile-real-map .leaflet-shadow-pane {
  pointer-events: none;
}

.profile-real-map .leaflet-marker-pane {
  pointer-events: auto;
}

.profile-real-map .leaflet-tile-pane {
  filter: saturate(1.08) contrast(1.02) brightness(1.04);
}

.profile-real-map::after {
  position: absolute;
  inset: 0;
  z-index: 450;
  content: "";
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.profile-mini-map .map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: .16;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.profile-pin {
  position: absolute;
  z-index: 4;
  width: 24px;
  height: 24px;
  margin: -12px;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15,23,42,.22);
}

.profile-map-pins {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.profile-map-pins .profile-pin {
  pointer-events: none;
  opacity: .001;
}

.profile-leaflet-pin {
  display: grid;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  place-items: center;
  border: 0;
  background: transparent;
}

.profile-leaflet-pin span {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15,23,42,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.profile-leaflet-pin.posts span,
.profile-leaflet-pin.post span { background: #007aff; }
.profile-leaflet-pin.stories span,
.profile-leaflet-pin.story span { background: #ff7a1a; }
.profile-leaflet-pin.saved span { background: #22c55e; }
.profile-leaflet-pin.events span { background: #8b5cf6; }

.profile-leaflet-pin.selected span {
  transform: scale(1.22);
  box-shadow: 0 0 0 9px rgba(0,122,255,.16), 0 12px 24px rgba(15,23,42,.26);
}

.profile-pin.post,
.profile-pin.posts { background: #007aff; }
.profile-pin.story,
.profile-pin.stories { background: #ff7a1a; }
.profile-pin.saved { background: #22c55e; }
.profile-pin.events { background: #8b5cf6; }

.profile-pin.selected {
  transform: scale(1.22);
  box-shadow: 0 0 0 8px rgba(0,122,255,.16), 0 12px 24px rgba(15,23,42,.26);
}

.profile-map-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.profile-map-detail[hidden] {
  display: none !important;
}

.profile-map-detail small,
.profile-map-detail span {
  color: rgba(17,24,39,.64);
  font-size: .68rem;
  font-weight: 800;
}

.profile-map-detail b {
  color: #101722;
  font-size: .86rem;
}

.profile-map-detail button {
  grid-row: 1 / span 3;
  grid-column: 2;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #101722;
  border: 0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
}

.pin-status {
  margin: 0;
  color: rgba(17,24,39,.72);
  text-align: left;
  font-size: .74rem;
  font-weight: 760;
}

.profile-list-drawer {
  position: fixed;
  right: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 28;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform .22s ease-out;
  pointer-events: none;
}

.profile-list-drawer[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-list-drawer > strong {
  color: #101722;
  font-size: 1rem;
}

[data-profile-list-content] {
  display: grid;
  gap: 8px;
}

.profile-list-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px;
  text-align: left;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 18px;
}

.mini-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0f172a, #1d4ed8);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}

.profile-list-item b,
.profile-list-item small {
  display: block;
}

.profile-list-item b {
  color: #101722;
  font-size: .82rem;
}

.profile-list-item small {
  color: rgba(17,24,39,.62);
  font-size: .68rem;
  font-weight: 760;
}

.profile-edit-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.phone-shell:has(.profile-edit-screen.active) .bottom-nav {
  display: none;
}

.profile-edit-card {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: calc(100% - 28px);
  max-height: calc(100svh - 104px);
  margin: 14px auto calc(18px + env(safe-area-inset-bottom));
  padding: 14px;
  overflow-y: auto;
  border-radius: 30px;
  scrollbar-width: none;
}

.profile-edit-card::-webkit-scrollbar {
  display: none;
}

.edit-cover-preview {
  position: relative;
  height: 124px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.22)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80") center / cover;
}

.edit-cover-preview button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #101722;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
}

.edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -36px;
  padding-left: 14px;
}

.edit-avatar-row .photo-avatar {
  width: 78px;
  height: 78px;
  border: 4px solid rgba(255,255,255,.86);
}

.edit-avatar-row button,
.save-profile-bottom {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #101722;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.profile-edit-card label {
  display: grid;
  gap: 6px;
  text-align: left;
}

.profile-edit-card label span {
  color: rgba(17,24,39,.68);
  font-size: .72rem;
  font-weight: 850;
}

.profile-edit-card input,
.profile-edit-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: #101722;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  outline: none;
  font: inherit;
  font-weight: 760;
  resize: none;
}

.profile-edit-card input:focus,
.profile-edit-card textarea:focus {
  border-color: rgba(0,122,255,.72);
  box-shadow: 0 0 0 3px rgba(0,122,255,.14);
}

.save-profile-bottom {
  position: sticky;
  bottom: 0;
  min-height: 54px;
  margin-top: 4px;
  font-size: .98rem;
}

@media (prefers-reduced-motion: reduce) {
  .profile-panel-current,
  .profile-list-drawer {
    animation: none;
    transition: none;
  }
}

/* v35: full-screen app surface, no side gutters, cleaner profile edit header. */
html,
body {
  width: 100vw !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  background: #dfeaf0 !important;
}

body {
  display: block !important;
}

body::before,
body::after,
.phone-shell::before,
.phone-shell::after {
  display: none !important;
}

.phone-shell {
  width: 100vw !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 100svh !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #dfeaf0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.screen,
.screen.active {
  width: 100vw !important;
  height: 100svh !important;
}

.screen .profile-bg,
.screen .blur-photo,
.screen .map-canvas.soft,
.profile-bg.map-texture {
  background-color: #dfeaf0 !important;
  background-image:
    url("https://tile.openstreetmap.org/14/8800/5372.png"),
    url("https://tile.openstreetmap.org/14/8801/5372.png"),
    url("https://tile.openstreetmap.org/14/8802/5372.png"),
    url("https://tile.openstreetmap.org/14/8800/5373.png"),
    url("https://tile.openstreetmap.org/14/8801/5373.png"),
    url("https://tile.openstreetmap.org/14/8802/5373.png"),
    url("https://tile.openstreetmap.org/14/8800/5374.png"),
    url("https://tile.openstreetmap.org/14/8801/5374.png"),
    url("https://tile.openstreetmap.org/14/8802/5374.png") !important;
  background-position:
    0 0,
    50% 0,
    100% 0,
    0 50%,
    50% 50%,
    100% 50%,
    0 100%,
    50% 100%,
    100% 100% !important;
  background-repeat: no-repeat !important;
  background-size: 34% 34% !important;
}

.screen:not(.map-profile-screen) .profile-bg.map-texture .map-frame {
  opacity: 0 !important;
  pointer-events: none !important;
}

.profile-bg.map-texture {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  overflow: hidden !important;
  transform: none !important;
  filter: none !important;
}

.screen .profile-bg .map-frame,
.screen .blur-photo .map-frame,
.screen .map-canvas.soft .map-frame,
.profile-bg.map-texture .map-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  border: 0 !important;
  opacity: .98 !important;
}

.screen .profile-bg::after,
.screen .blur-photo::after,
.screen .map-canvas.soft::after,
.profile-bg.map-texture::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 34%, rgba(235,242,248,.10)) !important;
}

.simple-header {
  left: max(12px, env(safe-area-inset-left)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  top: max(8px, env(safe-area-inset-top)) !important;
}

.travel-profile-card,
.profile-edit-card {
  width: min(calc(100vw - 28px), 430px) !important;
}

.profile-edit-card {
  margin-top: 12px !important;
}

.edit-avatar-row {
  margin-top: 10px !important;
  padding-left: 4px !important;
}

.edit-avatar-row .photo-avatar {
  flex: 0 0 76px;
  width: 76px !important;
  height: 76px !important;
  margin: 0 !important;
}

.edit-avatar-row button {
  flex: 1;
  min-width: 0;
}

.edit-cover-preview {
  height: 132px !important;
}

/* v36: one live map behind the entire app; every menu is glass over it. */
.global-map-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #dfeaf0;
}

#global-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.global-map-layer .leaflet-container {
  width: 100%;
  height: 100%;
  background: #dfeaf0;
}

.global-map-layer::after {
  position: absolute;
  inset: 0;
  z-index: 400;
  content: "";
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02) 36%, rgba(255,255,255,.10)),
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.18), transparent 40%);
  pointer-events: none;
}

.screen {
  z-index: 2;
  background: transparent !important;
}

.map-profile-screen {
  z-index: 3;
}

.map-profile-screen:not(.active) {
  pointer-events: none;
}

.screen:not(.map-profile-screen) .profile-bg,
.screen:not(.map-profile-screen) .blur-photo,
.screen:not(.map-profile-screen) .map-canvas.soft,
.screen:not(.map-profile-screen) .profile-bg.map-texture,
.screen:not(.map-profile-screen) .map-canvas.map-texture.soft {
  display: none !important;
}

.profile-screen,
.profile-edit-screen,
.chat-screen,
.search-screen,
.auth-screen,
.settings-screen,
.notifications-screen,
.create-screen {
  background: transparent !important;
}

.travel-profile-card,
.profile-edit-card,
.auth-card,
.settings-card,
.create-event-card,
.search-panel,
.notification-list article,
.chat-screen .message-list,
.chat-screen .composer,
.chat-screen .chat-tabs-mini,
.profile-list-drawer,
.profile-panel article,
.saved-panel article,
.archive-section article,
.profile-mini-map {
  background-color: rgba(255,255,255,.20) !important;
  background-image: none;
  border-color: rgba(255,255,255,.48) !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.10), inset 0 1px 1px rgba(255,255,255,.42) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.25) !important;
  backdrop-filter: blur(30px) saturate(1.25) !important;
}

.profile-edit-card input,
.profile-edit-card textarea,
.auth-card input,
.create-event-card input,
.create-event-card textarea,
.create-event-card select,
.search-panel input {
  background: rgba(255,255,255,.24) !important;
  border-color: rgba(255,255,255,.50) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.profile-mini-map {
  background: rgba(255,255,255,.10) !important;
}

.profile-mini-map .map-frame {
  display: none !important;
}

.background-pin {
  opacity: .62;
  filter: saturate(.95);
}

.chat-screen .message-list {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.chat-screen .row p,
.chat-screen .composer,
.chat-screen .chat-tabs-mini,
.search-panel,
.travel-profile-card,
.profile-edit-card {
  background-color: rgba(255,255,255,.16) !important;
}

/* v38: full smart profile editor with transparent glass fields and chips. */
.profile-edit-screen.active {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.profile-edit-card {
  align-self: start;
  gap: 14px !important;
  width: min(calc(100vw - 34px), 430px) !important;
  max-height: calc(100svh - 84px) !important;
  margin-top: 70px !important;
  padding: 24px 22px 20px !important;
  border-radius: 34px !important;
  background-color: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.52) !important;
  box-shadow: 0 22px 58px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.54) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.34) !important;
  backdrop-filter: blur(36px) saturate(1.34) !important;
}

.edit-card-title {
  margin: 0 0 10px;
  color: #0d1420;
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  line-height: 1.05;
  text-align: center;
}

.edit-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.edit-upload-actions button,
.suggestion-box button,
.tag-chip {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.56);
  background: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42), 0 10px 24px rgba(15,23,42,.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.edit-upload-actions button {
  min-height: 58px;
  padding: 0 12px;
  color: #0a63ce;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 850;
}

.profile-edit-card label,
.smart-group {
  display: grid;
  gap: 7px;
}

.profile-edit-card label span,
.smart-label {
  display: flex;
  justify-content: space-between;
  color: rgba(17,24,39,.76);
  font-size: .78rem;
  font-weight: 860;
}

.profile-edit-card label span em {
  color: rgba(17,24,39,.44);
  font-style: normal;
}

.profile-edit-card label span em.success {
  color: #0a8f45;
}

.profile-edit-card label span em.warning {
  color: #a16207;
}

.profile-edit-card label span em.danger,
[data-bio-count].danger {
  color: #d62246;
}

.profile-edit-card input,
.profile-edit-card textarea {
  min-height: 56px !important;
  padding: 13px 17px !important;
  border-radius: 19px !important;
  background: rgba(255,255,255,.23) !important;
  border: 1px solid rgba(255,255,255,.50) !important;
  color: #101722 !important;
  font-size: .98rem;
  font-weight: 760;
}

.profile-edit-card textarea {
  min-height: 94px !important;
}

.smart-field.compact input {
  min-height: 50px !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 2px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: rgba(0,122,255,.78);
  border-color: rgba(255,255,255,.38);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 820;
}

.tag-chip.static {
  color: #fff;
  background: rgba(0,122,255,.72);
}

.suggestion-box {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.48);
  -webkit-backdrop-filter: blur(28px) saturate(1.28);
  backdrop-filter: blur(28px) saturate(1.28);
}

.suggestion-box[hidden] {
  display: none !important;
}

.suggestion-box button {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 10px 16px;
  color: #0f172a;
  text-align: left;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 820;
}

.suggestion-box button:last-child {
  border-bottom: 0;
}

.suggestion-box small {
  color: rgba(15,23,42,.56);
  font-size: .72rem;
  font-weight: 720;
}

.suggestion-box.compact button {
  min-height: 38px;
}

.profile-edit-status {
  margin: 0;
  color: rgba(15,23,42,.70);
  font-size: .76rem;
  font-weight: 780;
  text-align: center;
}

/* Final language picker override: a readable settings list with planned languages below. */
.settings-card .language-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 4px 0 0 !important;
}

.settings-card .language-panel-label {
  color: rgba(15, 23, 42, .70) !important;
  font-size: .8rem !important;
  font-weight: 900 !important;
}

.settings-card .language-choice-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.settings-card .language-choice {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  color: rgba(15, 23, 42, .86) !important;
  background: rgba(255, 255, 255, .24) !important;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 16px !important;
  text-align: left !important;
}

.settings-card .language-choice.active {
  color: #fff !important;
  background: rgba(15, 23, 42, .82) !important;
  border-color: rgba(15, 23, 42, .34) !important;
}

.settings-card .language-choice-head {
  display: contents !important;
}

.settings-card .language-choice-head b {
  grid-column: 1 !important;
  grid-row: 1 !important;
  overflow: hidden !important;
  font-size: .95rem !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice-head em {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  padding: 5px 9px !important;
  color: rgba(15, 23, 42, .72) !important;
  background: rgba(255, 255, 255, .70) !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
  border-radius: 999px !important;
  font-size: .66rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.settings-card .language-choice small {
  grid-column: 1 !important;
  grid-row: 2 !important;
  overflow: hidden !important;
  color: rgba(15, 23, 42, .58) !important;
  font-size: .7rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice.active small {
  color: rgba(255, 255, 255, .78) !important;
}

.settings-card .language-preview-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  gap: 7px !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .34) !important;
}

.settings-card .language-preview-title {
  grid-column: 1 / -1 !important;
  padding: 0 !important;
  color: rgba(15, 23, 42, .58) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
}

.settings-card .language-preview-row button {
  min-height: 32px !important;
  padding: 7px 10px !important;
  color: rgba(15, 23, 42, .52) !important;
  background: rgba(255, 255, 255, .16) !important;
  border: 1px solid rgba(255, 255, 255, .30) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.profile-media-note {
  display: block;
  margin: -2px 4px 2px;
  color: rgba(15,23,42,.58);
  font-size: .74rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.profile-edit-status[data-tone="error"] {
  color: #bd1233;
}

.profile-edit-status[data-tone="success"] {
  color: #087f3f;
}

.profile-edit-status[data-tone="warning"] {
  color: #8a5a00;
}

.save-profile-bottom {
  position: static !important;
  min-height: 62px !important;
  margin-top: 8px !important;
  color: #fff !important;
  background: #111827 !important;
  border-radius: 999px !important;
  font-size: 1.02rem !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.18) !important;
}

.profile-refresh-status {
  margin: 8px 0 0;
  color: #007aff;
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
}

.map-panel {
  position: relative;
}

.map-panel .profile-map-detail {
  position: absolute;
  right: 18px;
  bottom: 132px;
  left: 18px;
  z-index: 8;
  background: rgba(255,255,255,.26) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.13), inset 0 1px 1px rgba(255,255,255,.52);
}

@media (max-width: 370px) {
  .edit-upload-actions {
    grid-template-columns: 1fr;
  }

  .profile-edit-card {
    width: calc(100vw - 22px) !important;
    padding-inline: 16px !important;
  }
}

/* v40: modular event creation flow over the live map. */
.create-screen {
  --event-glass-bg: rgba(247, 249, 246, .30);
  --event-glass-bg-strong: rgba(247, 249, 246, .40);
  --event-glass-border: rgba(255,255,255,.54);
  --event-glass-shadow: 0 18px 42px rgba(15,23,42,.13), inset 0 1px 1px rgba(255,255,255,.48);
  --event-ink: #101722;
  --event-muted: rgba(16,23,34,.66);
  --event-accent: #087cff;
}

.event-entry-popup {
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  bottom: auto !important;
  left: max(18px, env(safe-area-inset-left));
  z-index: 90;
  width: min(430px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px;
  text-align: center;
  transform: translateY(-44%) scale(.96) !important;
  background: rgba(255,255,255,.42) !important;
  border-color: rgba(255,255,255,.58) !important;
  border-radius: 30px !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.52) !important;
  -webkit-backdrop-filter: blur(34px) saturate(1.28) !important;
  backdrop-filter: blur(34px) saturate(1.28) !important;
}

.phone-shell.map-action-open .event-entry-popup {
  transform: translateY(-50%) scale(1) !important;
}

.phone-shell.map-action-open .leaflet-marker-pane,
.phone-shell.map-action-open .leaflet-tooltip-pane,
.phone-shell.map-action-open .leaflet-popup-pane,
.phone-shell.marker-action-open .leaflet-marker-pane,
.phone-shell.marker-action-open .leaflet-tooltip-pane,
.phone-shell.marker-action-open .leaflet-popup-pane,
.phone-shell:has(.create-screen.active) .leaflet-marker-pane,
.phone-shell:has(.create-screen.active) .leaflet-tooltip-pane,
.phone-shell:has(.create-screen.active) .leaflet-popup-pane {
  z-index: 10 !important;
}

.event-entry-popup small {
  justify-self: center;
}

.event-entry-popup strong {
  color: #101722;
  font-size: 1.35rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.event-entry-popup .entry-actions {
  grid-template-columns: 1fr;
  gap: 10px;
}

.event-entry-popup button:not(.sheet-handle) {
  min-height: 54px;
  font-size: .94rem;
}

.event-entry-popup button[data-add-map-marker] {
  color: #101722;
  background: rgba(255,255,255,.28);
}

.marker-action-sheet {
  z-index: 92;
  padding: 14px;
  background: rgba(255,255,255,.34) !important;
  border-color: rgba(255,255,255,.56) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.24) !important;
  backdrop-filter: blur(30px) saturate(1.24) !important;
}

.marker-action-sheet small {
  justify-self: center;
}

.marker-action-sheet strong {
  color: #101722;
  font-size: 1.12rem;
}

.marker-action-sheet .entry-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.marker-action-sheet button:not(.sheet-handle) {
  min-height: 50px;
  border-radius: 999px;
  font-weight: 900;
}

.marker-action-sheet button[data-delete-marker] {
  color: #b42318 !important;
  background: rgba(255,255,255,.36) !important;
  border-color: rgba(180,35,24,.28) !important;
}

.map-picker-pill {
  position: absolute;
  z-index: 98;
  top: calc(86px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: min(350px, calc(100% - 36px));
  min-height: 50px;
  padding: 8px 10px 8px 16px;
  color: #101722;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.52);
  font-size: .88rem;
  font-weight: 900;
  text-align: center;
  pointer-events: auto;
  transform: translate(-50%, -8px) scale(.98);
  opacity: 0;
  transition: opacity .18s ease-out, transform .22s cubic-bezier(.22,1,.36,1);
  -webkit-backdrop-filter: blur(28px) saturate(1.22);
  backdrop-filter: blur(28px) saturate(1.22);
}

.map-picker-pill:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.map-picker-pill button {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #101722;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.phone-shell.map-picker-open .live-map-sheet,
.phone-shell.map-picker-open .bottom-nav,
.phone-shell.map-picker-open .filter-panel,
.phone-shell.map-picker-open .event-discovery-bar,
.phone-shell.map-picker-open .viewport-discovery-control,
.phone-shell.map-picker-open .user-mini-profile-trigger,
.phone-shell.map-picker-open .user-mini-profile-panel,
.phone-shell.map-picker-open .notification-center-trigger,
.phone-shell.map-picker-open .notification-center-panel,
.phone-shell.map-picker-open .event-entry-popup,
.phone-shell.map-picker-open .marker-action-sheet {
  pointer-events: none !important;
  opacity: 0 !important;
}

.phone-shell.map-picker-open .live-topbar {
  opacity: .92;
}

/* v38: navigation cleanup, home location search, saved hub, profile wall. */
.home-location-search {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.home-location-pill {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  cursor: text;
}

.home-location-pill input {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: #142033;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
}

.home-location-pill input::placeholder {
  color: transparent;
}

.home-location-pill:focus-within input::placeholder,
.phone-shell.home-place-search-open .home-location-pill input::placeholder {
  color: rgba(15,23,42,.54);
}

.home-location-pill span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  overflow: hidden;
  color: #142033;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.home-location-pill input:focus + span,
.home-location-pill input:not(:placeholder-shown) + span {
  opacity: 0;
}

.home-place-suggestions {
  position: absolute;
  z-index: 72;
  top: calc(100% + 8px);
  left: 0;
  right: -56px;
  display: grid;
  gap: 6px;
  max-height: min(320px, calc(100svh - 190px));
  padding: 8px;
  overflow-y: auto;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.62);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.home-place-suggestions[hidden] {
  display: none;
}

.home-place-suggestions button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 9px 11px;
  color: #111827;
  text-align: left;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 14px;
}

.home-place-suggestions small {
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 760;
}

.event-discovery-bar {
  top: calc(62px + env(safe-area-inset-top));
}

.viewport-discovery-control {
  top: calc(106px + env(safe-area-inset-top));
}

.search-filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.search-filter-row::-webkit-scrollbar {
  display: none;
}

.search-filter-row select {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: none;
  padding: 0 26px 0 11px;
  color: #142033;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 820;
  appearance: none;
}

.search-result-group {
  display: grid;
  gap: 8px;
}

.person-result-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.person-result-main {
  display: grid !important;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0 !important;
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.person-avatar,
.friend-profile-avatar,
.invite-person-row .person-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 920;
  box-shadow: 0 10px 22px rgba(15,23,42,.16);
}

.person-result-main span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.person-result-main em {
  overflow: hidden;
  color: rgba(17,24,39,.58);
  font-size: .7rem;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-result-actions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.person-result-actions::-webkit-scrollbar {
  display: none;
}

.person-result-actions button,
.friend-profile-actions button,
.invite-friends-actions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #111827;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
}

.person-result-actions button:nth-child(2),
.friend-profile-actions button:nth-child(2),
.invite-friends-actions button {
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border-color: rgba(255,255,255,.36);
}

.person-result-actions button:disabled,
.friend-profile-actions button:disabled,
.invite-friends-actions button:disabled {
  opacity: .55;
}

.direct-message-screen.active {
  display: block;
  overflow: hidden;
}

.dm-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 18px 8px;
}

.dm-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.dm-person > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(15,23,42,.16);
  font-size: .78rem;
  font-weight: 920;
}

.dm-person div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dm-person strong,
.dm-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-person strong {
  font-size: .98rem;
  font-weight: 950;
}

.dm-person small {
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 800;
}

.dm-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  width: min(760px, calc(100% - 28px));
  height: calc(100dvh - 96px - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  color: #101722;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 24px 54px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.58);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.dm-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px 10px;
}

.dm-message {
  display: grid;
  gap: 5px;
  max-width: min(82%, 420px);
  align-self: flex-start;
  padding: 9px 11px;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 18px 18px 18px 8px;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.dm-message.me {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border-color: rgba(255,255,255,.26);
  border-radius: 18px 18px 8px 18px;
}

.dm-message div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.dm-message b {
  font-size: .72rem;
  font-weight: 900;
}

.dm-message time {
  opacity: .68;
  font-size: .66rem;
  font-weight: 760;
}

.dm-message p,
.dm-empty {
  margin: 0;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.35;
}

.dm-empty {
  padding: 14px;
  color: rgba(17,24,39,.62);
  text-align: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
}

.chat-quick-replies {
  display: flex;
  gap: 8px;
  margin: 0 -2px;
  padding: 2px 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.chat-quick-replies::-webkit-scrollbar {
  display: none;
}

.chat-quick-replies button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: rgba(15,23,42,.76);
  background: rgba(255,255,255,.28);
  font-size: .74rem;
  font-weight: 900;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.chat-quick-replies button:focus-visible {
  outline: 3px solid rgba(0,122,255,.30);
  outline-offset: 2px;
}

.dm-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
}

.dm-composer input {
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  color: #101722;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .86rem;
  font-weight: 800;
}

.dm-composer input::placeholder {
  color: rgba(17,24,39,.62);
}

.dm-composer button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(145deg, #263a63, #071126 78%);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 880;
}

.dm-composer button:disabled,
.dm-header [data-dm-invite]:disabled {
  opacity: .48;
}

.phone-shell:has(.direct-message-screen.active) .bottom-nav,
.phone-shell:has(.direct-message-screen.active) .event-discovery-bar,
.phone-shell:has(.direct-message-screen.active) .viewport-discovery-control,
.phone-shell:has(.direct-message-screen.active) .user-mini-profile-trigger,
.phone-shell:has(.direct-message-screen.active) .notification-center-trigger {
  opacity: 0;
  pointer-events: none;
}

.dm-composer:focus-within,
.dm-composer button:focus-visible,
.dm-header button:focus-visible {
  outline: 3px solid rgba(0,122,255,.35);
  outline-offset: 2px;
}

.friend-profile-panel,
.invite-friends-sheet,
.group-detail-panel,
.create-group-sheet {
  position: absolute;
  z-index: 860;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 14px;
  display: grid;
  gap: 12px;
  max-height: min(72vh, 640px);
  overflow: auto;
  padding: 14px;
  color: #101722;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.16));
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(15,23,42,.20), inset 0 1px 1px rgba(255,255,255,.58);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.friend-profile-panel[aria-hidden="true"],
.invite-friends-sheet[aria-hidden="true"],
.group-detail-panel[aria-hidden="true"],
.create-group-sheet[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
}

.group-detail-panel,
.create-group-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.52));
}

.friend-profile-cover {
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0,122,255,.42), rgba(15,23,42,.32)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=520&q=78") center / cover;
}

.friend-profile-cover[data-cover="coffee"] {
  background:
    linear-gradient(135deg, rgba(17,24,39,.28), rgba(0,122,255,.22)),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=520&q=78") center / cover;
}

.friend-profile-cover[data-cover="ride"] {
  background:
    linear-gradient(135deg, rgba(16,185,129,.28), rgba(15,23,42,.18)),
    url("https://images.unsplash.com/photo-1485965120184-e220f721d03e?auto=format&fit=crop&w=520&q=78") center / cover;
}

.friend-profile-cover[data-cover="gallery"] {
  background:
    linear-gradient(135deg, rgba(139,92,246,.28), rgba(15,23,42,.22)),
    url("https://images.unsplash.com/photo-1545987796-200677ee1011?auto=format&fit=crop&w=520&q=78") center / cover;
}

.friend-profile-head,
.invite-friends-head,
.group-detail-head,
.create-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.friend-profile-head div,
.invite-friends-head div,
.group-detail-head div,
.create-group-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.friend-profile-head small,
.friend-profile-head em,
.invite-friends-head small,
.group-detail-head small,
.create-group-head small,
.friend-profile-panel p,
.invite-friends-status {
  margin: 0;
  color: rgba(17,24,39,.60);
  font-size: .72rem;
  font-style: normal;
  font-weight: 760;
}

.friend-profile-head strong,
.invite-friends-head strong,
.group-detail-head strong,
.create-group-head strong {
  overflow: hidden;
  color: #101722;
  font-size: 1.04rem;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-profile-head button,
.invite-friends-head button,
.group-detail-head button,
.create-group-head button {
  min-width: 36px;
  min-height: 36px;
  color: #111827;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
}

.friend-interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.friend-interest-row span,
.invited-person-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: rgba(17,24,39,.72);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 820;
}

.friend-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.friend-profile-stats span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 18px;
}

.friend-profile-stats b {
  color: #101722;
  font-size: .9rem;
  font-weight: 920;
}

.friend-profile-stats small {
  color: rgba(17,24,39,.56);
  font-size: .66rem;
  font-weight: 780;
}

.friend-profile-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.friend-profile-actions::-webkit-scrollbar {
  display: none;
}

.groups-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.groups-panel-head strong {
  color: #101722;
  font-size: .92rem;
  font-weight: 920;
}

.groups-panel-head button,
.group-detail-actions button,
.create-group-actions button,
[data-save-group] {
  min-height: 36px;
  padding: 8px 12px;
  color: #101722;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 880;
}

[data-save-group] {
  width: 100%;
}

.profile-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-group-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 9px;
  text-align: left;
  color: #101722;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 20px;
}

.group-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--group-color, #007aff), rgba(15,23,42,.72));
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 15px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.38);
  font-size: 1.12rem;
}

.group-detail-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, #007aff, #111827);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  font-size: 1.18rem;
}

.group-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-card-main b,
.group-card-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card-main b {
  font-size: .84rem;
  font-weight: 920;
}

.group-card-main small,
.groups-empty {
  margin: 0;
  color: rgba(17,24,39,.58);
  font-size: .68rem;
  font-weight: 780;
}

.group-avatar-stack {
  display: flex;
  align-items: center;
  min-width: 0;
}

.group-avatar-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  color: #fff;
  background: linear-gradient(145deg, #111827, #007aff);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 900;
}

.group-avatar-stack span:first-child {
  margin-left: 0;
}

.group-detail-actions,
.create-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-detail-actions button[disabled] {
  opacity: .52;
}

.group-member-list,
.create-group-people {
  display: grid;
  gap: 8px;
}

.group-member-row,
.group-person-toggle {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  color: #101722;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
}

.group-member-row > span,
.group-person-toggle .person-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(145deg, #007aff, #111827);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}

.group-member-row div,
.group-person-toggle span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.group-member-row b,
.group-member-row small,
.group-person-toggle b,
.group-person-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-row b,
.group-person-toggle b {
  font-size: .82rem;
  font-weight: 900;
}

.group-member-row small,
.group-person-toggle small,
.group-person-toggle em,
.create-group-status {
  margin: 0;
  color: rgba(17,24,39,.58);
  font-size: .68rem;
  font-style: normal;
  font-weight: 780;
}

.group-person-toggle {
  width: 100%;
  text-align: left;
}

.group-person-toggle.selected {
  border-color: rgba(0,122,255,.56);
  box-shadow: 0 0 0 3px rgba(0,122,255,.12);
}

.create-group-fields {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.create-group-fields label {
  display: grid;
  gap: 5px;
  color: rgba(17,24,39,.62);
  font-size: .66rem;
  font-weight: 840;
}

.create-group-fields input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: #101722;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 16px;
  outline: 0;
  font-weight: 840;
}

.invite-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
}

.invite-tabs button {
  min-height: 34px;
  color: rgba(17,24,39,.64);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 880;
}

.invite-tabs button.selected {
  color: #101722;
  background: rgba(255,255,255,.44);
  box-shadow: 0 8px 20px rgba(15,23,42,.10);
}

.invite-group-row {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}

.invite-group-row .group-avatar-stack {
  justify-content: flex-end;
}

@media (max-width: 430px) {
  .profile-group-list {
    grid-template-columns: 1fr;
  }

  .invite-group-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .invite-group-row .group-avatar-stack {
    display: none;
  }
}

.invite-search-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
}

.invite-search-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.invite-search-field input {
  min-width: 0;
  height: 40px;
  color: #101722;
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
}

.invite-people-list {
  display: grid;
  gap: 8px;
}

.invite-person-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px;
  text-align: left;
  color: #101722;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 20px;
}

.invite-person-row.selected {
  border-color: rgba(0,122,255,.56);
  box-shadow: 0 0 0 3px rgba(0,122,255,.12);
}

.invite-person-row span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invite-person-row b,
.invite-person-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-person-row b {
  font-size: .84rem;
  font-weight: 900;
}

.invite-person-row small,
.invite-person-row em {
  color: rgba(17,24,39,.58);
  font-size: .68rem;
  font-style: normal;
  font-weight: 780;
}

.event-room-invited {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.event-room-invited > small {
  color: rgba(17,24,39,.58);
  font-size: .68rem;
  font-weight: 840;
  text-transform: uppercase;
}

.event-room-person.invited span {
  background: linear-gradient(145deg, #22c55e, #0f766e);
}

.friend-profile-open .event-discovery-bar,
.friend-profile-open .viewport-discovery-control,
.invite-friends-open .event-discovery-bar,
.invite-friends-open .viewport-discovery-control,
.group-detail-open .event-discovery-bar,
.group-detail-open .viewport-discovery-control,
.create-group-open .event-discovery-bar,
.create-group-open .viewport-discovery-control,
.friend-profile-open .user-mini-profile-trigger,
.friend-profile-open .notification-center-trigger,
.invite-friends-open .user-mini-profile-trigger,
.invite-friends-open .notification-center-trigger,
.group-detail-open .user-mini-profile-trigger,
.group-detail-open .notification-center-trigger,
.create-group-open .user-mini-profile-trigger,
.create-group-open .notification-center-trigger {
  opacity: 0;
  pointer-events: none;
}

.person-result-main:focus-visible,
.person-result-actions button:focus-visible,
.friend-profile-head button:focus-visible,
.friend-profile-actions button:focus-visible,
.invite-friends-head button:focus-visible,
.group-detail-head button:focus-visible,
.create-group-head button:focus-visible,
.profile-group-card:focus-visible,
.group-detail-actions button:focus-visible,
.create-group-actions button:focus-visible,
.group-person-toggle:focus-visible,
.create-group-fields input:focus-visible,
.invite-tabs button:focus-visible,
.invite-search-field:focus-within,
.invite-person-row:focus-visible,
.invite-friends-actions button:focus-visible {
  outline: 3px solid rgba(0,122,255,.35);
  outline-offset: 2px;
}

.event-room-screen.active {
  display: block;
  overflow: hidden;
}

.event-room-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 18px 8px;
}

.event-room-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.event-room-title > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 14px;
  background: rgba(255,255,255,.36);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.68), 0 8px 18px rgba(15,23,42,.10);
}

.event-room-title div {
  min-width: 0;
}

.event-room-title strong,
.event-room-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-room-title strong {
  font-size: .98rem;
  font-weight: 950;
}

.event-room-title small {
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 800;
}

.event-room-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  height: calc(100dvh - 82px - env(safe-area-inset-top));
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 20px 42px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.68);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  overflow: hidden;
}

.event-room-summary {
  display: flex;
  gap: 8px;
}

.event-room-summary span {
  display: grid;
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 16px;
  background: rgba(255,255,255,.28);
}

.event-room-summary b {
  font-size: .94rem;
  font-weight: 950;
}

.event-room-summary em {
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-style: normal;
  font-weight: 820;
}

.event-room-lifecycle {
  min-width: 0;
}

.event-room-hint,
.event-room-feedback {
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.58);
}

.event-room-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  color: rgba(17,24,39,.74);
  font-size: .76rem;
  font-weight: 860;
}

.event-room-hint.live {
  background: rgba(209,250,229,.46);
}

.event-room-feedback {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.event-room-feedback strong,
.event-room-feedback small {
  display: block;
}

.event-room-feedback strong {
  font-size: .88rem;
  font-weight: 950;
}

.event-room-feedback small {
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-weight: 800;
}

.event-feedback-rating {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.event-feedback-rating button,
.event-room-feedback-actions button {
  min-height: 34px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}

.event-feedback-rating button {
  width: 34px;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.58);
}

.event-feedback-rating button.selected {
  color: #fff;
  background: #0f172a;
  border-color: rgba(15,23,42,.86);
}

.event-room-feedback textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 10px 12px;
  color: #111827;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 16px;
  outline: 0;
  font: inherit;
  font-size: .8rem;
  font-weight: 780;
}

.event-room-feedback-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.event-room-feedback-actions button {
  flex: 1 1 130px;
  padding: 0 12px;
  color: #fff;
  background: #0f172a;
  border: 0;
}

.event-module-chip.feedback-chip {
  color: #713f12;
  background: rgba(254,243,199,.72);
}

.event-module-chip.recap-chip {
  color: #075985;
  background: rgba(224,242,254,.76);
  border-color: rgba(8,124,255,.34);
}

.event-room-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.event-room-tabs::-webkit-scrollbar {
  display: none;
}

.event-room-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #142033;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.event-room-tabs button.selected {
  color: #fff;
  background: #0f172a;
  border-color: rgba(15,23,42,.86);
}

.event-room-panel {
  min-height: 0;
  overflow: auto;
  padding: 2px 2px 4px;
}

.event-room-panel[hidden] {
  display: none;
}

.event-room-panel.chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.event-room-chat-list {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 2px;
}

.event-room-message {
  display: grid;
  gap: 4px;
  max-width: 86%;
  padding: 9px 10px;
  justify-self: start;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 16px;
  background: rgba(255,255,255,.34);
}

.event-room-message.me {
  justify-self: end;
  color: #fff;
  background: #0f172a;
  border-color: rgba(15,23,42,.86);
}

.event-room-message.system {
  max-width: 100%;
  justify-self: center;
  color: rgba(17,24,39,.68);
  background: rgba(255,255,255,.24);
  font-size: .76rem;
  font-weight: 820;
}

.event-room-message div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.event-room-message b,
.event-room-message time,
.event-room-message p {
  margin: 0;
}

.event-room-message b {
  font-size: .75rem;
  font-weight: 920;
}

.event-room-message time {
  opacity: .72;
  font-size: .68rem;
  font-weight: 760;
}

.event-room-message p {
  font-size: .86rem;
  font-weight: 780;
  line-height: 1.25;
}

.event-room-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.38);
}

.event-room-composer input,
.event-room-composer button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 880;
}

.event-room-composer input {
  min-width: 0;
  padding: 0 14px;
  color: #111827;
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(255,255,255,.62);
  outline: 0;
}

.event-room-composer button,
.event-room-route-head button,
.event-room-people-head button,
.event-room-photo-actions button,
.event-room-quest button {
  color: #fff;
  background: #0f172a;
  border: 0;
}

.event-room-composer button:disabled,
.event-room-quest button:disabled {
  color: rgba(17,24,39,.50);
  background: rgba(255,255,255,.38);
}

.event-room-quest,
.event-room-person,
.event-room-photo-card,
.event-room-route-head,
.event-room-people-head,
.event-room-photo-actions {
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  background: rgba(255,255,255,.30);
}

.event-room-quest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  margin-bottom: 8px;
}

.event-room-quest.completed {
  background: rgba(22,139,255,.14);
}

.event-room-quest small,
.event-room-quest em {
  display: block;
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-style: normal;
  font-weight: 820;
}

.event-room-quest b {
  display: block;
  margin: 2px 0;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.16;
}

.event-room-quest button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.event-room-route-head,
.event-room-people-head,
.event-room-photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 8px;
}

.event-room-photo-actions div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-room-route-head button,
.event-room-people-head button,
.event-room-photo-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}

.event-room-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-room-panel li,
.event-room-person {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.event-room-panel li span,
.event-room-person span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #168bff;
  font-size: .75rem;
  font-weight: 950;
}

.event-room-person {
  margin-bottom: 8px;
}

.event-room-person.muted {
  opacity: .72;
}

.event-room-person div {
  min-width: 0;
}

.event-room-person b,
.event-room-person small,
.event-room-panel li b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-room-person b,
.event-room-panel li b {
  font-size: .86rem;
  font-weight: 920;
}

.event-room-person small {
  color: rgba(17,24,39,.62);
  font-size: .72rem;
  font-weight: 800;
}

.event-room-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-room-photo-card {
  display: grid;
  min-height: 116px;
  align-content: end;
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(22,139,255,.18), rgba(255,255,255,.30));
}

.event-room-photo-card span {
  font-size: 1.4rem;
}

.event-room-photo-card b,
.event-room-photo-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-room-photo-card b {
  font-size: .82rem;
  font-weight: 900;
}

.event-room-photo-card small {
  color: rgba(17,24,39,.62);
  font-size: .68rem;
  font-weight: 800;
}

.event-room-empty {
  margin: 0;
  padding: 16px 12px;
  color: rgba(17,24,39,.66);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: rgba(255,255,255,.22);
  font-size: .84rem;
  font-weight: 840;
  text-align: center;
}

.event-room-chat-list .activation-empty,
.event-room-quests .activation-empty,
.event-room-route .activation-empty,
.event-room-photo-grid .activation-empty,
.dm-list .activation-empty,
.profile-post-list .activation-empty,
.saved-list .activation-empty {
  width: 100%;
  box-sizing: border-box;
}

.event-room-photo-grid .activation-empty {
  grid-column: 1 / -1;
}

.event-recap-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.event-recap-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 18px 8px;
}

.event-recap-header div {
  min-width: 0;
  text-align: center;
}

.event-recap-header small,
.event-recap-header strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-recap-header small {
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-weight: 820;
}

.event-recap-header strong {
  color: #111827;
  font-size: .98rem;
  font-weight: 950;
}

.event-recap-card {
  position: relative;
  z-index: 3;
  display: grid;
  align-self: start;
  gap: 10px;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 84px - env(safe-area-inset-top));
  margin: 0 auto;
  padding: 12px;
  overflow: auto;
  color: #111827;
  background: linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,.24));
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 20px 42px rgba(15,23,42,.14), inset 0 1px 1px rgba(255,255,255,.68);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.event-recap-hero,
.event-recap-summary,
.event-recap-feedback,
.event-recap-photos {
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.58);
}

.event-recap-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.event-recap-hero > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 16px;
  background: rgba(255,255,255,.40);
  font-size: 1.45rem;
}

.event-recap-hero div {
  min-width: 0;
}

.event-recap-hero small,
.event-recap-hero h1,
.event-recap-hero p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-recap-hero small,
.event-recap-summary small,
.event-recap-photos small {
  color: rgba(17,24,39,.62);
  font-size: .7rem;
  font-weight: 820;
}

.event-recap-hero h1 {
  font-size: 1rem;
  font-weight: 950;
}

.event-recap-hero p {
  color: rgba(17,24,39,.66);
  font-size: .74rem;
  font-weight: 800;
}

.event-recap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.event-recap-stats span {
  display: grid;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 16px;
  background: rgba(255,255,255,.28);
}

.event-recap-stats b {
  font-size: .98rem;
  font-weight: 950;
}

.event-recap-stats em {
  color: rgba(17,24,39,.62);
  font-size: .68rem;
  font-style: normal;
  font-weight: 820;
}

.event-recap-summary,
.event-recap-feedback,
.event-recap-photos {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.event-recap-summary p,
.event-recap-feedback p,
.event-recap-status {
  margin: 0;
  color: rgba(17,24,39,.78);
  font-size: .82rem;
  font-weight: 780;
  line-height: 1.28;
}

.event-recap-feedback strong {
  font-size: .82rem;
  font-weight: 940;
}

.event-recap-photos[hidden],
.event-recap-feedback[hidden] {
  display: none;
}

.event-recap-photos div {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.event-recap-photos div::-webkit-scrollbar {
  display: none;
}

.event-recap-photos button {
  display: grid;
  flex: 0 0 116px;
  min-height: 54px;
  gap: 3px;
  align-content: center;
  padding: 8px;
  color: #142033;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 840;
}

.event-recap-photos button.selected {
  color: #fff;
  background: #0f172a;
  border-color: rgba(15,23,42,.86);
}

.event-recap-photos button b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-recap-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.event-recap-actions button {
  flex: 1 1 150px;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: #0f172a;
  border: 0;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.event-recap-actions button:nth-child(2) {
  background: #168bff;
}

.event-recap-status {
  min-height: 18px;
  color: rgba(17,24,39,.62);
  font-size: .72rem;
  font-weight: 800;
}

.event-card-room {
  flex: 1 1 58px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: #0f172a;
  border: 0;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 920;
}

.event-room-tabs button:focus-visible,
.event-room-composer input:focus-visible,
.event-room-composer button:focus-visible,
.event-room-route-head button:focus-visible,
.event-room-people-head button:focus-visible,
.event-room-photo-actions button:focus-visible,
.event-room-quest button:focus-visible,
.event-feedback-rating button:focus-visible,
.event-room-feedback textarea:focus-visible,
.event-room-feedback-actions button:focus-visible,
.event-recap-header button:focus-visible,
.event-recap-actions button:focus-visible,
.event-recap-photos button:focus-visible,
.event-card-room:focus-visible,
.profile-post-event-chip:focus-visible,
.post-context-chip button:focus-visible,
.post-photo-options button:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.search-result-group h2 {
  margin: 8px 4px 0;
  color: rgba(17,24,39,.70);
  font-size: .78rem;
  font-weight: 920;
}

.event-card-save {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #142033;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 50%;
  font-size: .92rem;
  font-weight: 950;
}

.event-card-save.saved,
.event-actions button[data-save-event].saved {
  color: #fff;
  background: #111827;
}

.saved-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
}

.market-screen.active {
  display: grid;
  grid-template-rows: auto 1fr;
}

.saved-hub {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 12px;
  width: calc(100% - 28px);
  max-height: calc(100svh - 116px);
  margin: 14px auto calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}

.saved-hub::-webkit-scrollbar {
  display: none;
}

.market-hub {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 10px;
  width: calc(100% - 28px);
  max-height: calc(100svh - 116px);
  margin: 14px auto calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}

.market-hub::-webkit-scrollbar {
  display: none;
}

.market-hero,
.market-search,
.market-create-entry,
.market-card {
  color: #111827;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 10px 20px rgba(15,23,42,.08);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.market-hero small {
  color: rgba(15,23,42,.66);
  font-size: .72rem;
  font-weight: 860;
}

.market-hero h1 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.14;
  text-wrap: balance;
}

.market-hero > span {
  display: grid;
  min-width: 74px;
  min-height: 38px;
  place-items: center;
  color: #fff;
  background: #111827;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.market-create-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  color: #0f172a;
  text-align: left;
}

.market-create-entry span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(37,99,235,.24);
}

.market-create-entry b,
.market-create-entry small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-create-entry b {
  font-size: .96rem;
  font-weight: 940;
}

.market-create-entry small {
  color: rgba(15,23,42,.62);
  font-size: .74rem;
  font-weight: 760;
}

.market-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
}

.market-search svg {
  width: 20px;
  height: 20px;
}

.market-search input {
  width: 100%;
  min-width: 0;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 780;
}

.market-search input::placeholder {
  color: rgba(15,23,42,.62);
}

.market-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 1px 2px;
  scrollbar-width: none;
}

.market-filter-row::-webkit-scrollbar {
  display: none;
}

.market-filter-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: rgba(15,23,42,.78);
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 880;
}

.market-filter-row button.selected {
  color: #fff;
  background: #111827;
  border-color: rgba(17,24,39,.86);
}

.market-filter-row b {
  margin-left: 5px;
  font-size: .68rem;
  opacity: .75;
}

.market-list {
  display: grid;
  gap: 10px;
}

.market-card {
  overflow: hidden;
}

.market-card.featured {
  border-color: rgba(20, 184, 166, .42);
}

.market-card.featured .market-photo em {
  color: #064e3b;
  background: rgba(204, 251, 241, .9);
}

.market-card-main {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 9px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.market-photo {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #168bff);
  background-position: center;
  background-size: cover;
  border-radius: 14px;
}

.market-photo em {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  color: #0f172a;
  background: rgba(255,255,255,.82);
  border-radius: 999px;
  font-size: .64rem;
  font-style: normal;
  font-weight: 900;
}

.market-card-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
}

.market-card-body small,
.market-card-body span,
.market-card-body strong em {
  color: rgba(15,23,42,.66);
  font-size: .72rem;
  font-weight: 760;
}

.market-card-body b {
  overflow: hidden;
  color: #0f172a;
  font-size: .94rem;
  font-weight: 920;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card-body span {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-card.expanded .market-card-body span {
  display: block;
  overflow: visible;
}

.market-card-body strong {
  display: grid;
  gap: 2px;
  color: #0f766e;
  font-size: .9rem;
  font-weight: 940;
}

.market-card-body strong em {
  font-style: normal;
}

.market-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0 9px 9px;
}

.market-card-actions button {
  min-height: 38px;
  padding: 0 8px;
  color: #0f172a;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 860;
}

.market-card-actions button.saved {
  color: #fff;
  background: #111827;
}

.market-detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 86;
  display: grid;
  gap: 0;
  width: min(520px, calc(100vw - 18px));
  max-height: min(760px, calc(100svh - 18px));
  overflow: auto;
  color: #0f172a;
  background: rgba(247, 252, 246, .94);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, .18), inset 0 1px 1px rgba(255, 255, 255, .68);
  transform: translate(-50%, 112%);
  transition: transform .22s ease, opacity .18s ease;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.market-detail-sheet[aria-hidden="false"] {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.market-detail-close {
  position: sticky;
  top: 10px;
  z-index: 3;
  justify-self: end;
  width: 42px;
  height: 42px;
  margin: 10px 10px -52px 0;
  color: #0f172a;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 820;
}

.market-detail-cover {
  position: relative;
  min-height: 238px;
  background: linear-gradient(135deg, #0f766e, #168bff);
  background-position: center;
  background-size: cover;
  border-radius: 22px 22px 16px 16px;
}

.market-detail-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, .84);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 920;
}

.market-detail-content {
  display: grid;
  gap: 12px;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}

.market-detail-title {
  display: grid;
  gap: 6px;
}

.market-detail-title small,
.market-detail-title p,
.market-detail-seller small,
.market-detail-stats small {
  color: rgba(15, 23, 42, .64);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.market-detail-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.08;
  text-wrap: balance;
}

.market-detail-title p {
  margin: 0;
  font-size: .92rem;
}

.market-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-detail-stats span,
.market-detail-seller {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 16px;
}

.market-detail-stats b {
  display: block;
  overflow: hidden;
  color: #0f766e;
  font-size: 1rem;
  font-weight: 940;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-detail-seller {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.market-detail-seller > span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #168bff);
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 940;
}

.market-detail-seller b {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-detail-actions button,
.market-detail-report {
  min-height: 44px;
  color: #0f172a;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 880;
}

.market-detail-actions button:nth-child(2) {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.market-detail-actions button.saved {
  color: #fff;
  background: #0f766e;
  border-color: rgba(15, 118, 110, .88);
}

.market-detail-report {
  width: 100%;
  color: rgba(127, 29, 29, .9);
  background: rgba(254, 226, 226, .42);
}

.market-detail-close:focus-visible,
.market-detail-actions button:focus-visible,
.market-detail-report:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .32);
  outline-offset: 2px;
}

.market-create-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 88;
  width: min(520px, calc(100vw - 18px));
  max-height: min(780px, calc(100svh - 14px));
  overflow-y: auto;
  color: #0f172a;
  background: rgba(247, 252, 246, .95);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 48px rgba(15, 23, 42, .20), inset 0 1px 1px rgba(255, 255, 255, .72);
  transform: translate(-50%, 112%);
  transition: transform .22s ease, opacity .18s ease;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.market-create-sheet[aria-hidden="false"] {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.market-create-form {
  display: grid;
  gap: 11px;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}

.market-create-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.market-create-head small,
.market-create-form label span {
  color: rgba(15, 23, 42, .62);
  font-size: .72rem;
  font-weight: 880;
  letter-spacing: .04em;
}

.market-create-head strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 950;
}

.market-create-head button {
  width: 42px;
  height: 42px;
  color: #0f172a;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  font-size: 1.25rem;
}

.market-create-form label {
  display: grid;
  gap: 6px;
}

.market-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-create-form input,
.market-create-form select,
.market-create-form textarea {
  width: 100%;
  min-width: 0;
  color: #0f172a;
  background: rgba(255, 255, 255, .60);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 16px;
  outline: 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 780;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.74);
}

.market-create-form input,
.market-create-form select {
  min-height: 46px;
  padding: 0 12px;
}

.market-create-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.35;
}

.market-create-form input::placeholder,
.market-create-form textarea::placeholder {
  color: rgba(15,23,42,.46);
}

.market-create-preview {
  display: grid;
  min-height: 104px;
  align-content: end;
  gap: 4px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  background-position: center;
  background-size: cover;
  border-radius: 18px;
  box-shadow: inset 0 -70px 80px rgba(15,23,42,.32);
}

.market-create-preview span {
  width: max-content;
  padding: 5px 8px;
  color: #0f172a;
  background: rgba(255,255,255,.84);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.market-create-preview b {
  font-size: 1.04rem;
  line-height: 1.1;
  font-weight: 950;
}

.market-create-preview small {
  font-size: .78rem;
  font-weight: 820;
  opacity: .9;
}

.market-create-form [data-market-create-status] {
  min-height: 18px;
  margin: 0;
  color: rgba(15,23,42,.62);
  font-size: .76rem;
  font-weight: 820;
}

.market-create-actions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 9px;
}

.market-create-actions button {
  min-height: 46px;
  color: #0f172a;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 920;
}

.market-create-actions button[type="submit"] {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  border-color: transparent;
}

@media (min-width: 760px) {
  .market-create-sheet {
    bottom: 26px;
    border-radius: 24px;
  }
}

@media (min-width: 760px) {
  .market-detail-sheet {
    bottom: 26px;
    border-radius: 22px;
  }

  .market-detail-cover {
    border-radius: 22px 22px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-detail-sheet {
    transition: opacity .01s linear;
  }
}

.phone-shell.market-detail-open .bottom-nav,
.phone-shell.market-create-open .bottom-nav {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(110%) !important;
}

.saved-hero,
.saved-section,
.profile-post-card,
.post-composer-sheet {
  color: #111827;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 22px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 14px 34px rgba(15,23,42,.10);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.saved-hero {
  padding: 16px;
}

.saved-hero small,
.post-composer-head small {
  color: rgba(17,24,39,.62);
  font-weight: 820;
}

.saved-hero h1 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  line-height: 1.12;
}

.saved-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.saved-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.saved-section-head button,
.saved-empty button {
  min-height: 32px;
  padding: 0 11px;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 860;
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  color: #111827;
  text-align: left;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
}

.saved-row.static {
  pointer-events: none;
}

.saved-row span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(255,255,255,.46);
  border-radius: 50%;
}

.saved-row b,
.saved-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-row small,
.saved-row em,
.saved-empty {
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 760;
}

.profile-wall {
  display: grid;
  gap: 10px;
}

.share-moment-action {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(180deg, #168bff, #0871e8);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.profile-post-list {
  display: grid;
  gap: 10px;
}

.profile-post-card {
  overflow: hidden;
  text-align: left;
}

.profile-post-image {
  height: 138px;
  background: linear-gradient(135deg, #9fc5df, #f2d0a4);
}

.profile-post-image.coffee {
  background: linear-gradient(135deg, #2f4159, #cda77c);
}

.profile-post-image.gallery {
  background: linear-gradient(135deg, #263349, #8db8d8);
}

.profile-post-image.room-photo {
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.55), transparent 16%),
    linear-gradient(135deg, #0f172a, #168bff 54%, #dbeafe);
}

.profile-post-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.profile-post-body p {
  margin: 0;
  color: #111827;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.28;
}

.profile-post-kind-chip {
  justify-self: start;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  color: #075985;
  background: rgba(224,242,254,.76);
  border: 1px solid rgba(8,124,255,.28);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.profile-post-meta,
.profile-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(17,24,39,.64);
  font-size: .72rem;
  font-weight: 780;
}

.profile-post-body button,
.profile-post-actions button {
  min-height: 30px;
  padding: 0 10px;
  color: #142033;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 820;
}

.profile-post-event-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-post-event-chip em {
  color: rgba(17,24,39,.62);
  font-size: .66rem;
  font-style: normal;
  font-weight: 820;
}

.profile-post-actions button.selected,
.post-photo-options button.selected {
  color: #fff;
  background: #111827;
  border-color: rgba(255,255,255,.72);
}

.post-composer-sheet {
  position: absolute;
  z-index: 76;
  right: 14px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.post-composer-sheet[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.post-composer-head {
  text-align: left;
}

.post-composer-sheet label {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: .76rem;
  font-weight: 860;
}

.post-composer-sheet textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  color: #111827;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 16px;
  padding: 10px;
  font: inherit;
  outline: 0;
}

.post-composer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.post-composer-grid button {
  min-height: 36px;
  color: #142033;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 820;
}

.post-composer-context,
.post-photo-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.post-composer-context[hidden],
.post-photo-options[hidden] {
  display: none;
}

.post-context-chip {
  display: inline-flex;
  min-height: 30px;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: #142033;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 840;
}

.post-context-chip.event {
  background: rgba(219,234,254,.72);
}

.post-context-chip button {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: rgba(255,255,255,.46);
  border: 0;
  border-radius: 50%;
}

.post-photo-options button {
  display: inline-flex;
  min-height: 34px;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #142033;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 840;
}

.post-photo-options b {
  overflow: hidden;
  max-width: 128px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-composer-meta {
  margin: 0;
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 760;
}

.settings-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
}

.settings-section strong {
  color: #111827;
  font-size: .82rem;
}

.settings-card label:has(select) {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
}

.settings-card select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #111827;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 14px;
  outline: 0;
  font: inherit;
  font-weight: 850;
}

.settings-hint {
  display: block;
  margin: -2px 2px 2px;
  color: rgba(17,24,39,.62);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.35;
}

.danger-zone button {
  min-height: 38px;
  color: #7f1d1d;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(127,29,29,.18);
  border-radius: 12px;
  font-weight: 860;
}

.nav-create-menu {
  position: absolute;
  z-index: 74;
  right: 18px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 18px;
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(15,23,42,.16), inset 0 1px 1px rgba(255,255,255,.66);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.nav-create-menu[aria-hidden="false"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.nav-create-menu button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  min-height: 58px;
  padding: 9px 10px;
  color: #111827;
  text-align: left;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 16px;
}

.nav-create-menu-head {
  display: grid;
  gap: 2px;
  padding: 4px 4px 2px;
  color: #111827;
}

.nav-create-menu-head small {
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 820;
}

.nav-create-menu-head strong {
  font-size: 1rem;
  line-height: 1.1;
}

.nav-create-menu button span {
  grid-row: 1 / 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: #111827;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 950;
}

.nav-create-menu button b,
.nav-create-menu button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-create-menu button b {
  align-self: end;
  font-size: .84rem;
}

.nav-create-menu button small {
  color: rgba(17,24,39,.66);
  font-size: .72rem;
  font-weight: 760;
}

.nav-create-menu button:focus-visible {
  outline: 3px solid rgba(22,139,255,.28);
  outline-offset: 2px;
}

.phone-shell.event-selected .event-discovery-bar,
.phone-shell.share-panel-open .event-discovery-bar,
.phone-shell.user-profile-open .event-discovery-bar,
.phone-shell.notification-center-open .event-discovery-bar,
.phone-shell.post-composer-open .event-discovery-bar,
.phone-shell.create-actions-open .event-discovery-bar,
.phone-shell:has(.search-screen.active) .event-discovery-bar,
.phone-shell:has(.profile-screen.active) .event-discovery-bar,
.phone-shell:has(.notifications-screen.active) .event-discovery-bar,
.phone-shell:has(.settings-screen.active) .event-discovery-bar,
.phone-shell:has(.event-recap-screen.active) .event-discovery-bar,
.phone-shell.event-selected .viewport-discovery-control,
.phone-shell.share-panel-open .viewport-discovery-control,
.phone-shell.user-profile-open .viewport-discovery-control,
.phone-shell.notification-center-open .viewport-discovery-control,
.phone-shell.post-composer-open .viewport-discovery-control,
.phone-shell.create-actions-open .viewport-discovery-control,
.phone-shell:has(.search-screen.active) .viewport-discovery-control,
.phone-shell:has(.profile-screen.active) .viewport-discovery-control,
.phone-shell:has(.notifications-screen.active) .viewport-discovery-control,
.phone-shell:has(.settings-screen.active) .viewport-discovery-control,
.phone-shell:has(.event-recap-screen.active) .viewport-discovery-control {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 420px) {
  .home-place-suggestions {
    right: -104px;
  }

  .post-composer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-composer-sheet,
  .nav-create-menu {
    transition: none;
  }
}

.mecly-draft-pin {
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: draftPinIn .22s cubic-bezier(.22,1,.36,1);
}

.mecly-route-line {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(8,124,255,.20));
  animation: routeLineIn .26s cubic-bezier(.22,1,.36,1);
}

.mecly-route-line.saved {
  stroke-dasharray: 2 8;
}

.mecly-route-line.draft {
  stroke-dasharray: 8 8;
  filter: drop-shadow(0 5px 12px rgba(16,185,129,.22));
}

.mecly-route-line.highlight {
  stroke-width: 5px;
  opacity: .94 !important;
  filter: drop-shadow(0 0 10px rgba(8,124,255,.34));
}

.mecly-route-stop {
  display: grid;
  place-items: center;
  animation: routeStopIn .22s cubic-bezier(.22,1,.36,1);
}

.mecly-route-stop span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(29,41,64,.96), rgba(8,20,45,.98));
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 9px 18px rgba(15,23,42,.18);
  font-size: .58rem;
  font-weight: 950;
}

.mecly-route-stop.draft span {
  background: linear-gradient(145deg, rgba(16,185,129,.95), rgba(15,118,110,.96));
}

.mecly-route-stop.highlight span,
.mecly-route-stop:hover span {
  transform: scale(1.12);
  box-shadow: 0 12px 24px rgba(8,124,255,.26), 0 0 0 5px rgba(255,255,255,.28);
}

.mecly-draft-pin span {
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(15,23,42,.18);
  font-weight: 950;
}

.location-draft-pin span {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, #087cff, #1b4fd8);
  font-size: 1rem;
}

.route-draft-pin span {
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #16a34a, #0f766e);
  font-size: .62rem;
}

@keyframes draftPinIn {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes routeStopIn {
  from { opacity: 0; transform: scale(.74); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes routeLineIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.create-event-card.event-create-flow {
  gap: 16px;
  max-height: calc(100svh - 236px);
  overflow-y: auto;
  padding: 18px 18px 26px;
  color: var(--event-ink);
  background: var(--event-glass-bg) !important;
  border-color: var(--event-glass-border) !important;
  box-shadow: var(--event-glass-shadow) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.22) !important;
  backdrop-filter: blur(28px) saturate(1.22) !important;
  scrollbar-width: none;
}

.create-event-card.event-create-flow::-webkit-scrollbar {
  display: none;
}

.create-screen.active .create-event-card.event-create-flow {
  animation: eventFlowIn .24s cubic-bezier(.22,1,.36,1);
}

@keyframes eventFlowIn {
  from { opacity: .72; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.create-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.create-progress span {
  width: 22px;
  height: 4px;
  background: rgba(17,24,39,.16);
  border-radius: 999px;
  transition: width .22s ease-out, background .22s ease-out;
}

.create-progress span.active {
  width: 38px;
  background: rgba(8,124,255,.82);
}

.event-step {
  display: none;
  gap: 13px;
}

.event-step.active {
  display: grid;
  animation: eventStepIn .24s cubic-bezier(.22,1,.36,1);
}

@keyframes eventStepIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.flow-kicker {
  margin: 0;
  color: var(--event-muted);
  font-size: .76rem;
  font-weight: 850;
}

.event-create-flow .event-step h1 {
  margin: 0 0 6px;
  color: var(--event-ink);
  font-size: 1.48rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.event-template-strip {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-template-strip[hidden] {
  display: none !important;
}

.template-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.template-strip-head strong {
  color: var(--event-ink);
  font-size: .9rem;
  font-weight: 900;
}

.template-strip-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--event-muted);
  font-size: .7rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-template-list {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 1px 4px 5px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.event-template-list::-webkit-scrollbar {
  display: none;
}

.event-template-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon meta";
  gap: 2px 8px;
  align-items: center;
  flex: 0 0 156px;
  min-height: 54px;
  padding: 9px 10px;
  color: var(--event-ink);
  background: rgba(255,255,255,.18);
  border: 1px solid var(--event-glass-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.38);
  scroll-snap-align: start;
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  backdrop-filter: blur(18px) saturate(1.14);
  transition: transform .18s cubic-bezier(.22,1,.36,1), background .18s ease, border-color .18s ease;
}

.event-template-chip span {
  grid-area: icon;
  font-size: 1.05rem;
}

.event-template-chip b,
.event-template-chip small {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-template-chip b {
  grid-area: title;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.1;
}

.event-template-chip small {
  grid-area: meta;
  color: var(--event-muted);
  font-size: .68rem;
  font-weight: 760;
}

.event-template-chip.selected,
.event-template-chip.pressed {
  transform: scale(1.02);
  background: var(--event-glass-bg-strong);
  border-color: rgba(8,124,255,.68);
}

.flow-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flow-step-head button {
  min-height: 36px;
  padding: 0 12px;
  color: #007aff;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.event-type-card {
  display: grid;
  min-height: 74px;
  gap: 7px;
  place-items: center;
  padding: 10px 8px;
  color: var(--event-ink);
  background: rgba(255,255,255,.18);
  border: 1px solid var(--event-glass-border);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.16);
  backdrop-filter: blur(20px) saturate(1.16);
  transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .18s ease, border-color .18s ease, background .18s ease;
}

.event-type-card span {
  font-size: 1.22rem;
}

.event-type-card b {
  max-width: 100%;
  font-size: .78rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.event-type-grid:has(.event-type-card.selected) .event-type-card:not(.selected) {
  opacity: .66;
}

.event-type-card.selected,
.event-type-card.pressed {
  transform: scale(1.05);
  background: var(--event-glass-bg-strong);
  border-color: rgba(8,124,255,.76);
}

.event-type-card:hover,
.people-stepper button:hover,
.flow-step-head button:hover,
.map-place-button:hover,
.secondary-action:hover,
.module-head button:hover,
.quest-footer button:hover {
  background: rgba(255,255,255,.34);
}

.photo-picker,
.module-row,
.quest-card {
  background: rgba(255,255,255,.18);
  border: 1px solid var(--event-glass-border);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.44);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
}

.photo-picker {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.photo-picker > button {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: var(--event-accent);
  background: rgba(255,255,255,.30);
  border: 1px dashed rgba(0,122,255,.56);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.photo-picker b,
.module-head strong,
.module-row b {
  color: var(--event-ink);
}

.photo-picker small,
.module-head small,
.module-row small {
  display: block;
  color: var(--event-muted);
  font-size: .74rem;
  font-weight: 750;
}

.photo-picker div button,
.map-place-button,
.secondary-action {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px;
  color: #101722;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px;
  font-weight: 850;
}

.stepper-group {
  display: grid;
  gap: 8px;
}

.stepper-group > span {
  color: var(--event-muted);
  font-size: .78rem;
  font-weight: 850;
}

.people-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-stepper button {
  min-width: 48px;
  min-height: 44px;
  color: var(--event-ink);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px;
  font-weight: 850;
}

.people-stepper button.selected {
  color: #fff;
  background: var(--event-ink);
  border-color: transparent;
}

.flow-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.flow-actions .primary-action,
.flow-actions .secondary-action {
  width: 100%;
  min-height: 54px;
}

.flow-actions .primary-action {
  color: #fff;
  background: var(--event-ink);
  border: 0;
  box-shadow: 0 10px 22px rgba(16,23,34,.18);
}

.flow-actions .secondary-action {
  color: var(--event-ink);
  background: rgba(255,255,255,.20);
  border: 1px solid var(--event-glass-border);
  box-shadow: none;
}

.module-list,
.quest-list {
  display: grid;
  gap: 10px;
}

.module-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
}

.module-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  min-width: 0;
}

.module-section-head::after {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(15, 23, 42, .66);
  content: "›";
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .18s ease-out;
}

.module-section.collapsed .module-section-head::after {
  transform: rotate(0deg);
}

.module-section-head:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .30);
  outline-offset: 4px;
}

.module-section-head strong,
.module-section-head small,
.module-section-status {
  display: block;
  min-width: 0;
}

.module-section-head strong {
  overflow: hidden;
  color: var(--event-ink);
  font-size: .9rem;
  font-weight: 920;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-section-head small {
  margin-top: 2px;
  color: var(--event-muted);
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.25;
}

.module-section-status {
  margin: 7px 0 0;
  overflow: hidden;
  color: rgba(7, 89, 133, .94);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-section-head > span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 9px;
  color: #075985;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 920;
}

.module-section-body {
  display: grid;
  gap: 8px;
}

.module-section-body[hidden] {
  display: none !important;
}

.module-inline-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
}

.module-inline-field {
  display: grid;
  gap: 6px;
}

.module-inline-field span {
  color: var(--event-muted);
  font-size: .7rem;
  font-weight: 860;
}

.module-inline-field input,
.module-inline-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--event-ink);
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 14px;
  font-weight: 820;
  outline: 0;
}

.module-inline-field input:focus,
.module-inline-field select:focus {
  border-color: rgba(0,122,255,.70);
  box-shadow: 0 0 0 3px rgba(0,122,255,.16);
}

.module-inline-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.module-inline-toggles button {
  min-height: 42px;
  padding: 0 10px;
  color: var(--event-ink);
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 14px;
  font-size: .74rem;
  font-weight: 900;
}

.module-inline-toggles button.selected {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #168bff);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(8, 124, 255, .18);
}

.quest-quick-panel {
  gap: 10px;
}

.quest-quick-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.quest-quick-head b,
.quest-quick-item b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--event-ink);
  font-size: .82rem;
  font-weight: 920;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-quick-head small,
.quest-quick-item small {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--event-muted);
  font-size: .7rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-quick-head > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #075985;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 950;
}

.quest-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quest-quick-actions .module-inline-action {
  grid-column: auto;
  margin: 0;
}

.quest-quick-list {
  display: grid;
  gap: 7px;
}

.quest-quick-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
}

.quest-quick-item > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--event-ink);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 920;
}

.ai-suggestions {
  display: grid;
  gap: 9px;
  padding: 11px;
  background: rgba(255,255,255,.16);
  border: 1px solid var(--event-glass-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  backdrop-filter: blur(18px) saturate(1.14);
}

.ai-suggestions-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.ai-suggestions-head small,
.ai-suggestions-head span {
  display: block;
  color: var(--event-muted);
  font-size: .7rem;
  font-weight: 780;
}

.ai-suggestions-head strong {
  display: block;
  color: var(--event-ink);
  font-size: .9rem;
  line-height: 1.15;
}

.ai-suggestion-list {
  display: grid;
  gap: 7px;
}

.ai-suggestion-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 14px;
}

.ai-suggestion-row span {
  padding: 5px 8px;
  color: #075985;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(8,124,255,.24);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.ai-suggestion-row p {
  min-width: 0;
  margin: 0;
  color: var(--event-ink);
  font-size: .76rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ai-suggestion-row button {
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: var(--event-ink);
  border: 0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 880;
  white-space: nowrap;
}

.ai-suggestion-row.applied {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.30);
}

.ai-suggestion-row.applied button {
  color: rgba(16,23,34,.68);
  background: rgba(255,255,255,.34);
}

.module-row {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.module-row.enabled {
  border-color: rgba(0,122,255,.58);
  background: rgba(255,255,255,.25);
}

.module-row [role="switch"] {
  position: relative;
  width: 52px;
  height: 32px;
  padding: 0;
  background: rgba(17,24,39,.14);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
}

.module-row [role="switch"] span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s ease-out;
}

.module-row.enabled [role="switch"] {
  background: var(--event-accent);
}

.module-row.enabled [role="switch"] span {
  transform: translateX(20px);
}

.module-inline-action {
  grid-column: 1 / -1;
  min-height: 40px;
  color: #007aff;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-weight: 850;
}

.route-point-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.route-point-actions .module-inline-action {
  grid-column: auto;
  min-height: 44px;
}

.route-point-actions .module-inline-action.secondary {
  color: var(--event-ink);
  background: rgba(255,255,255,.18);
}

.create-event-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  color: var(--event-ink);
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
}

.create-event-preview-cover {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10,165,164,.88), rgba(36,120,242,.84)),
    rgba(15,23,42,.08);
  background-position: center;
  background-size: cover;
  border-radius: 14px;
}

.create-event-preview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,12,18,.04), rgba(2,12,18,.34));
  pointer-events: none;
}

.create-event-preview-cover span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0b2028;
  background: rgba(255,255,255,.90);
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 950;
}

.create-event-preview-cover.has-image span {
  display: none;
}

.create-event-preview-body {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 8px;
}

.create-event-preview-body small,
.create-event-preview-body strong,
.create-event-preview-body span {
  min-width: 0;
}

.create-event-preview-body > small {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  color: #0f766e;
  background: rgba(204,251,241,.86);
  border: 1px solid rgba(13,148,136,.18);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-event-preview-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #07171d;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.create-event-preview-body div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.create-event-preview-body span {
  max-width: 100%;
  padding: 6px 8px;
  overflow: hidden;
  color: rgba(7,23,29,.74);
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .create-event-preview {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .create-event-preview-cover {
    min-height: 104px;
  }
}

.route-point-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.route-point-list p {
  margin: 0;
  padding: 10px 12px;
  color: var(--event-muted);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 760;
}

.route-point-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, .72fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
}

.route-point-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: rgba(16,24,40,.92);
  border-radius: 50%;
  font-size: .74rem;
  font-weight: 950;
}

.route-point-row label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-point-row label span {
  overflow: hidden;
  color: var(--event-muted);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-point-row input,
.route-point-row small {
  min-width: 0;
}

.route-point-row input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: var(--event-ink);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 900;
}

.route-point-row small {
  overflow: hidden;
  color: var(--event-muted);
  font-size: .72rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-point-row button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #b42318;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(180,35,24,.20);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
}

.quest-location-grid {
  grid-template-columns: minmax(0, 1fr) minmax(96px, .42fr);
}

.quest-location-grid .quest-map-button {
  grid-column: 1 / -1;
  min-height: 40px;
  color: #0f172a;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px;
  font-weight: 860;
}

.quest-location-grid .quest-map-button.secondary {
  color: #075985;
  background: rgba(224,242,254,.36);
  border-color: rgba(14,165,233,.28);
}

.quest-location-grid .quest-map-button.selected {
  color: #fff;
  background: rgba(15,23,42,.92);
  border-color: rgba(15,23,42,.12);
}

.quest-module[hidden] {
  display: none !important;
}

.quest-empty {
  margin: 0;
  padding: 12px 14px;
  color: var(--event-muted);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
  font-size: .82rem;
  font-weight: 760;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-head button {
  min-height: 40px;
  padding: 0 12px;
  color: #fff;
  background: var(--event-ink);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.quest-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.quest-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.quest-footer button {
  min-height: 40px;
  padding: 0 12px;
  color: #101722;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-weight: 820;
}

.quest-footer button.selected {
  color: #fff;
  background: #007aff;
}

.publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.publish-button:active {
  transform: scale(.98);
}

.publish-button.loading {
  pointer-events: none;
  opacity: .82;
  box-shadow: none;
}

.publish-button:disabled {
  cursor: progress;
}

.publish-button.loading::after {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: spin .8s linear infinite;
}

.publish-button.success {
  background: #16a34a !important;
  box-shadow: 0 10px 22px rgba(22,163,74,.18) !important;
}

.event-type-card:focus-visible,
.event-template-chip:focus-visible,
.people-stepper button:focus-visible,
.flow-step-head button:focus-visible,
.map-place-button:focus-visible,
.map-picker-pill button:focus-visible,
.secondary-action:focus-visible,
.primary-action:focus-visible,
.module-row [role="switch"]:focus-visible,
.module-head button:focus-visible,
.route-point-row button:focus-visible,
.quest-map-button:focus-visible,
.ai-suggestion-row button:focus-visible,
.quest-footer button:focus-visible {
  outline: 3px solid rgba(0,122,255,.35);
  outline-offset: 3px;
}

.event-create-flow input:focus-visible,
.event-create-flow select:focus-visible,
.event-create-flow textarea:focus-visible {
  border-color: rgba(8,124,255,.56) !important;
  box-shadow: 0 0 0 3px rgba(8,124,255,.16), inset 0 1px 1px rgba(255,255,255,.52) !important;
}

.event-create-flow button:disabled {
  opacity: .72;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 760px) {
  .create-event-card.event-create-flow {
    width: min(720px, calc(100vw - 44px)) !important;
    max-width: min(720px, calc(100vw - 44px)) !important;
    max-height: calc(100svh - 190px);
    padding: 20px;
  }

  .event-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .event-type-card {
    min-height: 88px;
  }

  .event-template-chip {
    flex-basis: 172px;
  }

  .event-create-flow .event-step h1 {
    font-size: 1.85rem;
  }

  .flow-actions {
    grid-template-columns: 1fr 1fr;
  }

  .event-entry-popup .entry-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .template-strip-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .template-strip-head small {
    max-width: 100%;
  }

  .ai-suggestions-head {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .ai-suggestion-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ai-suggestion-row button {
    grid-column: 2;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .create-screen.active .create-event-card.event-create-flow,
  .event-step.active,
  .event-detail,
  .publish-button.loading::after,
  .activity-tile.created.just-created,
  .mecly-map-pin.created-event-pin.just-created,
  .mecly-draft-pin,
  .mecly-route-line,
  .mecly-route-stop {
    animation: none !important;
  }

  .event-type-card,
  .event-template-chip,
  .create-progress span,
  .module-row [role="switch"] span,
  .map-picker-pill {
    transition: none !important;
  }
}
.home-location-pill input::placeholder {
  color: transparent;
}

.home-location-pill:focus-within input::placeholder,
.phone-shell.home-place-search-open .home-location-pill input::placeholder {
  color: rgba(15,23,42,.52);
}

.event-discovery-bar {
  top: calc(62px + env(safe-area-inset-top)) !important;
  left: 14px;
  right: 14px;
}

.event-discovery-scroll {
  padding: 3px 2px 5px;
}

.event-discovery-scroll button {
  min-height: 31px;
  padding: 0 9px 0 10px;
  font-size: .72rem;
}

.event-discovery-scroll button b {
  min-width: 16px;
  height: 16px;
  font-size: .62rem;
  line-height: 16px;
}

.viewport-discovery-control {
  top: calc(101px + env(safe-area-inset-top)) !important;
}

.search-panel {
  max-height: calc(100svh - 122px - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-filter-row select {
  flex: 0 0 auto;
  min-width: 152px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-filter-row select:first-child {
  min-width: 176px;
}

.saved-hero,
.saved-section {
  border-radius: 18px;
  background: rgba(255,255,255,.34);
}

.saved-hero {
  min-height: 112px;
  align-content: start;
}

.saved-section-head {
  align-items: start;
}

.saved-section-head strong {
  min-width: 0;
  line-height: 1.15;
}

.saved-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
}

.saved-empty small {
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 760;
}

.profile-stats-line {
  gap: 8px !important;
}

.profile-stats-line button {
  min-height: 48px;
  padding: 7px 4px !important;
  background: rgba(255,255,255,.24) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42);
}

.profile-stats-line button b {
  display: block;
  margin-bottom: 2px;
}

.profile-tabs {
  gap: 6px;
  border-bottom: 0;
}

.profile-tabs button {
  min-height: 40px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
}

.profile-tabs button.selected {
  color: #fff;
  background: rgba(15,23,42,.86);
  border-color: rgba(255,255,255,.42);
}

.profile-tabs button.selected::after {
  display: none;
}

.create-screen.active {
  overflow: hidden;
}

.create-event-card.event-create-flow {
  max-height: calc(100svh - 92px - env(safe-area-inset-bottom)) !important;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}

.event-create-flow input,
.event-create-flow textarea,
.event-create-flow select {
  min-width: 0;
}

.event-create-flow .flow-actions,
.event-detail-actions,
.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-create-flow .flow-actions button,
.event-detail-actions button {
  flex: 1 1 142px;
  min-width: 0;
  white-space: normal;
}

.event-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 2px 0 6px;
  padding: 4px 9px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.event-source-badge[data-source="live"] {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(204, 251, 241, 0.92);
  color: #0f766e;
}

.event-source-badge[data-source="demo"],
.event-source-badge[data-source="demo-local"] {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
}

.event-action-soft.reported {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(220, 252, 231, 0.9);
  color: #166534;
}

.event-discovery-card {
  min-width: min(246px, calc(100vw - 94px));
}

.event-card-actions {
  align-items: center;
}

.event-card-actions > * {
  min-width: 0;
}

.event-card-actions button,
.event-card-actions span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 430px) {
  .live-topbar {
    left: 12px !important;
    right: 12px !important;
    grid-template-columns: minmax(0, 1fr) 42px 50px 42px !important;
    gap: 6px !important;
  }

  .home-location-pill {
    min-height: 42px;
    padding: 0 11px;
  }

  .event-discovery-bar {
    top: calc(56px + env(safe-area-inset-top)) !important;
  }

  .viewport-discovery-control {
    top: calc(94px + env(safe-area-inset-top)) !important;
  }
}

.mecly-onboarding {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(88px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(237,245,248,.08), rgba(237,245,248,.32)),
    radial-gradient(circle at 50% 18%, rgba(0,122,255,.16), transparent 36%);
  pointer-events: auto;
}

.mecly-onboarding[aria-hidden="true"] {
  display: none;
}

.onboarding-card {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #0f172a;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(15,23,42,.14);
  backdrop-filter: blur(18px) saturate(1.18);
}

/* v52: mobile polish for map cards and full-screen surfaces. */
.live-map-sheet {
  overflow: hidden;
  transition: bottom .22s ease-out, opacity .18s ease-out, transform .18s ease-out !important;
  transform: translateZ(0);
}

.phone-shell.sheet-open:not(.event-selected) .live-map-sheet {
  max-height: min(42svh, 360px);
}

.activity-carousel {
  display: flex !important;
  grid-auto-flow: initial !important;
  grid-auto-columns: initial !important;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 2px 7px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
}

.activity-carousel > .activity-tile {
  box-sizing: border-box;
  flex: 0 0 min(232px, calc(100vw - 96px));
  width: min(232px, calc(100vw - 96px));
  min-width: 0 !important;
  scroll-snap-align: start;
}

.activity-carousel > .event-discovery-empty,
.activity-carousel > .demo-events-note {
  flex: 0 0 min(322px, calc(100vw - 72px));
  width: min(322px, calc(100vw - 72px));
  scroll-snap-align: start;
}

.event-discovery-card {
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(24px, auto) auto !important;
  align-content: start;
  min-height: 202px;
  max-height: none;
  padding: 10px;
  overflow: hidden;
}

.event-card-icon {
  width: 38px;
  height: 38px;
}

.event-card-main {
  align-self: center;
}

.event-card-chips {
  max-height: 54px;
  align-content: flex-start;
  overflow: hidden;
}

.event-card-chip,
.event-card-status,
.event-card-details,
.event-card-join,
.event-card-room {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-auto-rows: minmax(30px, auto);
  align-items: stretch;
  gap: 7px;
  overflow: visible;
}

.event-card-actions > * {
  min-width: 0;
}

.event-card-details {
  grid-column: 1;
  width: 100%;
}

.event-card-save {
  grid-column: 2;
  width: 34px;
  height: 34px;
  align-self: center;
}

.event-card-join,
.event-card-status,
.event-card-room {
  grid-column: 1 / -1;
  width: 100%;
}

.profile-screen.active,
.settings-screen.active {
  height: 100%;
  max-height: 100svh;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.travel-profile-card {
  max-height: calc(100svh - 88px);
  margin-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  padding-bottom: calc(136px + env(safe-area-inset-bottom)) !important;
}

.profile-tab-frame {
  padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
}

.settings-card {
  margin-bottom: calc(128px + env(safe-area-inset-bottom)) !important;
  padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important;
}

.search-panel {
  padding-bottom: calc(122px + env(safe-area-inset-bottom)) !important;
}

.person-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.person-result-actions button {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 430px) {
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet {
    max-height: min(41svh, 346px);
  }

  .activity-carousel > .activity-tile {
    flex-basis: min(224px, calc(100vw - 96px));
    width: min(224px, calc(100vw - 96px));
  }

  .event-discovery-card {
    min-height: 204px;
  }
}

.onboarding-card > small {
  color: rgba(15,23,42,.62);
  font-size: .76rem;
  font-weight: 850;
}

.onboarding-card h1 {
  margin: 0;
  max-width: 11ch;
  font-size: 2.16rem;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.onboarding-lede {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.onboarding-copy {
  margin: 0;
  color: rgba(15,23,42,.74);
  font-size: .88rem;
  font-weight: 720;
  line-height: 1.45;
}

.onboarding-map-preview {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(30,150,95,.18) 0 18%, transparent 18% 100%),
    linear-gradient(22deg, transparent 0 44%, rgba(255,186,73,.42) 44% 48%, transparent 48%),
    linear-gradient(140deg, transparent 0 58%, rgba(36,142,255,.22) 58% 62%, transparent 62%),
    rgba(255,255,255,.26);
}

.onboarding-map-preview::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(0,122,255,.28);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.onboarding-map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 8px 18px rgba(15,23,42,.14);
  font-weight: 900;
}

.onboarding-map-pin.main {
  left: 38%;
  top: 34%;
  color: #fff;
  background: #111827;
}

.onboarding-map-pin.coffee {
  left: 12%;
  top: 56%;
}

.onboarding-map-pin.walk {
  right: 13%;
  top: 18%;
}

.onboarding-preview-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(15,23,42,.1);
}

.onboarding-preview-card b {
  font-size: .94rem;
}

.onboarding-preview-card small {
  color: rgba(15,23,42,.68);
  font-size: .78rem;
  font-weight: 780;
}

.onboarding-points {
  display: grid;
  gap: 8px;
}

.onboarding-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 14px;
}

.onboarding-points b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: #111827;
  border-radius: 50%;
}

.onboarding-points em {
  font-style: normal;
  font-size: .88rem;
  font-weight: 840;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.onboarding-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  color: #111827;
  background: rgba(255,255,255,.48);
  font-weight: 900;
}

.onboarding-actions .primary-action {
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(180deg, #1688ff, #007aff);
  box-shadow: 0 12px 24px rgba(0,122,255,.22);
}

.onboarding-actions button:focus-visible,
.settings-section select:focus-visible {
  outline: 3px solid rgba(0,122,255,.35);
  outline-offset: 3px;
}

.demo-events-note {
  flex: 0 0 min(260px, calc(100vw - 94px));
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  margin: 0;
  padding: 12px;
  color: rgba(15,23,42,.74);
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

.demo-events-note b {
  color: #111827;
  font-size: .9rem;
  line-height: 1.15;
}

.demo-events-note span {
  display: block;
}

.demo-events-note button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-size: .76rem;
  font-weight: 900;
}

.demo-events-note button:focus-visible {
  outline: 3px solid rgba(0,122,255,.34);
  outline-offset: 2px;
}

.demo-event-chip {
  justify-self: start;
  width: fit-content;
  padding: 4px 8px;
  color: rgba(15,23,42,.72);
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.settings-section select[data-language-select] {
  min-height: 42px;
  padding: 0 12px;
  color: #111827;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 14px;
  font-weight: 850;
}

.language-panel {
  display: grid;
  gap: 10px;
}

.language-panel-label {
  color: rgba(15, 23, 42, .66);
  font-size: .82rem;
  font-weight: 900;
}

.language-choice-list {
  display: grid;
  gap: 10px;
}

.language-choice {
  width: 100%;
  min-height: 76px;
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, .34);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

.language-choice.active {
  color: #fff;
  background: rgba(17, 24, 39, .92);
  border-color: rgba(17, 24, 39, .82);
}

.language-choice:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .32);
  outline-offset: 2px;
}

.language-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.language-choice-head b {
  font-size: 1rem;
  font-weight: 950;
}

.language-choice-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(15, 23, 42, .82);
  background: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
}

.language-choice small {
  color: rgba(15, 23, 42, .68);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
}

.language-choice.active small {
  color: rgba(255, 255, 255, .78);
}

.language-preview-row {
  display: flex;
  gap: 8px;
  margin-inline: -4px;
  padding: 2px 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.language-preview-row::-webkit-scrollbar {
  display: none;
}

.language-preview-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(15, 23, 42, .58);
  background: rgba(255, 255, 255, .26);
  border: 1px solid rgba(255, 255, 255, .42);
  font-size: .76rem;
  font-weight: 900;
}

.chat-screen {
  height: 100dvh;
  max-height: 100dvh;
  padding: calc(var(--browser-top) + 8px) 22px calc(var(--bottom-nav-space) + 12px);
  overflow: hidden;
}

.chat-screen.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-screen .chat-header {
  position: sticky;
  top: calc(var(--browser-top) + 4px);
  z-index: 4;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(255, 255, 255, .52);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.chat-screen .chat-header strong {
  min-width: 0;
  color: #111827;
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
}

.chat-screen .chat-header [data-chat-count] {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(15, 23, 42, .72);
  background: rgba(255, 255, 255, .48);
  font-size: .8rem;
  font-weight: 950;
}

.chat-hub-card {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .11);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
}

.chat-hub-search {
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .44);
  border: 1px solid rgba(255, 255, 255, .56);
}

.chat-hub-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  color: rgba(15, 23, 42, .72);
}

.chat-hub-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: .96rem;
  font-weight: 800;
}

.chat-hub-tabs {
  display: flex;
  gap: 8px;
  margin-inline: -6px;
  padding: 2px 6px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.chat-hub-tabs::-webkit-scrollbar {
  display: none;
}

.chat-hub-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(15, 23, 42, .74);
  background: rgba(255, 255, 255, .42);
  font-size: .82rem;
  font-weight: 950;
}

.chat-hub-tabs button.selected {
  color: #fff;
  background: #111827;
}

.chat-hub-tabs button em {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: rgba(15, 23, 42, .72);
  background: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
}

.chat-hub-tabs button.selected em {
  color: #111827;
  background: rgba(255, 255, 255, .92);
}

.chat-hub-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chat-hub-actions button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 16px;
  color: #111827;
  background: rgba(255, 255, 255, .34);
  text-align: left;
}

.chat-hub-actions button:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .32);
  outline-offset: 2px;
}

.chat-hub-actions span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, .92);
  font-size: .85rem;
  font-weight: 950;
}

.chat-hub-actions b {
  min-width: 0;
  overflow: hidden;
  color: rgba(15, 23, 42, .82);
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.chat-hub-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px calc(var(--bottom-nav-space) + 20px);
  scrollbar-width: none;
  touch-action: pan-y;
}

.chat-hub-list::-webkit-scrollbar {
  display: none;
}

.chat-hub-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(54px, auto);
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, .30);
  text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.chat-hub-row:active {
  transform: scale(.992);
}

.chat-hub-row.unread {
  background: rgba(255, 255, 255, .40);
  border-color: rgba(255, 255, 255, .72);
}

.chat-hub-row:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .32);
  outline-offset: 2px;
}

.chat-hub-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 165, 233, .94), rgba(124, 58, 237, .94));
  font-size: .92rem;
  font-weight: 950;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.28);
}

.chat-hub-row[data-chat-item-kind="direct"] .chat-hub-avatar {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .88));
}

.chat-hub-row[data-chat-item-kind="event"] .chat-hub-avatar {
  background: rgba(255, 255, 255, .62);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, .62);
}

.chat-hub-row[data-chat-item-kind="circle"] .chat-hub-avatar {
  background: linear-gradient(135deg, rgba(0, 122, 255, .92), rgba(125, 92, 255, .92));
}

.chat-hub-row[data-chat-item-kind="invite"] .chat-hub-avatar {
  background: linear-gradient(135deg, rgba(245, 158, 11, .95), rgba(236, 72, 153, .88));
}

.chat-hub-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-hub-body b,
.chat-hub-body small,
.chat-hub-body em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-hub-body b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: .94rem;
  font-weight: 950;
  line-height: 1.12;
}

.chat-hub-body b span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-hub-body b i {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: rgba(15, 23, 42, .62);
  background: rgba(255, 255, 255, .5);
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
}

.chat-hub-body small {
  color: rgba(15, 23, 42, .66);
  font-size: .74rem;
  font-weight: 850;
}

.chat-hub-body em {
  color: rgba(15, 23, 42, .62);
  font-size: .76rem;
  font-style: normal;
  font-weight: 760;
}

.chat-hub-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
}

.chat-hub-side time,
.chat-kind-chip {
  color: rgba(15, 23, 42, .58);
  font-size: .68rem;
  font-weight: 900;
}

.chat-kind-chip {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.chat-action-chip {
  min-width: 44px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .92);
  font-size: .66rem;
  font-weight: 950;
  white-space: nowrap;
}

.chat-hub-row[data-chat-item-kind="event"]:not(.unread) .chat-action-chip,
.chat-hub-row[data-chat-item-kind="circle"]:not(.unread) .chat-action-chip {
  color: rgba(15, 23, 42, .82);
  background: rgba(255, 255, 255, .56);
}

.chat-unread {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #0f172a;
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
}

.chat-hub-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  color: #111827;
  background: rgba(255, 255, 255, .28);
  text-align: center;
}

.chat-hub-empty span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
  font-size: 1.35rem;
}

.chat-hub-empty b {
  font-size: 1rem;
  font-weight: 950;
}

.chat-hub-empty small {
  max-width: 28ch;
  color: rgba(15, 23, 42, .62);
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.35;
}

.chat-hub-empty div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chat-hub-empty button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, .54);
  font-weight: 950;
}

.chat-hub-empty button:last-child {
  color: #fff;
  background: #111827;
}

@media (max-width: 420px) {
  .chat-screen {
    padding-inline: 12px;
  }

  .chat-hub-card {
    padding: 13px;
    border-radius: 20px;
    gap: 10px;
  }

  .chat-hub-actions {
    gap: 6px;
  }

  .chat-hub-actions button {
    min-height: 52px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 8px;
  }

  .chat-hub-actions span {
    width: 24px;
    height: 24px;
  }

  .chat-hub-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(46px, auto);
    gap: 9px;
    padding: 10px;
  }

  .chat-hub-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .chat-action-chip {
    min-width: 40px;
    padding-inline: 7px;
  }
}

/* v92: stabilize Leaflet tile loading and top controls during map drag/zoom. */
.map-profile-screen.active .leaflet-container {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .72), rgba(231, 243, 235, .34) 42%, transparent 68%),
    url("/map-fallback-tile.svg") center / 230px 230px,
    linear-gradient(180deg, rgba(224, 241, 222, .92), rgba(236, 245, 232, .92));
}

.map-profile-screen.active .leaflet-tile-container,
.map-profile-screen.active .leaflet-tile-pane,
.map-profile-screen.active .leaflet-layer {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.map-profile-screen.active .leaflet-tile {
  background: rgba(230, 241, 225, .92);
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.map-profile-screen.active.leaflet-fade-anim .leaflet-tile,
.map-profile-screen.active .leaflet-fade-anim .leaflet-tile {
  transition: none !important;
}

.phone-shell.map-moving .mecly-radius-circle {
  opacity: .18 !important;
}

.phone-shell.compact-map-cards .event-discovery-card {
  min-height: 176px;
}

.phone-shell.compact-map-cards .event-card-chips {
  max-height: 28px;
}

.phone-shell.compact-map-cards .activity-carousel > .activity-tile {
  flex-basis: min(204px, calc(100vw - 112px));
  width: min(204px, calc(100vw - 112px));
}

.phone-shell.reduced-glass .live-map-sheet,
.phone-shell.reduced-glass .search-panel,
.phone-shell.reduced-glass .settings-card,
.phone-shell.reduced-glass .travel-profile-card,
.phone-shell.reduced-glass .bottom-nav {
  backdrop-filter: blur(8px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
}

.auth-card .forgot-action:disabled,
.provider-stack button:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.phone-shell.onboarding-open .bottom-nav,
.phone-shell.onboarding-open .live-topbar,
.phone-shell.onboarding-open .event-discovery-bar,
.phone-shell.onboarding-open .viewport-discovery-control,
.phone-shell.onboarding-open .user-mini-profile-trigger,
.phone-shell.onboarding-open .notification-center-trigger {
  pointer-events: none;
  opacity: .18;
}

@media (min-width: 720px) {
  .mecly-onboarding {
    place-items: center;
    padding: 28px;
  }

  .onboarding-card {
    margin-top: 42px;
  }
}

@media (max-width: 390px) {
  .onboarding-card {
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
  }

  .onboarding-actions {
    grid-template-columns: 1fr 1fr;
  }

  .onboarding-actions .primary-action {
    grid-column: 1 / -1;
  }

  .onboarding-card h1 {
    font-size: 1.92rem;
  }

  .onboarding-map-preview {
    min-height: 106px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mecly-onboarding,
  .onboarding-card {
    transition: none !important;
  }
}

/* v56: keep selected event details fully inside the mobile viewport. */
.phone-shell.event-selected .live-map-sheet {
  top: calc(84px + env(safe-area-inset-top));
  right: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 14px;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px 10px 14px;
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.phone-shell.event-selected .live-map-sheet .sheet-title,
.phone-shell.event-selected .live-map-sheet .filter-row,
.phone-shell.event-selected .live-map-sheet .activity-carousel {
  display: none !important;
}

.phone-shell.event-selected .live-map-sheet .sheet-handle {
  margin-bottom: 8px;
}

.phone-shell.event-selected .event-detail {
  margin: 0;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

@media (max-width: 380px) {
  .phone-shell.event-selected .live-map-sheet {
    top: calc(76px + env(safe-area-inset-top));
    right: 10px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 9px 9px 12px;
  }

  .phone-shell.event-selected .event-detail {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .phone-shell.event-selected .event-photo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }
}

/* v57: compact settings/profile editing surfaces and stable map cards. */
.settings-screen.active,
.profile-edit-screen.active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.settings-screen .simple-header,
.profile-edit-screen .simple-header,
.profile-screen .simple-header {
  top: calc(8px + env(safe-area-inset-top)) !important;
  left: 18px;
  right: 18px;
  z-index: 42;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0;
}

.settings-screen .simple-header strong,
.profile-edit-screen .simple-header strong,
.profile-screen .simple-header strong {
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-card.app-settings-card,
.profile-edit-card {
  align-self: stretch !important;
  width: min(calc(100vw - 28px), 520px) !important;
  max-height: none !important;
  height: calc(100svh - 74px - env(safe-area-inset-top)) !important;
  margin: 14px auto 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.settings-card.app-settings-card {
  padding: 16px 14px calc(128px + env(safe-area-inset-bottom)) !important;
  border-radius: 28px 28px 0 0 !important;
}

.settings-card.app-settings-card > h1 {
  margin: 0 0 12px !important;
  font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
  line-height: 1 !important;
}

.settings-card .settings-section {
  padding: 12px !important;
  border-radius: 20px !important;
}

.settings-card [data-save-settings] {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 52px;
  margin: 16px auto 0;
  color: rgba(15,23,42,.60);
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: none;
}

.settings-card [data-save-settings].is-dirty {
  color: #fff;
  background: #111827;
  border-color: rgba(17,24,39,.88);
  box-shadow: 0 16px 30px rgba(15,23,42,.18);
}

.settings-card [data-save-settings]:disabled {
  cursor: default;
  opacity: .72;
}

.profile-edit-card {
  padding: 14px 14px calc(92px + env(safe-area-inset-bottom)) !important;
  border-radius: 28px 28px 0 0 !important;
}

.profile-edit-card .edit-card-title {
  margin: 0 0 8px !important;
  font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
}

.profile-edit-card label {
  gap: 5px;
}

.profile-edit-card input,
.profile-edit-card textarea {
  min-height: 44px;
}

.save-profile-bottom {
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 5;
}

.phone-shell.sheet-open:not(.event-selected) .live-map-sheet {
  height: min(36svh, 322px) !important;
  min-height: 0 !important;
  max-height: min(36svh, 322px) !important;
  overflow: hidden !important;
  transition: none !important;
}

.phone-shell.sheet-open:not(.event-selected) .viewport-discovery-control {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.phone-shell.sheet-open:not(.event-selected) .activity-carousel {
  height: calc(100% - 52px);
  overflow-x: auto;
  overflow-y: hidden;
}

.phone-shell.sheet-open:not(.event-selected) .activity-carousel > .activity-tile {
  flex-basis: min(216px, calc(100vw - 116px));
  width: min(216px, calc(100vw - 116px));
}

.phone-shell.sheet-open:not(.event-selected) .event-discovery-card {
  min-height: 176px;
  grid-template-rows: auto auto minmax(22px, auto) auto !important;
}

.phone-shell.sheet-open:not(.event-selected) .event-card-actions {
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-auto-rows: 32px;
  gap: 6px;
}

.phone-shell.sheet-open:not(.event-selected) .event-card-actions button,
.phone-shell.sheet-open:not(.event-selected) .event-card-actions span {
  min-height: 32px;
  padding: 0 9px;
  white-space: nowrap;
}

.phone-shell.sheet-open:not(.event-selected) .event-card-join {
  font-size: .72rem;
}

@media (max-width: 380px) {
  .settings-screen .simple-header,
  .profile-edit-screen .simple-header,
  .profile-screen .simple-header {
    left: 12px;
    right: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .settings-card.app-settings-card,
  .profile-edit-card {
    width: calc(100vw - 20px) !important;
    margin-top: 12px !important;
    height: calc(100svh - 72px - env(safe-area-inset-top)) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel > .activity-tile {
    flex-basis: min(202px, calc(100vw - 118px));
    width: min(202px, calc(100vw - 118px));
  }
}

/* v58: prevent mobile GPU flicker on Leaflet by avoiding heavy live-map blur stacks. */
.map-profile-screen.active .real-map,
.map-profile-screen.active .leaflet-container,
.map-profile-screen.active .leaflet-map-pane,
.map-profile-screen.active .leaflet-pane,
.map-profile-screen.active .leaflet-tile,
.map-profile-screen.active .leaflet-marker-icon,
.map-profile-screen.active .leaflet-shadow-pane,
.map-profile-screen.active .leaflet-overlay-pane {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.map-profile-screen.active .leaflet-map-pane,
.map-profile-screen.active .leaflet-tile-pane {
  transform: translateZ(0);
  will-change: transform;
}

.map-profile-screen.active .leaflet-tile {
  transform: translateZ(0);
  will-change: opacity, transform;
}

.phone-shell:has(.map-profile-screen.active) .live-map-sheet,
.phone-shell:has(.map-profile-screen.active) .activity-tile,
.phone-shell:has(.map-profile-screen.active) .event-detail,
.phone-shell:has(.map-profile-screen.active) .event-detail-grid span,
.phone-shell:has(.map-profile-screen.active) .event-modules span,
.phone-shell:has(.map-profile-screen.active) .event-module-chip,
.phone-shell:has(.map-profile-screen.active) .event-quests article,
.phone-shell:has(.map-profile-screen.active) .event-activity,
.phone-shell:has(.map-profile-screen.active) .event-chat-list article,
.phone-shell:has(.map-profile-screen.active) .quest-action-card,
.phone-shell:has(.map-profile-screen.active) .event-route-highlight,
.phone-shell:has(.map-profile-screen.active) .event-participants,
.phone-shell:has(.map-profile-screen.active) .glass-confirmation,
.phone-shell:has(.map-profile-screen.active) .share-panel,
.phone-shell:has(.map-profile-screen.active) .map-action-sheet,
.phone-shell:has(.map-profile-screen.active) .marker-action-sheet {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.phone-shell:has(.map-profile-screen.active) .live-map-sheet {
  background: rgba(247,252,246,.88) !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.12), inset 0 1px 1px rgba(255,255,255,.62) !important;
  isolation: isolate;
}

.phone-shell:has(.map-profile-screen.active) .activity-tile,
.phone-shell:has(.map-profile-screen.active) .event-detail,
.phone-shell:has(.map-profile-screen.active) .event-detail-grid span,
.phone-shell:has(.map-profile-screen.active) .event-activity,
.phone-shell:has(.map-profile-screen.active) .glass-confirmation {
  background: rgba(249,253,248,.78) !important;
  border-color: rgba(255,255,255,.74) !important;
}

.phone-shell:has(.map-profile-screen.active) .event-detail,
.phone-shell:has(.map-profile-screen.active) .activity-tile {
  animation: none !important;
  transition: none !important;
}

.phone-shell.event-selected:has(.map-profile-screen.active) .live-map-sheet {
  background: rgba(247,252,246,.92) !important;
}

.phone-shell.sheet-open:not(.event-selected):has(.map-profile-screen.active) .live-map-sheet {
  background: rgba(247,252,246,.88) !important;
}

@supports not selector(:has(*)) {
  .live-map-sheet,
  .activity-tile,
  .event-detail {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* v59: align primary glass surfaces close to the top edge. */
.search-screen.active,
.people-screen.active,
.dating-screen.active,
.saved-screen.active,
.profile-screen.active,
.settings-screen.active,
.profile-edit-screen.active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100%;
  max-height: 100svh;
  overflow: hidden !important;
}

.search-screen .simple-header,
.people-screen .simple-header,
.dating-screen .simple-header,
.saved-screen .simple-header,
.profile-screen .simple-header,
.settings-screen .simple-header,
.profile-edit-screen .simple-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 48 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  width: calc(100% - 28px);
  min-height: 50px;
  margin: calc(6px + env(safe-area-inset-top)) auto 0 !important;
  padding: 0 !important;
}

.search-screen .simple-header strong,
.people-screen .simple-header strong,
.dating-screen .simple-header strong,
.saved-screen .simple-header strong,
.profile-screen .simple-header strong,
.settings-screen .simple-header strong,
.profile-edit-screen .simple-header strong {
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.03rem;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-panel,
.people-hub,
.dating-hub,
.saved-hub,
.travel-profile-card,
.settings-card.app-settings-card,
.profile-edit-card {
  align-self: stretch !important;
  width: min(calc(100vw - 28px), 520px) !important;
  height: calc(100svh - 66px - env(safe-area-inset-top)) !important;
  max-height: none !important;
  margin: 8px auto 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 28px 28px 0 0 !important;
  scrollbar-width: none;
}

.search-panel::-webkit-scrollbar,
.saved-hub::-webkit-scrollbar,
.travel-profile-card::-webkit-scrollbar,
.settings-card.app-settings-card::-webkit-scrollbar,
.profile-edit-card::-webkit-scrollbar {
  display: none;
}

.search-panel {
  padding: 14px 14px calc(130px + env(safe-area-inset-bottom)) !important;
}

.saved-hub {
  padding: 0 0 calc(132px + env(safe-area-inset-bottom)) !important;
}

.travel-profile-card {
  padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
}

.settings-card.app-settings-card,
.profile-edit-card {
  padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
}

.phone-shell.event-selected .live-topbar,
.phone-shell.event-selected .event-discovery-bar,
.phone-shell.event-selected .viewport-discovery-control {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.phone-shell.event-selected .live-map-sheet {
  top: calc(8px + env(safe-area-inset-top)) !important;
  right: 12px !important;
  bottom: calc(94px + env(safe-area-inset-bottom)) !important;
  left: 12px !important;
  z-index: 58 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 10px 10px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 28px 28px 22px 22px !important;
}

.phone-shell.event-selected .live-map-sheet .sheet-title,
.phone-shell.event-selected .live-map-sheet .filter-row,
.phone-shell.event-selected .live-map-sheet .activity-carousel,
.phone-shell.event-selected .live-map-sheet .event-discovery-empty,
.phone-shell.event-selected .live-map-sheet .demo-events-note {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.phone-shell.event-selected .event-detail {
  margin: 0 !important;
  padding-bottom: 18px !important;
}

@media (max-width: 380px) {
  .search-screen .simple-header,
  .saved-screen .simple-header,
  .profile-screen .simple-header,
  .settings-screen .simple-header,
  .profile-edit-screen .simple-header {
    width: calc(100% - 22px);
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .search-panel,
  .saved-hub,
  .travel-profile-card,
  .settings-card.app-settings-card,
  .profile-edit-card {
    width: min(calc(100vw - 22px), 520px) !important;
  }

  .phone-shell.event-selected .live-map-sheet {
    right: 10px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
  }
}

/* v60: stabilize the mobile map discovery sheet and prevent card overlap/flicker. */
@media (max-width: 700px) {
  .live-map-sheet {
    transition: none !important;
  }

  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .filter-row,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-detail,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-discovery-empty,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .demo-events-note {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet {
    height: min(34svh, 292px) !important;
    max-height: min(34svh, 292px) !important;
    min-height: 244px !important;
    padding: 10px 12px 12px !important;
    overflow: hidden !important;
    transition: none !important;
    transform: translateZ(0) !important;
    contain: layout paint;
  }

  .phone-shell.sheet-open:not(.event-selected) .sheet-title {
    margin-bottom: 8px !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel {
    display: flex !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    height: calc(100% - 54px) !important;
    gap: 10px !important;
    padding: 0 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: translateZ(0);
    contain: layout paint;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel::-webkit-scrollbar {
    display: none;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel > .activity-tile {
    flex: 0 0 calc(100% - 2px) !important;
    width: calc(100% - 2px) !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-discovery-card {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(38px, auto) auto auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    gap: 8px 10px !important;
    overflow: hidden !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-main b {
    max-width: 100%;
    font-size: .98rem;
    white-space: nowrap;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-main small,
  .phone-shell.sheet-open:not(.event-selected) .event-card-main em {
    font-size: .78rem;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-chips {
    max-height: 42px !important;
    overflow: hidden !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    grid-auto-rows: 36px !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-actions button,
  .phone-shell.sheet-open:not(.event-selected) .event-card-actions span {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-save {
    width: 40px !important;
    height: 36px !important;
    padding: 0 !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-join,
  .phone-shell.sheet-open:not(.event-selected) .event-card-status,
  .phone-shell.sheet-open:not(.event-selected) .event-card-room {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    font-size: .82rem !important;
  }

  .activity-tile.created.just-created {
    animation: none !important;
  }
}

/* v70: no map sheet artifacts outside the map, and real collapse/expand states. */
@media (max-width: 700px) {
  .phone-shell:not(:has(.map-profile-screen.active)) .live-map-sheet,
  .phone-shell:not(:has(.map-profile-screen.active)) .event-discovery-bar,
  .phone-shell:not(:has(.map-profile-screen.active)) .viewport-discovery-control {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet {
    right: 18px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    left: 18px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle {
    margin-bottom: 6px !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: .98rem !important;
    line-height: 1.1 !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .filter-row,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .event-discovery-empty,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .demo-events-note,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .event-detail {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet {
    height: min(25svh, 218px) !important;
    min-height: 184px !important;
    max-height: min(25svh, 218px) !important;
  }
}

/* v69: compact app headers and true map-picking mode. */
@media (max-width: 700px) {
  .search-screen .simple-header,
  .saved-screen .simple-header,
  .profile-screen .simple-header,
  .settings-screen .simple-header,
  .profile-edit-screen .simple-header,
  .create-screen .simple-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 96 !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    align-items: center !important;
    gap: 6px !important;
    width: min(calc(100vw - 20px), 540px) !important;
    min-height: 42px !important;
    margin: calc(4px + env(safe-area-inset-top)) auto 4px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .30) !important;
    border: 1px solid rgba(255, 255, 255, .48) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .10), inset 0 1px 1px rgba(255, 255, 255, .64) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
    transform: none !important;
  }

  .search-screen .simple-header strong,
  .saved-screen .simple-header strong,
  .profile-screen .simple-header strong,
  .settings-screen .simple-header strong,
  .profile-edit-screen .simple-header strong,
  .create-screen .simple-header strong {
    min-width: 0 !important;
    padding: 0 4px !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: .95rem !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .search-screen .simple-header .round-ghost,
  .saved-screen .simple-header .round-ghost,
  .profile-screen .simple-header .round-ghost,
  .settings-screen .simple-header .round-ghost,
  .profile-edit-screen .simple-header .round-ghost,
  .create-screen .simple-header .round-ghost {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: rgba(255, 255, 255, .44) !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
  }

  .create-screen .simple-header [data-open="profile"] {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .create-screen.active {
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .create-screen.active .create-event-card.event-create-flow {
    width: min(calc(100vw - 20px), 540px) !important;
    max-width: min(calc(100vw - 20px), 540px) !important;
    max-height: calc(100svh - 58px - env(safe-area-inset-top)) !important;
    margin: 2px auto 0 !important;
    padding: 14px 14px calc(82px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px !important;
  }

  .phone-shell.map-picker-open .live-map-sheet,
  .phone-shell.map-picker-open .live-map-sheet[hidden],
  .phone-shell.map-picker-open .bottom-nav,
  .phone-shell.map-picker-open .event-discovery-bar,
  .phone-shell.map-picker-open .viewport-discovery-control,
  .phone-shell.map-picker-open .user-mini-profile-trigger,
  .phone-shell.map-picker-open .notification-center-trigger {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell.map-picker-open .live-topbar {
    opacity: .96 !important;
  }

  .map-picker-pill {
    top: calc(78px + env(safe-area-inset-top)) !important;
    width: min(338px, calc(100% - 28px)) !important;
    min-height: 44px !important;
    padding: 7px 8px 7px 14px !important;
    font-size: .82rem !important;
  }

  .map-picker-pill button {
    width: 32px !important;
    height: 32px !important;
  }
}

/* v61: keep mobile map discovery visible and fixed; no collapsed/expanded jump. */
@media (max-width: 700px) {
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel {
    display: flex !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    height: calc(100% - 54px) !important;
    min-height: 0 !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    visibility: visible !important;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: translateZ(0);
    contain: layout paint;
  }

  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-discovery-empty:not([hidden]),
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .demo-events-note:not([hidden]) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
  }
}

@media (max-width: 700px) {
  .phone-shell:not(.event-selected) .live-map-sheet {
    right: 16px !important;
    bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    left: 16px !important;
    height: min(34svh, 292px) !important;
    min-height: 244px !important;
    max-height: min(34svh, 292px) !important;
    padding: 10px 12px 12px !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    transition: none !important;
    contain: layout paint;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .sheet-title {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .filter-row {
    display: none !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel {
    display: flex !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    height: calc(100% - 54px) !important;
    min-height: 0 !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    visibility: visible !important;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: translateZ(0);
    contain: layout paint;
  }

  .phone-shell:not(.event-selected) .activity-carousel::-webkit-scrollbar {
    display: none;
  }

  .phone-shell:not(.event-selected) .activity-carousel > .activity-tile {
    flex: 0 0 calc(100% - 2px) !important;
    width: calc(100% - 2px) !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .phone-shell:not(.event-selected) .event-discovery-card {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(38px, auto) auto auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    gap: 8px 10px !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-chips {
    max-height: 42px !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    grid-auto-rows: 36px !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions button,
  .phone-shell:not(.event-selected) .event-card-actions span {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .phone-shell:not(.event-selected) .event-card-save {
    width: 40px !important;
    height: 36px !important;
    padding: 0 !important;
  }

  .phone-shell:not(.event-selected) .event-card-join,
  .phone-shell:not(.event-selected) .event-card-status,
  .phone-shell:not(.event-selected) .event-card-room {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    font-size: .82rem !important;
  }
}

/* v62: tighter mobile chrome for profile/settings and safer bottom spacing. */
.profile-screen.active,
.settings-screen.active,
.profile-edit-screen.active {
  display: block !important;
  height: 100%;
  max-height: 100svh;
  overflow: hidden !important;
}

.profile-screen .simple-header,
.settings-screen .simple-header,
.profile-edit-screen .simple-header {
  position: fixed !important;
  top: max(6px, env(safe-area-inset-top)) !important;
  right: 12px !important;
  left: 12px !important;
  z-index: 92 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  width: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 4px !important;
  background: rgba(255, 255, 255, .38) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12), inset 0 1px 1px rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.16) !important;
  backdrop-filter: blur(20px) saturate(1.16) !important;
}

.profile-screen .simple-header strong,
.settings-screen .simple-header strong,
.profile-edit-screen .simple-header strong {
  padding: 0 8px !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

.profile-screen .round-ghost,
.settings-screen .round-ghost,
.profile-edit-screen .round-ghost {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 255, 255, .52) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 50% !important;
}

.profile-screen .round-ghost svg,
.settings-screen .round-ghost svg,
.profile-edit-screen .round-ghost svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 1.9 !important;
}

.travel-profile-card,
.settings-card.app-settings-card,
.profile-edit-card {
  width: min(calc(100vw - 20px), 540px) !important;
  height: calc(100svh - max(6px, env(safe-area-inset-top))) !important;
  max-height: none !important;
  margin: max(6px, env(safe-area-inset-top)) auto 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 26px 26px 0 0 !important;
  scrollbar-width: none !important;
}

.travel-profile-card,
.settings-card.app-settings-card {
  padding-top: 62px !important;
  padding-bottom: calc(146px + env(safe-area-inset-bottom)) !important;
}

.settings-card.app-settings-card {
  max-width: none !important;
  padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
}

.profile-edit-card {
  padding-top: 62px !important;
  padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
}

.profile-edit-card .edit-card-title,
.settings-card.app-settings-card > h1 {
  margin-top: 0 !important;
  font-size: clamp(1.45rem, 7vw, 2.25rem) !important;
  line-height: 1 !important;
}

.settings-card.app-settings-card > h1[hidden] {
  display: none !important;
}

.profile-edit-card .save-profile-bottom {
  position: static !important;
  bottom: auto !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 18px 0 calc(84px + env(safe-area-inset-bottom)) !important;
}

.settings-group-nav {
  position: sticky;
  top: -1px;
  z-index: 6;
  display: flex;
  gap: 8px;
  margin: 0 -14px 14px;
  padding: 8px 22px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(239, 248, 230, .92), rgba(239, 248, 230, .58));
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.settings-group-nav::-webkit-scrollbar {
  display: none;
}

.settings-group-nav button {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1;
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .74);
  appearance: none;
  cursor: pointer;
}

.settings-group-nav button.active,
.settings-group-nav button[aria-selected="true"] {
  color: #fff;
  background: #111827;
  border-color: rgba(17,24,39,.86);
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}

.settings-group-nav button:focus-visible {
  outline: 3px solid rgba(0,122,255,.34);
  outline-offset: 2px;
}

.settings-card .settings-section {
  scroll-margin-top: 82px;
}

.settings-section[hidden] {
  display: none !important;
}

.account-overview-card {
  margin-bottom: 0;
}

.account-google-card {
  background: rgba(255, 255, 255, .5);
}

.account-google-card [data-firebase-auth-status] {
  color: #0f172a;
}

.account-google-card [data-firebase-auth-message],
.account-google-card .backend-sync-status {
  grid-column: 1 / -1;
}

.bottom-nav {
  right: 14px !important;
  bottom: max(2px, env(safe-area-inset-bottom)) !important;
  left: 14px !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) !important;
  border-radius: 24px !important;
}

.bottom-nav button,
.bottom-nav button.current {
  height: 52px !important;
  min-height: 52px !important;
  grid-template-rows: 32px 13px !important;
  gap: 2px !important;
}

.bottom-nav button svg {
  width: 22px !important;
  height: 22px !important;
  padding: 4px !important;
}

.bottom-nav button span {
  font-size: 9.5px !important;
}

.bottom-nav .create-button {
  grid-template-rows: 40px 0 !important;
}

.bottom-nav .create-button .plus {
  width: 42px !important;
  height: 42px !important;
}

.phone-shell:has(.settings-screen.active) .bottom-nav {
  display: none !important;
}

@media (max-width: 380px) {
  .travel-profile-card,
  .settings-card.app-settings-card,
  .profile-edit-card {
    width: min(calc(100vw - 16px), 540px) !important;
  }

  .profile-screen .simple-header,
  .settings-screen .simple-header,
  .profile-edit-screen .simple-header {
    right: 8px !important;
    left: 8px !important;
  }

  .bottom-nav {
    right: 10px !important;
    left: 10px !important;
  }
}

@media (min-width: 720px) {
  .settings-screen .simple-header {
    width: min(calc(100vw - 48px), 760px) !important;
  }

  .settings-card.app-settings-card {
    width: min(calc(100vw - 48px), 760px) !important;
    max-width: 760px !important;
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  .settings-card .settings-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .settings-card .settings-section > strong,
  .settings-card .settings-section > small,
  .settings-card .settings-section > .settings-hint,
  .settings-card .settings-section > .auth-status-card,
  .settings-card .settings-section > .firebase-auth-card,
  .settings-card .settings-section > .backend-mode-card {
    grid-column: 1 / -1;
  }

  .settings-card .settings-section > label,
  .settings-card .settings-section > button {
    margin: 0 !important;
  }

  .settings-group-nav {
    margin-right: -16px;
    margin-left: -16px;
    padding-inline: 24px;
  }
}

.profile-screen .simple-header,
.settings-screen .simple-header,
.profile-edit-screen .simple-header {
  left: 50% !important;
  right: auto !important;
  width: min(calc(100vw - 24px), 540px) !important;
  transform: translateX(-50%) !important;
}

.bottom-nav {
  left: 50% !important;
  right: auto !important;
  width: min(calc(100vw - 28px), 540px) !important;
  transform: translateX(-50%) !important;
  z-index: 130 !important;
  pointer-events: auto !important;
}

@media (max-width: 380px) {
  .profile-screen .simple-header,
  .settings-screen .simple-header,
  .profile-edit-screen .simple-header {
    width: calc(100vw - 16px) !important;
  }

  .bottom-nav {
    width: calc(100vw - 20px) !important;
  }
}

@media (min-width: 720px) {
  .settings-screen .simple-header {
    width: min(calc(100vw - 48px), 760px) !important;
  }
}

/* v66: event detail owns the map sheet; discovery cards must not render underneath it. */
.live-map-sheet.detail-open {
  z-index: 86 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  transition: none !important;
  transform: translateZ(0) !important;
}

.live-map-sheet.detail-open .sheet-title,
.live-map-sheet.detail-open .filter-row,
.live-map-sheet.detail-open .activity-carousel,
.live-map-sheet.detail-open .event-discovery-empty,
.live-map-sheet.detail-open .demo-events-note {
  position: absolute !important;
  inset: auto !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.live-map-sheet.detail-open .activity-carousel > * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.live-map-sheet.detail-open .event-detail:not([hidden]) {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.live-map-sheet.detail-open .event-actions {
  position: relative;
  z-index: 3;
}

.phone-shell.event-selected .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 700px) {
  .phone-shell:not(.event-selected) .live-map-sheet .sheet-title,
  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell:not(.event-selected) .live-map-sheet .event-discovery-empty:not([hidden]),
  .phone-shell:not(.event-selected) .live-map-sheet .demo-events-note:not([hidden]) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel > .activity-tile {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .phone-shell.event-selected .live-map-sheet.detail-open,
  .phone-shell.sheet-open .live-map-sheet.detail-open {
    top: calc(8px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    contain: none !important;
  }
}

/* v68: compact mobile discovery so the map remains the primary surface. */
@media (max-width: 700px) {
  .user-mini-profile-trigger,
  .notification-center-trigger {
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: .66rem !important;
  }

  .user-mini-profile-trigger {
    top: calc(176px + env(safe-area-inset-top)) !important;
  }

  .notification-center-trigger {
    top: calc(222px + env(safe-area-inset-top)) !important;
    font-size: .82rem !important;
  }

  .notification-center-trigger b {
    top: -5px !important;
    right: -5px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: .56rem !important;
    line-height: 12px !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet {
    right: 18px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    left: 18px !important;
    height: min(25svh, 218px) !important;
    min-height: 184px !important;
    max-height: min(25svh, 218px) !important;
    padding: 8px 10px 10px !important;
    border-radius: 22px !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .sheet-handle {
    width: 56px !important;
    height: 5px !important;
    margin-bottom: 6px !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .sheet-title {
    margin-bottom: 6px !important;
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel {
    height: calc(100% - 40px) !important;
    gap: 8px !important;
    padding: 0 2px 4px !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel > .activity-tile {
    flex-basis: min(78%, 276px) !important;
    width: min(78%, 276px) !important;
  }

  .phone-shell:not(.event-selected) .event-discovery-card {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(24px, auto) 30px !important;
    padding: 9px !important;
    gap: 6px 8px !important;
    border-radius: 18px !important;
  }

  .phone-shell:not(.event-selected) .event-card-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }

  .phone-shell:not(.event-selected) .event-card-main b {
    font-size: .9rem !important;
    line-height: 1.08 !important;
  }

  .phone-shell:not(.event-selected) .event-card-main small,
  .phone-shell:not(.event-selected) .event-card-main em {
    font-size: .7rem !important;
    line-height: 1.15 !important;
  }

  .phone-shell:not(.event-selected) .event-card-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    max-height: 26px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-chips > * {
    min-width: 0 !important;
    max-width: 92px !important;
    height: 24px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: .66rem !important;
    line-height: 24px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions {
    grid-template-columns: minmax(0, 1fr) 34px !important;
    grid-auto-rows: 30px !important;
    gap: 6px !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions button,
  .phone-shell:not(.event-selected) .event-card-actions span {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: .72rem !important;
    line-height: 30px !important;
  }

  .phone-shell:not(.event-selected) .event-card-save {
    width: 34px !important;
    height: 30px !important;
  }

  .bottom-nav {
    min-height: 58px !important;
    height: 58px !important;
    padding-top: 5px !important;
    padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px !important;
  }

  .bottom-nav button,
  .bottom-nav button.current {
    height: 48px !important;
    min-height: 48px !important;
    grid-template-rows: 29px 12px !important;
  }

  .bottom-nav .create-button .plus {
    width: 38px !important;
    height: 38px !important;
  }
}

/* v73: offline map area and visible search radius affordance. */
.onboarding-card h1 {
  display: block;
}

.offline-map-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 18px;
  background: rgba(255,255,255,.18);
}

.offline-map-control strong,
.offline-map-control small {
  display: block;
}

.offline-map-control strong {
  color: #101827;
  font-size: .9rem;
  line-height: 1.1;
}

.offline-map-control small {
  margin-top: 4px;
  color: rgba(15,23,42,.66);
  font-size: .72rem;
  line-height: 1.25;
}

.offline-map-control button {
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

.offline-map-control button:disabled {
  cursor: wait;
  opacity: .62;
}

.mecly-radius-circle {
  filter: drop-shadow(0 0 10px rgba(22,139,255,.28));
  pointer-events: none;
}

.phone-shell.map-moving .live-topbar,
.phone-shell.map-moving .event-discovery-bar,
.phone-shell.map-moving .viewport-discovery-control,
.phone-shell.map-moving .search-pill,
.phone-shell.map-moving .live-topbar .round-ghost,
.phone-shell.map-moving .event-discovery-scroll button {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

.phone-shell.map-moving .search-pill,
.phone-shell.map-moving .live-topbar .round-ghost,
.phone-shell.map-moving .event-discovery-scroll button {
  background: rgba(255,255,255,.42) !important;
  border-color: rgba(255,255,255,.52) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
}

@media (max-width: 430px) {
  .offline-map-control {
    grid-template-columns: 1fr;
  }

  .offline-map-control button {
    width: 100%;
  }
}

/* v71: collapsed map discovery is only a small dark drag handle; expanded cards stay compact and non-overlapping. */
@media (max-width: 700px) {
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet {
    left: 50% !important;
    right: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
    cursor: pointer !important;
    contain: layout paint !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 62px !important;
    height: 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(15,23,42,.88) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 18px rgba(15,23,42,.18) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .filter-row,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .event-detail,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .event-discovery-empty,
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .demo-events-note {
    position: absolute !important;
    inset: auto !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet {
    left: 18px !important;
    right: 18px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: min(26svh, 220px) !important;
    min-height: 188px !important;
    max-height: min(26svh, 220px) !important;
    padding: 8px 10px 10px !important;
    border: 1px solid rgba(255,255,255,.54) !important;
    border-radius: 22px !important;
    background: rgba(247,252,246,.88) !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.16) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    overflow: hidden !important;
    transform: none !important;
    contain: layout paint !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .sheet-handle {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 56px !important;
    height: 5px !important;
    margin: 0 auto 7px !important;
    background: rgba(15,23,42,.24) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .sheet-title {
    display: flex !important;
    height: auto !important;
    margin: 0 0 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem !important;
    line-height: 1.1 !important;
    pointer-events: auto !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .activity-carousel {
    display: flex !important;
    height: calc(100% - 42px) !important;
    gap: 8px !important;
    padding: 0 2px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .activity-carousel > .activity-tile {
    flex: 0 0 min(68vw, 236px) !important;
    width: min(68vw, 236px) !important;
    min-width: min(68vw, 236px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-discovery-card {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    grid-template-rows: 46px 26px 30px !important;
    align-content: start !important;
    gap: 8px 8px !important;
    min-height: 132px !important;
    max-height: 142px !important;
    padding: 9px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: .96rem !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    display: grid !important;
    grid-template-rows: 22px 18px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    max-height: 42px !important;
    gap: 2px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main b,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main small,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main em {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main b {
    font-size: .88rem !important;
    line-height: 22px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main small,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main em {
    font-size: .69rem !important;
    line-height: 18px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-chips {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    height: 24px !important;
    max-height: 24px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .demo-event-chip {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: start !important;
    height: 23px !important;
    min-height: 23px !important;
    max-width: 88px !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    line-height: 23px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-chips > * {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 88px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    line-height: 23px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-actions {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    grid-auto-rows: 30px !important;
    gap: 6px !important;
    align-self: end !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-join,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-room,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-status {
    display: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-details {
    grid-column: 1 !important;
    width: 100% !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: .72rem !important;
    line-height: 30px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-save {
    grid-column: 2 !important;
    width: 32px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}

/* v74: clearer event detail actions and 75% transparent glass on selected details. */
.phone-shell.event-selected:has(.map-profile-screen.active) .live-map-sheet,
.phone-shell.event-selected .live-map-sheet.detail-open {
  background: rgba(247,252,246,.25) !important;
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.18), inset 0 1px 1px rgba(255,255,255,.30) !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16) !important;
}

.phone-shell.event-selected:has(.map-profile-screen.active) .event-detail,
.phone-shell.event-selected:has(.map-profile-screen.active) .event-detail-grid span,
.phone-shell.event-selected:has(.map-profile-screen.active) .event-modules span,
.phone-shell.event-selected:has(.map-profile-screen.active) .event-activity,
.phone-shell.event-selected:has(.map-profile-screen.active) .glass-confirmation,
.phone-shell.event-selected .event-action-group {
  background: rgba(255,255,255,.25) !important;
  border-color: rgba(255,255,255,.40) !important;
}

.phone-shell.event-selected:has(.map-profile-screen.active) .event-detail {
  box-shadow: inset 0 1px 1px rgba(255,255,255,.28) !important;
}

.phone-shell.event-selected:has(.map-profile-screen.active) .event-activity {
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24) !important;
}

.event-actions {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  align-items: stretch;
}

.event-action-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22);
}

.event-action-group-primary,
.event-action-group-social,
.event-action-group-manage {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.event-action-group-social {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-actions button {
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px;
  padding: 0 10px !important;
  border-radius: 15px !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none !important;
}

.event-actions button[hidden] {
  display: none !important;
}

.event-action-primary,
.event-actions button[data-join-event],
.event-actions button[data-event-place-route-action],
.event-actions button[data-open-event-chat] {
  color: #fff !important;
  background: rgba(13,19,34,.92) !important;
  border: 1px solid rgba(13,19,34,.88) !important;
}

.event-action-danger,
.event-actions button[data-leave-event] {
  grid-column: 1 / -1;
  color: #8a1c1c !important;
  background: rgba(255,255,255,.26) !important;
  border: 1px solid rgba(255,255,255,.44) !important;
}

.event-action-soft,
.event-actions button[data-save-event],
.event-actions button[data-share-event],
.event-actions button[data-open-invite-friends-detail] {
  color: #111827 !important;
  background: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
}

.event-action-ghost,
.event-actions button[data-edit-event],
.event-actions button[data-open-event-recap] {
  color: rgba(17,24,39,.78) !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.34) !important;
}

.event-actions button[data-save-event].saved {
  color: #fff !important;
  background: rgba(13,19,34,.92) !important;
  border-color: rgba(13,19,34,.88) !important;
}

.event-actions button:disabled,
.event-actions button[aria-disabled="true"] {
  color: rgba(17,24,39,.58) !important;
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.30) !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

.event-actions button:focus-visible {
  outline: 2px solid rgba(0,122,255,.72) !important;
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .event-action-group {
    padding: 7px;
    gap: 7px;
    border-radius: 16px;
  }

  .event-actions button {
    min-height: 40px !important;
    height: 40px;
    padding: 0 8px !important;
    font-size: .8rem !important;
  }
}

/* v76: address labels and local/Storage media previews. */
.event-place-field {
  align-content: start;
}

.event-place-field small {
  display: block;
  margin-top: 5px;
  color: rgba(17,24,39,.58);
  font-size: .72rem;
  font-weight: 780;
  line-height: 1.25;
}

.event-place-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 12px;
  color: #0f172a;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7);
}

.event-place-route-button[hidden] {
  display: none !important;
}

.event-place-route-button:focus-visible {
  outline: 3px solid rgba(0,122,255,.32);
  outline-offset: 2px;
}

.media-upload-status {
  margin-top: 7px;
  color: rgba(17,24,39,.62);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.25;
}

.photo-picker > button.has-image,
.event-photo.has-image,
.profile-post-image.has-image,
.event-room-photo-card.has-image,
.photo-thumb.has-image,
.profile-cover.has-image,
.edit-cover-preview.has-image,
.preview-avatar.has-image,
.profile-avatar.has-image,
.edit-avatar-row .photo-avatar.has-image {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.photo-picker > button.has-image {
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.66), 0 8px 18px rgba(15,23,42,.14);
}

.event-photo.has-image em {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
}

.event-room-photo-card.has-image {
  min-height: 132px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.36);
}

.event-room-photo-card.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,16,24,.05), rgba(10,16,24,.48));
  border-radius: inherit;
}

.event-room-photo-card.has-image > * {
  position: relative;
  z-index: 1;
}

.event-room-photo-card.has-image small {
  color: rgba(255,255,255,.82);
}

.app-back-toast {
  position: absolute;
  z-index: 220;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(86vw, 420px);
  padding: 11px 16px;
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: rgba(12, 18, 30, .86);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(13,20,32,.24), inset 0 1px 1px rgba(255,255,255,.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.app-back-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.phone-shell.event-selected .app-back-toast,
.phone-shell.sheet-open .app-back-toast {
  bottom: calc(26px + env(safe-area-inset-bottom));
}

.photo-thumb {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.44);
}

/* v77: soft wheel-like fade for the top horizontal discovery chips. */
.event-discovery-bar {
  overflow: visible !important;
  padding-inline: 0 !important;
}

.event-discovery-scroll {
  margin-inline: -14px !important;
  padding-inline: 20px !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 20px;
}

.event-discovery-scroll,
.event-discovery-scroll button,
.viewport-area-button,
.viewport-area-chip {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.event-discovery-scroll button {
  touch-action: pan-x;
}

.event-discovery-scroll button,
.event-discovery-scroll button b {
  transition: none !important;
}

.profile-edit-card .edit-cover-preview {
  display: block;
  margin-bottom: 2px;
}

.profile-edit-card .edit-cover-preview .photo-avatar {
  position: absolute;
  left: 16px;
  bottom: -28px;
  width: 68px;
  height: 68px;
  border: 4px solid rgba(255,255,255,.84);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=220&q=80") center / cover;
  box-shadow: 0 12px 24px rgba(15,23,42,.16);
}

.profile-edit-card .edit-upload-actions {
  margin-top: 30px;
}

/* v89: stabilize map range/filter and prevent discovery card text overlap. */
.mecly-user-pin {
  width: 20px !important;
  height: 20px !important;
  background: rgba(8,124,255,.10) !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 0 0 4px rgba(8,124,255,.10), 0 4px 12px rgba(15,23,42,.16) !important;
  transform: translate(-10px, -10px) !important;
}

.mecly-user-pin span {
  width: 9px !important;
  height: 9px !important;
  background: #087cff !important;
  border: 2px solid #fff !important;
}

.mecly-radius-circle {
  filter: none !important;
  pointer-events: none !important;
  transition: none !important;
}

.filter-panel {
  visibility: hidden !important;
  transform: none !important;
  transition: opacity .12s ease !important;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.18)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.phone-shell.filters-open .filter-panel {
  visibility: visible !important;
  transform: none !important;
}

@media (max-width: 700px) {
  .phone-shell:not(.event-selected) .live-map-sheet {
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
    backdrop-filter: blur(10px) saturate(1.06) !important;
    transition: none !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel {
    height: calc(100% - 40px) !important;
    align-items: stretch !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel > .activity-tile {
    flex: 0 0 min(74vw, 330px) !important;
    width: min(74vw, 330px) !important;
    min-width: min(74vw, 330px) !important;
    height: 100% !important;
    min-height: 0 !important;
    scroll-snap-align: start !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .phone-shell:not(.event-selected) .event-discovery-card {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: minmax(42px, auto) 28px minmax(34px, 1fr) 34px !important;
    grid-template-areas:
      "icon main"
      "chips chips"
      ". ."
      "actions actions" !important;
    align-content: stretch !important;
    gap: 7px 9px !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-icon {
    grid-area: icon !important;
    width: 34px !important;
    height: 34px !important;
    align-self: start !important;
    font-size: 1rem !important;
  }

  .phone-shell:not(.event-selected) .event-card-main {
    grid-area: main !important;
    align-self: start !important;
    min-width: 0 !important;
  }

  .phone-shell:not(.event-selected) .event-card-main b {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: .94rem !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:not(.event-selected) .event-card-main small,
  .phone-shell:not(.event-selected) .event-card-main em {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: .72rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:not(.event-selected) .event-card-chips {
    grid-area: chips !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-chip,
  .phone-shell:not(.event-selected) .event-card-status {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 96px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    line-height: 24px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px 34px !important;
    grid-auto-flow: column !important;
    grid-auto-rows: 34px !important;
    gap: 8px !important;
    align-self: end !important;
    width: 100% !important;
    height: 34px !important;
    overflow: hidden !important;
  }

  .phone-shell:not(.event-selected) .event-card-actions > * {
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    font-size: .76rem !important;
    line-height: 34px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .phone-shell:not(.event-selected) .event-card-details,
  .phone-shell:not(.event-selected) .event-card-status.joined {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .phone-shell:not(.event-selected) .event-card-status.joined {
    display: none !important;
  }

  .phone-shell:not(.event-selected) .event-card-join,
  .phone-shell:not(.event-selected) .event-card-room,
  .phone-shell:not(.event-selected) .event-card-status.full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .phone-shell:not(.event-selected) .event-card-join::before {
    content: "+";
    font-size: 1rem;
    line-height: 34px;
  }

  .phone-shell:not(.event-selected) .event-card-room::before {
    content: "↗";
    font-size: .95rem;
    line-height: 34px;
  }

  .phone-shell:not(.event-selected) .event-card-status.full::before {
    content: "×";
    font-size: 1rem;
    line-height: 34px;
  }

  .phone-shell:not(.event-selected) .event-card-save {
    grid-column: 3 !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 1.05rem !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .event-card-join,
  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .event-card-room,
  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .event-card-status.full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .event-card-status.joined {
    display: none !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .event-card-save {
    grid-column: 3 !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-join,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-room,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-status.full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-status.joined {
    display: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-save {
    grid-column: 3 !important;
  }
}

/* P0 visual stability: keep map sheets predictable and avoid stacked glass repaint artifacts. */
.phone-shell.map-point-intent-open .live-map-sheet,
.phone-shell.map-point-intent-open .event-discovery-bar,
.phone-shell.map-point-intent-open .viewport-discovery-control,
.phone-shell.map-point-intent-open .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.phone-shell.map-point-intent-open .user-mini-profile-trigger,
.phone-shell.map-point-intent-open .notification-center-trigger {
  transform: translateX(14px) scale(.94) !important;
  opacity: .28 !important;
  pointer-events: none !important;
}

.phone-shell:has(.event-room-screen.active) .bottom-nav,
.phone-shell:has(.event-recap-screen.active) .bottom-nav,
.phone-shell:has(.direct-message-screen.active) .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(calc(110% + env(safe-area-inset-bottom))) !important;
}

.phone-shell:has(.event-room-screen.active) .event-discovery-bar,
.phone-shell:has(.event-room-screen.active) .viewport-discovery-control,
.phone-shell:has(.event-room-screen.active) .user-mini-profile-trigger,
.phone-shell:has(.event-room-screen.active) .notification-center-trigger {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* v117: hidden transient sheets must not keep painting frosted layers after route/resume. */
.filter-panel[aria-hidden="true"],
.map-action-sheet[aria-hidden="true"],
.marker-action-sheet[aria-hidden="true"],
.user-mini-profile-panel[aria-hidden="true"],
.notification-center-panel[aria-hidden="true"],
.friend-profile-panel[aria-hidden="true"],
.invite-friends-sheet[aria-hidden="true"],
.group-detail-panel[aria-hidden="true"],
.create-group-sheet[aria-hidden="true"],
.nav-create-menu[aria-hidden="true"],
.post-composer-sheet[aria-hidden="true"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translate3d(0, 12px, 0) scale(.985) !important;
}

.event-share-panel[hidden],
.mecly-onboarding[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.screen:not(.active) {
  visibility: hidden !important;
  pointer-events: none !important;
}

.screen.active {
  visibility: visible !important;
}

/* Language picker: compact phone-settings style list, not clipped pills. */
.settings-card .language-panel {
  gap: 12px !important;
  padding: 10px 0 0 !important;
}

.settings-card .language-panel-label {
  padding-inline: 2px !important;
  color: rgba(15,23,42,.68) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

.settings-card .language-choice-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.settings-card .language-choice {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  color: rgba(15,23,42,.86) !important;
  background: rgba(255,255,255,.24) !important;
  border: 1px solid rgba(255,255,255,.44) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45) !important;
  text-align: left !important;
}

.settings-card .language-choice.active {
  color: #fff !important;
  background: rgba(15,23,42,.84) !important;
  border-color: rgba(15,23,42,.40) !important;
}

.settings-card .language-choice.preview {
  opacity: .72 !important;
}

.settings-card .language-choice:disabled {
  cursor: not-allowed !important;
}

.settings-card .language-choice-head {
  display: contents !important;
  min-width: 0 !important;
}

.settings-card .language-choice-head b {
  grid-column: 1 !important;
  grid-row: 1 !important;
  overflow: hidden !important;
  font-size: .95rem !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice small {
  grid-column: 1 !important;
  grid-row: 2 !important;
  overflow: hidden !important;
  color: rgba(15,23,42,.58) !important;
  font-size: .68rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice.active small {
  color: rgba(255,255,255,.78) !important;
}

.settings-card .language-choice-head em {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  padding: 5px 9px !important;
  color: rgba(15,23,42,.72) !important;
  background: rgba(255,255,255,.48) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: 999px !important;
  font-size: .66rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.settings-card .language-choice.active .language-choice-head em {
  color: rgba(15,23,42,.86) !important;
  background: rgba(255,255,255,.86) !important;
}

.settings-card .language-preview-row:empty {
  display: none !important;
}

.settings-card .language-preview-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.34) !important;
}

.settings-card .language-preview-title {
  flex: 0 0 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: rgba(15,23,42,.58) !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
}

.settings-card .language-preview-row button {
  min-height: 32px !important;
  padding: 7px 10px !important;
  color: rgba(15,23,42,.52) !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
}

.map-long-press-indicator {
  position: absolute;
  z-index: 92;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: max-content;
  max-width: 190px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-long-press-indicator[hidden] {
  display: none !important;
}

.map-long-press-indicator span {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: rgba(15,23,42,.82);
  box-shadow: 0 10px 26px rgba(15,23,42,.24);
}

.map-long-press-indicator span::after {
  display: block;
  width: 16px;
  height: 16px;
  margin: 12px auto;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.map-long-press-indicator em {
  padding: 7px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(15,23,42,.82);
  box-shadow: 0 8px 22px rgba(15,23,42,.20);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 700px) {
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet {
    height: min(24svh, 196px) !important;
    min-height: 166px !important;
    max-height: min(24svh, 196px) !important;
    padding: 7px 9px 9px !important;
    background: rgba(247,252,246,.72) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.05) !important;
    backdrop-filter: blur(8px) saturate(1.05) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.14) !important;
    will-change: auto !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .sheet-title {
    margin-bottom: 6px !important;
    font-size: .92rem !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .activity-carousel {
    height: calc(100% - 34px) !important;
    gap: 7px !important;
    padding-bottom: 2px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .activity-carousel > .activity-tile {
    flex-basis: min(66vw, 218px) !important;
    width: min(66vw, 218px) !important;
    min-width: min(66vw, 218px) !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-discovery-card {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: 40px 24px 30px !important;
    min-height: 120px !important;
    max-height: 128px !important;
    gap: 6px 7px !important;
    padding: 8px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.46) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main {
    grid-template-rows: 20px 16px !important;
    max-height: 38px !important;
    min-height: 38px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main b {
    font-size: .82rem !important;
    line-height: 20px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main small,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-main em {
    font-size: .65rem !important;
    line-height: 16px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-chips,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .demo-event-chip {
    height: 22px !important;
    max-height: 22px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-chips > *,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .demo-event-chip {
    height: 21px !important;
    max-width: 78px !important;
    padding: 0 6px !important;
    font-size: .6rem !important;
    line-height: 21px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-actions {
    grid-template-columns: minmax(0, 1fr) 30px !important;
    grid-auto-rows: 30px !important;
    height: 30px !important;
    gap: 5px !important;
  }

  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-details,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .event-card-save {
    height: 30px !important;
    min-height: 30px !important;
  }

  .phone-shell.event-selected:has(.map-profile-screen.active) .live-map-sheet,
  .phone-shell.event-selected .live-map-sheet.detail-open {
    background: rgba(247,252,246,.25) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
    backdrop-filter: blur(8px) saturate(1.04) !important;
    box-shadow: 0 16px 38px rgba(15,23,42,.14) !important;
  }

  .phone-shell.event-selected:has(.map-profile-screen.active) .event-detail,
  .phone-shell.event-selected:has(.map-profile-screen.active) .event-detail-grid span,
  .phone-shell.event-selected:has(.map-profile-screen.active) .event-modules span,
  .phone-shell.event-selected:has(.map-profile-screen.active) .event-activity,
  .phone-shell.event-selected:has(.map-profile-screen.active) .glass-confirmation,
  .phone-shell.event-selected .event-action-group {
    background: rgba(255,255,255,.25) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .live-map-sheet.detail-open .event-detail:not([hidden]) {
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  .event-actions {
    gap: 8px !important;
  }

  .event-action-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 7px !important;
    border-radius: 16px !important;
  }

  .event-actions button {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 8px !important;
    font-size: .8rem !important;
  }
}

.profile-screen.active,
.settings-screen.active,
.notifications-screen.active {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.profile-screen .simple-header,
.settings-screen .simple-header,
.notification-center-panel,
.settings-card,
.profile-card {
  background: rgba(247,252,246,.76) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.05) !important;
  backdrop-filter: blur(8px) saturate(1.05) !important;
}

@media (prefers-reduced-motion: reduce) {
  .live-map-sheet,
  .event-discovery-card,
  .event-detail,
  .filter-panel,
  .map-long-press-indicator {
    transition: none !important;
    animation: none !important;
  }
}

.phone-shell.event-selected:has(.map-profile-screen.active) .live-map-sheet,
.phone-shell.event-selected .live-map-sheet.detail-open {
  background: rgba(247,252,246,.25) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.share-panel-open):not(.create-actions-open):not(.post-composer-open):not(.map-picker-open):not(.map-point-intent-open):not(.map-action-open):not(.marker-action-open) .user-mini-profile-trigger,
.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.share-panel-open):not(.create-actions-open):not(.post-composer-open):not(.map-picker-open):not(.map-point-intent-open):not(.map-action-open):not(.marker-action-open) .notification-center-trigger {
  z-index: 104 !important;
  pointer-events: auto !important;
}

/* Settings 2.0: explicit sections, lighter surface, phone-safe save affordance. */
.settings-screen.active {
  display: block !important;
  height: 100svh !important;
  overflow: hidden !important;
}

.settings-screen .simple-header {
  top: max(6px, env(safe-area-inset-top)) !important;
  min-height: 46px !important;
  background: rgba(248, 252, 246, .58) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
}

.settings-screen .simple-header strong {
  font-size: .98rem !important;
}

.settings-card.app-settings-card {
  width: min(calc(100vw - 18px), 560px) !important;
  height: calc(100svh - max(6px, env(safe-area-inset-top))) !important;
  margin-top: max(6px, env(safe-area-inset-top)) !important;
  padding: 58px 12px calc(118px + env(safe-area-inset-bottom)) !important;
  background: rgba(247, 252, 246, .62) !important;
  border-color: rgba(255, 255, 255, .58) !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .16), inset 0 1px 1px rgba(255, 255, 255, .48) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.settings-card.app-settings-card > h1 {
  display: none !important;
}

.settings-group-nav {
  position: sticky !important;
  top: -1px !important;
  z-index: 8 !important;
  display: flex !important;
  gap: 7px !important;
  margin: 0 -12px 12px !important;
  padding: 8px 18px 11px !important;
  overflow-x: auto !important;
  background: linear-gradient(180deg, rgba(247, 252, 246, .92), rgba(247, 252, 246, .62)) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.05) !important;
  backdrop-filter: blur(10px) saturate(1.05) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(15, 23, 42, .28) transparent !important;
}

.settings-group-nav::-webkit-scrollbar {
  display: block !important;
  height: 3px !important;
}

.settings-group-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .22) !important;
  border-radius: 999px !important;
}

.settings-group-nav button {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  color: rgba(15, 23, 42, .76) !important;
  font-size: .8rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, .5) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .58) !important;
}

.settings-group-nav button.active,
.settings-group-nav button[aria-selected="true"] {
  color: #fff !important;
  background: #111827 !important;
  border-color: rgba(17, 24, 39, .86) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16) !important;
}

.settings-group-nav button:focus-visible,
.settings-card.app-settings-card button:focus-visible,
.settings-card.app-settings-card input:focus-visible,
.settings-card.app-settings-card select:focus-visible,
.settings-card.app-settings-card textarea:focus-visible,
.developer-tools summary:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .32) !important;
  outline-offset: 2px !important;
}

.settings-card .settings-section[data-settings-panel] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px !important;
  background: rgba(255, 255, 255, .34) !important;
  border: 1px solid rgba(255, 255, 255, .56) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .52) !important;
}

.settings-card .settings-section[data-settings-panel][hidden] {
  display: none !important;
}

.settings-card .settings-section > strong {
  margin: 0 0 2px !important;
  color: #0f172a !important;
  font-size: .92rem !important;
  letter-spacing: 0 !important;
}

.settings-card .settings-section label,
.settings-card .backend-mode-card,
.settings-card .auth-status-card,
.settings-card .firebase-auth-card,
.settings-card .account-actions-card,
.settings-card .language-panel,
.developer-tools {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, .42) !important;
  border: 1px solid rgba(255, 255, 255, .56) !important;
  border-radius: 16px !important;
}

.settings-card .developer-tools {
  display: none !important;
}

.settings-card .account-actions-card {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
}

.settings-card .account-actions-card button,
.settings-card .firebase-auth-actions button {
  color: rgba(15, 23, 42, .86) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .18)) !important;
  border: 1px solid rgba(255, 255, 255, .54) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 10px 18px rgba(15, 23, 42, .08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.settings-card .account-actions-card .danger-action {
  color: rgba(127, 29, 29, .92) !important;
  background: linear-gradient(180deg, rgba(254, 226, 226, .42), rgba(255, 255, 255, .18)) !important;
}

.admin-panel {
  color: #0f172a !important;
}

.admin-status-card,
.admin-queue-card,
.admin-market-card,
.admin-actions-row,
.admin-metrics-grid {
  width: 100% !important;
  min-width: 0 !important;
}

.admin-status-card {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.admin-status-card > div,
.admin-metric-card,
.admin-queue-card,
.admin-market-card {
  min-width: 0 !important;
  padding: 12px !important;
  background: rgba(255, 255, 255, .46) !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5) !important;
}

.admin-status-card small,
.admin-metric-card small,
.admin-queue-head small,
.admin-queue-row small {
  display: block !important;
  color: rgba(15, 23, 42, .58) !important;
  font-size: .72rem !important;
  font-weight: 820 !important;
  line-height: 1.25 !important;
}

.admin-status-card b,
.admin-metric-card b,
.admin-queue-head strong,
.admin-queue-row b {
  display: block !important;
  overflow: hidden !important;
  color: #0f172a !important;
  font-weight: 920 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.admin-metric-card b {
  margin-top: 4px !important;
  font-size: 1.22rem !important;
}

.admin-metric-card span {
  display: block !important;
  margin-top: 3px !important;
  overflow: hidden !important;
  color: rgba(15, 23, 42, .62) !important;
  font-size: .72rem !important;
  font-weight: 760 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-queue-card,
.admin-market-card {
  display: grid !important;
  gap: 10px !important;
}

.admin-queue-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.admin-queue-head button,
.admin-actions-row button {
  min-height: 40px !important;
  padding: 0 12px !important;
  color: rgba(15, 23, 42, .86) !important;
  background: rgba(255, 255, 255, .58) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  border-radius: 999px !important;
  font-size: .78rem !important;
  font-weight: 880 !important;
}

.admin-queue-list {
  display: grid !important;
  gap: 7px !important;
}

.admin-market-list {
  display: grid !important;
  gap: 8px !important;
  max-height: 430px !important;
  overflow: auto !important;
  padding-right: 2px !important;
  scrollbar-width: thin !important;
}

.admin-queue-row {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 9px !important;
  background: rgba(255, 255, 255, .36) !important;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  border-radius: 14px !important;
}

.admin-queue-row > span {
  display: inline-grid !important;
  min-height: 28px !important;
  place-items: center !important;
  color: #0f172a !important;
  background: rgba(223, 251, 243, .8) !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  font-weight: 920 !important;
}

.admin-inline-actions,
.admin-market-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.admin-inline-actions button,
.admin-market-actions button {
  min-height: 32px !important;
  padding: 0 10px !important;
  color: rgba(15, 23, 42, .88) !important;
  background: rgba(255, 255, 255, .62) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  font-weight: 880 !important;
}

.admin-market-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: start !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, .36) !important;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  border-radius: 14px !important;
}

.admin-market-row > span {
  display: inline-grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  color: #0f172a !important;
  background: rgba(223, 251, 243, .85) !important;
  border-radius: 12px !important;
  font-size: .78rem !important;
  font-weight: 940 !important;
}

.admin-market-row.review > span {
  background: rgba(254, 243, 199, .95) !important;
}

.admin-market-row.hidden {
  opacity: .72 !important;
}

.admin-market-row.hidden > span {
  background: rgba(226, 232, 240, .9) !important;
}

.admin-market-row.featured {
  border-color: rgba(20, 184, 166, .42) !important;
}

.admin-market-row b,
.admin-market-row small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-market-row b {
  color: #0f172a !important;
  font-size: .82rem !important;
  font-weight: 920 !important;
  white-space: nowrap !important;
}

.admin-market-row small {
  margin-top: 3px !important;
  color: rgba(15, 23, 42, .58) !important;
  font-size: .68rem !important;
  font-weight: 760 !important;
  line-height: 1.3 !important;
}

.admin-queue-row.warning > span {
  background: rgba(254, 243, 199, .92) !important;
}

.admin-queue-row.danger > span {
  color: #7f1d1d !important;
  background: rgba(254, 226, 226, .9) !important;
}

.admin-empty {
  padding: 14px !important;
  color: rgba(15, 23, 42, .62) !important;
  text-align: center !important;
  background: rgba(255, 255, 255, .32) !important;
  border: 1px dashed rgba(15, 23, 42, .14) !important;
  border-radius: 14px !important;
  font-size: .82rem !important;
  font-weight: 760 !important;
}

.admin-actions-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.settings-card .account-actions-card small {
  margin: 0 !important;
  color: rgba(15, 23, 42, .58) !important;
  font-size: .78rem !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

.settings-card .account-delete-confirm {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px !important;
  color: rgba(15, 23, 42, .86) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14)) !important;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .52), 0 12px 24px rgba(15, 23, 42, .08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.settings-card .account-delete-confirm[hidden] {
  display: none !important;
}

.settings-card .account-delete-confirm strong {
  font-size: .96rem !important;
  font-weight: 900 !important;
}

.settings-card .account-delete-confirm p {
  margin: 0 !important;
  color: rgba(15, 23, 42, .62) !important;
  font-size: .82rem !important;
  font-weight: 720 !important;
  line-height: 1.38 !important;
}

.settings-card .account-delete-confirm div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.settings-card .account-delete-confirm button {
  color: rgba(15, 23, 42, .86) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .18)) !important;
  border: 1px solid rgba(255, 255, 255, .54) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 10px 18px rgba(15, 23, 42, .08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.settings-card .account-delete-confirm .danger-action {
  color: rgba(127, 29, 29, .92) !important;
  background: linear-gradient(180deg, rgba(254, 226, 226, .42), rgba(255, 255, 255, .18)) !important;
}

.settings-card .settings-section label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
}

.settings-card .settings-section label:has(input[type="text"]),
.settings-card .settings-section label:has(textarea),
.settings-card .settings-section label:has(select) {
  grid-template-columns: 1fr !important;
}

.settings-card .settings-section label span {
  min-width: 0 !important;
  color: rgba(15, 23, 42, .78) !important;
  font-size: .86rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

.settings-card input[type="text"],
.settings-card textarea,
.settings-card select {
  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  color: #0f172a !important;
  font: inherit !important;
  background: rgba(255, 255, 255, .62) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5) !important;
}

.settings-card textarea {
  min-height: 76px !important;
  resize: vertical !important;
}

.settings-card input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  accent-color: #111827 !important;
}

.language-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
}

.language-panel-label {
  color: rgba(15, 23, 42, .72) !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
}

.language-choice-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.language-choice-list button,
.language-preview-row button,
.language-preview-row span {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
}

.language-preview-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.developer-tools {
  padding: 0 !important;
  overflow: hidden !important;
}

.developer-tools summary {
  min-height: 48px !important;
  padding: 14px !important;
  color: #0f172a !important;
  font-size: .88rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  list-style: none !important;
}

.developer-tools summary::-webkit-details-marker {
  display: none !important;
}

.developer-tools summary::after {
  float: right;
  content: "+";
  color: rgba(15, 23, 42, .55);
  font-weight: 900;
}

.developer-tools[open] summary::after {
  content: "−";
}

.developer-tools .backend-mode-card {
  margin: 0 10px 10px !important;
}

.settings-card .danger-zone > button,
.settings-card [data-save-settings] {
  width: min(100%, 320px) !important;
  min-height: 48px !important;
  justify-self: center !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

.settings-card [data-save-settings] {
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  margin: 22px auto 0 !important;
  color: rgba(15, 23, 42, .48) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .16)) !important;
  border: 1px solid rgba(255, 255, 255, .54) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 10px 18px rgba(15, 23, 42, .08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.settings-card [data-save-settings].is-dirty {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .58)) !important;
  border-color: rgba(255, 255, 255, .34) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18), 0 14px 26px rgba(15, 23, 42, .18) !important;
}

.settings-card [data-settings-status] {
  min-height: 20px !important;
  margin: 8px 0 0 !important;
  color: rgba(15, 23, 42, .7) !important;
  font-size: .82rem !important;
  font-weight: 760 !important;
  text-align: center !important;
}

@media (min-width: 720px) {
  .settings-screen .simple-header,
  .settings-card.app-settings-card {
    width: min(calc(100vw - 48px), 720px) !important;
  }

  .settings-card.app-settings-card {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .settings-card .settings-section[data-settings-panel] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .settings-card .settings-section[data-settings-panel] > strong,
  .settings-card .settings-section[data-settings-panel] > small,
  .settings-card .settings-section[data-settings-panel] > .settings-hint,
  .settings-card .settings-section[data-settings-panel] > .auth-status-card,
  .settings-card .settings-section[data-settings-panel] > .firebase-auth-card,
  .settings-card .settings-section[data-settings-panel] > .language-panel,
  .settings-card .settings-section[data-settings-panel] > .developer-tools {
    grid-column: 1 / -1 !important;
  }
}

/* Final cascade lock for the language selector. */
.settings-card .language-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 4px 0 0 !important;
}

.settings-card .language-panel-label {
  color: rgba(15, 23, 42, .70) !important;
  font-size: .8rem !important;
  font-weight: 900 !important;
}

.settings-card .language-choice-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.settings-card .language-choice {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  color: rgba(15, 23, 42, .86) !important;
  background: rgba(255, 255, 255, .24) !important;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 16px !important;
  text-align: left !important;
}

.settings-card .language-choice.active {
  color: #fff !important;
  background: rgba(15, 23, 42, .82) !important;
  border-color: rgba(15, 23, 42, .34) !important;
}

.settings-card .language-choice-head {
  display: contents !important;
}

.settings-card .language-choice-head b {
  grid-column: 1 !important;
  grid-row: 1 !important;
  overflow: hidden !important;
  font-size: .95rem !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice-head em {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  padding: 5px 9px !important;
  color: rgba(15, 23, 42, .72) !important;
  background: rgba(255, 255, 255, .70) !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
  border-radius: 999px !important;
  font-size: .66rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.settings-card .language-choice small {
  grid-column: 1 !important;
  grid-row: 2 !important;
  overflow: hidden !important;
  color: rgba(15, 23, 42, .58) !important;
  font-size: .7rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.settings-card .language-choice.active small {
  color: rgba(255, 255, 255, .78) !important;
}

.settings-card .language-preview-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  gap: 7px !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .34) !important;
}

.settings-card .language-preview-title {
  grid-column: 1 / -1 !important;
  padding: 0 !important;
  color: rgba(15, 23, 42, .58) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
}

.settings-card .language-preview-row button {
  min-height: 32px !important;
  padding: 7px 10px !important;
  color: rgba(15, 23, 42, .52) !important;
  background: rgba(255, 255, 255, .16) !important;
  border: 1px solid rgba(255, 255, 255, .30) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

/* EOF v115 lock: compact map cards and desktop search after every legacy override. */
.sheet-handle {
  width: 42px !important;
  height: 5px !important;
  margin: 0 auto 9px !important;
  background: rgba(15, 23, 42, .28) !important;
  box-shadow: none !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .sheet-handle {
  width: 48px !important;
  height: 6px !important;
  background: rgba(15, 23, 42, .74) !important;
}

@media (max-width: 700px) {
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet {
    height: min(31svh, 268px) !important;
    min-height: 214px !important;
    max-height: min(31svh, 268px) !important;
    padding: 10px 12px 11px !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel {
    height: calc(100% - 44px) !important;
    gap: 9px !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .activity-carousel > .activity-tile {
    flex-basis: min(208px, calc(100vw - 122px)) !important;
    width: min(208px, calc(100vw - 122px)) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-discovery-card {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(24px, 1fr) 28px !important;
    min-height: 154px !important;
    padding: 9px !important;
    gap: 6px 8px !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    font-size: .96rem !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-main b {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: .82rem !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-main small,
  .phone-shell.sheet-open:not(.event-selected) .event-card-main em {
    font-size: .69rem !important;
    line-height: 1.15 !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-chips {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 5px !important;
    min-height: 25px !important;
    max-height: 26px !important;
    overflow: hidden !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-chip,
  .phone-shell.sheet-open:not(.event-selected) .event-card-status {
    min-height: 23px !important;
    max-width: 92px !important;
    padding: 0 7px !important;
    font-size: .62rem !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 28px 28px !important;
    grid-auto-rows: 28px !important;
    gap: 6px !important;
    align-self: end !important;
    width: 100% !important;
    height: 28px !important;
    overflow: visible !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-actions > * {
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: .7rem !important;
    line-height: 28px !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-details {
    grid-column: 1 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, .32) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-join,
  .phone-shell.sheet-open:not(.event-selected) .event-card-room,
  .phone-shell.sheet-open:not(.event-selected) .event-card-status.full {
    grid-column: 2 !important;
    width: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    color: #fff !important;
    background: rgba(15, 23, 42, .88) !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    font-size: 0 !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-join::before {
    content: "+";
    font-size: .92rem;
    line-height: 28px;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-room::before {
    content: "\2197";
    font-size: .76rem;
    line-height: 28px;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-status.full::before {
    content: "x";
    font-size: .82rem;
    line-height: 28px;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-save {
    grid-column: 3 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    color: #101827 !important;
    background: rgba(255, 255, 255, .34) !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 10px !important;
    font-size: .82rem !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .event-card-save.saved {
    color: #fff !important;
    background: rgba(15, 23, 42, .88) !important;
  }
}

@media (min-width: 760px) {
  .search-screen.active {
    align-items: start !important;
  }

  .search-panel {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, auto) !important;
    align-items: start !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    height: auto !important;
    max-height: min(460px, calc(100svh - 118px)) !important;
    margin: 16px auto 0 !important;
    padding: 16px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  .search-panel .global-search-field {
    grid-column: 1 !important;
    min-height: 48px !important;
  }

  .search-filter-row {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .search-filter-row select {
    min-width: 132px !important;
    max-width: 160px !important;
    min-height: 48px !important;
  }

  .search-results,
  .search-panel [data-geo-status] {
    grid-column: 1 / -1 !important;
  }

  .search-results {
    max-height: 300px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-right: 2px !important;
    scrollbar-width: none !important;
  }

  .search-results::-webkit-scrollbar {
    display: none !important;
  }
}

/* EOF v115 action-size lock. */
@media (max-width: 700px) {
  .phone-shell.sheet-open:not(.event-selected) .event-card-join,
  .phone-shell.sheet-open:not(.event-selected) .event-card-room,
  .phone-shell.sheet-open:not(.event-selected) .event-card-status.full,
  .phone-shell.sheet-open:not(.event-selected) .event-card-save {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
  }
}

/* v116: compact home map controls and collapsed discovery handle. */
.live-topbar {
  left: 18px !important;
  right: auto !important;
  top: max(8px, env(safe-area-inset-top)) !important;
  width: min(720px, calc(100% - 36px)) !important;
  grid-template-columns: minmax(230px, 360px) 42px 52px 42px !important;
  gap: 7px !important;
  align-items: center !important;
}

.home-location-search,
.home-location-pill,
.search-pill.home-location-pill {
  min-width: 0 !important;
  width: 100% !important;
}

.home-location-pill,
.search-pill.home-location-pill {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  background: rgba(255,255,255,.42) !important;
  border-color: rgba(255,255,255,.62) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.64), 0 8px 18px rgba(16,24,39,.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
}

.home-location-pill input,
.home-location-pill span {
  font-size: .8rem !important;
  line-height: 1 !important;
}

.live-topbar .round-ghost,
.live-topbar .distance-button {
  width: 42px !important;
  height: 40px !important;
  min-height: 40px !important;
}

.live-topbar .distance-button {
  width: 52px !important;
  font-size: .68rem !important;
}

.event-discovery-bar {
  top: calc(50px + env(safe-area-inset-top)) !important;
  left: 18px !important;
  right: auto !important;
  width: min(650px, calc(100% - 36px)) !important;
}

.event-discovery-scroll {
  padding: 3px 1px 5px !important;
  gap: 6px !important;
}

.event-discovery-scroll button {
  min-height: 30px !important;
  padding: 0 9px 0 10px !important;
  font-size: .7rem !important;
  background: rgba(255,255,255,.34) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
}

.event-discovery-scroll button b {
  min-width: 17px !important;
  height: 17px !important;
  font-size: .62rem !important;
  line-height: 17px !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  left: 50% !important;
  right: auto !important;
  bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  width: 56px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle {
  display: block !important;
  width: 48px !important;
  height: 6px !important;
  margin: 6px auto 0 !important;
  background: rgba(15,23,42,.78) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(15,23,42,.18) !important;
}

.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-title,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .filter-row,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .activity-carousel,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-detail,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .event-discovery-empty,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .demo-events-note {
  display: none !important;
}

@media (max-width: 700px) {
  .live-topbar {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    grid-template-columns: minmax(0, 1fr) 38px 48px 38px !important;
    gap: 5px !important;
  }

  .home-location-pill,
  .search-pill.home-location-pill {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .distance-button {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .live-topbar .distance-button {
    width: 48px !important;
  }

  .event-discovery-bar {
    top: calc(44px + env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
  }

  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }
}

/* v117: override older mobile :has() discovery rules; collapsed sheet is only the dark handle. */
.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  left: 50% !important;
  right: auto !important;
  width: 56px !important;
  height: 18px !important;
  min-width: 56px !important;
  min-height: 18px !important;
  max-width: 56px !important;
  max-height: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle {
  width: 48px !important;
  height: 6px !important;
  min-width: 48px !important;
  min-height: 6px !important;
  max-width: 48px !important;
  max-height: 6px !important;
  margin: 6px auto 0 !important;
  padding: 0 !important;
  background: rgba(15,23,42,.82) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(15,23,42,.18) !important;
}

@media (max-width: 700px) {
  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
  }
}

/* v118: one clean top control row and no overlapping place suggestions. */
.live-topbar {
  z-index: 74 !important;
  width: 424px !important;
  grid-template-columns: minmax(190px, 260px) 42px 52px 42px !important;
}

.home-location-pill input {
  position: relative !important;
  z-index: 2 !important;
}

.home-location-pill span {
  transition: opacity .12s ease !important;
}

.home-location-pill:focus-within span,
.phone-shell.home-place-search-open .home-location-pill span,
.home-location-pill input:not(:placeholder-shown) + span {
  opacity: 0 !important;
}

.home-place-suggestions {
  z-index: 90 !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  right: auto !important;
  width: min(440px, calc(100vw - 36px)) !important;
  max-height: min(330px, calc(100svh - 112px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

.phone-shell.home-place-search-open .event-discovery-bar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.event-discovery-bar {
  top: max(8px, env(safe-area-inset-top)) !important;
  left: 456px !important;
  right: 18px !important;
  width: auto !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

.event-discovery-scroll {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 1px !important;
  align-items: center !important;
}

.event-discovery-scroll button {
  min-height: 28px !important;
  height: 28px !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
  bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  width: 46px !important;
  height: 15px !important;
  min-width: 46px !important;
  min-height: 15px !important;
  max-width: 46px !important;
  max-height: 15px !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle,
.phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet .sheet-handle {
  width: 38px !important;
  height: 7px !important;
  min-width: 38px !important;
  min-height: 7px !important;
  max-width: 38px !important;
  max-height: 7px !important;
  margin: 4px auto 0 !important;
  background: rgba(15,23,42,.88) !important;
}

@media (max-width: 700px) {
  .live-topbar {
    z-index: 74 !important;
    width: auto !important;
    grid-template-columns: minmax(0, 1fr) 38px 48px 38px !important;
  }

  .home-place-suggestions {
    width: calc(100vw - 20px) !important;
    max-height: min(310px, calc(100svh - 120px)) !important;
  }

  .event-discovery-bar {
    top: calc(44px + env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: 34px !important;
  }

  .phone-shell:not(.home-place-search-open) .event-discovery-scroll {
    padding: 0 !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .live-map-sheet,
  .phone-shell:not(.sheet-open):not(.event-selected) .live-map-sheet {
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
}

/* v119: mobile browser map chrome lock; no large empty discovery sheet. */
@media (max-width: 700px) {
  .live-topbar {
    left: 8px !important;
    right: auto !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 16px) !important;
    height: 36px !important;
    display: grid !important;
    grid-template-columns: minmax(128px, 168px) 32px 42px 32px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .home-location-search,
  .home-location-pill,
  .search-pill.home-location-pill {
    width: 100% !important;
    max-width: 168px !important;
  }

  .home-location-pill,
  .search-pill.home-location-pill {
    min-height: 34px !important;
    height: 34px !important;
    grid-template-columns: 16px minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
  }

  .home-location-pill svg {
    width: 14px !important;
    height: 14px !important;
  }

  .home-location-pill input,
  .home-location-pill span {
    font-size: .66rem !important;
    line-height: 1 !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .distance-button {
    width: 32px !important;
    height: 34px !important;
    min-width: 32px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  .live-topbar .distance-button {
    width: 42px !important;
    min-width: 42px !important;
    font-size: .58rem !important;
  }

  .live-topbar .round-ghost svg {
    width: 15px !important;
    height: 15px !important;
  }

  .event-discovery-bar {
    top: calc(42px + env(safe-area-inset-top)) !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    height: 28px !important;
    overflow: hidden !important;
  }

  .event-discovery-scroll {
    height: 28px !important;
    gap: 4px !important;
    padding: 0 !important;
    align-items: center !important;
  }

  .event-discovery-scroll button {
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 7px !important;
    gap: 4px !important;
    font-size: .58rem !important;
    box-shadow: none !important;
  }

  .event-discovery-scroll button b {
    min-width: 14px !important;
    height: 14px !important;
    padding: 0 4px !important;
    font-size: .52rem !important;
    line-height: 14px !important;
  }

  .home-place-suggestions {
    top: calc(100% + 6px) !important;
    width: calc(100vw - 16px) !important;
    max-height: min(292px, calc(100svh - 112px)) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet,
  .phone-shell:not(.event-selected) .live-map-sheet {
    left: 50% !important;
    right: auto !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    width: 42px !important;
    height: 14px !important;
    min-width: 42px !important;
    min-height: 14px !important;
    max-width: 42px !important;
    max-height: 14px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: translateX(-50%) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .sheet-handle,
  .phone-shell:has(.map-profile-screen.active).sheet-open:not(.event-selected) .live-map-sheet .sheet-handle,
  .phone-shell:not(.event-selected) .live-map-sheet .sheet-handle {
    display: block !important;
    width: 34px !important;
    height: 6px !important;
    min-width: 34px !important;
    min-height: 6px !important;
    max-width: 34px !important;
    max-height: 6px !important;
    margin: 4px auto 0 !important;
    padding: 0 !important;
    background: rgba(15,23,42,.90) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 7px rgba(15,23,42,.18) !important;
  }

  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .sheet-title,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .filter-row,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .event-detail,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .event-discovery-empty,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .demo-events-note,
  .phone-shell:not(.event-selected) .live-map-sheet .sheet-title,
  .phone-shell:not(.event-selected) .live-map-sheet .filter-row,
  .phone-shell:not(.event-selected) .live-map-sheet .activity-carousel,
  .phone-shell:not(.event-selected) .live-map-sheet .event-detail,
  .phone-shell:not(.event-selected) .live-map-sheet .event-discovery-empty,
  .phone-shell:not(.event-selected) .live-map-sheet .demo-events-note {
    display: none !important;
  }
}

/* v120: hard-hide collapsed meeting sheet content in mobile browser, including sheet-open. */
@media (max-width: 700px) {
  .phone-shell:not(.event-selected) .live-map-sheet > :not(.sheet-handle),
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet > :not(.sheet-handle) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell:not(.event-selected) .live-map-sheet .sheet-handle,
  .phone-shell.sheet-open:not(.event-selected) .live-map-sheet .sheet-handle {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* v121: explicit collapsed mobile sheet content kill-switch. */
@media (max-width: 700px) {
  .phone-shell .map-profile-screen.active .live-map-sheet .sheet-title,
  .phone-shell .map-profile-screen.active .live-map-sheet .filter-row,
  .phone-shell .map-profile-screen.active .live-map-sheet .activity-carousel,
  .phone-shell .map-profile-screen.active .live-map-sheet .event-detail,
  .phone-shell .map-profile-screen.active .live-map-sheet .event-discovery-empty,
  .phone-shell .map-profile-screen.active .live-map-sheet .demo-events-note {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell .map-profile-screen.active .live-map-sheet .sheet-handle {
    display: block !important;
    visibility: visible !important;
  }
}

/* v122: beat older high-specificity :has() sheet-open rules on mobile. */
@media (max-width: 700px) {
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-title,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .filter-row,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .event-detail,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .event-discovery-empty,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .demo-events-note {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet {
    left: 50% !important;
    right: auto !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    width: 42px !important;
    height: 14px !important;
    min-width: 42px !important;
    min-height: 14px !important;
    max-width: 42px !important;
    max-height: 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: translateX(-50%) !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle,
  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle {
    display: block !important;
    visibility: visible !important;
    width: 34px !important;
    height: 6px !important;
    min-width: 34px !important;
    min-height: 6px !important;
    max-width: 34px !important;
    max-height: 6px !important;
    margin: 4px auto 0 !important;
    padding: 0 !important;
    background: rgba(15,23,42,.90) !important;
    border: 0 !important;
    border-radius: 999px !important;
  }
}

/* v123: remove the collapsed Meeting map sheet entirely; render only a standalone black handle. */
.phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
.phone-shell:not(.event-selected) .map-profile-screen.active .live-map-sheet {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active::after {
  position: absolute;
  z-index: 65;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom));
  width: 34px;
  height: 6px;
  content: "";
  background: rgba(15,23,42,.92);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(15,23,42,.18);
  pointer-events: none;
  transform: translateX(-50%);
}

.phone-shell.event-selected .map-profile-screen.active::after,
.phone-shell.map-picker-open .map-profile-screen.active::after,
.phone-shell.map-point-intent-open .map-profile-screen.active::after {
  display: none !important;
}

/* v119: keep the PWA shell fixed when mobile browsers try to pinch-zoom the page. */
html,
body {
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}

body {
  position: fixed !important;
  inset: 0 !important;
}

.phone-shell {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}

.screen,
.screen.active,
.map-profile-screen,
.map-profile-screen.active {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.real-map,
.real-map .leaflet-container,
.auth-real-map,
.auth-real-map .leaflet-container,
.profile-real-map,
.profile-real-map .leaflet-container,
.leaflet-container {
  touch-action: none !important;
}

/* v120 hotfix: keep the collapsed meeting sheet clickable; v123 hid the real button. */
.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 72 !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  width: 52px !important;
  height: 20px !important;
  min-width: 52px !important;
  min-height: 20px !important;
  max-width: 52px !important;
  max-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  visibility: visible !important;
  width: 52px !important;
  height: 20px !important;
  min-width: 52px !important;
  min-height: 20px !important;
  max-width: 52px !important;
  max-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 34px;
  height: 6px;
  content: "";
  background: rgba(15, 23, 42, .92);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .18);
  transform: translateX(-50%);
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active::after,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active::after {
  display: none !important;
}

@media (max-width: 700px) {
  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active {
    position: absolute !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
  .phone-shell:not(.event-selected) .map-profile-screen.active .live-map-sheet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active::after {
    position: absolute;
    z-index: 65;
    left: 50%;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: 34px;
    height: 6px;
    content: "";
    background: rgba(15,23,42,.92);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(15,23,42,.18);
    pointer-events: none;
    transform: translateX(-50%);
  }

  .phone-shell.event-selected .map-profile-screen.active::after,
  .phone-shell.map-picker-open .map-profile-screen.active::after,
  .phone-shell.map-point-intent-open .map-profile-screen.active::after {
    display: none !important;
  }
}

/* v121 hotfix: collapsed handle is real; opened sheet shows compact meeting cards. */
.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 76 !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  width: 52px !important;
  height: 22px !important;
  min-width: 52px !important;
  min-height: 22px !important;
  max-width: 52px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 86 !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  width: min(560px, calc(100vw - 24px)) !important;
  height: 176px !important;
  min-width: min(560px, calc(100vw - 24px)) !important;
  min-height: 176px !important;
  max-width: min(560px, calc(100vw - 24px)) !important;
  max-height: min(30dvh, 190px) !important;
  padding: 8px 10px 10px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: rgba(247, 252, 246, .86) !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  transform: translateX(-50%) !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  visibility: visible !important;
  width: 52px !important;
  height: 22px !important;
  min-width: 52px !important;
  min-height: 22px !important;
  max-width: 52px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  width: 46px !important;
  height: 10px !important;
  min-width: 46px !important;
  min-height: 10px !important;
  max-width: 46px !important;
  max-height: 10px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before,
.phone-shell:not(.sheet-open):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before,
.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-handle::before {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 34px;
  height: 6px;
  content: "";
  background: rgba(15, 23, 42, .9);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .18);
  transform: translateX(-50%);
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-title,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-title {
  display: flex !important;
  visibility: visible !important;
  height: 22px !important;
  margin: 0 0 6px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-title strong,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .sheet-title strong {
  color: #101722 !important;
  font-size: .9rem !important;
  line-height: 1.1 !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel {
  display: flex !important;
  visibility: visible !important;
  height: calc(100% - 38px) !important;
  gap: 8px !important;
  padding: 0 0 2px !important;
  opacity: 1 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  pointer-events: auto !important;
  transform: none !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel > *,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel > * {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .filter-row,
.phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet .event-detail,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .filter-row,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .event-detail {
  display: none !important;
}

.phone-shell:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active::after,
.phone-shell:not(.event-selected) .map-profile-screen.active::after {
  display: none !important;
}

/* v122: profile post composer is a scrollable modal sheet and owns the bottom area. */
.phone-shell.post-composer-open .bottom-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(calc(120% + env(safe-area-inset-bottom))) !important;
}

.phone-shell.post-composer-open .post-composer-sheet[aria-hidden="false"] {
  position: absolute !important;
  z-index: 140 !important;
  top: max(92px, calc(76px + env(safe-area-inset-top))) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  max-height: none !important;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  background: rgba(247, 252, 246, .82) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18), inset 0 1px 1px rgba(255, 255, 255, .56) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.phone-shell.post-composer-open .post-composer-sheet .sheet-handle.small {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  margin: -6px auto 4px !important;
  background: rgba(15, 23, 42, .78) !important;
}

.phone-shell.post-composer-open .post-composer-sheet textarea {
  min-height: 130px !important;
  max-height: 30dvh !important;
  resize: none !important;
}

.phone-shell.post-composer-open .post-composer-grid {
  grid-template-columns: 1fr !important;
}

.phone-shell.post-composer-open .post-composer-grid button,
.phone-shell.post-composer-open .post-composer-sheet .primary-action {
  min-height: 52px !important;
  border-radius: 18px !important;
  font-size: .94rem !important;
}

@media (min-width: 720px) {
  .phone-shell.post-composer-open .post-composer-sheet[aria-hidden="false"] {
    left: 50% !important;
    width: min(560px, calc(100vw - 44px)) !important;
    transform: translateX(-50%) !important;
  }
}

/* v123: event face cover for meeting detail pages. */
.event-card-icon.has-cover {
  overflow: hidden !important;
  color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
}

.phone-shell.event-selected .event-detail {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 10px !important;
}

.phone-shell.event-selected .event-detail .event-cover {
  grid-column: 1 / -1 !important;
  position: relative !important;
  display: grid !important;
  align-items: end !important;
  width: 100% !important;
  height: min(35dvh, 245px) !important;
  min-height: 184px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 -120px 100px rgba(6, 17, 25, .42), inset 0 1px 1px rgba(255, 255, 255, .45) !important;
}

.phone-shell.event-selected .event-detail .event-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 12, 18, .04) 20%, rgba(3, 12, 18, .56) 100%);
  pointer-events: none;
}

.phone-shell.event-selected .event-detail .event-cover em {
  position: absolute !important;
  z-index: 2 !important;
  top: 12px !important;
  left: 12px !important;
  width: 42px !important;
  height: 42px !important;
  color: #10202d !important;
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
}

.event-face-data {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  padding: 12px;
}

.event-face-data span {
  min-width: 0;
  padding: 8px 9px;
  color: #ffffff;
  background: rgba(5, 17, 24, .44);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
}

.event-face-data b,
.event-face-data small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-face-data b {
  color: #ffffff;
  font-size: .82rem;
  font-weight: 880;
  line-height: 1.15;
}

.event-face-data small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .76);
  font-size: .62rem;
  font-weight: 760;
}

.phone-shell.event-selected .event-detail .event-headline {
  grid-column: 1 / -1 !important;
}

.phone-shell.event-selected .event-detail .event-headline h2 {
  margin-top: 5px !important;
  font-size: 1.32rem !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.phone-shell.event-selected .event-detail .event-headline [data-event-description] {
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 420px) {
  .phone-shell.event-selected .event-detail .event-cover {
    height: 206px !important;
    min-height: 206px !important;
  }

  .event-face-data {
    grid-template-columns: 1fr 1fr;
  }

  .event-face-data span:last-child {
    grid-column: 1 / -1;
  }
}

/* v162: professional event face and storyline. */
.phone-shell.event-selected .event-detail .event-cover {
  border: 1px solid rgba(255, 255, 255, .34) !important;
}

.phone-shell.event-selected .event-detail .event-headline {
  padding: 2px 2px 0 !important;
}

.phone-shell.event-selected .event-detail .event-headline > small {
  display: inline-flex !important;
  align-items: center !important;
  max-width: calc(100% - 84px) !important;
  min-height: 26px !important;
  padding: 5px 10px !important;
  color: #dffbf3 !important;
  background: rgba(13, 99, 90, .24) !important;
  border: 1px solid rgba(127, 233, 213, .28) !important;
  border-radius: 999px !important;
}

.phone-shell.event-selected .event-detail .event-headline h2 {
  color: var(--ink) !important;
}

.phone-shell.event-selected .event-detail .event-headline [data-event-meta] {
  color: color-mix(in srgb, var(--ink) 72%, transparent) !important;
  font-weight: 760 !important;
}

.event-face-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
}

.event-face-summary span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px;
  background: color-mix(in srgb, #fff 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-radius: 12px;
}

.event-face-summary small,
.event-face-summary b,
.event-face-summary em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-face-summary small {
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: .66rem;
  font-weight: 860;
}

.event-face-summary b {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 920;
  line-height: 1.15;
}

.event-face-summary em {
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: .68rem;
  font-style: normal;
  font-weight: 720;
}

.event-storyline {
  display: grid;
  gap: 10px;
  padding: 13px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(37, 99, 235, .08)),
    color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 16px;
}

.event-storyline > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.event-storyline small {
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: .72rem;
  font-weight: 820;
}

.event-storyline > div small {
  text-transform: none;
  letter-spacing: 0;
}

.event-storyline strong {
  color: var(--ink);
  font-size: .96rem;
  font-weight: 900;
}

.event-storyline ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-storyline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.event-storyline li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #063a37;
  font-size: .72rem;
  font-weight: 950;
  background: #dffbf3;
  border: 1px solid rgba(20, 184, 166, .32);
  border-radius: 999px;
}

.event-storyline li div {
  min-width: 0;
}

.event-storyline li b,
.event-storyline li small {
  display: block;
  min-width: 0;
}

.event-storyline li b {
  overflow: hidden;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 880;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-storyline li small {
  margin-top: 2px;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
  .event-face-summary {
    background: rgba(7, 31, 34, .92);
    border-color: rgba(127, 233, 213, .18);
  }

  .event-face-summary span {
    background: rgba(255,255,255,.055);
    border-color: rgba(127, 233, 213, .14);
  }

  .event-storyline {
    background:
      linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(59, 130, 246, .08)),
      rgba(7, 31, 34, .92);
    border-color: rgba(127, 233, 213, .18);
  }
}

@media (max-width: 420px) {
  .event-storyline {
    padding: 12px;
    border-radius: 15px;
  }

  .event-storyline > div {
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }
}

/* v163: Simple first, advanced only when needed. */
.create-mode-card,
.advanced-mode-summary {
  display: grid;
  gap: 10px;
  color: var(--ink, #0f172a);
}

.create-mode-card {
  grid-template-columns: minmax(0, 1fr) minmax(118px, .72fr);
  align-items: stretch;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .14), rgba(37, 99, 235, .07)),
    rgba(255, 255, 255, .24);
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 16px;
}

.create-mode-card > div,
.create-mode-advanced,
.advanced-mode-summary {
  min-width: 0;
  border-radius: 14px;
}

.create-mode-card > div {
  display: grid;
  gap: 3px;
  padding: 2px 0;
}

.create-mode-card span,
.advanced-mode-summary small {
  color: rgba(15, 23, 42, .64);
  font-size: .72rem;
  font-weight: 850;
}

.create-mode-card strong,
.advanced-mode-summary strong {
  overflow: hidden;
  color: #071f22;
  font-size: .98rem;
  font-weight: 920;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-mode-card small,
.advanced-mode-summary p {
  margin: 0;
  color: rgba(15, 23, 42, .70);
  font-size: .76rem;
  font-weight: 680;
  line-height: 1.35;
}

.create-mode-advanced {
  display: grid;
  gap: 3px;
  place-content: center;
  min-height: 68px;
  padding: 10px;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border: 0;
  box-shadow: 0 8px 14px rgba(15, 118, 110, .20);
}

.create-mode-advanced span,
.create-mode-advanced b {
  display: block;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-mode-advanced span {
  font-size: .7rem;
  opacity: .78;
}

.create-mode-advanced b {
  font-size: .82rem;
  font-weight: 880;
}

.advanced-mode-summary {
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .13), rgba(37, 99, 235, .08)),
    rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .46);
}

.advanced-mode-summary > div {
  display: grid;
  gap: 2px;
}

@media (max-width: 390px) {
  .create-mode-card {
    grid-template-columns: 1fr;
  }

  .create-mode-advanced {
    min-height: 52px;
    place-content: center start;
  }
}

@media (prefers-color-scheme: dark) {
  .create-mode-card,
  .advanced-mode-summary {
    background:
      linear-gradient(135deg, rgba(20, 184, 166, .15), rgba(37, 99, 235, .10)),
      rgba(6, 31, 35, .82);
    border-color: rgba(127, 233, 213, .18);
  }

  .create-mode-card span,
  .create-mode-card small,
  .advanced-mode-summary small,
  .advanced-mode-summary p {
    color: rgba(223, 251, 243, .72);
  }

  .create-mode-card strong,
  .advanced-mode-summary strong {
    color: #ecfffb;
  }
}

/* v124: keep the collapsed Meeting Map handle visible and tappable. */
.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet,
.phone-shell:not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet {
  position: absolute !important;
  z-index: 72 !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  display: grid !important;
  visibility: visible !important;
  place-items: center !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet > :not(.sheet-handle),
.phone-shell:not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet > :not(.sheet-handle) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet .sheet-handle,
.phone-shell:not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet .sheet-handle {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, .26) !important;
  border: 1px solid rgba(255, 255, 255, .46) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .14), inset 0 1px 1px rgba(255, 255, 255, .62) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
  transform: none !important;
}

.phone-shell:has(.map-profile-screen.active):not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet .sheet-handle::before,
.phone-shell:not(.sheet-open):not(.event-selected):not(.map-picker-open):not(.map-point-intent-open) .map-profile-screen.active .live-map-sheet .sheet-handle::before {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  width: 42px !important;
  height: 7px !important;
  content: "" !important;
  background: rgba(15, 23, 42, .88) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2) !important;
  transform: translateX(-50%) !important;
}

/* v125: phone map controls and Meeting Map content density. */
@media (max-width: 700px) {
  .live-topbar {
    left: max(9px, env(safe-area-inset-left)) !important;
    right: max(9px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    grid-template-columns: minmax(220px, 1fr) 38px 50px 38px !important;
    gap: 6px !important;
  }

  .live-topbar .home-location-pill,
  .live-topbar .search-pill.home-location-pill {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 9px !important;
  }

  .live-topbar .home-location-search {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .live-topbar .home-location-pill svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
  }

  .live-topbar .home-location-pill span,
  .live-topbar .home-location-pill input {
    min-width: 0 !important;
    font-size: .8rem !important;
    font-weight: 820 !important;
    white-space: nowrap !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .distance-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .live-topbar .distance-button {
    width: 50px !important;
    min-width: 50px !important;
    font-size: .75rem !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .live-map-sheet,
  .phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet {
    height: 184px !important;
    max-height: min(30dvh, 188px) !important;
    padding: 8px 10px 10px !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .demo-events-note,
  .phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .demo-events-note {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .activity-carousel,
  .phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .activity-carousel {
    display: flex !important;
    height: calc(100% - 34px) !important;
    gap: 9px !important;
    padding: 0 1px 3px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .activity-carousel > .activity-tile,
  .phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .activity-carousel > .activity-tile {
    flex: 0 0 min(236px, calc(100vw - 106px)) !important;
    width: min(236px, calc(100vw - 106px)) !important;
    min-width: min(236px, calc(100vw - 106px)) !important;
    max-width: min(236px, calc(100vw - 106px)) !important;
    height: 126px !important;
    min-height: 126px !important;
    max-height: 126px !important;
    padding: 12px !important;
    scroll-snap-align: start !important;
  }

  .phone-shell.sheet-open:has(.map-profile-screen.active):not(.event-selected) .map-profile-screen.active .event-card-actions,
  .phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .event-card-actions {
    min-height: 32px !important;
  }
}

.phone-shell.sheet-open .map-profile-screen.active .live-map-sheet .demo-events-note,
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .demo-events-note {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.activity-carousel .demo-events-note[hidden],
.phone-shell .map-profile-screen.active .activity-carousel .demo-events-note[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.phone-shell.sheet-open .map-profile-screen.active .live-map-sheet .activity-carousel > .demo-events-note[hidden],
.phone-shell.sheet-open:not(.event-selected) .map-profile-screen.active .live-map-sheet .activity-carousel > .demo-events-note[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Radius filter panel must remain above the meeting sheet while it is open. */
.phone-shell.filters-open .filter-panel {
  z-index: 960 !important;
  pointer-events: auto !important;
}

.phone-shell.filters-open .live-map-sheet {
  pointer-events: none !important;
}

/* v153 final: last-word mobile tap targets after all historical overrides. */
@media (max-width: 700px) {
  .live-topbar .search-pill {
    min-height: 44px !important;
  }

  .live-topbar .search-pill input {
    min-height: 44px !important;
    line-height: 44px !important;
  }

  .live-topbar .round-ghost,
  .live-topbar .locate-button,
  .live-topbar .distance-button {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
  }

  .live-topbar .distance-button {
    width: 56px !important;
  }

  .event-discovery-scroll button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
  }

  .event-discovery-scroll button b {
    min-width: 16px !important;
    min-height: 16px !important;
    line-height: 16px !important;
  }

  .user-mini-profile-trigger,
  .notification-center-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .notification-center-trigger b {
    min-width: 18px !important;
    height: 18px !important;
    line-height: 14px !important;
  }

  .leaflet-marker-icon.mecly-map-pin,
  .leaflet-marker-icon.background-pin {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    margin-left: -22px !important;
  }

  .mecly-map-pin span {
    width: 34px !important;
    height: 34px !important;
    margin: 5px !important;
  }
}

/* v156 final-tail: event detail close target remains finger-size after all historical overrides. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-detail-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

/* v157 final-tail: event page actions keep a reliable finger-size target. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-actions button {
  min-height: 44px !important;
  height: 44px !important;
}

/* v181 eof override: event page wins after historical duplicates. */
.phone-shell.event-selected .live-map-sheet.detail-open .event-cover {
  height: 236px !important;
  min-height: 236px !important;
}

.phone-shell.event-selected .live-map-sheet.detail-open .event-actions {
  position: relative !important;
  bottom: auto !important;
}

/* v182: unified copy and surface polish after historical overrides. */
.phone-shell,
.phone-shell button,
.phone-shell input,
.phone-shell textarea,
.phone-shell select {
  letter-spacing: 0 !important;
}

.phone-shell button,
.phone-shell input,
.phone-shell textarea,
.phone-shell select {
  font: inherit;
}

.event-detail,
.event-room-card,
.event-recap-card,
.chat-hub-panel,
.market-detail-sheet,
.settings-screen,
.settings-section,
.profile-card,
.profile-wall-card,
.saved-panel,
.filter-panel,
.map-action-sheet {
  color: var(--ink) !important;
}

.event-detail small,
.event-detail em,
.event-room-card small,
.event-room-card em,
.chat-hub-panel small,
.chat-hub-panel em,
.market-detail-sheet small,
.market-detail-sheet em,
.settings-section small,
.profile-card small,
.profile-wall-card small {
  color: color-mix(in srgb, var(--ink) 68%, transparent) !important;
}

.event-source-badge,
.demo-event-chip,
.market-card-status,
.settings-pill,
.filter-chip,
.event-discovery-scroll button,
.event-action-soft,
.event-action-ghost {
  font-weight: 820 !important;
}

.event-action-primary,
.primary-action,
.publish-button,
.market-detail-actions button,
.settings-save-button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #13b8ae, #1e68f0) !important;
  border-color: rgba(255, 255, 255, .34) !important;
}

.event-action-soft,
.event-action-ghost,
.map-place-button,
.module-inline-action,
.settings-section button:not(.settings-save-button),
.market-card,
.activity-tile {
  border-color: color-mix(in srgb, var(--line) 76%, transparent) !important;
}

.event-card-main b,
.chat-hub-item b,
.market-card-title,
.profile-post-card b,
.settings-section strong,
.event-room-title strong,
.market-detail-title {
  color: var(--ink) !important;
  font-weight: 880 !important;
}

.chat-hub-avatar {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  font-size: 0 !important;
}

.chat-hub-avatar::first-letter {
  font-size: .9rem !important;
}

@media (prefers-color-scheme: dark) {
  .event-detail,
  .event-room-card,
  .event-recap-card,
  .chat-hub-panel,
  .market-detail-sheet,
  .settings-screen,
  .settings-section,
  .profile-card,
  .profile-wall-card,
  .saved-panel,
  .filter-panel,
  .map-action-sheet {
    color: var(--ink) !important;
  }

  .event-detail small,
  .event-detail em,
  .event-room-card small,
  .event-room-card em,
  .chat-hub-panel small,
  .chat-hub-panel em,
  .market-detail-sheet small,
  .market-detail-sheet em,
  .settings-section small,
  .profile-card small,
  .profile-wall-card small {
    color: color-mix(in srgb, var(--ink) 70%, transparent) !important;
  }
}

/* v187 final override: onboarding stays light, graphic-led and not text-heavy. */
.mecly-onboarding {
  background:
    radial-gradient(circle at 22% 18%, rgba(22, 163, 154, .22), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, .16), transparent 30%),
    linear-gradient(180deg, rgba(241, 250, 248, .74), rgba(232, 244, 247, .92)) !important;
}

.onboarding-card {
  width: min(100%, 424px) !important;
  gap: 10px !important;
  padding: 16px !important;
  color: #081a20 !important;
  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(10,72,78,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 30px rgba(9,28,36,.14) !important;
}

.onboarding-card > small { order: 1 !important; }
.onboarding-map-preview { order: 2 !important; }
.onboarding-card h1 { order: 3 !important; }
.onboarding-lede { order: 4 !important; }
.onboarding-copy { order: 5 !important; }
.onboarding-points { order: 6 !important; }
.onboarding-actions { order: 7 !important; }

.onboarding-card h1 {
  max-width: 16ch !important;
  font-size: 1.68rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.onboarding-lede {
  font-size: .92rem !important;
  line-height: 1.24 !important;
}

.onboarding-copy {
  color: rgba(16,42,49,.76) !important;
  font-size: .78rem !important;
  line-height: 1.36 !important;
}

.onboarding-map-preview {
  min-height: 146px !important;
  border-color: rgba(10,72,78,.10) !important;
  border-radius: 16px !important;
}

.onboarding-route-line {
  position: absolute;
  left: 24%;
  top: 18%;
  width: 46%;
  height: 58%;
  border-right: 5px solid rgba(11,123,126,.48);
  border-bottom: 5px solid rgba(11,123,126,.48);
  border-radius: 0 0 28px 0;
  transform: rotate(-16deg);
}

.onboarding-points {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.onboarding-points span {
  display: grid !important;
  min-height: 50px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: 7px 5px !important;
}

.onboarding-points b {
  width: 24px !important;
  height: 24px !important;
  color: #0b7b7e !important;
  background: rgba(10,151,149,.12) !important;
}

.onboarding-points em {
  font-size: .64rem !important;
  line-height: 1.12 !important;
  text-align: center !important;
}

.onboarding-actions button {
  min-height: 42px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.onboarding-actions .quiet-action {
  grid-column: 1 / -1 !important;
  min-height: 38px !important;
  color: rgba(16,42,49,.72) !important;
  background: transparent !important;
  border: 0 !important;
}

.auth-more-options summary {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #0f6f73;
  background: rgba(246,251,250,.86);
  border: 1px solid rgba(16,111,115,.12);
  border-radius: 14px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 900;
  list-style: none;
}

.auth-more-options summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 390px) {
  .onboarding-card {
    gap: 8px !important;
    padding: 14px !important;
  }

  .onboarding-card h1 {
    font-size: 1.5rem !important;
  }

  .onboarding-copy {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (min-width: 720px) {
  .onboarding-card {
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr) !important;
    align-items: center !important;
    width: min(92vw, 840px) !important;
    max-height: min(720px, calc(100svh - 56px)) !important;
    padding: 22px !important;
  }

  .onboarding-card > small,
  .onboarding-card h1,
  .onboarding-lede,
  .onboarding-copy {
    grid-column: 1 !important;
  }

  .onboarding-map-preview {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
    min-height: 280px !important;
  }

  .onboarding-points,
  .onboarding-actions {
    grid-column: 1 / -1 !important;
  }
}

/* v189: People and Dating use the same calm product rhythm as the map. */
.people-hub,
.dating-hub {
  gap: 10px !important;
  color: #081a20 !important;
}

.people-hero,
.dating-hero,
.people-dating-entry,
.people-search,
.people-card,
.dating-card {
  color: #081a20 !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(10,72,78,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 22px rgba(9,28,36,.10) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

.people-hero,
.dating-hero {
  padding: 12px 13px !important;
}

.people-hero {
  grid-template-columns: minmax(0, 1fr) 46px !important;
}

.people-hero small,
.dating-hero small {
  color: #0b7b7e !important;
  font-size: .64rem !important;
  letter-spacing: .05em !important;
}

.people-hero h1,
.dating-hero h1 {
  margin-top: 3px !important;
  color: #081a20 !important;
  font-size: .98rem !important;
  line-height: 1.14 !important;
}

.dating-hero p {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: rgba(8,26,32,.68) !important;
  font-size: .74rem !important;
  line-height: 1.3 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.people-hero > span {
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: #0b7b7e !important;
  box-shadow: none !important;
}

.people-dating-entry {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  min-height: 58px !important;
  padding: 9px 11px !important;
}

.people-dating-entry span {
  width: 42px !important;
  height: 42px !important;
  color: transparent !important;
  background: rgba(236,72,153,.12) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

.people-dating-entry span::before {
  content: "\2661";
  color: #be185d;
  font-size: 1.15rem;
}

.people-dating-entry b {
  color: #081a20 !important;
  font-size: .92rem !important;
}

.people-dating-entry small {
  color: rgba(8,26,32,.62) !important;
  font-size: .7rem !important;
}

.people-search {
  min-height: 46px !important;
  border-radius: 16px !important;
}

.people-filter-row,
.dating-filter-row {
  gap: 7px !important;
  padding-bottom: 2px !important;
}

.people-filter-row button,
.dating-filter-row button {
  min-height: 34px !important;
  padding: 0 12px !important;
  color: rgba(8,26,32,.78) !important;
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(10,72,78,.10) !important;
  box-shadow: none !important;
  font-size: .72rem !important;
}

.people-filter-row button.selected,
.dating-filter-row button.selected {
  color: #fff !important;
  background: #0b7b7e !important;
}

.people-card {
  gap: 8px !important;
  padding: 11px !important;
}

.people-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
}

.people-card p {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: rgba(8,26,32,.68) !important;
  font-size: .76rem !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.people-chips span,
.dating-tags span {
  color: #0b7b7e !important;
  background: rgba(10,151,149,.10) !important;
  border-color: rgba(10,151,149,.14) !important;
  font-size: .66rem !important;
}

.people-actions button,
.dating-actions button,
.dating-profile-link {
  min-height: 36px !important;
  border-radius: 12px !important;
  color: #102a31 !important;
  background: rgba(246,251,250,.86) !important;
  border-color: rgba(10,72,78,.10) !important;
  font-size: .72rem !important;
  box-shadow: none !important;
}

.people-actions button:first-child,
.dating-actions button:nth-child(2) {
  color: #fff !important;
  background: #0b7b7e !important;
}

.dating-photo {
  min-height: 260px !important;
}

.dating-card-body {
  gap: 9px !important;
  padding: 12px !important;
}

.dating-card-body h2 {
  font-size: 1.16rem !important;
}

.dating-card-body p {
  font-size: .8rem !important;
}
