:root {
  --ink: #172018;
  --muted: #5f675d;
  --line: #d8ded2;
  --paper: #f7f8f4;
  --white: #ffffff;
  --leaf: #2f6f4e;
  --mint: #dcefe4;
  --coral: #e76650;
  --gold: #f4c95d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.site-main {
  flex: 1 0 auto;
}

.site-mobile-nav {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(231, 102, 80, 0.32);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0;
  border-bottom: 1px solid #e7ecf4;
  background: #ffffff;
}

.site-nav {
  width: min(1120px, 100%);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #24314c;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0;
  }

.brand::before {
    content: "";
    width: 29px;
    height: 29px;
    display: inline-block;
    border-radius: 7px;
    background: center / cover no-repeat url("/images/brand-house.svg");
    box-shadow: 0 4px 10px rgba(38, 94, 232, 0.18);
    flex: 0 0 29px;
  }

.brand {
    word-spacing: -0.08em;
  }

.brand span {
    margin-left: -0.06em;
    color: #4f7eff;
  }

.nav-menu {
  position: relative;
}

.nav-menu-button {
  min-width: 62px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(28, 47, 84, 0.06);
  cursor: pointer;
}

.nav-menu-button:hover,
.nav-menu-button[aria-expanded="true"] {
  background: #f7f9fc;
}

.nav-menu-button-photo {
  width: auto;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
}

.nav-menu-glyph,
.nav-menu-caret {
  color: #8694a9;
  font-size: 1rem;
  line-height: 1;
}

.nav-menu-avatar {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.nav-menu-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-menu-unread-dot {
  position: absolute;
  top: -1px;
  right: 18px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #f23b4b;
}

.nav-menu-avatar-fallback {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  background: #7f8ca1;
}

.nav-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 7px;
  display: grid;
  gap: 2px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(23, 35, 62, 0.14);
  color: #4c5a70;
  font-size: 0.92rem;
}

.nav-links[hidden] {
  display: none;
}

.nav-links a,
.nav-logout button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: #4c5a70;
  text-align: left;
  cursor: pointer;
}

.nav-links a:hover,
.nav-logout button:hover {
  background: #f3f6fb;
  color: #1f2940;
}

.nav-links a.is-active,
.nav-logout button.is-active {
  background: #eef4ff;
  color: #2458d3;
}

.nav-link-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

.nav-link-badge {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 999px;
  background: #f23b4b;
  box-shadow: 0 0 0 2px #ffffff;
}

.nav-logout {
  margin: 0;
}

.home-shell {
  min-height: calc(100vh - 40px);
  background: #eef4ff;
}

.home-surface {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px 110px;
}

.home-hero {
  position: relative;
  min-height: 520px;
  padding: 34px 0 24px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.home-hero-image,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-image {
  background:
    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80")
    center/cover;
  transform: scale(1.02);
}

.home-hero-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.44) 40%, rgba(255, 255, 255, 0.08) 100%);
}

.home-hero-copy,
.home-search-card {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 420px;
  margin-top: 0;
}

.home-hero-copy h1 {
  max-width: 360px;
  color: #1d2638;
  font-size: clamp(3rem, 4vw, 4.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

.home-hero-copy p {
  max-width: 320px;
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #445166;
  font-size: 1.08rem;
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(24, 37, 61, 0.08);
}

.home-search-card {
  max-width: 760px;
  margin-top: 28px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(53, 72, 105, 0.16);
}

.home-search-select {
  min-height: 58px;
  padding: 8px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  background: #ffffff;
  color: #23314b;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-search-select span {
  color: #7f8ca1;
}

.home-search-select select {
  width: 100%;
  border: 0;
  padding: 0;
  color: #23314b;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
}

.home-search-select select:focus {
  outline: none;
}

.home-search-label {
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  background: #ffffff;
}

.home-search-icon {
  color: #92a1b8;
  font-size: 1.12rem;
}

.home-search-label input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #23314b;
  font-size: 1rem;
  background: transparent;
}

.home-search-label input:focus {
  outline: none;
}

.home-search-button {
  min-width: 154px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #3f78ff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.home-search-button-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.home-search-button-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  position: absolute;
  right: -5px;
  bottom: -1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(42deg);
  transform-origin: center;
}

.home-search-button:hover {
  background: #2f68f0;
}

.home-mapbox-results {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: -2px;
}

.home-section {
  margin-top: 30px;
}

.home-section-header,
.home-how-header {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-section-header h2,
.home-how-header h2 {
  color: #1f2940;
  font-size: 1.5rem;
}

.home-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-search-pill {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ebeff6;
  border-radius: 999px;
  background: #ffffff;
  color: #25314d;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(48, 78, 126, 0.08);
}

.home-people-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-person-card {
  min-width: 0;
}

.home-person-link {
  min-height: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(44, 67, 110, 0.09);
}

.home-person-photo-wrap {
  position: relative;
}

.home-person-photo {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: block;
  object-fit: cover;
  background: #e9eef8;
}

.home-person-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 4px;
}

.home-person-body strong {
  color: #202c43;
  font-size: 1rem;
}

.home-person-role,
.home-person-location {
  margin: 0;
  color: #8a95aa;
  font-size: 0.86rem;
}

.home-person-location {
  font-weight: 700;
}

.home-person-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-person-meta span {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f2f5fb;
  color: #61718a;
  font-size: 0.77rem;
  font-weight: 700;
}

.home-how {
  text-align: center;
}

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-how-grid article {
  padding: 10px 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.home-how-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #d8e4ff;
  border-radius: 999px;
  color: #5a83ff;
  font-size: 1.65rem;
  background: #f7faff;
}

.home-how-grid strong {
  color: #1f2940;
  font-size: 1.05rem;
}

.home-how-grid p {
  max-width: 170px;
  margin: 0;
  color: #8b96aa;
  font-size: 0.92rem;
}

.home-trust-panel {
  margin-top: 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(48, 78, 126, 0.08);
}

.home-trust-panel article {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-trust-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #f2f6ff;
  color: #5a83ff;
}

.home-trust-panel strong {
  display: block;
  color: #1f2940;
  font-size: 0.96rem;
}

.home-trust-panel p {
  margin: 2px 0 0;
  color: #8793a8;
  font-size: 0.85rem;
}

.home-states {
  padding-bottom: 10px;
}

.home-state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-state-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  background: #ffffff;
  color: #26314d;
  font-weight: 700;
}

