@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #3f3f3c;
  --muted: #676762;
  --muted-strong: #52524e;
  --white: #ffffff;
  --paper: #ffffff;
  --paper-dark: #ffffff;
  --coral: #d83a2e;
  --coral-dark: #b92b22;
  --coral-soft: #fbe6e1;
  --alignment-developing: var(--muted-strong);
  --alignment-promising: #b85b4e;
  --alignment-strong: var(--coral);
  --alignment-excellent: var(--coral-dark);
  --alignment-exceptional: #861f18;
  --title-accent: var(--coral);
  --success: #157052;
  --success-soft: #e5f4ed;
  --danger: #ad2639;
  --danger-soft: #fbe8ec;
  --warning: #81590f;
  --focus: #b92b22;
  --line: #deddd6;
  --line-strong: #b8b7af;
  --shadow-overlay: 0 22px 64px rgb(17 17 17 / 16%);
  --shadow-float: 0 14px 38px rgb(17 17 17 / 12%);
  --shadow-card: 0 8px 26px rgb(17 17 17 / 10%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --header-h: 64px;
  --safe-top: var(--app-safe-area-top, env(safe-area-inset-top, 0px));
  --visual-viewport-height: 100dvh;
  --visual-viewport-offset-top: 0px;
  --page: 1280px;
  --gutter: 16px;
  --page-eyebrow-size: .73rem;
  --page-title-size: clamp(2rem, 6vw, 3.5rem);
  --content-section-title-size: clamp(1.6rem, 3vw, 2.25rem);
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.member-shell {
  padding-bottom: 0;
}

body.menu-open,
body.filter-sheet-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.025em;
  line-height: 1.18;
}

h4 {
  font-size: 1rem;
  letter-spacing: -.015em;
  line-height: 1.25;
}

p,
li {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ink);
  background: var(--coral-soft);
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.safe-area-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: env(safe-area-inset-top, 0px);
  visibility: hidden;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

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

/* Application shell */
.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

body.menu-open .site-header {
  z-index: 80;
}

.site-header__inner {
  width: min(100%, var(--page));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__name {
  font-size: 1.15rem;
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand__tagline {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.site-nav {
  z-index: 70;
}

.site-nav a,
.nav-signout button {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: inherit;
  font-weight: 680;
  text-decoration: none;
}

.site-nav--public {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-overlay);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.site-nav--public.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.site-nav--public a {
  padding: 0 16px;
  border-radius: 999px;
}

.site-nav--public a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus);
}

.site-nav--public a:hover,
.site-nav--public a[aria-current="page"] {
  background: var(--paper);
}

.site-nav--public a[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--coral);
}

.site-nav--public .nav-cta {
  margin-top: 10px;
  justify-content: center;
  color: var(--white);
  background: var(--coral);
}

.site-nav--public .nav-cta:hover {
  background: var(--coral-dark);
}

.menu-backdrop {
  position: fixed;
  z-index: 65;
  inset: calc(var(--header-h) + var(--safe-top)) 0 0;
  background: rgb(17 17 17 / 42%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.menu-backdrop.open {
  opacity: 1;
}

.site-nav--member {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 72px;
  padding: 7px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  backdrop-filter: blur(18px);
}

.site-nav--member > a {
  position: relative;
  min-width: 0;
  padding: 4px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .7rem;
}

.site-nav--member > a .icon {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 5px;
  border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.site-nav--member > a:hover {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.site-nav--member > a[aria-current="page"] {
  color: var(--ink);
  background: transparent;
  font-weight: 760;
}

.site-nav--member > a[aria-current="page"] .icon {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 4px 12px rgb(216 58 46 / 24%);
}

.site-nav--member > a[href$="/profile"][aria-current="page"] {
  color: var(--ink);
}

.site-nav--member .nav-signout {
  display: none;
}

.nav-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--coral);
  font-size: .62rem;
  font-weight: 800;
}

.member-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-header-actions > a {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
}

.member-header-actions > a:hover,
.member-header-actions > a[aria-current="page"] {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.member-header-actions > a .icon {
  width: 20px;
  height: 20px;
}

.member-header-actions .nav-badge {
  top: -1px;
  right: -1px;
  left: auto;
  min-width: 18px;
  height: 18px;
  border-width: 2px;
  font-size: .58rem;
}

.member-account-menu {
  position: relative;
}

.member-account-menu > summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  list-style: none;
}

@media (max-width: 350px) {
  .member-header-actions {
    gap: 1px;
  }

  .member-header-actions > a,
  .member-account-menu > summary {
    width: 38px;
    height: 38px;
  }
}

.member-account-menu > summary::-webkit-details-marker {
  display: none;
}

.member-account-menu.is-current > summary,
.member-account-menu[open] > summary {
  color: var(--ink);
  background: var(--coral-soft);
}

.member-account-menu__panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: min(290px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-overlay);
}

.member-account-menu__panel .member-account-menu__identity {
  min-height: 0;
  margin: 0 0 6px;
  padding: 10px 12px 12px;
  display: block;
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.member-account-menu__panel strong,
.member-account-menu__identity span {
  display: block;
}

.member-account-menu__identity span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
}

.member-account-menu__panel .member-account-menu__identity:hover {
  background: var(--coral-soft);
}

.member-account-menu__panel a,
.member-account-menu__panel button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-size: .88rem;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.member-account-menu__panel a:hover,
.member-account-menu__panel button:hover,
.member-account-menu__panel a[aria-current="page"] {
  background: var(--paper);
}

.noscript-nav {
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: .86rem;
  font-weight: 650;
}

.noscript-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.page-main {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}

.page-wrap {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

.page-wrap--narrow,
.page-wrap--form,
.page-wrap--reading {
  max-width: var(--page);
}

.site-footer {
  padding: 52px 0 calc(32px + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--paper);
}

.site-footer__inner {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 28px;
}

.brand--footer {
  width: fit-content;
}

.brand--footer .brand__mark {
  width: 32px;
  height: 32px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer__note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Shared hierarchy and controls */
.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--title-accent);
  font-size: var(--page-eyebrow-size);
  font-weight: 780;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow > span {
  display: none;
}

.eyebrow--light,
.text-link--light {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading--page h1,
.page-hero > h1,
.member-page-header h1,
.chat-sidebar-title h1,
.auth-card h1,
.error-state h1 {
  font-size: var(--page-title-size);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.page-hero {
  max-width: 760px;
  margin: 0 0 36px;
}

.page-hero--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.page-hero > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero small {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
}

.text-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral);
  font-weight: 720;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 17px;
}

.button-group,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 720;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, transform 140ms var(--ease);
}

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

.button:active {
  transform: none;
}

.button--large {
  min-height: 54px;
  padding: 0 24px;
  font-size: .96rem;
}

.button--full {
  width: 100%;
}

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

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

.button--secondary {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--secondary:hover,
.button--quiet:hover {
  background: var(--paper-dark);
}

.button--quiet {
  color: var(--ink-soft);
  background: transparent;
}

.button--light,
.button--gold {
  color: var(--ink);
  background: var(--white);
}

.button--light:hover,
.button--gold:hover {
  background: var(--white);
}

.button--danger {
  color: var(--white);
  background: var(--danger);
}

.button--danger:hover {
  background: #8b1d2c;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.is-submitting .button[type="submit"] {
  cursor: progress;
  opacity: .62;
  pointer-events: none;
}

.alert {
  margin-bottom: 20px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

.alert--error {
  color: #792031;
  background: var(--danger-soft);
  box-shadow: inset 4px 0 var(--danger);
}

.alert--success {
  color: #10543f;
  background: var(--success-soft);
  box-shadow: inset 4px 0 var(--success);
}

.toast-stack {
  position: fixed;
  z-index: 100;
  top: calc(var(--header-h) + var(--safe-top) + 12px);
  right: 12px;
  left: 12px;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.toast {
  width: min(100%, 430px);
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-overlay);
  font-size: .9rem;
  font-weight: 650;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast--success {
  box-shadow: inset 4px 0 var(--success), var(--shadow-overlay);
}

.toast--error {
  box-shadow: inset 4px 0 var(--danger), var(--shadow-overlay);
}

/* Forms */
.stack-form,
.profile-form {
  display: grid;
  gap: 22px;
}

.form-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.form-field label,
.form-group legend,
.filter-age-field legend {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 720;
}

.field-hint,
.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea,
.filter-age-field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background-color: var(--paper);
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.form-field select,
.filter-age-field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352524e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

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

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.filter-age-field select:hover {
  background-color: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filter-age-field select:focus {
  border-color: var(--focus);
  outline: none;
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgb(216 58 46 / 16%);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
  background-color: var(--danger-soft);
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.label-row > span,
.optional {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
}

.form-group,
.filter-age-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group > .field-hint {
  margin: 2px 0 11px;
}

.date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(76px, .75fr);
  gap: 10px;
}

.date-grid > :last-child {
  grid-column: 1 / -1;
}

.time-grid,
.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 19px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 44px !important;
}

.combobox {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-overlay);
}

.suggestions:empty {
  display: none;
}

.suggestions button {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  display: grid;
  gap: 1px;
  border: 0;
  color: var(--ink);
  background: var(--white);
  text-align: left;
}

.suggestions button + button {
  border-top: 1px solid var(--line);
}

.suggestions button:hover,
.suggestions button[aria-selected="true"] {
  background: var(--coral-soft);
}

.suggestions button span {
  font-weight: 680;
}

.suggestions button small {
  color: var(--muted);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px !important;
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  min-width: 62px;
  border: 0;
  border-radius: 12px;
  color: var(--coral);
  background: transparent;
  font-size: .8rem;
  font-weight: 720;
}

.check-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: start;
  gap: 11px;
  color: var(--ink-soft);
  font-size: .87rem;
  cursor: pointer;
}

.check-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-field > span {
  width: 23px;
  height: 23px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--paper-dark);
}

.check-field > span .icon {
  width: 15px;
  opacity: 0;
}

.check-field input:checked + span {
  color: var(--white);
  background: var(--coral);
}

.check-field input:checked + span .icon {
  opacity: 1;
}

.check-field input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.check-field b {
  font-weight: 560;
}

.check-field a {
  color: var(--coral);
  font-weight: 720;
}

/* Public home */
.home-hero,
.home-section,
.home-signal {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.home-hero {
  padding-top: 44px;
  padding-bottom: 56px;
  display: grid;
  gap: 38px;
}

.home-hero__copy {
  max-width: 680px;
  align-self: center;
}

.home-hero h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 14vw, 7.3rem);
  font-weight: 790;
  letter-spacing: -.075em;
  line-height: .9;
}

