@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;
  /* Fluid density system: every value interpolates linearly from a 320px
     canvas to a 1440px canvas, then stops growing. */
  --space-1: clamp(4px, calc(2.86px + .357vw), 8px);
  --space-2: clamp(8px, calc(6.86px + .357vw), 12px);
  --space-3: clamp(12px, calc(10.86px + .357vw), 16px);
  --space-4: clamp(16px, calc(13.71px + .714vw), 24px);
  --space-5: clamp(24px, calc(20.57px + 1.071vw), 36px);
  --space-6: clamp(32px, calc(27.43px + 1.429vw), 48px);
  --space-7: clamp(40px, calc(33.14px + 2.143vw), 64px);
  --space-section: clamp(56px, calc(46.86px + 2.857vw), 88px);
  --card-padding: clamp(20px, calc(13.71px + 1.964vw), 42px);
  --section-gap: clamp(20px, calc(17.14px + .893vw), 30px);
  --text-xs: clamp(.72rem, calc(.699rem + .107vw), .795rem);
  --text-sm: clamp(.82rem, calc(.797rem + .116vw), .9rem);
  --text-body: clamp(.96rem, calc(.949rem + .054vw), 1rem);
  --text-lead: clamp(1rem, calc(.946rem + .268vw), 1.188rem);
  --control-height: clamp(46px, calc(44.86px + .357vw), 50px);
  --control-height-large: clamp(52px, calc(50.86px + .357vw), 56px);
  --radius-sm: clamp(12px, calc(11.43px + .179vw), 14px);
  --radius-md: clamp(17px, calc(16.14px + .268vw), 20px);
  --radius-lg: clamp(22px, calc(20.29px + .536vw), 28px);
  --radius-xl: clamp(28px, calc(25.71px + .714vw), 36px);
  --header-h: clamp(64px, calc(60.57px + 1.071vw), 76px);
  --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: clamp(16px, calc(9.14px + 2.143vw), 40px);
  --page-eyebrow-size: var(--text-xs);
  --page-title-size: clamp(2.25rem, calc(1.893rem + 1.786vw), 3.5rem);
  --content-section-title-size: clamp(1.5rem, calc(1.286rem + 1.071vw), 2.25rem);
  --content-measure: 68ch;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

.js .page-main {
  transition: opacity 120ms ease;
}

.js.app-shell-loading .page-main {
  opacity: .55;
  pointer-events: none;
}

*,
*::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 var(--text-body)/1.56 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.5rem, calc(1.929rem + 2.857vw), 4.5rem);
}

h2 {
  font-size: var(--page-title-size);
}

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: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

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: var(--space-4);
}

.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[aria-current="page"] {
  color: var(--white);
  background: var(--coral);
}

.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--desktop {
  display: none;
}

.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-header-actions .member-account-menu.is-current > summary {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
}

.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: min(100%, 760px);
  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: var(--space-7) var(--gutter) var(--space-section);
}

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

.site-footer {
  padding: var(--space-7) 0 calc(var(--space-6) + 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: var(--space-5);
}

.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: var(--content-measure);
  margin-bottom: var(--space-6);
}

.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: var(--content-measure);
  margin: 0 0 var(--space-6);
}

.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: var(--text-lead);
}

.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: var(--space-2);
}

.button {
  min-height: var(--control-height);
  padding: 0 clamp(18px, calc(16.86px + .357vw), 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-size: var(--text-sm);
  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: var(--control-height-large);
  padding: 0 clamp(22px, calc(20.29px + .536vw), 28px);
  font-size: var(--text-body);
}

.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: var(--space-4);
}

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

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

.field-hint,
.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  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: clamp(50px, calc(48.86px + .357vw), 54px);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background-color: var(--paper);
  font-size: var(--text-body);
  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: var(--space-section);
  padding-bottom: var(--space-section);
}

.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: var(--space-4);
  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: var(--space-6) var(--card-padding);
  display: grid;
  gap: var(--space-5);
  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: var(--space-6) var(--card-padding);
  display: grid;
  gap: var(--space-6);
  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: var(--space-5);
  display: grid;
  gap: var(--space-5);
  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: var(--space-section);
  padding: var(--space-6) var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  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: var(--space-6) var(--gutter) var(--space-section);
  display: grid;
  gap: var(--space-4);
  align-items: stretch;
}

.auth-context {
  padding: var(--card-padding);
  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: var(--card-padding);
  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: var(--card-padding);
}

.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: 20px;
}

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

.chart-details__header h2 {
  margin: 0;
}

.chart-details__body {
  width: 100%;
  display: grid;
  gap: 16px;
}

.chart-detail-tabs {
  width: 100%;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(max-content, 1fr));
  gap: 3px;
  overflow-x: auto;
  border-radius: 15px;
  background: var(--paper);
}

.chart-detail-tabs button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.chart-detail-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgb(17 17 17 / 7%);
}

.chart-detail-panel[hidden] {
  display: none;
}

.chart-position-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  table-layout: fixed;
  font-size: .74rem;
}

.chart-position-table th,
.chart-position-table td {
  padding: 10px 9px;
  text-align: left;
}

