:root {
  color-scheme: light;
  --ivory: #fbfaf6;
  --paper: #ffffff;
  --paper-warm: #f7f1e5;
  --champagne: #ead9aa;
  --champagne-soft: #f5edda;
  --gold: #9a6b16;
  --gold-bright: #bb8930;
  --gold-dark: #73500f;
  --ink: #28231d;
  --ink-soft: #514a41;
  --muted: #776f65;
  --line: #e9e2d8;
  --success: #3f6a53;
  --shadow: 0 28px 80px rgba(50, 38, 17, 0.18);
  --card-shadow: 0 16px 44px rgba(48, 37, 20, 0.11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eee7dc;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #e9e2d7;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.78), transparent 42%),
    linear-gradient(140deg, rgba(248, 246, 241, 0.74), rgba(225, 215, 197, 0.84)),
    url("./ivory-gold-texture.webp");
  background-position: center, center, center;
  background-size: auto, auto, 620px auto;
  overflow-x: hidden;
}

.policy-page {
  overflow: auto;
}

.policy-shell {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.policy-shell h1 {
  margin: 12px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.policy-lede {
  max-width: 600px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.policy-callout {
  margin: 0 0 36px;
  padding: 18px 20px;
  border: 1px solid rgba(154, 107, 22, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 32px rgba(50, 38, 17, 0.08);
  line-height: 1.55;
}

.policy-callout.urgent {
  border-color: rgba(123, 37, 37, 0.26);
}

.policy-shell section {
  margin: 0 0 30px;
  padding-bottom: 29px;
  border-bottom: 1px solid rgba(115, 80, 15, 0.15);
}

.policy-shell h2 {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.policy-shell section p,
.policy-shell li {
  color: var(--ink-soft);
  line-height: 1.72;
}

.policy-shell section p {
  margin: 0;
}

.policy-shell ul {
  margin: 0;
  padding-left: 21px;
}

.policy-shell li + li {
  margin-top: 7px;
}

.policy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 8px;
}

.policy-footer a {
  color: var(--gold-dark);
  font-weight: 750;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
article[tabindex]:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(154, 107, 22, 0.32);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}

.page-glow-one {
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: -14rem;
  background: rgba(255, 255, 255, 0.54);
}

.page-glow-two {
  width: 28rem;
  height: 28rem;
  left: -14rem;
  bottom: -16rem;
  background: rgba(206, 170, 91, 0.16);
}

.prototype-layout {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 430px;
  gap: clamp(48px, 8vw, 108px);
  align-items: center;
  padding: 40px 0;
}

.concept-panel {
  max-width: 570px;
  padding: 24px 0;
}

.concept-eyebrow,
.eyebrow {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-panel h1 {
  margin: 18px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.3vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.concept-panel h1 em {
  color: var(--gold-dark);
  font-weight: 400;
}

.concept-copy {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
}

.promise-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(81, 69, 52, 0.14);
}

.promise-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

.promise-card strong,
.try-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.promise-card p,
.try-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.try-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(154, 107, 22, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.try-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--gold-dark);
  font-size: 1.1rem;
}

.palette {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.palette span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(40, 35, 29, 0.1);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: 410px;
  height: min(860px, calc(100vh - 48px));
  min-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid #25211d;
  border-radius: 46px;
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(251, 250, 246, 0.77), rgba(251, 250, 246, 0.77)),
    url("./ivory-gold-texture.webp");
  background-position: center;
  background-size: auto, 500px auto;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.phone-shell::before {
  content: "";
  position: absolute;
  z-index: 20;
  width: 106px;
  height: 25px;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #25211d;
}

.status-bar {
  min-height: 38px;
  padding: 9px 21px 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.status-icons {
  letter-spacing: 0.1em;
}

.app-header {
  min-height: 62px;
  padding: 7px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(109, 91, 58, 0.1);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-lockup img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(91, 60, 8, 0.14));
}

.brand-lockup strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.05;
}

.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: white;
  cursor: pointer;
}

.round-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.screen-stack {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.app-screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 16px 28px;
  scrollbar-width: none;
}

.app-screen::-webkit-scrollbar {
  display: none;
}

.app-screen.active {
  display: block;
  animation: screen-in 180ms ease-out;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 3px 2px 18px;
}

.compact-intro {
  margin-bottom: 12px;
}

.screen-intro h2,
.profile-summary h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 1.43rem;
  line-height: 1.13;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.batch-pill,
.count-badge,
.free-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--gold-dark);
  background: var(--champagne-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.count-badge {
  min-width: 30px;
  text-align: center;
}

.profile-card {
  overflow: hidden;
  border: 1px solid rgba(113, 83, 28, 0.11);
  border-radius: 25px;
  background: white;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.profile-photo-wrap {
  position: relative;
  height: clamp(270px, 38vh, 360px);
  overflow: hidden;
  background: #b9ad99;
}

.profile-photo-wrap > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
}

.photo-shade {
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(20, 16, 11, 0.78));
}

.profile-heading {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  color: white;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-heading p {
  margin: 3px 0 0;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.88);
}

.verified {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--gold);
  font-family: sans-serif;
  font-size: 0.72rem;
  vertical-align: 2px;
}

.photo-count {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(28, 23, 17, 0.56);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 750;
}

.profile-body {
  padding: 15px 16px 13px;
}

.goal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.goal-pills span,
.mutual-chip {
  padding: 6px 9px;
  border: 1px solid rgba(154, 107, 22, 0.18);
  border-radius: 999px;
  color: var(--gold-dark);
  background: #fbf6e9;
  font-size: 0.65rem;
  font-weight: 750;
}

.profile-prompt {
  margin: 12px 2px 13px;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mutual-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #63584c;
  font-size: 0.56rem;
  font-weight: 800;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: #8a6c58;
}

.avatar-stack span:nth-child(2) {
  background: #536575;
}

.avatar-stack span:last-child {
  color: var(--gold-dark);
  background: var(--champagne);
}

.mutual-row strong {
  display: block;
  font-size: 0.72rem;
}

.mutual-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
}