.hero {
  width: min(1120px, calc(100% - 24px));
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  padding: 24px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: start;
  gap: 28px;
}

.hero-copy {
  max-width: 760px;
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: 3.25rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.location-directory-home {
  padding-top: 10px;
}

.directory-link-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.directory-link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #0f1d33;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.directory-link:hover {
  border-color: #1769f5;
  color: #1769f5;
}

.directory-link strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.location-page {
  padding-top: 28px;
}

.location-hero {
  max-width: 780px;
  margin-bottom: 16px;
}

.location-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.location-city-links {
  margin-top: 28px;
}

.location-directory-section {
  margin-top: 28px;
}

.search-panel {
  width: min(100%, 760px);
  margin-top: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 0.75fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.search-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcf8;
}

.search-panel button {
  min-height: 44px;
  align-self: end;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  background: #1769f5;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.search-panel button:hover {
  background: #0f56ce;
}

.search-intent {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border: 0;
}

.search-intent legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-intent label {
  width: auto;
  min-height: 36px;
  padding: 6px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
}

.search-intent input {
  width: 16px;
  min-height: 16px;
  accent-color: #1769f5;
}

.search-panel .search-mapbox-results {
  grid-column: 1 / -1;
  width: 100%;
}

.hero-image {
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 32, 24, 0.06), rgba(23, 32, 24, 0.3)),
    url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1100&q=80") center/cover;
  box-shadow: none;
}

.trust-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--leaf);
  font-size: 2rem;
  line-height: 1;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.feature-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  color: var(--leaf);
  font-weight: 800;
}

.text-link:hover {
  color: var(--coral);
}

.notice {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.member-card {
  min-height: 310px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 32, 24, 0.06);
  overflow: hidden;
}

.member-card-link {
  height: 100%;
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.member-card-link:hover h3 {
  color: var(--leaf);
}

.member-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mint);
}

.member-card-body {
  display: grid;
  gap: 16px;
}

.member-card h3 {
  margin: 0;
}

.member-location,
.member-summary {
  margin: 0;
  color: var(--muted);
}

.member-summary {
  min-height: 72px;
}

.member-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
}

.member-meta div {
  min-width: 0;
  padding: 12px;
  border-radius: 6px;
  background: #fbfcf8;
}

.member-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--mint);
  color: var(--leaf);
  font-weight: 800;
}

.steps p,
.feature-band p,
.feature-list {
  color: var(--muted);
}