.chart-position-table thead th {
  padding-top: 0;
  padding-bottom: 4px;
  color: var(--muted);
  background: var(--paper);
  font-size: .64rem;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.chart-position-table thead th:first-child {
  width: 48%;
  border-radius: 11px 0 0 11px;
}

.chart-position-table thead th:last-child {
  width: 25%;
  border-radius: 0 11px 11px 0;
  text-align: right;
}

.chart-position-table tbody th,
.chart-position-table tbody td {
  background: color-mix(in srgb, var(--paper) 72%, var(--white));
}

.chart-position-table tbody th {
  width: 48%;
  border-radius: 11px 0 0 11px;
  color: var(--ink);
  font-weight: 700;
}

.chart-position-table tbody td:nth-child(2) {
  width: 27%;
}

.chart-position-table tbody th > span {
  width: 22px;
  margin-right: 7px;
  display: inline-block;
  color: var(--coral);
  font-size: .82rem;
  text-align: center;
}

.chart-position-table tbody td {
  color: var(--ink-soft);
  font-weight: 600;
}

.chart-position-table tbody td:last-child {
  width: 25%;
  border-radius: 0 11px 11px 0;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.chart-position-table--continuation {
  margin-top: -5px;
}

.chart-detail-more > summary {
  width: fit-content;
  min-height: 40px;
  margin: 2px auto 0;
  padding: 8px 18px;
  color: var(--coral);
  font-size: .73rem;
  font-weight: 720;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.chart-detail-more > summary::-webkit-details-marker,
.chart-detail-more[open] > summary {
  display: none;
}

.chart-detail-panel__empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: .78rem;
}

.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 {
  margin-bottom: 0;
}

.member-page-header__copy > p:last-child {
  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: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.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;
  touch-action: none;
  user-select: none;
}

.photo-editor__hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.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: 0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.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: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.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: var(--card-padding);
  display: grid;
  gap: var(--section-gap);
}

.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);
  background: var(--white);
}

.profile-view__intro,
.connection-profile__intro {
  display: grid;
  gap: var(--space-4);
}

.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,
.profile-page-card > .profile-card-safety,
.profile-page-card > .profile-primary-action {
  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: block;
  padding-right: var(--profile-visible-rail-end, 0px);
  padding-left: var(--profile-visible-rail-start, 0px);
}

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

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

.profile-data-grid__name {
  min-width: 0;
  width: 100%;
  flex: 1 1 100%;
  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: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  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);
  --score-value-size: var(--page-title-size);
  --score-context-size: var(--text-sm);
  width: clamp(140px, 18vw, 220px);
  min-width: 140px;
  height: auto;
  padding: 4px 0;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-1);
}

.compatibility-score__value {
  align-self: flex-end;
  color: var(--alignment-band-color);
  font-size: var(--score-value-size);
  font-weight: 800;
  letter-spacing: -.06em;
  text-align: right;
  white-space: nowrap;
}

.compatibility-score__value small {
  margin-left: .2em;
  font-size: .42em;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.compatibility-score__context {
  align-self: flex-end;
  color: var(--muted);
  font-size: var(--score-context-size);
  font-weight: 700;
  line-height: 1.28;
  text-align: right;
}

.compatibility-score__context > span {
  display: block;
}

.connection-card__media > .compatibility-score,
.member-profile-card__media > .compatibility-score {
  position: absolute;
  right: clamp(12px, 3.5%, 24px);
  bottom: clamp(12px, 3.5%, 24px);
  z-index: 4;
  width: auto;
  min-width: clamp(82px, 22%, 116px);
  height: auto;
  padding: 12px 14px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 20px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 10px 28px rgb(17 17 17 / 18%);
  backdrop-filter: blur(10px);
}

.connection-card__media > .compatibility-score .compatibility-score__value,
.member-profile-card__media > .compatibility-score .compatibility-score__value {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2rem, 9cqi, 3rem);
  line-height: .9;
  text-align: center;
}

.connection-card__media > .compatibility-score .compatibility-score__value small,
.member-profile-card__media > .compatibility-score .compatibility-score__value small {
  margin: .28em 0 0;
  font-size: .34em;
  line-height: 1;
}

.connection-card__media > .compatibility-score .compatibility-score__context,
.member-profile-card__media > .compatibility-score .compatibility-score__context {
  display: none;
}

.profile-data-grid--long-name {
  --score-value-size: clamp(1.8rem, 5vw, 2.7rem);
}

.profile-data-grid--very-long-name {
  --score-value-size: clamp(1.6rem, 4.5vw, 2.3rem);
}

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

.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-flow: row nowrap;
  align-items: center;
  gap: 7px;
}

.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;
  flex: none;
}

.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 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-data-grid__facts .profile-data-grid__location {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  text-align: left;
}

.profile-data-grid__fact-separator {
  flex: none;
  color: var(--muted);
  font-size: .8rem;
}

.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: var(--space-4) 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: 0;
  display: grid;
  gap: 17px;
  border-radius: 0;
  background: transparent;
  align-self: start;
}

.profile-card-safety {
  margin: var(--space-1) var(--profile-content-rail-end, 0px) 0 var(--profile-content-rail-start, 0px);
  align-self: end;
}

.connection-action-card {
  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));
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.connection-action-card > div {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.connection-action-card > div > h2 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -.025em;
}

.connection-action-card > div > .button,
.connection-action-card > div > form,
.connection-action-card > div > .sent-label {
  flex: none;
}

.connection-action-card .section-kicker {
  margin: 0;
}

.connection-action-card > header {
  margin-bottom: 18px;
}