.home-hero h1 em {
  display: inline;
  color: var(--coral);
  font-style: normal;
  font-weight: inherit;
}

.home-hero__lede {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.58;
}

.home-hero .button-group {
  margin-bottom: 22px;
}

.trust-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-list .icon {
  width: 17px;
  height: 17px;
  color: var(--success);
}

.home-hero__visual {
  position: relative;
  min-width: 0;
  width: min(100%, 620px);
  justify-self: center;
}

.home-hero__visual picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.home-hero__visual picture,
.home-hero__visual img {
  width: 100%;
}

.home-hero__visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% center;
}

.hero-reading-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 17px;
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
}

.hero-reading-card__score {
  color: var(--coral);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.hero-reading-card strong,
.hero-reading-card small {
  display: block;
}

.hero-reading-card strong {
  font-size: .82rem;
}

.hero-reading-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.hero-visual-note {
  position: absolute;
  top: -14px;
  right: -4px;
  max-width: 150px;
  margin: 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.25;
  box-shadow: var(--shadow-float);
}

.hero-visual-note > span {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.home-signal {
  padding-top: 10px;
  padding-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-signal p {
  min-width: 0;
  min-height: 90px;
  margin: 0;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
}

.home-signal p:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.home-signal p:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.home-signal strong {
  font-size: 1.55rem;
  letter-spacing: -.05em;
}

.home-signal span {
  color: var(--muted);
  font-size: .72rem;
}

.home-signal .icon {
  margin-bottom: 4px;
  color: var(--success);
}

.home-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-steps .section-heading {
  margin-bottom: 38px;
}

.steps-grid {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.steps-grid li {
  min-height: 240px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  border-radius: var(--radius-lg);
  background: var(--coral-soft);
}

.step-number {
  width: fit-content;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.steps-grid h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.steps-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.home-reading {
  width: calc(100% - (2 * var(--gutter)));
  max-width: calc(var(--page) - (2 * var(--gutter)));
  margin-top: 18px;
  padding: 38px 24px;
  display: grid;
  gap: 30px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--coral);
}

.home-reading h2,
.home-reading h3 {
  color: var(--white);
}

.home-reading__copy {
  max-width: 590px;
  align-self: center;
}

.home-reading__copy > p:not(.eyebrow) {
  color: var(--white);
}

.home-reading .eyebrow--light {
  color: var(--white);
}

.insight-preview {
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
}

.insight-preview__header {
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.insight-preview__header > div {
  display: flex;
}

.mini-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: .68rem;
  font-weight: 760;
}

.mini-avatar + .mini-avatar {
  margin-left: -8px;
  background: var(--coral);
}

.insight-preview__header p {
  margin: 0;
}

.insight-preview__header small,
.insight-preview__header strong {
  display: block;
}

.insight-preview__header small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.score-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: .68rem;
  font-weight: 760;
}

.insight-preview__bars {
  padding: 19px 0 12px;
  display: grid;
  gap: 13px;
}

.insight-preview__bars > div {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(64px, 1.2fr) 24px;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
}

.insight-preview__bars i {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-dark);
}

.insight-preview__bars b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--coral);
}

.score-86 { width: 86%; }
.score-81 { width: 81%; }
.score-76 { width: 76%; }
.score-72 { width: 72%; }

.insight-preview__summary {
  margin: 8px 0 0;
  padding: 15px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: .82rem;
}

.example-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .68rem;
}

.dimension-grid {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border-radius: 22px;
  background: rgb(255 255 255 / 18%);
}

.dimension-grid article {
  padding: 20px;
  background: var(--coral);
}

.dimension-grid article > span {
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.dimension-grid h3 {
  margin: 8px 0 5px;
}

.dimension-grid p {
  margin: 0;
  color: var(--white);
  font-size: .82rem;
}

.home-values {
  width: calc(100% - (2 * var(--gutter)));
  max-width: calc(var(--page) - (2 * var(--gutter)));
  margin-top: 28px;
  padding: 32px 20px;
  display: grid;
  gap: 44px;
  border-radius: var(--radius-xl);
  background: var(--white);
}

.expert {
  display: grid;
  gap: 30px;
  align-items: center;
}

.expert__image {
  position: relative;
  width: min(100%, 430px);
}

.expert__image picture {
  display: block;
  overflow: hidden;
  border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
  background: var(--paper);
}

.expert__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.expert__caption {
  position: absolute;
  right: -5px;
  bottom: 18px;
  min-width: 205px;
  padding: 12px 15px;
  border-radius: 15px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-float);
}

.expert__caption strong,
.expert__caption small {
  display: block;
}

.expert__caption small {
  margin-top: 2px;
  color: rgb(255 255 255 / 70%);
  font-size: .68rem;
}

.expert__copy {
  max-width: 620px;
}

.expert__copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.expert__copy blockquote {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.25;
}

.trust-panel {
  padding: 24px;
  display: grid;
  gap: 25px;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.trust-panel header > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-panel ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.trust-panel li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.trust-panel li > .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 11px;
  color: var(--coral);
  background: var(--coral-soft);
}

.trust-panel li strong,
.trust-panel li small {
  display: block;
}