.feature-band {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature-list li {
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
}

.site-footer {
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer-promo {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: center;
}

.site-footer a,
.site-footer button {
  color: #1769f5;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer-copy {
  color: #6f7d92;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer-logout {
  margin: 0;
}

.site-footer-logout button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-shell {
  max-width: 760px;
}

.legal-shell h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.legal-shell h2 {
  margin: 30px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.legal-shell p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.signup-page {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.signup-intro {
  max-width: 520px;
}

.signup-intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.02;
}

.login-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.login-shell {
  width: min(460px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.login-intro h1 {
  margin: 0;
  font-size: 2.8rem;
}

.login-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
}

.login-intro {
  text-align: center;
}

.login-card {
  gap: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.login-form.login-card input[type="email"],
.login-form.login-card input[type="password"] {
  min-height: 48px;
  border-radius: 6px;
  font-size: 1rem;
}

.login-form.login-card button[type="submit"] {
  background: #1877f2;
}

.login-form.login-card button[type="submit"]:hover {
  background: #0f67da;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #7a8699;
  font-size: 0.9rem;
}

.login-links a {
  color: #1877f2;
  font-weight: 700;
}

.forgot-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.forgot-button {
  justify-content: center;
  width: 100%;
}

.photo-upload-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 70px;
}

.photo-upload-card {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid #d7dee8;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 32, 24, 0.12);
}

.photo-upload-body {
  padding: 28px 24px 22px;
}

.photo-upload-title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.photo-upload-subtitle {
  margin: 10px 0 24px;
  text-align: center;
  color: var(--muted);
}

.photo-upload-alert {
  width: min(700px, calc(100% - 32px));
  margin: 0 auto 14px;
}

.vm-upload-tips {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #d9e4f2;
  background: #f7fafc;
}

.vm-upload-tips-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.vm-upload-tips-icon {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1f5fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.vm-upload-tips-copy {
  flex: 1;
}

.vm-upload-tips-heading {
  margin-bottom: 6px;
  font-weight: 700;
}

.vm-upload-tips-copy ul {
  margin: 0;
  padding-left: 18px;
  color: #415162;
}

.photo-upload-form {
  margin-bottom: 18px;
}

.photo-upload-choose,
.photo-upload-submit {
  text-align: center;
}

.photo-upload-submit {
  margin-top: 14px;
}

.photo-upload-submit-button {
  min-width: 144px;
}

.photo-upload-error {
  display: none;
  margin-top: 10px;
  color: #b42318;
  font-size: 0.94rem;
}

.vm-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.vm-progress-shell {
  margin: 18px 0;
}

.vm-progress-shell[hidden] {
  display: none;
}

.vm-progress {
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.vm-progress-bar {
  width: 0%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: #1769f5;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: width 160ms ease;
}

.vm-progress-bar.is-error {
  background: #c7352c;
}

.vm-progress-text {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.photo-upload-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #e3e8f0;
}

.photo-grid-note {
  text-align: center;
  color: var(--muted);
}

.photo-grid-note p {
  margin: 0 0 14px;
}

.vm-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.vm-photo-cell {
  min-width: 0;
}

.vm-photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: #eef1ed;
}

.vm-photo-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: grab;
}

.vm-main-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  background: #12843b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.vm-photo-delete-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.vm-photo-delete {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 28, 37, 0.85);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.photo-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.photo-upload-footer-form {
  margin: 0;
}

.prefs-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.prefs-intro {
  max-width: 720px;
}

.prefs-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
}

.prefs-intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.upload-tips {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--ink);
  font-size: 0.92rem;
}

.upload-tips strong {
  display: block;
  margin-bottom: 6px;
}

.upload-tips ul {
  margin: 0;
  padding-left: 24px;
}

.upload-dropzone {
  padding: 8px 0 22px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.upload-dropzone label {
  display: inline-block;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 18px;
  background: #1769f5;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.upload-button.is-disabled {
  opacity: 0.72;
  cursor: wait;
}

.upload-dropzone button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.upload-dropzone button {
  min-height: 38px;
  background: var(--leaf);
}

.secondary-button {
  min-width: 150px;
  background: var(--ink);
}

.button-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row .secondary-button {
  margin-top: 0;
}

.secondary-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--leaf);
  font-weight: 800;
  cursor: pointer;
}

.secondary-link:hover {
  color: var(--coral);
}

.photo-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 15, 20, 0.88);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.sort-note {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
}

.photo-actions {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.photo-actions .secondary-button {
  margin-top: 0;
}

.signup-intro h1 {
  font-size: 3.3rem;
}

.signup-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.signup-form,
.login-form,
.prefs-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(23, 32, 24, 0.08);
}

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

.prefs-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.dashboard-hero {
  max-width: 720px;
  margin-bottom: 28px;
}

.dashboard-hero h1 {
  max-width: 14ch;
  font-size: 3.3rem;
}

.dashboard-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dashboard-card {
  min-height: 210px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 32, 24, 0.06);
}

.dashboard-card span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-card strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-card:hover {
  border-color: var(--leaf);
}

.dashboard-card-featured {
  border-color: rgba(47, 111, 78, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #eef7f1 100%);
}

.dashboard-card-profile {
  grid-column: 1 / -1;
  gap: 14px;
}

.dashboard-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-action-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  background: #ffffff;
  color: #23314b;
  font-weight: 800;
}

.dashboard-action-button:hover {
  border-color: #7ca4ff;
  color: #1f4fd1;
}

.dashboard-action-button-primary {
  border-color: #4274f4;
  background: #4274f4;
  color: #ffffff;
}

.dashboard-action-button-primary:hover {
  border-color: #2f63e8;
  background: #2f63e8;
  color: #ffffff;
}

.account-settings-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
  display: grid;
  gap: 28px;
}

