:root {
  --ink: #ded7e3;
  --muted: #b9b2be;
  --soft-muted: #8f8797;
  --accent-deep: #151318;
  --accent: #ff6b8a;
  --accent-soft: #3a2527;
  --amber: #ffb000;
  --amber-soft: #3b2c12;
  --electric: #5b5eea;
  --electric-soft: #25264a;
  --panel: #24232b;
  --field: #2b2933;
  --light: #d8d2dc;
  --paper: #17161c;
  --surface: #24232b;
  --line: #3a3844;
  --line-strong: #55515f;
  --shadow: 0 18px 42px rgba(8, 7, 10, .10);
  --shadow-strong: 0 28px 74px rgba(8, 7, 10, .16);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 90, 79, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 90, 79, .045) 1px, transparent 1px),
    linear-gradient(180deg, #19171d 0%, var(--paper) 52%, #201e27 100%);
  background-size: 34px 34px, 34px 34px, auto;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 520, "GRAD" 0, "opsz" 24;
}

.tracking-tight,
.tracking-wider,
.tracking-widest,
[class*="tracking-"] {
  letter-spacing: 0 !important;
}

.bg-surface,
.bg-background {
  background-color: var(--paper) !important;
}

.bg-surface-container-low,
.bg-surface-container,
.bg-surface-container-high,
.bg-surface-container-highest {
  background-color: #24222b !important;
}

.bg-white {
  background-color: var(--surface) !important;
}

.bg-primary {
  background-color: var(--accent) !important;
}

.text-primary {
  color: var(--accent) !important;
}

.text-secondary {
  color: var(--amber) !important;
}

.text-white {
  color: var(--light) !important;
}

.text-on-surface {
  color: var(--ink) !important;
}

.text-on-surface-variant {
  color: var(--muted) !important;
}

.border-outline-variant {
  border-color: var(--line) !important;
}

.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
  border-radius: var(--radius) !important;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(36, 35, 43, .86);
  border-bottom: 1px solid rgba(58, 56, 68, .9);
  backdrop-filter: blur(20px);
}

.app-header-inner {
  width: min(1180px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--light);
  background:
    linear-gradient(135deg, var(--accent-deep), var(--accent) 58%, var(--amber));
  border: 1px solid rgba(21, 19, 24, .10);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(255, 90, 79, .18);
}

.brand-logo svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
header a:first-child span:not(.brand-logo):not(.account-avatar) {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.brand-copy small {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 800;
}

.app-nav,
header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(255, 90, 79, .10);
  border-color: rgba(255, 90, 79, .14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.city-chip,
.account-chip,
.publish-shortcut {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 90, 79, .14);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .86);
  padding: 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.city-chip .material-symbols-outlined,
.publish-shortcut .material-symbols-outlined {
  font-size: 18px;
}

.publish-shortcut {
  background: var(--accent);
  color: #17161c;
}

.account-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: var(--light);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 90, 79, .16);
  border-radius: var(--radius);
  background: rgba(255, 90, 79, .08);
  padding: 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.bcd-hero {
  width: min(1180px, calc(100% - 28px));
  min-height: 730px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 42px;
  align-items: center;
  padding: 54px 0 42px;
}

.hero-copy h1,
.recommend-copy h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy p,
.recommend-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.site-search-shell {
  width: min(720px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .94);
  padding: 7px 7px 7px 17px;
  box-shadow: var(--shadow);
}

.site-search-shell .material-symbols-outlined {
  color: var(--accent);
}

.site-search-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.site-search-shell button,
.primary-action,
.ghost-action,
.editorial-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.site-search-shell button,
.primary-action {
  background: var(--accent);
  color: #17161c;
  box-shadow: 0 16px 34px rgba(255, 90, 79, .18);
}

.site-search-shell button:hover,
.primary-action:hover {
  background: #ff7a63;
  transform: translateY(-1px);
}

.ghost-action {
  border-color: rgba(255, 90, 79, .18);
  background: rgba(36, 35, 43, .76);
  color: var(--accent);
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 140px));
  gap: 10px;
  margin-top: 26px;
}

.hero-quick-stats div,
.trust-grid div {
  border: 1px solid rgba(255, 90, 79, .14);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .76);
  padding: 14px;
}

.hero-quick-stats strong,
.trust-grid strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.hero-quick-stats span,
.trust-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-phone-wrap {
  display: grid;
  place-items: center;
  min-height: 640px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 90, 79, .16), transparent 45%),
    linear-gradient(315deg, rgba(255, 176, 0, .14), transparent 52%),
    #25232d;
  overflow: hidden;
}

.hero-phone {
  width: min(330px, calc(100% - 28px));
  height: 632px;
  position: relative;
  border: 9px solid #0f0e12;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 30px 64px rgba(8, 7, 10, .26);
  overflow: hidden;
  animation: phoneFloat 5s ease-in-out infinite;
}

.phone-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: #0f0e12;
}

.phone-screen {
  position: relative;
  height: 100%;
  padding: 42px 15px 72px;
  overflow: hidden;
}

.phone-status,
.phone-title-row,
.phone-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  color: var(--soft-muted);
  font-size: 12px;
}

.phone-status b {
  color: var(--ink);
}

.phone-title-row {
  margin-top: 18px;
  gap: 12px;
}

.phone-title-row strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.phone-title-row span:not(.verified-mark) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.verified-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--accent);
  color: #17161c;
  animation: markPulse 2.8s ease-in-out infinite;
}

.phone-search {
  min-height: 45px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(255, 90, 79, .08);
}

.phone-search .material-symbols-outlined {
  color: var(--accent);
  font-size: 18px;
}

.phone-map {
  position: relative;
  min-height: 292px;
  margin-top: 14px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(216, 210, 220, .38) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 210, 220, .38) 1px, transparent 1px),
    #272530;
  background-size: 38px 38px;
  overflow: hidden;
}

.phone-map svg {
  position: absolute;
  inset: 18px 10px 58px;
  width: calc(100% - 20px);
  height: calc(100% - 76px);
  color: var(--accent);
}

.phone-map path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawRoute 4.2s ease-in-out infinite;
}

.map-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--amber);
  color: #17161c;
  box-shadow: 0 12px 20px rgba(8, 7, 10, .18);
  animation: pinHop 2.6s ease-in-out infinite;
}

.map-pin i {
  font-size: 17px;
}

.pin-a {
  left: 42px;
  top: 64px;
}

.pin-b {
  right: 50px;
  top: 114px;
  animation-delay: .25s;
}

.pin-c {
  left: 132px;
  bottom: 64px;
  animation-delay: .5s;
}

.map-sheet {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .94);
  padding: 12px;
  box-shadow: 0 14px 30px rgba(23, 33, 31, .10);
  animation: sheetPeek 3.4s ease-in-out infinite;
}

.map-sheet strong,
.phone-note-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.map-sheet span,
.phone-note-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.phone-note-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: var(--field);
  padding: 9px;
  box-shadow: 0 12px 26px rgba(255, 90, 79, .08);
  animation: cardLift 3.6s ease-in-out infinite;
}

.note-thumb,
.social-photo,
.floating-photo {
  background-position: center;
  background-size: cover;
}

.note-thumb {
  height: 58px;
  border-radius: var(--radius);
  background-image: linear-gradient(135deg, rgba(255, 176, 0, .82), rgba(255, 90, 79, .62)), url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=600&q=80");
}

.phone-tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62px;
  border-top: 1px solid rgba(255, 90, 79, .10);
  background: rgba(36, 35, 43, .94);
  padding: 8px 9px 10px;
  backdrop-filter: blur(16px);
}

.phone-tabbar span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 1px;
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 800;
}

.phone-tabbar i {
  font-size: 20px;
}

.phone-tabbar .is-active {
  color: var(--amber);
}

.app-section,
.recommend-compose,
.notes-feed-section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.app-section {
  padding: 52px 0;
}

.compact-section {
  padding-top: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.section-link .material-symbols-outlined {
  font-size: 18px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .82);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 0, .42);
  box-shadow: var(--shadow-strong);
}

.category-card .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 25px;
}

.category-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.category-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.split-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.nearby-panel,
.trust-panel,
.ranking-section,
.lists-section {
  border: 1px solid rgba(255, 90, 79, .10);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .74);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.area-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.area-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 90, 79, .16);
  border-radius: var(--radius);
  background: var(--field);
  padding: 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.area-pill:hover,
.area-pill.active {
  background: var(--accent);
  color: #17161c;
  transform: translateY(-1px);
}

.place-rail,
#restaurantGrid {
  display: flex;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 0 14px;
}

.place-card {
  width: 318px;
  min-width: 318px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.place-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 0, .35);
  box-shadow: var(--shadow-strong);
}

.place-image {
  position: relative;
  min-height: 216px;
  overflow: hidden;
  background-color: #2a2832;
  background-position: center;
  background-size: cover;
}

.rating-badge,
.status-badge,
.favorite-toggle,
.note-rating,
.note-save-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 210, 220, .42);
  background: rgba(36, 35, 43, .90);
  backdrop-filter: blur(12px);
}

.rating-badge {
  right: 12px;
  top: 12px;
  gap: 3px;
  border-radius: var(--radius);
  padding: 6px 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.status-badge {
  left: 12px;
  bottom: 12px;
  gap: 4px;
  border-radius: var(--radius);
  padding: 6px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.status-badge .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20;
}

.favorite-toggle {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--amber);
}

.favorite-toggle .material-symbols-outlined {
  font-size: 20px;
}

.place-body {
  padding: 16px;
}

.place-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.place-topline b {
  color: var(--accent);
}

.place-body h3 {
  margin: 8px 0 9px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
  font-weight: 900;
}

.place-location,
.note-place {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.place-location .material-symbols-outlined,
.note-place .material-symbols-outlined {
  color: var(--accent);
  font-size: 17px;
}

.place-tags,
.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag,
.note-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.trust-panel {
  position: sticky;
  top: 94px;
}

.trust-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #17161c;
  font-size: 31px;
}

.trust-panel h3 {
  margin: 18px 0 10px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}

.trust-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trust-grid {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.social-preview {
  padding-top: 30px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.social-card {
  min-height: 315px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(255, 90, 79, .10);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.social-card.tall {
  min-height: 380px;
}

.social-photo {
  min-height: 220px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.social-card.tall .social-photo {
  min-height: 282px;
}

.photo-a {
  background-image: linear-gradient(180deg, rgba(21, 19, 24, .02), rgba(21, 19, 24, .18)), url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=84");
}

.photo-b {
  background-image: linear-gradient(180deg, rgba(21, 19, 24, .02), rgba(21, 19, 24, .18)), url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=900&q=84");
}

.photo-c {
  background-image: linear-gradient(180deg, rgba(21, 19, 24, .02), rgba(21, 19, 24, .18)), url("https://images.unsplash.com/photo-1569718212165-3a8278d5f624?auto=format&fit=crop&w=900&q=84");
}

.social-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.social-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.ranking-hero-card,
#rankingHero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: #25232d;
  box-shadow: var(--shadow-strong);
}

#rankingHero .bg-gradient-to-t {
  background: linear-gradient(0deg, rgba(21, 19, 24, .90), rgba(21, 19, 24, .08)) !important;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-number {
  color: rgba(255, 176, 0, .45);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.ranking-copy h4 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.ranking-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.list-preview-grid,
#listsPreview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#listsPreview > a,
#listsGrid > a,
#listItems > a,
.review-card,
.note-empty-state,
#storeNotFound,
#listNotFound,
#favoritesEmpty,
#profileSavedEmpty,
#claimSuccess,
#claimForm,
#storeContact,
#storeDetail aside > div {
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow);
}

.loading-card {
  min-width: 310px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  color: var(--muted);
}

.recommend-app {
  background:
    linear-gradient(180deg, rgba(255, 176, 0, .07), rgba(23, 22, 28, 0) 420px);
}

.recommend-landing {
  width: min(1180px, calc(100% - 28px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .88fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 48px 0 30px;
}

.recommend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.recommend-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(255, 90, 79, .10);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(216, 210, 220, .36) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 210, 220, .36) 1px, transparent 1px),
    #272530;
  background-size: 42px 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.floating-note {
  position: absolute;
  width: 220px;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .94);
  padding: 10px;
  box-shadow: var(--shadow-strong);
  animation: cardLift 4s ease-in-out infinite;
}

.note-one {
  left: 36px;
  top: 36px;
}

.note-two {
  right: 48px;
  top: 160px;
  animation-delay: .35s;
}

.note-three {
  left: 96px;
  bottom: 42px;
  animation-delay: .7s;
}

.floating-photo {
  height: 150px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.note-one .floating-photo {
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=700&q=84");
}

.note-two .floating-photo {
  background-image: url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=700&q=84");
}

.note-three .floating-photo {
  background-image: url("https://images.unsplash.com/photo-1569718212165-3a8278d5f624?auto=format&fit=crop&w=700&q=84");
}

.floating-note strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.floating-note span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.recommend-compose {
  padding: 8px 0 0;
}

.note-form-panel {
  border: 1px solid rgba(255, 90, 79, .13);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .94);
  padding: 24px;
  box-shadow: var(--shadow-strong);
}

.note-form-header,
.note-form-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.note-form-header {
  margin-bottom: 22px;
}

.note-form-header h2 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 90, 79, .14);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--muted);
}

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

.note-form-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--field) !important;
  color: var(--ink) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, .12) !important;
  outline: 0;
}

.note-textarea-field {
  margin-top: 14px;
}

.note-form-footer {
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
}

.note-form-footer span {
  color: var(--muted);
  font-size: 12px;
}

.notes-feed-section {
  padding: 42px 0 84px;
}

.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.feed-tabs button {
  min-height: 36px;
  border: 1px solid rgba(255, 90, 79, .14);
  border-radius: var(--radius);
  background: var(--field);
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.feed-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #17161c;
}

.notes-grid {
  column-count: 3;
  column-gap: 18px;
}

.note-card {
  width: 100%;
  display: inline-block;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 0, .34);
  box-shadow: var(--shadow-strong);
}

.note-image {
  position: relative;
  min-height: 310px;
  background-color: #2a2832;
  background-position: center;
  background-size: cover;
}

.note-card:nth-child(2n) .note-image {
  min-height: 370px;
}

.note-card:nth-child(3n) .note-image {
  min-height: 250px;
}

.note-rating {
  right: 12px;
  top: 12px;
  gap: 3px;
  border-radius: var(--radius);
  padding: 6px 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.note-save-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--accent);
}

.note-body {
  padding: 17px;
}

.note-meta-row,
.note-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-meta-row {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.note-title {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.note-place {
  margin-top: 11px;
  color: var(--accent);
  font-weight: 800;
}

.note-excerpt {
  margin: 11px 0 0;
  color: #d8d2dc;
  font-size: 14px;
  line-height: 1.72;
}

.note-tag {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(255, 176, 0, .14);
}

.note-author-row {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.note-author-row > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-author-row span:not(.material-symbols-outlined):not(.account-avatar) {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.note-trust {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.note-trust .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 20;
}

.note-empty-state {
  padding: 24px;
  color: var(--muted);
}

.review-card {
  padding: 18px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--light);
  font-size: 34px;
  font-weight: 900;
  box-shadow: var(--shadow-strong);
}

.profile-stat,
.quick-action {
  border: 1px solid rgba(255, 90, 79, .12);
  border-radius: var(--radius);
  background: rgba(36, 35, 43, .86);
  padding: 18px;
  box-shadow: var(--shadow);
}

.profile-stat span {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.profile-stat small,
.quick-action small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.quick-action {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.quick-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.quick-action .material-symbols-outlined {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 30px;
}

.quick-action strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.app-footer {
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 112px;
  color: var(--muted);
  font-size: 13px;
}

.app-footer strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.app-footer span {
  display: block;
  margin-top: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: var(--accent);
  font-weight: 850;
}

.mobile-tabbar {
  display: none;
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes markPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 90, 79, .20);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(255, 90, 79, 0);
  }
}

@keyframes drawRoute {
  0% {
    stroke-dashoffset: 480;
    opacity: .32;
  }
  46%, 72% {
    stroke-dashoffset: 0;
    opacity: .82;
  }
  100% {
    stroke-dashoffset: -480;
    opacity: .32;
  }
}

@keyframes pinHop {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.06);
  }
}

@keyframes sheetPeek {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cardLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Android WebView hardening: keep the home restaurant feed as one horizontal rail. */
#restaurantGrid.liquid-place-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  grid-template-columns: none !important;
  grid-auto-columns: auto !important;
  grid-auto-flow: unset !important;
  -webkit-overflow-scrolling: touch;
}

#restaurantGrid.liquid-place-rail .place-card {
  display: block !important;
  flex: 0 0 min(82vw, 340px) !important;
  width: min(82vw, 340px) !important;
  min-width: min(82vw, 340px) !important;
  max-width: min(82vw, 340px) !important;
  grid-column: auto !important;
  white-space: normal;
}

@media (min-width: 700px) {
  #restaurantGrid.liquid-place-rail .place-card {
    flex-basis: min(44vw, 360px) !important;
    width: min(44vw, 360px) !important;
    min-width: min(44vw, 360px) !important;
    max-width: min(44vw, 360px) !important;
  }
}

@media (min-width: 1040px) {
  #restaurantGrid.liquid-place-rail .place-card {
    flex-basis: min(31vw, 360px) !important;
    width: min(31vw, 360px) !important;
    min-width: min(31vw, 360px) !important;
    max-width: min(31vw, 360px) !important;
  }
}