.text-arrow {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--gold-dark);
  cursor: pointer;
}

.discovery-actions {
  display: grid;
  grid-template-columns: 1fr 1.28fr 1fr;
  gap: 10px;
  margin: 13px 3px 0;
}

.action-button {
  min-height: 50px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(43, 33, 19, 0.07);
}

.action-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button span {
  font-size: 0.62rem;
  font-weight: 800;
}

.action-button.intro {
  color: var(--gold-dark);
  border-color: rgba(154, 107, 22, 0.2);
  background: var(--champagne-soft);
}

.action-button.like {
  color: white;
  border-color: var(--gold-dark);
  background: var(--gold-dark);
}

.action-button.like.liked svg {
  fill: currentColor;
}

.passed-state {
  min-height: 470px;
  padding: 70px 34px 30px;
  text-align: center;
}

.passed-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--champagne-soft);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.passed-state h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.passed-state p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.55;
}

.passed-state small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.small-gold-button,
.supporter-button,
.link-button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--gold-dark);
  color: white;
  background: var(--gold-dark);
}

.secondary-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: white;
}

.small-gold-button {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(154, 107, 22, 0.2);
  color: var(--gold-dark);
  background: var(--champagne-soft);
}

.full-width {
  width: 100%;
}

.interest-card {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: white;
  box-shadow: 0 10px 28px rgba(50, 38, 17, 0.08);
}

.interest-card > img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 15px;
}

.interest-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 5px 4px;
}

.interest-copy h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.interest-copy p,
.interest-card > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.interest-card > p {
  padding: 5px 5px 3px;
}

.interest-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 8px;
  padding: 10px 4px 3px;
}

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  column-gap: 9px;
}

.compact-card .interest-copy {
  padding: 0;
}

