:root {
  --app-height: 100vh;
  --keyboard-height: 0px;
  --app-bar-height: 64px;
  /*
   * The browser or native WebView host already positions this document below
   * its top chrome/status bar. Applying the environment inset here would add
   * that space a second time in embedded apps.
   */
  --safe-area-top: 0px;
  --safe-area-right: env(safe-area-inset-right);
  --safe-area-bottom: env(safe-area-inset-bottom);
  --safe-area-left: env(safe-area-inset-left);
  --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);
}

html.yadid-webview {
  --safe-area-top: 0px;
  --safe-area-right: 0px;
  --safe-area-bottom: 0px;
  --safe-area-left: 0px;
}

* { 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; min-width: 0; 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-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  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; }

/* App-owned date controls avoid WebKit's intrinsic native-date width, which
   can overflow iOS form columns. The original ISO input remains hidden for
   existing form validation and API payloads. */
.yadid-date-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.yadid-date-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yadid-date-trigger > i { flex: 0 0 auto; color: var(--ink); font-size: 17px; }
.yadid-date-trigger.is-empty > span { color: var(--muted); }
.yadid-date-trigger:focus-visible { border-color: #b9a8f8; box-shadow: 0 0 0 4px rgba(91,33,244,.07); outline: 0; }

.yadid-date-picker {
  position: fixed;
  z-index: 600;
  inset: 0;
  display: grid;
  align-items: end;
}
.yadid-date-backdrop { position: absolute; inset: 0; background: rgba(9, 14, 34, .42); backdrop-filter: blur(5px); }
.yadid-date-sheet {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px max(18px, var(--safe-area-right)) calc(18px + var(--safe-area-bottom)) max(18px, var(--safe-area-left));
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -20px 58px rgba(9, 14, 34, .22);
}
.yadid-date-sheet header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px; }
.yadid-date-month, .yadid-date-sheet footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yadid-date-sheet header > strong { min-width: 0; font-size: 18px; font-weight: 850; text-align: center; }
.yadid-date-header-spacer { width: 42px; height: 42px; }
.yadid-date-sheet header button, .yadid-date-month button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: #f0f2f7;
  color: var(--ink);
  font-size: 18px;
}
.yadid-date-sheet header button > span {
  display: block;
  margin-top: -2px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.yadid-date-month > strong { font-size: 16px; font-weight: 850; text-align: center; }
.yadid-date-month button:disabled { opacity: .35; }
.yadid-date-weekdays, .yadid-date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.yadid-date-weekdays span { padding: 5px 0; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.yadid-date-day {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}
.yadid-date-day.is-outside { color: #a9afbf; }
.yadid-date-day.is-selected { background: var(--primary); color: #fff; box-shadow: 0 8px 15px rgba(91,33,244,.22); }
.yadid-date-day:disabled { color: #c7cbd6; opacity: .58; }
.yadid-date-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.yadid-date-parts label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.yadid-date-parts select {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}
.yadid-date-parts select:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(91,33,244,.16);
  outline-offset: 1px;
}
.yadid-date-sheet footer { padding-top: 4px; }
.yadid-date-sheet footer button { min-height: 48px; flex: 1 1 0; border-radius: 14px; font: inherit; font-weight: 800; }
.yadid-date-sheet footer [data-yadid-date-clear] { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.yadid-date-sheet footer [data-yadid-date-use] { border: 0; background: var(--primary); color: #fff; }
.yadid-date-sheet footer [data-yadid-date-use]:disabled { background: #ddd8ed; color: #796fa0; }

.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; max-width: 100%; flex: 1 1 auto; overflow: hidden; }
.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-copy .conversation-origin-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { flex: 0 0 auto; min-width: 0; 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); }
.analytics-consent-row { align-items: flex-start; }
.analytics-consent-row .setting-icon { margin-top: 2px; }
.analytics-consent-row .setting-copy small { line-height: 1.4; }
.analytics-consent-row .field-hint { color: var(--primary); font-weight: 700; }
.analytics-consent-row .toggle { margin-top: 7px; }
.analytics-consent-row .toggle:disabled { cursor: not-allowed; opacity: .55; }

.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; }
.media-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -8px 0 20px; }
.media-preview { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e2e5ef; border-radius: 14px; background: #f6f7fb; aspect-ratio: 1; box-shadow: 0 6px 18px rgba(20, 32, 61, .08); }
.media-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-preview figcaption { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 17px 8px 7px; color: #fff; background: linear-gradient(transparent, rgba(6, 12, 31, .78)); font-size: 9px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.media-preview-remove { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(13, 24, 53, .86); box-shadow: 0 3px 10px rgba(0, 0, 0, .2); cursor: pointer; }
.media-preview-remove i { font-size: 13px; }
.media-preview-file { display: grid; place-items: center; color: var(--primary); }
.media-preview-glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #fff; font-size: 20px; }
.long-textarea { min-height: 168px !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-progress-card { margin: 18px 0 22px; padding: 16px; border: 1px solid rgba(91,33,244,.16); border-radius: 20px; background: linear-gradient(135deg, #faf8ff 0%, #f3f5ff 100%); box-shadow: 0 12px 28px rgba(26, 35, 73, .08); }
.wishlist-progress-heading { display: flex; align-items: center; gap: 11px; }
.wishlist-progress-heading > span:last-child { display: grid; gap: 3px; min-width: 0; }
.wishlist-progress-heading strong { color: var(--ink); font-size: 15px; }
.wishlist-progress-heading small { color: var(--muted); font-size: 11px; font-weight: 700; }
.wishlist-progress-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #5b21f4, #7c4dff); box-shadow: 0 7px 16px rgba(91,33,244,.2); }
.wishlist-progress-meter { display: flex; align-items: center; gap: 10px; margin: 15px 0 9px; }
.wishlist-progress-meter > span { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #e3e4ef; }
.wishlist-progress-meter > span b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b21f4, #9b74ff); transition: width .25s ease; }
.wishlist-progress-meter small { color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.wishlist-progress-line { display: flex; align-items: center; gap: 8px; margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; }
.wishlist-progress-line i { width: 16px; color: var(--primary); text-align: center; }
.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; }
.deletion-choice { position: relative; align-items: flex-start; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.deletion-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.deletion-choice.selected { border-color: var(--rose); background: #fff8fa; box-shadow: 0 8px 20px rgba(201,67,97,.09); }
.deletion-choice.disabled { opacity: .58; cursor: not-allowed; }
.deletion-choice .setting-copy small { max-width: 52rem; line-height: 1.45; }
.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), var(--safe-area-left));
  --safe-right: max(var(--page-gutter), var(--safe-area-right));
  --safe-bottom: max(20px, var(--safe-area-bottom));
}

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

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

.app-page {
  width: 100%;
  max-width: none;
  height: var(--app-height);
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--app-height);
  margin: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
}

.app-header {
  min-height: calc(64px + var(--safe-area-top));
  padding:
    max(10px, var(--safe-area-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 + var(--safe-area-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 + var(--safe-area-bottom)); font-size: 14px; }

.native-app-bar {
  min-height: calc(var(--app-bar-height) + var(--safe-area-top));
  height: auto;
  gap: 7px;
  padding:
    max(8px, var(--safe-area-top))
    max(10px, var(--safe-area-right))
    8px
    max(10px, var(--safe-area-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);
  min-height: calc(var(--app-height) - var(--app-bar-height) - var(--safe-area-top));
  margin-inline: auto;
  padding:
    0
    var(--safe-right)
    calc(112px + var(--safe-area-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: var(--safe-area-bottom);
}
.sticky-tabs {
  top: calc(64px + var(--safe-area-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; }
.requests-screen { display: grid; width: 100%; gap: 12px; padding: 0 0 12px !important; }
.request-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 15px; background: var(--canvas); }
.request-tabs button { min-height: 46px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.request-tabs button.active { background: var(--ink); color: #fff; box-shadow: 0 5px 14px rgba(23,33,59,.14); }
.request-tabs button b { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 999px; background: #e5e7ef; color: var(--ink); font-size: 11px; line-height: 1; }
.request-tabs button.active b { background: #fff; color: var(--ink); }
.request-search { margin: 0 16px; }
.requests-private-identity { margin: 0 16px; }
.request-feed { display: grid; gap: 12px; margin: 0 16px; }
.request-feed .request-card { margin-top: 0; }
.request-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.request-actions.request-actions-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.request-actions.request-actions-1 { grid-template-columns: 1fr; }
.request-actions > * { min-width: 0; min-height: 44px; height: 44px; margin: 0; padding: 8px 10px; border-radius: 12px; text-align: center; font-size: 11px; line-height: 1.15; box-shadow: none; }
.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-lifecycle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d9d1ff;
  border-radius: 17px;
  background: #faf8ff;
  color: var(--ink);
}
.request-lifecycle-card.is-blocked { border-color: #efc4ce; background: #fff7f8; }
.request-lifecycle-card.is-success { border-color: #bfe8d8; background: #f1fcf7; }
.request-lifecycle-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}
.request-lifecycle-card.is-blocked .request-lifecycle-icon { background: #fde7ec; color: #bd3f5b; }
.request-lifecycle-card.is-success .request-lifecycle-icon { background: #d9f5e9; color: #238563; }
.request-lifecycle-copy { display: grid; gap: 3px; min-width: 0; }
.request-lifecycle-copy strong { font-size: 14px; line-height: 1.25; }
.request-lifecycle-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.request-lifecycle-action { min-width: 112px; }
.request-lifecycle-action .secondary-button { min-height: 40px; margin: 0; padding: 8px 12px; font-size: 11px; }
@media (max-width: 520px) {
  .request-lifecycle-card { grid-template-columns: auto minmax(0, 1fr); }
  .request-lifecycle-action { grid-column: 2; min-width: 0; }
}
.request-review-sheet { position: fixed; inset: 0; z-index: 120; display: grid; align-items: end; }
.request-review-backdrop { position: absolute; inset: 0; border: 0; background: rgba(17,26,51,.38); }
.request-review-panel { position: relative; width: min(100%, 620px); max-height: min(82vh, 760px); overflow: auto; margin: 0 auto; padding: 22px max(20px, var(--safe-area-right)) calc(22px + var(--safe-area-bottom)) max(20px, var(--safe-area-left)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -18px 45px rgba(17,26,51,.18); }
.request-review-panel header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.request-review-panel header small { color: var(--primary); font-weight: 800; letter-spacing: .12em; }
.request-review-panel h2 { margin: 4px 0 0; color: var(--ink); font-size: 24px; }
.request-review-panel header button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: #f1f3f8; color: var(--ink); font-size: 22px; }
.request-review-panel > p { margin: 20px 0; white-space: pre-wrap; color: var(--ink); font-size: 17px; line-height: 1.55; }
.request-review-media { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.request-review-media button { width: 110px; height: 110px; flex: 0 0 110px; border: 0; border-radius: 16px; background: #f1f3f8 center/cover no-repeat; }
.request-review-actions { display: flex; margin-top: 16px; }
.request-review-actions > * { flex: 1; }
.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;
  min-height: var(--app-height);
  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 + var(--safe-area-top));
  padding:
    max(14px, var(--safe-area-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 + var(--safe-area-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;
  min-height: var(--app-height);
  padding-top: max(28px, var(--safe-area-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, var(--safe-area-bottom));
}

@media (max-width: 600px) and (max-height: 700px) {
  .welcome-page .welcome-content {
    padding-top: max(16px, var(--safe-area-top));
    padding-bottom: max(12px, var(--safe-area-bottom));
  }
  .welcome-page .welcome-native-art {
    min-height: clamp(160px, 30vh, 210px);
    margin-bottom: 8px;
  }
  .welcome-page .welcome-logo-disc {
    width: clamp(132px, 39vw, 164px);
    height: clamp(132px, 39vw, 164px);
    border-radius: clamp(36px, 11vw, 48px);
  }
  .welcome-page .welcome-content > h1 {
    font-size: clamp(34px, 9.5vw, 43px);
  }
  .welcome-page .welcome-content .page-lead {
    margin-top: 8px;
    line-height: 1.4;
  }
  .welcome-page .welcome-actions {
    padding-top: 16px;
  }
}

html.yadid-webview .welcome-page .welcome-content {
  padding-top: 0;
}

/* Mobile product refinement — feedback implementation */
[hidden] { display: none !important; }
body {
  --ink: #111a33;
  --muted: #606b84;
  font-size: 16px;
  line-height: 1.5;
}
.page-lead,
.setting-copy small,
.conversation-copy span,
.field-hint,
.post-copy,
.module-panel-heading small { color: var(--muted); }
.page-lead,
.field input,
.field select,
.field textarea,
.post-copy { font-size: 15px; }

.app-header {
  min-height: var(--app-bar-height);
  grid-template-columns: 44px minmax(0, 1fr) auto 44px 44px;
  gap: 8px;
  padding: 8px max(12px, var(--safe-area-right)) 8px max(12px, var(--safe-area-left));
}
.header-country,
.header-home,
.native-location,
.native-home,
.native-alert {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #f2effd;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.header-country { max-width: 126px; padding: 0 10px; }
.header-country b,
.native-location b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-home,
.native-home,
.native-alert { width: 44px; color: var(--ink); background: #f2f3f8; font-size: 19px; }
.overflow-menu i,
.header-home i,
.native-home i,
.native-alert i { line-height: 1; }
.overflow-menu i { margin-right: 10px; color: var(--primary); }
.onboarding-support-context .header-country,
.onboarding-support-context .header-home,
.onboarding-support-context .overflow-wrap { display: none; }
.onboarding-support-context .app-header { grid-template-columns: 44px minmax(0, 1fr); }

.native-app-bar {
  min-height: var(--app-bar-height);
  grid-template-columns: minmax(0, 1fr) auto 44px 44px;
  gap: 8px;
  padding: 8px max(12px, var(--safe-area-right)) 8px max(12px, var(--safe-area-left));
}
.native-brand-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.native-wordmark {
  display: flex;
  overflow: hidden;
  width: 74px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
}
.native-wordmark img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.home-app-bar .native-wordmark { width: 92px; }
.native-location { max-width: 126px; padding: 0 11px; }
.native-alert { position: relative; }
.native-alert .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d73a61;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
}
.yadid-native-alert-container { align-items: flex-end !important; padding: 12px max(12px, var(--safe-area-right)) calc(12px + var(--safe-area-bottom, 0px)) max(12px, var(--safe-area-left)) !important; }
.yadid-native-alert-popup { overflow: hidden; border: 1px solid rgba(255, 255, 255, .76); border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 60px rgba(16, 24, 52, .24); color: var(--ink, #16213f); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.yadid-native-alert-icon { display: grid !important; width: 52px !important; height: 52px !important; margin: 22px auto 8px !important; align-items: center; justify-content: center; border: 0 !important; border-radius: 18px !important; background: #eee9ff !important; color: #5b2bff !important; font-size: 24px !important; }
.yadid-native-alert-icon .bi { font-size: 24px; }
.yadid-native-alert-title { margin: 0 22px !important; color: var(--ink, #16213f); font-size: 21px !important; font-weight: 800 !important; letter-spacing: -.02em; }
.yadid-native-alert-copy { margin: 8px 24px 18px !important; color: var(--muted, #606b84); font-size: 15px !important; line-height: 1.42 !important; }
.yadid-native-alert-actions { width: auto !important; margin: 0 !important; padding: 0 14px 14px !important; gap: 9px !important; flex-direction: column !important; }
.yadid-native-alert-actions button { width: 100%; min-height: 48px; margin: 0 !important; border: 0; border-radius: 15px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.yadid-native-alert-confirm { background: #5b2bff; color: #fff; box-shadow: 0 8px 18px rgba(91, 43, 255, .22); }
.yadid-native-alert-cancel { background: #f1f2f7; color: var(--ink, #16213f); }
.yadid-native-alert-actions button:focus-visible { outline: 3px solid rgba(91, 43, 255, .34); outline-offset: 2px; }
.yadid-native-alert-show { animation: yadidNativeAlertIn .22s ease-out both; }
.yadid-native-alert-hide { animation: yadidNativeAlertOut .16s ease-in both; }
@keyframes yadidNativeAlertIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes yadidNativeAlertOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(12px) scale(.98); } }

.home-tune-banner,
.module-filter-banner {
  display: flex;
  width: calc(100% - 32px);
  min-height: 68px;
  align-items: center;
  gap: 12px;
  margin: 14px 16px;
  padding: 12px 14px;
  border: 1px solid #ddd4ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f1ff, #fff);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(91, 33, 244, .08);
}
.home-tune-banner i,
.module-filter-banner i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 19px;
}
.home-tune-banner div,
.module-filter-banner div { display: grid; min-width: 0; flex: 1; }
.home-tune-banner strong,
.module-filter-banner strong { font-size: 15px; }
.home-tune-banner small,
.module-filter-banner small { color: var(--muted); font-size: 12px; }
.home-tune-banner b,
.module-filter-banner b { color: var(--primary); font-size: 13px; white-space: nowrap; }

.module-tabs {
  position: sticky;
  z-index: 8;
  top: var(--app-bar-height);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
}
.module-tab {
  position: relative;
  min-height: 45px;
  padding: 7px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #737d94;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.module-tab.active { background: var(--primary-soft); color: var(--primary); }
.module-tab.active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 3px;
  left: 28%;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}
.module-tab-panel { min-height: calc(var(--app-height) - 120px); }
.module-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 16px 12px;
}
.module-panel-heading > div { display: grid; gap: 2px; }
.module-panel-heading h1,
.module-panel-heading h2 { margin: 0; font-size: clamp(21px, 5vw, 27px); line-height: 1.15; }
.module-panel-heading small { font-size: 13px; }
.module-panel-heading a { color: var(--primary); font-size: 13px; font-weight: 800; text-decoration: none; }

.module-category-list {
  display: grid;
  gap: 9px;
  margin: 0 16px 22px;
}
.module-category-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 26px rgba(24, 27, 49, .05);
  cursor: pointer;
}
.module-category-card .category-emoji {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  font-size: 23px;
}
.module-category-card > span:nth-child(2) { display: grid; gap: 1px; }
.module-category-card strong { font-size: 15px; }
.module-category-card small { color: var(--muted); font-size: 12px; }
.module-category-card .chevron { color: #9aa2b5; font-size: 22px; }

.social-feed { display: grid; gap: 16px; padding: 0 16px 110px; }
.social-post {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 28, 55, .08);
}
.social-post-header,
.social-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.social-post-header > div { display: grid; min-width: 0; }
.social-post-header strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.social-post-header small,
.social-post-footer { color: var(--muted); font-size: 12px; }
.social-post-body { padding: 13px 14px 15px; }
.social-post-body h2,
.social-post-body h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.22; }
.social-post-body p { margin: 0; }
.post-media-carousel {
  position: relative;
  display: flex;
  overflow: auto hidden;
  width: 100%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.post-media-carousel::-webkit-scrollbar { display: none; }
.post-media-carousel > button,
.post-media-single {
  position: relative;
  min-width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #e9ebf3;
  scroll-snap-align: start;
  cursor: pointer;
}
.post-media-carousel img,
.post-media-single img { width: 100%; height: 100%; object-fit: cover; }
.post-media-single { display: block; width: 100%; }
.media-count {
  position: absolute;
  right: 11px;
  bottom: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17,26,51,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.post-no-media {
  display: grid;
  min-height: 138px;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #efe9ff, #f5faf7);
  color: #5b5270;
  text-align: center;
}
.post-no-media i { display: block; margin-bottom: 5px; font-size: 28px; color: var(--primary); }
.post-facts,
.open-wish-items { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.post-facts span,
.open-wish-items span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f3f8;
  color: #4e5870;
  font-size: 11px;
  font-weight: 750;
}
.story-card .social-post-footer { border-top: 1px solid var(--line); }
.natural-image-story {
  position: relative;
  background: #111;
}
.natural-image-story img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; margin: auto; }
.natural-image-story .story-image-copy { position: absolute; right: 14px; bottom: 14px; left: 14px; color: #fff; text-shadow: 0 2px 12px #000; }

.filter-drawer { z-index: 40; }
.filter-drawer .field-hint { display: block; margin-top: 5px; font-size: 12px; }
.filter-summary { color: var(--primary); font-weight: 800; }
.native-fab {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(91,33,244,.3);
}
.native-fab i { font-size: 21px; }

.inbox-actions,
.chat-inbox-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 10px;
  margin: 16px;
}
.inbox-start,
.inbox-request {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  font-weight: 850;
  cursor: pointer;
}
.inbox-start { background: var(--primary); color: #fff; }
.inbox-request { position: relative; background: var(--primary-soft); color: var(--primary); font-size: 19px; }
.inbox-request b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d83b63;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}
.chat-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0 16px 12px;
  padding: 5px;
  border-radius: 15px;
  background: #f0f1f6;
}
.chat-tab { min-height: 39px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.chat-tab.active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(20,25,50,.07); }
.chat-inbox-list { display: grid; gap: 8px; padding: 0 16px 100px; }
.chat-inbox-list .conversation-row { margin: 0; }
.chat-action-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(14,20,39,.44);
}
.chat-action-sheet {
  position: fixed;
  z-index: 71;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: auto;
  padding: 10px 16px max(18px, var(--safe-area-bottom));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(20,25,50,.2);
}
.chat-action-sheet::before {
  content: "";
  width: 42px;
  height: 4px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: #d8dbe4;
}
.chat-action-sheet h2 { margin: 3px 2px 8px; font-size: 19px; }
.chat-action-sheet a,
.chat-action-sheet button {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 15px;
  background: #f5f5f9;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.chat-action-sheet i { color: var(--primary); font-size: 20px; }
body.sheet-open { overflow: hidden; }

.me-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 16px 16px;
  padding: 5px;
  border-radius: 15px;
  background: #eff0f5;
}
.me-tab { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 850; }
.me-tab.active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(20,25,50,.07); }
.me-panel { padding-bottom: 96px; }
.me-posts { display: grid; gap: 13px; padding: 0 16px; }
.me-post-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  overflow: hidden;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-decoration: none;
}
.me-post-card img { width: 74px; height: 100%; object-fit: cover; }
.me-post-card > div { display: grid; align-content: center; gap: 3px; padding: 11px; }
.me-post-card small { color: var(--primary); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.me-post-card strong { font-size: 14px; line-height: 1.25; }

.wishlist-item-media {
  display: block;
  overflow: hidden;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #eef0f5;
}
.wishlist-item-media img { width: 100%; height: 100%; object-fit: cover; }

.universal-media-viewer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #080b13;
  color: #fff;
}
.universal-media-viewer-track {
  display: flex;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.universal-media-viewer-track::-webkit-scrollbar { display: none; }
.universal-media-viewer-track figure {
  display: grid;
  min-width: 100%;
  margin: 0;
  place-items: center;
  padding: max(54px, var(--safe-area-top)) 0 26px;
  scroll-snap-align: start;
}
.universal-media-viewer-track img { max-width: 100%; max-height: calc(var(--app-height) - 90px); object-fit: contain; }
.universal-media-close {
  position: absolute;
  z-index: 2;
  top: max(12px, var(--safe-area-top));
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
}
.universal-media-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 12px max(16px, var(--safe-area-bottom)); }
.universal-media-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.universal-media-dots i.active { width: 20px; border-radius: 999px; background: #fff; }
body.media-viewer-open { overflow: hidden; }

.recovery-code-image {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e4dbee;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.recovery-code-image strong { color: #68328d; font-size: 18px; }
.recovery-code-image img { width: min(100%, 190px); height: auto; border-radius: 10px; }
.recovery-code-image small { color: var(--muted); font-size: 11px; }

@media (max-width: 430px) {
  .app-header { grid-template-columns: 42px minmax(0, 1fr) auto 42px 42px; gap: 5px; padding-right: 8px; padding-left: 8px; }
  .header-country { max-width: 102px; padding: 0 7px; }
  .native-app-bar { grid-template-columns: minmax(0, 1fr) auto 42px 42px; gap: 5px; padding-right: 8px; padding-left: 8px; }
  .native-location { max-width: 106px; padding: 0 8px; }
  .home-app-bar .native-wordmark { width: 82px; }
  .module-tab { font-size: 12px; }
  .module-filter-banner small,
  .home-tune-banner small { max-width: 205px; }
  .recovery-kit { grid-template-columns: 1fr; }
  .recovery-code-image { grid-template-columns: 100px minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; }
  .recovery-code-image img { width: 100px; grid-row: 1 / 4; }
}

@media (min-width: 761px) {
  .universal-media-viewer,
  .chat-action-backdrop { left: 50%; width: 760px; transform: translateX(-50%); }
}

/* Chats inbox: keep the conversation surface calm while retaining every live action. */
body.chats-page .native-app-bar {
  gap: 8px;
}
body.chats-page .native-app-bar > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.chats-page .chats-search-toggle {
  border: 0;
  padding: 0;
  background: #eee9ff;
  color: var(--primary);
  cursor: pointer;
}
body.chats-page .chats-search-toggle:hover,
body.chats-page .chats-search-toggle:focus-visible {
  background: #e3dbff;
  color: var(--primary);
}
body.chats-page .chats-start-header,
body.chats-page .chats-requests-header {
  display: grid;
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
}
body.chats-page .chats-start-header {
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 18px rgba(17, 26, 51, .2);
}
body.chats-page .chats-start-header:hover,
body.chats-page .chats-start-header:focus-visible { background: #202b4d; }
body.chats-page .chats-requests-header {
  background: #f1f2f7;
  color: var(--ink);
  font-size: 18px;
}
body.chats-page .chats-requests-header:hover,
body.chats-page .chats-requests-header:focus-visible { background: #e8e9ef; }
body.chats-page .chats-requests-header .badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #f7f8fb;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 16px;
}
body.chats-page .overflow-menu a,
body.chats-page .overflow-menu button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
body.chats-page .overflow-menu a:hover,
body.chats-page .overflow-menu a:focus-visible,
body.chats-page .overflow-menu button:hover,
body.chats-page .overflow-menu button:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
  outline: 0;
}
body.chats-page .overflow-menu a i,
body.chats-page .overflow-menu button i {
  width: 22px;
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  text-align: center;
}

body.chats-page .chats-search-bar {
  position: sticky;
  z-index: 37;
  top: var(--app-bar-height);
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 7px max(14px, var(--safe-area-right)) 7px max(14px, var(--safe-area-left));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(140%);
}
body.chats-page .chats-search-bar[hidden] { display: none; }
body.chats-page .chats-search-bar > i {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
}
body.chats-page .chats-search-bar input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #f5f6fa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
body.chats-page .chats-search-bar input:focus {
  border-color: #a88bff;
  box-shadow: 0 0 0 3px rgba(91, 33, 244, .12);
}
body.chats-page .chats-search-bar > button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #f1f2f7;
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
}
body.chats-page .chats-search-bar > button:hover,
body.chats-page .chats-search-bar > button:focus-visible { background: var(--primary-soft); color: var(--primary); }
body.chats-page .chats-search-bar > button i { display: block; font-size: 24px; line-height: 1; }

body.chats-page .chat-filter-tabs {
  position: sticky;
  z-index: 36;
  top: var(--app-bar-height);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 7px max(10px, var(--safe-area-right)) 7px max(10px, var(--safe-area-left));
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(245, 246, 250, .96);
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(140%);
}
body.chats-page.chats-search-open .chat-filter-tabs { top: calc(var(--app-bar-height) + 58px); }
body.chats-page .chat-filter-tabs button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #080808;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.14;
  cursor: pointer;
}
body.chats-page .chat-filter-tabs button.active {
  background: #17213b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 26, 51, .18);
}
body.chats-page .page-content.chats-inbox {
  padding-top: 0 !important;
}
body.chats-page .chat-inbox-actions,
body.chats-page .inbox-search-row { display: none; }
body.chats-page .modern-conversation-list { padding-top: 10px; }

@media (max-width: 390px) {
  body.chats-page .native-app-bar { gap: 5px; }
  body.chats-page .chats-start-header,
  body.chats-page .chats-requests-header { width: 38px; height: 38px; }
  body.chats-page .chats-search-toggle { width: 40px; height: 40px; }
  body.chats-page .chat-filter-tabs button { font-size: 13px; }
}

/* Trust and safety stays calm and concise: a report is private, never public. */
.report-form{max-width:720px}.report-context{margin:0 0 18px}.report-form .field small{display:block;margin-top:8px;color:#66728d;font-size:.86rem;line-height:1.4}.report-form .promise-item{margin:12px 0}.report-form .form-result{margin:14px 0;color:#315a47;font-weight:700}.case-list{display:grid;gap:14px}.case-card{border:1px solid #e5e9f3;border-radius:24px;background:#fff;padding:20px;box-shadow:0 12px 32px rgba(23,35,67,.06)}.case-card h2{font-size:1.08rem;margin:13px 0 6px;color:#15223f}.case-card p{margin:0;color:#66728d;font-size:.92rem}.case-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.case-top time{font-size:.78rem;color:#73809b;text-align:right}.tag.neutral{background:#eef1f7;color:#55627d}.case-timeline{margin:17px 0 0;padding:0;list-style:none;display:grid;gap:12px}.case-timeline li{position:relative;padding-left:24px;color:#66728d;font-size:.87rem}.case-timeline li:before{content:"";position:absolute;left:0;top:.3rem;width:11px;height:11px;border-radius:50%;background:#d3d9e7}.case-timeline li.done:before{background:#30a078}.case-timeline li.current:before{background:#6127ee;box-shadow:0 0 0 5px rgba(97,39,238,.11)}.case-timeline strong,.case-timeline small{display:block}.case-timeline strong{color:#1a2744;font-size:.9rem}.case-timeline small{margin-top:3px;color:#6d7891}

/* Explain the private ranking without exposing profile details. */
.match-reasons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
}
.match-reasons-label {
  color: #6b4ee6;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.match-reason {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(107, 78, 230, .16);
  border-radius: 999px;
  background: rgba(107, 78, 230, .08);
  color: #4b3a9a;
  font-weight: 700;
  white-space: nowrap;
}
.match-reason i { font-size: 12px; }
.native-post-media .match-reasons { color: #fff; }
.native-post-media .match-reason { border-color: rgba(255,255,255,.28); background: rgba(16,24,44,.55); color: #fff; }
.module-feed-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  padding: 12px 2px 10px;
  border-bottom: 1px solid #e5e8f0;
}
.module-feed-summary-copy { display: grid; min-width: 0; gap: 3px; }
.module-feed-summary strong { color: var(--ink, #17213b); font-size: 16px; font-weight: 850; line-height: 1.2; }
.module-feed-summary small { min-width: 0; color: var(--muted, #6b7691); font-size: 12px; line-height: 1.35; }
.module-summary-action { flex: 0 0 auto; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(91, 33, 244, .18); border-radius: 999px; background: #f2efff; color: #5420dc; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.module-summary-action:active { transform: scale(.98); }
.module-entry-guidance { display: flex; align-items: flex-start; gap: 12px; margin: 0 16px 14px; padding: 13px 14px; border: 1px solid #ded6ff; border-radius: 18px; background: linear-gradient(135deg, #fbfaff, #f2efff); color: var(--ink, #17213b); }
.module-entry-guidance-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #e7ddff; color: #5b21f4; font-size: 17px; }
.module-entry-guidance strong { display: block; font-size: 14px; font-weight: 850; line-height: 1.25; }
.module-entry-guidance p { margin: 3px 0 0; color: var(--muted, #6b7691); font-size: 12px; line-height: 1.4; }
.filter-advanced { margin: 14px 0 2px; overflow: hidden; border: 1px solid #e3e6ef; border-radius: 18px; background: #fbfbfe; }
.filter-advanced summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 54px; padding: 10px 14px; color: var(--ink, #17213b); cursor: pointer; list-style: none; }
.filter-advanced summary::-webkit-details-marker { display: none; }
.filter-advanced summary::marker { content: ""; }
.filter-advanced summary span { font-size: 14px; font-weight: 850; }
.filter-advanced summary small { color: var(--muted, #6b7691); font-size: 12px; line-height: 1.25; }
.filter-advanced summary i { color: #5b21f4; font-size: 16px; transition: transform .18s ease; }
.filter-advanced[open] summary { border-bottom: 1px solid #e3e6ef; background: #f5f2ff; }
.filter-advanced[open] summary i { transform: rotate(180deg); }
.filter-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; }
.filter-advanced-grid > .check-row { grid-column: 1 / -1; margin: 0; }
@media (max-width: 480px) {
  .module-feed-summary { align-items: flex-start; gap: 10px; margin-left: 16px; margin-right: 16px; }
  .module-feed-summary-copy { flex: 1 1 auto; }
  .module-summary-action { align-self: center; }
  .filter-advanced summary { grid-template-columns: auto 1fr auto; }
  .filter-advanced summary small { grid-column: 1 / 3; grid-row: 2; }
  .filter-advanced-grid { grid-template-columns: 1fr; }
  .filter-advanced-grid > .check-row { grid-column: auto; }
}
.feed-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1px solid #e2e5ef;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f7f5ff);
  color: var(--ink, #17213b);
  text-align: center;
  box-shadow: 0 12px 30px rgba(25, 35, 73, .06);
}
.feed-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #ebe4ff; color: #5b21f4; font-size: 20px; }
.feed-empty-state strong { font-size: 16px; }
.feed-empty-state small { max-width: 34ch; color: var(--muted, #6b7691); line-height: 1.45; }
.feed-empty-state .secondary-button { min-height: 42px; margin-top: 5px; padding: 0 18px; }
.feed-state-loading { border-style: solid; background: linear-gradient(145deg, #fff, #faf9ff); }
.feed-state-loading .feed-empty-icon { animation: feed-state-pulse 1.5s ease-in-out infinite; }
.feed-state-dots { display: inline-flex; align-items: center; gap: 5px; min-height: 8px; }
.feed-state-dots i { width: 6px; height: 6px; border-radius: 50%; background: #6b35f4; animation: feed-state-dot 1s ease-in-out infinite; }
.feed-state-dots i:nth-child(2) { animation-delay: .15s; }
.feed-state-dots i:nth-child(3) { animation-delay: .3s; }
.feed-state-error { border-color: #f0d5dc; background: linear-gradient(145deg, #fff, #fff7f8); }
.feed-state-error .feed-empty-icon { background: #fff0f2; color: #b9415e; }
.feed-state-error .secondary-button { background: var(--ink, #17213b); color: #fff; border-color: var(--ink, #17213b); }
@keyframes feed-state-pulse { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes feed-state-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-3px); opacity: 1; } }

/* Generated markup hooks */
.module-tabs [data-module-tab],
.me-tabs [data-me-tab] {
  position: relative;
  min-height: 45px;
  padding: 7px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #737d94;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.me-tabs [data-me-tab] {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
}
.me-tabs [data-me-tab] i { font-size: 15px; }
.me-tabs [data-me-tab] span { min-width: 0; }
.me-tabs [data-me-tab].active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 14px rgba(17, 26, 51, .16);
}
.module-tabs [data-module-tab].active,
.me-tabs [data-me-tab].active {
  background: var(--primary-soft);
  color: var(--primary);
}
.module-tabs [data-module-tab].active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 3px;
  left: 28%;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}
.module-filter-banner { border: 1px solid #ddd4ff; text-align: left; cursor: pointer; }
.module-filter-banner > span,
.module-panel-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
}
.module-filter-panel { padding-bottom: 100px; }
.module-filter-panel .module-panel-heading { align-items: center; }
.module-filter-panel .module-panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.persistent-filter { padding: 0 16px; }

.module-category-list > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(24, 27, 49, .05);
}
.module-category-list > a > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  font-size: 23px;
}
.module-category-list > a > div { display: grid; gap: 1px; }
.module-category-list > a strong { font-size: 15px; }
.module-category-list > a small { color: var(--muted); font-size: 12px; }
.module-category-list > a > b { color: #9aa2b5; font-size: 22px; }

.social-post > header,
.social-post > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.social-post > header > div { display: grid; min-width: 0; flex: 1; }
.social-post > header strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.social-post > header time { color: var(--muted); font-size: 11px; }
.social-post > header > button,
.social-post > footer button,
.social-post > footer a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.social-post > footer { border-top: 1px solid var(--line); }
.social-post > footer a { color: var(--primary); }
.post-media-empty {
  display: grid;
  min-height: 138px;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #efe9ff, #f5faf7);
  color: #5b5270;
  text-align: center;
}
.post-media-empty i { display: block; margin-bottom: 5px; color: var(--primary); font-size: 28px; }
.post-category { color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.mini-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}
.mini-avatar.mint { background: #dff7ee; color: #19876a; }
.mini-avatar.gold { background: #fff0ce; color: #9a650d; }
.mini-avatar.coral { background: #ffe4de; color: #b94f3c; }

.chat-primary-action,
.chat-request-action {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  font-weight: 850;
  text-decoration: none;
}
.chat-primary-action { flex: 1; background: var(--primary); color: #fff; }
.chat-request-action { position: relative; width: 52px; background: var(--primary-soft); color: var(--primary); font-size: 19px; }
.chat-request-action b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d83b63;
  color: #fff;
  font-size: 10px;
}
.chat-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0 16px 12px;
  padding: 5px;
}
.chat-filter-tabs button { min-height: 39px; padding: 0 4px; font-size: 12px; }
.modern-conversation-list { gap: 8px; padding: 0 16px 100px; }
.modern-conversation-list .conversation {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}
.chat-start-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(14,20,39,.44);
}
.chat-start-sheet {
  position: fixed;
  z-index: 71;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: auto;
  padding: 10px 16px max(18px, var(--safe-area-bottom));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(20,25,50,.2);
}
.chat-start-sheet .sheet-handle { width: 42px; height: 4px; margin: 0 auto 3px; border-radius: 999px; background: #d8dbe4; }
.chat-start-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.chat-start-sheet h2,
.chat-start-sheet p { margin: 0; }
.chat-start-sheet h2 { font-size: 19px; }
.chat-start-sheet p { color: var(--muted); font-size: 12px; }
.chat-start-sheet header button { width: 40px; height: 40px; border: 0; border-radius: 13px; background: #f1f2f6; }
.chat-start-sheet > a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 15px;
  background: #f5f5f9;
  color: var(--ink);
  text-decoration: none;
}
.chat-start-sheet > a > i { color: var(--primary); font-size: 20px; text-align: center; }
.chat-start-sheet > a span { display: grid; }
.chat-start-sheet > a strong { font-size: 14px; }
.chat-start-sheet > a small { color: var(--muted); font-size: 11px; }
.chat-start-sheet > a > b { color: #9aa2b5; font-size: 22px; }

.universal-media-viewer:not(.open) { display: none; }
.universal-media-viewer.open { display: grid; }
.universal-media-viewer > button {
  position: absolute;
  z-index: 2;
  top: max(12px, var(--safe-area-top));
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
}
.universal-media-track {
  display: flex;
  overflow: auto hidden;
  min-height: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.universal-media-track::-webkit-scrollbar { display: none; }
.universal-media-track > div {
  display: grid;
  min-width: 100%;
  place-items: center;
  padding: max(54px, var(--safe-area-top)) 0 26px;
  scroll-snap-align: start;
}
.universal-media-track img { max-width: 100%; max-height: calc(var(--app-height) - 90px); object-fit: contain; }
.universal-media-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.universal-media-dots span.active { width: 20px; border-radius: 999px; background: #fff; }
body.media-open { overflow: hidden; }

/* 2026-07 final mobile-shell refinements */
.home-app-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  width: 100%;
}
.home-app-bar .native-wordmark { justify-self: start; }
.home-app-bar .native-location { justify-self: end; }

.native-screen.module-home {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-bottom: calc(20px + var(--safe-area-bottom));
  padding-left: 0;
}
.native-screen.home-native { padding-bottom: calc(20px + var(--safe-area-bottom)); }
.module-tabs {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
.module-tab-panel > .module-filter-banner,
.module-tab-panel > .native-feed-heading,
.module-tab-panel > .module-panel-heading,
.module-tab-panel > .module-category-list,
.module-tab-panel > .filter-form,
.module-native-feed {
  margin-right: max(16px, var(--safe-area-right));
  margin-left: max(16px, var(--safe-area-left));
}
.module-native-feed {
  width: auto;
  max-width: none;
  padding-bottom: 74px;
}
.module-native-feed .native-post-card,
.module-native-feed .native-story-card,
.module-native-feed .native-wishlist-card { width: 100%; }

.native-fab {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 50%;
}
.native-fab i { font-size: 28px; }
.native-fab span { display: none; }

.drawer-backdrop { z-index: 110; }
.filter-drawer {
  z-index: 120;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 760px;
  max-height: calc(var(--app-height) - 8px);
  margin: auto;
}

.page-content.chats-inbox,
.page-content.me-screen {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-bottom: calc(20px + var(--safe-area-bottom));
  padding-left: 0;
}
.page-content.chats-inbox {
  /* Keep the inbox actions visually close to the native app header. */
  padding-top: 8px !important;
}
.chats-inbox .chat-inbox-actions,
.chats-inbox .inbox-search,
.chats-inbox .chat-filter-tabs {
  margin-right: max(16px, var(--safe-area-right));
  margin-left: max(16px, var(--safe-area-left));
}
.chats-inbox .chat-inbox-actions {
  margin-top: 4px;
}
.modern-conversation-list {
  width: 100%;
  max-width: none;
  padding-right: max(16px, var(--safe-area-right));
  padding-bottom: 20px;
  padding-left: max(16px, var(--safe-area-left));
}
.me-screen .profile-card,
.me-screen .me-panel > .native-feed-heading,
.me-screen .me-panel > .social-feed,
.me-screen .me-panel > .settings-group {
  margin-right: max(16px, var(--safe-area-right));
  margin-left: max(16px, var(--safe-area-left));
}
.me-screen .profile-card { margin-bottom: 18px; }
.me-screen .me-tabs { width: 100%; margin: 0 0 18px; }
.me-screen .me-panel { padding-bottom: 20px; }

/* My Profile begins with the section tabs directly beneath its header. */
.page-content.me-screen { padding-top: 0 !important; }
.me-screen .me-tabs {
  margin: 0 !important;
  padding: 6px max(10px, var(--safe-area-right)) 6px max(10px, var(--safe-area-left));
  border-radius: 0;
}
.me-screen .me-panel[data-me-panel="settings"] .profile-card { margin-top: 18px; }

.wishlist-cover-placeholder {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #f0ebff, #e5f8f1);
  color: var(--primary);
  font-size: 32px;
}
.wishlist-detail .detail-cover {
  display: block;
  width: calc(100% + 40px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: -24px -20px 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.wishlist-item {
  grid-template-columns: auto 78px minmax(0, 1fr) !important;
  gap: 14px !important;
}
.wishlist-item-media,
.wishlist-item .item-placeholder {
  display: grid !important;
  width: 78px !important;
  height: 72px !important;
  margin: 0 2px 0 0;
  place-items: center;
}
.wishlist-item-media img { display: block !important; }

.universal-media-viewer > button {
  z-index: 125;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(9,14,31,.72);
  font-size: 28px;
}

.country-search-control {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f8fb;
}
.country-search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

@media (max-width: 350px) {
  .wishlist-item { grid-template-columns: auto 66px minmax(0, 1fr) !important; gap: 10px !important; }
  .wishlist-item-media,
  .wishlist-item .item-placeholder { width: 66px !important; height: 64px !important; }
}

@media (max-width: 480px) {
  .wishlist-detail .detail-cover {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }
}

/* 2026-07 simplified headers and chat-style back navigation */
.back-button:not(.home-mark),
.native-back {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.back-button:not(.home-mark):hover,
.native-back:hover {
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
}

.app-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
}

.app-header.has-create {
  grid-template-columns: 44px minmax(0, 1fr) 40px 44px 44px;
}

.native-app-bar {
  grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
}

.native-app-bar.has-create {
  grid-template-columns: 44px minmax(0, 1fr) 40px 44px 44px;
}

.native-app-bar.home-app-bar {
  grid-template-columns: minmax(0, 1fr) 44px 44px;
}

@media (max-width: 430px) {
  .back-button:not(.home-mark),
  .native-back {
    width: 42px;
    height: 42px;
  }

  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  }

  .app-header.has-create {
    grid-template-columns: 42px minmax(0, 1fr) 38px 42px 42px;
  }

  .native-app-bar {
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  }

  .native-app-bar.has-create {
    grid-template-columns: 42px minmax(0, 1fr) 38px 42px 42px;
  }

  .native-app-bar.home-app-bar {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
  }
}

/* 2026-07 content-width and bottom-edge refinements */
.me-screen .me-panel > .me-post-feed {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}
.me-post-feed > .social-post,
.me-post-feed > .native-story-card {
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.category-native-screen {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}
.category-native-screen > .eyebrow,
.category-native-screen > .page-title,
.category-native-screen > .page-lead,
.category-native-screen > .results-summary {
  margin-right: max(16px, var(--safe-area-right));
  margin-left: max(16px, var(--safe-area-left));
}
.category-native-screen > .discovery-tools,
.category-native-screen > .module-native-feed {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
.category-native-screen .standalone-filter-banner {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}
.category-native-screen .module-native-feed > .native-post-card,
.category-native-screen .module-native-feed > .native-story-card,
.category-native-screen .module-native-feed > .native-wishlist-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.module-panel-heading {
  justify-content: flex-start;
}
.wishlist-availability {
  justify-content: space-between;
  min-height: 40px;
}
.wishlist-availability small,
.wishlist-availability a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}
.interest-detail-page .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.app-page,
.app-page main,
.page-content,
.native-screen,
.native-screen.module-home,
.native-screen.home-native,
.module-tab-panel,
.module-filter-panel,
.module-native-feed,
.social-feed,
.modern-conversation-list,
.me-panel,
.reading-page,
.onboarding-page,
.onboarding-content,
.category-native-screen {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.module-tab-panel { min-height: 0; }

/* 2026-07 edge-to-edge module feeds and header creation */
.native-create {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17, 26, 51, .2);
}

.module-home .module-native-feed {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
.module-home .module-native-feed > .native-post-card,
.module-home .module-native-feed > .native-story-card,
.module-home .module-native-feed > .native-wishlist-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.module-home .module-filter-panel > .persistent-filter {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: max(16px, var(--safe-area-right));
  padding-left: max(16px, var(--safe-area-left));
  border-radius: 0;
}

/* Phase 3: make discovery state visible without forcing users to remember
   whether a filter was saved. The status is deliberately compact so the
   filter form remains the primary action on small screens. */
.module-filter-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 max(16px, var(--safe-area-right)) 12px max(16px, var(--safe-area-left));
  padding: 13px 15px;
  border: 1px solid #e0d8ff;
  border-radius: 17px;
  background: linear-gradient(135deg, #fbfaff 0%, #f2efff 100%);
  color: var(--ink);
}
.module-filter-status[data-filter-ready="true"] {
  border-color: #cfeee2;
  background: linear-gradient(135deg, #f8fffc 0%, #eefaf5 100%);
}
.module-filter-status strong,
.module-filter-status small { display: block; min-width: 0; }
.module-filter-status strong { font-size: 14px; line-height: 1.2; }
.module-filter-status small {
  margin-top: 4px;
  overflow: hidden;
  color: #5f6b86;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-filter-status button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: #17213b;
  color: #fff;
  font: 800 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
@media (max-width: 390px) {
  .module-filter-status { gap: 8px; padding: 12px; }
  .module-filter-status small { font-size: 11px; }
  .module-filter-status button { min-height: 36px; padding: 0 10px; }
}

/* 2026-08 launch polish: clearer hierarchy, native touch targets and empty states. */
.native-app-bar .header-action,
.native-app-bar > a:first-child,
.native-app-bar > button:first-child {
  min-width: 44px;
  min-height: 44px;
}

.module-filter-status > div {
  min-width: 0;
}

.chat-empty-state,
.profile-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 28px 18px;
  padding: 30px 24px;
  border: 1px solid #e2e5ee;
  border-radius: 24px;
  background: linear-gradient(155deg, #ffffff 0%, #f7f6fc 58%, #f1edff 100%);
  box-shadow: 0 16px 40px rgba(31, 39, 70, .08);
  text-align: center;
}
.chat-empty-state > span,
.profile-empty-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 20px;
  background: #e9e2ff;
  color: var(--primary);
  font-size: 25px;
}
.chat-empty-state strong,
.profile-empty-state strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}
.chat-empty-state small,
.profile-empty-state small {
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.chat-empty-state a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 22px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}
.chat-empty-state.compact { padding-block: 24px; }

.me-post-feed {
  display: grid;
  gap: 10px;
  background: #f5f6fa;
}
.me-post-feed > .live-me-post {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e5e7ef;
  border-bottom: 1px solid #e5e7ef;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 43, 74, .06);
}
.live-me-post::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #5630dc;
  content: "";
}
.live-me-post.post-type-wishlist::before { background: #e19a22; }
.live-me-post.post-type-story::before { background: #d84873; }
.live-me-post > header { min-height: 68px; padding: 13px 16px 11px 18px; }
.live-me-post .mini-avatar {
  background: #ece6ff;
  color: #5630dc;
}
.live-me-post.post-type-wishlist .mini-avatar { background: #fff1d4; color: #b56d00; }
.live-me-post.post-type-story .mini-avatar { background: #ffe4ec; color: #bd315c; }
.live-me-post .post-type-tag {
  border: 0;
  background: #ece6ff;
  color: #4f2bc4;
}
.live-me-post.post-type-wishlist .post-type-tag { background: #fff1d4; color: #9a5c00; }
.live-me-post.post-type-story .post-type-tag { background: #ffe4ec; color: #a52a50; }
.live-me-post .social-post-body { padding: 8px 18px 16px; }
.live-me-post .social-post-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.live-me-post > footer { padding: 0; }
.live-me-post > footer .profile-post-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}
.profile-empty-state { margin-block: 42px; }

.story-detail-page .story-body {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #e5e7ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 43, 74, .06);
  color: #27324a;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

@media (max-width: 430px) {
  .interest-actions.owner-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .interest-actions.owner-actions .primary-button {
    grid-column: auto;
  }
  .me-screen .me-tabs [data-me-tab] {
    padding-inline: 5px;
    font-size: 13px;
    white-space: nowrap;
  }
}

.app-page main > .page-content,
.app-page main > .native-screen,
.app-page main > .reading-page,
.app-page main > .onboarding-page {
  padding-bottom: 12px !important;
}

@media (max-width: 390px) {
  .native-app-bar { gap: 5px; }
  .native-location { max-width: 92px; }
  .native-create,
  .native-home,
  .native-app-bar .header-action {
    width: 38px;
    height: 38px;
  }
}

/* 2026-07 module continuity, filter gutters and mobile readability */
:root {
  --ink: #080808;
  --muted: #242424;
}

body {
  color: var(--ink);
  font-size: 16px;
}

.app-header.has-create {
  grid-template-columns: 44px minmax(0, 1fr) auto 40px 44px 44px;
}

.native-app-bar.has-create {
  grid-template-columns: minmax(0, 1fr) auto 40px 44px 44px;
}

.category-native-screen .standalone-filter-banner {
  width: auto;
  margin: 14px max(12px, var(--safe-area-right)) 14px max(12px, var(--safe-area-left));
  border: 1px solid #ddd4ff;
  border-radius: 18px;
}

.native-app-bar > strong,
.header-copy h1 {
  color: var(--ink);
  font-size: clamp(19px, 5vw, 22px);
}

.page-title {
  color: var(--ink);
  font-size: clamp(32px, 8.5vw, 44px);
}

.detail-title {
  color: var(--ink);
  font-size: clamp(28px, 7.4vw, 38px);
}

.page-lead,
.detail-body,
.story-body,
.policy-copy {
  color: var(--ink);
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.55;
}

.module-tab,
.me-tabs button,
.conversation-tabs button {
  font-size: 14px;
}

.native-feed-heading strong,
.module-panel-heading h2,
.section-heading h2 {
  color: var(--ink);
  font-size: clamp(19px, 5vw, 22px);
}

.native-feed-heading small,
.module-panel-heading p,
.module-filter-banner small,
.home-tune-banner small,
.results-summary {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.module-filter-banner strong {
  color: var(--ink);
  font-size: 16px;
}

.wishlist-cover-row span {
  color: var(--ink);
  font-size: 11px;
}

.wishlist-cover-row h2 {
  color: var(--ink);
  font-size: clamp(19px, 5vw, 22px);
}

.wishlist-cover-row p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.wishlist-availability small,
.wishlist-availability a,
.native-post-footer p strong,
.post-media-copy small {
  font-size: 13px;
}

.post-media-copy h2 {
  font-size: clamp(24px, 7vw, 31px);
}

.social-post-body h2 {
  color: var(--ink);
  font-size: 20px;
}

/* 2026-07 category feeds: compact header, sticky filter, scrolling results */
.module-home .module-tab-panel[data-module-panel="feed"] > .module-native-feed {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.module-home .module-tab-panel[data-module-panel="feed"] > .module-native-feed > :first-child {
  margin-top: 0 !important;
}

.native-app-bar [data-category-header] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-native-screen {
  display: flex;
  height: calc(var(--app-height) - 68px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0 !important;
}
.category-native-screen > .discovery-tools {
  position: sticky;
  z-index: 7;
  top: 0;
  flex: 0 0 auto;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  background: var(--surface);
}
.category-native-screen .standalone-filter-banner {
  width: 100%;
  min-height: 64px;
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(23,33,59,.06);
}
.category-native-screen > .category-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 0 !important;
  padding-bottom: 18px !important;
}
.category-native-screen > .category-feed > :first-child {
  margin-top: 0 !important;
}

/* Keep category results identical to the landing feeds at every viewport.
   Category pages use the same card markup, so do not let the desktop grid or
   legacy media-feed sizing collapse them into narrow/short preview strips. */
.category-native-screen > .category-feed {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  gap: 0 !important;
}
.category-native-screen > .category-feed > .native-post-card,
.category-native-screen > .category-feed > .native-story-card,
.category-native-screen > .category-feed > .native-wishlist-card {
  display: block !important;
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 0 18px !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
}
.category-native-screen > .category-feed > :last-child {
  margin-bottom: 0 !important;
}
.category-native-screen > .category-feed > .native-post-card > .native-post-media,
.category-native-screen > .category-feed > .native-post-card .native-post-media {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 350px !important;
  max-height: min(78dvh, 640px) !important;
  aspect-ratio: 4 / 5 !important;
}
.category-native-screen > .category-feed > .native-story-card:not(.image-story) {
  display: block !important;
  height: auto !important;
  min-height: 348px !important;
}
.category-native-screen > .category-feed > .native-story-card.image-story {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 500px !important;
  aspect-ratio: 4 / 5 !important;
}
.category-native-screen > .category-feed > .native-story-card.image-story > a,
.category-native-screen > .category-feed > .native-story-card.image-story img {
  width: 100% !important;
}

.social-post-body p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.module-category-list strong {
  color: var(--ink);
  font-size: 16px;
}

.module-category-list small {
  color: var(--ink);
  font-size: 14px;
}

.field > span,
.check-row,
.promise-item {
  color: var(--ink);
  font-size: 15px;
}

.field input,
.field select,
.field textarea {
  color: var(--ink);
  font-size: 16px;
}

.setting-copy strong,
.conversation-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.setting-copy small,
.conversation-copy span {
  color: var(--ink);
  font-size: 14px;
}

.native-story-card,
.native-story-card a,
.native-story-card p,
.native-story-card strong,
.native-story-card small,
.native-story-card time {
  color: #fff;
}

.native-story-card > a > p {
  font-size: clamp(24px, 7vw, 34px);
}

.native-story-card > a > strong,
.native-story-card footer {
  font-size: 13px;
}

.image-story h2 {
  font-size: clamp(28px, 8vw, 36px);
}

.image-story > a p {
  font-size: 15px;
}

.image-story > a small {
  font-size: 12px;
}

@media (max-width: 430px) {
  .app-header.has-create {
    grid-template-columns: 42px minmax(0, 1fr) auto 38px 42px 42px;
  }

  .native-app-bar.has-create {
    grid-template-columns: minmax(0, 1fr) auto 38px 42px 42px;
  }

  .app-header.has-create,
  .native-app-bar.has-create {
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Keep the simplified column count after all legacy header rules. */
.app-header.has-create,
.native-app-bar.has-create {
  grid-template-columns: 44px minmax(0, 1fr) 40px 44px 44px;
}

@media (max-width: 430px) {
  .app-header.has-create,
  .native-app-bar.has-create {
    grid-template-columns: 42px minmax(0, 1fr) 38px 42px 42px;
  }
}

/* Protected detail media and fixed action surfaces */
.interest-detail-page { padding-top: 0 !important; }

.interest-detail-page .sticky-action,
.reading-page .support-bar,
.story-action-dock {
  position: fixed;
  z-index: 24;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  margin: 0;
  transform: translateX(-50%);
  min-height: 72px;
  padding: 10px var(--safe-right) 10px var(--safe-left);
  border-top: 1px solid rgba(17, 26, 51, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(17, 26, 51, .09);
  backdrop-filter: blur(16px);
}

.interest-detail-page,
.reading-page {
  padding-bottom: 104px !important;
}

.reading-page .support-bar,
.story-action-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.reading-page .support-bar button,
.reading-page .support-bar a,
.story-action-dock button,
.story-action-dock a {
  display: grid;
  min-height: 48px;
  place-items: center;
  margin: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.reading-page .support-bar button,
.story-action-dock button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.reading-page .support-bar a,
.story-action-dock a { background: var(--primary); color: #fff; }

/* The Story action bar is outside the scrollable content, just like Interest actions. */
.app-page .reading-page .support-bar,
body > .story-action-dock {
  position: fixed !important;
  z-index: 60;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  min-height: 72px;
  margin: 0;
  padding: 10px var(--safe-right) 6px var(--safe-left);
  transform: translateX(-50%);
}

/* Keep Wishlist offers anchored to the actual viewport edge.  Sticky positioning
   is relative to the scrolling article, which leaves an awkward empty strip in
   native WebViews when the wishlist content is short. */
.wishlist-detail .selection-action {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  min-height: 72px;
  margin: 0;
  padding: 10px var(--safe-right) 10px var(--safe-left);
  transform: translateX(-50%);
  border-top: 1px solid rgba(17, 26, 51, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(17, 26, 51, .09);
  backdrop-filter: blur(16px);
}

/* Publishing is a deliberate, protected action: keep the save control fixed and
   reserve enough room for the final form field to scroll clear of it. */
.post-create-form { padding-bottom: 108px !important; }

/* Overrides the edge-to-edge page rule above. The final privacy acknowledgement
   must be able to scroll completely clear of the fixed save action. */
.app-page main > .page-content.post-create-form {
  padding-bottom: calc(144px + var(--safe-area-bottom)) !important;
  scroll-padding-bottom: calc(144px + var(--safe-area-bottom));
}

.post-create-action {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  margin: 0;
  padding: 10px var(--safe-right) 10px var(--safe-left);
  transform: translateX(-50%);
  border-top: 1px solid rgba(17, 26, 51, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(17, 26, 51, .09);
  backdrop-filter: blur(16px);
}

.post-create-action .primary-button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-radius: 15px;
}

.post-create-action .primary-button:disabled { cursor: wait; opacity: .78; }

.post-wizard {
  display: grid;
  gap: 18px;
}

.post-wizard-progress {
  display: grid;
  grid-template-columns: repeat(var(--wizard-steps, 3), minmax(0, 1fr));
  gap: 7px;
  padding: 4px 0 2px;
}

.post-wizard-progress span {
  height: 5px;
  border-radius: 999px;
  background: #e9eaf2;
}

.post-wizard-progress span.active { background: var(--primary); }

/* A restored draft is intentionally quiet: it confirms what was recovered
   without competing with the first writing surface or the fixed action bar. */
.post-draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 42, 237, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f3ff, #fff);
  color: var(--ink);
}
.post-draft-notice span { display: grid; gap: 2px; min-width: 0; }
.post-draft-notice strong { font-size: 14px; }
.post-draft-notice small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.post-draft-notice button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(91, 42, 237, .2);
  border-radius: 11px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.post-wizard-step { display: grid; gap: 18px; }
.post-wizard-step[hidden] { display: none; }
.post-wizard-step .page-title { margin: 0; }
.post-wizard-step .page-lead { margin: -8px 0 4px; }
.post-wizard-step > .field { width: 100%; }

/* Keep every writing surface predictable.  Dynamic viewport units expand and
   collapse in WKWebView as its keyboard animates, which lets an oversized
   textarea push the whole page away from the app chrome. */
.field textarea {
  min-height: 132px;
  resize: vertical;
}

.post-wizard-step.compose-step {
  min-height: 0;
  grid-template-rows: none;
  gap: 18px;
}

.post-wizard-step.compose-step [data-post-body] {
  display: block;
  min-height: 0;
  margin: 0 0 16px;
}

.post-create-form [data-post-body] textarea {
  min-height: 168px;
  height: auto;
  resize: vertical;
  border-radius: 20px;
}

.post-create-form[data-post-type="story"] [data-post-body] textarea {
  min-height: 184px !important;
}

.post-create-form[data-post-type="wishlist"] [data-post-body] textarea {
  min-height: 168px;
  margin-bottom: 16px;
}

.post-title-hint,
.post-body-prompt,
.post-body-counter {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.post-body-prompt {
  margin-top: 9px;
  color: var(--ink-soft, var(--muted));
  font-weight: 650;
}

.post-body-counter {
  margin-top: 4px;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.wizard-step-label {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-wizard .media-upload {
  min-height: 156px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1.5px dashed rgba(91, 42, 237, .34);
  border-radius: 22px;
  background: linear-gradient(145deg, #fbfaff, #f4f0ff);
}

.post-wizard .media-upload .upload-icon { margin-inline: auto; }

.post-create-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.post-create-action .wizard-back,
.post-create-action .wizard-next {
  min-height: 50px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.post-create-action .wizard-next {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(91, 42, 237, .2);
}

.post-create-action .wizard-next:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(91, 42, 237, .18);
}

.post-create-action .wizard-back { padding: 0 16px; }
.post-create-action .wizard-next[hidden],
.post-create-action .wizard-back[hidden],
.post-create-action .primary-button[hidden] { display: none; }

.post-create-action.two-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* iOS WKWebView text-entry shell
   --------------------------------
   WKWebView pans the nearest scrolling ancestor when a textarea receives
   focus. On ordinary pages that used to be .app-page, so the app header and
   the entire form could be shifted away from the viewport. Text-entry pages
   now keep a fixed app shell and give scrolling ownership to main only. */
html.yadid-ios body.yadid-text-entry-page .app-page {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  margin: 0;
  overflow: hidden;
}

html.yadid-ios body.yadid-text-entry-page .app-page > .app-header {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

html.yadid-ios body.yadid-text-entry-page .app-page > main {
  min-width: 0;
  min-height: 0;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 12px;
  padding-bottom: var(--keyboard-height);
  scroll-padding-bottom: calc(112px + var(--keyboard-height) + var(--safe-area-bottom));
}

/* The creation bar is outside main, so lift it with the iOS keyboard while
   the form itself remains in its own stable scroll container. */
html.yadid-ios.keyboard-open body.yadid-text-entry-page .post-create-action {
  bottom: var(--keyboard-height);
}

/* The shared fixed-size fields above deliberately apply in WKWebView too.
   Do not add viewport-relative textarea dimensions here. */

.post-creation-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 20, 45, .54);
  backdrop-filter: blur(7px);
}

.post-creation-overlay[hidden] { display: none; }

.post-creation-sheet {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 320px);
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 24px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(8, 12, 29, .32);
}

.post-creation-sheet strong { font-size: 18px; font-weight: 850; }
.post-creation-sheet p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 650; }

.post-creation-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(100, 45, 255, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: yadid-post-creation-spin .78s linear infinite;
}

@keyframes yadid-post-creation-spin { to { transform: rotate(360deg); } }
.wishlist-detail { padding-bottom: 104px !important; }

/* iOS welcome/onboarding shell
   --------------------------------
   These pages are intentionally scrollable inside the app viewport. Keeping
   the document itself locked prevents Safari/WKWebView from panning the
   whole page while still making every action reachable on short screens. */
html.yadid-ios body.welcome-page-shell,
html.yadid-ios body.onboarding-page-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--stable-app-height, var(--app-height));
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  transform: none !important;
  touch-action: manipulation;
}
body.welcome-page-shell .app-page,
body.onboarding-page-shell .app-page {
  width: 100%;
  height: var(--stable-app-height, var(--app-height));
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
}
body.welcome-page-shell .app-page > main,
body.onboarding-page-shell .app-page > main {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(28px + var(--safe-area-bottom));
}
body.welcome-page-shell .onboarding-page,
body.onboarding-page-shell .onboarding-page {
  min-height: 100%;
  height: auto;
  overflow: visible;
}
body.welcome-page-shell .onboarding-content,
body.onboarding-page-shell .onboarding-content {
  flex: 0 0 auto;
  min-height: 0;
  padding-bottom: calc(28px + var(--safe-area-bottom));
}
/* The welcome screen must use the containing viewport, never a cached JS
   viewport measurement. A stale --app-height in WKWebView previously made
   this flex box thousands of pixels tall and centred the UI off-screen. */
html.yadid-ios body.welcome-page-shell {
  height: auto;
}
body.welcome-page-shell .app-page {
  height: 100%;
}
body.welcome-page-shell .app-page > main {
  display: grid;
  overflow: hidden;
}
body.welcome-page-shell .welcome-page {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
}
body.welcome-page-shell .welcome-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: center;
  padding-top: max(24px, var(--safe-area-top));
  padding-bottom: max(24px, var(--safe-area-bottom));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
body.welcome-page-shell .welcome-native-art {
  min-height: clamp(160px, 24vh, 220px);
  margin-bottom: 18px;
}
body.welcome-page-shell .welcome-logo-disc {
  width: clamp(132px, 40vw, 176px);
  height: clamp(132px, 40vw, 176px);
}
body.welcome-page-shell .welcome-actions {
  width: 100%;
  margin-top: 42px;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

/* App-owned destructive confirmation. Unlike window.confirm(), this remains
   stable while iOS is dismissing its keyboard and visual viewport. */
.native-confirm-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  align-items: end;
}
.native-confirm-modal[hidden] { display: none !important; }
.native-confirm-backdrop { position: absolute; inset: 0; background: rgba(10, 15, 32, .48); backdrop-filter: blur(7px); }
.native-confirm-sheet {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px max(20px, var(--safe-area-right)) calc(22px + var(--safe-area-bottom)) max(20px, var(--safe-area-left));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -24px 64px rgba(12, 17, 36, .24);
  text-align: center;
}
.native-confirm-icon { display: grid; width: 54px; height: 54px; margin: 0 auto; place-items: center; border-radius: 18px; background: #fff0f3; color: #bd3856; font-size: 23px; }
.native-confirm-sheet h2 { margin: 0; font-size: 23px; line-height: 1.15; }
.native-confirm-sheet p { margin: 0; color: var(--muted); line-height: 1.48; }
.native-confirm-sheet > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.native-confirm-sheet button { min-height: 54px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; }
.native-confirm-sheet button.danger { border-color: #bd3856; background: #bd3856; color: #fff; }
.device-privacy-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #ddd8f7;
  border-radius: 19px;
  background: linear-gradient(135deg, #fbfaff, #f2efff);
  box-shadow: 0 10px 26px rgba(53, 39, 111, .07);
}
.device-privacy-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #e5ddff;
  color: #5b21f4;
  font-size: 20px;
}
.device-privacy-card .setting-copy { min-width: 0; }
.device-privacy-card .setting-copy strong,
.device-privacy-card .setting-copy small { display: block; }
.device-privacy-card .setting-copy strong { font-size: 15px; }
.device-privacy-card .setting-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.device-privacy-card .secondary-button { min-height: 45px; margin: 0; padding: 8px 14px; white-space: nowrap; }
@media (max-width: 480px) {
  .device-privacy-card { grid-template-columns: auto minmax(0, 1fr); }
  .device-privacy-card .secondary-button { grid-column: 1 / -1; width: 100%; }
}
body.welcome-page-shell .welcome-actions .primary-button {
  min-height: 62px;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(91, 33, 244, .18);
}
body.welcome-page-shell .welcome-actions .onboarding-text-link {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 16px;
}
body.onboarding-page-shell .onboarding-content {
  justify-content: flex-start;
  padding-top: 26px;
}
body.onboarding-page-shell .onboarding-actions {
  margin-top: 20px;
  padding-top: 0;
  padding-bottom: 0;
}
body.onboarding-page-shell .onboarding-content .field input,
body.onboarding-page-shell .onboarding-content .field select,
body.onboarding-page-shell .yadid-date-trigger {
  max-width: 100%;
}
body.welcome-page-shell .primary-button,
body.onboarding-page-shell .primary-button,
body.welcome-page-shell .onboarding-text-link,
body.onboarding-page-shell .onboarding-text-link {
  touch-action: manipulation;
}

@media (max-height: 700px) {
  body.welcome-page-shell .welcome-native-art {
    min-height: 150px;
    margin-bottom: 10px;
  }
  body.welcome-page-shell .welcome-content > h1 {
    font-size: clamp(33px, 9vw, 44px);
  }
  body.welcome-page-shell .welcome-content .page-lead {
    margin-top: 7px;
  }
  body.welcome-page-shell .welcome-actions {
    margin-top: 28px;
  }
}

/* Final simplification/accessibility pass: live surfaces never look stale,
   and system accessibility preferences always win over decorative motion. */
.live-surface[aria-busy="true"] {
  min-height: 120px;
}
.live-surface[aria-busy="true"] > .empty-state {
  animation: yadid-live-pulse 1.4s ease-in-out infinite;
}
@keyframes yadid-live-pulse {
  0%, 100% { opacity: .56; }
  50% { opacity: 1; }
}
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
@media (forced-colors: active) {
  .primary-button,
  .native-create {
    border: 2px solid ButtonText;
  }
  .empty-state {
    border: 1px solid ButtonText;
  }
}

@media (max-width: 360px) {
  .yadid-date-parts { gap: 8px; }
  .yadid-date-parts label { font-size: 12px; }
  .yadid-date-parts select { min-height: 58px; padding-inline: 10px; font-size: 16px; }
}

.media-protection-label {
  display: none;
  position: absolute;
  z-index: 3;
  top: max(14px, var(--safe-area-top));
  left: max(14px, var(--safe-left));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(8, 11, 19, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.protected-viewer .media-protection-label { display: inline-flex; }

.protected-viewer .universal-media-track > div { position: relative; }
.protected-viewer .universal-media-track > div::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: rgba(255, 255, 255, .46);
  content: "YADID · VIEW ONLY";
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 900;
  letter-spacing: .16em;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  transform: rotate(-22deg);
}

.story-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.story-author-badge .mini-avatar {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 15px;
}
.story-author-badge strong { font-size: 12px; }

/* Native-style protected media entry card for Interest details */
.interest-detail-page {
  background: #f7f8fb;
}

.protected-media-card {
  position: relative;
  width: auto;
  margin-right: calc(0px - var(--safe-right));
  margin-left: calc(0px - var(--safe-left));
  overflow: hidden;
  background: linear-gradient(145deg, #111a33, #2b2359 58%, #5b21f4);
  color: #fff;
}

.protected-media-trigger {
  display: grid;
  width: 100%;
  min-height: 178px;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  padding: 24px var(--safe-right) 24px var(--safe-left);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.protected-media-trigger:active { transform: scale(.99); }

.protected-media-art {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  font-size: 28px;
}

.protected-media-art b {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #2b2359;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
}

.protected-media-copy,
.protected-media-copy small,
.protected-media-copy strong,
.protected-media-copy span { display: block; }
.protected-media-copy small {
  color: #cfc7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.protected-media-copy strong {
  margin-top: 5px;
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.15;
}
.protected-media-copy span {
  margin-top: 8px;
  color: #dedaf4;
  font-size: 12px;
  line-height: 1.35;
}
.protected-media-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 16px;
}

.interest-detail-page > .eyebrow { margin-top: 22px; }
.interest-detail-page .detail-title { margin-top: 7px; font-size: clamp(30px, 8vw, 42px); }
.interest-detail-page .detail-body { margin-top: 20px; }

@media (max-width: 390px) {
  .protected-media-trigger { grid-template-columns: 62px minmax(0, 1fr) 28px; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .protected-media-art { width: 62px; height: 62px; border-radius: 20px; }
  .protected-media-copy strong { font-size: 17px; }
}

.native-notifications {
  position: relative;
  overflow: visible;
}

.native-notifications > b {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #f7f8fb;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* 2026-07 onboarding, matching, and edge-to-edge refinements */
.home-native .native-greeting h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(26px, 8vw, 40px);
}

.home-native > .native-feed-stack {
  width: auto;
  margin-right: calc(0px - var(--safe-right));
  margin-left: calc(0px - var(--safe-left));
  grid-template-columns: minmax(0, 1fr);
}

.home-native > .native-feed-stack > .native-post-card,
.home-native > .native-feed-stack > .native-story-card,
.home-native > .native-feed-stack > .native-wishlist-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.interest-note-card {
  background: linear-gradient(145deg, #6f45d8, #4321a8);
  color: #fff;
  box-shadow: 0 16px 32px rgba(67, 33, 168, .2);
}

.interest-detail-page .detail-media-carousel {
  width: auto;
  margin-right: calc(0px - var(--safe-right));
  margin-left: calc(0px - var(--safe-left));
  background: #111522;
}

.interest-detail-page .post-media-carousel > button {
  display: flex;
  min-height: 220px;
  align-items: center;
  aspect-ratio: auto;
  background: #111522;
}

.interest-detail-page .post-media-carousel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72svh;
  object-fit: contain;
}

.interest-detail-page .interest-match-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.interest-match-facts .fact {
  min-height: 82px;
  border: 0;
}

.interest-match-facts .fact small,
.interest-match-facts .fact strong {
  color: var(--ink);
}

.interest-match-facts .fact.coral { background: #ffe5df; }
.interest-match-facts .fact.mint { background: #dff7ed; }
.interest-match-facts .fact.violet { background: #eee8ff; }
.interest-match-facts .fact.gold { background: #fff1c9; }

.interest-actions {
  grid-template-columns: 1.25fr .8fr .8fr;
}
.interest-actions.owner-actions,
.story-action-dock.owner-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-action.owner-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}
.selection-action.owner-actions .primary-button,
.selection-action.owner-actions .remove-button,
.selection-action.owner-actions .owner-edit-action { width: 100%; }

.owner-actions > .primary-button,
.owner-actions > .secondary-button,
.owner-actions > .remove-button {
  min-width: 0;
  padding: 10px 5px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-button {
  min-height: 48px;
  border: 1px solid #f0c4cf;
  border-radius: 14px;
  background: #fff1f4;
  color: #a82e4b;
  font-weight: 800;
  cursor: pointer;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

  .interest-actions .primary-button {
    grid-column: 1 / -1;
  }
}

/* My Profile uses a native segmented-control treatment. */
.me-screen .me-tabs {
  gap: 7px;
  padding-top: 7px;
  padding-bottom: 7px;
  background: #eff0f5;
}
.me-screen .me-tabs [data-me-tab] {
  min-height: 50px;
  color: #080808;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.me-screen .me-tabs [data-me-tab].active {
  background: #17213b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 26, 51, .18);
}

/* Native segmented tabs are the standard for module home screens. */
.module-tabs {
  gap: 7px;
  padding-top: 7px;
  padding-bottom: 7px;
  background: #eff0f5;
}
.module-tabs [data-module-tab] {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #080808;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.14;
}
.module-tabs [data-module-tab] i {
  flex: 0 0 auto;
  font-size: 15px;
}
.module-tabs [data-module-tab] span {
  min-width: 0;
}
.module-tabs [data-module-tab].active {
  background: #17213b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 26, 51, .18);
}
.module-tabs [data-module-tab].active::after {
  display: none;
}

/* Interest facts: restrained, app-native tonal cards rather than flat pastels. */
.interest-detail-page .interest-match-facts {
  gap: 10px;
  margin: 18px 0 20px;
}
.interest-match-facts .fact {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  padding: 15px 14px 13px;
  border: 1px solid rgba(21, 32, 59, .08);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f4f6fa);
  box-shadow: 0 7px 20px rgba(22, 32, 58, .07);
}
.interest-match-facts .fact::before {
  position: absolute;
  top: 0;
  left: 14px;
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--fact-accent, #5b21f4);
  content: "";
}
.interest-match-facts .fact small {
  margin-top: 2px;
  color: #69748d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .065em;
}
.interest-match-facts .fact strong {
  margin-top: 8px;
  color: #131d35;
  font-size: 14px;
  line-height: 1.26;
}
.interest-match-facts .fact.coral { --fact-accent: #ef6b69; background: linear-gradient(145deg, #fff, #fff7f6); }
.interest-match-facts .fact.mint { --fact-accent: #2aa784; background: linear-gradient(145deg, #fff, #f3fbf8); }
.interest-match-facts .fact.violet { --fact-accent: #6b4ee6; background: linear-gradient(145deg, #fff, #f7f5ff); }
.interest-match-facts .fact.gold { --fact-accent: #d89a29; background: linear-gradient(145deg, #fff, #fffbf2); }

/* Wishlist items use an app-native selection row with clear touch feedback. */
.wishlist-detail .wishlist-items {
  gap: 12px;
}
.wishlist-detail .native-wishlist-item {
  position: relative;
  grid-template-columns: 30px 72px minmax(0, 1fr) !important;
  min-height: 96px;
  gap: 12px !important;
  padding: 12px;
  border: 1px solid rgba(21, 32, 59, .09);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f8fc);
  box-shadow: 0 7px 20px rgba(22, 32, 58, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.wishlist-detail .native-wishlist-item:active {
  transform: scale(.985);
}
.wishlist-detail .native-wishlist-item > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.wishlist-detail .wishlist-select {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid #c7cbd5;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 14px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.wishlist-detail .native-wishlist-item:has(input:checked) {
  border-color: rgba(91, 33, 244, .38);
  background: linear-gradient(145deg, #fbfaff, #f0edff);
  box-shadow: 0 8px 24px rgba(91, 33, 244, .14);
}
.wishlist-detail .native-wishlist-item:has(input:checked) .wishlist-select {
  border-color: #5b21f4;
  background: #5b21f4;
  color: #fff;
  transform: scale(1.05);
}
.wishlist-detail .wishlist-item-art {
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  border-radius: 16px;
  color: #fff;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.27), 0 7px 14px rgba(29, 39, 67, .12);
}
.wishlist-detail .wishlist-item-art.violet { background: linear-gradient(145deg, #7a5af8, #4c2ac7); }
.wishlist-detail .wishlist-item-art.mint { background: linear-gradient(145deg, #47bf9c, #19846a); }
.wishlist-detail .wishlist-item-art.coral { background: linear-gradient(145deg, #ff8e75, #e75a68); }
.wishlist-detail .wishlist-item-art.gold { background: linear-gradient(145deg, #f3bb53, #cd8424); }
.wishlist-detail .wishlist-item-copy {
  min-width: 0;
  padding-right: 20px;
}
.wishlist-detail .wishlist-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wishlist-detail .wishlist-item-meta small {
  margin: 0;
  color: #6f7890;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.wishlist-detail .wishlist-item-meta b {
  margin: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e5f8ef;
  color: #167359;
  font-size: 9px;
  line-height: 1;
}
.wishlist-detail .native-wishlist-item strong {
  margin-top: 7px;
  color: #131d35;
  font-size: 15px;
  line-height: 1.25;
}
.wishlist-detail .native-wishlist-item .wishlist-item-quantity {
  margin-top: 6px;
  color: #69748d;
  font-size: 12px;
}
.wishlist-detail .wishlist-item-arrow {
  position: absolute;
  right: 12px;
  bottom: 15px;
  color: #8b93a5;
  font-size: 15px;
}
@media (max-width: 350px) {
  .wishlist-detail .native-wishlist-item { grid-template-columns: 28px 60px minmax(0, 1fr) !important; gap: 9px !important; }
  .wishlist-detail .wishlist-item-art { width: 60px !important; height: 60px !important; }
  .wishlist-detail .native-wishlist-item strong { font-size: 14px; }
}

/* Module filters use the same compact fixed action bar as post details.
   The fields remain scrollable, while Clear and Save are always in reach. */
.module-home .module-filter-panel {
  padding-bottom: 92px !important;
  scroll-padding-bottom: 92px;
}
.module-home .module-filter-panel .filter-actions {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  width: min(100%, 760px);
  min-height: 72px;
  margin: 0;
  padding: 10px var(--safe-right) 10px var(--safe-left);
  transform: translateX(-50%);
  border-top: 1px solid rgba(17, 26, 51, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(17, 26, 51, .09);
  backdrop-filter: blur(16px);
}
.module-home .module-filter-panel .filter-actions .primary-button,
.module-home .module-filter-panel .filter-actions .secondary-button {
  min-height: 50px;
  margin: 0;
  border-radius: 15px;
}

/* Category filters are full-height native sheets: their headings stay visible,
   the fields alone scroll, and actions use the standard 72px bar. */
#interest-matchesFilters,
#topic-storiesFilters,
#category-wishlistsFilters {
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 760px);
  height: var(--app-height);
  max-height: none;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
#interest-matchesFilters > header,
#topic-storiesFilters > header,
#category-wishlistsFilters > header {
  position: sticky;
  z-index: 2;
  top: 0;
  flex: 0 0 auto;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 16px var(--safe-right) 14px var(--safe-left);
  border-bottom: 1px solid rgba(17, 26, 51, .12);
  background: #fff;
}
#interest-matchesFilters > .persistent-filter,
#topic-storiesFilters > .persistent-filter,
#category-wishlistsFilters > .persistent-filter {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px var(--safe-right) 92px var(--safe-left);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#interest-matchesFilters .filter-actions,
#topic-storiesFilters .filter-actions,
#category-wishlistsFilters .filter-actions {
  position: fixed;
  z-index: 130;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  width: min(100%, 760px);
  min-height: 72px;
  margin: 0;
  padding: 10px var(--safe-right) 10px var(--safe-left);
  transform: translateX(-50%);
  border-top: 1px solid rgba(17, 26, 51, .12);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(17, 26, 51, .09);
  backdrop-filter: blur(16px);
}
#interest-matchesFilters .filter-actions .primary-button,
#interest-matchesFilters .filter-actions .secondary-button,
#topic-storiesFilters .filter-actions .primary-button,
#topic-storiesFilters .filter-actions .secondary-button,
#category-wishlistsFilters .filter-actions .primary-button,
#category-wishlistsFilters .filter-actions .secondary-button {
  min-height: 50px;
  margin: 0;
  border-radius: 15px;
}
.modern-conversation-list:not(.is-loaded) > .empty-state { display: none !important; }

/* Live inbox management. Selection changes only the viewer's local inbox; it
   never changes or deletes a conversation for anybody else. */
.chat-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid #e2dafd;
  border-radius: 15px;
  background: #f7f4ff;
  color: var(--ink);
}
.chat-bulk-toolbar strong { font-size: 13px; }
.chat-bulk-toolbar > div { display: flex; min-width: 0; align-items: center; gap: 5px; }
.chat-bulk-toolbar button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: #e9e3ff;
  color: #5326dc;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.chat-bulk-toolbar button.danger { background: #fff0f2; color: #bc3856; }
.chat-bulk-toolbar button.quiet { background: transparent; color: var(--muted); }
.modern-conversation-list.is-selecting .conversation { position: relative; padding-left: 53px; }
.conversation-select-check {
  position: absolute;
  left: 15px;
  top: 50%;
  display: none;
  width: 24px;
  height: 24px;
  place-items: center;
  transform: translateY(-50%);
  border: 2px solid #cbd0dd;
  border-radius: 8px;
  background: #fff;
  color: transparent;
  font-size: 15px;
}
.modern-conversation-list.is-selecting .conversation-select-check { display: grid; }
.conversation.selected { border-color: #8064ff; background: #f8f5ff; }
.conversation.selected .conversation-select-check { border-color: #5b21f4; background: #5b21f4; color: #fff; }
.conversation-pin { margin-left: 5px; color: #6a39e9; font-size: 12px; }
@media (max-width: 520px) {
  .chat-bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .chat-bulk-toolbar > div { width: 100%; justify-content: space-between; }
  .chat-bulk-toolbar button span { display: none; }
  .chat-bulk-toolbar button.quiet { padding-inline: 10px; }
}
.circle-management-page .circle-rules-panel { margin: 24px 0; padding: 18px; border: 1px solid var(--line, #e6e8f0); border-radius: 20px; background: #f7f6ff; }
.circle-management-page .circle-rules-panel p { margin: 0; color: var(--ink, #16213f); line-height: 1.55; }
.circle-member-list { display: grid; gap: 10px; }
.circle-member-row { margin: 0; }
.circle-member-row .small-danger { margin-left: auto; flex: 0 0 auto; }
.circle-plans-section { margin-top: 28px; }
.circle-plans-section .section-heading { align-items: center; }
.circle-plans-section .section-heading small { display: block; margin-top: 3px; color: var(--muted, #68728f); font-size: 12px; font-weight: 600; }
.text-action { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #5b21f4; cursor: pointer; font: 800 14px/1 "DM Sans", sans-serif; white-space: nowrap; }
.circle-plan-list { display: grid; gap: 10px; }
.circle-plan-card { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(91,33,244,.14); border-radius: 21px; background: linear-gradient(145deg, #fff, #faf9ff); box-shadow: 0 9px 24px rgba(32,40,80,.06); }
.circle-plan-card h3 { margin: 0; color: #16213f; font: 800 17px/1.2 Manrope, "DM Sans", sans-serif; letter-spacing: -.02em; }
.circle-plan-card p { margin: 0; color: #58647e; font-size: 13px; line-height: 1.42; white-space: pre-line; }
.circle-plan-card > small { color: #56627d; font-size: 12px; font-weight: 700; }
.circle-plan-card > small i { margin-right: 3px; color: #5b21f4; }
.circle-plan-date { display: inline-flex; align-items: center; gap: 7px; color: #5b21f4; font-size: 12px; font-weight: 850; letter-spacing: .015em; }
.circle-plan-date i { font-size: 15px; }
.circle-plan-card footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 3px; }
.circle-plan-card footer > span { color: #707b93; font-size: 11px; font-weight: 750; }
.plan-rsvp-actions { display: flex; gap: 5px; }
.plan-rsvp-actions button { min-height: 31px; padding: 0 10px; border: 1px solid #dfe3ed; border-radius: 10px; background: #fff; color: #53607a; cursor: pointer; font: 800 11px/1 "DM Sans", sans-serif; }
.plan-rsvp-actions button.active { border-color: #5b21f4; background: #5b21f4; color: #fff; box-shadow: 0 5px 12px rgba(91,33,244,.2); }
.circle-plan-empty { min-height: 115px; }
.circle-plan-empty > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #eee9ff; color: #5b21f4; font-size: 19px; }
.native-sheet-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(14,22,46,.45); backdrop-filter: blur(4px); }
.native-sheet { position: fixed; z-index: 91; right: 0; bottom: 0; left: 0; max-height: min(88dvh, 720px); overflow: auto; padding: 21px max(18px, var(--safe-left)) calc(18px + var(--safe-area-bottom)) max(18px, var(--safe-right)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -16px 42px rgba(12,18,42,.2); }
.native-sheet[hidden], .native-sheet-backdrop[hidden] { display: none !important; }
.native-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.native-sheet > header .eyebrow { margin: 0 0 4px; }
.native-sheet > header h2 { margin: 0; color: #16213f; font: 850 27px/1.06 Manrope, "DM Sans", sans-serif; letter-spacing: -.04em; }
.circle-plan-sheet form { display: grid; gap: 14px; }
.circle-plan-sheet textarea { min-height: 112px; resize: vertical; }
.circle-plan-note { display: flex; gap: 8px; margin: 0; padding: 12px; border-radius: 14px; background: #f4f1ff; color: #5d5579; font-size: 12px; line-height: 1.35; }
.circle-plan-note i { color: #5b21f4; font-size: 15px; }
.circle-plan-sheet .sheet-actions { position: static; width: auto; margin: 4px 0 0; padding: 0; box-shadow: none; }
body.sheet-open { overflow: hidden; }
.invite-result { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 18px; background: #f1edff; border: 1px solid #d8cbff; }
.invite-result code { display: block; font-size: 24px; letter-spacing: .12em; color: #5724f5; }
.invite-result small { color: var(--muted, #68728f); }
.direct-start-page { width: 100%; max-width: none; margin-inline: 0; padding: 0 0 calc(44px + var(--safe-area-bottom)); }
.direct-invite-page { max-width: 760px; margin-inline: auto; }
.direct-start-page .settings-form, .direct-invite-page .settings-form { display: grid; gap: 10px; }
.direct-start-page .text-input, .direct-start-page .text-area, .direct-invite-page .text-area { width: 100%; border: 1px solid var(--line, #e2e5ef); border-radius: 16px; background: #fff; color: var(--ink, #16213f); padding: 14px 16px; font: inherit; }
.direct-start-page .text-area, .direct-invite-page .text-area { resize: vertical; min-height: 130px; }
.direct-start-page .field-label, .direct-invite-page .field-label { margin-top: 8px; font-weight: 700; color: var(--ink, #16213f); }
.direct-start-page .field-hint, .direct-invite-page .field-hint { margin: 0 0 8px; }
.direct-tabs-shell { display: grid; gap: 0; }
.direct-tabs { position: sticky; z-index: 8; top: var(--app-bar-height); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; margin: 0; padding: 7px max(10px, var(--safe-area-right)) 7px max(10px, var(--safe-area-left)); border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(239, 240, 245, .96); backdrop-filter: blur(18px); box-sizing: border-box; }
/* On iOS text-entry screens, main is already a dedicated scroll viewport
   positioned directly below the fixed app header. Offsetting these tabs by
   the header height a second time creates a blank 64px band in WKWebView and
   Safari. Pin them to the top of main instead, preserving the standard
   header-to-tabs attachment while leaving Android's single-scroll shell
   unchanged. */
html.yadid-ios body.yadid-text-entry-page .direct-start-page .direct-tabs {
  top: 0;
}
.direct-tab { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 6px; padding: 7px 5px; border: 0; border-radius: 12px; background: transparent; color: #080808; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.14; cursor: pointer; }
.direct-tab.active { background: #17213b; color: #fff; box-shadow: 0 6px 16px rgba(17, 26, 51, .18); }
.direct-tab-panel { display: grid; gap: 10px; width: 100%; max-width: 760px; margin-inline: auto; padding: 22px max(20px, var(--safe-area-right)) 30px max(20px, var(--safe-area-left)); box-sizing: border-box; }
.direct-scan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.direct-scan-actions > .primary-button, .direct-scan-actions > .secondary-button { min-height: 50px; display: grid; place-items: center; text-align: center; }
.direct-scan-primary-panel { gap: 18px; padding-top: 28px; }
.direct-scan-primary-panel .page-lead { max-width: 620px; margin: 0 auto; text-align: center; }
.direct-scan-primary-panel .direct-scan-actions { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 14px; margin: 8px 0 4px; }
.direct-scan-action { min-height: 112px !important; grid-template-rows: auto auto; align-content: center; gap: 10px; padding: 18px 14px !important; border-radius: 22px !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.15; cursor: pointer; }
.direct-scan-action i { font-size: 32px; line-height: 1; }
.direct-scan-action span { display: block; }
.direct-scan-primary-panel .direct-scan-status { width: 100%; margin: 12px 0 0; text-align: center; }
.direct-file-input { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; }
.direct-camera { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line, #e2e5ef); border-radius: 20px; background: #10162a; }
.direct-camera video { width: 100%; max-height: 56vh; border-radius: 14px; object-fit: cover; background: #000; }
.direct-scan-status { min-height: 24px; margin: 10px 0 0; color: var(--muted, #68728f); font-weight: 700; }
.direct-tab-panel[hidden] { display: none !important; }
.direct-tabs-shell .invite-result > .secondary-button { width: 100%; margin-top: 4px; }
.direct-private-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #ded5ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #faf8ff 0%, #f1edff 100%);
  color: var(--ink, #16213f);
}
.direct-private-identity-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #5b21f4;
  color: #fff;
  font-size: 17px;
}
.direct-private-identity-copy { display: grid; min-width: 0; gap: 2px; }
.direct-private-identity-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.direct-private-identity-copy small { color: var(--muted, #68728f); font-size: 12px; line-height: 1.3; }
.direct-private-identity-edit {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #5722ee;
  font-size: 17px;
  text-decoration: none;
}
.direct-private-identity-edit:focus-visible,
.direct-private-identity-edit:hover { background: rgba(91, 33, 244, .10); }
.post-private-identity,
.request-private-identity,
.account-private-identity { margin-bottom: 20px; }
.form-result { min-height: 24px; color: var(--ink, #16213f); font-weight: 700; }
.invite-qr { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 14px; width: fit-content; }
.invite-qr img { display: block; width: 180px; height: 180px; }
.invite-link-code { overflow-wrap: anywhere; font-size: 13px !important; letter-spacing: 0 !important; }
.invite-result .split-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.circle-actions.single-action { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .direct-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-inline: max(6px, var(--safe-area-right)) max(6px, var(--safe-area-left)); }
  .direct-tab { padding-inline: 2px; }
  .direct-scan-actions { grid-template-columns: 1fr; }
  .direct-scan-primary-panel .direct-scan-actions { grid-template-columns: minmax(0, 320px); }
  .direct-scan-action { min-height: 104px !important; font-size: 16px !important; }
  .direct-scan-action i { font-size: 30px; }
  .direct-tabs-shell .invite-result .split-actions { grid-template-columns: 1fr; }
}

/* Native inbox polish: layered surfaces, clear message hierarchy, and
   restrained state accents keep the live chat list feeling like a messaging
   app instead of a stack of generic website cards. */
.modern-conversation-list {
  gap: 12px;
}
.modern-conversation-list .conversation {
  position: relative;
  isolation: isolate;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(214, 218, 232, .95);
  border-radius: 21px;
  background: linear-gradient(135deg, #fff 0%, #fcfcff 58%, #f5f2ff 100%);
  box-shadow: 0 8px 24px rgba(24, 31, 62, .07), 0 2px 5px rgba(24, 31, 62, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.modern-conversation-list .conversation::before {
  position: absolute;
  z-index: 0;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #7c5cff, #4d2de2);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}
.modern-conversation-list .conversation > * { position: relative; z-index: 1; }
.modern-conversation-list .conversation:hover,
.modern-conversation-list .conversation:focus-visible {
  border-color: #cfc4ff;
  box-shadow: 0 12px 28px rgba(58, 38, 150, .13), 0 3px 8px rgba(24, 31, 62, .05);
  transform: translateY(-1px);
}
.modern-conversation-list .conversation:active { transform: scale(.992); }
.modern-conversation-list .conversation[data-kind="match"] { background: linear-gradient(135deg, #fff 0%, #fffaf9 58%, #fff0ed 100%); }
.modern-conversation-list .conversation[data-kind="match"]::before { background: linear-gradient(180deg, #ff8b76, #e65b79); }
.modern-conversation-list .conversation[data-kind="circle"] { background: linear-gradient(135deg, #fff 0%, #f9fffd 58%, #eafaf5 100%); }
.modern-conversation-list .conversation[data-kind="circle"]::before { background: linear-gradient(180deg, #4fc9a2, #178b70); }
.modern-conversation-list .conversation[data-unread]:not([data-unread="0"]) {
  border-color: #cfc1ff;
  background: linear-gradient(135deg, #fff 0%, #fbf9ff 55%, #eee9ff 100%);
}
.modern-conversation-list .conversation[data-unread]:not([data-unread="0"])::before { opacity: 1; }
.modern-conversation-list .conversation[data-unread]:not([data-unread="0"]) .conversation-copy span {
  color: #4f2bdc;
  font-weight: 700;
}
.modern-conversation-list .conversation .avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 7px 14px rgba(58, 45, 170, .18);
  font-size: 14px;
  letter-spacing: .02em;
}
.modern-conversation-list .conversation .avatar-art { display: grid; place-items: center; line-height: 1; font-size: 27px; }
.modern-conversation-list .conversation .avatar.has-static-avatar { background: linear-gradient(145deg, #f0ebff, #d8ccff); color: #30206e; font-size: 24px; }
.modern-conversation-list .conversation .avatar.has-static-avatar[data-avatar-category="female"] { background: linear-gradient(145deg, #ffe7f2, #f6b9d5); color: #7e2955; }
.modern-conversation-list .conversation .avatar.has-static-avatar[data-avatar-category="animal"] { background: linear-gradient(145deg, #fff2cf, #f3ce75); color: #704b12; }
.modern-conversation-list .conversation .avatar.has-static-avatar[data-avatar-category="neutral"] { background: linear-gradient(145deg, #dff8f3, #a9dfd2); color: #126b5d; }
.modern-conversation-list .conversation[data-kind="circle"] .avatar { background: linear-gradient(145deg, #55c9a5, #258e72); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 7px 14px rgba(37, 142, 114, .2); }
.modern-conversation-list .conversation[data-kind="match"] .avatar { background: linear-gradient(145deg, #ff8d78, #dd5577); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 7px 14px rgba(221, 85, 119, .2); }
.modern-conversation-list .conversation-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}
.modern-conversation-list .conversation-copy span {
  margin-top: 6px;
  color: #626d88;
  font-size: 13px;
  line-height: 1.25;
}
.modern-conversation-list .conversation-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-block: 1px;
  color: #68738d;
  font-size: 11px;
  font-weight: 650;
}
.modern-conversation-list .conversation .unread {
  min-width: 23px;
  height: 23px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(145deg, #6e43ff, #4b20d8);
  box-shadow: 0 5px 10px rgba(91, 33, 244, .24);
  font-size: 10px;
}
.modern-conversation-list .conversation.selected {
  border-color: #9d87ff;
  background: linear-gradient(135deg, #fbfaff, #eee9ff);
  box-shadow: 0 10px 25px rgba(91, 33, 244, .14);
}
.modern-conversation-list .conversation.selected::before { opacity: 1; }
@media (max-width: 520px) {
  .modern-conversation-list .conversation { min-height: 82px; gap: 12px; padding: 13px 13px; border-radius: 19px; }
  .modern-conversation-list .conversation .avatar { width: 51px; height: 51px; border-radius: 17px; }
  .modern-conversation-list .conversation-copy strong { font-size: 14px; }
  .modern-conversation-list .conversation-copy span { font-size: 12px; }
}

/* Native inbox interactions: swipe actions, unread context, and calm loading
   states keep the list useful on small touch screens without exposing message
   plaintext in the inbox. */
.inbox-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin: 0 max(16px, var(--safe-area-right)) 12px max(16px, var(--safe-area-left));
}
.inbox-search-row .inbox-search { min-width: 0; margin: 0; }
.inbox-refresh {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #e0e4ef;
  border-radius: 16px;
  background: #fff;
  color: #5b21f4;
  font-size: 19px;
  box-shadow: 0 6px 15px rgba(24, 31, 62, .06);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.inbox-refresh:hover,
.inbox-refresh:focus-visible { background: #f5f1ff; box-shadow: 0 9px 20px rgba(91, 33, 244, .14); }
.inbox-refresh:active { transform: scale(.94); }
.inbox-refresh.is-loading i { animation: inbox-refresh-spin .75s linear infinite; }
@keyframes inbox-refresh-spin { to { transform: rotate(360deg); } }
.conversation-row {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 21px;
  isolation: isolate;
}
.conversation-row[hidden] { display: none !important; }
.conversation-row .conversation {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: 100%;
  transform: translateX(0);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.conversation-row .conversation:hover { transform: translateY(-1px); }
.conversation-row.is-swiped .conversation,
.conversation-row.is-swiped .conversation:hover { transform: translateX(-220px); }
.conversation-swipe-actions {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 220px;
  padding: 5px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f1ecff, #e8f7f2);
}
.conversation-swipe-actions button {
  display: grid;
  min-width: 0;
  min-height: 60px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  color: #4f2bdc;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.conversation-swipe-actions button i { font-size: 17px; }
.conversation-swipe-actions button:last-child { background: #fff0f2; color: #bd3d59; }
.modern-conversation-list.is-selecting .conversation-swipe-actions { pointer-events: none; opacity: 0; }
.conversation-presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #29b985;
  box-shadow: 0 2px 5px rgba(24, 143, 103, .28);
}
.conversation-unread-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 2px 0 -2px;
  color: #5b21f4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.conversation-unread-divider::before,
.conversation-unread-divider::after {
  height: 1px;
  flex: 1;
  background: #ded7ff;
  content: "";
}
.chat-skeleton-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid #eceef5;
  border-radius: 21px;
  background: linear-gradient(110deg, #f4f5fa 8%, #fff 18%, #f4f5fa 33%);
  background-size: 200% 100%;
  animation: chat-skeleton-shimmer 1.15s linear infinite;
}
.chat-skeleton-avatar,
.chat-skeleton-copy b,
.chat-skeleton-copy i,
.chat-skeleton-meta i { display: block; border-radius: 999px; background: rgba(179, 185, 204, .42); }
.chat-skeleton-avatar { width: 54px; height: 54px; border-radius: 18px; }
.chat-skeleton-copy { display: grid; gap: 10px; }
.chat-skeleton-copy b { width: 52%; height: 13px; }
.chat-skeleton-copy i { width: 76%; height: 10px; }
.chat-skeleton-meta { display: grid; justify-items: end; gap: 13px; }
.chat-skeleton-meta i:first-child { width: 32px; height: 8px; }
.chat-skeleton-meta i:last-child { width: 21px; height: 21px; border-radius: 50%; }
@keyframes chat-skeleton-shimmer { to { background-position: -200% 0; } }
@media (max-width: 520px) {
  .conversation-row { border-radius: 19px; }
  .conversation-swipe-actions { width: 210px; }
  .conversation-row.is-swiped .conversation,
  .conversation-row.is-swiped .conversation:hover { transform: translateX(-210px); }
  .chat-skeleton-card { min-height: 82px; gap: 12px; padding: 13px; border-radius: 19px; }
  .chat-skeleton-avatar { width: 51px; height: 51px; border-radius: 17px; }
}

/* Shared native menu typography for every module and account screen. */
.overflow-menu a,
.overflow-menu button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.overflow-menu a:hover,
.overflow-menu a:focus-visible,
.overflow-menu button:hover,
.overflow-menu button:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
  outline: 0;
}
.overflow-menu a i,
.overflow-menu button i {
  width: 22px;
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}
.overflow-menu p {
  margin: 7px 9px 8px;
  font-size: 11px;
}

/* Home command centre: a warm, private starting point rather than another feed. */
.home-command-center {
  --home-ink: #111b3a;
  --home-muted: #68738e;
  --home-purple: #5b21f4;
  --home-surface: #f6f7fb;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 46px;
  color: var(--home-ink);
  background: linear-gradient(180deg, #fff 0, #f6f7fb 38%, #f3f4fa 100%);
}
.home-welcome-panel {
  position: relative;
  overflow: hidden;
  margin: 0 0 17px;
  padding: 24px 22px 21px;
  border: 1px solid rgba(91, 33, 244, .12);
  border-radius: 27px;
  background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .72), transparent 42%), linear-gradient(135deg, #eee9ff, #f9f8ff 68%);
  box-shadow: 0 14px 34px rgba(50, 35, 120, .10);
}
.home-welcome-panel::after {
  position: absolute;
  right: -46px;
  bottom: -66px;
  width: 170px;
  height: 170px;
  border: 23px solid rgba(91, 33, 244, .07);
  border-radius: 50%;
  content: "";
}
.home-welcome-kicker,
.home-section-eyebrow {
  display: block;
  color: var(--home-purple);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.home-welcome-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 9px 0 5px;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(29px, 8vw, 46px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.home-welcome-panel h1 span { color: var(--home-purple); }
.home-welcome-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 600;
}
.home-privacy-note {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #4b3f80;
  font-size: 12px;
  font-weight: 750;
}
.home-privacy-note i { color: var(--home-purple); font-size: 14px; }
.home-live-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d6591;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.home-live-status i { color: #1fa77a; font-size: 12px; }
.home-live-status.is-refreshing i { animation: home-live-pulse 1s ease-in-out infinite; }
@keyframes home-live-pulse { 50% { opacity: .35; transform: scale(.78); } }
.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 27px;
}
.home-action-card {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(17, 27, 58, .07);
  border-radius: 23px;
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(28, 38, 74, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-action-card:hover,
.home-action-card:focus-visible { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(28, 38, 74, .13); outline: none; }
.home-action-card:active,
.home-stat-card:active,
.home-discover-card:active,
.home-create-actions a:active { transform: scale(.985); }
.home-action-card,
.home-stat-card,
.home-discover-card,
.home-create-actions a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.home-action-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.home-action-card strong { font-size: 15px; font-weight: 850; line-height: 1.15; }
.home-action-card small { color: #5c6781; font-size: 12px; font-weight: 600; line-height: 1.28; }
.home-action-card > i:last-child { position: absolute; top: 15px; right: 15px; color: rgba(17, 27, 58, .48); font-size: 15px; }
.home-action-icon {
  position: relative;
  display: grid !important;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, .7);
  color: var(--home-ink);
  font-size: 21px;
}
.home-action-icon b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef476f;
  color: #fff;
  font-size: 10px;
}
.home-action-interest { background: linear-gradient(135deg, #ffe8e6, #fff6f3); }
.home-action-wishlist { background: linear-gradient(135deg, #fff0c9, #fff9e9); }
.home-action-story { background: linear-gradient(135deg, #e3f8f0, #f3fcf8); }
.home-action-chat { background: linear-gradient(135deg, #e8e5ff, #f7f5ff); }
.home-activity-section,
.home-continue-section,
.home-discover-section { margin-top: 27px; }
.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 13px;
}
.home-section-heading h2 {
  margin: 4px 0 0;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.home-section-heading p { margin: 5px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.35; }
.home-section-heading > a { flex: 0 0 auto; color: var(--home-purple); font-size: 13px; font-weight: 850; text-decoration: none; }
.home-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-stat-card {
  display: grid;
  min-height: 118px;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: end;
  column-gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 27, 58, .06);
  border-radius: 21px;
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 38, 74, .06);
}
.home-stat-icon { display: grid; width: 36px; height: 36px; grid-row: 1 / span 2; place-items: center; border-radius: 13px; background: rgba(255,255,255,.72); color: var(--home-purple); font-size: 17px; }
.home-stat-card strong { align-self: end; font-family: Manrope, sans-serif; font-size: 27px; line-height: 1; }
.home-stat-card small { grid-column: 2; margin-top: 3px; color: #5f6a84; font-size: 12px; font-weight: 700; }
.home-stat-messages { background: linear-gradient(145deg, #e8f0ff, #f4f7ff); }
.home-stat-requests { background: linear-gradient(145deg, #fff0e7, #fff8f2); }
.home-stat-notifications { background: linear-gradient(145deg, #e9f8f1, #f5fcf8); }
.home-stat-posts { background: linear-gradient(145deg, #f0eaff, #faf8ff); }
.home-continue-list { display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: none; }
.home-continue-list::-webkit-scrollbar { display: none; }
.home-continue-card { display: grid; min-width: 220px; gap: 6px; padding: 15px; border-radius: 19px; background: #fff; color: var(--home-ink); text-decoration: none; box-shadow: 0 8px 24px rgba(28, 38, 74, .08); }
.home-continue-card small { color: var(--home-purple); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-continue-card strong { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.home-continue-card span { overflow: hidden; color: var(--home-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-discover-grid { display: grid; gap: 10px; }
.home-discover-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 92px; padding: 14px 15px; border: 1px solid rgba(91,33,244,.11); border-radius: 22px; background: #fff; color: var(--home-ink); text-decoration: none; box-shadow: 0 10px 28px rgba(28,38,74,.07); }
.home-discover-card-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 16px; background: #ede8ff; color: var(--home-purple); font-size: 20px; }
.home-discover-card > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.home-discover-card small { overflow: hidden; color: var(--home-purple); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.home-discover-card strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.home-discover-card em { overflow: hidden; color: var(--home-muted); font-size: 12px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.home-discover-card > i:last-child { color: var(--home-purple); font-size: 15px; }
.home-discover-live.home-discover-story .home-discover-card-icon { background: #e7f8f0; color: #168f6b; }
.home-discover-live.home-discover-wishlist .home-discover-card-icon { background: #fff2d3; color: #b97800; }
.home-create-card { display: grid; gap: 17px; margin-top: 28px; padding: 20px; border-radius: 25px; background: linear-gradient(135deg, #141e40, #25356d); color: #fff; box-shadow: 0 16px 32px rgba(15,25,58,.19); }
.home-create-card .home-section-eyebrow { color: #cfc7ff; }
.home-create-card h2 { margin: 5px 0 0; font-family: Manrope, sans-serif; font-size: clamp(21px, 5vw, 28px); letter-spacing: -.035em; }
.home-create-card p { margin: 5px 0 0; color: #c8d0e7; font-size: 13px; line-height: 1.35; }
.home-create-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-create-actions a { display: grid; min-height: 48px; align-content: center; justify-items: center; gap: 3px; border-radius: 15px; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.home-create-actions a i { color: #d8ceff; font-size: 16px; }
@media (min-width: 720px) {
  .home-command-center { padding: 26px 28px 64px; }
  .home-welcome-panel { padding: 31px 30px 27px; }
  .home-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-action-card { min-height: 164px; padding: 18px; }
  .home-activity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-stat-card { min-height: 130px; }
  .home-discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-discover-card { min-height: 142px; grid-template-columns: auto minmax(0,1fr); align-content: start; }
  .home-discover-card > i:last-child { display: none; }
  .home-discover-card > span:nth-child(2) { align-self: start; }
  .home-create-card { grid-template-columns: 1fr auto; align-items: center; padding: 24px 27px; }
  .home-create-actions { min-width: 330px; }
}

/* Universal Home search: a calm, native sheet that stays edge-to-edge under
   the app bar and grows into a dedicated results view when requested. */
.native-search-toggle {
  border: 0;
  cursor: pointer;
}
.native-search-toggle:active { transform: scale(.94); }
.home-search-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px max(16px, var(--safe-left)) 10px max(16px, var(--safe-right));
  border-bottom: 1px solid rgba(17, 27, 58, .08);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(27, 34, 67, .11);
}
.home-search-bar > i { flex: 0 0 auto; color: #5b21f4; font-size: 21px; }
.home-search-bar input,
.global-search-field input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111b3a;
  font: 600 16px/1.25 "DM Sans", sans-serif;
}
.home-search-bar input::placeholder,
.global-search-field input::placeholder { color: #7b849d; opacity: 1; }
.home-search-bar button,
.global-search-field button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef0f7;
  color: #17213b;
  cursor: pointer;
  font-size: 20px;
}
.home-search-bar button:active,
.global-search-field button:active { transform: scale(.92); }
.home-search-results {
  position: relative;
  z-index: 29;
  max-height: min(66vh, 560px);
  overflow: auto;
  padding: 12px max(16px, var(--safe-left)) 18px max(16px, var(--safe-right));
  border-bottom: 1px solid rgba(17, 27, 58, .08);
  background: #f7f8fc;
  box-shadow: 0 14px 30px rgba(27, 34, 67, .10);
}
.home-search-results-head,
.global-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 2px 9px;
  color: #17213b;
  font-size: 13px;
}
.home-search-results-head a,
.global-search-results-head a { color: #5b21f4; font-weight: 800; text-decoration: none; }
.global-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  margin: 7px 0;
  padding: 11px 12px;
  border: 1px solid rgba(25, 35, 73, .08);
  border-radius: 18px;
  background: #fff;
  color: #17213b;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(25, 35, 73, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.global-search-result:hover,
.global-search-result:focus-visible { transform: translateY(-1px); outline: 0; box-shadow: 0 9px 22px rgba(25, 35, 73, .11); }
.global-search-result:active { transform: scale(.987); }
.global-search-result-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #eee9ff;
  color: #5b21f4;
  font-size: 18px;
}
.global-search-result-story .global-search-result-icon { background: #e3f7ee; color: #168b69; }
.global-search-result-wishlist .global-search-result-icon { background: #fff1d3; color: #a76a00; }
.global-search-result-chat .global-search-result-icon { background: #e6efff; color: #28599f; }
.global-search-result-copy { display: grid; min-width: 0; gap: 2px; }
.global-search-result-copy small {
  overflow: hidden;
  color: #5b21f4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.global-search-result-copy strong,
.global-search-result-copy em { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; text-overflow: ellipsis; white-space: normal; }
.global-search-result-copy strong { -webkit-line-clamp: 2; font-size: 15px; font-weight: 800; line-height: 1.2; }
.global-search-result-copy em { -webkit-line-clamp: 2; color: #6b7691; font-size: 12px; font-style: normal; line-height: 1.25; }
.global-search-result-end { display: flex; align-self: stretch; align-items: center; gap: 8px; color: #8b94aa; }
.global-search-result-end time { align-self: start; color: #7b849d; font-size: 11px; white-space: nowrap; }
.global-search-result-end > i { color: #6b3bf1; font-size: 15px; }
.global-search-empty,
.global-search-loading {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 26px 12px 18px;
  color: #17213b;
  text-align: center;
}
.global-search-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 16px;
  background: #ebe7ff;
  color: #5b21f4;
  font-size: 20px;
}
.global-search-empty strong { font-size: 16px; font-weight: 850; }
.global-search-empty small,
.global-search-loading small { max-width: 300px; color: #6b7691; font-size: 12px; line-height: 1.35; }
.global-search-empty-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin-top: 5px; padding: 0 16px; border: 0; border-radius: 999px; background: #17213b; color: #fff; cursor: pointer; font: 800 13px/1 "DM Sans", sans-serif; box-shadow: 0 7px 18px rgba(23, 33, 59, .15); }
.global-search-empty-action:active { transform: scale(.97); }
.global-search-loading { grid-template-columns: repeat(3, 7px) auto; justify-content: center; align-items: center; gap: 5px; padding: 23px 12px; }
.global-search-loading span { width: 7px; height: 7px; border-radius: 50%; background: #6b3bf1; animation: global-search-pulse 1s ease-in-out infinite; }
.global-search-loading span:nth-child(2) { animation-delay: .14s; opacity: .72; }
.global-search-loading span:nth-child(3) { animation-delay: .28s; opacity: .46; }
.global-search-loading small { margin-left: 7px; }
@keyframes global-search-pulse { 50% { transform: translateY(-3px); opacity: 1; } }
.search-app-bar strong { min-width: 0; flex: 1 1 auto; overflow: hidden; font-family: Manrope, "DM Sans", sans-serif; font-size: clamp(22px, 6vw, 30px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.global-search-page { min-height: calc(100dvh - 78px); padding: 15px max(16px, var(--safe-left)) 48px max(16px, var(--safe-right)); background: #f7f8fc; }
.global-search-field { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px 8px 16px; border: 1px solid #dfe3ee; border-radius: 19px; background: #fff; box-shadow: 0 7px 20px rgba(25, 35, 73, .07); }
.global-search-field > i { color: #5b21f4; font-size: 21px; }
.global-search-scopes { display: flex; gap: 7px; margin: 14px 0 12px; overflow-x: auto; scrollbar-width: none; }
.global-search-scopes::-webkit-scrollbar { display: none; }
.global-search-scopes button { min-height: 39px; padding: 0 16px; border: 0; border-radius: 999px; background: #e9ebf3; color: #5f6b86; cursor: pointer; font: 750 13px/1 "DM Sans", sans-serif; white-space: nowrap; }
.global-search-scopes button.active { background: #17213b; color: #fff; box-shadow: 0 7px 18px rgba(23, 33, 59, .15); }
.global-search-results-head { margin: 7px 2px 10px; }
.global-search-results-head strong { font-size: 14px; }
.global-search-results { display: grid; gap: 9px; }
.global-search-results .global-search-result { margin: 0; min-height: 78px; }
.global-search-history { margin: 4px 0 16px; }
.global-search-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.global-search-history-head strong { font-size: 14px; color: #17213b; }
.global-search-history-head button { border: 0; padding: 5px 2px; background: transparent; color: #5b21f4; font: 800 13px/1 "DM Sans", sans-serif; cursor: pointer; }
.global-search-history-list { display: grid; gap: 7px; }
.global-search-history-list button { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; border: 1px solid #e1e5ef; border-radius: 15px; background: #fff; color: #25304c; text-align: left; box-shadow: 0 5px 13px rgba(25,35,73,.04); font: 700 14px/1.2 "DM Sans", sans-serif; cursor: pointer; }
.global-search-history-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-history-list button i:first-child { color: #7652df; }
.global-search-history-list button i:last-child { color: #8b94aa; font-size: 13px; }
@media (max-width: 390px) {
  .global-search-result { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .global-search-result-icon { width: 38px; height: 38px; border-radius: 13px; font-size: 16px; }
  .global-search-result-end time { display: none; }
  .home-search-bar { padding-right: 12px; padding-left: 12px; }
}

/* Immediate account deletion: keep the destructive controls readable and
   above the native app bottom navigation.  The native wrapper can cover the
   final part of a normal page, so this screen reserves its own scroll runway. */
body.account-deletion-page .account-deletion-form {
  display: grid;
  gap: 0;
  padding-top: clamp(20px, 5vw, 32px) !important;
  padding-bottom: calc(190px + var(--safe-area-bottom, 0px)) !important;
  scroll-padding-bottom: calc(190px + var(--safe-area-bottom, 0px));
}

body.account-deletion-page .account-deletion-form .page-title {
  max-width: 21ch;
  margin: 8px 0 12px;
  line-height: 1.08;
}

body.account-deletion-page .account-deletion-form .page-lead {
  max-width: 58ch;
  margin: 0 0 22px;
  line-height: 1.5;
}

body.account-deletion-page .deletion-choice-list {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

body.account-deletion-page .deletion-choice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 0;
  padding: 16px;
  gap: 12px;
  border-radius: 20px;
}

body.account-deletion-page .deletion-choice .setting-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 15px;
}

body.account-deletion-page .deletion-choice .setting-copy {
  min-width: 0;
  gap: 5px;
}

body.account-deletion-page .deletion-choice .setting-copy strong {
  line-height: 1.2;
}

body.account-deletion-page .deletion-choice .setting-copy small {
  line-height: 1.45;
}

body.account-deletion-page .deletion-choice .tag {
  align-self: start;
  white-space: nowrap;
}

body.account-deletion-page .danger-card {
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 20px;
}

body.account-deletion-page .danger-card h3 {
  line-height: 1.2;
}

body.account-deletion-page .danger-card .plain-list {
  margin: 12px 0 0;
  padding-left: 21px;
}

body.account-deletion-page .danger-card .plain-list li + li {
  margin-top: 10px;
}

body.account-deletion-page .promise-item {
  margin: 0 0 18px;
  gap: 10px;
  line-height: 1.45;
}

body.account-deletion-page .account-deletion-form .field {
  margin: 0 0 18px;
}

body.account-deletion-page .account-deletion-form .danger-button,
body.account-deletion-page .account-deletion-form .secondary-button {
  width: 100%;
  min-height: 54px;
  margin: 0 0 12px;
}

@media (max-width: 560px) {
  body.account-deletion-page .deletion-choice {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  body.account-deletion-page .deletion-choice .tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
}

/* Simplification phase: onboarding clarity. The first step keeps the same
   fields and API payload, but groups them around the two decisions a new
   member is making: region and private matching details. */
body.onboarding-page-shell .onboarding-privacy-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 20px 0 4px;
  padding: 14px;
  border: 1px solid #ddd5f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfaff 0%, #f2efff 100%);
  color: var(--ink);
}
body.onboarding-page-shell .progress-label {
  min-width: 76px;
}
body.onboarding-page-shell .onboarding-privacy-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #e6ddff;
  color: var(--primary);
  font-size: 18px;
}
body.onboarding-page-shell .onboarding-privacy-card strong,
body.onboarding-page-shell .onboarding-privacy-card p {
  display: block;
  margin: 0;
}
body.onboarding-page-shell .onboarding-privacy-card strong {
  font-size: 14px;
  line-height: 1.2;
}
body.onboarding-page-shell .onboarding-privacy-card p {
  margin-top: 4px;
  color: #5f6b86;
  font-size: 12px;
  line-height: 1.45;
}
body.onboarding-page-shell .onboarding-field-group {
  min-inline-size: 0;
  margin: 24px 0 0;
  padding: 16px 14px 2px;
  border: 1px solid #e6e3ed;
  border-radius: 20px;
  background: rgba(250, 249, 252, .76);
}
body.onboarding-page-shell .onboarding-field-group legend {
  width: auto;
  margin: 0;
  padding: 0 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.02em;
}
body.onboarding-page-shell .onboarding-group-hint {
  margin: -2px 0 14px;
  color: #69748d;
  font-size: 12px;
  line-height: 1.42;
}
body.onboarding-page-shell .onboarding-field-group .field {
  margin-bottom: 14px;
}
body.onboarding-page-shell .onboarding-field-group .field:last-child {
  margin-bottom: 10px;
}
body.onboarding-page-shell .onboarding-next-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 0;
  color: #69748d;
  font-size: 12px;
  line-height: 1.4;
}
body.onboarding-page-shell .onboarding-next-hint i {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 16px;
}
@media (max-width: 390px) {
  body.onboarding-page-shell .onboarding-privacy-card {
    padding: 12px;
  }
  body.onboarding-page-shell .onboarding-field-group {
    margin-top: 20px;
    padding: 14px 11px 1px;
  }
  body.onboarding-page-shell .onboarding-group-hint,
  body.onboarding-page-shell .onboarding-next-hint {
    font-size: 11px;
  }
}

/* Final launch-polish cascade guards. */
@media (max-width: 430px) {
  .interest-actions.owner-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .interest-actions.owner-actions .primary-button {
    grid-column: auto;
  }
  .me-screen .me-tabs [data-me-tab] {
    padding-inline: 4px;
    font-size: 13px;
    white-space: nowrap;
  }
}