.account-settings-hero {
  max-width: 760px;
}

.account-settings-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
}

.account-settings-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.account-settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.account-settings-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 32, 24, 0.06);
}

.account-settings-card-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.account-settings-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-settings-form {
  display: grid;
  gap: 18px;
}

.account-settings-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-settings-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.account-settings-form input[type="email"],
.account-settings-form input[type="text"] {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #ffffff;
}

.account-settings-form button[type="submit"] {
  justify-self: start;
}

.account-status-panel {
  display: grid;
  gap: 14px;
}

.account-status-panel p {
  margin: 0;
  color: var(--muted);
}

.account-status-badge {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.account-status-badge.is-active {
  background: #e8f5ec;
  color: #2f6f4e;
}

.account-status-badge.is-inactive {
  background: #f7e7e7;
  color: #9c3b3b;
}

.messages-page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.messages-sidebar,
.messages-thread-panel {
  border: 1px solid #dde3ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(7, 19, 34, 0.06);
}

.messages-sidebar {
  overflow: hidden;
}

.messages-sidebar-head,
.messages-thread-head,
.messages-compose {
  padding: 18px;
}

.messages-sidebar-head h1,
.messages-thread-member h2 {
  margin: 0;
  color: #071322;
}

.message-conversation-list {
  display: grid;
  gap: 1px;
  background: #eef2f7;
}

.message-conversation-card {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #ffffff;
}

.message-conversation-card:hover,
.message-conversation-card.is-active {
  background: #f7fbff;
}

.message-conversation-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.message-conversation-body strong,
.message-bubble strong {
  color: #071322;
}

.message-conversation-body span {
  color: #5b6878;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-avatar-shell {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
}

.message-avatar,
.message-avatar-fallback {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.message-avatar {
  object-fit: cover;
  background: #ecf0f5;
}

.message-avatar-fallback {
  color: #ffffff;
  font-weight: 800;
  background: #1769f5;
}

.message-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #f23b4b;
}

.messages-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5ebf2;
}

.messages-thread-member {
  display: flex;
  align-items: center;
  gap: 12px;
}

.messages-thread-member p {
  margin: 4px 0 0;
  color: #5b6878;
}

.messages-thread {
  min-height: 380px;
  max-height: 620px;
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  background: #fbfcfd;
}

.message-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.message-bubble-row.is-own {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(620px, 82%);
  padding: 12px 14px 10px;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  background: #ffffff;
}

.message-bubble-row.is-own .message-bubble {
  border-color: rgba(23, 105, 245, 0.18);
  background: #f3f8ff;
}

.message-bubble p {
  margin: 6px 0 8px;
  color: #1d2a39;
  white-space: pre-wrap;
}

.message-bubble time {
  color: #66758a;
  font-size: 0.8rem;
}

.messages-compose {
  display: grid;
  gap: 12px;
  border-top: 1px solid #e5ebf2;
}

.messages-compose label {
  display: grid;
  gap: 8px;
}

.messages-compose textarea {
  min-height: 110px;
  resize: vertical;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  padding: 12px 14px;
}

.messages-compose button {
  width: fit-content;
  min-width: 120px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #1769f5;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.messages-empty-state,
.messages-empty-thread {
  padding: 32px 18px;
  color: #5b6878;
}

.profile-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.profile-shell {
  padding: 26px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 32, 24, 0.12);
}

.profile-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-titlebar h1 {
  max-width: none;
  font-size: 2.45rem;
  line-height: 1.05;
}

.profile-titlebar p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-quick-facts {
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.profile-quick-facts div {
  min-width: 132px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
}

.profile-quick-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-quick-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-main-photo,
.profile-thumbs img,
.profile-photo-placeholder {
  width: 100%;
  border-radius: 8px;
  background: var(--mint);
}

.profile-main-photo {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}

.profile-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.profile-thumb-button {
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.profile-thumb-button.is-active {
  border-color: #1769f5;
}

.profile-thumb-button img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-photo-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.profile-message-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 20px;
  background: #1769f5;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.profile-message-button:hover {
  background: #0f58d6;
}

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

.profile-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.profile-about,
.profile-panel-wide {
  grid-column: 1 / -1;
}

.profile-panel h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.profile-about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.profile-facts div {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid #eef0ea;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.vm-profile-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 70px;
}

.vm-profile-shell {
  color: #071322;
}

.vm-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(220px, 0.76fr);
  gap: 6px;
  align-items: stretch;
}

.vm-gallery-single {
  grid-template-columns: 1fr;
}

.vm-main-photo-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f5f9;
}

.vm-main-photo-frame.is-openable {
  cursor: pointer;
}

.vm-main-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.vm-main-photo.is-legacy-photo {
  object-fit: contain;
  object-position: center top;
  background: #f4f6fa;
}

.vm-main-photo.is-portrait-photo {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #f4f6fa;
}