.trust-panel li small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.faq {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-list details {
  padding: 0 19px;
  border-radius: 17px;
  background: var(--paper);
}

.faq-list summary {
  position: relative;
  min-height: 64px;
  padding: 14px 36px 14px 0;
  display: flex;
  align-items: center;
  font-size: .92rem;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  color: var(--coral);
  font-size: 1.35rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 36px 20px 0;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.home-close {
  width: calc(100% - (2 * var(--gutter)));
  max-width: calc(var(--page) - (2 * var(--gutter)));
  margin-top: 16px;
  margin-bottom: 88px;
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  border-radius: var(--radius-xl);
  color: rgb(255 255 255 / 80%);
  background: var(--coral);
}

.home-close h2 {
  max-width: 15ch;
  color: var(--white);
}

.home-close p:last-child {
  margin-bottom: 0;
  color: var(--white);
}

.home-close .eyebrow--light {
  color: var(--white);
}

/* Authentication and reading pages */
.auth-page {
  background: var(--paper);
}

.auth-page .page-main {
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(100%, var(--page));
  min-height: calc(100dvh - var(--header-h));
  margin: 0 auto;
  padding: 30px var(--gutter) 56px;
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.auth-context {
  padding: 28px;
  border-radius: var(--radius-lg);
  color: rgb(255 255 255 / 78%);
  background: var(--coral);
}

.auth-context .eyebrow {
  color: var(--white);
}

.auth-context h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  overflow-wrap: break-word;
}

.auth-context > p:not(.eyebrow) {
  color: rgb(255 255 255 / 78%);
}

.auth-progress {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.auth-progress li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  color: rgb(255 255 255 / 64%);
}

.auth-progress li[aria-current="step"] {
  color: var(--white);
}

.auth-progress li > span {
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 760;
}

.auth-progress li[aria-current="step"] > span {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.auth-progress strong {
  font-size: .9rem;
}

.auth-progress small {
  color: inherit;
}

.auth-assurances {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.auth-assurances li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 84%);
  font-size: .88rem;
}

.auth-assurances .icon {
  color: var(--white);
}

.auth-card {
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.auth-back {
  min-height: 44px;
  width: fit-content;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 680;
  text-decoration: none;
}

.auth-back .icon {
  width: 17px;
}

.auth-card h1 {
  margin-bottom: 10px;
}

.auth-intro {
  margin-bottom: 25px;
  color: var(--muted);
}

.auth-consent {
  display: grid;
  gap: 13px;
}

.auth-consent .check-field > span {
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 0 3px 10px rgb(17 17 17 / 16%);
}

.auth-consent .check-field input:checked + span {
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgb(185 43 34 / 24%);
}

.auth-help {
  margin: -8px 0 0;
  text-align: right;
  font-size: .82rem;
}

.auth-help a,
.auth-switch a {
  color: var(--coral);
  font-weight: 720;
}

.auth-switch {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: .87rem;
  text-align: center;
}

.auth-shell--simple {
  max-width: var(--page);
}

.auth-shell--simple .auth-card {
  width: min(100%, 620px);
  justify-self: center;
  align-self: start;
}

.content-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.prose {
  display: grid;
  gap: 48px;
}

.prose h2 {
  font-size: var(--content-section-title-size);
}

.prose section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 9px;
}

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

.definition-list > div {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.definition-list h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.definition-list p {
  margin: 0;
  font-size: .88rem;
}

.prose-callout {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.prose-callout > :last-child {
  margin-bottom: 0;
}

.prose-callout--dark {
  color: rgb(255 255 255 / 80%);
  background: var(--ink);
}

.prose-callout--dark h2 {
  color: var(--white);
}

.prose-callout--dark p {
  color: rgb(255 255 255 / 76%);
}

.legal-copy {
  counter-reset: legal;
}

/* Calculator and chart surfaces */
.form-card {
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 22px;
}

.form-card__header {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}

.form-card__number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: .75rem;
  font-weight: 800;
}

.form-card__header h2 {
  margin: 2px 0 3px;
  font-size: 1.2rem;
}

.form-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: .81rem;
}

.form-card .form-field input:not([type="checkbox"]):not([type="radio"]),
.form-card .form-field select,
.form-card .form-field textarea {
  background-color: var(--white);
}

.form-privacy {
  text-align: center;
}

.natal-note {
  margin-top: 38px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.natal-note p {
  margin: 5px 0 0;
  color: var(--muted);
}

.chart-result {
  padding-top: 64px;
  display: grid;
  gap: 28px;
}

.result-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-header h2,
.result-header > div > p,
.result-header > p {
  margin: 0;
}

.result-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.result-header > div > p {
  max-width: 58ch;
  margin-top: 8px;
  color: var(--muted);
}

.result-header > p {
  color: var(--muted);
}

.result-header > p strong,
.result-header > p span {
  display: block;
}

.result-header > p span {
  font-size: .8rem;
}

.result-meta {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.big-three-grid article {
  min-width: 0;
  padding: 18px 10px;
  border: 1px solid rgb(185 43 34 / 10%);
  border-radius: var(--radius-md);
  background: var(--coral-soft);
  text-align: center;
}

.big-three-grid article > span {
  margin-bottom: 3px;
  color: var(--coral);
  font-size: 1.3rem;
}

.big-three-grid small,
.big-three-grid strong,
.big-three-grid p {
  display: block;
  overflow-wrap: anywhere;
}

.big-three-grid small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 760;
  text-transform: uppercase;
}

.big-three-grid strong {
  margin-top: 4px;
  font-size: .92rem;
}

.big-three-grid p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .7rem;
}

.chart-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.chart-visual {
  display: grid;
  gap: 18px;
}

.result-content {
  display: grid;
  gap: 32px;
  align-items: start;
}

.natal-page .result-content .chart-details__grid {
  grid-template-columns: minmax(0, 1fr);
}

.wheel-view {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--white);
}

.wheel-view.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.wheel-view.dragging {
  cursor: grabbing;
}

.wheel-inner {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

.wheel-gesture-hint {
  position: absolute;
  right: 50%;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 5px 18px rgb(17 17 17 / 9%);
  backdrop-filter: blur(10px);
  font-size: .68rem;
  font-weight: 680;
  pointer-events: none;
  transform: translateX(50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.wheel-view.is-interacted .wheel-gesture-hint {
  opacity: 0;
  transform: translateX(50%) translateY(5px);
}

.wheel-inner svg {
  width: 100%;
  height: 100%;
}

.chart-wheel {
  --chart-canvas: #ffffff;
  --chart-ink: #171717;
  --chart-accent: var(--chart-ink);
  --chart-warm: var(--chart-ink);
  width: 100%;
  height: auto;
  color: var(--chart-ink);
  background: var(--chart-canvas);
}

.chart-wheel__background,
.chart-wheel__aspect-field {
  fill: var(--chart-canvas);
}

.chart-wheel__sign-fill { opacity: 0; }
.chart-wheel__sign-fill--fire,
.chart-wheel__sign-fill--earth,
.chart-wheel__sign-fill--air,
.chart-wheel__sign-fill--water { fill: var(--chart-canvas); }

.chart-wheel__ring,
.chart-wheel__sign-boundary,
.chart-wheel__tick,
.chart-wheel__house-line,
.zodiac-sign,
.chart-wheel__point,
.chart-wheel__point-label {
  color: var(--chart-ink);
}

.chart-wheel__tick--minor { opacity: .5; }
.chart-wheel__house-line,
.chart-wheel__ring--aspect { opacity: .45; }
.chart-wheel__axis,
.chart-wheel__axis-label { color: var(--coral); }
.chart-wheel__house-number,
.chart-wheel__connector,
.chart-wheel__aspect { color: var(--chart-accent); }
.chart-wheel__connector,
.chart-wheel__aspect { opacity: .4; }
.chart-wheel__aspect--trine,
.chart-wheel__aspect--sextile { color: var(--chart-warm); opacity: .7; }
.chart-wheel__aspect--square,
.chart-wheel__aspect--opposition { opacity: .62; }

text.chart-wheel__point-label {
  paint-order: stroke fill;
  stroke: var(--chart-canvas);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.chart-details {
  display: grid;
  gap: 17px;
}

.chart-details__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.chart-details__header h2 {
  margin: 0;
}

.chart-details__header > p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.chart-details__grid,
.chart-details__column {
  display: grid;
  gap: 10px;
}

.chart-details details {
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
}

.chart-details summary {
  min-height: 54px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.chart-details summary::-webkit-details-marker {
  display: none;
}

.chart-details summary > span {
  min-width: 29px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: .7rem;
  text-align: center;
}

.chart-data-list {
  margin: 0 10px 10px;
  padding: 4px;
  border-radius: 13px;
  background: var(--white);
}

.chart-data-row {
  min-height: 43px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(90px, 1.4fr) minmax(70px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  text-align: left;
}

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

.chart-data-row > span:last-child {
  color: var(--muted);
  text-align: left;
}

.chart-data-row abbr {
  margin-left: 4px;
  color: var(--danger);
  text-decoration: none;
}

.result-cta {
  padding: 26px;
  display: grid;
  gap: 21px;
  border-radius: var(--radius-lg);
  color: rgb(255 255 255 / 76%);
  background: var(--coral);
}

.result-cta h2 {
  color: var(--white);
}

.result-cta > p > strong,
.result-cta > p > span {
  display: block;
}

.result-cta > p > strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.05rem;
}

.result-cta p:last-child {
  margin-bottom: 0;
}

/* Member settings and profiles */
.member-page-header {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.member-page-header__copy {
  max-width: 700px;
}

.member-page-header .section-heading--page,
.connections-page-heading .section-heading--page {
  margin-bottom: 0;
}

.member-page-header__copy > p:last-child,
.connections-page-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.member-page-header__actions {
  flex: none;
}

/* Profile editor */
.profile-edit-route .page-wrap--form {
  max-width: 1080px;
}

.profile-edit-route .profile-edit-hero {
  margin-bottom: clamp(30px, 5vw, 48px);
  flex-direction: column;
  align-items: flex-start;
}

.profile-edit-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-form {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.settings-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 8px 28px rgb(17 17 17 / 6%);
}

.settings-section > header {
  padding: clamp(24px, 4vw, 34px) clamp(20px, 5vw, 42px) 18px;
}

.settings-section > header > span {
  margin-bottom: 8px;
  display: block;
  color: var(--title-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.settings-section > header h2 {
  margin: 0 0 7px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -.045em;
}

.settings-section > header p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.settings-section__body {
  padding: 12px clamp(20px, 5vw, 42px) clamp(26px, 5vw, 42px);
  display: grid;
  gap: clamp(24px, 4vw, 34px);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}

.photo-placeholder > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
}

.profile-edit-route .form-field {
  gap: 8px;
}

.profile-edit-route .optional {
  margin-left: 6px;
}

.profile-edit-route .form-field input:not([type="checkbox"]):not([type="radio"]),
.profile-edit-route .form-field select,
.profile-edit-route .form-field textarea {
  min-height: 56px;
  border-radius: 17px;
  background-color: var(--white);
}

.profile-edit-route .two-column-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.profile-fields {
  display: grid;
  gap: clamp(22px, 4vw, 30px);
}

.photo-editor {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.photo-editor__stage {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 10px 30px rgb(17 17 17 / 8%);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease);
}

.photo-editor__stage:hover,
.photo-editor.is-dragging .photo-editor__stage {
  border-color: var(--coral);
  box-shadow: 0 14px 34px rgb(17 17 17 / 11%);
  transform: translateY(-2px);
}

.photo-editor__stage:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.photo-editor__preview {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--paper-dark);
}

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

.photo-editor__stage-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 24px rgb(17 17 17 / 14%);
  backdrop-filter: blur(12px);
  font-size: .8rem;
  font-weight: 760;
}

.photo-editor__stage-action .icon {
  width: 17px;
}

.photo-editor__controls {
  width: min(100%, 250px);
  display: flex;
  justify-content: center;
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 720;
}

.choice-grid {
  display: grid;
  gap: 7px;
}

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

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

.choice-grid label {
  min-width: 0;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  min-height: 50px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted-strong);
  background: var(--white);
  font-size: .82rem;
  font-weight: 680;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.choice-grid input:checked + span {
  border-color: var(--coral);
  color: var(--coral-dark);
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1px var(--coral);
}

.choice-grid input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.birth-datetime-fields .field-hint {
  min-height: 2.5em;
}

.settings-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.settings-disclosure summary {
  min-height: 62px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.settings-disclosure summary strong,
.settings-disclosure summary small {
  display: block;
}

.settings-disclosure summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
}

.settings-disclosure__action {
  color: var(--coral);
  font-size: .76rem;
  font-weight: 760;
}

.settings-disclosure[open] .settings-disclosure__action {
  font-size: 0;
}

.settings-disclosure[open] .settings-disclosure__action::after {
  content: "Close";
  font-size: .76rem;
}

.settings-disclosure__body {
  padding: 4px 16px 18px;
}

.profile-edit-route .privacy-callout {
  border: 1px solid rgb(21 112 82 / 18%);
  background: var(--white);
}

.privacy-callout {
  padding: 15px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
}

.privacy-callout > .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  color: var(--success);
}

.privacy-callout p {
  margin: 0;
}

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

.privacy-callout span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.form-actions--global {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 28px rgb(17 17 17 / 7%);
}

.form-actions--global > p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.form-actions--global > p strong,
.form-actions--global > p span {
  display: block;
}

.form-actions--global > p strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: .88rem;
}

.account-tools {
  margin-top: 34px;
  padding: 22px;
  display: grid;
  gap: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 8px 28px rgb(17 17 17 / 6%);
}

.account-tools h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.account-tools p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.danger-zone {
  padding-top: 19px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.delete-confirm {
  padding: 17px;
  display: grid;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
}

.delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: .8rem;
  font-weight: 680;
}

.profile-page {
  --profile-section-inset: clamp(22px, 4vw, 42px);
  display: grid;
  gap: 30px;
}

.profile-page__identity,
.profile-page__section {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.profile-page__identity {
  --profile-card-spacing: var(--profile-section-inset);
  padding: var(--profile-card-spacing);
  background: var(--white);
}

.profile-page__section {
  padding: var(--profile-section-inset);
  padding-right: var(--profile-page-rail-end, var(--profile-section-inset));
  padding-left: var(--profile-page-rail-start, var(--profile-section-inset));
  background: var(--white);
}

.profile-view__intro,
.connection-profile__intro {
  display: grid;
  gap: 17px;
}

.member-profile-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.profile-page-card {
  --profile-card-inline: 0px;
  --profile-right-optical-inset: clamp(6px, 1.2vw, 14px);
  /* Expanding the shared grid moves the centered Sun/Rising content outward;
     the measured rail then keeps identity facts attached to those same edges. */
  --profile-detail-expansion: clamp(0px, calc(25% - 60px), 170px);
  width: 100%;
  display: grid;
  align-items: start;
  gap: var(--profile-card-spacing, 16px);
  container-type: inline-size;
}

.js .profile-page-card:not(.profile-rails-ready) > .member-profile-card__media,
.js .profile-page-card:not(.profile-rails-ready) > .member-profile-card__copy,
.js .profile-page-card:not(.profile-rails-ready) > .profile-bio,
.js .profile-page-card:not(.profile-rails-ready) > .profile-card-contact {
  visibility: hidden;
}

.profile-page-card > .profile-bio,
.profile-page-card > .profile-card-contact {
  grid-column: 1 / -1;
}

.member-profile-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-dark);
}

.member-profile-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.profile-placeholder,
.connection-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  background: var(--paper-dark);
  text-decoration: none;
}

.profile-placeholder > span,
.connection-placeholder > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: 1.8rem;
  font-weight: 760;
}

.profile-placeholder small,
.connection-placeholder small {
  font-size: .75rem;
}

.member-profile-card__copy {
  min-width: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.profile-data-grid {
  min-width: 0;
}

.profile-data-grid__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 16px;
  padding-right: var(--profile-visible-rail-end, 0px);
  padding-left: var(--profile-visible-rail-start, 0px);
}

.profile-data-grid__identity {
  min-width: 0;
}

.profile-data-grid--self .profile-data-grid__top {
  grid-template-columns: 1fr;
}

.profile-data-grid__name {
  min-width: 0;
  padding: 4px 0 0;
  display: flex;
  align-items: center;
}

.profile-data-grid__name h1,
.profile-data-grid__name h2 {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.9rem, 8vw, 3.35rem);
  letter-spacing: -.065em;
}

