:root {
  color-scheme: light;
  --page: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #eef7f4;
  --ink: #1f292a;
  --muted: #657273;
  --line: #dbe4df;
  --coral: #ff5c47;
  --coral-dark: #e94736;
  --coral-soft: #fff0ec;
  --teal: #087f78;
  --teal-soft: #e1f6f0;
  --yellow: #ffd447;
  --yellow-soft: #fff6c9;
  --blue: #3f6ee8;
  --blue-soft: #eaf0ff;
  --purple: #845dc4;
  --purple-soft: #f0eafd;
  --danger: #b73d38;
  --shadow: 0 14px 36px rgba(35, 50, 50, 0.1);
  --radius: 8px;
  --font: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="range"],
input[type="file"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 127, 120, 0.28);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

p {
  margin-bottom: 12px;
}

.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;
}

.logo {
  display: inline-block;
  color: var(--coral);
  font-family: "Pacifico", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.logo-large {
  font-size: 56px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.button:disabled {
  cursor: default;
  opacity: 0.62;
}

.button-primary {
  color: #ffffff;
  background: var(--coral);
}

.button-primary:hover:not(:disabled) {
  background: var(--coral-dark);
}

.button-light {
  border-color: #ffffff;
  color: var(--ink);
  background: #ffffff;
}

.button-light:hover:not(:disabled) {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.button-secondary {
  border-color: var(--line);
}

.button-secondary:hover:not(:disabled) {
  border-color: #becdca;
  background: var(--surface-soft);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.button-ghost:hover:not(:disabled) {
  color: var(--ink);
  background: var(--surface-soft);
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.icon-button {
  width: 40px;
  min-width: 40px;
  padding: 8px;
}

.google-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #4285f4;
  background: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--ink);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: 140ms ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(35, 50, 50, 0.03);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--page);
}

.auth-stage {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-story {
  position: relative;
  min-height: 560px;
  padding: 50px;
  overflow: hidden;
  background: var(--teal-soft);
}

.auth-story h1 {
  max-width: 470px;
  margin-top: 32px;
  font-size: 38px;
}

.auth-story > p {
  max-width: 460px;
  color: #3f6260;
  font-size: 17px;
}

.language-scene {
  position: relative;
  height: 245px;
  margin-top: 35px;
}

.language-bubble {
  position: absolute;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 700;
  animation: bubble-bob 5s ease-in-out infinite;
}

.bubble-one {
  --bubble-tilt: -3deg;
  top: 14px;
  left: 4%;
  color: #7a2f29;
  background: var(--coral-soft);
  animation-delay: -0.4s;
}

.bubble-two {
  --bubble-tilt: 2deg;
  top: 5px;
  right: 2%;
  color: #5b4a1a;
  background: var(--yellow-soft);
  animation-delay: -2.1s;
}

.bubble-three {
  --bubble-tilt: 1deg;
  top: 96px;
  left: 27%;
  color: #334f86;
  background: var(--blue-soft);
  animation-delay: -1.2s;
}

.bubble-four {
  --bubble-tilt: -2deg;
  right: 15%;
  bottom: 12px;
  color: #534075;
  background: var(--purple-soft);
  animation-delay: -3.4s;
}

.bubble-five {
  --bubble-tilt: 2deg;
  bottom: 0;
  left: 2%;
  color: #23645f;
  background: #dff2e9;
  animation-delay: -2.8s;
}

.auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.auth-panel h2 {
  margin-bottom: 8px;
  font-size: 27px;
}

.auth-panel .button-block {
  margin-top: 17px;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  padding: 0;
  border: 0;
  color: var(--teal);
  background: none;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-link {
  align-self: center;
  margin-top: 14px;
}

.setup-page {
  min-height: 100vh;
  padding: 24px;
}

.setup-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.setup-card {
  padding: 28px;
}

.setup-intro {
  margin-bottom: 24px;
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd8d5;
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.choice:hover {
  border-color: #a9c5bf;
  transform: translateY(-1px);
}

.choice[aria-pressed="true"] {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.availability-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
}

.availability-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.availability-group legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.availability-options {
  display: grid;
  gap: 6px;
}

.availability-days {
  grid-template-columns: repeat(7, minmax(32px, 1fr));
}

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

.availability-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.availability-option input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.availability-option span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.availability-option:hover span {
  border-color: #a9c5bf;
  transform: translateY(-1px);
}

.availability-option input:checked + span {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.availability-option input:focus-visible + span {
  outline: 3px solid rgba(22, 127, 120, 0.28);
  outline-offset: 2px;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  color: #315553;
  background: var(--teal-soft);
}

.safety-note p {
  margin: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(219, 228, 223, 0.82);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: grid;
  width: min(1280px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  justify-self: center;
  padding: 4px;
  border: 1px solid #e6ece8;
  border-radius: 8px;
  background: #f5f7f4;
}

.nav-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-button:hover,
.nav-button[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-button[aria-current="page"] {
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
}

.nav-button:hover {
  transform: translateY(-1px);
}

.nav-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.nav-badge,
.switch-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  animation: badge-pop 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mini-avatar,
.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--avatar-ink, var(--ink));
  background: var(--avatar-bg, var(--coral-soft));
  font-weight: 800;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.avatar {
  width: 58px;
  height: 58px;
  font-size: 15px;
}

.avatar-large {
  width: 88px;
  height: 88px;
  font-size: 22px;
}

.avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tone-coral {
  --avatar-bg: var(--coral-soft);
  --avatar-ink: #8b3931;
}

.tone-teal {
  --avatar-bg: var(--teal-soft);
  --avatar-ink: #1f625d;
}

.tone-yellow {
  --avatar-bg: var(--yellow-soft);
  --avatar-ink: #6c571e;
}

.tone-blue {
  --avatar-bg: var(--blue-soft);
  --avatar-ink: #354f83;
}

.tone-purple {
  --avatar-bg: var(--purple-soft);
  --avatar-ink: #584579;
}

.main-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 24px 104px;
}

.main-content > section {
  animation: view-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discover-experience {
  min-width: 0;
}

.discover-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.discover-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discover-heading h1 {
  max-width: 720px;
  margin: 0;
  font-size: 42px;
}

.discover-view-switch {
  min-width: 210px;
  flex: 0 0 auto;
}

.discover-toolbar {
  display: grid;
  min-height: 66px;
  margin-bottom: 18px;
  padding: 9px 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(190px, 0.8fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(35, 50, 50, 0.05);
}

.privacy-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--teal);
}

.privacy-pill > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.privacy-pill span,
.privacy-pill strong {
  display: block;
}

.privacy-pill strong {
  color: var(--ink);
  font-size: 12px;
}

.privacy-pill span {
  color: var(--muted);
  font-size: 10px;
}

.toolbar-field {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 5px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.toolbar-field select {
  min-width: 0;
  padding: 0 22px 0 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.toolbar-radius input {
  width: 100%;
  accent-color: var(--coral);
}

.discovery-stage {
  position: relative;
  display: grid;
  height: 450px;
  min-height: 450px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.85fr);
  border: 1px solid #d4dfda;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: stage-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  view-transition-name: family-spotlight;
}

.discovery-stage.is-family-swap,
.discovery-stage.is-family-swap .spotlight-visual > img,
.discovery-stage.is-family-swap .hello-stamp,
.discovery-stage.is-family-swap .spotlight-profile {
  animation: none;
}

.spotlight-visual {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--blue-soft);
}

.spotlight-visual > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  animation: photo-reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spotlight-language-art {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #ffffff;
  background: var(--blue);
}

.spotlight-language-art.tone-coral {
  background: var(--coral);
}

.spotlight-language-art.tone-teal {
  background: var(--teal);
}

.spotlight-language-art.tone-yellow {
  color: var(--ink);
  background: var(--yellow);
}

.spotlight-language-art.tone-purple {
  background: var(--purple);
}

.spotlight-language-art > span {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 800;
}

.spotlight-language-art > small {
  font-size: 13px;
  font-weight: 700;
}

.hello-stamp {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  display: grid;
  min-width: 118px;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-2deg);
  animation: stamp-in 520ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hello-stamp span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hello-stamp strong {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.private-area-note {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #245c57;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(31, 41, 42, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.deck-controls {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(31, 41, 42, 0.16);
}

.deck-controls .button {
  min-height: 38px;
}

.deck-controls > span {
  min-width: 42px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.spotlight-profile {
  display: flex;
  min-width: 0;
  padding: 34px 30px 28px;
  flex-direction: column;
  background: var(--surface);
  animation: profile-slide-in 460ms 70ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spotlight-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.spotlight-kicker > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spotlight-profile h2 {
  margin: 20px 0 10px;
  font-family: var(--display);
  font-size: 34px;
}

.spotlight-bio {
  margin-bottom: 4px;
  color: #485657;
  font-size: 14px;
}

.spotlight-tags {
  margin-top: 14px;
}

.spotlight-facts {
  display: grid;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spotlight-facts > div {
  display: grid;
  min-width: 0;
  padding: 12px 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.spotlight-facts > div + div {
  border-top: 1px solid var(--line);
}

.spotlight-facts svg {
  color: var(--coral);
}

.spotlight-facts span,
.spotlight-facts small,
.spotlight-facts strong {
  display: block;
  min-width: 0;
}

.spotlight-facts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.spotlight-facts strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.spotlight-primary {
  display: contents;
}

.spotlight-primary .button {
  min-width: 132px;
  flex: 1;
}

.family-rail-wrap {
  margin-top: 28px;
}

.rail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.rail-heading .eyebrow,
.rail-heading h2 {
  margin-bottom: 2px;
}

.rail-heading h2 {
  font-family: var(--display);
  font-size: 24px;
}

.rail-heading > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.family-rail {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  padding: 3px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.family-peek {
  display: grid;
  min-width: 220px;
  padding: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  scroll-snap-align: start;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.family-peek:hover {
  border-color: #b7cbc5;
  transform: translateY(-2px);
}

.family-peek[aria-pressed="true"] {
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
}

.family-peek > span {
  min-width: 0;
}

.family-peek strong,
.family-peek small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-peek strong {
  font-size: 12px;
}

.family-peek small {
  color: var(--muted);
  font-size: 10px;
}

.family-peek[aria-pressed="true"] small {
  color: #cbd5d2;
}

.weekend-band {
  display: grid;
  margin-top: 30px;
  padding: 22px;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  border: 1px solid #efd66a;
  border-radius: var(--radius);
  background: var(--yellow-soft);
}

.weekend-intro {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.weekend-intro .eyebrow {
  color: #7b6415;
}

.weekend-intro h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 25px;
}

.weekend-intro .button {
  margin-top: auto;
  padding-left: 0;
}

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

.weekend-event {
  display: grid;
  min-width: 0;
  padding: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(123, 100, 21, 0.18);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.weekend-event:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.weekend-event > span {
  min-width: 0;
}

.weekend-event strong,
.weekend-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekend-event > span:nth-child(2) strong {
  font-size: 11px;
  white-space: normal;
}

.weekend-event > span:nth-child(2) small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.weekend-date {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  align-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--coral);
  line-height: 1;
}

.weekend-date small {
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.weekend-date strong {
  font-size: 17px;
}

.privacy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  color: #315553;
  background: var(--teal-soft);
}

.privacy-copy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.privacy-copy p {
  margin: 0;
}

.filter-bar {
  display: grid;
  margin-bottom: 22px;
  padding: 14px;
  grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.2fr);
  gap: 20px;
}

.filter-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.filter-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
}

.filter-field input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.results-summary p {
  margin: 0;
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-switch {
  display: inline-grid;
  min-width: 154px;
  min-height: 38px;
  padding: 3px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.view-switch button {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.view-switch button:hover {
  color: var(--ink);
}

.view-switch button:active {
  transform: scale(0.97);
}

.view-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-soft);
  box-shadow: 0 1px 2px rgba(35, 50, 50, 0.1);
}

.map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(35, 50, 50, 0.03);
}

.map-canvas {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 520px;
  background: #dce9e5;
}

.map-badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  color: #285a56;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(35, 50, 50, 0.13);
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}

.map-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.map-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-footer .map-privacy {
  margin-left: auto;
  text-align: right;
}

.map-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.map-key-home {
  border: 2px solid #ffffff;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.map-key-family {
  background: var(--coral);
}

.map-fallback {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #47605e;
  background: var(--surface-soft);
}

.family-map-marker {
  --map-marker-bg: var(--coral);
  --map-marker-ink: #ffffff;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.family-map-marker:hover,
.family-map-marker.is-active {
  z-index: 2;
  transform: translateY(-2px) scale(1.12);
}

.family-map-marker span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: var(--map-marker-ink);
  background: var(--map-marker-bg);
  box-shadow: 0 3px 11px rgba(35, 50, 50, 0.3);
  font-size: 10px;
  font-weight: 800;
}

.family-map-marker span > b {
  font: inherit;
}

.family-map-marker.tone-teal {
  --map-marker-bg: var(--teal);
}

.family-map-marker.tone-yellow {
  --map-marker-bg: var(--yellow);
  --map-marker-ink: var(--ink);
}

.family-map-marker.tone-blue {
  --map-marker-bg: var(--blue);
}

.family-map-marker.tone-purple {
  --map-marker-bg: var(--purple);
}

.map-home-marker {
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 3px 12px rgba(35, 50, 50, 0.32);
}

.maplibregl-map {
  color: var(--ink);
  font-family: var(--font);
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(31, 41, 42, 0.12);
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(35, 50, 50, 0.16);
}

.maplibregl-ctrl-group button {
  color: var(--ink);
}

.maplibregl-popup-content {
  min-width: 245px;
  padding: 13px;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(35, 50, 50, 0.2);
}

.maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
  font-size: 20px;
}

.maplibregl-ctrl-attrib {
  font-size: 9px;
}

.map-popup-area {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.map-popup-profile {
  display: grid;
  padding-right: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.map-popup-profile strong,
.map-popup-profile span {
  display: block;
}

.map-popup-profile strong {
  font-size: 13px;
}

.map-popup-profile span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.map-popup-details {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.map-popup-details span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #48595a;
  font-size: 10px;
}

.map-popup-details svg {
  color: var(--teal);
}

.map-popup-action {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--coral);
  font-size: 11px;
  font-weight: 750;
}

.map-popup-action:hover {
  background: var(--coral-dark);
}

.map-popup-privacy {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.map-popup-privacy svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--teal);
}

.map-family-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--avatar-ink, var(--ink));
  background: var(--avatar-bg, var(--coral-soft));
  font-size: 10px;
  font-weight: 800;
}

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

.family-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
}

.family-card,
.community-card,
.timeline-event,
.request-card {
  animation: card-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.family-card:nth-child(2),
.community-card:nth-child(2),
.timeline-event:nth-child(2),
.request-card:nth-child(2) {
  animation-delay: 45ms;
}

.family-card:nth-child(3),
.community-card:nth-child(3),
.timeline-event:nth-child(3),
.request-card:nth-child(3) {
  animation-delay: 90ms;
}

.family-card:nth-child(4),
.community-card:nth-child(4),
.timeline-event:nth-child(4),
.request-card:nth-child(4) {
  animation-delay: 135ms;
}

.family-card:hover,
.community-card:hover,
.request-card:hover {
  border-color: #c9d9d5;
  box-shadow: 0 12px 26px rgba(35, 50, 50, 0.11);
  transform: translateY(-3px);
}

.family-card:nth-child(4n + 1) {
  border-top: 3px solid var(--coral);
}

.family-card:nth-child(4n + 2) {
  border-top: 3px solid var(--yellow);
}

.family-card:nth-child(4n + 3) {
  border-top: 3px solid var(--teal);
}

.family-card:nth-child(4n + 4) {
  border-top: 3px solid var(--blue);
}

.family-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.family-card h2 {
  margin: 2px 0 3px;
  font-size: 17px;
}

.family-card .meta-line {
  color: var(--muted);
  font-size: 12px;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #315553;
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 700;
}

.tag-age {
  color: #6b5215;
  background: var(--yellow-soft);
}

.family-bio {
  min-height: 66px;
  margin: 14px 0;
  color: #485657;
  font-size: 13px;
}

.match-reason {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 650;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-actions .button:first-child {
  flex: 1;
}

.empty-state {
  padding: 34px;
  grid-column: 1 / -1;
  text-align: center;
}

.empty-state svg {
  margin-bottom: 10px;
  color: var(--teal);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-hero {
  display: grid;
  padding: 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.profile-hero h1 {
  margin-bottom: 4px;
}

.profile-sections {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-section {
  padding: 18px;
}

.profile-section p:last-child {
  margin-bottom: 0;
}

.facts-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.fact dt {
  color: var(--muted);
  font-size: 12px;
}

.fact dd {
  margin: 0;
  font-weight: 650;
}

.groups-experience,
.events-experience,
.messages-experience,
.profile-experience {
  animation: view-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.clubhouse-heading h1,
.events-heading h1 {
  font-size: 42px;
}

.clubhouse-note {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ead37b;
  border-radius: 8px;
  color: #6d5611;
  background: var(--yellow-soft);
}

.clubhouse-note svg {
  color: var(--coral);
}

.clubhouse-note strong,
.clubhouse-note span {
  display: block;
  font-size: 12px;
}

.featured-community {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.featured-community-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 38px 44px;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #81342d;
  background: var(--coral-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-label svg {
  width: 14px;
  height: 14px;
}

.featured-community-copy h2 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: 37px;
  line-height: 1.04;
}

.featured-community-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: 15px;
}

.featured-community-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 24px;
  color: #455757;
  font-size: 12px;
}

.featured-community-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-community-meta svg {
  color: var(--teal);
}

.language-poster {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #ffffff;
  background: var(--blue);
}

.poster-word {
  position: absolute;
  display: block;
  font-family: var(--display);
  line-height: 0.9;
}

.poster-hola {
  top: 40px;
  left: 34px;
  color: var(--yellow);
  font-size: 74px;
  transform: rotate(-4deg);
}

.poster-hello {
  top: 137px;
  right: 29px;
  color: #ffffff;
  font-size: 64px;
  transform: rotate(3deg);
}

.poster-amigos {
  bottom: 58px;
  left: 30px;
  color: #ffc1b8;
  font-size: 57px;
  transform: rotate(-2deg);
}

.poster-stamp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.section-split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 14px;
}

.section-split-heading .eyebrow,
.section-split-heading h2 {
  margin-bottom: 2px;
}

.section-split-heading > span {
  color: var(--muted);
  font-size: 12px;
}

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

.community-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 20px;
}

.community-card:nth-child(3n + 1) {
  border-top: 4px solid var(--yellow);
}

.community-card:nth-child(3n + 2) {
  border-top: 4px solid var(--teal);
}

.community-card:nth-child(3n + 3) {
  border-top: 4px solid var(--coral);
}

.community-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.community-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-soft);
}

.community-language {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4d5d5e;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.community-card h2 {
  font-size: 20px;
}

.community-card > p {
  color: var(--muted);
  font-size: 13px;
}

.community-meta {
  display: grid;
  margin: auto 0 15px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 9px;
  color: var(--muted);
  font-size: 11px;
}

.community-meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  grid-column: 1 / -1;
}

.member-dots {
  display: flex;
  padding-left: 5px;
}

.member-dots i {
  width: 24px;
  height: 24px;
  margin-left: -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--coral-soft);
}

.member-dots i:nth-child(2) {
  background: var(--yellow);
}

.member-dots i:nth-child(3) {
  background: var(--teal-soft);
}

.featured-event {
  display: grid;
  min-height: 300px;
  padding: 34px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: var(--shadow);
}

.featured-event-date {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  line-height: 1;
}

.featured-event-date span {
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.featured-event-date strong {
  margin: 7px 0;
  font-family: var(--display);
  font-size: 68px;
}

.featured-event-date small {
  font-size: 11px;
  font-weight: 750;
}

.featured-event .feature-label {
  color: #325648;
  background: var(--yellow);
}

.featured-event-copy h2 {
  max-width: 500px;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.05;
}

.featured-event-copy > p {
  color: #d7f2ef;
  font-weight: 700;
}

.featured-event-details {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
}

.featured-event-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.featured-event-action {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}

.event-attendance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.member-dots-light i {
  border-color: var(--teal);
}

.calendar-split-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-timeline {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.timeline-event {
  display: grid;
  min-height: 132px;
  padding: 20px 22px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.timeline-event:last-child {
  border-bottom: 0;
}

.timeline-event:hover {
  background: var(--surface-soft);
}

.timeline-date {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 7px;
  color: #81342d;
  background: var(--coral-soft);
  line-height: 1;
}

.timeline-event:nth-child(2) .timeline-date {
  color: #47612b;
  background: var(--yellow-soft);
}

.timeline-event:nth-child(3) .timeline-date {
  color: #35517e;
  background: var(--blue-soft);
}

.timeline-date span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-date strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 29px;
}

.timeline-copy h2 {
  margin: 4px 0 7px;
  font-size: 19px;
}

.timeline-copy p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.timeline-group {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-view-switch {
  min-width: 250px;
}

.message-view-switch button {
  position: relative;
}

.switch-badge {
  min-width: 17px;
  height: 17px;
}

.message-header-band {
  display: grid;
  min-height: 170px;
  margin-bottom: 18px;
  padding: 27px 30px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--blue-soft);
}

.message-header-band h1 {
  margin-bottom: 5px;
  font-size: 40px;
}

.message-header-band > div:first-child > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #4b5d6e;
  font-size: 13px;
}

.message-safety {
  display: flex;
  max-width: 210px;
  align-items: center;
  gap: 9px;
  color: #35517e;
}

.message-safety > svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.message-safety span,
.message-safety strong {
  display: block;
  font-size: 11px;
}

.message-safety span {
  color: #5d7083;
}

.message-safety strong {
  color: #35517e;
}

.requests-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.request-section {
  min-width: 0;
  border-top: 4px solid var(--coral);
}

.request-section + .request-section {
  border-top: 4px solid var(--blue);
}

.request-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 15px 16px;
  background: var(--coral-soft);
}

.request-section + .request-section .request-section-header {
  background: var(--blue-soft);
}

.request-section-header .eyebrow,
.request-section-header h2 {
  margin-bottom: 3px;
}

.request-count {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.request-count-sent {
  color: #35517e;
  background: var(--blue-soft);
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  min-width: 0;
  padding: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.request-incoming {
  border-left: 4px solid var(--coral);
}

.request-outgoing {
  border-left: 4px solid var(--blue);
}

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

.request-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-title-row h3 {
  margin: 0;
  font-size: 16px;
}

.request-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #8b3931;
  background: var(--coral-soft);
  font-size: 10px;
  font-weight: 800;
}

.request-outgoing .request-status {
  color: #35517e;
  background: var(--blue-soft);
}

.request-copy p {
  margin: 5px 0;
  color: #485657;
  font-size: 13px;
}

.request-match {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 1 / -1;
  gap: 7px;
  flex-wrap: wrap;
}

.request-empty {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--teal);
  background: #f8fbfa;
}

.request-empty > svg {
  flex: 0 0 auto;
}

.request-empty strong,
.request-empty span {
  display: block;
}

.request-empty span {
  color: var(--muted);
  font-size: 12px;
}

.messages-layout {
  display: grid;
  min-height: 590px;
  overflow: hidden;
  grid-template-columns: 310px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.conversation-list-header,
.chat-header {
  min-height: 68px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.conversation-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid var(--coral);
  background: var(--coral-soft);
}

.conversation-list-header h2,
.chat-header h2 {
  margin-bottom: 2px;
  font-size: 17px;
}

.conversation-button {
  display: grid;
  width: 100%;
  padding: 13px 15px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.conversation-button:hover,
.conversation-button[aria-current="true"] {
  background: var(--yellow-soft);
}

.conversation-button:hover {
  transform: translateX(3px);
}

.conversation-button[aria-current="true"] {
  box-shadow: inset 4px 0 var(--coral);
}

.conversation-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  color: var(--teal);
  text-align: center;
}

.conversation-empty span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-preview {
  min-width: 0;
}

.conversation-preview strong,
.conversation-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-preview span,
.conversation-time {
  color: var(--muted);
  font-size: 11px;
}

.chat-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 4px solid var(--teal);
  background: var(--teal-soft);
}

.chat-messages {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px;
  background: #f7f8f2;
}

.chat-welcome {
  display: flex;
  align-self: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  margin: auto;
  color: var(--teal);
  text-align: center;
  animation: card-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-welcome svg {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  color: var(--coral);
}

.chat-welcome span {
  color: var(--muted);
  font-size: 12px;
}

.empty-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--coral-soft);
}

.empty-icon svg {
  margin: 0;
}

.message {
  max-width: 78%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  background: var(--surface);
  font-size: 13px;
  animation: message-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.message.mine {
  align-self: flex-end;
  border-color: #c8e5df;
  border-radius: 8px 8px 2px 8px;
  color: #244c48;
  background: var(--teal-soft);
}

.message time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.message-form {
  display: grid;
  padding: 12px;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.message-form input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-edit-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.profile-sidebar,
.profile-form-card {
  padding: 22px;
}

.profile-sidebar {
  align-self: start;
  border-top: 4px solid var(--yellow);
  text-align: left;
}

.profile-banner {
  display: grid;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 34px 38px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.profile-banner-person {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.profile-banner-person .avatar {
  width: 104px;
  height: 104px;
  border: 5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 42, 0.18);
}

.profile-banner .eyebrow {
  color: var(--yellow);
}

.profile-banner h1 {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 40px;
}

.profile-banner-person p:not(.eyebrow) {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  color: #e5ebff;
  font-size: 13px;
}

.profile-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-banner-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
}

.profile-completion {
  padding: 20px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.profile-completion > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
}

.profile-completion strong {
  color: var(--coral);
  font-size: 22px;
}

.profile-completion progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: var(--coral);
  background: var(--coral-soft);
  accent-color: var(--coral);
}

.profile-completion progress::-webkit-progress-bar {
  background: var(--coral-soft);
}

.profile-completion progress::-webkit-progress-value {
  background: var(--coral);
}

.profile-completion small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.photo-panel-heading,
.profile-form-heading,
.profile-settings-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.photo-panel-heading {
  margin-bottom: 18px;
}

.photo-panel-heading > svg,
.profile-form-icon,
.profile-settings-heading > div:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #81342d;
  background: var(--coral-soft);
}

.photo-panel-heading > svg {
  padding: 10px;
  color: #6d5611;
  background: var(--yellow-soft);
}

.photo-panel-heading .eyebrow,
.photo-panel-heading h2,
.profile-form-heading .eyebrow,
.profile-form-heading h2,
.profile-settings-heading .eyebrow,
.profile-settings-heading h2 {
  margin-bottom: 1px;
}

.photo-panel-heading h2,
.profile-form-heading h2,
.profile-settings-heading h2 {
  font-size: 18px;
}

.profile-photo-preview {
  display: grid;
  min-height: 170px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow-soft);
}

.profile-photo-preview .avatar {
  width: 104px;
  height: 104px;
  border: 5px solid #ffffff;
}

.profile-form-card {
  border-top: 4px solid var(--coral);
}

.profile-form-heading {
  margin-bottom: 24px;
}

.profile-form-heading > div:last-child > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-settings-heading {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.profile-settings-heading > div:first-child {
  color: #35517e;
  background: var(--blue-soft);
}

.profile-verified-note,
.profile-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  padding: 11px;
  border-radius: 7px;
  color: #35517e;
  background: var(--blue-soft);
}

.profile-safety-note {
  color: #27655f;
  background: var(--teal-soft);
}

.profile-verified-note svg,
.profile-safety-note svg {
  flex: 0 0 auto;
}

.profile-verified-note span,
.profile-verified-note strong,
.profile-safety-note span,
.profile-safety-note strong {
  display: block;
  font-size: 10px;
}

.profile-sidebar .button {
  margin-top: 14px;
}

.profile-sidebar input[type="file"] {
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
}

.settings-list {
  display: grid;
  gap: 0;
  margin-top: 13px;
}

.setting-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row span {
  color: var(--muted);
  font-size: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c7d3d0;
  transition: 160ms ease;
}

.switch span::before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--teal);
}

.switch input:checked + span::before {
  transform: translateX(18px);
}

.switch input:disabled + span {
  opacity: 0.58;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 66px;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav .nav-button {
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  gap: 2px;
  border-radius: 0;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 14px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bubble-bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--bubble-tilt, 0deg));
  }
  50% {
    transform: translateY(-7px) rotate(var(--bubble-tilt, 0deg));
  }
}

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