/* Shared inner pages in the friend-designed visual system. */
.recommend-app,
body.bg-surface > main {
  width: min(1180px, calc(100% - 40px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-top: 40px !important;
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}

body.bg-surface > main > .text-center:first-child,
#listDetail > .text-center,
#profilePage > section:first-child > div,
.recommend-copy,
.notes-feed-section,
.recommend-compose {
  position: relative;
}

body.bg-surface > main > .text-center:first-child::before,
#listDetail > .text-center::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--friend-purple), var(--friend-blue), var(--friend-coral));
  transform: translateX(-50%);
}

body.bg-surface > main h1,
.recommend-copy h1,
#listTitle {
  color: var(--friend-text) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.bg-surface > main > .text-center:first-child h1,
#listTitle {
  font-size: clamp(34px, 5vw, 58px) !important;
}

body.bg-surface > main > .text-center:first-child > span,
.recommend-copy .eyebrow,
#listDetail > .text-center + span {
  color: var(--friend-purple) !important;
}

#listsGrid,
#favoritesGrid,
#profileSavedPlaces {
  gap: 16px !important;
}

.list-index-card,
.list-glass-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--friend-border);
  border-radius: 24px;
  color: var(--friend-text);
  background: var(--friend-card);
  box-shadow: var(--friend-shadow);
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}

.list-index-card:hover,
.list-glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--friend-shadow-high);
}

.list-index-cover {
  position: relative;
  height: 210px;
  background-position: center;
  background-size: cover;
}

.list-index-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(24,24,42,.38));
}

.list-index-cover > span {
  position: absolute;
  bottom: 12px;
  left: 13px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
}

.list-index-body {
  padding: 19px 20px 21px;
}

.list-index-body h3,
.list-glass-card h3 {
  margin: 0 0 7px;
  color: var(--friend-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.list-index-body p,
.list-glass-card p {
  margin: 0 0 15px;
  color: var(--friend-muted);
  font-size: 12px;
  line-height: 1.65;
}

.list-index-body > span,
.list-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--friend-purple);
  font-size: 11px;
  font-weight: 700;
}

.list-index-body i,
.list-card-link i {
  font-size: 15px;
  font-style: normal;
}

.list-glass-card {
  min-height: 166px;
  padding: 23px 24px;
}

.list-card-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--friend-coral);
  font-size: 9px;
  font-weight: 800;
}

#favoritesEmpty,
#profileSavedEmpty,
#storeNotFound,
#listNotFound,
#claimSuccess,
#claimForm,
#reviewForm,
#storeContact,
#storeDetail aside > div,
.review-card,
.quick-action,
.profile-stat {
  border: 1px solid var(--friend-border) !important;
  border-radius: 22px !important;
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

#favoritesEmpty > a,
#storeNotFound > a,
#listNotFound > a,
#claimSuccess > a,
#claimSubmitButton,
#showReviewFormButton,
#submitReviewButton,
#claimStoreLink,
[data-install-app] {
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue)) !important;
  box-shadow: 0 9px 22px rgba(108,99,255,.22) !important;
}

#profilePage > section:first-child > div:first-child {
  border: 1px solid var(--friend-border);
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

#profilePage > section:first-child > div:last-child {
  border: 1px solid rgba(255,255,255,.56);
  color: #fff;
  background: linear-gradient(135deg, #6c63ff, #48bafe 56%, #ff8eb1) !important;
  box-shadow: 0 18px 45px rgba(108,99,255,.23) !important;
}

.profile-stat span {
  color: var(--friend-purple) !important;
}

.quick-action {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--friend-shadow-high) !important;
}

.quick-action .material-symbols-outlined {
  color: var(--friend-purple) !important;
}

.recommend-landing {
  min-height: 610px;
}

.recommend-visual,
.note-form-panel,
.note-card {
  border: 1px solid var(--friend-border) !important;
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow) !important;
}

.recommend-visual {
  background:
    linear-gradient(145deg, rgba(255,255,255,.60), rgba(255,255,255,.20)),
    radial-gradient(circle at 25% 18%, rgba(108,99,255,.22), transparent 33%),
    radial-gradient(circle at 78% 80%, rgba(255,107,138,.19), transparent 30%),
    rgba(255,255,255,.34) !important;
}

.notes-grid {
  gap: 16px;
}

.note-card {
  overflow: hidden;
  border-radius: 23px !important;
}

.note-image {
  min-height: 235px;
}

.note-body {
  padding: 16px;
}

.feed-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.feed-tabs button {
  flex: 0 0 auto;
}

#storeHeroImage {
  overflow: hidden;
  border: 1px solid var(--friend-border);
  border-radius: 28px !important;
  box-shadow: var(--friend-shadow-high);
}

#favoriteButton {
  border: 1px solid var(--friend-border);
  color: var(--friend-coral);
  background: var(--friend-card-strong) !important;
  box-shadow: var(--friend-shadow);
}

#listItems > a {
  border: 1px solid var(--friend-border) !important;
  border-radius: 22px !important;
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow) !important;
}

#claimForm input,
#claimForm select,
#claimForm textarea,
#reviewForm input,
#reviewForm select,
#reviewForm textarea,
.note-form-panel input,
.note-form-panel select,
.note-form-panel textarea {
  min-height: 48px;
  border: 1px solid rgba(184,193,222,.48) !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.72) !important;
}

.note-form-panel textarea,
#claimForm textarea,
#reviewForm textarea {
  min-height: 112px;
}

@media (max-width: 767px) {
  .recommend-app,
  body.bg-surface > main {
    width: calc(100% - 28px) !important;
    padding-top: 28px !important;
  }

  body.bg-surface > main > .text-center:first-child,
  #listDetail > .text-center {
    margin-bottom: 34px !important;
    text-align: left !important;
  }

  body.bg-surface > main > .text-center:first-child::before,
  #listDetail > .text-center::before {
    left: 0;
    transform: none;
  }

  body.bg-surface > main > .text-center:first-child h1,
  #listTitle {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  body.bg-surface > main > .text-center:first-child p,
  #listDescription {
    font-size: 13px !important;
    line-height: 1.65;
  }

  #listsGrid,
  #favoritesGrid,
  #profileSavedPlaces {
    grid-template-columns: 1fr !important;
  }

  .list-index-cover {
    height: 190px;
  }

  .recommend-landing {
    min-height: 0;
    padding-top: 12px;
  }

  .recommend-visual {
    min-height: 520px;
  }

  .notes-grid {
    column-count: 1;
  }

  #profilePage > section:first-child,
  #profilePage > section:last-child {
    grid-template-columns: 1fr !important;
  }

  #profilePage > section:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  #profilePage .quick-action {
    min-height: 138px;
  }

  #storeDetail > .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #storeHeroImage {
    height: 265px !important;
  }

  #claimForm .grid,
  #reviewForm .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1040px) {
  .app-nav,
  header nav {
    display: none !important;
  }

  .bcd-hero,
  .recommend-landing,
  .split-discovery,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-phone-wrap {
    min-height: 620px;
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-panel {
    position: static;
  }

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

  .notes-grid {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 92px;
  }

  .app-header-inner {
    width: calc(100vw - 24px);
    max-width: 540px;
    min-height: 64px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong,
  header a:first-child span:not(.brand-logo):not(.account-avatar) {
    font-size: 19px;
  }

  .city-chip,
  .publish-shortcut,
  .account-chip {
    min-height: 36px;
    padding: 0 9px;
  }

  .city-chip,
  .publish-shortcut {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  .city-chip .material-symbols-outlined,
  .publish-shortcut .material-symbols-outlined {
    font-size: 22px;
  }

  .account-chip span:not(.account-avatar) {
    display: none !important;
  }

  .account-chip {
    display: none !important;
  }

  .bcd-hero,
  .recommend-landing {
    width: calc(100vw - 24px);
    max-width: 540px;
    min-height: auto;
    gap: 24px;
    padding: 34px 0 26px;
  }

  .hero-copy,
  .recommend-copy,
  .hero-phone-wrap,
  .recommend-visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy h1,
  .recommend-copy h1 {
    width: min(100%, 360px);
    max-width: 100%;
    font-size: 32px;
    line-height: 1.12;
    word-break: break-all;
  }

  .hero-copy p,
  .recommend-copy p {
    width: min(100%, 360px);
    max-width: 360px;
    font-size: 15px;
    line-height: 1.66;
    word-break: break-all;
  }

  .site-search-shell {
    width: min(100%, 360px);
    max-width: 360px;
    grid-template-columns: 22px 1fr;
    padding: 10px 12px;
  }

  .site-search-shell button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-quick-stats {
    width: min(100%, 360px);
    max-width: 360px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-quick-stats div {
    padding: 11px;
  }

  .hero-quick-stats strong {
    font-size: 18px;
  }

  .hero-phone-wrap {
    min-height: auto;
    padding: 18px 0;
  }

  .hero-phone {
    width: 308px;
    height: 612px;
  }

  .app-section,
  .recommend-compose,
  .notes-feed-section {
    width: calc(100vw - 24px);
    max-width: 540px;
  }

  .app-section {
    padding: 34px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .category-strip,
  .social-grid,
  .list-preview-grid,
  #listsPreview {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
  }

  .category-card small {
    margin-top: 4px;
  }

  .area-filter {
    justify-content: flex-start;
  }

  .nearby-panel,
  .trust-panel,
  .ranking-section,
  .lists-section {
    padding: 16px;
  }

  .place-card {
    width: 286px;
    min-width: 286px;
  }

  .place-image {
    min-height: 188px;
  }

  .social-card,
  .social-card.tall {
    min-height: auto;
  }

  .social-photo,
  .social-card.tall .social-photo {
    min-height: 240px;
  }

  .ranking-hero-card,
  #rankingHero {
    min-height: 360px;
  }

  .recommend-visual {
    min-height: 470px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
  }

  .floating-note {
    position: relative;
    inset: auto;
    width: 172px;
  }

  .note-one {
    left: auto;
    top: auto;
  }

  .note-two {
    justify-self: start;
    margin-left: 160px;
    right: auto;
    top: auto;
  }

  .note-three {
    left: auto;
    bottom: auto;
    margin-left: 64px;
  }

  .floating-photo {
    height: 124px;
  }

  .note-form-panel {
    padding: 17px;
  }

  .note-form-header,
  .note-form-footer {
    flex-direction: column;
  }

  .note-form-grid {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    column-count: 1;
  }

  .note-card {
    margin-bottom: 16px;
  }

  .note-image,
  .note-card:nth-child(2n) .note-image,
  .note-card:nth-child(3n) .note-image {
    min-height: 262px;
  }

  .app-footer {
    width: calc(100vw - 24px);
    max-width: 540px;
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 112px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mobile-tabbar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 9998;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(255, 90, 79, .14);
    border-radius: var(--radius);
    background: rgba(36, 35, 43, .94);
    padding: 7px;
    box-shadow: 0 20px 44px rgba(8, 7, 10, .18);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    transition: background .18s ease, color .18s ease;
  }

  .mobile-tabbar .material-symbols-outlined {
    font-size: 22px;
  }

  .mobile-tabbar a.active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .service-gateway-grid,
  .service-category-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .service-gateway-card,
  .service-category-card {
    min-height: auto;
  }

  .services-hero {
    width: calc(100vw - 24px);
    max-width: 540px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 10px;
  }

  .services-copy {
    padding: 22px;
  }

  .services-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .services-copy p {
    font-size: 15px;
    line-height: 1.68;
  }

  .services-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-hero-actions .primary-action,
  .services-hero-actions .ghost-action,
  .service-form-actions .primary-action,
  .service-form-actions .ghost-action {
    width: 100%;
  }

  .service-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-kpis div {
    min-height: 76px;
    padding: 11px 8px;
  }

  .services-terminal {
    min-height: auto;
    border-radius: 18px;
    padding: 14px;
  }

  .terminal-list div {
    min-height: 72px;
  }

  .service-card-head {
    align-items: flex-start;
  }

  .service-chip-list {
    gap: 7px;
  }

  .service-chip {
    min-height: 32px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .service-message-field,
  .service-form-actions {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .hero-phone {
    width: 292px;
  }

  .phone-title-row strong {
    font-size: 21px;
  }

  .floating-note {
    width: 176px;
  }
}

/* Product polish pass: a calmer, normal app UI with a restrained warm palette. */
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("fonts/material-symbols-outlined.woff2") format("woff2");
}

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("fonts/material-symbols-rounded.woff2") format("woff2");
}

.material-symbols-outlined,
.material-symbols-rounded {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  max-width: 1em;
  overflow: hidden;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded" !important;
}

:root {
  --ink: #261f2f;
  --muted: #756b80;
  --soft-muted: #9a8fa4;
  --accent-deep: #2a2036;
  --accent: #ff4f45;
  --accent-soft: #ffe0dd;
  --amber: #f4a400;
  --amber-soft: #fff0c8;
  --electric: #4d63e9;
  --electric-soft: #e3e7ff;
  --panel: #f5f1f7;
  --field: #ebe5ef;
  --light: #f7f2f8;
  --paper: #f2edf5;
  --surface: #fbf7fc;
  --line: #dfd6e5;
  --line-strong: #c9bdcf;
  --shadow: 0 14px 34px rgba(45, 35, 55, .10);
  --shadow-strong: 0 24px 58px rgba(45, 35, 55, .16);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 79, 69, .13), transparent 31%),
    radial-gradient(circle at 92% 18%, rgba(77, 99, 233, .10), transparent 28%),
    linear-gradient(180deg, #f8f3f9 0%, #f1ebf4 48%, #eee8f2 100%);
}

.app-header {
  background: rgba(251, 247, 252, .88);
  border-bottom: 1px solid rgba(223, 214, 229, .9);
}

.brand-logo {
  color: #fff4ef;
  background: linear-gradient(135deg, #ff4f45 0%, #ff7b3d 72%, #f4a400 100%);
  border-color: rgba(255, 79, 69, .20);
  box-shadow: 0 12px 24px rgba(255, 79, 69, .22);
}

.brand-copy strong,
header a:first-child span:not(.brand-logo):not(.account-avatar),
.section-head h2,
.hero-copy h1,
.recommend-copy h1,
.phone-title-row strong,
.place-body h3,
.social-card strong,
.ranking-copy h4,
.floating-note strong,
.note-title,
.note-author-row span:not(.material-symbols-outlined):not(.account-avatar),
.quick-action strong,
.app-footer strong {
  color: var(--ink);
}

.brand-copy small,
.hero-copy p,
.recommend-copy p,
.hero-quick-stats span,
.trust-grid span,
.place-location,
.note-place,
.social-card span,
.ranking-copy p,
.floating-note span,
.note-excerpt,
.profile-stat small,
.quick-action small,
.app-footer,
.phone-status,
.phone-title-row span:not(.verified-mark),
.map-sheet span,
.phone-note-card span {
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active,
.text-primary,
.section-link,
.footer-links a {
  color: var(--accent) !important;
}

.nav-link:hover,
.nav-link.active,
.eyebrow {
  background: rgba(255, 79, 69, .10);
  border-color: rgba(255, 79, 69, .18);
}

.city-chip,
.account-chip,
.ghost-action,
.area-pill,
.feed-tabs button,
.icon-button {
  background: rgba(251, 247, 252, .78);
  border-color: rgba(223, 214, 229, .95);
  color: var(--accent);
}

.site-search-shell,
.hero-quick-stats div,
.trust-grid div,
.nearby-panel,
.trust-panel,
.ranking-section,
.lists-section,
.category-card,
.place-card,
.social-card,
#listsPreview > a,
#listsGrid > a,
#listItems > a,
.review-card,
.note-empty-state,
#storeNotFound,
#listNotFound,
#favoritesEmpty,
#profileSavedEmpty,
#claimSuccess,
#claimForm,
#storeContact,
#storeDetail aside > div,
.loading-card,
.note-card,
.note-form-panel,
.profile-stat,
.quick-action {
  background: rgba(251, 247, 252, .86) !important;
  border-color: rgba(223, 214, 229, .92);
  box-shadow: var(--shadow);
}

.category-card:hover,
.category-card.active,
.place-card:hover,
.note-card:hover,
.social-card:hover,
.quick-action:hover {
  border-color: rgba(255, 79, 69, .24);
  box-shadow: var(--shadow-strong);
}

.category-card .material-symbols-outlined,
.tag,
.eyebrow {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 79, 69, .16);
}

.publish-shortcut,
.site-search-shell button,
.primary-action,
.area-pill:hover,
.area-pill.active,
.feed-tabs button.is-active {
  background: linear-gradient(135deg, #ff4f45, #ff7b3d);
  color: #2d1820;
  border-color: rgba(255, 79, 69, .18);
  box-shadow: 0 14px 28px rgba(255, 79, 69, .22);
}

.site-search-shell button:hover,
.primary-action:hover {
  background: linear-gradient(135deg, #ff675f, #ff8d55);
}

input,
select,
textarea,
.phone-search {
  background: var(--field) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.hero-phone-wrap {
  background:
    linear-gradient(135deg, rgba(255, 79, 69, .18), transparent 42%),
    linear-gradient(315deg, rgba(77, 99, 233, .12), transparent 48%),
    rgba(251, 247, 252, .52);
  border-color: rgba(223, 214, 229, .86);
}

.hero-phone {
  border-color: #191521;
  background: #f8f4fa;
  box-shadow: 0 26px 56px rgba(45, 35, 55, .24);
}

.phone-speaker {
  background: #191521;
}

.phone-screen {
  background:
    linear-gradient(180deg, #fbf8fc, #f0eaf5);
}

.verified-mark,
.trust-icon {
  background: linear-gradient(135deg, #ff4f45, #ff7b3d);
  color: #2d1820;
}

.phone-map,
.recommend-visual {
  background:
    linear-gradient(90deg, rgba(148, 138, 159, .22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 138, 159, .22) 1px, transparent 1px),
    #f3edf7;
  border-color: rgba(223, 214, 229, .9);
}

.map-sheet,
.phone-note-card,
.floating-note {
  background: rgba(251, 247, 252, .92);
  border-color: rgba(223, 214, 229, .9);
}

.phone-tabbar {
  height: 68px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  border-top-color: rgba(223, 214, 229, .9);
  background: rgba(251, 247, 252, .95);
  padding: 7px 6px 9px;
}

.phone-tabbar span {
  min-height: 52px;
  min-width: 0;
  border-radius: var(--radius);
  color: var(--soft-muted);
  font-size: 9px;
  line-height: 1;
}

.phone-tabbar i {
  font-size: 19px;
}

.phone-tabbar .is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.rating-badge,
.status-badge,
.favorite-toggle,
.note-rating,
.note-save-badge {
  background: rgba(38, 31, 47, .76);
  border-color: rgba(247, 242, 248, .34);
}

.note-tag {
  background: var(--amber-soft);
  color: #8b6100;
  border-color: rgba(244, 164, 0, .24);
}

.recommend-app {
  background: linear-gradient(180deg, rgba(255, 79, 69, .08), rgba(242, 237, 245, 0) 460px);
}

.service-gateway {
  padding-top: 28px;
}

.service-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-gateway-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(223, 214, 229, .88);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 79, 69, .12), rgba(77, 99, 233, .06)),
    rgba(251, 247, 252, .86);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-gateway-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 69, .28);
  box-shadow: var(--shadow-strong);
}

.service-gateway-card .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff7f3;
  background: linear-gradient(135deg, #ff4f45, #ff9a48);
  font-size: 24px;
}

.service-gateway-card strong,
.service-gateway-card small {
  display: block;
}

.service-gateway-card strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.service-gateway-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.services-app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 79, 69, .12), transparent 30%),
    linear-gradient(180deg, rgba(91, 94, 234, .10), rgba(242, 237, 245, 0) 520px);
}