.profile-page .profile-data-grid__name h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -.045em;
  text-indent: .04em;
  transform: translateX(-.04em);
}

.profile-card__eyebrow {
  margin-bottom: 8px;
  margin-right: var(--profile-visible-rail-end, 0px);
  margin-left: var(--profile-visible-rail-start, 0px);
}

.profile-card__heading-row {
  margin: 0 var(--profile-visible-rail-end, 0px) 8px var(--profile-visible-rail-start, 0px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-card__heading-row .profile-card__eyebrow {
  margin: 0;
}

.profile-card__edit {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.profile-card__edit:hover {
  color: var(--coral-dark);
  border-color: rgb(216 58 46 / 28%);
  background: var(--coral-soft);
}

.profile-data-grid--long-name .profile-data-grid__name h1,
.profile-data-grid--long-name .profile-data-grid__name h2 {
  font-size: clamp(1.55rem, 6vw, 2.4rem);
}

.profile-data-grid--very-long-name .profile-data-grid__name h1,
.profile-data-grid--very-long-name .profile-data-grid__name h2 {
  font-size: clamp(1.25rem, 5vw, 1.95rem);
}

.compatibility-score {
  --alignment-band-color: var(--alignment-developing);
  width: clamp(92px, 24vw, 132px);
  min-width: 92px;
  height: 100%;
  padding: 4px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 2px 8px;
}

.compatibility-score__value {
  align-self: center;
  color: var(--alignment-band-color);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.06em;
  text-align: right;
}

.compatibility-score__value small {
  font-size: .64em;
}

.compatibility-score__context {
  align-self: start;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: right;
}

.compatibility-score::before {
  content: "Overall alignment";
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.compatibility-score progress {
  width: 100%;
  height: 5px;
  grid-column: 1 / -1;
  margin-top: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  accent-color: var(--alignment-band-color);
  align-self: end;
}

.compatibility-score progress::-webkit-progress-bar { background: var(--line); }
.compatibility-score progress::-webkit-progress-value { background: var(--alignment-band-color); }
.compatibility-score progress::-moz-progress-bar { background: var(--alignment-band-color); }

.profile-data-grid__facts {
  min-width: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-data-grid__facts p {
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: .7rem;
  text-align: left;
}

.profile-data-grid__facts .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.profile-data-grid__demographics > span {
  display: inline-flex;
  gap: 4px;
}

.profile-data-grid__location span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-data-grid__facts .profile-data-grid__location {
  justify-content: flex-start;
  text-align: left;
}

.astro-three {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.astro-placement {
  min-width: 0;
  padding: 15px 6px;
  text-align: center;
}

.astro-placement + .astro-placement {
  border-left: 1px solid var(--line);
}

.astro-placement dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: translateX(var(--profile-optical-shift, 0px));
}

.astro-placement__symbol {
  color: var(--coral);
  font-size: .88rem;
  font-weight: 500;
}

.astro-placement dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: .78rem;
  font-weight: 720;
  transform: translateX(var(--profile-optical-shift, 0px));
}

.profile-bio {
  width: auto;
  max-width: none;
  margin: 19px var(--profile-content-rail-end, 0px) 0 var(--profile-content-rail-start, 0px);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  text-align: left;
  text-wrap: pretty;
}

.profile-card-contact {
  margin: 20px var(--profile-content-rail-end, 0px) 0 var(--profile-content-rail-start, 0px);
  padding: 20px 0 0;
  display: grid;
  gap: 17px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.profile-card-contact h2 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.profile-card-contact header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.profile-conversation-status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: .75rem;
  font-weight: 760;
}

.profile-conversation-status .icon {
  width: 16px;
}

.connection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.connection-actions--connected {
  flex-wrap: nowrap;
}

.connection-actions--connected .button {
  padding-right: 16px;
  padding-left: 16px;
  flex: none;
}

.connection-actions--connected .profile-conversation-status {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.message-request-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.message-request-form small {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.sent-label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: .85rem;
  font-weight: 720;
}

.safety-menu {
  margin-top: 12px;
}

.safety-menu > summary {
  min-height: 44px;
  width: fit-content;
  margin-left: auto;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.safety-menu > summary::-webkit-details-marker {
  display: none;
}

.safety-menu__panel {
  margin-top: 8px;
  padding: 19px;
  display: grid;
  gap: 19px;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
}

.safety-menu__panel form {
  display: grid;
  gap: 12px;
}

.safety-menu__panel p {
  margin: 0;
}

.safety-menu__panel p strong,
.safety-menu__panel p span {
  display: block;
}

.safety-menu__panel p span {
  color: var(--muted);
  font-size: .8rem;
}

.profile-chart-section__wheel {
  margin-bottom: 21px;
}

/* Connections */
.connections-page-heading {
  margin-bottom: 26px;
  display: block;
}

.connections-page-heading .section-heading--page {
  width: 100%;
  max-width: none;
}

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

.connections-title-row .connections-filter-open {
  flex: none;
}

.connections-title-row h1 {
  min-width: 0;
  margin: 0;
}

.connections-meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.connections-meta-row > p {
  min-width: 0;
  margin: 0;
}

.connections-meta-row .connections-filter-open {
  flex: none;
}

.connections-page-heading p:not(.eyebrow) {
  font-size: .86rem;
}

.connections-filter-count {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--white);
  background: var(--coral);
  font-size: .65rem;
}

@media (max-width: 440px) {
  .filter-chip-grid {
    gap: 6px;
  }

  .filter-chip-grid span {
    padding-right: 2px;
    padding-left: 2px;
    font-size: .72rem;
  }

  .connections-title-row {
    gap: 10px;
  }

  .connections-meta-row {
    margin-top: 10px;
    gap: 10px;
  }

  .connections-meta-row .connections-filter-open {
    min-height: 38px;
    padding: 0 11px;
    gap: 6px;
    border-radius: 12px;
    font-size: .76rem;
  }

  .connections-filter-open .icon {
    width: 19px;
    height: 19px;
  }

  .connections-filter-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: .6rem;
  }
}

.connections-filter-backdrop {
  position: fixed;
  z-index: 74;
  inset: 0;
  background: rgb(17 17 17 / 44%);
}

.connections-filter-shell {
  position: fixed;
  z-index: 75;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(88dvh, 700px);
  padding: 0 18px calc(18px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: var(--white);
  box-shadow: var(--shadow-overlay);
  transform: translateY(105%);
  transition: transform 160ms var(--ease);
}

.js .connections-filter-shell:not([data-open]) {
  display: none;
}

.connections-filter-shell[data-open] {
  transform: none;
}

.no-js .connections-filter-shell {
  position: static;
  max-height: none;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: none;
  transform: none;
}

.connections-filter-sheet__header {
  min-height: 68px;
  padding: 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 0;
}

.connections-filter-sheet__header h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.connections-filter-sheet__header p {
  margin: 0 0 2px;
  color: var(--coral);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.connections-filter-sheet__header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
}

.filter-fields {
  padding: 8px 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.saved-filter-toggle {
  grid-column: 1 / -1;
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.saved-filter-toggle:has(input:checked) {
  border-color: transparent;
  background: var(--coral-soft);
}

.saved-filter-toggle__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--white);
}

.saved-filter-toggle__icon .icon {
  width: 19px;
  height: 19px;
}

.saved-filter-toggle:has(input:checked) .saved-filter-toggle__icon .icon {
  fill: currentColor;
}

.saved-filter-toggle strong,
.saved-filter-toggle small {
  display: block;
}

.saved-filter-toggle strong {
  font-size: .9rem;
}

.saved-filter-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.saved-filter-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.saved-filter-toggle__switch {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: #d8d7d2;
  transition: background-color 140ms ease;
}

.saved-filter-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgb(17 17 17 / 18%);
  transition: transform 140ms var(--ease);
}

.saved-filter-toggle input:checked + .saved-filter-toggle__switch {
  background: var(--coral);
}

.saved-filter-toggle input:checked + .saved-filter-toggle__switch::after {
  transform: translateX(15px);
}

.saved-filter-toggle:focus-within {
  outline: 3px solid rgb(216 58 46 / 16%);
  outline-offset: 1px;
}

.filter-control label,
.filter-age-field legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 680;
}

.filter-control select,
.filter-age-field select {
  min-height: 46px;
  border-radius: 13px;
  background-color: var(--paper);
  font-size: .86rem;
}

.filter-age-field > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.filter-age-field {
  grid-column: auto;
}

.filter-age-field legend {
  margin-bottom: 7px;
}

.filter-age-field span {
  color: var(--muted);
  font-size: .75rem;
}

.filter-actions {
  padding: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.filter-actions .button--primary {
  min-width: 132px;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
}

.filter-clear {
  padding: 10px 4px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.filter-clear.is-muted {
  color: var(--muted);
}

@media (min-width: 700px) {
  .connections-filter-shell {
    right: 22px;
    bottom: 22px;
    left: auto;
    width: min(520px, calc(100vw - 44px));
    padding: 0 24px 22px;
    border-radius: 26px;
    transform: translateY(calc(100% + 28px));
  }
}

/* Connections filter controls */
.connections-filter-sheet__header button .icon {
  width: 18px;
  height: 18px;
}

.saved-filter-toggle > span:nth-child(2) {
  font-size: .86rem;
  font-weight: 700;
}

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

.filter-choice-group legend,
.filter-age-field legend {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 720;
}

.filter-chip-grid {
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  border-radius: 13px;
  background: var(--paper);
}

.filter-chip-grid label {
  min-width: 0;
  cursor: pointer;
}

.filter-chip-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.filter-chip-grid span {
  min-height: 38px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.filter-chip-grid input:checked + span {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 5px rgb(17 17 17 / 10%);
}

.filter-chip-grid input:focus-visible + span {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}

.filter-age-field select {
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
  border: 0;
  border-radius: 12px;
  background-color: var(--paper);
  font-size: .8rem;
}

@media (min-width: 560px) {
  .connections-filter-shell {
    right: auto;
    bottom: 18px;
    left: 50%;
    width: min(480px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    padding: 0 22px 20px;
    border-radius: 24px;
    transform: translate(-50%, calc(100% + 24px));
  }

  .connections-filter-shell[data-open] {
    transform: translate(-50%, 0);
  }
}

.connections-grid {
  --connection-card-gap: clamp(18px, 2vw, 22px);
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--connection-card-gap);
  list-style: none;
}

.connection-card {
  --connection-card-padding: clamp(21px, 6cqi, 26px);
  --profile-card-inline: 0px;
  --connection-card-track-gap: clamp(10px, 3cqi, 14px);
  --connection-score-width: clamp(82px, 27cqi, 104px);
  min-width: 0;
  container-type: inline-size;
}

.connection-card article {
  position: relative;
  height: 100%;
}

.saved-profile-form {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  margin: 0;
}

.saved-profile-button {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgb(17 17 17 / 10%);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 6px 18px rgb(17 17 17 / 13%);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms var(--ease), box-shadow 150ms ease;
}

.saved-profile-button:hover {
  color: var(--coral);
  box-shadow: 0 8px 22px rgb(17 17 17 / 17%);
  transform: translateY(-1px);
}

.saved-profile-button .icon {
  width: 22px;
  height: 22px;
}

.saved-profile-button.is-saved {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
}

.saved-profile-button.is-saved .icon {
  fill: currentColor;
}

.saved-confirmation {
  position: fixed;
  z-index: 120;
  right: 50%;
  bottom: calc(var(--mobile-nav-h, 0px) + var(--safe-bottom, 0px) + 14px);
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgb(17 17 17 / 88%);
  box-shadow: 0 6px 18px rgb(17 17 17 / 16%);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
  pointer-events: none;
  opacity: 0;
  transform: translate(50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.saved-confirmation.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (min-width: 901px) {
  .saved-confirmation {
    bottom: calc(var(--safe-bottom, 0px) + 20px);
  }
}

.connection-card__link {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 150ms var(--ease), box-shadow 150ms ease;
}

.connection-card__link:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-3px);
}

.connection-card__media {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 13;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--paper-dark);
}

.connection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 180ms var(--ease);
}

.connection-card__link:hover .connection-card__media img {
  transform: scale(1.018);
}

.connection-card__body {
  min-width: 0;
  padding: var(--connection-card-padding) var(--profile-card-inline);
  flex: 1;
}

.connection-card .connection-placeholder {
  position: absolute;
  inset: 0;
}

.connection-status {
  position: absolute;
  right: 11px;
  bottom: 11px;
  max-width: calc(100% - 22px);
  min-height: 31px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--white);
  background: rgb(17 17 17 / 88%);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 760;
}

.connection-status .icon {
  width: 14px;
}

.connection-status--mutual {
  background: rgb(21 112 82 / 94%);
}

.connection-status--request {
  background: rgb(216 58 46 / 96%);
}

.profile-page-card .member-profile-card__copy {
  width: calc(100% + var(--profile-detail-expansion) + var(--profile-detail-expansion));
  margin-right: calc(0px - var(--profile-detail-expansion));
  margin-left: calc(0px - var(--profile-detail-expansion));
  padding-right: calc(var(--profile-card-inline) + var(--profile-right-optical-inset));
  padding-left: var(--profile-card-inline);
}

/* At the 285px card floor, one rail preserves 253px for data and 161px for a name. */
.connection-card .profile-data-grid--compact {
  height: 100%;
  display: flex;
  flex-direction: column;
  --connection-name-size: clamp(1.4rem, 7cqi, 1.9rem);
}

.connection-card .profile-data-grid--long-name {
  --connection-name-size: clamp(1.2rem, 6cqi, 1.65rem);
}

.connection-card .profile-data-grid--very-long-name {
  --connection-name-size: clamp(1.05rem, 5.2cqi, 1.35rem);
}

.connection-card .profile-data-grid__top {
  grid-template-columns: minmax(0, 1fr) var(--connection-score-width);
  align-items: stretch;
  gap: var(--connection-card-track-gap);
}

.connection-card .profile-data-grid__name {
  padding: clamp(13px, 4cqi, 16px) 0 0;
  align-items: flex-start;
}

.connection-card .profile-data-grid__name h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: var(--connection-name-size);
  letter-spacing: -.05em;
  line-height: 1.06;
}

.connection-card .compatibility-score {
  width: var(--connection-score-width);
  min-width: 0;
  padding: clamp(13px, 4cqi, 16px) 0 4px;
  gap: 2px 6px;
}

.connection-card .compatibility-score::before {
  font-size: clamp(.5rem, 2.6cqi, .58rem);
  line-height: 1.25;
}

.connection-card .compatibility-score__value {
  font-size: clamp(1.55rem, 8cqi, 1.85rem);
  line-height: 1.35;
}

.connection-card .compatibility-score__context {
  font-size: clamp(.5rem, 2.55cqi, .57rem);
}

.connection-card .compatibility-score progress {
  margin-top: 3px;
}

.connection-card .profile-data-grid__facts {
  margin-top: clamp(7px, 2.5cqi, 10px);
}

.connection-card .profile-data-grid__facts p {
  min-height: 32px;
  padding: 4px 0;
  font-size: clamp(.72rem, 3.7cqi, .82rem);
  line-height: 1.35;
}

.connection-card .profile-data-grid__location span {
  overflow-wrap: break-word;
}

.connection-card .astro-three--compact {
  margin-top: auto;
  padding-top: clamp(8px, 3cqi, 12px);
}

.connection-card .astro-three--compact .astro-placement {
  padding: clamp(12px, 4cqi, 16px) clamp(3px, 1.5cqi, 7px);
}

.connection-card .astro-three--compact .astro-placement dt {
  font-size: clamp(.6rem, 3cqi, .68rem);
}

.connection-card .astro-three--compact .astro-placement dd {
  font-size: clamp(.76rem, 3.8cqi, .86rem);
  line-height: 1.3;
}

.pagination {
  margin-top: 30px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.pagination > div {
  display: flex;
  gap: 4px;
}

.pagination a,
.pagination > div > span {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 720;
  text-decoration: none;
}

.pagination > div > span {
  color: var(--white);
  background: var(--coral);
}

.pagination__direction {
  gap: 5px;
}

.pagination__direction:last-child {
  justify-self: end;
}

.pagination__direction .icon {
  width: 16px;
}

.empty-state {
  min-height: 360px;
  padding: 42px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.empty-state > .icon,
.empty-state > span:first-child {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  color: var(--coral);
}

.empty-state p {
  max-width: 480px;
  color: var(--muted);
}

.empty-state--card {
  border-radius: var(--radius-lg);
  background: var(--paper);
}

/* Compatibility report */
.compatibility-summary {
  margin-bottom: 19px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.compatibility-summary h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.compatibility-summary p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.alignment-reference {
  --alignment-band-color: var(--alignment-developing);
  margin-top: 19px;
  padding: 24px;
  display: grid;
  gap: 17px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.alignment-reference > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.alignment-reference h3 {
  margin: 0;
  font-size: 1.35rem;
}

.alignment-reference__score {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  color: var(--alignment-band-color);
}

.alignment-reference__score strong {
  font-size: 2rem;
  letter-spacing: -.06em;
}

.alignment-reference__score > span {
  font-size: .9rem;
  font-weight: 750;
}

.alignment-reference__score small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 750;
  text-align: right;
}

.alignment-reference > progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  accent-color: var(--alignment-band-color);
}

.alignment-reference > progress::-webkit-progress-bar { background: var(--line); }
.alignment-reference > progress::-webkit-progress-value { background: var(--alignment-band-color); }
.alignment-reference > progress::-moz-progress-bar { background: var(--alignment-band-color); }

.alignment-reference__context {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.alignment-reference__benchmarks {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.alignment-reference__benchmarks > div {
  --alignment-band-color: var(--alignment-developing);
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--alignment-band-color);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 16px rgb(17 17 17 / 4%);
}

.alignment-reference__benchmarks dt {
  color: var(--alignment-band-color);
  font-size: 1rem;
  font-weight: 850;
}

.alignment-reference__benchmarks dd {
  margin: 3px 0 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.alignment-reference__benchmarks dd strong {
  color: var(--ink);
  font-size: .74rem;
}

.compatibility-report {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.compatibility-report__header {
  padding: 22px;
}

.compatibility-report__header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.compatibility-report__header > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.compatibility-report__rows {
  padding: 0 12px 12px;
  display: grid;
  gap: 10px;
}

.report-row {
  --alignment-band-color: var(--alignment-developing);
  padding: 19px;
  border-radius: 18px;
  background: var(--white);
}

.report-row__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
}

.report-row__heading h4 {
  margin: 0;
  font-size: .96rem;
}

.report-row__heading strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--alignment-band-color);
  font-size: 1.25rem;
}

.report-row__heading strong small {
  font-size: .58em;
  font-weight: 750;
}

.report-row__rating {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 720;
}

.report-row progress {
  width: 100%;
  height: 7px;
  margin: 12px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  accent-color: var(--alignment-band-color);
}

.report-row progress::-webkit-progress-bar { background: var(--paper-dark); }
.report-row progress::-webkit-progress-value { background: var(--alignment-band-color); }
.report-row progress::-moz-progress-bar { background: var(--alignment-band-color); }

.report-row > p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.compatibility-report__method summary {
  min-height: 66px;
  margin: 0 12px 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.compatibility-report__method summary::-webkit-details-marker {
  display: none;
}

.compatibility-report__method[open] > summary {
  border-bottom-color: transparent;
  border-radius: 16px 16px 0 0;
}

.compatibility-report__method-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--coral);
  background: var(--coral-soft);
}

.compatibility-report__method-icon .icon {
  width: 18px;
}

.compatibility-report__method summary strong,
.compatibility-report__method summary small {
  display: block;
}

.compatibility-report__method summary small {
  color: var(--muted);
  font-size: .72rem;
}

.compatibility-report__method-action {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--coral);
  font-size: .75rem;
  font-weight: 720;
}

.compatibility-report__method-action-close {
  display: none;
}

.compatibility-report__method[open] .compatibility-report__method-action-open {
  display: none;
}

.compatibility-report__method[open] .compatibility-report__method-action-close {
  display: inline;
}

.compatibility-report__method > div {
  margin: -2px 12px 12px;
  padding: 4px 12px 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--white);
}

.compatibility-section > .compatibility-report__method {
  margin-top: 19px;
}

.compatibility-section > .compatibility-report__method > summary {
  margin-right: 0;
  margin-left: 0;
}

.compatibility-section > .compatibility-report__method > div {
  margin-right: 0;
  margin-left: 0;
}

.compatibility-guide-section {
  display: grid;
  gap: 22px;
}

.compatibility-guide-section > .alignment-reference {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.compatibility-guide-section > .compatibility-report__method {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.compatibility-guide-section > .compatibility-report__method > summary {
  margin: 0;
}

.compatibility-guide-section > .compatibility-report__method > div {
  margin: 0;
  padding-top: 12px;
  border-top: 0;
}

.compatibility-report__method section {
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.compatibility-report__method h4 {
  margin-bottom: 6px;
  font-size: .9rem;
}

.compatibility-report__method p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

/* Messaging */
.chat-route {
  overflow: hidden;
}

.chat-route .page-main {
  height: calc(var(--visual-viewport-height) - var(--header-h) - 72px);
  min-height: 0;
  overflow: hidden;
}

.chat-shell {
  width: 100%;
  height: 100%;
  display: grid;
  background: var(--white);
}

.chat-sidebar,
.chat-panel {
  min-width: 0;
  min-height: 0;
}

.chat-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.chat-sidebar-head {
  min-height: 68px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.chat-sidebar-title {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chat-sidebar-title h1 {
  margin: 0;
  line-height: 1.1;
}

.chat-inbox-tabs {
  margin: 0 16px 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.chat-inbox-tabs button {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 720;
}

.chat-inbox-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--coral);
}

.chat-inbox-tabs button span {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--white);
  background: var(--coral);
  font-size: .65rem;
}

.chat-thread-list {
  min-height: 0;
  padding: 6px 12px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-thread {
  position: relative;
  width: 100%;
  min-height: 76px;
  margin: 6px 0;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 14px rgb(17 17 17 / 6%);
  text-align: left;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease);
}

.chat-thread:hover {
  background: var(--paper);
  box-shadow: 0 6px 18px rgb(17 17 17 / 7%);
  transform: translateY(-1px);
}

.chat-thread.active,
.chat-thread.is-active,
.chat-thread[aria-current="true"] {
  color: var(--ink);
  background: var(--coral-soft);
  box-shadow: 0 4px 14px rgb(17 17 17 / 6%);
}

.chat-thread.active .chat-thread-top strong,
.chat-thread.is-active .chat-thread-top strong,
.chat-thread[aria-current="true"] .chat-thread-top strong {
  color: var(--ink);
}

.chat-thread.active .chat-thread-preview,
.chat-thread.active .chat-thread-top time,
.chat-thread.is-active .chat-thread-preview,
.chat-thread.is-active .chat-thread-top time,
.chat-thread[aria-current="true"] .chat-thread-preview,
.chat-thread[aria-current="true"] .chat-thread-top time {
  color: var(--muted);
}

.chat-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--paper);
}

.chat-avatar.large {
  width: 56px;
  height: 56px;
}

span.chat-avatar {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  font-weight: 760;
}

.chat-inbox-tabs button[aria-selected="true"] span {
  color: var(--coral);
  background: var(--white);
}

.chat-thread-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chat-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat-thread-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-top time {
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}

.chat-thread-preview {
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread.has-unread .chat-thread-preview,
.chat-thread.has-unread .chat-thread-top strong {
  color: var(--ink);
  font-weight: 720;
}

.chat-thread.active.has-unread .chat-thread-preview,
.chat-thread.active.has-unread .chat-thread-top strong {
  color: var(--ink);
}

.chat-unread {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--white);
  background: var(--coral);
  font-size: .65rem;
  font-weight: 760;
}

.chat-request-dot {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: var(--coral);
}

.chat-panel {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--white);
}

.chat-thread-open .chat-sidebar {
  display: none;
}

.chat-thread-open .chat-panel {
  display: grid;
}

.chat-panel-head {
  position: relative;
  min-height: 68px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  color: var(--ink);
  background: var(--white);
}

.chat-back,
.chat-menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.chat-back:hover,
.chat-menu-button:hover {
  background: var(--coral-soft);
}

.chat-profile-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.chat-profile-link .chat-avatar {
  width: 40px;
  height: 40px;
  flex: none;
}

.chat-profile-title {
  min-width: 0;
}

.chat-profile-title h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-profile-meta {
  margin: 3px 0 0;
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
}

.chat-profile-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-action-menu {
  position: absolute;
  z-index: 20;
  top: 60px;
  right: 10px;
  width: min(290px, calc(100vw - 20px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-overlay);
}

.chat-action-menu > p {
  margin: 4px 8px 7px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 760;
  text-transform: uppercase;
}

.chat-action-menu button,
.chat-action-menu__link {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: block;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.chat-action-menu button:hover,
.chat-action-menu__link:hover {
  background: var(--paper);
}

.chat-action-menu strong,
.chat-action-menu span {
  display: block;
}

.chat-action-menu strong {
  font-size: .8rem;
}

.chat-action-menu span {
  color: var(--muted);
  font-size: .7rem;
}

.chat-action-menu__danger strong {
  color: var(--danger);
}

.chat-messages {
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
}

.chat-message {
  max-width: min(84%, 620px);
  margin-bottom: 4px;
}

.chat-message.group-start {
  margin-top: 12px;
}

.chat-message.mine {
  margin-left: auto;
}

.chat-bubble {
  padding: 11px 14px;
  border-radius: 6px 17px 17px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message.mine .chat-bubble {
  border-radius: 17px 6px 17px 17px;
  color: var(--ink);
  background: var(--coral-soft);
}

.chat-message.group-middle .chat-bubble {
  border-radius: 8px 17px 17px 8px;
}

.chat-message.mine.group-middle .chat-bubble {
  border-radius: 17px 8px 8px 17px;
}

.chat-message.failed .chat-bubble {
  color: #792031;
  background: var(--danger-soft);
}

.chat-message footer {
  min-height: 17px;
  margin-top: 3px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: .62rem;
}

.chat-message:not(.group-end) footer {
  display: none;
}

.chat-message footer button {
  padding: 0;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: inherit;
  font-weight: 720;
}

.chat-day-divider {
  margin: 17px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .65rem;
}

.chat-load-older {
  min-height: 42px;
  margin: 0 auto 18px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  font-size: .72rem;
  font-weight: 720;
}

.chat-composer {
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px;
  background: var(--white);
}

.chat-composer__field {
  position: relative;
  min-width: 0;
  min-height: 46px;
  padding: 3px 8px 3px 3px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: end;
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.chat-composer textarea {
  min-width: 0;
  width: 100%;
  max-height: 124px;
  padding: 9px 4px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.35;
}

.chat-composer > button {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  align-self: end;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
}

.chat-emoji-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.chat-emoji-picker {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 58px;
  left: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-overlay);
}

.chat-emoji-picker button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 1.2rem;
}

.chat-emoji-picker button:hover {
  background: var(--paper);
}

.chat-composer__meta {
  grid-column: 1 / -1;
  min-height: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .65rem;
}

.chat-composer__meta p {
  margin: 0;
}

.chat-character-count.is-near-limit {
  color: var(--danger);
  font-weight: 720;
}

.chat-empty-panel,
.chat-empty-list,
.chat-empty-thread,
.chat-loading {
  height: 100%;
  min-height: 180px;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

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

.chat-empty-panel p,
.chat-empty-list p,
.chat-empty-thread p {
  max-width: 380px;
  color: var(--muted);
}

.chat-empty-panel h2,
.chat-empty-list h2,
.chat-empty-thread h2 {
  font-size: 1.4rem;
}

.chat-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
}

.chat-loading > span {
  width: 19px;
  height: 19px;
  border: 2px solid var(--paper-dark);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.chat-request-view {
  min-height: 0;
  padding: 26px 16px;
  overflow-y: auto;
  background: var(--paper);
}

.chat-request-context {
  max-width: 620px;
  margin: 0 auto 21px;
}

.chat-request-context > p:last-child {
  color: var(--muted);
}

.chat-request-message {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.chat-request-sender {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-request-sender .chat-avatar {
  width: 42px;
  height: 42px;
}

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

.chat-request-sender-copy strong,
.chat-request-sender-copy time {
  display: block;
}

.chat-request-sender-copy time {
  color: var(--muted);
  font-size: .68rem;
}

.chat-request-message > p {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.chat-request-actions {
  max-width: 620px;
  margin: 17px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-request-privacy {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: .72rem;
}

.chat-request-pending {
  max-width: 620px;
  margin: 17px auto 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  border-radius: var(--radius-sm);
  color: var(--success);
  background: var(--success-soft);
}

.chat-request-pending p {
  margin: 0;
}

.chat-request-pending strong,
.chat-request-pending small {
  display: block;
}

.chat-request-pending small {
  color: var(--muted);
}

/* Moderation and errors */
.moderation-tabs {
  width: fit-content;
  margin-bottom: 22px;
  padding: 4px;
  display: flex;
  gap: 3px;
  border-radius: 999px;
  background: var(--paper);
}

.moderation-tabs a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 720;
  text-decoration: none;
}

.moderation-tabs a[aria-current="page"] {
  color: var(--white);
  background: var(--coral);
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.moderation-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.moderation-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.moderation-card time {
  color: var(--muted);
  font-size: .72rem;
}

.moderation-card dl {
  display: grid;
  gap: 8px;
}

.moderation-card dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.moderation-card dt {
  color: var(--muted);
  font-size: .75rem;
}

.moderation-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
}

.moderation-card form {
  display: grid;
  gap: 12px;
}

.error-state {
  min-height: calc(100dvh - var(--header-h));
  padding: 50px var(--gutter);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.error-state__mark {
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: 1.1rem;
  font-weight: 800;
}

.error-state > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
}

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

@media (max-width: 374px) {
  .button {
    padding-right: 15px;
    padding-left: 15px;
  }

  .compatibility-score__value {
    font-size: 1.48rem;
  }

  .astro-placement {
    padding-right: 3px;
    padding-left: 3px;
  }

  .astro-placement dd {
    font-size: .68rem;
  }

  .insight-preview {
    padding: 16px;
  }

  .insight-preview__header {
    grid-template-columns: auto 1fr;
  }

  .score-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 639px) {
  .natal-page .big-three-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .natal-page .big-three-grid article {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 11px;
    text-align: left;
  }

  .natal-page .big-three-grid article > span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .natal-page .big-three-grid small,
  .natal-page .big-three-grid strong {
    grid-column: 2;
  }

  .natal-page .big-three-grid strong {
    margin-top: 1px;
  }

  .natal-page .big-three-grid p {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }

  :is(.profile-edit-route, .natal-page) .birth-datetime-fields,
  :is(.profile-edit-route, .natal-page) .birth-datetime-fields > .form-field {
    width: 100%;
    min-width: 0;
  }

  :is(.profile-edit-route, .natal-page) .birth-datetime-fields input[type="date"],
  :is(.profile-edit-route, .natal-page) .birth-datetime-fields input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  @supports (-webkit-touch-callout: none) {
    :is(.profile-edit-route, .natal-page) .birth-datetime-fields input[type="date"],
    :is(.profile-edit-route, .natal-page) .birth-datetime-fields input[type="time"] {
      padding-right: 0;
      padding-left: 0;
    }
  }

  .compatibility-summary {
    margin-bottom: 36px;
  }

  .alignment-reference {
    margin-top: 36px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .compatibility-report {
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .compatibility-report__header {
    padding: 0 0 24px;
  }

  .compatibility-report__rows {
    padding: 0;
    gap: 34px;
  }

  .report-row {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .compatibility-report__method summary {
    margin: 22px 0 12px;
    padding: 14px;
  }

  .compatibility-report__method > div {
    margin: -2px 0 12px;
    padding: 4px 14px 14px;
  }

  .compatibility-report__method section {
    padding: 16px 0;
    border-radius: 0;
  }

  .compatibility-section > .compatibility-report__method {
    margin-top: 22px;
  }

  .compatibility-guide-section {
    gap: 24px;
  }

  .compatibility-guide-section > .alignment-reference {
    margin-top: 0;
  }

  .compatibility-guide-section .compatibility-report__method summary {
    min-height: 0;
    margin: 0;
    padding: 16px 14px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
  }

  .compatibility-guide-section .compatibility-report__method-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .compatibility-guide-section .compatibility-report__method-action {
    width: fit-content;
    grid-column: 2;
    margin-top: 2px;
  }

  .compatibility-guide-section .compatibility-report__method > div {
    margin: 0;
    padding: 8px 14px 14px;
  }

  .compatibility-guide-section .compatibility-report__method section {
    padding: 16px;
    border-radius: 14px;
    background: var(--paper);
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .page-wrap {
    padding-top: 52px;
    padding-bottom: 96px;
  }

  .alignment-reference__benchmarks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .compatibility-guide-section .compatibility-report__method > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .compatibility-guide-section .compatibility-report__method section {
    padding: 18px;
    border-radius: 14px;
    background: var(--paper);
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__note {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding-top: 64px;
    padding-bottom: 76px;
  }

  .home-hero__visual {
    justify-self: end;
  }

  .home-hero__visual img {
    aspect-ratio: 5 / 4;
  }

  .hero-reading-card {
    right: 20px;
    bottom: 20px;
    left: auto;
    min-width: 320px;
  }

  .hero-visual-note {
    top: -18px;
    right: -8px;
  }

  .trust-list {
    grid-template-columns: repeat(3, auto);
    gap: 16px;
  }

  .home-signal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-signal p,
  .home-signal p:nth-child(odd),
  .home-signal p:nth-child(-n + 2) {
    border: 0;
  }

  .home-signal p + p {
    border-left: 1px solid var(--line);
  }

  .home-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

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

  .home-reading {
    padding: 54px 44px;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .home-reading .dimension-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-values {
    padding: 48px 40px;
  }

  .expert {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 56px;
  }

  .trust-panel {
    padding: 30px;
  }

  .trust-panel ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-close {
    padding: 46px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-close > div {
    max-width: 720px;
  }

  .auth-card {
    padding: 38px;
  }

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

  .form-card {
    padding: 32px 38px 36px;
  }

  .date-grid {
    grid-template-columns: 1.35fr .8fr 1fr;
  }

  .date-grid > :last-child {
    grid-column: auto;
  }

  .result-header,
  .chart-details__header,
  .wheel-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .result-header > p {
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }

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

  .profile-page .chart-details__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-details__wide {
    grid-column: 1 / -1;
  }

  .result-cta {
    padding: 34px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .profile-edit-route .two-column-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-edit-route .profile-edit-hero {
    flex-direction: row;
    align-items: center;
  }

  .form-actions--global > p {
    width: auto;
    margin-right: auto;
  }

  .account-tools {
    padding: 26px;
  }

  .danger-zone {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .delete-confirm {
    grid-template-columns: 1fr 1fr;
  }

  .delete-actions,
  .field-error {
    grid-column: 1 / -1;
  }

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

}

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
  }

  /* Desktop report and chart cards use their full inner canvas. The measured
     profile rail remains scoped to the overview's bio/contact column. */
  .profile-page__section {
    padding-right: var(--profile-section-inset);
    padding-left: var(--profile-section-inset);
  }

  body.member-shell {
    padding-bottom: 0;
  }

  .site-header__inner {
    justify-content: flex-start;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 1.28rem;
  }

  .nav-toggle,
  .member-header-actions {
    display: none;
  }

  .site-nav,
  .site-nav--public,
  .site-nav--member {
    position: static;
    width: auto;
    min-height: 44px;
    margin-left: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    border: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
  }

  .site-nav a,
  .nav-signout button {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .88rem;
  }

  .site-nav a:hover,
  .nav-signout button:hover,
  .site-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--paper);
  }

  .site-nav--public .nav-cta {
    margin: 0 0 0 3px;
    padding-right: 20px;
    padding-left: 20px;
    color: var(--white);
    background: var(--coral);
  }

  .site-nav--public .nav-cta:hover {
    color: var(--white);
    background: var(--coral-dark);
  }

  .site-nav--member > a {
    flex-direction: row;
    gap: 7px;
    color: var(--ink-soft);
  }

  .site-nav--member > a .icon {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 0;
  }

  .site-nav--member > a:hover,
  .site-nav--member > a[aria-current="page"] {
    color: var(--coral-dark);
    background: var(--coral-soft);
  }

  .site-nav--member > a[aria-current="page"] .icon {
    color: inherit;
    background: transparent;
    box-shadow: none;
  }

  .site-nav--member > a[href$="/profile"][aria-current="page"] {
    color: var(--ink);
  }

  .site-nav--member .nav-signout {
    display: block;
  }

  .nav-signout button {
    border: 0;
    color: var(--muted);
    background: transparent;
  }

  .nav-badge {
    top: -2px;
    left: 29px;
  }

  .page-wrap {
    padding-top: 64px;
    padding-bottom: 112px;
  }

  .home-hero {
    min-height: 690px;
    padding-top: 64px;
    padding-bottom: 88px;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    align-items: center;
    gap: 56px;
  }

  .home-hero__copy {
    align-self: start;
  }

  .home-hero h1 {
    max-width: 9.2ch;
    font-size: clamp(4.8rem, 7.2vw, 7.3rem);
  }

  .home-hero__visual img {
    aspect-ratio: 5 / 6;
  }

  .home-section {
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .home-reading {
    padding: 68px 60px;
    gap: 44px 64px;
  }

  .home-values {
    padding: 64px 56px;
    gap: 64px;
  }

  .expert {
    gap: 80px;
  }

  .trust-panel {
    padding: 36px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .trust-panel .text-link {
    grid-column: 1;
  }

  .auth-shell {
    padding-top: 64px;
    padding-bottom: 64px;
    grid-template-columns: minmax(320px, .84fr) minmax(430px, 1.16fr);
  }

  .auth-context,
  .auth-card {
    padding: 46px;
  }

  .auth-shell--simple {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-shell--simple .auth-card {
    align-self: center;
  }

  .profile-page-card {
    --profile-detail-expansion: calc(var(--profile-section-inset, 42px) / 2);
    position: relative;
    min-height: clamp(438px, 38vw, 650px);
    grid-template-columns: minmax(280px, 32fr) minmax(0, 68fr);
    align-items: start;
  }

  .profile-page-card > .member-profile-card__media {
    position: absolute;
    inset: 0 auto auto 0;
    width: calc(
      var(
        --profile-content-rail-start,
        calc((100% - var(--profile-card-spacing, 16px)) * .32 + var(--profile-card-spacing, 16px))
      ) - var(--profile-card-spacing, 16px)
    );
  }

  .profile-page-card > .member-profile-card__copy {
    grid-column: 2;
  }

  .profile-page-card > .profile-bio {
    margin-top: -10px;
  }

  .profile-page--self .profile-page-card > .profile-bio {
    margin-top: -18px;
  }

  .profile-page-card .compatibility-score {
    height: 140px;
    max-height: 140px;
    align-self: start;
  }

  .member-profile-card__media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .message-request-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .chat-route .page-main {
    height: calc(var(--visual-viewport-height) - var(--header-h));
    padding: 28px var(--gutter);
  }

  .chat-shell {
    width: min(100%, var(--page));
    margin: 0 auto;
    grid-template-columns: minmax(320px, 31%) minmax(0, 69%);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-card);
  }

  .chat-sidebar,
  .chat-thread-open .chat-sidebar {
    display: grid;
    background: var(--white);
  }

  .chat-panel,
  .chat-thread-open .chat-panel {
    display: grid;
  }

  .chat-back {
    display: none;
  }

  .chat-panel-head {
    min-height: 74px;
    padding: 10px 18px 10px 24px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .chat-sidebar-head {
    min-height: 74px;
    padding: 10px 22px;
  }

  .chat-sidebar-title {
    display: flex;
  }

  .chat-inbox-tabs {
    margin: 0 20px 14px;
  }

  .chat-thread-list {
    padding: 0 12px 18px;
  }

  .chat-messages {
    padding: 20px 30px 16px;
  }

  .chat-message {
    max-width: min(70%, 620px);
  }

  .chat-composer {
    padding: 11px 20px 15px;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    background: var(--paper);
  }

  .chat-composer__field {
    background: var(--white);
  }

  .chat-composer > button {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1120px) {
  .connections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  html.member-document:has(body.chat-route) {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--white);
  }

  body.member-shell.chat-route {
    position: fixed;
    top: var(--visual-viewport-offset-top, 0px);
    right: 0;
    left: 0;
    width: 100%;
    height: var(--visual-viewport-height);
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-rows: calc(var(--header-h) + var(--safe-top)) minmax(0, 1fr);
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--white);
  }

  body.chat-route .site-header {
    position: relative;
    height: calc(var(--header-h) + var(--safe-top));
    grid-row: 1;
  }

  body.chat-route .page-main {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    grid-row: 2;
    overflow: hidden;
    background: var(--white);
  }

  body.chat-route .chat-shell {
    min-height: 0;
  }

  body.chat-route.chat-thread-open {
    grid-template-rows: minmax(0, 1fr);
  }

  body.chat-route.chat-thread-open .site-header {
    display: none;
  }

  body.chat-route.chat-thread-open .page-main {
    padding-bottom: 0;
    grid-row: 1;
  }

  body.chat-route.chat-thread-open .site-nav--member,
  body.chat-route.keyboard-open .site-nav--member {
    display: none;
  }

  body.chat-route.keyboard-open .page-main {
    padding-bottom: 0;
  }

  body.chat-route.keyboard-open .chat-composer {
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #393936;
    --line: #777771;
    --line-strong: #4c4c49;
  }

  .button--primary,
  .site-nav--public .nav-cta {
    background: #9f1f19;
  }

  .button--secondary,
  .form-field input:not([type="checkbox"]):not([type="radio"]),
  .form-field select,
  .form-field textarea {
    border: 1px solid var(--line-strong);
  }
}