@keyframes photo-reveal {
  from {
    opacity: 0.72;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes profile-slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: translateY(-8px) rotate(-6deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-2deg) scale(1);
  }
}

::view-transition-old(family-spotlight),
::view-transition-new(family-spotlight) {
  mix-blend-mode: normal;
  animation-duration: 190ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-family-direction="next"]::view-transition-old(family-spotlight) {
  animation-name: family-deck-out-left;
}

html[data-family-direction="next"]::view-transition-new(family-spotlight) {
  animation-name: family-deck-in-right;
}

html[data-family-direction="previous"]::view-transition-old(family-spotlight) {
  animation-name: family-deck-out-right;
}

html[data-family-direction="previous"]::view-transition-new(family-spotlight) {
  animation-name: family-deck-in-left;
}

@keyframes family-deck-out-left {
  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

@keyframes family-deck-in-right {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes family-deck-out-right {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes family-deck-in-left {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .topbar-actions {
    justify-self: end;
  }

  .location-status {
    display: none;
  }

  .discover-toolbar {
    grid-template-columns: minmax(210px, 1fr) minmax(145px, auto) minmax(180px, 0.8fr) auto;
  }

  .discovery-stage {
    height: 560px;
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  }

  .spotlight-profile {
    padding: 27px 23px 24px;
  }

  .spotlight-profile h2 {
    font-size: 30px;
  }

  .weekend-band {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .featured-community {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .featured-community-copy {
    padding: 30px;
  }

  .featured-community-copy h2 {
    font-size: 32px;
  }

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

  .featured-event {
    padding: 28px;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 26px;
  }

  .featured-event-action {
    align-items: center;
    flex-direction: row;
    grid-column: 2;
  }

  .message-header-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .message-safety {
    display: none;
  }

  .messages-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .request-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-edit-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .profile-banner {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .availability-picker {
    grid-template-columns: 1fr;
  }

  .availability-time-group {
    width: min(180px, 100%);
  }
}

@media (max-width: 700px) {
  .auth-page {
    padding: 0;
    place-items: stretch;
  }

  .auth-stage {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .auth-story {
    min-height: 300px;
    padding: 32px 24px;
  }

  .auth-story h1 {
    margin-top: 20px;
    font-size: 30px;
  }

  .language-scene {
    height: 105px;
    margin-top: 15px;
  }

  .bubble-three,
  .bubble-four {
    display: none;
  }

  .bubble-five {
    right: 8%;
    bottom: 4px;
    left: auto;
  }

  .auth-panel {
    padding: 35px 24px;
  }

  .setup-page {
    padding: 18px 14px;
  }

  .setup-card {
    padding: 20px 16px;
  }

  .field-grid,
  .family-grid,
  .community-grid,
  .profile-sections,
  .profile-edit-layout {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .main-content {
    padding: 24px 14px 90px;
  }

  .discover-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .discover-heading h1 {
    font-size: 35px;
  }

  .discover-view-switch {
    width: min(100%, 330px);
  }

  .discover-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .privacy-pill {
    padding: 4px 7px 8px;
    grid-column: 1 / -1;
  }

  .toolbar-field {
    padding: 8px 7px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .toolbar-radius {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .discover-toolbar > .icon-button {
    grid-row: 2;
    grid-column: 2;
  }

  .discovery-stage {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .spotlight-visual,
  .spotlight-visual > img,
  .spotlight-language-art {
    min-height: 370px;
    height: 370px;
  }

  .spotlight-profile {
    min-height: 420px;
  }

  .weekend-band {
    grid-template-columns: 1fr;
  }

  .weekend-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .weekend-intro .eyebrow {
    grid-column: 1 / -1;
  }

  .weekend-intro h2 {
    margin: 0;
  }

  .weekend-events {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .weekend-event {
    min-width: 245px;
    scroll-snap-align: start;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .clubhouse-heading h1,
  .events-heading h1 {
    font-size: 35px;
  }

  .clubhouse-note {
    width: fit-content;
  }

  .featured-community {
    grid-template-columns: 1fr;
  }

  .language-poster {
    min-height: 300px;
  }

  .featured-community-copy {
    padding: 30px 24px;
  }

  .community-grid-clubhouse {
    grid-template-columns: 1fr;
  }

  .community-card {
    min-height: 285px;
  }

  .section-split-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .featured-event {
    padding: 22px;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
  }

  .featured-event-date {
    min-height: 150px;
  }

  .featured-event-date strong {
    font-size: 50px;
  }

  .featured-event-copy h2 {
    font-size: 29px;
  }

  .featured-event-action {
    align-items: stretch;
    flex-direction: column;
    grid-column: 1 / -1;
  }

  .timeline-event {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .timeline-event > .button {
    grid-column: 1 / -1;
  }

  .message-header-band {
    padding: 23px 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .message-header-band h1 {
    font-size: 34px;
  }

  .message-safety {
    display: flex;
    max-width: none;
  }

  .requests-board {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    justify-content: flex-start;
  }

  .message-view-switch {
    width: min(100%, 330px);
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-hero .button {
    grid-column: 1 / -1;
  }

  .profile-sidebar {
    text-align: left;
  }

  .profile-banner {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-banner-person .avatar {
    width: 86px;
    height: 86px;
  }

  .profile-banner h1 {
    font-size: 34px;
  }

  .messages-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .messages-layout.has-chat .conversation-list {
    display: none;
  }

  .messages-layout:not(.has-chat) .chat-panel {
    display: none;
  }

  .conversation-list {
    border-right: 0;
  }

  .chat-messages {
    min-height: 420px;
  }

  .request-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .privacy-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-picker {
    grid-template-columns: 1fr;
  }

  .availability-time-group {
    width: min(180px, 100%);
  }

  .results-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-tools {
    width: 100%;
    justify-content: space-between;
  }

  .map-canvas {
    height: 450px;
  }

  .map-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .map-footer .map-privacy {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .logo-large {
    font-size: 47px;
  }

  .auth-story {
    min-height: 275px;
  }

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

  .topbar-inner {
    min-height: 62px;
    padding: 0 14px;
  }

  .topbar .logo {
    font-size: 27px;
  }

  .discover-heading h1 {
    font-size: 32px;
  }

  .spotlight-visual,
  .spotlight-visual > img,
  .spotlight-language-art {
    min-height: 330px;
    height: 330px;
  }

  .hello-stamp {
    top: 16px;
    left: 16px;
    min-width: 106px;
  }

  .hello-stamp strong {
    font-size: 21px;
  }

  .private-area-note {
    display: none;
  }

  .deck-controls {
    right: 16px;
    bottom: 16px;
  }

  .spotlight-profile {
    min-height: 0;
    padding: 24px 18px 20px;
  }

  .spotlight-profile h2 {
    margin-top: 16px;
    font-size: 29px;
  }

  .spotlight-actions {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .spotlight-primary {
    display: block;
    grid-column: 1 / -1;
  }

  .spotlight-primary .button {
    width: 100%;
  }

  .family-peek {
    min-width: 205px;
  }

  .weekend-band {
    padding: 18px 14px;
  }

  .mobile-nav .nav-button {
    position: relative;
  }

  .mobile-nav .nav-badge {
    position: absolute;
    top: 7px;
    left: calc(50% + 5px);
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions .button {
    width: 100%;
  }

  .request-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }

  .request-actions {
    grid-column: 1 / -1;
  }

  .request-actions .button {
    flex: 1 1 auto;
  }

  .featured-community-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .poster-hola {
    top: 38px;
    font-size: 62px;
  }

  .poster-hello {
    top: 125px;
    font-size: 53px;
  }

  .poster-amigos {
    font-size: 48px;
  }

  .featured-event {
    padding: 18px;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .featured-event-date {
    min-height: 128px;
  }

  .featured-event-date strong {
    font-size: 43px;
  }

  .featured-event-copy h2 {
    font-size: 25px;
  }

  .featured-event .feature-label {
    margin-bottom: 12px;
  }

  .timeline-event {
    padding: 17px 14px;
    gap: 14px;
  }

  .profile-banner {
    padding: 24px 18px;
  }

  .profile-banner-person {
    grid-template-columns: 1fr;
  }

  .profile-banner h1 {
    font-size: 31px;
  }

  .profile-form-card,
  .profile-sidebar {
    padding: 18px;
  }

  .location-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .results-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switch {
    width: 100%;
  }

  .map-canvas {
    height: 390px;
  }
}

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

  ::view-transition-old(family-spotlight),
  ::view-transition-new(family-spotlight) {
    animation-duration: 0.01ms !important;
  }
}
