:root {
  --ink: #17213b;
  --muted: #6f7890;
  --line: #e7e9f1;
  --surface: #ffffff;
  --canvas: #f5f6fa;
  --primary: #5b21f4;
  --primary-dark: #4214c7;
  --primary-soft: #f0ebff;
  --mint: #e7f8f2;
  --mint-ink: #23765e;
  --rose: #c94361;
  --rose-soft: #fdecef;
  --amber: #fff4dc;
  --amber-ink: #956417;
  --shadow: 0 20px 55px rgba(39, 35, 72, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(91, 33, 244, .09), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(91, 33, 244, .22);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-page {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}
.back-button, .header-action, .icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.back-button:hover, .header-action:hover, .icon-button:hover {
  border-color: #c9bcf8;
  background: var(--primary-soft);
  color: var(--primary);
}
.header-copy { min-width: 0; flex: 1; }
.header-copy h1 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 5px;
  background: linear-gradient(145deg, #7a43ff, #4b15d8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91,33,244,.24);
}
.page-content { padding: 24px 20px 44px; }
.page-content.narrow { max-width: 590px; margin: 0 auto; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.page-lead { max-width: 590px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 13px;
}
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.section-heading a { color: var(--primary); font-size: 12px; font-weight: 750; text-decoration: none; }

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(140deg, #5b28ea, #236f9f);
  color: #fff;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -115px;
  right: -25px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}
.hero-panel .eyebrow { color: #9ef0d5; }
.hero-panel h2 { max-width: 520px; margin: 0; font-size: clamp(25px, 6vw, 37px); line-height: 1.1; letter-spacing: -.04em; }
.hero-panel p { max-width: 520px; margin: 11px 0 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-action {
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.hero-action.primary { border-color: #fff; background: #fff; color: var(--primary); }

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.search-field:focus-within { border-color: #bcaafa; box-shadow: 0 0 0 4px rgba(91,33,244,.07); }
.search-field input { width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.category-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: #c6b9f6; box-shadow: 0 10px 22px rgba(39,35,72,.07); }
.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}
.category-card:nth-child(3n+2) .category-icon { background: var(--mint); color: var(--mint-ink); }
.category-card:nth-child(3n) .category-icon { background: var(--amber); color: var(--amber-ink); }
.category-card strong { display: block; font-size: 13px; }
.category-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.filter-chip.active, .filter-chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.feed-list, .settings-list, .conversation-list { display: grid; gap: 10px; }
.feed-card {
  display: block;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(35,39,68,.035);
}
.feed-card:hover { border-color: #c8bcf5; }
.feed-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.feed-card h3 { margin: 10px 0 6px; font-size: 16px; line-height: 1.35; }
.feed-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 5px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; }
.tag.mint { background: var(--mint); color: var(--mint-ink); }
.tag.amber { background: var(--amber); color: var(--amber-ink); }

.primary-button, .secondary-button, .danger-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 17px;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(91,33,244,.2);
}
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { margin-top: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.secondary-button:hover { border-color: #c5b8f5; background: var(--primary-soft); }
.danger-button { background: var(--rose); box-shadow: 0 9px 20px rgba(201,67,97,.17); }
.floating-create {
  position: fixed;
  z-index: 15;
  right: max(22px, calc((100vw - 720px) / 2 + 22px));
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 25px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(91,33,244,.3);
}

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin: 0 0 7px 2px; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b9a8f8; box-shadow: 0 0 0 4px rgba(91,33,244,.07); }
.field-hint { margin: 6px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.onboarding-page { display: flex; min-height: 100vh; flex-direction: column; }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 8px; }
.progress-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.onboarding-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 22px 0; }
.onboarding-progress span { height: 4px; border-radius: 999px; background: #e5e7ef; }
.onboarding-progress span.done, .onboarding-progress span.current { background: var(--primary); }
.onboarding-content {
  display: flex;
  max-width: 610px;
  width: 100%;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 34px 22px;
}
.onboarding-actions { margin-top: 28px; }
.welcome-art {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
  border-radius: 28px 28px 28px 9px;
  background: linear-gradient(145deg, #7a43ff, #4b15d8);
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(91,33,244,.27);
}
.promise-list { display: grid; gap: 11px; margin-top: 27px; }
.promise-item { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.promise-item span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); font-weight: 900; }

.number-card {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, #192543, #263b68);
  color: #fff;
  text-align: center;
}
.number-card small { color: #aeb9d3; font-size: 11px; }
.number-value { margin: 14px 0 5px; font-family: Manrope, sans-serif; font-size: clamp(30px, 9vw, 48px); font-weight: 850; letter-spacing: .08em; }
.number-country { color: #9ef0d5; font-size: 12px; font-weight: 800; }
.number-actions { display: flex; justify-content: center; gap: 8px; margin-top: 19px; }
.number-actions button { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }

.recovery-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed #9d8bed;
  border-radius: 15px;
  background: var(--primary-soft);
}
.recovery-code code { color: var(--primary-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.security-note { padding: 13px 14px; border-radius: 13px; background: var(--mint); color: var(--mint-ink); font-size: 11px; line-height: 1.5; }

.detail-title { margin: 14px 0 9px; font-size: clamp(25px, 6vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.detail-body { color: var(--muted); font-size: 14px; line-height: 1.75; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0; }
.fact { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.fact small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.fact strong { display: block; margin-top: 5px; font-size: 12px; }

.conversation-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; border-radius: 13px; background: var(--canvas); }
.conversation-tabs button { padding: 9px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.conversation-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(30,35,63,.08); }
.conversation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-decoration: none;
}
.conversation[hidden] { display: none; }
.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, #7b70f3, #4d42d3);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.avatar.mint { background: linear-gradient(145deg, #5cc9a5, #288d70); }
.avatar.gold { background: linear-gradient(145deg, #efb85a, #d37b32); }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 13px; }
.conversation-copy span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.conversation-meta { color: var(--muted); font-size: 9px; text-align: right; }
.unread { display: grid; place-items: center; min-width: 20px; height: 20px; margin: 5px 0 0 auto; padding: 0 5px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 850; }

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
}
.account-card .avatar { width: 54px; height: 54px; }
.account-card-copy { min-width: 0; flex: 1; }
.account-card-copy strong { display: block; font-size: 15px; }
.account-card-copy span { display: block; margin-top: 5px; color: #b8c1d7; font-size: 11px; }
.plan-pill { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.11); color: #9ef0d5; font-size: 9px; font-weight: 850; }
.settings-group { margin-top: 24px; }
.settings-group h2 { margin: 0 0 10px 2px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}
.setting-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.setting-row:nth-child(3n) .setting-icon { background: var(--mint); color: var(--mint-ink); }
.setting-copy { min-width: 0; flex: 1; }
.setting-copy strong { display: block; font-size: 12px; }
.setting-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.chevron { color: #a2a7b6; font-weight: 800; }
.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #dcdfe8;
  cursor: pointer;
}
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .17s ease; }
.toggle[aria-pressed="true"] { background: var(--primary); }
.toggle[aria-pressed="true"]::after { transform: translateX(18px); }

.usage-bar { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e9ebf2; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  transform: translate(-50%, 25px);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  box-shadow: 0 13px 30px rgba(0,0,0,.2);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 620px) {
  body { background: #fff; }
  .app-page { width: 100%; box-shadow: none; }
  .app-header { min-height: 62px; padding: 10px 14px; }
  .page-content { padding: 20px 15px 42px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .floating-create { right: 18px; bottom: 18px; }
}

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

/* Scalable discovery, rich content and complete account flows. */
.overflow-wrap { position: relative; flex: 0 0 auto; }
.text-link { color: var(--primary); font-size: 11px; font-weight: 850; text-decoration: none; }
.back-button.home-mark {
  border: 0;
  border-radius: 13px 13px 13px 5px;
  background: linear-gradient(145deg, #7a43ff, #4b15d8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91,33,244,.2);
}
.overflow-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 9px);
  right: 0;
  width: 230px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(23, 33, 59, .2);
}
.overflow-menu[hidden] { display: none; }
.overflow-menu p {
  margin: 4px 9px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.overflow-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.overflow-menu a:hover, .overflow-menu a:focus {
  background: var(--primary-soft);
  color: var(--primary);
  outline: 0;
}
.overflow-menu a span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--canvas);
  font-weight: 900;
}
.menu-divider { height: 1px; margin: 7px 4px; background: var(--line); }

.visual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr);
  min-height: 300px;
  overflow: hidden;
  border-radius: 25px;
  background: linear-gradient(140deg, #31168e, #6634ed);
  color: #fff;
}
.visual-hero > div { z-index: 1; padding: 28px; }
.visual-hero .eyebrow { color: #bff6df; }
.visual-hero h1, .story-hero h1, .home-welcome h1 {
  margin: 0;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(27px, 6vw, 43px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.visual-hero p, .story-hero p, .home-welcome p {
  max-width: 480px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.6;
}
.visual-hero > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.visual-hero.wishlist-hero { background: linear-gradient(140deg, #751e55, #d44c74); }
.story-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,255,255,.18), transparent 11rem),
    linear-gradient(145deg, #17213b, #3f326f);
  color: #fff;
}
.story-hero .eyebrow { color: #f6cbe3; }

.discovery-tools { margin-top: 22px; }
.discovery-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.discovery-search-row .search-field { margin: 0; }
.filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.filter-button:hover { border-color: #c2b2fa; color: var(--primary); }
.filter-button b {
  display: none;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
}
.filter-button b.has-filters { display: grid; }
.discovery-tools .filter-row { margin-top: 11px; }
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.results-summary button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(16, 23, 43, .5);
  backdrop-filter: blur(2px);
}
.drawer-backdrop[hidden], .filter-drawer[hidden] { display: none; }
.filter-drawer {
  position: fixed;
  z-index: 75;
  right: max(0px, calc((100vw - 760px) / 2));
  bottom: 0;
  width: min(100%, 560px);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -24px 70px rgba(23,33,59,.24);
}
.filter-drawer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.filter-drawer header h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-list { display: grid; gap: 8px; margin-bottom: 20px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.check-row input { width: 17px; height: 17px; accent-color: var(--primary); }
.filter-actions { position: sticky; bottom: -22px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px; margin: 22px -22px -22px; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: #fff; }
.filter-actions .primary-button, .filter-actions .secondary-button { margin: 0; }
body.drawer-open { overflow: hidden; }

.category-grid.expanded { grid-template-columns: repeat(4, 1fr); }
.category-grid.expanded .category-card { min-height: 132px; }
.section-heading > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.section-heading > button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.media-feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.media-feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.media-feed-card:hover { transform: translateY(-3px); border-color: #c6b8f8; box-shadow: 0 15px 32px rgba(39,35,72,.1); }
.media-feed-image { position: relative; height: 178px; overflow: hidden; background: #e9e8f7; }
.media-feed-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-feed-card:hover img { transform: scale(1.035); }
.media-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(20,27,48,.76);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}
.media-feed-copy { padding: 15px; }
.media-feed-copy h3 { margin: 9px 0 6px; font-size: 16px; line-height: 1.28; letter-spacing: -.02em; }
.media-feed-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.story-art {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.24), transparent 7rem),
    linear-gradient(135deg, #43318c, #a74780);
  color: rgba(255,255,255,.84);
}
.story-art span { font-family: Georgia, serif; font-size: 96px; line-height: 1; }

.home-dashboard { background: linear-gradient(180deg, #faf9ff 0, #fff 260px); }
.home-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(126,83,255,.4), transparent 18rem),
    #17213b;
  color: #fff;
}
.home-welcome p { max-width: 390px; }
.identity-pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  text-decoration: none;
}
.identity-pill > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); font-size: 10px; font-weight: 900; }
.identity-pill small, .identity-pill strong { display: block; }
.identity-pill small { color: #aeb9d3; font-size: 8px; }
.identity-pill strong { margin-top: 2px; font-size: 10px; white-space: nowrap; }
.module-launch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 17px; }
.module-launch {
  display: grid;
  min-height: 128px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-decoration: none;
}
.module-launch > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.module-launch strong, .module-launch small { display: block; }
.module-launch strong { margin-top: 13px; font-size: 12px; }
.module-launch small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.module-launch b { align-self: end; margin-top: 9px; color: var(--primary); font-size: 8px; }
.module-launch.stories > span { background: #f9e8f2; color: #ad386f; }
.module-launch.wishes > span { background: var(--rose-soft); color: var(--rose); }
.module-launch.chats > span { background: var(--mint); color: var(--mint-ink); }
.module-launch.me > span { background: var(--amber); color: var(--amber-ink); }
.home-feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 190px 190px; gap: 12px; }
.home-feature {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #252b43;
  color: #fff;
  text-decoration: none;
}
.home-feature.large { grid-row: 1 / 3; }
.home-feature > img { width: 100%; height: 100%; object-fit: cover; }
.feature-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12,16,30,.82)); }
.home-feature > div:not(.story-art) { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 18px; }
.home-feature small, .home-feature strong, .home-feature div > span { display: block; }
.home-feature small { color: #bff6df; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.home-feature strong { margin-top: 7px; font-size: 17px; line-height: 1.25; }
.home-feature div > span { margin-top: 12px; font-size: 9px; font-weight: 800; }
.text-feature .story-art { height: 100%; }
.text-feature .story-art + div { background: linear-gradient(180deg, transparent, rgba(23,33,59,.95)); }

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #18233f, #263d70);
  color: #fff;
}
.profile-mark { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--primary); font-size: 13px; font-weight: 900; }
.profile-card > div:nth-child(2) { min-width: 0; flex: 1; }
.profile-card .eyebrow { color: #9ef0d5; }
.profile-card h1 { margin: 2px 0; font-size: 19px; letter-spacing: .02em; }
.profile-card p:last-child { margin: 0; color: #b8c3dc; font-size: 10px; }
.profile-card > a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; color: #fff; font-size: 9px; font-weight: 800; text-decoration: none; }
.setting-row.standalone { margin-top: 12px; }
.button-row { width: 100%; color: inherit; text-align: left; cursor: pointer; }

.detail-cover { position: relative; height: 330px; margin: -24px -20px 22px; overflow: hidden; background: #e9e8f7; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .media-badge { top: auto; bottom: 15px; left: 20px; }
.sticky-action { display: grid; grid-template-columns: 1.3fr 1fr; gap: 9px; margin-top: 26px; }
.sticky-action .primary-button, .sticky-action .secondary-button { margin: 0; }

.media-upload {
  display: grid;
  place-items: center;
  min-height: 178px;
  margin: 20px 0;
  padding: 22px;
  border: 1.5px dashed #b6a8ee;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  text-align: center;
  cursor: pointer;
}
.media-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-upload strong, .media-upload small { display: block; }
.media-upload strong { margin-top: 9px; font-size: 13px; }
.media-upload small { max-width: 360px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.media-upload.has-file { border-style: solid; background: var(--mint); color: var(--mint-ink); }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(91,33,244,.12); }
.compact-upload { min-height: 130px; }
.mini-upload { display: block; min-height: auto; margin: 4px 0 0; padding: 11px; text-align: left; }
.long-textarea { min-height: 230px !important; }

.wishlist-progress { display: flex; align-items: center; gap: 12px; margin: 17px 0 24px; }
.wishlist-progress > span { flex: 1; height: 9px; overflow: hidden; border-radius: 999px; background: #e8eaf1; }
.wishlist-progress > span b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #9a71ff); }
.wishlist-progress small { color: var(--muted); font-size: 9px; font-weight: 800; }
.wishlist-items { display: grid; gap: 10px; }
.wishlist-item {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.wishlist-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,33,244,.09); }
.wishlist-item.unavailable { background: #f7f7f9; opacity: .72; cursor: default; }
.wishlist-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.wishlist-item img, .item-placeholder { width: 74px; height: 66px; border-radius: 12px; object-fit: cover; }
.item-placeholder { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.item-placeholder.coral { background: var(--rose-soft); color: var(--rose); }
.item-placeholder.mint { background: var(--mint); color: var(--mint-ink); }
.item-placeholder.violet { background: var(--primary-soft); color: var(--primary); }
.wishlist-item span:last-child { min-width: 0; }
.wishlist-item strong, .wishlist-item small, .wishlist-item b { display: block; }
.wishlist-item strong { font-size: 12px; }
.wishlist-item small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.wishlist-item b { margin-top: 7px; color: var(--mint-ink); font-size: 8px; text-transform: uppercase; }
.wishlist-item.unavailable b { color: var(--muted); }
.selection-action {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px -20px 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.selection-action span { color: var(--muted); font-size: 10px; }
.selection-action strong { color: var(--ink); }
.selection-action .primary-button { width: auto; margin: 0; padding: 11px 16px; }
.selection-action .disabled { opacity: .45; pointer-events: none; }
.offer-summary { display: grid; gap: 8px; margin: 20px 0; }
.offer-summary label { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; font-weight: 750; }
.offer-summary input { width: 18px; height: 18px; accent-color: var(--primary); }
.wishlist-builder { display: grid; gap: 12px; }
.wishlist-builder-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fbfbfd; }
.builder-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 850; }
.add-item-button { width: 100%; margin: 12px 0 20px; padding: 13px; border: 1px dashed #b4a5eb; border-radius: 13px; background: #fff; color: var(--primary); font-size: 11px; font-weight: 850; cursor: pointer; }

.reading-page { max-width: 680px; margin: 0 auto; padding: 42px 28px 60px; }
.reading-page > h1 { margin: 8px 0 20px; font-family: Manrope, sans-serif; font-size: clamp(31px, 7vw, 50px); line-height: 1.08; letter-spacing: -.05em; }
.story-byline { display: flex; align-items: center; gap: 11px; margin: 18px 0; }
.story-byline strong, .story-byline small { display: block; }
.story-byline strong { font-size: 11px; }
.story-byline small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.content-warning { margin: 23px 0; padding: 13px; border-radius: 12px; background: var(--amber); color: var(--amber-ink); font-size: 10px; line-height: 1.5; }
.story-body { color: #303b55; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.8; }
.story-body h2 { margin: 30px 0 7px; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 18px; }
.story-body blockquote { margin: 27px 0; padding: 0 0 0 18px; border-left: 4px solid var(--primary); color: var(--ink); font-size: 21px; line-height: 1.5; }
.support-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.support-bar button, .support-bar a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--primary); font-size: 10px; font-weight: 850; text-decoration: none; cursor: pointer; }
.support-bar span { margin-right: auto; color: var(--muted); font-size: 10px; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.plan-card { padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.plan-card.premium { background: linear-gradient(160deg, #191f38, #403076); color: #fff; }
.plan-card h2 { margin: 16px 0 3px; font-size: 26px; }
.plan-card > strong { color: var(--muted); font-size: 11px; }
.plan-card.premium > strong { color: #c0c9dd; }
.plan-card ul { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.plan-card li { font-size: 10px; }
.plan-card li::before { content: "✓"; margin-right: 8px; color: var(--mint-ink); font-weight: 900; }
.plan-card.premium li::before { color: #9ef0d5; }
.small-danger { padding: 7px 9px; border: 1px solid #f0bec9; border-radius: 9px; background: var(--rose-soft); color: var(--rose); font-size: 9px; font-weight: 800; cursor: pointer; }
.case-card { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-top time, .case-card > p { color: var(--muted); font-size: 9px; }
.case-card h2 { margin: 15px 0 5px; font-size: 19px; }
.case-timeline { display: grid; gap: 0; margin: 22px 0; padding: 0; list-style: none; }
.case-timeline li { position: relative; padding: 0 0 22px 29px; }
.case-timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border: 3px solid #d6d8e2; border-radius: 50%; background: #fff; }
.case-timeline li::after { content: ""; position: absolute; top: 17px; bottom: 0; left: 7px; width: 2px; background: #e2e4eb; }
.case-timeline li:last-child::after { display: none; }
.case-timeline li.done::before, .case-timeline li.current::before { border-color: var(--primary); }
.case-timeline li.done::before { background: var(--primary); }
.case-timeline strong, .case-timeline small { display: block; }
.case-timeline strong { font-size: 11px; }
.case-timeline small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.empty-state { padding: 24px; border: 1px dashed #d6d8e2; border-radius: 16px; color: var(--muted); text-align: center; }
.empty-state span { display: grid; width: 34px; height: 34px; margin: 0 auto 9px; place-items: center; border-radius: 11px; background: var(--mint); color: var(--mint-ink); }
.empty-state p { margin: 0; font-size: 10px; }
.danger-card { padding: 20px; border: 1px solid #f1c4cd; border-radius: 17px; background: var(--rose-soft); }
.danger-card h3 { margin: 0; color: var(--rose); font-size: 16px; }
.danger-card p { color: #875264; font-size: 11px; line-height: 1.55; }
.about-brand { display: grid; place-items: center; padding: 30px 0; text-align: center; }
.about-brand .brand-mark { width: 62px; height: 62px; border-radius: 20px 20px 20px 8px; font-size: 25px; }
.about-brand h1 { margin: 12px 0 2px; font-size: 29px; letter-spacing: -.05em; }
.about-brand p { margin: 0; color: var(--muted); font-size: 10px; }
.privacy-note { color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 700px) {
  .category-grid.expanded { grid-template-columns: repeat(3, 1fr); }
  .module-launch-grid { grid-template-columns: repeat(3, 1fr); }
  .module-launch:nth-child(4), .module-launch:nth-child(5) { min-height: 100px; }
}

@media (max-width: 620px) {
  .visual-hero { display: block; min-height: 0; }
  .visual-hero > div { padding: 22px; }
  .visual-hero > img { height: 200px; min-height: 0; }
  .story-hero { padding: 23px; }
  .discovery-search-row { grid-template-columns: 1fr auto; }
  .filter-button { width: 48px; padding: 0; font-size: 0; }
  .filter-button span { font-size: 17px; }
  .filter-button b { position: absolute; margin: -34px -35px 0 0; font-size: 8px; }
  .filter-grid, .media-feed-grid, .plan-grid { grid-template-columns: 1fr; }
  .category-grid.expanded { grid-template-columns: 1fr 1fr; }
  .category-grid.expanded .category-card { min-height: 124px; }
  .media-feed-image { height: 210px; }
  .home-welcome { display: block; padding: 22px; }
  .identity-pill { width: max-content; margin-top: 20px; }
  .module-launch-grid { grid-template-columns: 1fr 1fr; }
  .module-launch:last-child { grid-column: 1 / 3; min-height: 90px; }
  .home-feature-grid { grid-template-columns: 1fr; grid-template-rows: 280px 190px 190px; }
  .home-feature.large { grid-row: auto; }
  .detail-cover { height: 260px; margin: -20px -15px 19px; }
  .wishlist-item { grid-template-columns: auto 60px minmax(0, 1fr); gap: 9px; }
  .wishlist-item img, .item-placeholder { width: 60px; height: 58px; }
  .selection-action { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; }
  .sticky-action { grid-template-columns: 1fr; }
  .reading-page { padding: 30px 19px 50px; }
  .story-body { font-size: 16px; }
  .filter-drawer { right: 0; padding: 19px 15px; }
  .filter-actions { bottom: -19px; margin: 19px -15px -19px; padding: 13px 15px 18px; }
}

@media (max-width: 390px) {
  .category-grid.expanded { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-card { padding: 12px; }
  .category-card small { display: none; }
  .wishlist-item { grid-template-columns: auto 1fr; }
  .wishlist-item img, .wishlist-item .item-placeholder { display: none; }
  .selection-action { align-items: flex-start; flex-direction: column; }
  .selection-action .primary-button { width: 100%; }
}

/* Native-mobile discovery system. */
body { background: #eceef4; }
.app-page {
  width: min(100%, 460px);
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(23,33,59,.03), 0 24px 70px rgba(23,33,59,.12);
}
.native-app-bar {
  position: sticky;
  z-index: 48;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(229,231,239,.9);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px) saturate(140%);
}
.native-app-bar > strong {
  min-width: 0;
  flex: 1;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 19px;
  letter-spacing: -.04em;
}
.native-profile, .native-back {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  text-decoration: none;
}
.native-profile {
  background: linear-gradient(145deg, #6e37f6, #4316c7);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(91,33,244,.2);
}
.native-back {
  background: #f1f2f7;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.native-location {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  max-width: 100px;
  height: 34px;
  padding: 0 9px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #f2f0fb;
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.native-location span { font-size: 13px; }
.native-app-bar .header-action { width: 36px; height: 36px; border: 0; background: #f1f2f7; }
.native-app-bar .overflow-menu { right: 0; }

.native-screen {
  min-height: calc(100vh - 58px);
  padding: 0 13px 104px;
  background: #f7f8fb;
}
.category-native-screen { padding-top: 18px; }
.category-native-screen .page-title { font-size: 31px; }
.category-native-screen .media-feed-grid { grid-template-columns: 1fr; margin-top: 18px; }
.category-native-screen .media-feed-card { border: 0; border-radius: 22px; box-shadow: 0 7px 25px rgba(23,33,59,.075); }
.category-native-screen .media-feed-image { height: 245px; }
.category-native-screen .media-feed-copy { padding: 15px 16px 17px; }
.category-native-screen .media-feed-copy h3 { font-size: 18px; }
.filter-drawer {
  right: max(0px, calc((100vw - 460px) / 2));
  width: min(100%, 460px);
}
.home-native { padding-top: 18px; }
.native-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.native-greeting small { color: var(--muted); font-size: 10px; font-weight: 750; }
.native-greeting h1 {
  max-width: 320px;
  margin: 4px 0 0;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.05em;
}
.native-greeting > a {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(23,33,59,.08);
}
.native-greeting > a b {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #f7f8fb;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 7px;
}

.native-module-rail {
  display: flex;
  gap: 13px;
  margin: 23px -13px 17px;
  padding: 0 13px 7px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.native-module-rail::-webkit-scrollbar, .native-topic-rail::-webkit-scrollbar { display: none; }
.native-module-rail a {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  justify-items: center;
  scroll-snap-align: start;
  text-decoration: none;
}
.native-module-rail a > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 20px;
  font-size: 23px;
  box-shadow: 0 7px 18px rgba(23,33,59,.1);
}
.native-module-rail .coral { background: #fee6e5; }
.native-module-rail .violet { background: #ece6ff; }
.native-module-rail .gold { background: #fff0c9; }
.native-module-rail .mint { background: #dff8ee; color: #24725b; font-size: 16px; font-weight: 900; }
.native-module-rail .ink { background: #17213b; color: #fff; font-size: 13px; font-weight: 900; }
.native-module-rail strong { margin-top: 8px; font-size: 8px; line-height: 1.2; text-align: center; }
.native-module-rail a > b {
  position: absolute;
  top: -4px;
  right: 5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #f7f8fb;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 7px;
}

.native-feed-tabs {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 45px;
  overflow-x: auto;
  border-bottom: 1px solid #e4e6ed;
  scrollbar-width: none;
}
.native-feed-tabs::-webkit-scrollbar { display: none; }
.native-feed-tabs button {
  position: relative;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: #8a90a2;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.native-feed-tabs button.active { color: var(--ink); }
.native-feed-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--primary);
}
.sticky-tabs {
  position: sticky;
  z-index: 30;
  top: 58px;
  margin: 0 -13px;
  padding: 0 13px;
  background: rgba(247,248,251,.95);
  backdrop-filter: blur(15px);
}
.home-native > .native-feed-tabs { margin: 0; }

.native-screen .discovery-tools { margin: 11px 0 0; }
.native-screen .discovery-search-row { grid-template-columns: minmax(0, 1fr) 44px; }
.native-screen .search-field {
  min-height: 42px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: #eceef4;
}
.native-screen .search-field input { height: 42px; font-size: 11px; }
.native-screen .filter-button {
  min-height: 42px;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0;
}
.native-screen .filter-button span { font-size: 18px; }
.native-screen .filter-button b { position: absolute; margin: -30px -31px 0 0; }
.native-screen .discovery-tools .filter-row { gap: 7px; margin: 10px -13px 0; padding: 0 13px 3px; }
.native-screen .filter-chip {
  padding: 8px 11px;
  border: 0;
  background: #eceef4;
  color: #646b7f;
  font-size: 9px;
}
.native-screen .filter-chip.active {
  background: var(--ink);
  color: #fff;
}
.native-screen .results-summary { margin: 9px 1px 0; font-size: 8px; }

.native-feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 21px 1px 11px;
}
.native-feed-heading strong, .native-feed-heading small { display: block; }
.native-feed-heading strong { font-size: 15px; letter-spacing: -.02em; }
.native-feed-heading small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.native-feed-heading > a, .native-feed-heading > button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.native-topic-rail {
  display: flex;
  gap: 9px;
  margin: 0 -13px;
  padding: 1px 13px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.native-topic {
  display: grid;
  flex: 0 0 auto;
  width: 104px;
  min-height: 117px;
  align-content: start;
  padding: 11px;
  overflow: hidden;
  border-radius: 20px;
  background: #e8efff;
  scroll-snap-align: start;
  text-decoration: none;
}
.native-topic:nth-child(6n+2) { background: #ffeadf; }
.native-topic:nth-child(6n+3) { background: #e4f8ef; }
.native-topic:nth-child(6n+4) { background: #f0e9ff; }
.native-topic:nth-child(6n+5) { background: #fff1c8; }
.native-topic:nth-child(6n) { background: #fee6f1; }
.native-topic > span {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(23,33,59,.06);
}
.native-topic strong { font-size: 10px; line-height: 1.18; }
.native-topic small { display: block; margin-top: 4px; color: #737b8f; font-size: 7px; line-height: 1.25; }

.native-feed-stack { display: grid; gap: 15px; }
.native-post-card, .native-story-card, .native-wishlist-card, .native-topic-prompt {
  overflow: hidden;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(23,33,59,.075);
}
.native-post-media {
  position: relative;
  display: block;
  height: 360px;
  overflow: hidden;
  background: #2b3147;
  color: #fff;
  text-decoration: none;
}
.native-post-media.tall { height: 430px; }
.native-post-media img { width: 100%; height: 100%; object-fit: cover; }
.native-post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,16,29,.24), transparent 35%, rgba(12,16,29,.88));
}
.post-kind {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15,19,33,.67);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  backdrop-filter: blur(9px);
}
.post-top-line {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-top-line .post-kind { position: static; }
.post-top-line > span:last-child { padding: 6px 9px; border-radius: 999px; background: rgba(15,19,33,.55); font-size: 8px; font-weight: 800; backdrop-filter: blur(9px); }
.post-media-copy {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 18px;
  left: 17px;
}
.post-media-copy small { font-size: 9px; font-weight: 800; }
.post-media-copy h2 { margin: 7px 0 0; font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.08; letter-spacing: -.045em; }
.post-media-copy p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 9px; }
.native-post-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 61px;
  padding: 10px 12px;
}
.mini-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 900;
}
.mini-avatar.coral { background: #ffe4e2; color: #b5414f; }
.mini-avatar.violet { background: #ebe5ff; color: var(--primary); }
.mini-avatar.mint { background: var(--mint); color: var(--mint-ink); }
.mini-avatar.gold { background: var(--amber); color: var(--amber-ink); }
.native-post-footer p { min-width: 0; flex: 1; margin: 0; }
.native-post-footer strong, .native-post-footer small { display: block; }
.native-post-footer strong { font-size: 9px; }
.native-post-footer small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.native-post-footer button {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f0f1f5;
  color: var(--ink);
  cursor: pointer;
}
.native-post-footer > a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}
.compact-post .native-post-media { height: 290px; }

.native-story-card { padding: 18px; }
.native-story-card.playful { background: linear-gradient(145deg, #ff734b, #f53874); color: #fff; }
.native-story-card.confession { background: linear-gradient(150deg, #241c4f, #6651b4); color: #fff; }
.native-story-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.native-story-top > span { font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.native-story-top button, .image-story footer button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
  cursor: pointer;
}
.native-story-card > a { display: block; color: inherit; text-decoration: none; }
.native-story-card > a > p { margin: 21px 0 16px; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.native-story-card > a > strong { font-size: 9px; }
.native-story-card footer { display: flex; align-items: center; gap: 13px; margin-top: 22px; color: rgba(255,255,255,.8); font-size: 8px; }
.native-story-card footer small { margin-left: auto; }
.image-story { position: relative; min-height: 470px; padding: 0; color: #fff; }
.image-story > a { position: absolute; inset: 0; }
.image-story img { width: 100%; height: 100%; object-fit: cover; }
.image-story-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 26%, rgba(15,19,35,.93)); }
.image-story > a > div { position: absolute; right: 18px; bottom: 70px; left: 18px; z-index: 2; }
.image-story > a small { color: #bff6df; font-size: 8px; font-weight: 900; letter-spacing: .07em; }
.image-story h2 { margin: 8px 0; font-family: Manrope, sans-serif; font-size: 29px; line-height: 1.08; letter-spacing: -.045em; }
.image-story > a p { margin: 0; color: rgba(255,255,255,.76); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 500; }
.image-story footer { position: absolute; z-index: 3; right: 18px; bottom: 17px; left: 18px; }

.native-wishlist-card { padding: 13px; }
.wishlist-cover-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  color: inherit;
  text-decoration: none;
}
.wishlist-cover-row img { width: 112px; height: 112px; border-radius: 17px; object-fit: cover; }
.wishlist-cover-row > div { padding: 5px 0; }
.wishlist-cover-row span, .wishlist-card-body small { color: var(--rose); font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.wishlist-cover-row h2, .wishlist-card-body h2 { margin: 7px 0 5px; font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.15; letter-spacing: -.035em; }
.wishlist-cover-row p, .wishlist-card-body p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.wishlist-mini-items {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wishlist-mini-items::-webkit-scrollbar { display: none; }
.wishlist-mini-items span, .wishlist-mini-items > b {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f0f1f5;
  color: #4c5367;
  font-size: 8px;
  font-weight: 750;
}
.native-progress { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.native-progress > span { flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: #e6e8ee; }
.native-progress > span b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb5275, #8a52f5); }
.native-progress small { color: var(--muted); font-size: 7px; white-space: nowrap; }
.native-progress a { padding: 7px 9px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 8px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.wishlist-feature-cover { position: relative; display: block; height: 265px; overflow: hidden; border-radius: 18px; }
.wishlist-feature-cover > img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-feature-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,20,35,.15), transparent 45%, rgba(15,20,35,.7)); }
.wishlist-cover-badge { position: absolute; z-index: 2; right: 11px; bottom: 11px; left: 11px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.wishlist-cover-badge span, .wishlist-cover-badge b { padding: 6px 8px; border-radius: 999px; background: rgba(15,20,35,.58); font-size: 8px; backdrop-filter: blur(8px); }
.wishlist-card-body { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 13px; }
.wishlist-card-body h2 { font-size: 19px; }
.visual-items span { display: grid; min-width: 73px; justify-items: center; gap: 4px; padding: 9px; }
.visual-items span b { font-size: 17px; }

.native-topic-prompt { padding: 16px; background: linear-gradient(145deg, #eee9ff, #faf8ff); box-shadow: none; }
.native-topic-prompt.warm { background: linear-gradient(145deg, #fff0d8, #fff9ee); }
.native-topic-prompt header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.native-topic-prompt strong, .native-topic-prompt small { display: block; }
.native-topic-prompt strong { font-size: 12px; }
.native-topic-prompt small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.native-topic-prompt header a { color: var(--primary); font-size: 8px; font-weight: 850; text-decoration: none; }
.native-topic-prompt > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.native-topic-prompt button {
  padding: 8px 10px;
  border: 1px solid rgba(91,33,244,.1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.native-topic-prompt button.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

.native-fab {
  position: fixed;
  z-index: 42;
  right: max(16px, calc((100vw - 460px) / 2 + 16px));
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 17px 0 8px;
  border-radius: 17px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 13px 28px rgba(91,33,244,.32);
}
.native-fab span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); font-size: 20px; }

.topic-sliders { display: grid; gap: 9px; margin-bottom: 20px; }
.topic-sliders label { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 13px; min-height: 43px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; }
.topic-sliders span { font-size: 10px; font-weight: 750; }
.topic-sliders input { width: 100%; accent-color: var(--primary); }

@media (max-width: 620px) {
  .app-page { box-shadow: none; }
}

@media (max-width: 360px) {
  .native-location { max-width: 82px; }
  .native-topic { width: 96px; }
  .native-post-media.tall { height: 390px; }
  .post-media-copy h2 { font-size: 22px; }
  .native-story-card > a > p { font-size: 22px; }
}

/* Production mobile sizing, safe areas, readable type and complete action flows. */
:root {
  --page-gutter: clamp(14px, 4vw, 24px);
  --safe-left: max(var(--page-gutter), env(safe-area-inset-left));
  --safe-right: max(var(--page-gutter), env(safe-area-inset-right));
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
}

html {
  min-width: 280px;
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(76px + env(safe-area-inset-top));
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.app-page {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: clip;
  box-shadow: none;
}

.app-header {
  min-height: calc(64px + env(safe-area-inset-top));
  padding:
    max(10px, env(safe-area-inset-top))
    var(--safe-right)
    10px
    var(--safe-left);
}

.header-home,
.native-home {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #f1f2f7;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.back-button,
.header-action,
.icon-button,
.native-profile,
.native-back,
.native-app-bar .header-action {
  width: 44px;
  height: 44px;
}

.header-copy h1 { font-size: clamp(18px, 4.8vw, 21px); }
.header-copy p { font-size: 12px; line-height: 1.35; }
.page-content {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding:
    clamp(20px, 5vw, 34px)
    var(--safe-right)
    calc(48px + env(safe-area-inset-bottom))
    var(--safe-left);
}
.page-content.narrow { max-width: 640px; }

.eyebrow,
.progress-label,
.section-heading a,
.text-link { font-size: 12px; }
.page-title { font-size: clamp(30px, 8.5vw, 44px); }
.page-lead,
.detail-body { font-size: clamp(15px, 3.9vw, 17px); }
.section-heading h2 { font-size: clamp(18px, 4.6vw, 21px); }
.hero-panel p,
.visual-hero p,
.story-hero p,
.home-welcome p { font-size: 15px; }
.category-card strong,
.feed-card p,
.field > span,
.promise-item,
.number-country,
.conversation-copy strong,
.setting-copy strong,
.filter-button,
.media-feed-copy p,
.media-upload strong,
.wishlist-item strong,
.offer-summary label,
.story-byline strong,
.support-bar button,
.support-bar a,
.danger-card p { font-size: 14px; }
.category-card small,
.feed-meta,
.feed-card p,
.field-hint,
.number-card small,
.security-note,
.fact strong,
.conversation-tabs button,
.conversation-copy span,
.account-card-copy span,
.setting-copy small,
.results-summary,
.media-feed-copy p,
.media-upload small,
.wishlist-item small,
.story-byline small,
.content-warning,
.case-top time,
.case-card > p,
.case-timeline small,
.empty-state p,
.privacy-note { font-size: 12px; }
.tag,
.fact small,
.conversation-meta,
.unread,
.plan-pill,
.settings-group h2,
.overflow-menu p,
.media-feed-copy .feed-meta,
.wishlist-progress small,
.wishlist-item b,
.case-timeline strong { font-size: 11px; }

.primary-button,
.secondary-button,
.danger-button,
.hero-action {
  min-height: 48px;
  font-size: 15px;
  line-height: 1.25;
}
.setting-row { min-height: 66px; }
.setting-icon { width: 40px; height: 40px; }
.search-field,
.field input,
.field select,
.field textarea { min-height: 48px; font-size: 16px; }
.toggle { width: 50px; height: 30px; }
.toggle::after { width: 24px; height: 24px; }
.toggle[aria-pressed="true"]::after { transform: translateX(20px); }
.filter-chip { min-height: 42px; font-size: 13px; }
.small-danger { min-height: 40px; padding-inline: 12px; font-size: 12px; }
.floating-create { width: 56px; height: 56px; right: var(--safe-right); bottom: var(--safe-bottom); }
.toast { bottom: calc(18px + env(safe-area-inset-bottom)); font-size: 14px; }

.native-app-bar {
  min-height: calc(64px + env(safe-area-inset-top));
  height: auto;
  gap: 7px;
  padding:
    max(8px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    8px
    max(10px, env(safe-area-inset-left));
}
.native-app-bar > strong {
  flex: 1 1 auto;
  font-size: clamp(18px, 5vw, 21px);
}
.native-location {
  max-width: clamp(70px, 22vw, 112px);
  height: 40px;
  padding-inline: 10px;
  font-size: 12px;
}
.native-home { width: 40px; height: 40px; font-size: 19px; }
.native-app-bar .header-action { width: 40px; height: 40px; }

.native-screen {
  width: 100%;
  max-width: 720px;
  min-height: calc(100svh - 64px);
  min-height: calc(100dvh - 64px);
  margin-inline: auto;
  padding:
    0
    var(--safe-right)
    calc(112px + env(safe-area-inset-bottom))
    var(--safe-left);
}
.category-native-screen { padding-top: 22px; }
.category-native-screen .media-feed-image {
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 230px;
}
.filter-drawer {
  right: 0;
  width: 100%;
  max-width: 720px;
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-tabs {
  top: calc(64px + env(safe-area-inset-top));
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
}
.native-greeting small,
.native-feed-heading small,
.native-feed-heading > a,
.native-feed-heading > button,
.native-screen .results-summary { font-size: 12px; }
.native-greeting h1 { font-size: clamp(29px, 8vw, 40px); }
.native-greeting > a { width: 44px; height: 44px; }
.native-greeting > a b,
.native-module-rail a > b { font-size: 10px; }

.native-module-rail {
  gap: 14px;
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
}
.native-module-rail a { width: 80px; }
.native-module-rail a > span { width: 64px; height: 64px; }
.native-module-rail strong { font-size: 12px; }
.native-feed-tabs { min-height: 50px; gap: 22px; }
.native-feed-tabs button { height: 49px; font-size: 14px; }
.native-screen .search-field,
.native-screen .search-field input { min-height: 48px; height: 48px; }
.native-screen .search-field input { font-size: 16px; }
.native-screen .discovery-search-row { grid-template-columns: minmax(0, 1fr) 48px; }
.native-screen .filter-button { width: 48px; min-height: 48px; }
.native-screen .discovery-tools .filter-row {
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
}
.native-screen .filter-chip { min-height: 42px; font-size: 13px; }
.native-feed-heading strong { font-size: 18px; }

.native-topic-rail {
  gap: 11px;
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
}
.native-topic {
  width: clamp(124px, 36vw, 148px);
  min-height: 150px;
  padding: 14px;
}
.native-topic > span { width: 44px; height: 44px; font-size: 22px; }
.native-topic strong { font-size: 14px; line-height: 1.25; }
.native-topic small { margin-top: 6px; font-size: 12px; line-height: 1.35; }

.native-feed-stack { gap: 18px; }
.native-post-card,
.native-story-card,
.native-wishlist-card,
.native-topic-prompt { border-radius: clamp(20px, 5vw, 28px); }
.native-post-media,
.native-post-media.tall,
.compact-post .native-post-media {
  height: auto;
  min-height: 350px;
  max-height: min(78dvh, 640px);
  aspect-ratio: 4 / 5;
}
.native-post-media.tall { aspect-ratio: 3 / 4; }
.compact-post .native-post-media { aspect-ratio: 1 / 1; }
.post-kind,
.post-top-line > span:last-child { font-size: 11px; }
.post-media-copy small,
.post-media-copy p { font-size: 13px; }
.post-media-copy h2 { font-size: clamp(27px, 8vw, 38px); }
.native-post-footer { min-height: 72px; padding: 12px 14px; }
.mini-avatar { width: 42px; height: 42px; font-size: 12px; }
.native-post-footer strong { font-size: 14px; }
.native-post-footer small { font-size: 12px; }
.native-post-footer button { width: 44px; height: 44px; font-size: 18px; }
.native-post-footer > a { min-height: 44px; padding: 12px 15px; font-size: 13px; }
.native-story-card { padding: 22px; }
.native-story-top > span,
.native-story-card > a > strong,
.native-story-card footer,
.image-story > a small { font-size: 12px; }
.native-story-card > a > p { font-size: clamp(26px, 7.5vw, 38px); }
.image-story {
  min-height: 500px;
  aspect-ratio: 4 / 5;
}
.image-story h2 { font-size: clamp(29px, 8vw, 42px); }
.image-story > a p { font-size: 14px; }
.wishlist-cover-row span,
.wishlist-card-body small { font-size: 11px; }
.wishlist-cover-row h2,
.wishlist-card-body h2 { font-size: 20px; }
.wishlist-cover-row p,
.wishlist-card-body p,
.native-progress small { font-size: 12px; }
.native-progress a { min-height: 40px; padding: 10px 12px; font-size: 12px; }
.native-topic-prompt strong { font-size: 15px; }
.native-topic-prompt small,
.native-topic-prompt header a,
.native-topic-prompt button { font-size: 12px; }
.native-topic-prompt button { min-height: 42px; padding: 9px 12px; }
.native-fab {
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  min-height: 56px;
  font-size: 14px;
}
.topic-sliders span { font-size: 13px; }

.first-heading { margin-top: 0; align-items: flex-start; }
.first-heading .eyebrow { margin-bottom: 6px; }
.timeline-list,
.saved-grid,
.step-list { display: grid; gap: 12px; margin-top: 22px; }
.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-decoration: none;
}
.unread-item { border-color: #d8cff8; background: #faf8ff; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--primary); }
.compact-form { margin-top: 18px; }
.request-card {
  margin-top: 18px;
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,33,59,.06);
}
.request-top { display: flex; align-items: center; gap: 12px; }
.request-top > div { min-width: 0; flex: 1; }
.request-top strong,
.request-top small { display: block; }
.request-top strong { font-size: 15px; }
.request-top small,
.request-context span { color: var(--muted); font-size: 12px; }
.request-card > p { margin: 18px 0; font-size: 15px; line-height: 1.55; }
.request-context { display: grid; gap: 3px; padding: 12px; border-radius: 13px; background: var(--canvas); }
.request-context strong { font-size: 13px; }
.split-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(100px, .6fr); gap: 9px; margin-top: 15px; }
.saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saved-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.saved-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.saved-card div { display: grid; gap: 5px; padding: 14px; }
.saved-card span,
.saved-card small { color: var(--muted); font-size: 12px; }
.saved-card strong { font-size: 15px; line-height: 1.35; }
.step-list { padding: 0; list-style: none; }
.step-list li { display: flex; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.step-list li > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--canvas); font-weight: 850; }
.step-list li.active { border-color: #cfc2fa; background: var(--primary-soft); }
.step-list li.active > span { background: var(--primary); color: #fff; }
.step-list strong,
.step-list small { display: block; }
.step-list strong { font-size: 15px; }
.step-list small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.code-field input { text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(19px, 6vw, 25px); font-weight: 800; letter-spacing: .08em; }
.checkout-summary,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.checkout-summary span,
.checkout-summary strong,
.checkout-summary small { display: block; }
.checkout-summary span { color: #bff6df; font-size: 12px; font-weight: 800; }
.checkout-summary strong { margin-top: 4px; font-size: 18px; }
.checkout-summary small { margin-top: 4px; color: #c6cee0; font-size: 12px; }
.checkout-summary b { font-size: 19px; white-space: nowrap; }
.checkout-total { margin-top: 12px; background: var(--canvas); color: var(--ink); }
.plain-list { margin: 13px 0 0; padding-left: 20px; }
.plain-list li { margin-top: 8px; font-size: 14px; line-height: 1.5; }

@media (min-width: 720px) {
  .native-screen { padding-inline: 24px; }
  .native-feed-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .native-feed-stack > .native-topic-prompt { grid-column: 1 / -1; }
  .native-module-rail,
  .native-topic-rail { margin-inline: 0; padding-inline: 0; }
  .app-header > *:first-child { margin-left: max(0px, calc((100vw - 760px) / 2)); }
  .app-header .overflow-wrap { margin-right: max(0px, calc((100vw - 760px) / 2)); }
}

@media (max-width: 520px) {
  .saved-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  :root { --page-gutter: 12px; }
  .app-header,
  .native-app-bar { gap: 5px; }
  .header-home,
  .native-home,
  .native-app-bar .header-action { width: 38px; height: 38px; }
  .native-location { max-width: 70px; padding-inline: 7px; }
  .header-copy p { display: none; }
  .native-topic { width: 122px; min-height: 146px; }
  .native-post-media,
  .native-post-media.tall { min-height: 360px; }
  .split-actions { grid-template-columns: 1fr; }
}

@media (max-width: 330px) {
  .native-app-bar > strong { font-size: 16px; }
  .native-location { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .native-post-media,
  .native-post-media.tall { max-height: 86svh; aspect-ratio: 16 / 10; }
  .image-story { min-height: 420px; aspect-ratio: 16 / 10; }
}

/* Yadid brand system and native onboarding refinement. */
.brand {
  display: inline-flex;
  width: 112px;
  height: 44px;
  align-items: center;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.home-mark img,
.native-profile img,
.profile-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.back-button.home-mark,
.native-profile,
.profile-mark {
  border: 0;
  background: #fff;
  box-shadow: 0 7px 20px rgba(84, 50, 111, .12);
}
.profile-mark img { width: 86%; height: 86%; }
.about-brand img {
  display: block;
  width: min(240px, 72vw);
  height: auto;
}

.onboarding-page {
  min-height: 100svh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% 5%, rgba(111, 55, 149, .08), transparent 19rem),
    #fff;
}
.onboarding-top,
.onboarding-progress {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}
.onboarding-top {
  min-height: calc(66px + env(safe-area-inset-top));
  padding:
    max(14px, env(safe-area-inset-top))
    var(--safe-right)
    8px
    var(--safe-left);
}
.onboarding-top .brand { width: 104px; }
.onboarding-top .progress-label {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1eef5;
  color: #635970;
  font-size: 12px;
  text-align: center;
}
.onboarding-progress {
  gap: 7px;
  padding: 8px var(--safe-right) 0 var(--safe-left);
}
.onboarding-progress span { height: 5px; background: #e9e5ed; }
.onboarding-progress span.done { background: #bba6c7; }
.onboarding-progress span.current {
  background: linear-gradient(90deg, #6f3795, #8a649a);
  box-shadow: 0 3px 9px rgba(111,55,149,.18);
}
.onboarding-content {
  width: 100%;
  max-width: 600px;
  justify-content: flex-start;
  padding:
    clamp(28px, 6vh, 54px)
    var(--safe-right)
    calc(30px + env(safe-area-inset-bottom))
    var(--safe-left);
}
.onboarding-content .page-title,
.welcome-content > h1 {
  max-width: 520px;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(32px, 9.2vw, 48px);
  line-height: 1.03;
  letter-spacing: -.052em;
}
.onboarding-content .page-lead {
  max-width: 520px;
  margin-top: 12px;
}
.onboarding-step-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #efe8f5, #f9f6fb);
  color: #6f3795;
  font-size: 25px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(111,55,149,.08);
}
.onboarding-content > .field:first-of-type { margin-top: 28px; }
.onboarding-content .field { margin-bottom: 15px; }
.onboarding-content .field input,
.onboarding-content .field select {
  min-height: 56px;
  border-radius: 17px;
  background-color: #f8f7fa;
}
.consent-row {
  margin-top: 4px;
  padding: 13px;
  border-radius: 15px;
  background: #f8f7fa;
}
.consent-row a { color: var(--primary); font-weight: 750; }
.onboarding-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}
.onboarding-actions .primary-button { min-height: 56px; border-radius: 17px; font-size: 16px; }
.onboarding-text-link {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: #665c70;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.welcome-content {
  justify-content: flex-start;
  padding-top: clamp(20px, 4vh, 38px);
  text-align: center;
}
.welcome-native-art {
  position: relative;
  min-height: clamp(245px, 38vh, 330px);
  margin: 0 0 24px;
}
.welcome-logo-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(132px, 39vw, 180px);
  height: clamp(132px, 39vw, 180px);
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 44px;
  background: linear-gradient(150deg, #fbf8fc, #eee5f3);
  box-shadow: 0 26px 55px rgba(78, 47, 94, .16);
}
.welcome-logo-disc img { width: 84%; height: 84%; object-fit: contain; }
.welcome-float-card {
  position: absolute;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(111,55,149,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  color: #554d5d;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(70, 44, 82, .11);
  backdrop-filter: blur(12px);
}
.welcome-float-card::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6d8e35;
}
.welcome-float-card.card-one { top: 8%; left: 2%; }
.welcome-float-card.card-two { top: 22%; right: 0; }
.welcome-float-card.card-three { right: 7%; bottom: 3%; }
.welcome-content .eyebrow { margin-bottom: 10px; }
.welcome-content > h1 { margin: 0; font-size: clamp(37px, 10.5vw, 55px); }
.welcome-content .page-lead { align-self: center; max-width: 390px; font-size: 16px; }
.welcome-actions { width: 100%; margin-top: auto; }

.number-card {
  margin-top: 28px;
  padding: clamp(24px, 7vw, 36px) 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 15%, rgba(255,255,255,.13), transparent 9rem),
    linear-gradient(145deg, #41284d, #70458a);
  box-shadow: 0 20px 45px rgba(70,40,88,.2);
}
.number-value {
  overflow-wrap: anywhere;
  font-size: clamp(30px, 9.5vw, 50px);
  letter-spacing: .055em;
}
.number-actions button { min-height: 44px; padding-inline: 15px; font-size: 13px; }

.recovery-code {
  margin-top: 25px;
  border-style: solid;
  border-color: #d4c7df;
  border-radius: 17px;
  background: #f7f2fa;
}
.recovery-code code { font-size: clamp(14px, 4vw, 18px); }
.recovery-kit {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 17px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(54, 38, 67, .07);
}
.recovery-qr {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
}
.recovery-qr img {
  display: block;
  width: 124px;
  aspect-ratio: 1;
  border: 7px solid #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(91,33,244,.12);
}
.recovery-qr span { color: var(--muted); font-size: 11px; font-weight: 750; }
.recovery-backup-copy > strong,
.recovery-backup-copy > small { display: block; }
.recovery-backup-copy > strong { font-size: 16px; }
.recovery-backup-copy > small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.recovery-backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}
.recovery-backup-grid a,
.recovery-backup-grid button {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f7fa;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.recovery-backup-grid span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #6f3795;
  font-weight: 900;
}

@media (max-width: 430px) {
  .recovery-kit { grid-template-columns: 1fr; }
  .recovery-qr { grid-template-columns: auto 1fr; align-items: center; justify-content: start; text-align: left; }
  .recovery-qr img { width: 112px; grid-row: 1 / 3; }
  .recovery-qr span { font-size: 12px; }
}

@media (max-width: 350px) {
  .welcome-float-card { font-size: 11px; }
  .welcome-float-card.card-one { left: 0; }
  .welcome-float-card.card-two { right: 0; }
  .recovery-backup-grid { grid-template-columns: 1fr; }
}

.welcome-page {
  background:
    radial-gradient(circle at 50% 22%, rgba(111,55,149,.12), transparent 19rem),
    linear-gradient(180deg, #fbf9fc 0%, #fff 55%);
}
.welcome-page .welcome-content {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: max(28px, env(safe-area-inset-top));
}
.welcome-page .welcome-native-art {
  min-height: clamp(250px, 42vh, 360px);
  margin-bottom: 18px;
}
.welcome-page .welcome-logo-disc {
  width: clamp(158px, 48vw, 208px);
  height: clamp(158px, 48vw, 208px);
  border-radius: clamp(42px, 13vw, 62px);
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.94), transparent 42%),
    linear-gradient(150deg, #f4edf7, #e9dced);
  box-shadow:
    0 30px 70px rgba(78,47,94,.16),
    inset 0 0 0 1px rgba(111,55,149,.07);
}
.welcome-page .welcome-logo-disc::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border: 1px solid rgba(111,55,149,.08);
  border-radius: inherit;
  transform: rotate(8deg);
}
.welcome-page .welcome-content > h1 { font-size: clamp(40px, 11vw, 58px); }
.welcome-page .welcome-actions {
  padding-top: clamp(26px, 5vh, 44px);
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