.vm-gallery-single .vm-main-photo-frame {
  min-height: 420px;
  max-height: 640px;
  aspect-ratio: 4 / 3;
}

.vm-photo-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #edf1f2;
  color: #687381;
  font-weight: 800;
}

.vm-thumbs {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  min-width: 0;
}

.vm-thumb-button {
  display: block;
  border: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ecef;
  cursor: pointer;
}

.vm-thumb-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.vm-thumb-filler {
  display: none;
}

.vm-show-photos {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: #071322;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(7, 19, 34, 0.18);
  cursor: pointer;
}

.vm-back-button {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 1;
}

.vm-photo-nav,
.vm-photo-count {
  z-index: 2;
}

.vm-photo-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 19, 34, 0.78);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transform: translateY(-50%);
}

.vm-photo-nav-prev {
  left: 14px;
}

.vm-photo-nav-next {
  right: 14px;
}

.vm-photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(0, 9, 28, 0.82);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.vm-modal-open {
  overflow: hidden;
}

.vm-photo-modal[hidden] {
  display: none;
}

.vm-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
}

.vm-photo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 34, 0.84);
}

.vm-photo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-height: none;
  margin: 16px auto;
  border-radius: 12px;
  padding: 58px 18px 18px;
  overflow: auto;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  overscroll-behavior: contain;
}

.vm-photo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: #071322;
  font-weight: 800;
  cursor: pointer;
}

.vm-photo-modal-stack {
  display: grid;
  gap: 14px;
}

.vm-modal-photo-frame {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ecef;
}

.vm-modal-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  object-position: center;
}

.vm-modal-photo-frame img.is-legacy-photo {
  object-fit: contain;
  object-position: center top;
  background: #f4f6fa;
}

.vm-modal-photo-frame img.is-portrait-photo {
  width: auto;
  max-width: 100%;
  height: min(72vh, 980px);
  max-height: min(72vh, 980px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  background: #f4f6fa;
}

.vm-title-block {
  max-width: 760px;
  padding: 22px 0 12px;
}

.vm-listing-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}

.vm-kicker {
  margin: 0;
  color: #075df0;
  font-weight: 800;
}

.vm-price-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-price-inline span,
.vm-price-band span {
  color: #546272;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vm-price-inline strong,
.vm-price-band strong {
  color: #071322;
  font-size: 1.55rem;
  line-height: 1;
}

.vm-title-block h1 {
  max-width: none;
  margin: 10px 0 0;
  font-size: 2rem;
  line-height: 1.12;
}

.vm-identity-line {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #1b2634;
  font-weight: 800;
}

.vm-identity-line span {
  border: 1px solid #d9dee8;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
}

.vm-meta-line {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #1b2634;
  font-size: 0.9rem;
}

.vm-profession-line {
  margin-top: 10px;
  color: #3f4b5b;
  font-size: 0.98rem;
  font-weight: 700;
}

.vm-location-link {
  color: #1b2634;
  font-weight: 800;
  text-decoration: none;
}

.vm-location-link:hover,
.vm-location-link:focus-visible {
  color: #075df0;
  text-decoration: underline;
}

.vm-meta-line span:not(:last-child)::after {
  content: none;
}

.vm-meta-line span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: #8b94a0;
}

.vm-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-price-band {
  width: fit-content;
  min-width: 210px;
  border: 1px solid #d7dfd9;
  border-radius: 999px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  background: #f7fbf4;
  box-shadow: 0 10px 24px rgba(7, 19, 34, 0.08);
}

.vm-price-band-inline {
  margin: 0;
}

.vm-price-band {
  width: fit-content;
  min-width: 230px;
  margin-top: 16px;
  border: 1px solid #d7dfd9;
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  background: #f7fbf4;
  box-shadow: 0 10px 24px rgba(7, 19, 34, 0.08);
}

.vm-price-band span {
  color: #546272;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vm-price-band strong {
  color: #071322;
  font-size: 1.75rem;
  line-height: 1;
}

.vm-primary-button,
.vm-secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 800;
}

.vm-primary-button {
  background: #1769f5;
  color: #ffffff;
}

.vm-secondary-button {
  border: 1px solid #cfd7e5;
  background: #ffffff;
  color: #075df0;
}

.vm-content {
  max-width: 980px;
}

.vm-section {
  margin-top: 18px;
}

.vm-section h2,
.vm-details summary {
  color: #071322;
  font-size: 1.28rem;
  font-weight: 800;
}

.vm-section-note {
  max-width: 680px;
  margin: 6px 0 0;
  color: #4b5a6b;
  line-height: 1.55;
}

.vm-about p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #1c2b3d;
  line-height: 1.75;
}

.vm-about-occupation {
  color: #071322 !important;
}