.services-hero {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: stretch;
}

.services-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(223, 214, 229, .9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 79, 69, .13), rgba(77, 99, 233, .08)),
    rgba(251, 247, 252, .88);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.services-copy h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 74px);
  line-height: .98;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.services-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.service-kpis div {
  min-height: 82px;
  border: 1px solid rgba(223, 214, 229, .9);
  border-radius: var(--radius);
  background: rgba(246, 241, 248, .78);
  padding: 13px;
}

.service-kpis strong,
.service-kpis span {
  display: block;
}

.service-kpis strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
}

.service-kpis span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.services-terminal {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(31, 27, 37, .18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, #1d1a23, #2a2533);
  padding: 20px;
  box-shadow: 0 28px 70px rgba(45, 35, 55, .24);
}

.terminal-top {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  color: #fff8f2;
  padding: 13px;
}

.terminal-top .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff4f45, #ffb000);
  color: #211018;
}

.terminal-top strong,
.terminal-top small {
  display: block;
}

.terminal-top strong {
  font-size: 17px;
  font-weight: 950;
}

.terminal-top small {
  margin-top: 3px;
  color: rgba(255, 248, 242, .68);
  font-size: 12px;
}

.terminal-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.terminal-list div {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 90, 79, .20), rgba(91, 94, 234, .12)),
    rgba(255, 255, 255, .07);
  padding: 15px;
}

.terminal-list b,
.terminal-list span {
  display: block;
}

.terminal-list b {
  color: #fff8f2;
  font-size: 18px;
  font-weight: 950;
}

.terminal-list span {
  margin-top: 7px;
  color: rgba(255, 248, 242, .68);
  font-size: 13px;
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-category-card,
.service-request-card,
.workflow-grid div {
  border: 1px solid rgba(223, 214, 229, .92);
  border-radius: var(--radius);
  background: rgba(251, 247, 252, .88);
  box-shadow: var(--shadow);
}

.service-category-card {
  min-height: 230px;
  padding: 18px;
}

.service-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-card-head > .material-symbols-outlined {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--service-color) 18%, transparent);
  color: var(--service-color);
  font-size: 25px;
}

.service-card-head strong,
.service-card-head small {
  display: block;
}

.service-card-head strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.service-card-head small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-chip {
  min-height: 34px;
  border: 1px solid rgba(223, 214, 229, .92);
  border-radius: var(--radius);
  background: rgba(246, 241, 248, .82);
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.service-chip:hover {
  border-color: color-mix(in srgb, var(--service-color) 34%, rgba(223, 214, 229, .92));
  color: var(--service-color);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid div {
  min-height: 148px;
  padding: 18px;
}

.workflow-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4f45, #ffb000);
  color: #25141b;
  font-size: 14px;
  font-weight: 950;
}

.workflow-grid strong,
.workflow-grid small {
  display: block;
}

.workflow-grid strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.workflow-grid small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-request-section {
  padding-bottom: 36px;
}

.service-request-card {
  padding: clamp(20px, 4vw, 34px);
}

.service-request-card label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.service-request-card input,
.service-request-card select,
.service-request-card textarea {
  margin-top: 7px;
}

.service-message-field,
.service-form-actions {
  grid-column: 1 / -1;
}

.service-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.note-form-panel {
  border-top-color: var(--accent);
}

.profile-avatar,
.account-avatar {
  background: linear-gradient(135deg, #ff4f45, #4d63e9);
  color: #fff4ef;
}

.app-footer {
  border-top-color: var(--line);
}

@media (max-width: 720px) {
  .mobile-tabbar {
    left: 50% !important;
    right: auto !important;
    width: min(360px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center;
    justify-items: stretch;
    border-color: rgba(223, 214, 229, .95);
    background: rgba(251, 247, 252, .94);
    overflow: hidden;
    padding: 5px;
    gap: 1px;
    box-shadow: 0 16px 36px rgba(45, 35, 55, .18);
  }

  .mobile-tabbar a {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-tabbar .material-symbols-outlined {
    font-size: 19px;
  }

  .mobile-tabbar a.active {
    background: var(--accent-soft);
    color: var(--accent);
  }
}

/* Final responsive app shell pass: phone-first, foldable-friendly. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.app-header {
  top: env(safe-area-inset-top, 0px);
  overflow-x: clip;
}

.app-header-inner,
.header-actions,
.publish-shortcut,
.mobile-tabbar,
.mobile-tabbar a,
.bottom-nav,
.bottom-nav a {
  min-width: 0;
}

.mobile-tabbar a,
.bottom-nav a {
  overflow: hidden;
}

.material-symbols-outlined {
  max-width: 1.15em;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.brand-logo .material-symbols-outlined,
.terminal-top .material-symbols-outlined,
.service-card-head > .material-symbols-outlined,
.workflow-grid .material-symbols-outlined {
  max-width: none;
}

.services-app {
  overflow-x: hidden;
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.services-copy h1,
.section-head h2,
.service-card-head strong,
.service-card-head small,
.service-chip,
.terminal-list b,
.terminal-list span {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  white-space: normal;
}

.service-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

@media (min-width: 721px) and (max-width: 1180px) {
  .services-hero,
  .app-section,
  .recommend-compose,
  .notes-feed-section {
    width: min(100% - 32px, 920px);
  }

  .services-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .services-terminal {
    min-height: auto;
  }

  .terminal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .app-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
  }

  .app-header-inner {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    min-height: 62px;
  }

  .brand-link {
    min-width: 0;
  }

  .brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 24px !important;
    line-height: 1;
  }

  .brand-copy small {
    max-width: 180px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .publish-shortcut {
    width: 48px !important;
    min-width: 48px;
    height: 48px;
    font-size: 0 !important;
  }

  .publish-shortcut .material-symbols-outlined {
    font-size: 25px !important;
  }

  .services-hero {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    display: block !important;
    padding: 22px 0 10px !important;
  }

  .services-copy {
    width: 100%;
    min-height: auto;
    padding: 22px !important;
  }

  .services-copy h1 {
    max-width: 100%;
    margin: 10px 0 14px;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.08 !important;
  }

  .services-copy p {
    max-width: 100%;
    font-size: 15px !important;
    line-height: 1.68 !important;
  }

  .services-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .services-hero-actions .primary-action,
  .services-hero-actions .ghost-action {
    width: 100%;
  }

  .service-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .service-kpis div {
    min-height: 74px;
    padding: 10px 6px;
  }

  .service-kpis strong {
    font-size: 20px;
  }

  .service-kpis span {
    font-size: 11px;
  }

  .services-terminal {
    width: 100%;
    min-height: auto !important;
    margin-top: 12px;
    border-radius: var(--radius) !important;
    padding: 14px !important;
  }

  .terminal-top {
    min-height: 62px;
    padding: 10px;
  }

  .terminal-top .material-symbols-outlined {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .terminal-top strong {
    font-size: 16px;
  }

  .terminal-top small {
    font-size: 11px;
  }

  .terminal-list {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .terminal-list div {
    min-height: 68px !important;
    padding: 12px;
  }

  .terminal-list b {
    font-size: 16px;
  }

  .app-section,
  .recommend-compose,
  .notes-feed-section {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
  }

  .app-section {
    padding: 28px 0 !important;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1.12;
  }

  .section-link {
    font-size: 15px;
  }

  .service-gateway-grid,
  .service-category-grid,
  .workflow-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .service-category-card {
    min-height: auto !important;
    padding: 16px !important;
  }

  .service-card-head {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 12px;
  }

  .service-card-head strong {
    font-size: 20px !important;
    line-height: 1.25;
  }

  .service-card-head small {
    margin-top: 5px;
    font-size: 13px !important;
    line-height: 1.58 !important;
  }

  .service-chip-list {
    gap: 8px;
    margin-top: 14px;
  }

  .service-chip {
    min-height: 34px;
    max-width: 100%;
    padding: 7px 10px;
    font-size: 13px !important;
    line-height: 1.35;
    text-align: left;
  }

  .workflow-grid div {
    min-height: auto;
  }

  .note-form-grid {
    grid-template-columns: 1fr !important;
  }

  .service-message-field,
  .service-form-actions {
    grid-column: auto !important;
  }

  .service-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-form-actions .primary-action,
  .service-form-actions .ghost-action {
    width: 100%;
  }

  .mobile-tabbar {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    height: auto;
    min-height: 70px;
    padding: 6px !important;
    border-radius: 16px !important;
  }

  .mobile-tabbar a {
    min-height: 58px !important;
    gap: 3px;
    font-size: 11px !important;
    line-height: 1.1;
  }

  .mobile-tabbar .material-symbols-outlined {
    font-size: 24px !important;
  }
}

@media (max-width: 380px) {
  .brand-copy strong {
    font-size: 21px !important;
  }

  .brand-copy small {
    max-width: 138px;
  }

  .services-copy h1 {
    font-size: 32px !important;
  }

  .service-kpis {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1181px) {
  .service-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Liquid Glass refresh: food reviews + explorer notes focus. */
:root {
  --ink: #172033;
  --muted: #657188;
  --soft-muted: #8b97aa;
  --accent-deep: #2d5bff;
  --accent: #ff6b8a;
  --accent-soft: rgba(255, 107, 138, .12);
  --amber: #ffb84d;
  --amber-soft: rgba(255, 184, 77, .16);
  --electric: #7c6cff;
  --electric-soft: rgba(124, 108, 255, .14);
  --aqua: #62d5ff;
  --paper: #f7fbff;
  --surface: rgba(255, 255, 255, .62);
  --field: rgba(255, 255, 255, .74);
  --panel: rgba(255, 255, 255, .72);
  --light: #ffffff;
  --line: rgba(124, 141, 166, .22);
  --line-strong: rgba(124, 141, 166, .34);
  --glass-shadow: 0 22px 70px rgba(86, 99, 133, .16);
  --glass-shadow-soft: 0 14px 34px rgba(86, 99, 133, .12);
  --radius: 22px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(98, 213, 255, .32), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(255, 107, 138, .24), transparent 30%),
    radial-gradient(circle at 78% 52%, rgba(124, 108, 255, .18), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 48%, #fff8fb 100%);
  background-size: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(116, 132, 158, .065) 1px, transparent 1px),
    linear-gradient(180deg, rgba(116, 132, 158, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 72%);
}

.app-header {
  background: rgba(255, 255, 255, .58);
  border-bottom: 1px solid rgba(255, 255, 255, .76);
  box-shadow: 0 10px 36px rgba(80, 96, 126, .08);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.app-header-inner {
  min-height: 74px;
}

.brand-logo {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .12)),
    linear-gradient(135deg, #62d5ff 0%, #7c6cff 45%, #ff6b8a 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(96, 122, 255, .24);
}

.brand-copy strong,
header a:first-child span:not(.brand-logo):not(.account-avatar) {
  color: #151d31;
  font-weight: 920;
}

.brand-copy small {
  color: var(--muted);
}

.nav-link {
  border-radius: 999px;
  color: #59657b;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #172033;
  background: rgba(255, 255, 255, .70);
  border-color: rgba(255, 255, 255, .80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px rgba(86, 99, 133, .10);
}

.city-chip,
.account-chip,
.publish-shortcut,
.section-link,
.area-pill,
.feed-tabs button {
  border-radius: 999px;
}

.city-chip,
.account-chip,
.publish-shortcut {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .68);
  color: #2d5bff;
  box-shadow: 0 10px 26px rgba(86, 99, 133, .10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.publish-shortcut,
.primary-action,
.site-search-shell button {
  background: linear-gradient(135deg, #2d5bff, #7c6cff 52%, #ff6b8a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(83, 102, 255, .22);
}

.eyebrow {
  border-color: rgba(255, 255, 255, .76);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #2d5bff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px rgba(86, 99, 133, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bcd-hero,
.recommend-landing {
  min-height: 700px;
}

.hero-copy h1,
.recommend-copy h1 {
  color: #111a2d;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-copy p,
.recommend-copy p {
  color: #5e6b80;
}

.site-search-shell {
  min-height: 62px;
  border-color: rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(255, 255, 255, .70);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.site-search-shell .material-symbols-outlined,
.section-link,
.place-location .material-symbols-outlined,
.note-place .material-symbols-outlined {
  color: #2d5bff;
}

.site-search-shell input {
  color: var(--ink);
}

.site-search-shell button,
.primary-action,
.ghost-action,
.editorial-button {
  border-radius: 999px;
}

.ghost-action {
  border-color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .58);
  color: #2d5bff;
  box-shadow: var(--glass-shadow-soft);
}

.hero-quick-stats div,
.trust-grid div,
.category-card,
.nearby-panel,
.trust-panel,
.ranking-section,
.lists-section,
.social-card,
#listsPreview > a,
#listsGrid > a,
#listItems > a,
.review-card,
.note-empty-state,
#storeNotFound,
#listNotFound,
#favoritesEmpty,
#profileSavedEmpty,
#claimSuccess,
#claimForm,
#storeContact,
#storeDetail aside > div,
.note-form-panel,
.note-card,
.place-card,
.loading-card {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .62) !important;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.hero-quick-stats strong,
.trust-grid strong,
.place-topline b,
.ranking-number {
  color: #2d5bff;
}

.hero-quick-stats span,
.trust-grid span,
.category-card small,
.trust-panel p,
.social-card span,
.ranking-copy p,
.note-excerpt,
.note-form-footer span {
  color: var(--muted);
}

.hero-phone-wrap,
.recommend-visual {
  border-color: rgba(255, 255, 255, .74);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .20)),
    radial-gradient(circle at 20% 18%, rgba(98, 213, 255, .38), transparent 36%),
    radial-gradient(circle at 80% 78%, rgba(255, 107, 138, .30), transparent 34%),
    rgba(255, 255, 255, .38);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.hero-phone {
  border-color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 26px 70px rgba(76, 91, 128, .20);
}

.phone-speaker {
  background: rgba(23, 32, 51, .14);
}

.phone-screen {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .30)),
    radial-gradient(circle at 20% 18%, rgba(98, 213, 255, .24), transparent 34%),
    radial-gradient(circle at 82% 64%, rgba(255, 107, 138, .18), transparent 30%);
}

.phone-status,
.phone-title-row span:not(.verified-mark),
.phone-search,
.map-sheet span,
.phone-note-card span,
.phone-tabbar span {
  color: var(--muted);
}

.verified-mark,
.trust-icon {
  background: linear-gradient(135deg, #62d5ff, #7c6cff 54%, #ff6b8a);
  color: #fff;
}

.phone-search,
.phone-note-card,
.map-sheet {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.phone-map {
  border-color: rgba(255, 255, 255, .72);
  background:
    linear-gradient(90deg, rgba(103, 124, 156, .10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(103, 124, 156, .10) 1px, transparent 1px),
    rgba(255, 255, 255, .38);
  background-size: 38px 38px;
}

.phone-map svg {
  color: #7c6cff;
}

.map-pin {
  border-color: rgba(255, 255, 255, .86);
  background: linear-gradient(135deg, #ffdf89, #ff8fb0);
  color: #172033;
}

.phone-tabbar,
.mobile-tabbar {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 42px rgba(86, 99, 133, .16);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

.phone-tabbar .is-active,
.mobile-tabbar a.active {
  color: #2d5bff;
}

.category-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  min-height: 126px;
}

.category-card:hover,
.category-card.active,
.place-card:hover,
.note-card:hover,
.social-card:hover {
  border-color: rgba(255, 255, 255, .92);
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow);
}

.category-card .material-symbols-outlined {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .18)),
    linear-gradient(135deg, rgba(98, 213, 255, .26), rgba(255, 107, 138, .20));
  color: #2d5bff;
}

.category-card strong,
.place-body h3,
.trust-panel h3,
.social-card strong,
.ranking-copy h4,
.note-title,
.floating-note strong,
.note-form-header h2 {
  color: var(--ink);
}

.area-pill {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .58);
  color: #2d5bff;
  box-shadow: 0 8px 22px rgba(86, 99, 133, .08);
}

.area-pill:hover,
.area-pill.active,
.feed-tabs button.is-active {
  background: linear-gradient(135deg, #2d5bff, #7c6cff);
  border-color: rgba(255, 255, 255, .86);
  color: #fff;
}

.place-image,
.note-image,
.ranking-hero-card,
#rankingHero {
  background-color: rgba(213, 225, 246, .46);
}

.rating-badge,
.status-badge,
.favorite-toggle,
.note-rating,
.note-save-badge {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .68);
  color: #2d5bff;
  box-shadow: 0 10px 26px rgba(86, 99, 133, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rating-badge,
.note-rating,
.favorite-toggle {
  color: #ff8a00;
}

.status-badge {
  color: #2d5bff;
}

.tag,
.note-tag {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .54);
  color: #59657b;
}

.note-tag {
  color: #7c4dff;
}

.note-form-panel {
  border-top-color: rgba(255, 255, 255, .78);
}

input,
select,
textarea {
  border-color: rgba(255, 255, 255, .78) !important;
  background: rgba(255, 255, 255, .70) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(45, 91, 255, .42) !important;
  box-shadow: 0 0 0 4px rgba(45, 91, 255, .12) !important;
}

.recommend-app {
  background: transparent;
}

.floating-note {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .64);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.feed-tabs button {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .56);
  color: #647086;
}

#rankingHero .bg-gradient-to-t {
  background: linear-gradient(0deg, rgba(17, 26, 45, .78), rgba(17, 26, 45, .04)) !important;
}

.profile-avatar,
.account-avatar {
  background: linear-gradient(135deg, #62d5ff, #7c6cff 54%, #ff6b8a);
  color: #fff;
}

.profile-stat,
.quick-action {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--glass-shadow-soft);
}

.app-footer {
  border-top-color: rgba(124, 141, 166, .18);
}

.footer-links a {
  color: #2d5bff;
}

@media (max-width: 1040px) {
  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bcd-hero,
  .recommend-landing {
    padding-top: 22px;
  }

  .hero-copy h1,
  .recommend-copy h1 {
    width: 100%;
    font-size: clamp(34px, 9.8vw, 44px);
    line-height: 1.08;
    word-break: normal;
  }

  .hero-copy p,
  .recommend-copy p {
    width: 100%;
    max-width: none;
    word-break: normal;
  }

  .site-search-shell {
    width: 100%;
    max-width: none;
    border-radius: 26px;
  }

  .hero-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommend-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recommend-actions .primary-action,
  .recommend-actions .ghost-action {
    width: 100%;
  }

  .hero-phone-wrap,
  .recommend-visual {
    min-height: 560px;
    border-radius: 30px;
  }

  .hero-phone {
    height: 588px;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    min-height: 118px;
  }

  .split-discovery {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    overflow: hidden;
  }

  .nearby-panel,
  .trust-panel,
  .ranking-section,
  .lists-section,
  .note-form-panel {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-head {
    min-width: 0;
  }

  .place-rail,
  #restaurantGrid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .notes-grid {
    column-count: 1;
  }

  .social-grid,
  .list-preview-grid,
  #listsPreview,
  .note-form-grid {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    border-radius: 24px !important;
  }
}

@media (max-width: 380px) {
  .hero-quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Friend design implementation: iOS-style light liquid glass. */
:root {
  --friend-bg: #f5f7fc;
  --friend-card: rgba(255, 255, 255, .72);
  --friend-card-strong: rgba(255, 255, 255, .86);
  --friend-border: rgba(255, 255, 255, .88);
  --friend-line: rgba(184, 193, 222, .36);
  --friend-text: #1a1a2e;
  --friend-muted: #777993;
  --friend-purple: #6c63ff;
  --friend-blue: #48bafe;
  --friend-coral: #ff6b8a;
  --friend-orange: #ff8e53;
  --friend-gold: #ffba42;
  --friend-teal: #11cdb1;
  --friend-shadow: 0 12px 34px rgba(89, 96, 147, .10);
  --friend-shadow-high: 0 22px 58px rgba(89, 96, 147, .16);
}

html {
  background: var(--friend-bg);
}

body.app-body,
body.bg-surface {
  color: var(--friend-text);
  background: linear-gradient(145deg, #f8f9ff 0%, #f3f6fc 45%, #fff7fb 100%) fixed !important;
}

body.app-body::before,
body.bg-surface::before {
  display: none;
}

.app-header,
body.bg-surface > header {
  height: auto !important;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(245, 247, 252, .76) !important;
  box-shadow: 0 5px 22px rgba(95, 105, 145, .06) !important;
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.app-header-inner,
body.bg-surface > header > div {
  width: min(1180px, calc(100% - 32px)) !important;
  min-height: 64px !important;
  height: auto !important;
  margin: 0 auto;
  padding: 8px 0 !important;
}

.brand-link,
.shell-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-app-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(108, 99, 255, .16);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--friend-text) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--friend-muted) !important;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.header-icon-button,
.account-chip,
.publish-shortcut {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--friend-border) !important;
  border-radius: 50% !important;
  color: var(--friend-purple) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 4px 14px rgba(89, 96, 147, .08) !important;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
}

.header-icon-button:hover,
.account-chip:hover,
.publish-shortcut:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(89, 96, 147, .13) !important;
}

.account-chip .account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.account-chip > span:not(.account-avatar) {
  display: none !important;
}

.liquid-main {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px 0 calc(118px + env(safe-area-inset-bottom, 0px));
  overflow: clip;
}

.liquid-hero {
  padding: 34px 20px 26px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(108, 99, 255, .14);
  border-radius: 999px;
  color: var(--friend-purple);
  background: rgba(108, 99, 255, .07);
  font-size: 11px;
  font-weight: 700;
}

.hero-badge .material-symbols-rounded {
  font-size: 15px;
  font-variation-settings: 'FILL' 1;
}

.liquid-hero h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--friend-text);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.liquid-hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--friend-purple), var(--friend-blue) 48%, var(--friend-coral));
  background-clip: text;
  -webkit-background-clip: text;
}