.compact-card .interest-actions {
  grid-column: 1 / -1;
}

.profile-placeholder {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.plum { background: linear-gradient(135deg, #5c3f59, #9f7899); }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f0ebe2;
}

.mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.mode-switch button.selected {
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 12px rgba(45, 34, 18, 0.09);
}

.network-card {
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1px solid rgba(154, 107, 22, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(234, 217, 170, 0.42), transparent 38%),
    linear-gradient(145deg, #fffdf8, #f4ecdc);
}

.network-person {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.network-person > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: #6b5a49;
  box-shadow: 0 5px 15px rgba(38, 30, 19, 0.14);
  font-size: 0.74rem;
  font-weight: 800;
}

.network-person small {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.6rem;
  font-weight: 750;
}

.network-person.you { left: 22px; top: 84px; }
.network-person.you > span { background: var(--ink); }
.network-person.sarah { left: 130px; top: 24px; }
.network-person.sarah > span { background: #966c56; }
.network-person.jordan { left: 132px; bottom: 18px; }
.network-person.jordan > span { background: #52697a; }
.network-person.maya { right: 22px; top: 84px; }
.network-person.maya > span { color: var(--gold-dark); background: var(--champagne); }

.network-lines {
  position: absolute;
  inset: 0;
}

.network-lines .line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: rgba(154, 107, 22, 0.34);
}

.line-one { width: 118px; left: 64px; top: 107px; transform: rotate(-31deg); }
.line-two { width: 117px; left: 64px; top: 116px; transform: rotate(30deg); }
.line-three { width: 119px; left: 177px; top: 74px; transform: rotate(30deg); }

.intro-card,
.suggestion-card,
.settings-card,
.completion-card,
.conversation-values {
  margin-top: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.intro-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mini-profile {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.mini-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.intro-card h3,
.suggestion-card h3,
.settings-card h3,
.conversation-values h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 1.02rem;
}

.intro-card > p,
.suggestion-card > div > p:last-child,
.wingman-hero > p,
.privacy-note p,
.conversation-values p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.privacy-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  margin: 13px 3px 0;
  padding: 12px;
  border-radius: 15px;
  background: #f0eee9;
}

.privacy-note svg {
  width: 26px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-note p {
  margin: 0;
}

.wingman-hero {
  padding: 22px 20px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 86% 12%, rgba(234, 217, 170, 0.25), transparent 30%),
    var(--ink);
}

.wingman-kicker {
  color: var(--champagne);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wingman-hero h3 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.wingman-hero > p {
  color: rgba(255, 255, 255, 0.72);
}

.wingman-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.wingman-stat-row span {
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.wingman-stat-row strong,
.wingman-stat-row small {
  display: block;
}

.wingman-stat-row strong {
  color: var(--champagne);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.wingman-stat-row small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.55rem;
}

.suggestion-people {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.suggestion-people span:not(.connection-dots) {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 850;
}

.person-a { background: var(--gold); }
.person-b { background: var(--ink); }
.connection-dots { padding: 0 10px; color: var(--gold); font-weight: 900; letter-spacing: 0.2em; }

.message-list {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: white;
}

.message-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  cursor: pointer;
  text-align: left;
}

.message-row:last-child { border-bottom: 0; }

.message-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
}

.image-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.amber { background: #9a6f3a; }
.blue { background: #516c7d; }

.message-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.message-copy strong { font-size: 0.82rem; }
.message-copy time { color: var(--muted); font-size: 0.62rem; }
.message-copy p { margin: 5px 0 0; color: var(--muted); font-size: 0.69rem; line-height: 1.4; }

.conversation-values {
  border-color: rgba(154, 107, 22, 0.16);
  background: var(--champagne-soft);
}

.conversation-values p { margin-bottom: 0; }

.profile-summary {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 3px 2px 16px;
}

.profile-summary h2 { margin-top: 3px; }
.profile-summary > div:nth-child(2) > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 0.68rem; }

.my-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  box-shadow: 0 5px 18px rgba(40, 35, 29, 0.16);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.small-round { width: 34px; height: 34px; font-weight: 800; }

.completion-card {
  margin-top: 0;
  background: var(--ink);
  color: white;
}

.completion-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
}

.completion-card span { color: rgba(255, 255, 255, 0.66); }

.progress-track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--champagne);
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.settings-heading button {
  border: 0;
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
}

.intention-list {
  margin: 13px 0 0;
}

.intention-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.intention-list dt { color: var(--muted); }
.intention-list dd { margin: 0; font-weight: 750; text-align: right; }

.included-list {
  padding: 0;
  margin: 15px 0;
  list-style: none;
}

.included-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 9px 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.included-list span { color: var(--success); font-weight: 900; }

.supporter-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(154, 107, 22, 0.22);
  color: var(--gold-dark);
  background: var(--champagne-soft);
}

.bottom-nav {
  position: relative;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 4px 7px 9px;
  border-top: 1px solid rgba(109, 91, 58, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  position: relative;
  min-height: 51px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 13px;
  color: #8b847b;
  background: transparent;
  cursor: pointer;
}

.bottom-nav button.active {
  color: var(--gold-dark);
  background: #f8f1df;
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav span:not(.nav-dot) {
  font-size: 0.57rem;
  font-weight: 800;
}

.nav-dot {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 17px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--gold-dark);
  font-size: 0.5rem;
  font-weight: 850;
}

.app-dialog {
  width: min(385px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow-y: auto;
  padding: 24px 20px 20px;
  border: 1px solid rgba(154, 107, 22, 0.14);
  border-radius: 27px;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 28px 90px rgba(27, 21, 13, 0.34);
}

.app-dialog::backdrop {
  background: rgba(31, 25, 18, 0.56);
  backdrop-filter: blur(4px);
}

.dialog-handle {
  width: 48px;
  height: 4px;
  margin: -9px auto 18px;
  border-radius: 999px;
  background: #d5cec3;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #eee9e0;
  cursor: pointer;
  font-size: 1.15rem;
}

.dialog-profile-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding-right: 23px;
}

.dialog-profile-head img {
  width: 86px;
  height: 104px;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 17px;
}

.dialog-profile-head h2,
.compact-dialog h2 {
  margin: 5px 0 3px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.dialog-profile-head p:last-child,
.compact-dialog > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.dialog-pills { margin: 16px 0; }

.answer-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.answer-block span,
.note-label,
.filter-group > span {
  display: block;
  color: var(--gold-dark);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-block p {
  margin: 7px 0 0;
  font-family: Georgia, serif;
  font-size: 0.91rem;
  line-height: 1.5;
}

.mutual-detail {
  margin: 2px 0 15px;
  padding: 13px;
  border-radius: 14px;
  background: var(--champagne-soft);
}

.mutual-detail strong { font-size: 0.73rem; }
.mutual-detail p { margin: 4px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }

.compact-dialog {
  padding-top: 28px;
  text-align: center;
}

.dialog-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 2px auto 14px;
  border-radius: 50%;
  color: white;
  background: var(--gold-dark);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.rewind-icon { color: var(--gold-dark); background: var(--champagne-soft); font-size: 1.7rem; }

.note-label {
  margin: 18px 0 7px;
  text-align: left;
}

.compact-dialog textarea {
  width: 100%;
  resize: vertical;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  font-size: 0.75rem;
  line-height: 1.45;
}

.compact-dialog .primary-button { margin-top: 12px; }

.link-button {
  min-height: 38px;
  margin-top: 7px;
  padding: 8px 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.privacy-caption {
  display: block;
  max-width: 280px;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.filter-group {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  background: white;
}

.filter-group label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.filter-group input { accent-color: var(--gold-dark); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(29, 23, 16, 0.26);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  html {
    background: var(--ivory);
  }

  body {
    background-color: var(--ivory);
    background-image:
      linear-gradient(rgba(251, 250, 246, 0.8), rgba(251, 250, 246, 0.8)),
      url("./ivory-gold-texture.webp");
    background-position: center;
    background-size: auto, 480px auto;
  }

  .page-glow,
  .concept-panel {
    display: none;
  }

  .prototype-layout {
    width: 100%;
    min-height: 100dvh;
    display: block;
    padding: 0;
  }

  .phone-stage {
    width: 100%;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell::before { display: none; }
  .status-bar { display: none; }
  .app-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .bottom-nav { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .profile-photo-wrap { height: clamp(285px, 47dvh, 430px); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-height: 760px) and (min-width: 901px) {
  .phone-shell { height: 710px; min-height: 710px; }
  .profile-photo-wrap { height: 272px; }
  .profile-prompt { margin: 9px 2px; }
}

/* Founding beta application states */
.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;
}

.loading-card,
.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 36px 4px 0;
  padding: 28px 22px;
  border: 1px solid rgba(154, 107, 22, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.loading-card strong,
.empty-state h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.loading-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.loading-mark,
.empty-symbol {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--champagne-soft);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.loading-mark:not(.error-mark) {
  border: 3px solid var(--champagne);
  border-top-color: var(--gold-dark);
  animation: beta-spin 900ms linear infinite;
}

@keyframes beta-spin { to { transform: rotate(360deg); } }

.error-mark {
  color: #8c2f2f;
  background: #f8e8e6;
  font-weight: 900;
}

.compact-empty {
  margin-top: 12px;
  padding: 20px 16px;
  box-shadow: none;
}

.mode-badge,
.pending-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gold-dark);
  background: var(--champagne-soft);
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: capitalize;
}

.auth-dialog,
.onboarding-dialog {
  width: min(430px, calc(100vw - 24px));
}

.auth-dialog {
  text-align: center;
}

.auth-mark {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
}

.auth-dialog h2,
.onboarding-dialog h2 {
  margin: 6px 0;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.auth-dialog > p:not(.eyebrow),
.onboarding-dialog > p:not(.eyebrow) {+  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 20px 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: #eee8de;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.selected {
  color: var(--gold-dark);
  background: white;
  box-shadow: 0 4px 12px rgba(59, 43, 18, 0.08);
}

.stacked-form {
  display: grid;
  gap: 14px;
  margin-top: 15px;
  text-align: left;
}

.stacked-form label,
.inline-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.stacked-form input:not([type="checkbox"]):not([type="radio"]),
.stacked-form select,
.stacked-form textarea,
.inline-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dcd3c5;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  font-weight: 500;
}

.stacked-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus,
.inline-form input:focus {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(187, 137, 48, 0.18);
}

.consent-row {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gold-dark);
}

.consent-row a {
  color: var(--gold-dark);
  font-weight: 750;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #7b2525;
  background: #fae9e7;
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-fieldset legend {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.mode-fieldset label {
  position: relative;
  display: block;
}

.mode-fieldset input {
  position: absolute;
  opacity: 0;
}

.mode-fieldset span {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid #ddd4c7;
  border-radius: 14px;
  background: white;
  cursor: pointer;
}

.mode-fieldset input:checked + span {
  border-color: var(--gold-bright);
  background: var(--champagne-soft);
  box-shadow: 0 0 0 2px rgba(187, 137, 48, 0.13);
}

.mode-fieldset small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
}

.photo-preview {
  width: 112px;
  height: 138px;
  overflow: hidden;
  margin: -4px auto 2px;
  border: 3px solid white;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-dark));
  font-family: Georgia, serif;
  font-size: 4rem;
}

.interest-profile-button {
  width: 76px;
  height: 96px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--champagne-soft);
  cursor: pointer;
}

.interest-profile-button img,
.interest-profile-button .profile-placeholder,
.connection-avatar img,
.connection-avatar .profile-placeholder,
.message-avatar img,
.message-avatar .profile-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-placeholder.gold {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-dark));
  font-family: Georgia, serif;
  font-weight: 800;
}

.connection-code-card {
  padding: 16px;
  border: 1px solid rgba(154, 107, 22, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--card-shadow);
}

.connection-code-card h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 1rem;
}

.connection-details {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.connection-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--champagne-soft);
}

.connection-detail-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.connection-detail-row small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connection-detail-row strong,
.connection-detail-row code {
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 900;
}

.connection-detail-row code {
  letter-spacing: 0.11em;
}

.compatibility-copy {
  margin: -3px 0 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(234, 217, 170, 0.22);
  line-height: 1.45;
}

.inline-form {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inline-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.inline-form button {
  min-width: 88px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 3px 10px;
}

.section-heading-row h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1rem;
}

.section-heading-row span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.connection-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 66px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.connection-avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
}

.connection-row strong { font-size: 0.82rem; }
.connection-row p { margin: 4px 0 0; color: var(--muted); font-size: 0.7rem; }
.connection-actions { display: grid; justify-items: end; gap: 2px; }

.intro-status-card {
  margin-bottom: 9px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.intro-status-card h3 { margin: 4px 0; font-family: Georgia, serif; font-size: 1rem; }
.intro-status-card > p:not(.eyebrow) { margin: 7px 0 12px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }

.profile-safety-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.danger-link {
  min-height: 38px;
  border: 0;
  color: #8d2c2c;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.danger-button {
  min-height: 46px;
  margin-top: 10px;
  padding: 11px 16px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: #8d2c2c;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.safety-icon {
  color: #8d2c2c;
  background: #fae9e7;
  font-weight: 900;
}

.account-actions {
  display: grid;
  gap: 7px;
  text-align: center;
}

.my-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.chat-dialog {
  width: min(430px, calc(100vw - 20px));
  height: min(720px, calc(100dvh - 20px));
  display: none;
  grid-template-rows: auto 1fr auto;
  padding: 0;
  overflow: hidden;
}

.chat-dialog[open] { display: grid; }

.chat-dialog-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.chat-dialog-header > div { display: grid; gap: 3px; }
.chat-dialog-header strong { font-size: 0.9rem; }
.chat-dialog-header small { color: var(--muted); font-size: 0.66rem; }
.dialog-back,
.text-menu-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--champagne-soft);
  cursor: pointer;
  font-weight: 850;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 16px;
  background: #f7f3ea;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 12px 6px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(38, 29, 16, 0.06);
}