.vm-chip-list {
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vm-chip-list span {
  border: 1px solid #d9dee8;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #263446;
  font-size: 0.86rem;
}

.vm-check-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vm-check-list > span {
  min-height: 42px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fbfdf9;
  color: #071322;
  font-weight: 800;
}

.vm-check-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #dff2e6;
}

.vm-check-mark::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #137b3a;
  border-bottom: 2px solid #137b3a;
  transform: rotate(-45deg);
}

.vm-fact-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vm-fact-cards div {
  min-height: 76px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: #ffffff;
}

.vm-fact-cards span {
  color: #647184;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vm-fact-cards strong {
  color: #071322;
  font-size: 0.96rem;
}

.vm-about-me-interests {
  margin-top: 18px;
}

.vm-about-me-interests h3 {
  margin: 0;
  color: #071322;
  font-size: 1rem;
}

.vm-chip-list-roomy {
  padding: 14px 18px 18px;
}

.vm-allowed-list {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 80px;
}

.vm-allowed-list div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.vm-allowed-list dt {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e0f3e8;
  color: #158343;
  font-size: 0.75rem;
  font-weight: 800;
}

.vm-allowed-list dd {
  margin: 0;
  color: #071322;
}

.vm-details {
  margin-top: 12px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #ffffff;
}

.vm-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}

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

.vm-details summary::after {
  content: "⌄";
  color: #4b5a6b;
  font-size: 1.15rem;
}

.vm-fact-grid {
  margin: 0;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vm-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid #4b5a6b;
  border-bottom: 1px solid #4b5a6b;
  transform: rotate(45deg);
}

.vm-fact-grid div {
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
}

.vm-fact-grid dt {
  color: #647184;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vm-fact-grid dd {
  margin: 3px 0 0;
  color: #071322;
  font-weight: 700;
}

.signup-form label,
.login-form label,
.prefs-form label,
.signup-form fieldset {
  min-width: 0;
}

.signup-birthdate {
  display: grid;
  gap: 8px;
}

.signup-birthdate-label {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

.signup-birthdate-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr;
  gap: 12px;
}

.signup-form label,
.login-form label,
.prefs-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="date"],
.signup-form select,
.login-form input[type="email"],
.login-form input[type="password"],
.prefs-form input[type="text"],
.prefs-form select,
.prefs-form textarea,
.location-picker input {
  width: 100%;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 500;
  background: #ffffff;
}

.signup-form input::placeholder,
.login-form input::placeholder,
.prefs-form input::placeholder,
.prefs-form textarea::placeholder,
.location-picker input::placeholder {
  color: #9aa5b5;
  font-weight: 500;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="date"],
.signup-form select,
.login-form input[type="email"],
.login-form input[type="password"],
.prefs-form input[type="text"],
.prefs-form select,
.location-picker input {
  min-height: 48px;
}

.prefs-form textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.prefs-card {
  display: grid;
  gap: 18px;
  padding: 22px 22px 24px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 32, 56, 0.06);
}

.prefs-card-header {
  display: grid;
  gap: 6px;
  padding-bottom: 4px;
}

.prefs-card-eyebrow {
  margin: 0;
  color: #5f6f85;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prefs-card-header h2 {
  margin: 0;
  color: #071322;
  font-size: 1.4rem;
  line-height: 1.15;
}

.prefs-card-copy {
  margin: 0;
  color: #5f6f85;
  line-height: 1.55;
}

.prefs-next-button {
  justify-self: start;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 18px;
  background: #ffffff;
  color: #1769f5;
  font-weight: 800;
}

.prefs-reveal-stack {
  display: grid;
  gap: 18px;
}

.prefs-reveal-stack[hidden] {
  display: none !important;
}

.prefs-subsection {
  display: grid;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid #ebf0f6;
}

.prefs-subsection h3 {
  margin: 0;
  color: #071322;
  font-size: 1rem;
  font-weight: 800;
}