.liquid-hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--friend-muted);
  font-size: 14px;
  line-height: 1.7;
}

.liquid-search-section,
.quick-actions,
.liquid-section {
  padding-right: 20px;
  padding-left: 20px;
}

.liquid-search-section {
  padding-bottom: 18px;
}

.liquid-search-bar {
  display: flex;
  width: min(660px, 100%);
  min-height: 56px;
  margin: 0 auto;
  padding: 8px 9px 8px 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--friend-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--friend-shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.liquid-search-bar:focus-within {
  border-color: rgba(108, 99, 255, .30);
  box-shadow: 0 15px 38px rgba(108, 99, 255, .13);
  transform: translateY(-1px);
}

.liquid-search-bar > .material-symbols-rounded {
  flex: 0 0 auto;
  color: var(--friend-purple);
  font-size: 22px;
}

.liquid-search-bar input {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  color: var(--friend-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 13px;
}

.liquid-search-bar input::-webkit-search-cancel-button {
  display: none;
}

.liquid-search-bar button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
  box-shadow: 0 7px 18px rgba(108, 99, 255, .25);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.liquid-search-bar button:active {
  transform: scale(.92);
}

.quick-actions {
  display: grid;
  width: min(660px, 100%);
  margin: 0 auto;
  padding-bottom: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 19px !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.quick-btn .material-symbols-rounded { flex: none; }

.quick-btn.primary {
  color: var(--friend-purple);
  border-color: rgba(108, 99, 255, .18);
  background: linear-gradient(135deg, rgba(108, 99, 255, .11), rgba(72, 186, 254, .10));
}

.quick-btn.secondary {
  color: var(--friend-coral);
  border-color: rgba(255, 107, 138, .18);
  background: linear-gradient(135deg, rgba(255, 107, 138, .10), rgba(255, 142, 83, .09));
}

.liquid-section {
  padding-bottom: 38px;
}

.liquid-section-header {
  display: flex;
  min-width: 0;
  margin-bottom: 15px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.liquid-section-header > div:first-child {
  min-width: 0;
}

.liquid-section-header > div:first-child > span {
  display: block;
  margin-bottom: 3px;
  color: var(--friend-purple);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.liquid-section-header h2 {
  margin: 0;
  color: var(--friend-text);
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.liquid-section-header > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--friend-purple);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.liquid-section-header > a .material-symbols-rounded {
  font-size: 17px;
}

.food-categories {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.food-category {
  display: flex;
  min-width: 0;
  padding: 5px 2px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--friend-text);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.food-category:hover,
.food-category.active {
  transform: translateY(-4px);
}

.food-category i {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 17px;
  background: var(--cat-bg, #f0efff);
  box-shadow: 0 5px 17px rgba(89, 96, 147, .10), inset 0 1px 0 rgba(255,255,255,.8);
  font-style: normal;
  transition: box-shadow .25s ease, transform .25s ease;
}

.food-category i::before {
  content: "";
  position: absolute;
  inset: 0 0 48%;
  background: linear-gradient(180deg, rgba(255,255,255,.62), transparent);
}

.food-category:hover i,
.food-category.active i {
  box-shadow: 0 9px 24px rgba(89, 96, 147, .16), inset 0 1px 0 rgba(255,255,255,.9);
  transform: scale(1.05);
}

.food-category .material-symbols-rounded {
  position: relative;
  color: var(--cat-color, var(--friend-purple));
  font-size: 27px;
  font-variation-settings: 'FILL' 0, 'wght' 500;
}

.food-category b {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-coral { --cat-bg: linear-gradient(135deg, #ffe8e9, #ffd8df); --cat-color: #ff6b75; }
.cat-purple { --cat-bg: linear-gradient(135deg, #eeebff, #ded9ff); --cat-color: #7064ed; }
.cat-gold { --cat-bg: linear-gradient(135deg, #fff5d9, #ffe7ae); --cat-color: #f09d20; }
.cat-blue { --cat-bg: linear-gradient(135deg, #e5f4ff, #cfe8ff); --cat-color: #378de6; }
.cat-pink { --cat-bg: linear-gradient(135deg, #ffe8f4, #ffd5ea); --cat-color: #e7559d; }
.cat-teal { --cat-bg: linear-gradient(135deg, #ddfaf5, #c5f2ea); --cat-color: #09a98f; }
.cat-orange { --cat-bg: linear-gradient(135deg, #fff0e3, #ffdec5); --cat-color: #ef7e37; }
.cat-neutral { --cat-bg: linear-gradient(135deg, #f5f5f8, #e9ebf2); --cat-color: #7b7e92; }

.area-filter {
  display: flex;
  max-width: 60%;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.area-pill {
  padding: 6px 10px;
  flex: 0 0 auto;
  font-size: 10px;
}

.liquid-place-rail {
  display: grid;
  padding: 0 0 3px;
  grid-auto-columns: minmax(260px, 31%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-padding-inline: 1px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.liquid-place-rail::-webkit-scrollbar {
  display: none;
}

.liquid-place-rail .place-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--friend-border);
  border-radius: 25px;
  scroll-snap-align: start;
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow);
  transform: translateZ(0);
}

.liquid-place-rail .place-image {
  height: 172px;
  border-radius: 24px 24px 0 0;
}

.place-body {
  padding: 15px 16px 17px;
}

.place-body h3 {
  margin: 4px 0 7px;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.35;
}

.place-topline,
.place-location,
.place-tags {
  font-size: 11px;
}

.place-tags {
  gap: 5px;
}

.place-tags .tag {
  padding: 4px 7px;
  border-radius: 8px;
}

.explore-masonry {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  gap: 13px;
}

.explore-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--friend-border);
  border-radius: 22px;
  color: var(--friend-text);
  background: var(--friend-card);
  box-shadow: var(--friend-shadow);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}

.explore-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--friend-shadow-high);
}

.explore-photo {
  position: relative;
  height: 180px;
  background-position: center;
  background-size: cover;
}

.tile-tall .explore-photo {
  height: 250px;
}

.explore-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(20, 22, 39, .24));
}

.photo-brunch { background-image: url('https://images.unsplash.com/photo-1504754524776-8f4f37790ca0?auto=format&fit=crop&w=900&q=84'); }
.photo-coffee { background-image: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=800&q=84'); }
.photo-hotpot { background-image: url('https://images.unsplash.com/photo-1569718212165-3a8278d5f624?auto=format&fit=crop&w=800&q=84'); }

.explore-photo > span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 30, 48, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
}

.explore-photo > span i {
  color: #ffb3c3;
  font-size: 13px;
  font-variation-settings: 'FILL' 1;
}

.explore-tile h3 {
  margin: 12px 13px 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.explore-tile p {
  display: flex;
  margin: 0 13px 13px;
  align-items: center;
  gap: 6px;
  color: var(--friend-muted);
  font-size: 10px;
}

.explorer-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.avatar-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.avatar-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.avatar-gold { background: linear-gradient(135deg, #feca57, #ff9f43); }

.ranking-section,
.lists-section {
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ranking-layout {
  gap: 13px;
}

.ranking-hero-card,
.ranking-list,
#listsPreview > a {
  overflow: hidden;
  border: 1px solid var(--friend-border) !important;
  border-radius: 24px !important;
  background: var(--friend-card) !important;
  box-shadow: var(--friend-shadow) !important;
}

.ranking-row {
  min-height: 74px;
}

.app-footer {
  padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.mobile-tabbar {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  z-index: 1200;
  display: grid !important;
  min-height: 70px;
  padding: 6px 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, .84) !important;
  border-radius: 27px !important;
  background: rgba(255,255,255,.60) !important;
  box-shadow: 0 12px 38px rgba(89, 96, 147, .17), inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
}

.mobile-tabbar a,
.mobile-tabbar button.publish-tab {
  display: flex;
  min-width: 0;
  height: 55px;
  padding: 5px 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  color: #898aa0;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: color .26s ease, background .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}

.mobile-tabbar a .material-symbols-rounded,
.mobile-tabbar a .material-symbols-outlined {
  font-size: 22px;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.mobile-tabbar a > span:last-child {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-tabbar a.active {
  color: var(--friend-purple) !important;
  background: rgba(108, 99, 255, .09);
  box-shadow: 0 3px 13px rgba(108, 99, 255, .11);
}

.mobile-tabbar a.active .material-symbols-rounded,
.mobile-tabbar a.active .material-symbols-outlined {
  transform: translateY(-1px);
  font-variation-settings: 'FILL' 1;
}

.mobile-tabbar a.publish-tab {
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-tabbar a.publish-tab .material-symbols-rounded {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
  box-shadow: 0 8px 22px rgba(108, 99, 255, .34), inset 0 1px 0 rgba(255,255,255,.48);
  font-size: 25px;
}

.mobile-tabbar a.publish-tab > span:last-child {
  margin-top: -1px;
  color: var(--friend-purple);
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js-motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}

.js-motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f8ff, #f6f2ff 52%, #fff4f7);
  transition: opacity .46s ease, visibility .46s ease;
}

.app-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.app-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splashEnter .72s cubic-bezier(.16,1,.3,1) both;
}

.app-splash-icon-wrap {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 38px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 22px 52px rgba(108,99,255,.16), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  animation: splashFloat 2.3s ease-in-out infinite;
}

.app-splash-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(108,99,255,.13);
  border-radius: 47px;
  animation: splashPulse 1.7s ease-out infinite;
}

.app-splash-icon {
  width: 104px;
  height: 104px;
  border-radius: 30px;
}

.app-splash h1 {
  margin: 22px 0 5px;
  color: #292047;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.app-splash p {
  color: #8a829f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.app-splash-progress {
  position: relative;
  width: 132px;
  height: 3px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(108,99,255,.10);
}

.app-splash-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--friend-purple), var(--friend-blue), var(--friend-coral));
  transform: translateX(-100%);
  animation: splashLoad 1.15s .12s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes splashEnter {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: none; }
}

@keyframes splashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes splashPulse {
  0% { opacity: .5; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.16); }
}

@keyframes splashLoad {
  to { transform: translateX(0); }
}

@media (max-width: 767px) {
  .app-nav {
    display: none !important;
  }

  .app-header-inner,
  body.bg-surface > header > div {
    width: calc(100% - 28px) !important;
  }

  .brand-app-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 16px !important;
  }

  .liquid-main {
    padding-top: 10px;
  }

  .liquid-hero {
    padding-top: 24px;
  }

  .liquid-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .food-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px 7px;
  }

  .food-category i {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .liquid-section-header {
    align-items: center;
  }

  .liquid-section-header h2 {
    font-size: 19px;
  }

  .featured-section .liquid-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-section .area-filter {
    width: 100%;
    max-width: 100%;
  }

  .liquid-place-rail {
    margin-right: -20px;
    padding-right: 20px;
    grid-auto-columns: minmax(248px, 82vw);
  }

  .explore-masonry {
    grid-template-columns: 1.05fr .95fr;
    grid-template-rows: auto auto;
  }

  .explore-tile.tile-tall {
    grid-row: span 2;
  }

  .explore-photo {
    height: 118px;
  }

  .tile-tall .explore-photo {
    height: 260px;
  }

  .explore-tile h3 {
    font-size: 12px;
  }

  .ranking-layout,
  .list-preview-grid,
  #listsPreview {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .liquid-main {
    width: min(900px, 100%);
  }

  .food-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .liquid-place-rail {
    grid-auto-columns: minmax(280px, 44%);
  }

  .mobile-tabbar {
    right: 50%;
    left: auto;
    width: min(540px, calc(100% - 32px));
    transform: translateX(50%);
  }
}

@media (min-width: 1041px) {
  .mobile-tabbar:not([data-mobile-tabbar]) {
    display: none !important;
  }
}

@media (max-width: 370px) {
  .liquid-search-bar input {
    font-size: 12px;
  }

  .quick-btn {
    padding-right: 7px;
    padding-left: 7px;
  }

  .food-category i {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ---- Selected-state for home filters (was defined in CSS but never applied
   because app.js did not add the class; now wired up in initHomePage). ---- */
.food-category.active i {
  border-color: var(--cat-color, #7064ed);
  box-shadow: 0 0 0 2px var(--cat-color, #7064ed), 0 9px 24px rgba(89, 96, 147, .18);
}
.food-category.active b {
  color: var(--cat-color, #7064ed);
}

/* Bundled icon fonts: Android must never render icon names as visible text. */
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("fonts/material-symbols-outlined.woff2") format("woff2");
}

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("fonts/material-symbols-rounded.woff2") format("woff2");
}

.material-symbols-outlined,
.material-symbols-rounded {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  max-width: 1em;
  overflow: hidden;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none;
  white-space: nowrap !important;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded" !important;
}

/* The center tab is a real 48px action button, not a one-em inline icon. */
.mobile-tabbar a.publish-tab .material-symbols-rounded,
.mobile-tabbar a.publish-tab .material-symbols-outlined {
  display: grid;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  overflow: visible;
  flex: 0 0 48px;
}

/* Platform foundation: location, linked notes and review media. */
.nearby-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.location-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(105, 102, 170, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #56566f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.location-sort-button.active {
  border-color: rgba(78, 111, 242, .35);
  background: #eef3ff;
  color: #315de3;
}

.location-sort-button:disabled { opacity: .62; cursor: wait; }
.location-sort-button .material-symbols-rounded { font-size: 18px; }

.place-distance {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #315de3;
  font-size: 12px;
  font-weight: 700;
}

.place-distance .material-symbols-outlined { font-size: 15px; }

.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.review-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef0f6;
}

.merchant-reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid #ff8e3c;
  border-radius: 0 8px 8px 0;
  background: #fff7ed;
  color: #555166;
}

.merchant-reply strong { display: block; margin-bottom: 4px; color: #262434; }
.merchant-reply p { margin: 0; }
.note-place[href] { color: #315de3; text-decoration: none; }

@media (max-width: 640px) {
  .recommend-app {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow-x: clip;
  }
  .recommend-landing,
  .recommend-compose,
  .notes-feed-section,
  .recommend-copy,
  .recommend-visual,
  .recommend-actions,
  .recommend-actions .primary-action,
  .recommend-actions .ghost-action,
  .notes-grid,
  .note-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
  }
  .nearby-controls { justify-content: flex-start; width: 100%; }
  .location-sort-button { width: 100%; justify-content: center; }
  .review-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Commerce v22: online queue + group deals. */
.commerce-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 120px;
}

.quick-actions {
  width: min(820px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-btn.deal {
  color: #aa5b10;
  border-color: rgba(244, 164, 0, .2);
  background: linear-gradient(135deg, rgba(255, 193, 77, .18), rgba(255, 139, 89, .1));
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #6259e8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.commerce-section-heading,
.arrival-service-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.commerce-section-heading h2,
.arrival-service-heading h2 {
  margin: 0;
  color: #202335;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.commerce-section-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: #6259e8;
  font-size: 12px;
  font-weight: 750;
}

.commerce-section-heading > a .material-symbols-rounded { font-size: 17px; }

.arrival-service-panel,
.store-deals-section,
.commerce-wallet {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 40px rgba(76, 88, 124, .1);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.platform-queue-head {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.platform-queue-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-queue-title > .material-symbols-rounded {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  color: #5d55df;
  background: linear-gradient(145deg, #eeecff, #eef8ff);
  font-size: 23px;
}

.platform-queue-title h2 { margin: 0; color: #252637; font-size: 19px; font-weight: 900; }
.platform-queue-title p { margin: 3px 0 0; color: #827d8d; font-size: 11px; }

.queue-live-pill {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #4e48c8;
  background: #f0efff;
  font-size: 11px;
  font-weight: 750;
}

.queue-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c63ff;
  box-shadow: 0 0 0 5px rgba(108, 99, 255, .12);
}

.queue-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: 14px;
}

.queue-overview.hidden { display: none; }
.queue-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.queue-metric {
  min-height: 82px;
  display: flex;
  padding: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 16px;
  background: #f5f3ff;
}

.queue-metric:nth-child(2) { background: #fff4e9; }
.queue-metric strong { color: #25243a; font-size: 24px; font-weight: 900; line-height: 1.05; }
.queue-metric span { margin-top: 6px; color: #817b92; font-size: 10px; font-weight: 700; }

.platform-queue-cta { min-width: 210px; }

.commerce-primary-button {
  min-height: 48px;
  display: inline-flex;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #6c63ff, #4dbbf7 62%, #ff7fa2);
  box-shadow: 0 12px 25px rgba(84, 96, 223, .2);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.commerce-primary-button:active { transform: scale(.97); }
.commerce-primary-button:disabled { opacity: .55; cursor: wait; }
.commerce-primary-button .material-symbols-rounded { font-size: 20px; }

.active-ticket {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 34px rgba(77, 89, 137, .09);
}

.active-ticket.hidden { display: none; }
.active-ticket-number { width: 100%; max-width: 100%; min-width: 0; min-height: 162px; display: flex; padding: 22px; align-items: center; justify-content: center; flex-direction: column; background: linear-gradient(135deg, #6259f3, #4ab9f4 60%, #f38bb7); }
.active-ticket-number span { color: rgba(255,255,255,.82); font-size: 11px; font-weight: 750; }
.active-ticket-number strong { margin-top: 4px; color: #fff; font-size: 55px; font-weight: 950; line-height: 1; }
.active-ticket-stats { width: 100%; max-width: 100%; min-width: 0; display: grid; padding: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.active-ticket-stats > div { min-width: 0; min-height: 74px; display: flex; overflow: hidden; padding: 10px 6px; align-items: center; justify-content: center; flex-direction: column; border-radius: 14px; background: #f5f4fb; }
.active-ticket-stats b { color: #292a3e; font-size: 20px; font-weight: 900; }
.active-ticket-stats span { margin-top: 4px; color: #888293; font-size: 9px; font-weight: 700; text-align: center; }
.active-ticket > button { width: calc(100% - 28px); min-height: 42px; margin: 0 14px 14px; border: 1px solid #dfddea; border-radius: 13px; color: #706b7d; background: rgba(255,255,255,.82); font-size: 11px; font-weight: 800; }

.deal-rail,
.store-deal-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-columns: minmax(280px, 32%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.deal-rail::-webkit-scrollbar,
.store-deal-list::-webkit-scrollbar { display: none; }
.store-deal-list { grid-auto-columns: minmax(260px, 48%); }

#storeDetail,
#storeDetail > .grid,
#storeDetail > .grid > *,
#storeDetail > .grid > div > * {
  max-width: 100%;
  min-width: 0;
}

#storeDetail > .grid {
  width: 100%;
  overflow: hidden;
}

#storeDetail > .grid > div {
  width: 100%;
  overflow: hidden;
}

.deal-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 226, 241, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 30px rgba(76, 88, 124, .1);
  scroll-snap-align: start;
}

.deal-card-image {
  position: relative;
  display: block;
  height: 164px;
  background-position: center;
  background-size: cover;
}

.deal-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,36,.02), rgba(20,22,36,.3));
}

.deal-card-image > span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(34, 31, 51, .46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 800;
}

.deal-card-body { padding: 14px; }
.deal-place { margin: 0 0 5px; overflow: hidden; color: #6259e8; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.deal-card h3 { min-height: 40px; margin: 0 0 5px; color: #202335; font-size: 15px; font-weight: 850; line-height: 1.35; }
.deal-summary { min-height: 34px; margin: 0 0 9px; overflow: hidden; color: #7c788b; font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal-price-row { display: flex; min-width: 0; align-items: baseline; gap: 6px; }
.deal-price-row strong { color: #ff625f; font-size: 23px; font-weight: 900; }
.deal-price-row span { color: #ff625f; font-size: 9px; font-weight: 750; }
.deal-price-row del { color: #aaa6b5; font-size: 10px; }
.deal-progress { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #f0eef5; }
.deal-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7669, #ffb04d); }
.deal-meta { display: flex; margin-top: 6px; justify-content: space-between; color: #898494; font-size: 9px; font-weight: 650; }
.deal-cta { width: 100%; min-height: 38px; display: flex; margin-top: 12px; padding: 0 12px; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ff7968, #ff9a4d); font-size: 11px; font-weight: 850; cursor: pointer; }
.deal-cta .material-symbols-rounded { font-size: 17px; }
.deal-save-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 7px; border-radius: 8px; color: #a84810; background: #fff0c8; font-size: 10px; font-weight: 850; box-shadow: 0 6px 15px rgba(58, 48, 28, .12); }

.place-commerce-actions {
  display: grid;
  margin-top: 12px;
  padding-top: 10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
  border-top: 1px solid rgba(220,222,235,.75);
}

.place-commerce-actions button {
  min-width: 0;
  min-height: 36px;
  display: flex;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(108,99,255,.15);
  border-radius: 11px;
  color: #5d55dd;
  background: #f2f0ff;
  font-size: 9px;
  font-weight: 800;
}

.place-commerce-actions button:last-child {
  border-color: rgba(255,128,86,.17);
  color: #d76731;
  background: #fff3e9;
}

.place-commerce-actions .material-symbols-rounded { font-size: 16px; }

.deals-hero {
  display: grid;
  min-height: 245px;
  padding: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(246,242,255,.95), rgba(236,249,255,.94) 52%, rgba(255,241,235,.92));
  box-shadow: 0 20px 56px rgba(69, 81, 122, .12);
}

.deals-hero h1 { max-width: 660px; margin: 18px 0 10px; color: #22243a; font-size: clamp(32px, 6vw, 56px); font-weight: 900; line-height: 1.06; }
.deals-hero p { max-width: 620px; margin: 0; color: #777287; font-size: 14px; line-height: 1.7; }
.deals-hero-stats { display: grid; grid-template-columns: repeat(2, 126px); gap: 10px; }
.deals-hero-stats > div { min-height: 116px; display: flex; padding: 18px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: rgba(255,255,255,.6); box-shadow: 0 12px 26px rgba(79,89,127,.08); }
.deals-hero-stats strong { color: #6259e8; font-size: 26px; font-weight: 900; }
.deals-hero-stats span { margin-top: 5px; color: #7e788d; font-size: 10px; font-weight: 750; }

.deals-toolbar { display: flex; margin: 24px 0; align-items: center; gap: 12px; }
.deals-search { min-width: 240px; display: flex; min-height: 48px; padding: 0 14px; flex: 1; align-items: center; gap: 8px; border: 1px solid rgba(218,222,237,.85); border-radius: 16px; background: rgba(255,255,255,.74); }
.deals-search .material-symbols-rounded { color: #777287; font-size: 20px; }
.deals-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #24263a; background: transparent; font-size: 13px; }
.deal-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.deal-filters::-webkit-scrollbar { display: none; }
.deal-filters button { min-height: 42px; padding: 0 14px; flex: 0 0 auto; border: 1px solid rgba(218,222,237,.9); border-radius: 13px; color: #716c80; background: rgba(255,255,255,.7); font-size: 11px; font-weight: 750; }
.deal-filters button.active { border-color: #6c63ff; color: #fff; background: #6c63ff; }
.deals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-count { color: #8c8797; font-size: 11px; font-weight: 700; }
.recent-vouchers { margin-top: 42px; }
.voucher-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.commerce-dialog { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 18px; }
.commerce-dialog.hidden { display: none; }
.commerce-dialog-backdrop { position: absolute; inset: 0; background: rgba(31, 31, 48, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.commerce-sheet { position: relative; z-index: 1; width: min(510px, 100%); max-height: min(780px, calc(100vh - 36px)); max-height: min(780px, calc(100dvh - 36px)); padding: 24px; overflow-y: auto; border: 1px solid rgba(255,255,255,.88); border-radius: 26px; color: #252637; background: rgba(250,250,255,.93); box-shadow: 0 30px 80px rgba(37,40,67,.28); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); animation: commerceSheetIn .26s cubic-bezier(.2,.8,.2,1); }
.commerce-sheet-handle { display: none; }
.commerce-sheet-header { display: flex; margin-bottom: 20px; align-items: flex-start; justify-content: space-between; gap: 14px; }
.commerce-sheet-header h2 { margin: 0; color: #232539; font-size: 22px; font-weight: 900; }
.queue-sheet-header { margin-bottom: 14px; }
.queue-dialog-meta { margin: 4px 0 0; color: #858091; font-size: 10px; font-weight: 650; }
.queue-party-label { margin: 0 0 9px; color: #454356; font-size: 11px; font-weight: 800; }
.sheet-hint { margin: 11px 6px 0; color: #8b8697; font-size: 9px; line-height: 1.55; text-align: center; }
.icon-close-button { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border: 0; border-radius: 50%; color: #635e70; background: rgba(229,229,240,.8); }
.icon-close-button .material-symbols-rounded { font-size: 20px; }
.party-size-grid { display: grid; margin-bottom: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.party-size-grid label { min-width: 0; cursor: pointer; }
.party-size-grid input { position: absolute; opacity: 0; pointer-events: none; }
.party-size-grid label > span { min-height: 76px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #e0deea; border-radius: 15px; background: rgba(255,255,255,.76); transition: .18s ease; }
.party-size-grid b { color: #28293b; font-size: 18px; font-weight: 900; }
.party-size-grid small { margin-top: 4px; color: #858091; font-size: 9px; font-weight: 650; }
.party-size-grid input:checked + span { border-color: #6c63ff; color: #6c63ff; background: #f0efff; box-shadow: 0 0 0 2px rgba(108,99,255,.12); }
.party-size-grid input:checked + span b { color: #5a52df; }
.commerce-field { display: grid; margin-bottom: 14px; gap: 7px; color: #4d4a5d; font-size: 11px; font-weight: 750; }
.commerce-field input { min-height: 48px; padding: 0 14px; border: 1px solid #dfddea; border-radius: 14px; outline: 0; color: #252637; background: rgba(255,255,255,.8); }
.commerce-field input:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.commerce-check { display: flex; margin: 13px 0 18px; align-items: flex-start; gap: 9px; color: #706b7d; font-size: 10px; line-height: 1.5; }
.commerce-check input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: #6c63ff; }
.commerce-submit-button { width: 100%; }
.commerce-dialog-open { overflow: hidden; }

.deal-sheet-image { height: 210px; margin-bottom: 15px; border-radius: 18px; background-position: center; background-size: cover; }
.deal-sheet-place { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deal-sheet-place a { display: flex; min-width: 0; align-items: center; color: #5c55db; font-size: 13px; font-weight: 850; }
.deal-sheet-place a .material-symbols-rounded { font-size: 17px; }
.deal-sheet-place > span { color: #8c8798; font-size: 10px; }
.deal-sheet-summary { margin: 10px 0 14px; color: #6d697a; font-size: 12px; line-height: 1.65; }
.deal-sheet-price { display: flex; padding: 14px; align-items: center; gap: 10px; border-radius: 15px; background: #fff0eb; }
.deal-sheet-price > strong { color: #ff625f; font-size: 31px; font-weight: 900; }
.deal-sheet-price > div { display: grid; gap: 1px; }
.deal-sheet-price span { color: #ff625f; font-size: 10px; font-weight: 800; }
.deal-sheet-price del { color: #9d9193; font-size: 10px; }
.deal-group-status { display: grid; margin: 12px 0; padding: 12px 14px; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; border: 1px solid #e4e1ef; border-radius: 15px; background: rgba(255,255,255,.7); }
.deal-group-status .material-symbols-rounded { color: #6c63ff; }
.deal-group-status b { color: #353448; font-size: 16px; }
.deal-group-status p { margin: 0; color: #777183; font-size: 10px; }
.deal-terms { margin: 14px 0; }
.deal-terms h3 { margin: 0 0 5px; font-size: 13px; font-weight: 850; }
.deal-terms p { margin: 0; color: #767181; font-size: 10px; line-height: 1.6; }
.demo-payment-note { display: flex; margin-top: 7px !important; align-items: center; gap: 5px; color: #9b641d !important; }
.demo-payment-note .material-symbols-rounded { font-size: 16px; }

.paid-purchase-sheet { width: min(470px, 100%); }
.paid-purchase-sheet .section-kicker { display: none; }
.paid-purchase-sheet .commerce-sheet-header { margin-bottom: 10px; }
.paid-deal-summary-card { display: grid; margin-bottom: 18px; padding: 18px; gap: 13px; border-radius: 18px; background: #f4f6fd; }
.paid-deal-title-row,
.paid-deal-price-row,
.paid-deal-save-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; }
.paid-deal-title-row strong { min-width: 0; color: #28293c; font-size: 14px; font-weight: 900; }
.paid-deal-title-row b { flex: 0 0 auto; color: #292a3e; font-size: 16px; font-weight: 900; }
.paid-deal-price-row { color: #8d8898; font-size: 11px; }
.paid-deal-price-row del { color: #a6a1b1; }
.paid-deal-save-row strong { color: #2d2e41; font-size: 12px; font-weight: 900; }
.paid-deal-save-row span { padding: 4px 8px; border-radius: 8px; color: #ff744d; background: #fff0e7; font-size: 10px; font-weight: 850; }
.paid-purchase-button { min-height: 52px; border-radius: 16px; }
.paid-purchase-note { margin: 10px 4px 0; color: #9993a7; font-size: 9px; line-height: 1.55; text-align: center; }

.commerce-wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.commerce-wallet-grid h3 { display: flex; margin: 0 0 10px; align-items: center; gap: 7px; color: #2c2d41; font-size: 13px; font-weight: 850; }
.commerce-wallet-grid h3 .material-symbols-rounded { color: #6c63ff; font-size: 19px; }
.wallet-list { display: grid; gap: 10px; }
.wallet-queue-card { display: grid; min-width: 0; padding: 13px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #e2e1ec; border-radius: 15px; background: rgba(255,255,255,.72); }
.wallet-ticket-number { min-width: 55px; color: #5d55df; font-size: 20px; font-weight: 900; }
.wallet-queue-card strong { display: block; overflow: hidden; color: #303144; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-queue-card p { margin: 4px 0 0; color: #817c8d; font-size: 9px; }
.wallet-queue-card > .material-symbols-rounded { color: #8e899a; font-size: 18px; }
.wallet-empty { min-height: 72px; display: flex; padding: 16px; align-items: center; border: 1px dashed #dad8e5; border-radius: 15px; color: #8b8696; background: rgba(255,255,255,.45); font-size: 10px; }

.voucher-card { position: relative; min-width: 0; display: grid; overflow: hidden; grid-template-columns: minmax(0,1fr) auto; border: 1px solid #deddea; border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 10px 25px rgba(71,82,122,.08); }
.voucher-copy { min-width: 0; padding: 15px; }
.voucher-status { display: inline-flex; padding: 4px 7px; border-radius: 7px; color: #5b54d9; background: #eeecff; font-size: 8px; font-weight: 850; }
.voucher-copy h3 { margin: 8px 0 4px; overflow: hidden; color: #2a2c3e; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.voucher-copy p { margin: 0; overflow: hidden; color: #7e798a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.voucher-copy small { display: block; margin-top: 8px; color: #9a95a5; font-size: 8px; }
.voucher-code { min-width: 128px; display: flex; padding: 13px; align-items: center; justify-content: center; flex-direction: column; border-left: 1px dashed #d6d3e2; background: linear-gradient(135deg, #f4f2ff, #edf8ff); }
.voucher-code span { color: #8a8495; font-size: 8px; font-weight: 700; }
.voucher-code strong { margin-top: 4px; color: #4e48ca; font-size: 13px; font-weight: 900; letter-spacing: 0; }
.voucher-code i { margin-top: 7px; color: #343449; font-size: 29px; }
.voucher-card-large { min-height: 170px; }
.voucher-card-large .voucher-copy { display: flex; padding: 22px; justify-content: center; flex-direction: column; }
.voucher-card-large .voucher-copy h3 { font-size: 17px; }
.voucher-card-large .voucher-code { min-width: 155px; }

@keyframes commerceSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deals-hero { grid-template-columns: 1fr; }
  .deals-hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .queue-overview { grid-template-columns: minmax(0, 1fr) minmax(190px, auto); }
}

@media (max-width: 640px) {
  .commerce-main { width: calc(100% - 30px); padding-top: 14px; }
  .quick-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .quick-btn { min-height: 48px; padding-right: 5px !important; padding-left: 5px !important; gap: 5px; font-size: 10px; }
  .quick-btn .material-symbols-rounded { font-size: 18px; }
  .home-deals-section { overflow: hidden; }
  .deal-rail { margin-right: -20px; padding-right: 20px; grid-auto-columns: minmax(250px, 78vw); }
  .arrival-service-panel,
  .store-deals-section,
  .commerce-wallet { margin-right: 0; margin-left: 0; padding: 16px; border-radius: 20px; }
  .commerce-section-heading h2,
  .arrival-service-heading h2 { font-size: 18px; }
  .platform-queue-head { margin-bottom: 14px; align-items: flex-start; }
  .platform-queue-title > .material-symbols-rounded { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 21px; }
  .platform-queue-title h2 { font-size: 17px; }
  .platform-queue-title p { font-size: 10px; }
  .queue-live-pill { padding: 6px 8px; font-size: 9px; }
  .queue-overview { grid-template-columns: 1fr; }
  .queue-metric { min-height: 72px; }
  .platform-queue-cta { width: 100%; min-width: 0; }
  .active-ticket-number { min-height: 150px; }
  .store-deal-list { margin-right: -16px; padding-right: 16px; grid-auto-columns: minmax(250px, 82vw); }
  .deals-hero { min-height: 0; padding: 24px 18px; border-radius: 22px; }
  .deals-hero h1 { font-size: 34px; }
  .deals-hero-stats > div { min-height: 88px; padding: 12px; border-radius: 16px; }
  .deals-hero-stats strong { font-size: 21px; }
  .deals-toolbar { align-items: stretch; flex-direction: column; }
  .deals-search { min-width: 0; }
  .deal-filters { margin-right: -15px; padding-right: 15px; }
  .deals-grid { grid-template-columns: 1fr; gap: 14px; }
  .deal-card { display: grid; grid-template-columns: 118px minmax(0,1fr); border-radius: 18px; }
  .deal-card-image { height: 100%; min-height: 226px; }
  .deal-card h3 { min-height: 0; font-size: 14px; }
  .deal-card-body { min-width: 0; padding: 12px; }
  .deal-card-image > span { right: 8px; bottom: 8px; left: 8px; text-align: center; }
  .deal-summary { min-height: 30px; }
  .deal-save-badge { top: 7px; right: auto; left: 7px; }
  .voucher-list,
  .commerce-wallet-grid { grid-template-columns: 1fr; }
  .commerce-dialog { padding: 0; place-items: end center; }
  .commerce-sheet { width: 100%; max-height: calc(92vh - env(safe-area-inset-top, 0px)); max-height: calc(92dvh - env(safe-area-inset-top, 0px)); padding: 12px 18px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 25px 25px 0 0; }
  .commerce-sheet-handle { width: 42px; height: 4px; display: block; margin: 0 auto 14px; border-radius: 999px; background: #d9d6e2; }
  .party-size-grid { gap: 6px; }
  .party-size-grid label > span { min-height: 68px; border-radius: 13px; }
  .deal-sheet-image { height: 180px; }
  .voucher-card { grid-template-columns: minmax(0,1fr) 112px; }
  .voucher-code { min-width: 112px; padding: 10px; }
  .voucher-card-large .voucher-code { min-width: 118px; }
}

@media (max-width: 370px) {
  .quick-btn { font-size: 9px; }
  .deal-card { grid-template-columns: 104px minmax(0,1fr); }
  .deal-card-image { min-height: 238px; }
  .party-size-grid b { font-size: 15px; }
  .voucher-card { grid-template-columns: 1fr; }
  .voucher-code { min-width: 0; min-height: 95px; border-top: 1px dashed #d6d3e2; border-left: 0; }
}

/* Keep the raised center action circular and outside the glass bar's clipping area. */
.mobile-tabbar {
  overflow: visible !important;
  isolation: isolate;
}

.mobile-tabbar a {
  position: relative;
}

.mobile-tabbar a.publish-tab {
  overflow: visible !important;
}

.mobile-tabbar a.publish-tab .material-symbols-rounded,
.mobile-tabbar a.publish-tab .material-symbols-outlined {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%) !important;
  line-height: 1;
}

.mobile-tabbar a.publish-tab.active .material-symbols-rounded,
.mobile-tabbar a.publish-tab.active .material-symbols-outlined {
  transform: translateX(-50%) scale(1.03) !important;
}

.mobile-tabbar a.publish-tab > span:last-child {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 100%;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}

#favoriteButton {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px;
  display: grid !important;
  overflow: hidden !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
  place-items: center;
  border-radius: 50% !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

/* ============================================================
   修复：首页/各页顶部“大量空白”
   原因：.app-header 用 env(safe-area-inset-top) 做 padding-top 和
   min-height；部分 Android WebView 上报的安全区偏大（或与系统状态栏
   重复计算），导致头部被撑高、logo 上方出现一大片空白。
   办法：给状态栏安全区加 12px 上限，去掉多余空白、又不遮挡状态栏。
   ============================================================ */
.app-header,
body.bg-surface > header {
  padding-top: min(env(safe-area-inset-top, 0px), 12px) !important;
  min-height: calc(64px + min(env(safe-area-inset-top, 0px), 12px)) !important;
  top: min(env(safe-area-inset-top, 0px), 12px) !important;
}

/* ============================================================
   首页搜索结果面板
   ============================================================ */
.search-results {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 4px 20px 34px;
}
.search-results[hidden] { display: none; }
.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
#searchResultsTitle {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-clear {
  flex: none;
  border: 1px solid rgba(108, 99, 255, .22);
  background: rgba(108, 99, 255, .08);
  color: #6c63ff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s ease;
}
.search-clear:hover { background: rgba(108, 99, 255, .16); }

.search-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.search-results-list .place-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}
@media (min-width: 640px) {
  .search-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.search-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  color: #777993;
}
.search-empty .material-symbols-rounded {
  font-size: 46px;
  color: #b9bad0;
}
.search-empty p { font-size: 14px; line-height: 1.55; margin: 0; max-width: 22em; }

/* App-like page transitions: keep WebView from exposing a plain white frame
   while local HTML pages swap through the bottom tab bar. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: #f5f7fc;
  opacity: 0;
  transition: opacity .16s ease;
}

body.page-leaving::after {
  opacity: 1;
}

.home-filter-summary {
  display: flex;
  width: calc(100% - 40px);
  max-width: 760px;
  min-height: 42px;
  margin: -4px 20px 16px;
  padding: 8px 10px 8px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(108, 99, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 26px rgba(88, 96, 145, .08);
  color: #5f6076;
  font-size: 12px;
  font-weight: 750;
}

.home-filter-summary[hidden] {
  display: none;
}

.home-filter-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-filter-summary button,
.empty-filter-card button {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.home-filter-summary button {
  min-height: 28px;
  padding: 0 12px;
}

.empty-filter-card {
  min-width: min(320px, 82vw);
  display: grid;
  gap: 10px;
  padding: 24px;
  align-content: center;
  justify-items: start;
  border: 1px solid rgba(226, 229, 241, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  color: #74778c;
  box-shadow: 0 16px 34px rgba(88, 96, 145, .09);
}

.empty-filter-card .material-symbols-rounded {
  color: var(--friend-purple);
  font-size: 34px;
}

.empty-filter-card p {
  margin: 0;
  color: #6e7188;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.empty-filter-card button {
  min-height: 34px;
  padding: 0 14px;
}

.map-main {
  max-width: 1180px;
}

.map-hero {
  display: flex;
  padding: 28px 20px 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.map-hero h1 {
  margin: 4px 0 6px;
  color: var(--friend-text);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.06;
}

.map-hero p {
  margin: 0;
  color: var(--friend-muted);
  font-size: 14px;
  font-weight: 650;
}

.map-shell {
  display: grid;
  padding: 0 20px 30px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
}

.map-frame-card,
.map-panel {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 42px rgba(88, 96, 145, .11);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
}

.map-frame-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
}

.map-frame-card iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  border: 0;
  background: #e9edf5;
}

.map-fallback {
  position: absolute;
  inset: 0 0 37px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(108,99,255,.16), transparent 26%),
    radial-gradient(circle at 78% 32%, rgba(74,185,244,.18), transparent 28%),
    radial-gradient(circle at 55% 78%, rgba(255,137,177,.16), transparent 32%),
    linear-gradient(135deg, rgba(244,248,255,.92), rgba(238,243,255,.9));
}

.map-fallback::before,
.map-fallback::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(32deg, transparent 0 43%, rgba(255,255,255,.82) 44% 46%, transparent 47% 100%),
    linear-gradient(126deg, transparent 0 49%, rgba(255,255,255,.74) 50% 52%, transparent 53% 100%),
    linear-gradient(78deg, transparent 0 58%, rgba(108,99,255,.13) 59% 60%, transparent 61% 100%);
}

.map-fallback::after {
  transform: rotate(18deg) scale(1.08);
  opacity: .72;
}

.map-route-line {
  position: absolute;
  top: 29%;
  left: 20%;
  width: 58%;
  height: 42%;
  border: 4px solid rgba(76, 113, 255, .52);
  border-right-color: transparent;
  border-bottom-color: rgba(74,185,244,.55);
  border-radius: 48% 52% 44% 56%;
  filter: drop-shadow(0 8px 16px rgba(72,104,245,.16));
}

.map-fallback-pin {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px 22px 22px 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
  box-shadow: 0 18px 34px rgba(76, 96, 255, .26), inset 0 1px 0 rgba(255,255,255,.42);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-fallback-pin .material-symbols-rounded {
  font-size: 31px;
  transform: rotate(45deg);
}

.map-fallback-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: min(320px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 30px rgba(88,96,145,.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.map-fallback-label b,
.map-fallback-label small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-fallback-label b {
  color: var(--friend-text);
  font-size: 14px;
  font-weight: 900;
}

.map-fallback-label small {
  margin-top: 3px;
  color: var(--friend-purple);
  font-size: 11px;
  font-weight: 800;
}

.map-attribution {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 9px 14px;
  justify-content: space-between;
  gap: 10px;
  color: #777b91;
  font-size: 11px;
  font-weight: 650;
}

.map-attribution a {
  color: #5d55dd;
  text-decoration: none;
}

.map-panel {
  min-width: 0;
  padding: 16px;
}

.map-selected-card {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108,99,255,.13), rgba(74,185,244,.13));
}

.map-selected-card > .material-symbols-rounded {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
}

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

.map-selected-card b {
  color: var(--friend-text);
  font-size: 16px;
  font-weight: 900;
}

.map-selected-card small {
  margin-top: 3px;
  color: var(--friend-muted);
  font-size: 12px;
  font-weight: 700;
}

.map-actions {
  display: grid;
  margin-top: 12px;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.map-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.map-primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue));
}

.map-secondary-action {
  border: 1px solid rgba(108,99,255,.16);
  color: #5d55dd;
  background: rgba(255,255,255,.75);
}

.map-search {
  min-height: 44px;
  display: flex;
  margin: 14px 0;
  padding: 0 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(218, 222, 238, .9);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}

.map-search .material-symbols-rounded {
  color: var(--friend-purple);
  font-size: 21px;
}

.map-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--friend-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.map-place-list {
  display: grid;
  max-height: 430px;
  overflow: auto;
  gap: 10px;
  padding-right: 3px;
}

.map-place-item {
  border: 1px solid rgba(222, 225, 238, .88);
  border-radius: 17px;
  background: rgba(255, 255, 255, .72);
  overflow: hidden;
}

.map-place-item.active {
  border-color: rgba(108,99,255,.35);
  box-shadow: 0 10px 24px rgba(108,99,255,.10);
}

.map-place-item > button {
  width: 100%;
  display: flex;
  padding: 10px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.map-place-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.map-place-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.map-place-copy b,
.map-place-copy small,
.map-place-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-place-copy b {
  color: var(--friend-text);
  font-size: 13px;
  font-weight: 900;
}

.map-place-copy small {
  color: var(--friend-muted);
  font-size: 11px;
  font-weight: 700;
}

.map-place-copy em {
  color: #315de3;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.map-place-actions {
  display: grid;
  padding: 0 10px 10px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-place-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f4f2ff;
  color: #5d55dd;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.map-place-actions a:last-child {
  background: #eef7ff;
  color: #2674e8;
}

@media (max-width: 767px) {
  .map-hero {
    padding-top: 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .map-hero h1 {
    font-size: 34px;
  }

  .map-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .map-frame-card {
    min-height: 330px;
    border-radius: 22px;
    grid-template-rows: 330px auto;
  }

  .map-frame-card iframe {
    min-height: 330px;
  }

  .map-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .map-place-list {
    max-height: none;
    overflow: visible;
  }
}

/* Final mobile header hardening: Android WebView can over-report safe-area top.
   Use a controlled app padding instead of env() so the first screen stays compact. */
:root {
  --mydp-mobile-safe-top: 14px;
  --mydp-mobile-header-core: 56px;
}

@media (max-width: 767px) {
  body,
  body.app-body,
  body.bg-surface {
    padding-top: 0 !important;
  }

  .app-header,
  body.bg-surface > header {
    top: 0 !important;
    height: auto !important;
    min-height: calc(var(--mydp-mobile-header-core) + var(--mydp-mobile-safe-top)) !important;
    max-height: calc(var(--mydp-mobile-header-core) + var(--mydp-mobile-safe-top)) !important;
    padding-top: var(--mydp-mobile-safe-top) !important;
  }

  .app-header-inner,
  body.bg-surface > header > div {
    min-height: var(--mydp-mobile-header-core) !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .liquid-main,
  .home-page .liquid-main {
    padding-top: 0 !important;
  }

  .home-page .liquid-hero {
    padding-top: 14px !important;
    padding-bottom: 18px !important;
  }

  .home-page .hero-badge {
    margin-bottom: 12px !important;
  }

  .home-page .liquid-search-section {
    padding-bottom: 14px !important;
  }

  .js-motion-ready .reveal-on-scroll,
  .js-motion-ready .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .brand-link,
  .brand-app-icon,
  .brand-copy,
  .header-icon-button {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .header-icon-button > .material-symbols-rounded,
  .header-icon-button > .material-symbols-outlined {
    display: grid;
    width: 23px;
    min-width: 23px;
    max-width: 23px;
    height: 23px;
    place-items: center;
    overflow: visible;
    color: inherit;
    font-size: 0 !important;
  }

  .header-icon-button > .material-symbols-rounded::before,
  .header-icon-button > .material-symbols-outlined::before {
    content: "";
    width: 23px;
    height: 23px;
    display: block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.55 3.1 3.72 9.58c-1.06.41-1.05 1.9.02 2.28l6.06 2.17 2.24 6.16c.39 1.07 1.88 1.08 2.29.02l6.51-16.81c.31-.8-.49-1.6-1.29-1.3Zm-7.3 14.83-1.59-4.38 4.82-4.82c.32-.32-.08-.82-.46-.57l-5.74 3.82-4.26-1.52 12.35-4.75-5.12 12.22Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.55 3.1 3.72 9.58c-1.06.41-1.05 1.9.02 2.28l6.06 2.17 2.24 6.16c.39 1.07 1.88 1.08 2.29.02l6.51-16.81c.31-.8-.49-1.6-1.29-1.3Zm-7.3 14.83-1.59-4.38 4.82-4.82c.32-.32-.08-.82-.46-.57l-5.74 3.82-4.26-1.52 12.35-4.75-5.12 12.22Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .mobile-tabbar {
    min-height: 68px !important;
    overflow: visible !important;
  }

  .mobile-tabbar a {
    height: 54px !important;
    transform: none !important;
  }

  .mobile-tabbar a.publish-tab .material-symbols-rounded,
  .mobile-tabbar a.publish-tab .material-symbols-outlined {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
  }
}

/* Food-note publishing: native-app style entry sheet and composer. */
.note-entry-backdrop[hidden] {
  display: none !important;
}

.note-entry-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(24, 25, 39, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.note-sheet-open {
  overflow: hidden;
}

.note-entry-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.note-entry-panel {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 70px rgba(79, 86, 132, .24);
  transform: translateY(28px);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}

.note-entry-backdrop.is-open .note-entry-panel {
  transform: none;
}

.note-entry-option,
.note-entry-cancel {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid rgba(134, 139, 168, .14);
  background: transparent;
  padding: 14px 24px;
  color: #202235;
  text-align: left;
}

.note-entry-option .material-symbols-rounded {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #645bff;
  background: linear-gradient(135deg, rgba(108,99,255,.14), rgba(67,183,255,.14));
  font-size: 25px;
}

.note-entry-option strong,
.note-entry-cancel {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.note-entry-option strong {
  grid-column: 2;
}

.note-entry-option small {
  grid-column: 2;
  display: block;
  margin-top: 4px;
  color: #8b8ea2;
  font-size: 14px;
  font-weight: 500;
}

.note-entry-cancel {
  display: block;
  min-height: 72px;
  border-bottom: 0;
  color: #3f4054;
  text-align: center;
}

.note-composer-panel {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto 34px;
  border: 1px solid rgba(255, 255, 255, .84) !important;
  border-top: 1px solid rgba(255, 255, 255, .84) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #17182a;
  box-shadow: 0 22px 70px rgba(87, 94, 141, .16) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

body.note-composer-open .mobile-tabbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(18px) !important;
}

.note-composer-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.note-composer-topbar h2 {
  margin: 0;
  color: #17182a;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 850;
}

.note-composer-back,
.note-draft-button {
  border: 1px solid rgba(137, 142, 170, .18);
  background: rgba(255, 255, 255, .74);
  color: #585b72;
  box-shadow: 0 8px 20px rgba(87, 94, 141, .09);
}

.note-composer-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.note-draft-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 750;
}

.note-draft-button .material-symbols-rounded {
  font-size: 18px;
}

.note-media-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.note-media-strip::-webkit-scrollbar {
  display: none;
}

.note-media-preview,
.note-media-add {
  position: relative;
  width: 132px;
  min-width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(137, 142, 170, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  scroll-snap-align: start;
}

.note-media-preview img,
.note-media-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.note-media-preview button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #696b80;
}

.note-media-preview button .material-symbols-rounded {
  font-size: 17px;
}

.note-media-type {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #645bff, #42b9ff);
}

.note-media-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-style: dashed;
  color: #9b9daf;
}

.note-media-add .material-symbols-rounded {
  color: #b4b5c3;
  font-size: 40px;
}

.note-media-add small {
  max-width: 92px;
  color: #9b9daf;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.note-editor-fields {
  margin-top: 22px;
}

.note-title-input,
.note-content-input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.note-composer-panel .note-title-input:focus,
.note-composer-panel .note-content-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.note-title-input {
  min-height: 58px;
  padding: 0 !important;
  color: #17182a !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}

.note-content-input {
  min-height: 180px;
  resize: vertical;
  padding: 4px 0 !important;
  color: #33364c !important;
  font-size: 18px !important;
  line-height: 1.72;
}

.note-title-input::placeholder,
.note-content-input::placeholder {
  color: #c3c4cf;
}

.note-chip-row,
.note-tool-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
}

.note-chip-row::-webkit-scrollbar,
.note-tool-row::-webkit-scrollbar {
  display: none;
}

.note-chip-row button,
.note-tool-row button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 245, 249, .92);
  color: #8d8f9f;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 650;
}

.note-tool-row button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2b2d3e;
}

.note-chip-row button.is-active,
.note-tool-row button.is-active {
  color: #5d55f6;
  background: rgba(108, 99, 255, .12);
}

.note-settings-list {
  margin-top: 18px;
  border-top: 1px solid rgba(137, 142, 170, .13);
  border-bottom: 1px solid rgba(137, 142, 170, .13);
}

.note-setting-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(137, 142, 170, .10);
  color: #252738;
}

.note-setting-row:last-child {
  border-bottom: 0;
}

.note-setting-row > .material-symbols-rounded:first-child {
  color: #36384b;
  font-size: 24px;
}

.note-setting-row > .material-symbols-rounded:last-child {
  color: #c1c3cf;
  font-size: 23px;
}

.note-setting-row strong {
  font-size: 18px;
  font-weight: 650;
}

.note-setting-row select {
  min-width: 0;
  width: auto !important;
  max-width: 160px;
  justify-self: end;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #9a9cad !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  text-align: right;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.note-setting-row select:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.note-setting-value {
  overflow: hidden;
  color: #a0a2b0;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.note-content-notice {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #6c6e80;
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
}

.note-content-notice .material-symbols-rounded {
  color: #b6b8c4;
  font-size: 20px;
}

.note-publish-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(120px, .72fr) minmax(0, 1.8fr);
  gap: 12px;
  margin: 18px -10px -10px;
  padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.note-daily-button,
.note-publish-button {
  min-height: 58px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
}

.note-daily-button {
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 4px;
  border: 1px solid rgba(137, 142, 170, .22);
  background: rgba(255, 255, 255, .84);
  color: #383a4d;
}

.note-daily-button .material-symbols-rounded {
  grid-row: 1 / span 2;
  color: #55c29f;
  font-size: 23px;
}

.note-daily-button small {
  color: #9d9fae;
  font-size: 12px;
  font-weight: 650;
}

.note-publish-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #645bff, #42b9ff 48%, #ff75ad);
  box-shadow: 0 15px 34px rgba(91, 113, 255, .25);
}

@media (max-width: 767px) {
  .recommend-compose {
    padding: 0 0 8px;
  }

  .note-composer-panel {
    width: min(100%, calc(100vw - 20px));
    margin-bottom: 22px;
    padding: 18px 18px 10px !important;
    border-radius: 28px !important;
  }

  .note-composer-topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    margin-bottom: 18px;
  }

  .note-composer-topbar h2 {
    font-size: 19px;
  }

  .note-draft-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .note-media-preview,
  .note-media-add {
    width: 116px;
    min-width: 116px;
    height: 116px;
    border-radius: 18px;
  }

  .note-title-input {
    min-height: 52px;
    font-size: 25px !important;
  }

  .note-content-input {
    min-height: 230px;
    font-size: 17px !important;
  }

  .note-setting-row {
    grid-template-columns: 28px auto minmax(0, 1fr) 22px;
    min-height: 58px;
  }

  .note-setting-row strong {
    font-size: 17px;
  }

  .note-publish-bar {
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .note-daily-button,
  .note-publish-button {
    min-height: 55px;
    font-size: 18px;
  }
}

/* ============================================================
   v035 · Liquid Glass tab bar + native profile app layout
   ============================================================ */

body.profile-app .header-actions,
body.profile-app [data-map-link] {
  display: none !important;
}

.profile-app-header-inner {
  justify-content: center !important;
}

.mobile-tabbar {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  z-index: 1200;
  display: block !important;
  min-height: 70px !important;
  padding: 6px 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .52) 0%, rgba(255, 255, 255, .28) 100%) !important;
  box-shadow:
    0 0 0 .5px rgba(255, 255, 255, .55),
    0 18px 44px rgba(86, 99, 133, .18),
    0 4px 14px rgba(86, 99, 133, .08),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(255, 255, 255, .28) !important;
  backdrop-filter: blur(48px) saturate(210%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(48px) saturate(210%) brightness(1.06) !important;
  isolation: isolate;
}

.mobile-tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .08) 38%, transparent 72%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .42), transparent 58%);
  pointer-events: none;
}

.mobile-tabbar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .34);
  pointer-events: none;
}

.mobile-tabbar-surface {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: end;
  width: 100%;
  min-height: 56px;
  overflow: visible !important;
}

.mobile-tabbar-pill {
  position: absolute;
  top: 2px;
  left: 0;
  width: 20%;
  height: calc(100% - 4px);
  border-radius: 17px;
  background: rgba(108, 99, 255, .10);
  box-shadow:
    0 3px 12px rgba(108, 99, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .62);
  transition: transform .38s cubic-bezier(.2, .85, .25, 1), opacity .24s ease;
  pointer-events: none;
  z-index: 0;
}

.mobile-tabbar a {
  position: relative;
  z-index: 1;
  height: 52px !important;
  border-radius: 17px !important;
  color: #898aa0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mobile-tabbar a.active {
  color: var(--friend-purple) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-tabbar a.active:not(.publish-tab) .material-symbols-rounded,
.mobile-tabbar a.active:not(.publish-tab) .material-symbols-outlined {
  transform: translateY(-1px);
  font-variation-settings: 'FILL' 1;
}

.mobile-tabbar a.publish-tab {
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-tabbar a.publish-tab .material-symbols-rounded,
.mobile-tabbar a.publish-tab .material-symbols-outlined {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  margin: -18px auto 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue)) !important;
  box-shadow:
    0 0 0 .5px rgba(255, 255, 255, .45),
    0 10px 24px rgba(108, 99, 255, .34),
    inset 0 1px 0 rgba(255, 255, 255, .48) !important;
  transform: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.mobile-tabbar a.publish-tab.active .material-symbols-rounded,
.mobile-tabbar a.publish-tab.active .material-symbols-outlined {
  transform: none !important;
}

.mobile-tabbar a.publish-tab > span:last-child {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  margin: 2px 0 0 !important;
  transform: none !important;
  color: var(--friend-purple) !important;
  text-align: center;
}

@media (max-width: 720px) {
  .mobile-tabbar {
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    overflow: visible !important;
    gap: 0 !important;
  }

  .mobile-tabbar a {
    color: #898aa0 !important;
    font-size: 9px !important;
  }

  .mobile-tabbar a.active {
    color: var(--friend-purple) !important;
    background: transparent !important;
  }

  .mobile-tabbar a.publish-tab .material-symbols-rounded,
  .mobile-tabbar a.publish-tab .material-symbols-outlined {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: -18px !important;
  }
}

/* Profile app page */
body.profile-app {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}

.profile-page-title {
  color: var(--friend-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.profile-app-main {
  width: min(680px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  padding: 12px 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

.profile-hero-card {
  margin-bottom: 16px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48)),
    radial-gradient(circle at 88% 10%, rgba(108, 99, 255, .14), transparent 42%);
  box-shadow: var(--friend-shadow);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-lg {
  width: 64px !important;
  height: 64px !important;
  border-radius: 22px !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(108, 99, 255, .24) !important;
}

.profile-hero-copy h1 {
  margin: 0 0 4px;
  color: var(--friend-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.profile-hero-copy p {
  margin: 0;
  color: var(--friend-muted);
  font-size: 13px;
}

.profile-member-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--friend-purple);
  background: rgba(108, 99, 255, .10);
  font-size: 10px;
  font-weight: 700;
}

.profile-stats-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.profile-stat-chip {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  text-align: center;
}

.profile-stat-chip strong {
  display: block;
  color: var(--friend-purple);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.profile-stat-chip span {
  display: block;
  margin-top: 2px;
  color: var(--friend-muted);
  font-size: 10px;
  font-weight: 650;
}

.profile-phone-line {
  margin: 12px 0 0;
  color: var(--friend-muted);
  font-size: 11px;
}

.profile-group {
  margin-bottom: 16px;
}

.profile-group-label {
  margin: 0 0 8px 4px;
  color: var(--friend-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.profile-group-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--friend-purple);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.profile-group-link .material-symbols-rounded {
  font-size: 18px;
}

.profile-group-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  box-shadow: var(--friend-shadow-soft);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.profile-wallet-card {
  padding: 14px;
}

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

.profile-wallet-head h3 {
  margin: 0;
  color: var(--friend-text);
  font-size: 15px;
  font-weight: 800;
}

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

.profile-wallet-block h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--friend-text);
  font-size: 12px;
  font-weight: 750;
}

.profile-wallet-block h4 .material-symbols-rounded {
  color: var(--friend-purple);
  font-size: 17px;
}

.profile-menu-list {
  display: grid;
}

.profile-menu-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-top: 1px solid rgba(184, 193, 222, .28);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease;
}

.profile-menu-row:first-child {
  border-top: 0;
}

.profile-menu-row:active {
  background: rgba(108, 99, 255, .05);
}

.profile-menu-row-static {
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-menu-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 19px;
}

.profile-menu-icon.is-purple {
  color: var(--friend-purple);
  background: rgba(108, 99, 255, .12);
}

.profile-menu-icon.is-blue {
  color: var(--friend-blue);
  background: rgba(72, 186, 254, .12);
}

.profile-menu-icon.is-coral {
  color: var(--friend-coral);
  background: rgba(255, 107, 138, .12);
}

.profile-menu-copy {
  min-width: 0;
}

.profile-menu-copy strong {
  display: block;
  color: var(--friend-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-menu-copy small {
  display: block;
  margin-top: 2px;
  color: var(--friend-muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile-menu-chevron {
  color: #b8bdd4;
  font-size: 20px;
}

.profile-language-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.profile-language-switch .language-option {
  min-height: 52px;
  border: 1px solid rgba(184, 193, 222, .36);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
}

.profile-language-switch .language-option[aria-pressed="true"] {
  border-color: rgba(108, 99, 255, .42);
  color: var(--friend-purple);
  background: rgba(108, 99, 255, .08);
}

.profile-saved-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.profile-saved-rail::-webkit-scrollbar {
  display: none;
}

.profile-saved-rail .place-card {
  flex: 0 0 min(260px, 78vw);
  min-width: min(260px, 78vw);
}

.profile-empty-card {
  padding: 18px;
  border: 1px dashed rgba(184, 193, 222, .48);
  border-radius: 18px;
  color: var(--friend-muted);
  background: rgba(255, 255, 255, .42);
  font-size: 13px;
  text-align: center;
}

.profile-content-stack {
  display: grid;
  gap: 0;
}

.profile-content-block {
  padding: 14px;
  border-top: 1px solid rgba(184, 193, 222, .28);
}

.profile-content-block:first-child {
  border-top: 0;
}

.profile-content-block h3 {
  margin: 0 0 10px;
  color: var(--friend-text);
  font-size: 14px;
  font-weight: 800;
}

.profile-item-list {
  display: grid;
  gap: 8px;
}

.profile-item-list .review-card {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

@media (max-width: 640px) {
  .profile-wallet-grid {
    grid-template-columns: 1fr;
  }

  .profile-app-header .app-nav,
  body.profile-app > footer {
    display: none !important;
  }
}

@media (min-width: 721px) {
  .profile-app-main {
    padding-top: 24px !important;
  }
}

/* v037 fixes: profile brand, tab bar glass, publish circle, recommend spacing */
.profile-brand-mark {
  display: inline-flex;
  margin: 0 auto;
  text-decoration: none;
}

.profile-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(108, 99, 255, .22);
}

body.profile-app .profile-app-header {
  background: rgba(245, 247, 252, .92) !important;
  border-bottom-color: rgba(184, 193, 222, .28) !important;
}

body.profile-app .profile-app-header-inner {
  justify-content: center !important;
  min-height: 56px !important;
}

.mobile-tabbar {
  display: block !important;
  grid-template-columns: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 100%) !important;
  box-shadow:
    0 0 0 .5px rgba(255, 255, 255, .72),
    0 20px 48px rgba(86, 99, 133, .22),
    0 6px 18px rgba(86, 99, 133, .10),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .42) !important;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-tabbar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .34) 100%) !important;
    backdrop-filter: blur(52px) saturate(220%) brightness(1.08) !important;
    -webkit-backdrop-filter: blur(52px) saturate(220%) brightness(1.08) !important;
  }
}

.mobile-tabbar a > span:last-child {
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}

.mobile-tabbar a.active > span:last-child {
  font-weight: 600 !important;
}

.mobile-tabbar-surface {
  touch-action: pan-y;
}

.publish-shortcut {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 48px !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
}

.publish-shortcut .material-symbols-outlined,
.publish-shortcut .material-symbols-rounded {
  margin: 0 !important;
  font-size: 24px !important;
}

.publish-shortcut > span:not(.material-symbols-outlined):not(.material-symbols-rounded) {
  display: none !important;
}

@media (max-width: 767px) {
  .recommend-app {
    padding-top: 8px !important;
  }

  .notes-feed-section {
    padding-top: 12px !important;
  }

  .recommend-compose:has(#noteForm.hidden) {
    display: none;
    margin: 0;
    padding: 0;
  }
}

/* ============================================================
   v038 · iOS Liquid Glass tab bar + XHS notes feed + fullscreen composer
   ============================================================ */

.mobile-tabbar {
  min-height: 64px !important;
  padding: 5px 7px !important;
  border: .5px solid rgba(255, 255, 255, .82) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .52) 100%) !important;
  box-shadow:
    0 0 0 .5px rgba(255, 255, 255, .65),
    0 24px 54px rgba(58, 66, 98, .20),
    0 8px 18px rgba(58, 66, 98, .08),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(255, 255, 255, .34) !important;
  will-change: transform;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-tabbar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .36) 100%) !important;
    backdrop-filter: blur(56px) saturate(220%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(56px) saturate(220%) brightness(1.1) !important;
  }
}

.mobile-tabbar.is-pressed {
  transform: scale(.985);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}

.mobile-tabbar-surface {
  min-height: 54px !important;
  touch-action: pan-y;
}

.mobile-tabbar-pill {
  top: -10px;
  left: 0;
  width: 72px;
  height: calc(100% + 18px);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .48) 100%);
  box-shadow:
    0 10px 28px rgba(72, 82, 120, .14),
    0 2px 8px rgba(72, 82, 120, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .42);
  overflow: hidden;
  will-change: transform, width, opacity;
}

.mobile-tabbar-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 120, 120, .34), rgba(120, 180, 255, .34), rgba(255, 210, 120, .28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mobile-tabbar-pill-shine {
  position: absolute;
  inset: 1px 8px auto;
  height: 42%;
  border-radius: 18px 18px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mobile-tabbar a {
  height: 50px !important;
  transition: color .28s ease, transform .28s cubic-bezier(.2, .85, .25, 1);
}

.mobile-tabbar a.active:not(.publish-tab) {
  color: var(--friend-purple) !important;
  transform: translateY(-1px);
}

.mobile-tabbar a.publish-tab .material-symbols-rounded,
.mobile-tabbar a.publish-tab .material-symbols-outlined {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  margin-top: -16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff4d4f, #ff6b8a 58%, #ff8f43) !important;
  box-shadow:
    0 10px 24px rgba(255, 77, 79, .34),
    inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

/* XHS notes feed page */
body.notes-feed-app {
  background: #fff !important;
}

@media (max-width: 767px) {
  body.notes-feed-app .notes-desktop-header,
  body.notes-feed-app .notes-desktop-footer {
    display: none !important;
  }

  body.notes-feed-app .xhs-notes-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.xhs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.xhs-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #222;
  background: transparent;
  text-decoration: none;
}

.xhs-feed-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.xhs-feed-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 0 12px;
  color: #8b8f9c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.xhs-feed-tabs button.is-active {
  color: #17182a;
  font-weight: 800;
}

.xhs-feed-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #ff4d4f;
  transform: translateX(-50%);
}

.xhs-feed-section {
  padding: 6px 8px 0;
}

.note-feed-tools {
  padding: 8px 10px 4px;
}

.note-feed-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(112, 118, 145, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px -24px rgba(46, 47, 90, .42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.note-feed-search .material-symbols-rounded {
  flex: 0 0 auto;
  color: #6f63ff;
  font-size: 20px;
}

.note-feed-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17182a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.note-feed-search input::placeholder {
  color: #9aa0b5;
}

.note-feed-filters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.note-feed-filters::-webkit-scrollbar {
  display: none;
}

.note-feed-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(112, 118, 145, .14);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .74);
  color: #6b7288;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px -22px rgba(46, 47, 90, .42);
}

.note-feed-filters button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #6557ff, #39b8ff);
}

.note-feed-result-status {
  min-height: 18px;
  padding: 2px 4px 0;
  color: #8b90a4;
  font-size: 12px;
  font-weight: 700;
}

.xhs-notes-grid {
  column-count: 2;
  column-gap: 8px;
}

.xhs-note-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 10px;
  break-inside: avoid;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.xhs-note-cover {
  width: 100%;
  border-radius: 12px;
  background-color: #eceef4;
  background-position: center;
  background-size: cover;
}

.xhs-note-title {
  display: -webkit-box;
  margin: 8px 6px 0;
  overflow: hidden;
  color: #17182a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.xhs-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 6px 0;
}

.xhs-note-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.xhs-note-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7c6cff, #ff6b8a);
  font-size: 10px;
  font-weight: 800;
}

.xhs-note-name {
  overflow: hidden;
  color: #666a78;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-note-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8b8f9c;
  font-size: 12px;
  font-weight: 600;
}

.xhs-note-like .material-symbols-rounded {
  font-size: 15px;
}

.xhs-empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  color: #8b8f9c;
  font-size: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .xhs-topbar {
    display: none;
  }

  .xhs-notes-grid {
    column-count: 3;
    column-gap: 16px;
  }
}

/* Fullscreen note composer */
.note-composer-screen {
  position: fixed;
  inset: 0;
  z-index: 4200;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  transition: transform .46s cubic-bezier(.32, .72, .08, 1), opacity .24s ease;
}

.note-composer-screen.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.note-composer-screen .note-composer-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding:
    calc(10px + env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    calc(18px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px)) !important;
}

body.note-composer-open .app-header,
body.note-composer-open .app-footer,
body.note-composer-open .mobile-tabbar,
body.note-composer-open .xhs-topbar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.note-composer-screen .note-composer-topbar {
  grid-template-columns: 42px 1fr auto;
  margin-bottom: 18px;
}

.note-composer-screen .note-composer-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #33364c;
  background: transparent;
  box-shadow: none;
}

.note-composer-screen .note-draft-button {
  border-color: rgba(137, 142, 170, .22);
  background: rgba(245, 246, 250, .92);
}

.note-composer-screen .note-title-input {
  font-size: 18px;
  font-weight: 700;
}

.note-composer-screen .note-content-input {
  min-height: 160px;
  font-size: 16px;
  line-height: 1.65;
}

.note-composer-screen .note-publish-button {
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d4f, #ff6b8a) !important;
  box-shadow: 0 12px 28px rgba(255, 77, 79, .24) !important;
}

/* v039 hotfix: always show app tab bar in WebView + fix transform conflicts */
body.app-body nav.mobile-tabbar[data-mobile-tabbar] {
  position: fixed !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
  z-index: 9999 !important;
  overflow: visible !important;
}

@media (max-width: 720px) {
  body.app-body nav.mobile-tabbar[data-mobile-tabbar] {
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    transform: none !important;
  }
}

/* ============================================================
   v042 · Original tab bar always + liquid-glass pill on press/drag only
   ============================================================ */

body.app-body nav.mobile-tabbar[data-mobile-tabbar],
.mobile-tabbar {
  min-height: 70px !important;
  padding: 6px 8px !important;
  border: 1.5px solid rgba(255, 255, 255, .84) !important;
  border-radius: 27px !important;
  background: rgba(255, 255, 255, .60) !important;
  box-shadow:
    0 12px 38px rgba(89, 96, 147, .17),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  transform: none !important;
  will-change: auto;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.app-body nav.mobile-tabbar[data-mobile-tabbar],
  .mobile-tabbar {
    backdrop-filter: blur(34px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(190%) !important;
  }
}

.mobile-tabbar.is-pressed {
  transform: none !important;
}

.mobile-tabbar-surface {
  min-height: 56px !important;
  touch-action: pan-y;
}

.mobile-tabbar-pill {
  top: 2px;
  left: 0;
  width: 20%;
  height: calc(100% - 4px);
  border-radius: 17px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .48) 100%);
  box-shadow:
    0 10px 28px rgba(72, 82, 120, .14),
    0 2px 8px rgba(72, 82, 120, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .42);
  overflow: hidden;
  will-change: transform, width, opacity;
}

.mobile-tabbar-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 120, 120, .34), rgba(120, 180, 255, .34), rgba(255, 210, 120, .28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mobile-tabbar-pill-shine {
  position: absolute;
  inset: 1px 8px auto;
  height: 42%;
  border-radius: 18px 18px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.note-composer-open.app-body nav.mobile-tabbar[data-mobile-tabbar] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* v043 · Smoother tabbar pill drag (GPU layer, no blur during drag) */
.mobile-tabbar-pill {
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mobile-tabbar.is-pressed .mobile-tabbar-pill {
  top: -6px;
  height: calc(100% + 10px);
  border-radius: 20px;
  opacity: 1 !important;
  will-change: transform;
}

.mobile-tabbar.is-pressed a,
.mobile-tabbar.is-pressed a.active:not(.publish-tab) {
  transition: none !important;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-tabbar.is-pressed .mobile-tabbar-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.mobile-tabbar a {
  height: 55px !important;
  border-radius: 17px !important;
  color: #898aa0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-tabbar:not(.is-pressed) a.active:not(.publish-tab) {
  color: var(--friend-purple) !important;
  background: rgba(108, 99, 255, .09) !important;
  box-shadow: 0 3px 13px rgba(108, 99, 255, .11) !important;
  transform: none !important;
}

.mobile-tabbar:not(.is-pressed) a.active:not(.publish-tab) .material-symbols-rounded,
.mobile-tabbar:not(.is-pressed) a.active:not(.publish-tab) .material-symbols-outlined {
  transform: translateY(-1px);
  font-variation-settings: 'FILL' 1;
}

.mobile-tabbar.is-pressed a.active:not(.publish-tab) {
  color: var(--friend-purple) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-tabbar a.publish-tab .material-symbols-rounded,
.mobile-tabbar a.publish-tab .material-symbols-outlined {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  margin-top: -24px !important;
  border: 1px solid rgba(255, 255, 255, .64) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue)) !important;
  box-shadow:
    0 8px 22px rgba(108, 99, 255, .34),
    inset 0 1px 0 rgba(255, 255, 255, .48) !important;
}

.mobile-tabbar a.publish-tab > span:last-child {
  color: var(--friend-purple) !important;
}

.mobile-tabbar button.publish-tab {
  position: relative;
  z-index: 5;
  isolation: isolate;
  display: flex;
  min-width: 0;
  height: 55px;
  padding: 5px 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  color: #898aa0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  overflow: visible !important;
}

.mobile-tabbar button.publish-tab > span:last-child {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 100%;
  margin: 0;
  transform: translateX(-50%);
  overflow: hidden;
  max-width: 100%;
  font-size: 9px !important;
  font-weight: 650 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: var(--friend-purple) !important;
}

.mobile-tabbar button.publish-tab .material-symbols-rounded,
.mobile-tabbar button.publish-tab .material-symbols-outlined {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border: none !important;
  outline: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--friend-purple), var(--friend-blue)) !important;
  background-clip: padding-box;
  box-shadow: 0 8px 22px rgba(108, 99, 255, .34) !important;
  transform: translateX(-50%) !important;
  font-size: 24px !important;
  line-height: 1 !important;
  z-index: 6;
}

.mobile-tabbar-pill {
  z-index: 1 !important;
}

/* v044 · Note location picker sheet (OpenStreetMap search) */
.note-location-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.note-setting-value.is-filled {
  color: #585b72 !important;
  font-weight: 600;
}

.note-location-backdrop[hidden] {
  display: none !important;
}

.note-location-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(24, 25, 39, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.note-location-sheet-open {
  overflow: hidden;
}

.note-location-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.note-location-panel {
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 50px rgba(79, 86, 132, .18);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22, 1, .32, 1);
}

.note-location-backdrop.is-open .note-location-panel {
  transform: none;
}

.note-location-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px 0;
}

.note-location-head h3 {
  margin: 0;
  color: #17182a;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.note-location-close,
.note-location-clear {
  border: 0;
  background: transparent;
  color: #585b72;
  font-size: 14px;
  font-weight: 650;
}

.note-location-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.note-location-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 0 14px;
  min-height: 48px;
  border-radius: 16px;
  background: #f3f4f8;
}

.note-location-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #17182a;
  font-size: 16px;
  outline: none;
}

.note-location-search .material-symbols-rounded {
  color: #8b8f9c;
  font-size: 22px;
}

.note-location-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(108, 99, 255, .08);
  color: #4f46e5;
  font-size: 16px;
  font-weight: 700;
}

.note-location-current .material-symbols-rounded {
  font-size: 22px;
}

.note-location-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.note-location-section + .note-location-section {
  margin-top: 14px;
}

.note-location-section h4 {
  margin: 0 0 8px;
  color: #8b8f9c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.note-location-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
}

.note-location-item:active {
  background: rgba(108, 99, 255, .08);
}

.note-location-item .material-symbols-rounded {
  color: #6c63ff;
  font-size: 22px;
}

.note-location-copy {
  min-width: 0;
}

.note-location-copy strong {
  display: block;
  overflow: hidden;
  color: #17182a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
}

.note-location-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #8b8f9c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.note-location-status {
  padding: 36px 12px;
  color: #8b8f9c;
  text-align: center;
}

.note-location-status .material-symbols-rounded {
  font-size: 34px;
}

.note-location-status p {
  margin: 10px 0 0;
  font-size: 15px;
}
/* v045 路 Native app feel: motion, skeletons, pickers, keyboard, previews */

html,
body {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  overflow-y: scroll;
  touch-action: auto;
}

html.app-page-ready {
  scroll-behavior: auto;
}

body.app-page-enter {
  animation: app-page-enter .42s cubic-bezier(.22, 1, .32, 1);
}

@keyframes app-page-enter {
  from { opacity: .72; }
  to { opacity: 1; }
}

body.page-leaving::after {
  transition: opacity .22s ease;
}

header,
.mobile-tabbar,
.mobile-tabbar a,
.app-picker-trigger,
.note-location-trigger,
.profile-menu-row,
.xhs-note-like,
.xhs-note-share,
.primary-action,
button[type="submit"] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
[contenteditable="true"],
.note-composer-panel,
.xhs-note-title,
.review-card p {
  -webkit-user-select: text;
  user-select: text;
}

body.keyboard-open .note-composer-screen .note-composer-panel {
  padding-bottom: calc(18px + var(--keyboard-gap, 0px) + env(safe-area-inset-bottom, 0px)) !important;
}

body.keyboard-open .note-publish-bar {
  transform: translateY(calc(-1 * var(--keyboard-gap, 0px) * .18));
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.app-picker-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(137, 142, 170, .18);
  border-radius: 14px;
  background: #fff;
  color: #585b72;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
}

.app-picker-trigger.is-filled {
  color: #17182a;
}

.app-picker-trigger::after {
  content: "expand_more";
  font-family: "Material Symbols Rounded";
  color: #a0a2b0;
  font-size: 20px;
}

.app-picker-backdrop[hidden] {
  display: none !important;
}

.app-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(24, 25, 39, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

body.app-picker-open {
  overflow: hidden;
}

.app-picker-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-picker-panel {
  width: min(560px, 100%);
  max-height: min(70vh, 640px);
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22, 1, .32, 1);
}

.app-picker-backdrop.is-open .app-picker-panel {
  transform: none;
}

.app-picker-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px 0;
}

.app-picker-head h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.app-picker-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.app-picker-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px calc(18px + env(safe-area-inset-bottom, 0px));
}

.app-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #17182a;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
}

.app-picker-option.is-active,
.app-picker-option:active {
  background: rgba(108, 99, 255, .08);
}

.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  animation-delay: var(--skeleton-delay, 0ms);
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #eceef4 0%, #f7f8fb 50%, #eceef4 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}

.skeleton-line {
  height: 12px;
  margin: 10px 12px 0;
  border-radius: 999px;
  background: #eceef4;
}

.skeleton-line-lg {
  width: 72%;
  height: 14px;
}

.skeleton-note .skeleton-media {
  aspect-ratio: 3 / 4.2;
}

.skeleton-deal .skeleton-media {
  aspect-ratio: 16 / 10;
}

@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}

.note-location-preview {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(137, 142, 170, .16);
  border-radius: 18px;
  background: #f8f9fc;
}

.note-location-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
}

.note-location-preview-head strong {
  overflow: hidden;
  color: #17182a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.note-location-preview-open {
  border: 0;
  background: transparent;
  color: #6c63ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.note-location-preview-map {
  display: block;
  width: 100%;
  height: 148px;
  border: 0;
  background: #e9ebf2;
}

.xhs-note-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 6px 0;
  color: #8b8f9c;
  font-size: 12px;
  font-weight: 600;
}

.xhs-note-location .material-symbols-rounded {
  font-size: 14px;
}

.xhs-note-location span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-note-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.xhs-note-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b8f9c;
}

.xhs-note-share .material-symbols-rounded {
  font-size: 16px;
}

.profile-recent-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 42%);
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.profile-recent-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(87, 94, 141, .08);
  text-decoration: none;
}

.profile-recent-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
}

.profile-recent-copy strong {
  display: block;
  overflow: hidden;
  color: #17182a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.profile-recent-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #8b8f9c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.profile-menu-icon.is-green {
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
}

/* v047 · Tab bar: fixed anchor on every page, hidden during splash */
body.app-splash-active nav.mobile-tabbar[data-mobile-tabbar] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

nav.mobile-tabbar[data-mobile-tabbar] {
  position: fixed !important;
  top: auto !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  nav.mobile-tabbar[data-mobile-tabbar] {
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    transform: none !important;
  }
}

body.note-composer-open nav.mobile-tabbar[data-mobile-tabbar],
body.commerce-dialog-open nav.mobile-tabbar[data-mobile-tabbar],
body.note-sheet-open nav.mobile-tabbar[data-mobile-tabbar],
body.note-location-sheet-open nav.mobile-tabbar[data-mobile-tabbar],
body.app-picker-open nav.mobile-tabbar[data-mobile-tabbar],
nav.mobile-tabbar[data-mobile-tabbar].is-overlay-hidden,
html.compose-direct nav.mobile-tabbar[data-mobile-tabbar],
#noteComposerScreen.is-open ~ nav.mobile-tabbar[data-mobile-tabbar] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#noteComposerScreen.is-open,
body.note-composer-open .note-composer-screen.is-open {
  z-index: 10050;
}

.note-media-inputs {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}

.note-media-inputs input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.01;
}

label.note-media-add {
  cursor: pointer;
  position: relative;
}

html.compose-direct .app-header,
html.compose-direct #recommendPage,
html.compose-direct .app-footer,
html.compose-direct .mobile-tabbar {
  visibility: hidden !important;
}

html.compose-direct #noteComposerScreen {
  visibility: visible !important;
}

body.note-composer-open,
body.app-splash-active {
  overflow: hidden;
}