.connection-action-card > header h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.profile-primary-action {
  min-height: 0;
  margin: var(--space-5) var(--profile-content-rail-end, 0px) var(--space-4) var(--profile-content-rail-start, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

.profile-primary-action .button {
  min-width: min(100%, 220px);
  justify-content: center;
}

.button--status {
  border: 1px solid rgb(21 112 82 / 18%);
  color: var(--success);
  background: var(--success-soft);
  cursor: default;
}

.introduction-dialog {
  width: min(calc(100% - 32px), 560px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: transparent;
}

.confirmation-dialog {
  width: min(calc(100% - 32px), 520px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: transparent;
}

.confirmation-dialog::backdrop { background: rgb(17 17 17 / 48%); backdrop-filter: blur(3px); }
.confirmation-dialog__surface {
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-overlay);
}
.confirmation-dialog__surface--embedded { width: 100%; box-shadow: none; }
.confirmation-dialog__surface h2 { margin: 4px 0 10px; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.confirmation-dialog__surface > p:not(.section-kicker) { margin: 0; color: var(--muted); line-height: 1.5; }
.confirmation-dialog__actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.confirmation-dialog__actions .button { min-width: 120px; justify-content: center; }
@media (max-width: 560px) {
  .confirmation-dialog__actions { flex-direction: column-reverse; }
  .confirmation-dialog__actions .button { width: 100%; }
}

.introduction-dialog::backdrop {
  background: rgb(17 17 17 / 48%);
  backdrop-filter: blur(3px);
}

.introduction-dialog__surface {
  position: relative;
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 70px rgb(17 17 17 / 22%);
}

.introduction-dialog__surface > header {
  margin-bottom: 20px;
}

.introduction-dialog__surface > header h2 {
  margin: 3px 44px 0 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.introduction-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.introduction-dialog .message-request-form {
  grid-template-columns: 1fr;
}

.introduction-dialog .message-request-form > .form-field,
.introduction-dialog .message-request-form > .button {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}

.profile-card-contact__main {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
}

.profile-card-contact__compact {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.profile-card-contact__compact .connection-actions {
  justify-content: flex-start;
}

.profile-card-contact__compact .safety-menu {
  margin: 0;
}

.profile-card-contact__compact .safety-menu > summary {
  padding-top: 0;
}

.profile-card-contact__main > header {
  min-width: 0;
}

.profile-card-contact__main .section-kicker {
  margin: 0 0 4px;
}

.profile-card-contact h2 {
  margin: 0;
  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 {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-card-contact--available .profile-card-contact__main {
  grid-template-columns: 1fr;
}

.profile-card-contact--available .connection-actions,
.profile-card-contact--available .message-request-form {
  width: 100%;
}

.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__trigger {
  min-height: 44px;
  width: fit-content;
  margin-left: auto;
  padding: 9px 0 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 680;
  cursor: pointer;
}

@media (max-width: 620px) {
  .profile-card-contact--available .profile-card-contact__main {
    grid-template-columns: 1fr;
  }

  .profile-card-contact--available .connection-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 420px) {
  .profile-primary-action .button,
  .profile-primary-action form {
    width: 100%;
  }

  .profile-primary-action form .button {
    width: 100%;
  }

  .profile-card-contact__compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .profile-card-contact__compact .safety-menu__trigger {
    margin-left: 0;
    padding-left: 0;
  }
}

.safety-dialog {
  width: min(calc(100% - 28px), 520px);
  max-width: none;
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
}

.safety-dialog::backdrop {
  background: rgb(24 22 21 / 48%);
  backdrop-filter: blur(3px);
}

.safety-dialog__surface {
  position: relative;
  padding: clamp(24px, 5vw, 34px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 55px rgb(17 17 17 / 32%), 0 2px 10px rgb(17 17 17 / 14%);
}

.safety-dialog__surface header > h2 {
  margin: 3px 44px 6px 0;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
}

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

.safety-dialog__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.safety-dialog__choices {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.safety-dialog__group-label {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.safety-dialog__choices form {
  margin: 0;
}

.safety-dialog__choice {
  width: 100%;
  min-height: 76px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.safety-dialog__choice span {
  color: var(--muted);
  font-size: .78rem;
}

.safety-dialog__choice--danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgb(158 27 45 / 12%);
}

.safety-dialog__report-head {
  min-height: 48px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.safety-dialog__report-head > button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.safety-dialog__report-form {
  margin-top: 18px;
  display: grid;
  gap: 15px;
}

.safety-dialog .check-field > span {
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 0 2px 7px rgb(17 17 17 / 18%);
}

.safety-dialog .check-field {
  align-items: center;
}

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

.safety-dialog__report-form .button {
  width: 100%;
  justify-content: center;
}

.profile-chart-section__wheel {
  margin-bottom: 0;
}

/* Connections */
body.connections-page .page-wrap {
  padding-top: 20px;
}

body.connection-profile-route .page-wrap {
  padding-top: 20px;
}

body.profile-route .page-wrap {
  padding-top: 20px;
}

.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: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.connections-meta-row .connections-filter-open {
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 11px;
  font-size: .74rem;
}

.connections-toolbar {
  margin-bottom: 18px;
  display: block;
}

.connections-toolbar-mobile {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, .72fr);
  gap: 3px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.connections-toolbar-desktop {
  display: none;
}

@media (max-width: 959px) {
  .connections-toolbar-mobile {
    display: none;
  }

  body.connections-page .connections-toolbar-desktop {
    position: relative;
    z-index: 0;
    width: calc(100% + var(--gutter) + var(--gutter));
    margin: 0;
    margin-left: calc(0px - var(--gutter));
    padding: 7px var(--gutter) calc(7px + env(safe-area-inset-bottom));
    display: flex;
    grid-row: 2;
    gap: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
  }

  body.connections-page .page-main {
    height: calc(var(--visual-viewport-height) - var(--header-h) - var(--safe-top));
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    background: var(--white);
  }

  html:has(body.connections-page),
  body.connections-page,
  body.connections-page .site-header,
  body.connections-page .page-main,
  body.connections-page .connections-directory,
  body.connections-page .connections-toolbar-desktop {
    background: #fff;
  }

  .connections-toolbar-desktop a,
  .connections-toolbar-desktop button {
    position: relative;
    min-width: 0;
    min-height: 38px;
    padding: 0 11px;
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    color: var(--ink-soft);
    background: transparent;
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
    text-decoration: none;
  }

  .connections-toolbar-desktop a > span:not(.connections-view-count),
  .connections-toolbar-desktop button > span:not(.connections-filter-count) {
    display: none;
  }

  .connections-toolbar-desktop a[aria-current="page"] {
    flex: 1 1 auto;
    color: var(--coral-dark);
  }

  .connections-toolbar-desktop a[aria-current="page"] > span:not(.connections-view-count) {
    display: inline;
  }

  .connections-toolbar-desktop .icon {
    width: 18px;
    height: 18px;
    flex: none;
  }

  .connections-toolbar-desktop a[aria-current="page"] .icon {
    color: var(--coral);
  }

  body.connections-page .connections-toolbar-desktop a,
  body.connections-page .connections-toolbar-desktop button,
  body.connections-page .connections-toolbar-desktop a[aria-current="page"] {
    min-height: 66px;
    padding: 5px 2px;
    flex: 1 1 20%;
    flex-direction: column;
    gap: 4px;
    border-radius: 0;
    color: var(--ink);
    font-size: .65rem;
    font-weight: 520;
  }

  body.connections-page .connections-toolbar-desktop a::after,
  body.connections-page .connections-toolbar-desktop button::after {
    content: attr(data-mobile-label);
    line-height: 1;
  }

  body.connections-page .connections-toolbar-desktop a[aria-current="page"] > span:not(.connections-view-count) {
    display: none;
  }

  body.connections-page .connections-toolbar-desktop a[aria-current="page"] {
    color: var(--coral);
    font-weight: 700;
  }

  body.connections-page .connections-toolbar-desktop .icon {
    width: 25px;
    height: 25px;
  }

  body.connections-page .connections-toolbar-desktop .connections-view-count,
  body.connections-page .connections-toolbar-desktop .connections-filter-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--coral);
    font-size: .55rem;
    font-weight: 780;
    line-height: 1;
  }
}

@media (min-width: 960px) {
  .connections-toolbar-mobile {
    display: none;
  }

  .connections-directory {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    column-gap: 20px;
  }

  .connections-directory > * {
    grid-column: 2;
  }

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

  .connections-toolbar-desktop {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    grid-column: 1;
    grid-row: 1 / span 20;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 4px;
    gap: 3px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
  }

  .connections-toolbar-desktop a,
  .connections-toolbar-desktop button {
    position: relative;
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    border-radius: 13px;
    color: var(--ink-soft);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
  }

  .connections-toolbar-desktop a[aria-current="page"] {
    color: var(--coral-dark);
    background: transparent;
  }

  .connections-toolbar-desktop button {
    border: 0;
    box-shadow: none;
  }

  .connections-toolbar-desktop .icon {
    width: 18px;
    height: 18px;
  }

  .connections-toolbar-desktop a[aria-current="page"] .icon {
    color: var(--coral);
  }
}

@media (min-width: 761px) and (max-width: 959px) {
  body.connections-page .page-main {
    height: auto;
    min-height: calc(100dvh - var(--header-h) - var(--safe-top));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  body.connections-page .connections-toolbar-desktop {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
}

  .connections-view-select,
  .connections-mobile-tool {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    border: 0;
    border-radius: 13px;
    color: var(--ink-soft);
    background: var(--white);
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
  }

  .connections-view-select {
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--coral-dark);
    background: transparent;
    box-shadow: none;
  }

  .connections-view-select:focus-within {
    outline: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .connections-view-select:focus-within {
      box-shadow: 0 0 0 3px var(--focus), var(--shadow-card);
    }
  }

  .connections-view-select select {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    opacity: 0;
    font: inherit;
    font-weight: 760;
    appearance: none;
  }

  .connections-view-select select:focus {
    outline: none;
  }

  .connections-view-select .icon {
    position: static;
    width: 18px;
    height: 18px;
    color: var(--coral);
    pointer-events: none;
    transform: none;
  }

  .connections-view-chevron {
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    color: transparent;
    font-size: 0;
    pointer-events: none;
    transform: rotate(45deg) translateY(-2px);
  }

  .connections-view-count {
    position: static;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--coral);
    font-size: .58rem;
    font-weight: 780;
    line-height: 1;
    pointer-events: none;
    transform: none;
  }

  .connections-mobile-tool {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    border: 0;
    box-shadow: none;
    cursor: pointer;
  }

  .connections-mobile-tool .icon {
    width: 18px;
    height: 18px;
  }

  .connections-mobile-tool .connections-result-count,
  .connections-mobile-tool .connections-filter-count {
    position: absolute;
    top: 2px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: .52rem;
  }

.connections-scope {
  width: 100%;
  margin: 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.connections-scope a,
.connections-scope button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 0 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.connections-scope__tool .icon {
  width: 18px;
  height: 18px;
}

.connections-scope .connections-result-count,
.connections-scope .connections-filter-count {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: var(--white);
  background: var(--coral);
  font-size: .54rem;
}

.connections-scope .connections-result-count--toolbar {
  position: static;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  flex: none;
  font-size: .58rem;
}

.connections-tool-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.connections-scope__saved[aria-current="page"] .icon {
  fill: currentColor;
}

.connections-result-count {
  min-width: 21px;
  height: 21px;
  padding-inline: 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: .65rem;
  line-height: 1;
}

.connections-result-count strong {
  font-size: inherit;
}

@media (max-width: 540px) {
  .connections-scope {
    gap: 2px;
  }
}

.connections-scope a:hover,
.connections-scope button:hover {
  color: var(--ink);
}

.connections-scope a[aria-current="page"] {
  color: var(--white);
  background: var(--coral);
  box-shadow: none;
}

.connections-scope a[aria-current="page"]:hover {
  color: var(--white);
}

.connections-scope a[aria-current="page"] .connections-result-count {
  color: var(--white);
  background: rgb(255 255 255 / 22%);
  opacity: 1;
}

.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 {
    gap: 10px;
  }

  .connections-meta-row .connections-filter-open {
    min-height: 32px;
    padding: 0 9px;
    gap: 6px;
    border-radius: 10px;
    font-size: .72rem;
  }

  .connections-scope {
    width: 100%;
  }

  .connections-scope a,
  .connections-scope button {
    min-width: 0;
    min-height: 58px;
    padding-inline: 3px;
    gap: 3px;
    font-size: clamp(.58rem, 2.7vw, .7rem);
    letter-spacing: -.02em;
  }

  .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: 100;
  inset: 0;
  background: rgb(17 17 17 / 48%);
  backdrop-filter: blur(3px);
}

.connections-filter-shell {
  position: fixed;
  z-index: 101;
  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: 44px;
  height: 44px;
  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 {
  min-height: 44px;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  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 10px;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 760;
}

.filter-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.filter-chip-grid label {
  min-width: 0;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.filter-chip-grid span {
  min-height: 46px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(17 17 17 / 4%);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease);
}

.filter-chip-grid label:hover span {
  color: var(--ink);
  border-color: rgb(216 58 46 / 34%);
  background: var(--coral-soft);
}

.filter-chip-grid label:active span {
  transform: scale(.97);
}

.filter-chip-grid input:checked + span {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 5px 14px rgb(216 58 46 / 22%);
}

.filter-chip-grid input:focus-visible + span {
  outline: 3px solid rgb(216 58 46 / 24%);
  outline-offset: 2px;
}

.filter-age-field select {
  min-height: 48px;
  padding-top: 9px;
  padding-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--white);
  font-size: .82rem;
}

@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);
  }
}

/* Filters are a centered modal at every viewport size. */
.js .connections-filter-shell {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0 clamp(18px, 4vw, 28px) clamp(20px, 4vw, 28px);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgb(17 17 17 / 30%), 0 2px 10px rgb(17 17 17 / 12%);
  opacity: 0;
  transform: translate(-50%, -48%) scale(.98);
  transition: opacity 150ms ease, transform 150ms var(--ease);
}

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

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

.connection-card__link,
.saved-profile-form {
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms var(--ease);
}

.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: 6 / 5;
  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;
  left: 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 {
  display: block;
}

.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: normal;
  word-break: normal;
  hyphens: none;
  font-size: var(--connection-name-size);
  letter-spacing: -.05em;
  line-height: 1.06;
}

.compatibility-score--compact {
  --score-value-size: clamp(1.55rem, 8cqi, 1.85rem);
  --score-context-size: clamp(.5rem, 2.55cqi, .57rem);
  width: var(--connection-score-width, clamp(92px, 24cqi, 120px));
  min-width: 0;
  padding: clamp(13px, 4cqi, 16px) 0 4px;
  gap: 2px;
}

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

.compatibility-score--compact .compatibility-score__value {
  line-height: 1.35;
}

.compatibility-score--compact 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);
}

.connections-page .empty-state {
  min-height: 300px;
  padding-block: 34px;
}

.connections-page .empty-state > .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.connections-page .empty-state h2 {
  max-width: 430px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.08;
}

.connections-page .empty-state p {
  max-width: 410px;
  font-size: .88rem;
}

/* 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--difficult { --alignment-band-color: #4b2d20; }
.report-row--attention { --alignment-band-color: #7a4a2a; }
.report-row--mixed { --alignment-band-color: #a94d12; }
.report-row--strong { --alignment-band-color: #98261f; }
.report-row--excellent { --alignment-band-color: #d83a2e; }

@keyframes score-gold-shimmer {
  0% { background-position: 120% 50%; }
  100% { background-position: -20% 50%; }
}

.is-score-gold :is(.compatibility-score__value, .report-row__heading strong) {
  color: #8c6500;
  background: linear-gradient(105deg, #8c6500 15%, #ffc627 42%, #fff1a8 50%, #ffc627 58%, #8c6500 85%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: score-gold-shimmer 2.8s linear infinite;
}

.report-row.is-score-gold progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8c6500, #ffc627 48%, #fff1a8 58%, #ffc627 70%, #8c6500);
  background-size: 220% 100%;
  animation: score-gold-shimmer 2.8s linear infinite;
}

.report-row.is-score-gold progress::-moz-progress-bar {
  background: #b8860b;
}

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

.compatibility-guide-section > .compatibility-report__method > summary {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

.compatibility-guide-section > .compatibility-report__method[open] > summary {
  border-radius: 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;
}

/* Requests are a deliberate pre-conversation decision, separate from chat. */
.requests-review { max-width: 1240px; }
.requests-review__header { margin-bottom: clamp(28px, 5vw, 48px); }
.requests-review__count { flex: none; margin: 0; padding: 10px 14px; border-radius: 999px; color: var(--muted); background: var(--paper); font-size: .8rem; }
.requests-review__count strong { margin-right: 3px; color: var(--ink); font-size: 1rem; }
.request-review-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.request-review-card { overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-card); }
.request-review-card__media { position: relative; min-height: 360px; display: block; overflow: hidden; color: var(--primary); background: var(--paper-dark); text-decoration: none; }
.request-review-card__media > img { width: 100%; height: 100%; min-height: 360px; display: block; object-fit: cover; object-position: center 35%; transition: transform 180ms var(--ease); }
.request-review-card__media:hover > img { transform: scale(1.012); }
.request-review-card__media .connection-placeholder { position: absolute; inset: 0; }
.request-review-card__content { min-width: 0; padding: clamp(24px, 5vw, 38px); display: flex; flex-direction: column; }
.request-review-card__identity { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.request-review-card__identity .profile-data-grid__name h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.request-review-card__note { margin-top: 24px; }
.request-review-card__note > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.request-review-card__note .section-kicker { margin-bottom: 10px; }
.request-review-card__note time { flex: none; color: var(--muted); font-size: .7rem; }
.request-review-card__note blockquote { margin: 0; padding: 18px 20px; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.55; }
.request-review-card__actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.request-review-card__actions form { margin: 0; }
.request-review-card__actions .button { min-height: 48px; }
.request-review-card__pass { min-width: 82px; color: var(--ink-soft); }
.request-review-card__pass:hover { color: var(--ink); }
.request-review-card__privacy { margin: 13px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.requests-review__empty { max-width: 720px; margin: 24px auto 0; }

@media (min-width: 800px) {
  .request-review-card { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: stretch; }
  .request-review-card__media, .request-review-card__media > img { min-height: 560px; }
}

@media (max-width: 460px) {
  .request-review-card { border-radius: 22px; }
  .request-review-card__media, .request-review-card__media > img { min-height: 320px; }
  .request-review-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-review-card__actions form .button { width: 100%; }
  .request-review-card__actions .button--secondary { justify-content: center; }
  .request-review-card__profile { grid-column: 1 / -1; }
}

.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 {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 8px;
}

.chat-thread-top strong {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-top time {
  min-width: max-content;
  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--inbox {
  gap: 10px;
}

.chat-empty-panel--inbox .chat-empty-panel__mark {
  width: 38px;
  height: 38px;
  margin: 0 0 2px;
}

.chat-empty-panel--inbox .chat-empty-panel__mark .icon {
  width: 18px;
  height: 18px;
}

.chat-empty-panel--inbox .chat-empty-panel__prompt {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 720;
}

.chat-empty-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 680;
  text-decoration: none;
}

.chat-empty-panel__link:hover {
  color: var(--coral);
}

.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: clamp(18px, 3vw, 34px);
  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 {
  width: fit-content;
  max-width: min(82%, 520px);
  margin: 0;
  padding: 13px 16px;
  border-radius: 7px 18px 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.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: 0;
  font-size: .92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-request-actions {
  max-width: 520px;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-request-actions .button {
  min-height: 44px;
  padding: 0 18px;
}

.chat-request-gate {
  width: 100%;
  padding: 12px max(12px, calc((100% - 540px) / 2)) calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: var(--white);
  box-shadow: 0 -12px 30px rgba(22, 20, 18, .055);
}

.chat-request-gate[hidden] {
  display: none;
}

.chat-messages--request {
  position: relative;
}

.chat-request-gate .button {
  width: 100%;
  min-height: 52px;
  padding-inline: 16px;
}

.chat-request-reply-composer[hidden] {
  display: none;
}

.chat-request-reply-field {
  grid-template-columns: 1fr;
  padding-left: 10px;
}

.chat-request-reply-composer .chat-composer__meta button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .68rem;
  font-weight: 720;
}

.chat-request-reply-composer .chat-composer__meta {
  padding-right: 4px;
  justify-content: flex-end;
}

.chat-request-waiting {
  min-height: 72px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--success);
  background: var(--white);
  box-shadow: 0 -12px 30px rgba(22, 20, 18, .055);
  font-size: .76rem;
  font-weight: 720;
}

.chat-request-reply {
  max-width: 520px;
  margin: 14px 0 0;
}

.chat-request-reply label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

.chat-request-reply textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
}

.chat-request-reply > div {
  margin-top: 10px;
  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: 520px;
  margin: 14px 0 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;
}

/* Private member administration */
.admin-console-body { background: #f7f7f5; }
.admin-console { max-width: 1280px; padding-top: 24px; padding-bottom: 56px; }
.admin-cockpit { margin-bottom: 28px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 24px rgb(17 17 17 / 6%); }
.admin-cockpit__brand { padding: 6px 10px; display: grid; gap: 1px; color: var(--ink); text-decoration: none; }
.admin-cockpit__brand span { color: var(--coral); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.admin-cockpit__brand strong { font-size: .92rem; }
.admin-cockpit nav { display: flex; align-items: center; gap: 4px; }
.admin-cockpit nav a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 11px; color: var(--muted); font-size: .76rem; font-weight: 750; text-decoration: none; }
.admin-cockpit nav a:hover { color: var(--ink); background: var(--paper); }
.admin-cockpit nav a[aria-current="page"] { color: var(--coral-dark); background: var(--coral-soft); }
.moderation-card dd a { color: var(--coral-dark); font-weight: 700; text-decoration: none; }
.moderation-card dd a:hover { text-decoration: underline; }
.admin-console__header { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-console__header h1 { margin: 3px 0 4px; font-family: var(--font-sans); font-size: 2rem; line-height: 1.1; letter-spacing: -.025em; }
.admin-console__header p:last-child, .admin-muted { margin: 0; color: var(--muted); }
.admin-console__header--detail { align-items: center; }
.admin-back { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; }
.admin-stats { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.admin-stats > div { padding: 14px 16px; display: flex; align-items: baseline; gap: 8px; background: var(--white); }
.admin-stats strong { font-family: var(--font-sans); font-size: 1.25rem; line-height: 1; }
.admin-stats span { color: var(--muted); font-size: .74rem; font-weight: 700; }
.admin-stats--compact { max-width: 620px; }
.admin-search { margin-bottom: 16px; }
.admin-search > label { display: block; margin-bottom: 7px; font-size: .76rem; font-weight: 750; }
.admin-search__controls { display: grid; grid-template-columns: minmax(220px, 460px) max-content max-content; align-items: stretch; gap: 8px; }
.admin-search input[type="search"] { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 13px; appearance: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; font-size: .85rem; }
.admin-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.admin-search input[type="search"]:focus { border-color: var(--coral); outline: 3px solid var(--coral-soft); outline-offset: 0; }
.admin-search__controls .button { width: auto; min-width: 84px; height: 44px; margin: 0; white-space: nowrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.admin-table th { padding: 13px 16px; color: var(--muted); background: #faf9f6; font-size: .68rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.admin-table td { min-width: 120px; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td:first-child { min-width: 220px; }
.admin-table td strong, .admin-table td span { display: block; }
.admin-table td > span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.admin-table td strong a { color: inherit; text-decoration: none; }
.admin-user-row { cursor: pointer; transition: background-color 120ms ease; }
.admin-user-row:hover { background: #faf9f6; }
.admin-user-row:focus { outline: 3px solid var(--coral-soft); outline-offset: -3px; }
.admin-empty { padding: 50px !important; color: var(--muted); text-align: center; }
.status-pill { width: fit-content; margin: 2px 0; padding: 5px 9px; border-radius: 999px; color: #675c55 !important; background: #eeeae5; font-size: .65rem !important; font-weight: 780; }
.status-pill--active { color: #16653b !important; background: #e2f4e9; }
.status-pill--disabled { color: #9a392f !important; background: #f9e5e1; }
.admin-pagination { padding: 18px 4px; display: flex; justify-content: center; gap: 20px; color: var(--muted); font-size: .78rem; }
.admin-pagination a { color: var(--ink); font-weight: 760; }
.admin-photo, .admin-editor, .admin-actions, .admin-password, .admin-audit, .admin-danger-zone { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-photo, .admin-editor > section, .admin-actions, .admin-password, .admin-audit { padding: 20px; }
.admin-photo__form { display: flex; align-items: end; gap: 16px; }
.admin-photo .photo-editor__stage { width: 144px; border-radius: 10px; box-shadow: none; }
.admin-photo__controls { padding-bottom: 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-editor > section + section { border-top: 1px solid var(--line); }
.admin-section-heading { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-section-heading h2 { margin: 3px 0 0; font-family: var(--font-sans); font-size: 1.15rem; }
.admin-section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: .75rem; text-align: right; }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-field-grid--three { grid-template-columns: repeat(3, 1fr); }
.admin-editor .admin-field-grid + .form-field { margin-top: 18px; }
.admin-field-grid input[type="date"], .admin-field-grid input[type="time"] { min-width: 0; max-width: 100%; display: block; }
.admin-editor__save { padding: 14px 20px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); background: #fafafa; }
.admin-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-action-grid form, .admin-protected-control { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-action-grid form p, .admin-protected-control p { min-height: 36px; margin: 6px 0 16px; color: var(--muted); font-size: .76rem; }
.admin-password form { max-width: 720px; }
.admin-password form > .button { margin-top: 14px; }
.admin-audit ol { margin: 0; padding: 0; list-style: none; }
.admin-audit li { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.admin-audit li div { display: grid; gap: 3px; }
.admin-audit li span, .admin-audit time { color: var(--muted); font-size: .7rem; }
.admin-danger-zone { overflow: hidden; border-color: #edcbc6; }
.admin-danger-zone > div { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff8f7; }
.admin-danger-zone h2 { margin: 0 0 4px; font-family: var(--font-sans); font-size: 1rem; }
.admin-danger-zone p { margin: 0; color: var(--muted); font-size: .75rem; }
.admin-danger-zone form { flex: none; }

@media (max-width: 760px) {
  .admin-cockpit { align-items: stretch; flex-direction: column; }
  .admin-cockpit nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-cockpit nav a { padding: 0 8px; justify-content: center; text-align: center; }
  .connections-toolbar-mobile {
    margin-bottom: 20px;
  }

  .connections-directory.has-mobile-card-browser {
    height: 100%;
    padding-top: 20px;
    padding-bottom: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 14px;
  }

  .connections-directory.has-mobile-card-browser .connections-grid {
    position: relative;
    z-index: 1;
    height: 100%;
    grid-row: 1;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 100%;
    gap: 32px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 24px rgb(17 17 17 / 8%);
    scroll-snap-type: y mandatory;
    scroll-padding-block: 0;
    scrollbar-width: none;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .connections-directory.has-mobile-card-browser .connections-grid::-webkit-scrollbar {
    display: none;
  }

  .connections-directory.has-mobile-card-browser .connection-card {
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .connections-directory.has-mobile-card-browser .connection-card__media {
    height: clamp(270px, 58%, 470px);
    aspect-ratio: auto;
  }

  .connections-directory.has-mobile-card-browser .connection-card__body {
    min-height: 0;
    overflow: hidden;
  }

  .connections-directory.has-mobile-card-browser .connection-card__link:hover {
    box-shadow: none;
    transform: none;
  }

  .connections-directory.has-mobile-card-browser .connection-card__link {
    background: var(--white);
    box-shadow: none;
  }

  .connections-directory.has-mobile-card-browser .pagination {
    display: none;
  }

  .admin-console { padding-top: 26px; }
  .admin-console__header, .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-section-heading > p { text-align: left; }
  .admin-field-grid, .admin-field-grid--three, .admin-action-grid { grid-template-columns: 1fr; }
  .admin-field-grid input[type="date"], .admin-field-grid input[type="time"] { appearance: none; }
  .admin-search__controls { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-search__controls .button--quiet { grid-column: 1 / -1; width: fit-content; }
  .admin-stats > div { padding: 16px; }
  .admin-audit li { flex-direction: column; gap: 5px; }
  .admin-danger-zone > div { align-items: stretch; flex-direction: column; }
  .admin-photo__form { align-items: stretch; flex-direction: column; }
}

.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: var(--space-3) 0;
    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: var(--space-3) 0 0;
  }

  .compatibility-guide-section .compatibility-report__method section {
    padding: var(--space-3) 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (min-width: 640px) {
  .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: var(--space-section);
    padding-bottom: var(--space-section);
  }

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

  .home-reading {
    padding: var(--space-6) var(--card-padding);
    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: var(--space-6) var(--card-padding);
  }

  .expert {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 56px;
  }

  .trust-panel {
    padding: var(--space-5);
  }

  .trust-panel ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-close {
    padding: var(--space-6) var(--card-padding);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-close > div {
    max-width: 720px;
  }

  .auth-card {
    padding: var(--card-padding);
  }

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

  .form-card {
    padding: var(--card-padding);
  }

  .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__body {
    max-width: 980px;
  }

  .chart-position-table {
    font-size: .78rem;
  }

  .chart-position-table th,
  .chart-position-table td {
    padding: 11px 14px;
  }

  .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) {
  /* 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;
  }

  .member-account-menu--desktop {
    display: block;
  }

  .site-nav--member > .member-account-menu--desktop > summary {
    width: auto;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    color: var(--ink-soft);
    background: transparent;
    font-size: .88rem;
    font-weight: 680;
  }

  .site-nav--member > .member-account-menu--desktop > summary .icon {
    width: 18px;
    height: 18px;
  }

  .site-nav--member > .member-account-menu--desktop.is-current > summary,
  .site-nav--member > .member-account-menu--desktop[open] > summary {
    color: var(--white);
    background: var(--coral);
  }

  .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"] {
    color: var(--white);
    background: var(--coral);
  }

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

  .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: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .home-reading {
    padding: var(--space-6) var(--card-padding);
    gap: 44px 64px;
  }

  .home-values {
    padding: var(--space-6) var(--card-padding);
    gap: 64px;
  }

  .expert {
    gap: 80px;
  }

  .trust-panel {
    padding: var(--space-5);
    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: var(--card-padding);
  }

  .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;
    margin-right: max(
      var(--profile-right-optical-inset),
      calc(var(--profile-content-rail-end, 0px) - clamp(56px, 5vw, 88px))
    );
  }

  .profile-page--self .profile-page-card > .profile-bio {
    margin-top: -18px;
  }

  .profile-page-card .compatibility-score {
    height: auto;
    max-height: none;
    align-self: start;
  }

  .member-profile-card__media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .message-request-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 20px;
  }

  .message-request-form > .form-field {
    grid-column: 1 / -1;
  }

  .message-request-form > .button {
    grid-column: 2;
    width: min(100%, 280px);
    min-width: 260px;
    justify-content: center;
  }

  .profile-card-contact > .safety-menu {
    margin-top: 0;
  }

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

.member-dashboard { display: grid; gap: 64px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.dashboard-heading h1 { max-width: 820px; margin: 8px 0; font-size: var(--page-title-size); line-height: 1; letter-spacing: -.05em; }
.dashboard-heading > div > p:last-child { max-width: 660px; color: var(--muted); font-size: 1.05rem; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dashboard-section-heading h2 { margin: 2px 0 3px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.dashboard-section-heading h2 span { display: inline-grid; min-width: 30px; height: 30px; margin-left: 5px; place-items: center; vertical-align: 4px; border-radius: 50%; color: var(--primary); background: var(--soft-coral); font-size: .82rem; letter-spacing: 0; }
.dashboard-section-heading p { margin: 0; color: var(--muted); }
.dashboard-section-heading > a { display: inline-flex; flex: none; gap: 7px; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.dashboard-section-heading > a .icon { width: 18px; height: 18px; }
.dashboard-person-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-sent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-sent-list > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; min-width: 0; padding: 13px 15px; border: 0; border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: var(--shadow-card); text-decoration: none; transition: background 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease); }
.dashboard-sent-list > a:hover { background: #fff9f7; box-shadow: var(--shadow-float); transform: translateY(-1px); }
.dashboard-sent-list__photo { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border-radius: 50%; color: var(--primary); background: var(--soft-coral); font-weight: 750; }
.dashboard-sent-list__photo img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-sent-list strong, .dashboard-sent-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-sent-list small { margin-top: 3px; color: var(--muted); }
.dashboard-sent-list .icon { width: 18px; height: 18px; }
.dashboard-inline-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; padding: 20px 22px; border: 0; border-radius: 18px; color: var(--muted); background: var(--white); box-shadow: var(--shadow-card); }
.dashboard-inline-empty p { margin: 0; }
.dashboard-inline-empty a { flex: none; color: var(--primary); font-weight: 700; }
.connections-directory-description { max-width: 680px; margin: 8px 0 0; color: var(--muted); }

@media (max-width: 959px) {
  .member-dashboard { gap: 48px; }
  .dashboard-person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-person-grid .connection-card:nth-child(n + 3) { display: none; }
}

@media (max-width: 639px) {
  .member-dashboard { gap: 40px; padding-bottom: 112px; }
  .dashboard-heading { align-items: start; }
  .dashboard-section-heading { align-items: start; }
  .dashboard-section-heading > a { padding-top: 5px; font-size: .82rem; }
  .dashboard-person-grid { display: grid; grid-auto-columns: minmax(82%, 1fr); grid-template-columns: none; grid-auto-flow: column; gap: 16px; margin: -6px calc(var(--gutter) * -1) -18px; padding: 6px var(--gutter) 18px; overflow-x: auto; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .dashboard-person-grid .connection-card { scroll-snap-align: start; }
  .dashboard-person-grid .connection-card__link { box-shadow: 0 4px 12px rgb(17 17 17 / 8%); }
  .dashboard-person-grid .connection-card__link:hover { box-shadow: 0 4px 12px rgb(17 17 17 / 8%); transform: none; }
  .dashboard-person-grid .connection-card:nth-child(n + 3) { display: block; }
  .dashboard-sent-list { grid-template-columns: 1fr; }
  .dashboard-inline-empty { display: grid; }
}

@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);
  }
}
