:root {
  --pink: #ea2479;
  --violet: #7133c6;
  --sig: linear-gradient(112deg, #e62378, #7739d0);
  --surface: #faf6fb;
}

body { background: #f6edf5; }
.app-layout, .public-shell {
  width: min(100%, 460px);
  min-height: 100dvh;
  margin-inline: auto;
  background: radial-gradient(ellipse at 100% 0%, #f1def9, transparent 55%), #fffafd;
  box-shadow: 0 0 55px #44234715;
}
.app-layout { display: block; }
.main-content { max-width: none; padding: 16px 16px 112px; }
.sidebar {
  position: fixed; z-index: 12; inset: auto 0 max(12px, env(safe-area-inset-bottom)); 
  width: min(calc(100% - 24px), 436px); height: auto; min-height: 0;
  padding: 6px; margin: auto; display: block;
  border: 1px solid #f2e8f2; border-radius: 28px; background: #fff;
  box-shadow: 0 10px 28px #49294c19;
}
.sidebar-logo, .sidebar-foot, .mobile-menu, .topbar .eyebrow { display: none; }
.nav-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
.nav-button { display: grid; justify-content: center; justify-items: center; gap: 2px; min-width: 0; min-height: 48px; padding: 4px 0; border-radius: 22px; }
.nav-button span:not(.nav-icon) { display: block; font-size: 9px; }
.nav-icon svg, .round-action svg { width: 21px; height: 21px; display: block; }
.nav-button.active { color: #b51363; background: #fae8f3; }
.topbar { justify-content: space-between; margin-bottom: 16px; }
.user-pill { padding: 4px; }
.user-pill span { display: none; }
.page-heading { display: block; margin-bottom: 14px; }
.page-heading h1 { font-size: 24px; line-height: 1.25; }
.page-heading p { margin-top: 6px; font-size: 12px; }
.discover-layout, .profile-layout, .message-layout, .plan-grid { grid-template-columns: minmax(0, 1fr); }
[data-screen-view="discover"] .page-heading { display: none; }
.discover-main { padding: 0; background: transparent; border: 0; box-shadow: none; }
.discover-side { display: block; margin-top: 12px; }
.discover-side > * + * { margin-top: 10px; }
.story-strip { margin-bottom: 12px; }
.story img { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--sig) border-box; }
.profile-card { min-height: 0; background: white; border-radius: 23px; }
.profile-card::after { display: none; }
.profile-card > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; background: #f6d1e4; }
.profile-card-content { position: static; padding: 14px; color: var(--ink); }
.profile-card-content h2 { font-size: 20px; }
.profile-card-content p { color: var(--muted); }
.profile-tags span { color: #75245c; background: #faedf7; border-color: transparent; }
.profile-actions { margin-top: 14px; }
.round-action { background: #faedf7; color: #b51363; }
.round-action.primary { background: var(--sig); color: white; }
.conversation-list { border-right: 0; }
.chat-view { min-height: 420px; }
.chat-bubble.me { background: var(--sig); }
.auth-card { box-shadow: none; border: 0; background: transparent; padding: 24px 16px; }
.modal-backdrop { align-items: end; padding: 0; }
.modal { width: min(100%, 460px); border-radius: 26px 26px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.toast { bottom: 82px; }
.logout-button { width: auto; min-height: 40px; padding: 8px 12px; font-size: 11px; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.onboarding { width: 100%; }
.onboarding select, .onboarding textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: white; font: inherit; color: var(--ink); }
.dynamic-fields { display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 16px; padding: 12px; min-width: 0; }
.dynamic-fields p, .onboarding small { font-size: 12px; color: var(--muted); }
.radar-page { min-height: 65vh; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; padding: 20px; }
.radar-page h1 { align-self: flex-start; font-size: 22px; }
.radar { width: min(62vw, 250px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 56px auto; background: radial-gradient(circle, #f72585 0 25%, #ff498d 25% 40%, #ff83b4 40% 55%, #ffd1e4 55% 70%, #fff0f7 70%); }
.radar span { color: white; font-size: 54px; }
.radar-note { color: var(--muted); font-size: 12px; }
.swipe-card { position: relative; padding: 24px; touch-action: pan-y; user-select: none; will-change: transform; }
.swipe-instruction { color: var(--muted); font-size: 12px; }
.swipe-hint { position: absolute; right: 20px; top: 16px; color: var(--pink); font-weight: 700; }
.swipe-card button:disabled { opacity: .5; }