.chat-bubble.mine {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: white;
  background: var(--gold-dark);
}

.chat-bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: white;
}

.chat-bubble p { margin: 0; font-size: 0.86rem; line-height: 1.45; white-space: pre-wrap; }
.chat-bubble time { display: block; margin-top: 4px; color: inherit; opacity: 0.68; font-size: 0.61rem; text-align: right; }

.chat-welcome,
.chat-loading {
  align-self: center;
  max-width: 290px;
  margin: auto;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
}

.chat-welcome strong { color: var(--ink); font-family: Georgia, serif; font-size: 1.05rem; }
.chat-welcome p { margin: 7px 0; }

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: white;
}

.message-form textarea {
  width: 100%;
  max-height: 112px;
  resize: none;
  padding: 11px 12px;
  border: 1px solid #ddd5c9;
  border-radius: 14px;
  color: var(--ink);
  background: var(--ivory);
  font: inherit;
  font-size: 1rem;
}

.message-form button { min-width: 68px; }

@media (max-width: 520px) {
  .app-dialog,
  .auth-dialog,
  .onboarding-dialog,
  .chat-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .onboarding-dialog { padding-inline: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .mode-fieldset { grid-template-columns: 1fr 1fr; }
  .stacked-form input:not([type="checkbox"]):not([type="radio"]),
  .stacked-form select,
  .stacked-form textarea,
  .inline-form input,
  .message-form textarea { font-size: 16px; }
}

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