.prefs-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prefs-check {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 10px 14px;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e293b !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.prefs-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

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

.prefs-interest-check {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 58px;
}

.prefs-grid {
  display: grid;
  gap: 14px;
}

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

.prefs-span-full {
  grid-column: 1 / -1;
}

.form-section {
  padding: 18px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.form-section h2 {
  font-size: 1.2rem;
}

.signup-form fieldset {
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signup-form legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.radio-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.radio-option input {
  width: 18px;
  height: 18px;
}

.field-help {
  color: #68768a;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.prefs-required {
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-error {
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.mapbox-results {
  display: grid;
  gap: 8px;
}

.mapbox-result {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcf8;
  color: #111111;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.search-panel button.mapbox-result,
.results-search-panel button.mapbox-result,
.signup-form button.mapbox-result {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
}

.mapbox-result:hover,
.mapbox-result:focus,
.mapbox-result:active {
  border-color: #111111;
  outline: none;
  background: #ffffff;
  color: #111111;
}

.search-panel button.mapbox-result:hover,
.search-panel button.mapbox-result:focus,
.search-panel button.mapbox-result:active,
.results-search-panel button.mapbox-result:hover,
.results-search-panel button.mapbox-result:focus,
.results-search-panel button.mapbox-result:active,
.signup-form button.mapbox-result:hover,
.signup-form button.mapbox-result:focus,
.signup-form button.mapbox-result:active {
  background: #ffffff;
  color: #111111;
}

.mapbox-empty {
  margin: 0;
  color: var(--muted);
}

.signup-form button[type="submit"],
.login-form button[type="submit"],
.prefs-form button[type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.signup-form button[type="submit"]:hover,
.login-form button[type="submit"]:hover,
.prefs-form button[type="submit"]:hover {
  background: #24573d;
}

.prefs-form button[type="submit"] {
  background: #1769f5;
}

.prefs-form button[type="submit"]:hover {
  background: #0f57d6;
}

.success {
  border-color: var(--mint);
  color: var(--leaf);
}

.validation-summary ul {
  margin: 0;
  padding-left: 20px;
}

.search-results-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 80px;
}

.search-results-hero {
  max-width: 760px;
  margin-bottom: 22px;
}

.search-results-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
}

.search-results-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.results-search-panel {
  margin-bottom: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(23, 32, 24, 0.05);
}

.results-search-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.results-search-panel input,
.results-search-panel select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
}

.results-search-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #1769f5;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.results-search-panel .search-mapbox-results {
  grid-column: 1 / -1;
}

.search-results-summary {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-results-summary strong {
  color: var(--ink);
}

.search-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-result-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 32, 24, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.search-result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(23, 32, 24, 0.12);
}

.search-result-card-link {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.search-result-photo {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #eef1ea;
  color: var(--muted);
  font-weight: 800;
}

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

.search-result-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px 13px 14px;
}

.search-result-body h2 {
  margin: 0;
  max-width: none;
  font-size: 1.16rem;
  line-height: 1.15;
  font-weight: 900;
}

.search-result-status {
  margin: 0;
  color: #1769f5;
  font-size: 0.86rem;
  font-weight: 800;
}

.search-result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-result-rent {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
}

.search-result-blurbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 3px;
}

.search-result-blurbs span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e6df;
  border-radius: 999px;
  padding: 0 8px;
  background: #f7fbf8;
  color: #24573d;
  font-size: 0.76rem;
  font-weight: 800;
}

.pagination {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.pagination a:hover {
  border-color: #1769f5;
  color: #1769f5;
}

.pagination .current {
  border-color: #1769f5;
  background: #1769f5;
  color: #ffffff;
}

.search-result-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-result-facts span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: #fbfcf8;
  font-size: 0.84rem;
}

.search-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .home-surface {
    padding: 0 0 96px;
  }

  .home-hero {
    min-height: 420px;
    padding: 18px 20px 20px;
    border-radius: 0 0 18px 18px;
  }

  .home-brand-mark {
    font-size: 1.25rem;
  }

  .home-hero-copy h1 {
    max-width: 320px;
    font-size: 3.65rem;
  }

  .home-hero-copy p {
    max-width: 280px;
    font-size: 1rem;
  }

  .home-search-card {
    margin: 22px 20px 0;
  }

  .home-people-rail,
  .home-trust-panel,
  .home-state-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-section,
  .home-trust-panel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .home-how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .home-how-grid article {
    padding: 8px 6px;
    justify-items: center;
    text-align: center;
  }

  .home-how {
    text-align: center;
  }

  .site-nav {
      min-height: 40px;
      align-items: center;
      flex-direction: row;
      padding: 0 12px;
      gap: 12px;
    }

  .hero {
    min-height: auto;
    width: min(100% - 24px, 560px);
    padding: 28px 0 28px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .directory-link-grid,
  .state-directory-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: 100%;
    font-size: 2.45rem;
    line-height: 1.08;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-image {
    min-height: 290px;
  }

  .search-panel {
    margin-top: 22px;
    padding: 12px;
    gap: 11px;
  }

  .search-intent {
    gap: 8px;
  }

  .search-intent label {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .section-heading-row,
  .search-panel,
  .trust-strip,
  .member-grid,
  .steps,
  .feature-band,
  .results-search-panel {
    grid-template-columns: 1fr;
  }

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

  .search-result-body {
    padding: 11px 11px 13px;
  }

  .search-result-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .feature-band {
    padding: 54px 0;
  }

  .signup-page,
  .login-page,
  .account-settings-page,
  .prefs-page,
  .photo-upload-page,
  .messages-page {
    padding: 46px 0;
  }

  .account-settings-shell {
    grid-template-columns: 1fr;
  }

  .prefs-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .messages-shell {
    grid-template-columns: 1fr;
  }

  .messages-sidebar {
    order: 2;
  }

  .messages-thread-panel {
    order: 1;
  }

  .messages-thread-head {
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .messages-thread {
    min-height: 360px;
    max-height: none;
  }

  .messages-compose {
    gap: 12px;
  }

  .signup-intro h1,
  .login-intro h1,
  .account-settings-hero h1,
  .prefs-intro h1,
  .dashboard-hero h1,
  .photo-upload-intro h1 {
    font-size: 2.6rem;
  }

  .form-row,
  .prefs-grid-two,
  .dashboard-grid,
  .profile-gallery,
  .profile-content-grid,
  .profile-facts-columns {
    grid-template-columns: 1fr;
  }

  .signup-birthdate-grid {
    grid-template-columns: 1.35fr 0.9fr 1fr;
    gap: 10px;
  }

  .profile-titlebar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-titlebar h1 {
    font-size: 2.6rem;
  }

  .profile-quick-facts {
    width: 100%;
    flex-direction: column;
  }

  .vm-gallery {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .vm-main-photo-frame {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
  }

  .vm-gallery-single .vm-main-photo-frame {
    min-height: 0;
    max-height: none;
  }

  .vm-main-photo.is-legacy-photo {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .vm-main-photo.is-portrait-photo {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .vm-thumbs {
    display: none;
  }

  .vm-photo-nav {
    display: grid;
  }

  .vm-back-button {
    width: 42px;
    height: 42px;
  }

  .vm-thumb-button img {
    aspect-ratio: 3 / 2;
  }

  .vm-allowed-list,
  .vm-fact-grid,
  .vm-check-list,
  .vm-fact-cards {
    grid-template-columns: 1fr;
  }

  .vm-photo-modal-panel {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 56px 12px 12px;
  }

  .profile-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .vm-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .home-shell {
    min-height: 100vh;
  }

  .home-surface {
    padding-bottom: 100px;
  }

  .home-hero {
    min-height: 382px;
    padding: 18px 20px 20px;
    border-radius: 0 0 14px 14px;
  }

  .home-hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.46) 42%, rgba(255, 255, 255, 0.12) 100%);
  }

  .home-brand-mark {
    font-size: 1rem;
  }

  .home-brand-mark::before {
    width: 22px;
    height: 16px;
  }

  .home-bell-button {
    width: 38px;
    height: 38px;
  }

  .home-hero-copy {
    max-width: 270px;
    margin-top: 14px;
  }

  .home-hero-copy h1 {
    max-width: 250px;
    font-size: 2.9rem;
  }

  .home-hero-copy p {
    max-width: 230px;
    font-size: 0.95rem;
    padding: 9px 12px;
  }

  .home-search-card {
    margin: 18px 0 0;
    padding: 8px;
    grid-template-columns: 1fr;
  }

  .home-search-select,
  .home-search-label,
  .home-search-button {
    min-height: 52px;
  }

  .home-search-button {
    width: 100%;
  }

  .home-section,
  .home-trust-panel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .home-section-header h2,
  .home-how-header h2 {
    font-size: 1.25rem;
  }

  .home-pill-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-pill-row::-webkit-scrollbar,
  .home-people-rail::-webkit-scrollbar {
    display: none;
  }

  .home-search-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home-people-rail {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
  }

  .home-person-card {
    flex: 0 0 228px;
  }

  .home-trust-panel,
  .home-state-grid {
    grid-template-columns: 1fr;
  }

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

  .home-how-grid article {
    padding: 6px 2px;
  }

  .home-how-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .home-how-grid strong {
    font-size: 0.92rem;
  }

  .home-how-grid p {
    max-width: 120px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .home-trust-panel {
    padding: 8px;
  }

  .home-trust-panel article {
    padding: 10px;
  }

  .nav-links {
    right: -2px;
    width: min(232px, calc(100vw - 24px));
    font-size: 0.9rem;
  }

  .nav-links a,
  .nav-logout button {
    min-height: 42px;
    padding: 0 12px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .search-panel {
    padding: 10px;
  }

  .home-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .home-state-link {
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.83rem;
    text-align: center;
  }

  .message-conversation-card {
    padding: 12px;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-avatar-shell,
  .message-avatar,
  .message-avatar-fallback {
    width: 42px;
    height: 42px;
  }

  .messages-sidebar-head,
  .messages-thread-head,
  .messages-compose,
  .messages-thread {
    padding: 14px;
  }

  .search-result-list {
    gap: 12px;
  }

  .search-result-body h2 {
    font-size: 1rem;
  }

  .search-result-rent {
    font-size: 0.94rem;
  }

  .signup-birthdate-grid {
    grid-template-columns: 1fr 0.8fr 0.95fr;
    gap: 8px;
  }

  .site-footer {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 14px;
  }

  .profile-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-facts div {
    grid-template-columns: 1fr;
  }

  .photo-upload-body {
    padding: 24px 16px 18px;
  }

  .photo-upload-footer {
    flex-direction: column;
  }

  .photo-upload-footer-form,
  .photo-upload-footer-form button {
    width: 100%;
  }
}
