:root {
  --primary: #ed315f;
  --primary-dark: #7b2447;
  --accent: #1f8a7a;
  --plum: #3f2948;
  --ink: #293432;
  --muted: #6f7977;
  --line: #ddd8d1;
  --soft-line: #ece7df;
  --bg: #f3f1ed;
  --panel: #ffffff;
  --panel-soft: #faf9f6;
  --photo-bg: #e6efec;
  --good: #2f9c45;
  --warn: #9b5c00;
  --danger: #b63348;
  --focus: #1f8a7a;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
  line-height: 1.45;
}

a {
  color: var(--primary-dark);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: .6rem .8rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar,
.container,
.footer-inner {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-logo {
  width: 170px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
  font-size: .78rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}

.site-nav a,
.link-button {
  color: #3f4947;
  text-decoration: none;
  padding: .55rem .65rem;
  border-radius: 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.site-nav a:hover,
.link-button:hover {
  background: #eef4f2;
  color: var(--primary-dark);
}

.nav-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: .2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.nav-badge-menu {
  margin-left: .35rem;
  min-width: 22px;
  height: 22px;
  font-size: .74rem;
}

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

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 32px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: .42rem .72rem;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: var(--primary-dark);
}

.button.secondary:hover,
button.secondary:hover {
  background: #eef6f4;
  color: var(--primary-dark);
}

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

.button.small,
button.small {
  min-height: 28px;
  padding: .34rem .52rem;
  font-size: .78rem;
}

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

.mobile-nav-item,
button.mobile-nav-item {
  position: relative;
  display: inline-grid;
  min-height: 0;
  align-content: center;
  justify-items: center;
  gap: .2rem;
  border: 0;
  border-radius: 0;
  padding: .45rem .25rem .55rem;
  background: transparent;
  color: #565d5b;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-nav-item:hover,
button.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: transparent;
  color: var(--primary);
}

.mobile-nav-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
  color: #b5b9bb;
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item:hover .mobile-nav-icon {
  color: var(--primary);
}

.icon-discover::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .82;
}

.icon-discover::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 4px;
  height: 13px;
  border-radius: 4px;
  background: #fff;
  transform: rotate(45deg);
}

.icon-search::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-message::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 18px;
  height: 14px;
  border-radius: 7px;
  background: currentColor;
}

.icon-message::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  border-left-color: currentColor;
}

.icon-eye::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 20px;
  height: 11px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-eye::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.icon-star::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  clip-path: polygon(50% 2%, 61% 35%, 96% 35%, 68% 55%, 79% 90%, 50% 68%, 21% 90%, 32% 55%, 4% 35%, 39% 35%);
}

.icon-menu::before,
.icon-menu::after,
.icon-menu {
  border-top: 3px solid currentColor;
}

.icon-menu::before,
.icon-menu::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
}

.icon-menu {
  height: 18px;
  margin-top: 3px;
}

.icon-menu::before {
  top: 7px;
}

.icon-menu::after {
  top: 15px;
}

.mobile-nav-badge {
  position: absolute;
  top: .05rem;
  right: calc(50% - 18px);
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.button-row {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
  margin-bottom: .25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.good {
  background: #e6f6ec;
  color: #147138;
}

.status-pill.muted {
  background: #f1efea;
  color: #746f68;
}

main {
  min-height: 68vh;
}

.page {
  padding: 1.35rem 0 2.25rem;
}

.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: start center;
  padding: 3.5rem 1rem;
  background: #f3f1ed;
}

.auth-card {
  width: min(100%, 330px);
  text-align: center;
}

.auth-mark {
  width: 66px;
  height: 66px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.auth-logo {
  width: 74px;
  height: auto;
  display: block;
  margin: 0 auto 1.4rem;
}

.auth-card h1 {
  margin-bottom: .35rem;
  color: #5a6260;
  font-size: 2.05rem;
  font-weight: 500;
}

.auth-card form {
  display: grid;
  gap: .7rem;
  margin-top: 1.1rem;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input:not([type]) {
  min-height: 46px;
  border-color: #e7e2db;
  background: #fff;
  font-size: 1rem;
}

.auth-card button[type="submit"] {
  width: 100%;
  min-height: 46px;
  margin-top: .35rem;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted);
  font-size: .88rem;
}

.auth-options a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  min-height: min(610px, 72vh);
  background-color: #ece9e3;
  background-image: url('/assets/img/hero-community-cafe.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.hero-copy {
  max-width: 560px;
  color: #142321;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.private-launch-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78) 42%, rgba(255, 255, 255, .16)),
    url('/assets/img/homepage-pattern.png');
  background-size: cover;
  background-position: center;
}

.private-launch-hero .hero-copy {
  max-width: 620px;
  text-shadow: none;
}

.private-launch-hero h1 {
  max-width: 10ch;
  margin-bottom: .85rem;
  color: var(--ink);
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: .94;
}

.private-launch-hero .lead {
  max-width: 540px;
  color: #4e5a57;
  font-size: 1.08rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: #f1efec;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.home-hero-inner {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.2rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1fr);
  gap: 4.5rem;
  align-items: center;
}

.home-hero-copy {
  max-width: 420px;
  text-align: center;
}

.home-hero-art {
  width: min(100%, 390px);
  height: auto;
  display: block;
  margin: 0 auto 1.4rem;
}

.eyebrow {
  margin-bottom: .8rem;
  color: #8d365d;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin-bottom: .7rem;
  color: #574161;
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.home-hero .lead {
  max-width: 420px;
  margin-inline: auto;
  color: #4e5a57;
  font-size: 1.07rem;
  font-weight: 500;
  line-height: 1.45;
}

.home-match-form {
  display: grid;
  gap: 1.45rem;
}

.home-match-form fieldset {
  display: grid;
  gap: .55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.home-match-form legend {
  margin-bottom: .05rem;
  color: #574161;
  font-size: .92rem;
  font-weight: 700;
}

.home-match-form .meta {
  margin: 0 0 .35rem;
}

.home-form-row {
  display: grid;
  gap: .9rem;
}

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

.home-form-row.three {
  grid-template-columns: .72fr .72fr 1.35fr;
}

.home-match-form input,
.home-match-form select {
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #574161;
  font-size: .94rem;
}

.home-form-small {
  margin: -.3rem 0 0;
  color: #77716c;
  font-size: .78rem;
  line-height: 1.25;
}

.home-match-form button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
}

.home-match-form button:hover {
  background: var(--primary-dark);
}

.home-about {
  max-width: 960px;
  margin: 0 auto;
}

.home-about h2,
.home-guides h2 {
  color: #66706d;
  font-size: 1.35rem;
  font-weight: 500;
}

.home-about-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.3rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.home-about-row h3 {
  margin: 0;
  color: #66706d;
  font-size: 1rem;
  font-weight: 600;
}

.home-about-row p {
  margin: 0;
  color: #66706d;
  font-size: .95rem;
}

.home-guides {
  max-width: 960px;
  margin: 2rem auto 0;
}

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

.home-guide-grid article {
  border-left: 1px solid var(--soft-line);
  padding-left: 1rem;
}

.home-guide-grid h3 {
  font-size: 1rem;
}

.home-guide-grid p {
  margin: 0;
  color: #66706d;
  font-size: .9rem;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 .65rem;
}

h1 {
  font-size: 1.9rem;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 2.45rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: .98rem;
}

p {
  margin-top: 0;
}

.lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 68ch;
}

.grid {
  display: grid;
  gap: .85rem;
}

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

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

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

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .8rem;
}

.panel + .panel {
  margin-top: .85rem;
}

a.panel {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

a.panel:hover {
  border-color: #bccac7;
  box-shadow: 0 2px 8px rgba(30, 43, 40, .06);
}

.sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

form section {
  padding: .25rem 0 1rem;
  border-bottom: 1px solid var(--soft-line);
  margin-bottom: 1rem;
}

form section:last-of-type {
  border-bottom: 0;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: .28rem;
  font-size: .82rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #ccc6bd;
  border-radius: 4px;
  padding: .48rem .58rem;
  font: inherit;
  font-size: .88rem;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.content-editor {
  min-height: 430px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.content-body {
  color: var(--ink);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  margin-top: 1.2rem;
}

.content-body h1:first-child,
.content-body h2:first-child,
.content-body h3:first-child,
.content-body h4:first-child {
  margin-top: 0;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.content-body li + li {
  margin-top: .25rem;
}

.content-body blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--primary);
  background: #f7f4ef;
}

fieldset.panel {
  background: var(--panel-soft);
}

legend {
  font-weight: 700;
  padding: 0 .35rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0;
  font-weight: 400;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.help-text,
.meta {
  color: var(--muted);
  font-size: .8rem;
}

.alert {
  width: min(1040px, calc(100% - 2rem));
  margin: .8rem auto 0;
  padding: .7rem .8rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
}

.alert.success {
  border-color: #b7dcc7;
  background: #eef9f2;
}

.alert.error {
  border-color: #e9b7bf;
  background: #fff1f3;
}

.alert.info {
  border-color: #b9d7e9;
  background: #eff8fc;
}

.error-list {
  border: 1px solid #e9b7bf;
  background: #fff1f3;
  padding: .8rem;
  border-radius: 5px;
  margin-bottom: .85rem;
}

.metric-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.metric-card {
  min-height: 88px;
}

.metric-card h2 {
  font-size: .9rem;
  color: #34413f;
  margin-bottom: .8rem;
}

.metric-card .lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.admin-profile-actions {
  margin-bottom: .85rem;
}

.admin-member-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .7rem;
}

.member-section {
  margin-top: 1rem;
}

.member-card {
  padding: 0;
  overflow: hidden;
}

.member-card-photo {
  display: grid;
  aspect-ratio: 6 / 7;
  place-items: center;
  background: var(--photo-bg);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
}

.member-card-placeholder {
  display: grid;
  place-items: center;
  gap: .2rem;
  color: var(--primary-dark);
}

.member-card-placeholder strong {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #d7e8e4;
  font-size: 1.3rem;
}

.member-card-placeholder small {
  font-size: .74rem;
}

.member-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: var(--photo-bg);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f7f5f0;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7f5f0;
}

.member-card-body {
  padding: .58rem;
}

.member-card h3 {
  margin-bottom: .28rem;
}

.member-card h3 a {
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 700;
}

.member-card .meta {
  margin-bottom: .45rem;
}

.member-card p:not(.meta) {
  min-height: 2.55em;
  margin-bottom: .45rem;
  font-size: .8rem;
}

.member-card .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-card .actions form {
  display: grid;
}

.member-card .actions form:last-child {
  grid-column: 1 / -1;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: .35rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: .15rem .38rem;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
}

.badge.good {
  color: var(--good);
  background: #edf8f1;
}

.badge.warn {
  color: var(--warn);
  background: #fff6e6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .65rem;
}

.actions form {
  display: inline-flex;
  margin: 0;
}

.button-stack {
  display: grid;
  gap: .38rem;
  align-items: start;
  width: min(100%, 210px);
  margin-top: .65rem;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .85rem;
}

.pagination .meta {
  margin: 0;
}

.pagination-links {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.moderation-actions {
  display: grid;
  gap: .35rem;
  min-width: 230px;
}

.moderation-actions form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem;
  align-items: center;
  margin: 0;
}

.moderation-actions .button-row {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
}

.profile-photo-panel {
  display: grid;
  gap: .55rem;
  align-content: start;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.profile-photo-stats {
  width: 100%;
  max-width: 280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
}

.profile-photo-stats span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .45rem .35rem;
  background: #fff;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

.profile-photo-stats strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.profile-photo-panel form {
  max-width: 280px;
}

.profile-photo-panel form button {
  width: 100%;
}

.completion-meter {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #eee7df;
  margin: .4rem 0;
}

.completion-meter::-webkit-progress-bar {
  background: #eee7df;
  border-radius: 999px;
}

.completion-meter::-webkit-progress-value {
  background: var(--primary);
  border-radius: 999px;
}

.completion-meter::-moz-progress-bar {
  background: var(--primary);
  border-radius: 999px;
}

.notification-strip {
  margin-bottom: 1rem;
}

.notification-list {
  display: grid;
  gap: .25rem;
  margin-top: .35rem;
}

.notification-list p {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}

.photo-tile {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.photo-modal-trigger {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
}

.photo-modal-trigger:hover {
  background: transparent;
}

.profile-photo-trigger {
  height: 100%;
}

.photo-tile-visual {
  aspect-ratio: 1 / 1;
  background: #eef4f3;
  display: grid;
  place-items: center;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(20, 23, 22, .74);
}

.photo-modal-backdrop:hover {
  border: 0;
  background: rgba(20, 23, 22, .74);
}

.photo-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .75rem;
  width: min(94vw, 860px);
  max-height: 92vh;
}

.photo-modal-close {
  justify-self: end;
}

.photo-modal img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 5px;
  background: #111;
}

.crop-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

.crop-actions form {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .84rem;
}

th,
td {
  text-align: left;
  padding: .48rem .55rem;
  border-bottom: 1px solid var(--soft-line);
  vertical-align: top;
}

th {
  background: #f7f5f0;
  color: #3f4a48;
  font-size: .78rem;
}

td form {
  display: flex;
  gap: .35rem;
  align-items: center;
}

td input {
  min-width: 170px;
}

.message-list {
  display: grid;
  gap: .75rem;
  max-width: 780px;
}

.message-thread-card {
  padding: 1rem;
}

.message-thread-card p {
  margin: .35rem 0;
}

.message-thread-card .actions {
  margin-top: .8rem;
}

.message-filter-page {
  display: grid;
  justify-items: center;
}

.message-filter-card {
  width: min(100%, 380px);
  padding: 1.55rem;
}

.message-filter-card h1 {
  margin-bottom: .5rem;
  color: var(--plum);
  font-size: 1.25rem;
}

.message-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}

.message-filter-grid .wide {
  grid-column: 1 / -1;
}

.message-filter-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0;
  padding: .85rem 1rem;
  background: #eee;
  color: #4d4653;
  font-size: .86rem;
}

.message-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.conversation-stream {
  display: grid;
  gap: .75rem;
}

.conversation-message {
  width: min(100%, 640px);
  padding: .85rem .95rem;
  border-radius: 5px;
  background: #eef4f3;
  margin: 0;
}

.conversation-message.mine {
  justify-self: end;
  margin-left: 0;
  background: #e9f6ef;
}

.conversation-message-body {
  margin: .35rem 0;
  white-space: pre-line;
}

.ad-slot {
  border: 1px dashed #b9c8c4;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
}

.ad-slot p {
  margin: .25rem 0 0;
}

.ad-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .25rem;
}

.advertising-admin {
  display: grid;
  gap: 1rem;
}

.ad-html-help {
  display: grid;
  gap: .75rem;
}

.ad-html-help textarea {
  min-height: 118px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.ad-space-list,
.ad-campaign-list {
  display: grid;
  gap: 1rem;
}

.ad-space {
  display: grid;
  gap: .85rem;
}

.ad-space-heading {
  margin-bottom: 0;
}

.ad-space-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .25rem;
}

.ad-campaign-editor {
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  background: #fff;
}

.ad-campaign-editor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  cursor: pointer;
  font-weight: 800;
}

.ad-campaign-editor[open] summary {
  border-bottom: 1px solid var(--soft-line);
}

.summary-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.ad-campaign-new {
  background: #fbfaf7;
}

.ad-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 1rem;
  align-items: start;
  padding: .85rem;
}

.ad-html-editor {
  min-height: 170px;
}

.ad-editor-preview {
  border-left: 1px solid var(--soft-line);
  padding-left: 1rem;
}

.ad-editor-preview h3 {
  margin-bottom: .35rem;
  font-size: .95rem;
}

.ad-editor-preview .ad-slot {
  margin: 0;
}

.site-footer {
  border-top: 1px solid #422d46;
  background: var(--plum);
  color: #d7ccd8;
  padding: 1.5rem 0 2rem;
}

.site-footer a {
  color: #e7dfe8;
}

.site-footer .meta {
  color: #c7bbc9;
}

.site-footer .ad-slot {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
  color: #d7ccd8;
}

.site-footer .ad-label {
  color: #e3dae4;
}

.footer-inner {
  display: grid;
  gap: .85rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 2.25rem;
}

.footer-columns h2 {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

.footer-links.vertical {
  display: grid;
  gap: .28rem;
}

.regional-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: .34rem 1.5rem;
  font-size: .82rem;
}

.regional-links a,
.footer-links.vertical a {
  color: #bbaec0;
  text-decoration: none;
}

.regional-links a:hover,
.footer-links.vertical a:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 35px rgba(15, 35, 33, .18);
  padding: .85rem;
  z-index: 20;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: .75rem;
  }

  .site-nav.open {
    display: grid;
  }

  .topbar,
  .hero-inner,
  .home-hero-inner,
  .sidebar-layout,
  .profile-header,
  .ad-editor,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    padding: .65rem 0;
    gap: .55rem;
  }

  .signed-in .topbar {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .brand {
    flex: 1 1 auto;
  }

  .signed-in .brand {
    display: none;
  }

  .mobile-quick-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    min-height: 78px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .signed-in .site-nav {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto;
    padding: .6rem 0 .8rem;
  }

  .hero {
    min-height: 64vh;
    background-position: 58% center;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-inner {
    gap: 2rem;
    padding: 3rem 0;
  }

  .home-hero h1 {
    font-size: 2.3rem;
  }

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

  .conversation-message {
    width: 100%;
  }

  .photo-modal-dialog {
    width: 96vw;
  }

  td form {
    align-items: stretch;
    flex-direction: column;
  }

  td input {
    min-width: 0;
  }

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

  .pagination-links {
    justify-content: flex-start;
  }

  .moderation-actions {
    min-width: 0;
  }

  .moderation-actions form {
    grid-template-columns: 1fr;
  }

  .ad-editor-preview {
    border-left: 0;
    border-top: 1px solid var(--soft-line);
    padding-top: 1rem;
    padding-left: 0;
  }

  .ad-space-heading,
  .ad-campaign-editor summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ad-space-status {
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

@media (max-width: 460px) {
  .member-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav-item,
  button.mobile-nav-item {
    font-size: .68rem;
    padding-inline: .08rem;
  }

  .regional-links {
    grid-template-columns: 1fr;
  }
}

/* Modern SaaS dating theme - visual layer only. */
:root {
  --primary: #ed315f;
  --primary-dark: #8f1d44;
  --accent: #ed315f;
  --plum: #3f2948;
  --ink: #312c2a;
  --muted: #746f6b;
  --line: #eadfe3;
  --soft-line: #f0e8eb;
  --bg: #fbfaf9;
  --panel: #ffffff;
  --panel-soft: #fff7fa;
  --photo-bg: #f7edf2;
  --good: #209451;
  --warn: #9a6500;
  --danger: #b32842;
  --focus: #ed315f;
  --radius: 8px;
  --shadow-soft: 0 12px 32px rgba(80, 43, 60, .08);
  --shadow-card: 0 8px 22px rgba(80, 43, 60, .07);
}

html {
  font-size: 16px;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #fbfaf9 340px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .94rem;
  line-height: 1.55;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(237, 49, 95, .35);
  outline-offset: 2px;
}

.topbar,
.container,
.footer-inner,
.hero-inner,
.home-hero-inner {
  width: min(1180px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 6px 24px rgba(68, 45, 54, .05);
  backdrop-filter: blur(14px);
}

.topbar {
  min-height: 72px;
  gap: 1.25rem;
}

.brand-logo {
  width: 170px;
  height: auto;
  display: block;
}

.site-nav {
  gap: .25rem;
}

.site-nav a,
.link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  color: #4c4542;
  font-size: .88rem;
  font-weight: 700;
  padding: .55rem .72rem;
}

.site-nav a:hover,
.link-button:hover,
.site-nav a:focus-visible,
.link-button:focus-visible {
  background: #fff1f6;
  color: var(--primary-dark);
}

.nav-badge,
.mobile-nav-badge {
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(237, 49, 95, .28);
}

main {
  min-height: 68vh;
}

.page {
  padding: 1.85rem 0 2.8rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

h3 {
  font-size: 1rem;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
}

.meta,
.help-text {
  color: var(--muted);
}

.panel,
.card,
.alert,
.error-list,
.cookie-banner,
.photo-tile,
.message-thread-card,
.ad-campaign-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.panel,
.card {
  padding: 1rem;
}

.panel + .panel {
  margin-top: 1rem;
}

a.panel:hover {
  border-color: #f2b8cc;
  box-shadow: var(--shadow-soft);
}

.grid {
  gap: 1rem;
}

.grid.three > .panel,
.grid.two > .panel,
.metric-card {
  min-height: 118px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.metric-card h2 {
  color: var(--muted);
  font-size: .88rem;
}

.metric-card .lead {
  color: var(--ink);
  font-size: 1.75rem;
}

.dashboard-summary-grid {
  align-items: stretch;
  gap: .85rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.15rem;
  align-items: start;
}

.dashboard-main-column {
  display: grid;
  gap: 1.15rem;
}

.dashboard-sidebar {
  display: grid;
  gap: .9rem;
  position: sticky;
  top: 92px;
}

.dashboard-summary-card {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem;
}

.dashboard-summary-card h2 {
  margin-bottom: .15rem;
  font-size: 1.08rem;
}

.dashboard-summary-card p {
  margin-bottom: .25rem;
}

.dashboard-summary-card > .button,
.dashboard-message-card > .button {
  align-self: flex-start;
  margin-top: .35rem;
}

.dashboard-message-status {
  margin-bottom: 0;
}

.dashboard-summary-card .button-stack {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
}

.dashboard-summary-card .button-stack .button {
  width: auto;
  flex: 1 1 140px;
}

.dashboard-summary-card .completion-meter {
  height: 8px;
}

.dashboard-side-panel {
  display: grid;
  gap: .55rem;
}

.dashboard-side-panel h2 {
  margin-bottom: .1rem;
  font-size: 1.02rem;
}

.dashboard-side-panel .lead {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: .25rem;
}

.section-heading.compact h2 {
  margin: 0;
}

.dashboard-mini-list {
  display: grid;
  gap: .45rem;
}

.dashboard-mini-member {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  padding: .35rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.dashboard-mini-member:hover {
  background: #fff7fa;
}

.dashboard-mini-member strong {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  color: var(--primary-dark);
  font-size: .84rem;
}

.dashboard-mini-member small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-mini-photo {
  width: 42px;
  height: 42px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background: var(--photo-bg);
  color: var(--primary-dark);
}

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

.section-heading {
  margin-bottom: 1rem;
}

.button,
button,
input[type="submit"] {
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  padding: .56rem .86rem;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(237, 49, 95, .14);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(143, 29, 68, .18);
}

.button.secondary,
button.secondary {
  background: #fff;
  border-color: #f0b8ca;
  color: var(--primary-dark);
  box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
  background: #fff1f6;
  border-color: var(--primary);
  color: var(--primary-dark);
}

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

.button.small,
button.small {
  min-height: 32px;
  padding: .42rem .66rem;
  font-size: .78rem;
}

.link-button {
  border-color: transparent;
  background: transparent;
  color: #4c4542;
  box-shadow: none;
  transform: none;
}

.site-nav .link-button {
  min-height: 38px;
  justify-content: flex-start;
  padding: .55rem .72rem;
}

.site-nav .link-button:hover {
  border-color: transparent;
  background: #fff1f6;
  color: var(--primary-dark);
  box-shadow: none;
  transform: none;
}

.mobile-nav-item,
button.mobile-nav-item {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6a625e;
  box-shadow: none;
  transform: none;
}

.mobile-nav-item:hover,
button.mobile-nav-item:hover,
.mobile-nav-item.active {
  border: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  transform: none;
}

label {
  color: #49413e;
  font-size: .82rem;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid #ded4d7;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: .62rem .72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #d5c5cb;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(237, 49, 95, .11);
  outline: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  padding: 0;
  box-shadow: none;
  accent-color: var(--primary);
}

input[type="radio"] {
  border-radius: 50%;
}

textarea {
  min-height: 118px;
}

fieldset.panel {
  background: #fffbfd;
  box-shadow: none;
}

.checkbox-row input {
  accent-color: var(--primary);
}

.alert {
  padding: .85rem 1rem;
  box-shadow: none;
}

.alert.success {
  border-color: #bee6cc;
  background: #f0fbf4;
}

.alert.error,
.error-list {
  border-color: #f1bcc8;
  background: #fff4f6;
}

.alert.info {
  border-color: #efd0dc;
  background: #fff7fa;
}

.status-pill,
.badge {
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary-dark);
  font-weight: 800;
}

.status-pill.good,
.badge.good {
  background: #edf9f1;
  color: var(--good);
}

.badge.warn {
  background: #fff6e5;
  color: var(--warn);
}

.ad-slot {
  border: 1px dashed #e4cbd4;
  border-radius: var(--radius);
  background: #fffafd;
  box-shadow: none;
}

.home-hero {
  min-height: auto;
  background:
    radial-gradient(circle at 16% 18%, rgba(237, 49, 95, .08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fdf8fa 100%);
  border-bottom: 1px solid var(--soft-line);
}

.home-hero-inner {
  padding: 4.5rem 0 4.25rem;
  grid-template-columns: minmax(290px, .85fr) minmax(360px, 1fr);
  gap: 4rem;
}

.home-hero-copy {
  max-width: 460px;
  text-align: left;
}

.home-hero-art {
  width: min(100%, 330px);
  margin: 0 0 1.35rem;
  filter: drop-shadow(0 18px 28px rgba(80, 43, 60, .12));
}

.eyebrow {
  color: var(--primary-dark);
  letter-spacing: 0;
}

.home-hero h1 {
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.08;
}

.home-hero .lead {
  max-width: 440px;
  margin-inline: 0;
  color: #5f5753;
  font-size: 1.08rem;
}

.home-match-form {
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}

.home-match-form legend {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
}

.home-match-form input,
.home-match-form select {
  min-height: 50px;
  border: 1px solid #eadfe3;
  border-radius: var(--radius);
  color: var(--ink);
}

.home-match-form button {
  min-height: 50px;
  border-radius: var(--radius);
}

.home-about,
.home-guides {
  max-width: 980px;
}

.home-about h2,
.home-guides h2 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.home-about-row {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.home-about-row h3,
.home-about-row p,
.home-guide-grid p {
  color: #625b57;
}

.home-guide-grid {
  gap: 1rem;
}

.home-guide-grid article {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.auth-shell {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 50% 0, rgba(237, 49, 95, .11), transparent 30%),
    #fbfaf9;
  padding: 4rem 1rem;
}

.auth-card {
  width: min(100%, 380px);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.auth-logo {
  width: 179px;
}

.auth-card h1 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input:not([type]) {
  min-height: 48px;
}

.auth-card button[type="submit"] {
  min-height: 48px;
}

.auth-options a {
  color: var(--primary-dark);
}

.member-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.member-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.member-card:hover {
  border-color: #f0b8ca;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.member-card-photo {
  background:
    radial-gradient(circle at 50% 35%, rgba(237, 49, 95, .12), transparent 34%),
    var(--photo-bg);
  color: var(--primary-dark);
}

.member-card-placeholder strong {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.member-card-body {
  padding: .8rem;
}

.member-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  color: var(--primary-dark);
  font-size: .92rem;
}

.online-dot {
  display: inline-block;
  width: .58rem;
  height: .58rem;
  flex: 0 0 .58rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .35);
  vertical-align: middle;
}

.online-dot-large {
  width: .78rem;
  height: .78rem;
  flex-basis: .78rem;
  margin-right: .45rem;
}

.member-card .actions {
  gap: .35rem;
  grid-template-columns: 1fr;
}

.member-card .actions form {
  display: grid;
  min-width: 0;
}

.member-card .actions .button,
.member-card .actions button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: .46rem .62rem;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchmaker-section .section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.matchmaker-section .section-heading .button {
  flex: 0 0 auto;
}

.match-spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(132px, 160px);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #f4c3d2;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 32, 36, .06);
  overflow: hidden;
}

.match-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), #f07aa0);
}

.match-spotlight-photo {
  display: grid;
  width: 96px;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(237, 49, 95, .12), transparent 34%),
    var(--photo-bg);
  color: var(--primary-dark);
  text-decoration: none;
}

.match-spotlight-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.match-spotlight-placeholder {
  display: grid;
  gap: .25rem;
  place-items: center;
}

.match-spotlight-placeholder strong {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.15rem;
}

.match-spotlight-placeholder small {
  font-size: .68rem;
}

.match-spotlight-copy {
  min-width: 0;
}

.match-spotlight-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  margin-bottom: .25rem;
}

.match-spotlight-topline strong {
  color: var(--primary-dark);
  font-size: .86rem;
}

.match-spotlight-copy h3 {
  margin-bottom: .2rem;
  font-size: 1rem;
}

.match-spotlight-copy h3 a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink);
  text-decoration: none;
}

.match-spotlight-copy .lead {
  margin-bottom: .25rem;
  font-size: .88rem;
  line-height: 1.4;
}

.match-reasons-panel {
  margin-top: .35rem;
}

.match-spotlight-copy .meta {
  margin-bottom: .35rem;
}

.match-reasons-panel h4 {
  margin-bottom: .25rem;
  color: var(--ink);
  font-size: .82rem;
}

.match-reason-list {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-reason-list li {
  position: relative;
  padding-left: .75rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.match-reason-list li::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: var(--primary);
}

.match-spotlight-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  align-self: center;
}

.match-spotlight-actions form {
  display: grid;
  margin: 0;
}

.match-spotlight-actions .button,
.match-spotlight-actions button {
  width: 100%;
  justify-content: center;
  min-height: 38px;
  padding: .48rem .65rem;
}

@media (max-width: 760px) {
  .match-spotlight-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .match-spotlight-photo {
    width: 82px;
    height: 82px;
  }

  .match-spotlight-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.profile-header {
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 1.35rem;
}

.profile-photo {
  max-width: 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff7fa;
  box-shadow: var(--shadow-card);
}

.profile-photo-stats {
  max-width: 310px;
  gap: .5rem;
}

.profile-photo-stats span {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-photo-stats strong {
  color: var(--primary-dark);
}

.profile-photo-panel form {
  max-width: 310px;
}

.profile-topic {
  position: relative;
  overflow: hidden;
}

.profile-topic::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--topic-colour, var(--primary));
}

.profile-topic-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
}

.profile-topic-icon {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff1f6;
  background: color-mix(in srgb, var(--topic-colour, var(--primary)) 14%, #fff);
  color: var(--topic-colour, var(--primary));
}

.profile-topic-icon::before,
.profile-topic-icon::after {
  content: "";
  position: absolute;
}

.profile-topic-about {
  --topic-colour: #ed315f;
}

.profile-topic-looking {
  --topic-colour: #c74380;
}

.profile-topic-appearance {
  --topic-colour: #8f64d8;
}

.profile-topic-lifestyle {
  --topic-colour: #2b9a78;
}

.profile-topic-home {
  --topic-colour: #dc7a2b;
}

.profile-topic-interests,
.profile-topic-photos {
  --topic-colour: #3978d5;
}

.profile-topic-icon-about::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px currentColor;
}

.profile-topic-icon-about::after {
  width: 12px;
  height: 5px;
  bottom: 6px;
  border-radius: 999px 999px 0 0;
  border: 3px solid currentColor;
  border-bottom: 0;
}

.profile-topic-icon-looking::before {
  width: 15px;
  height: 15px;
  border-radius: 4px 4px 0 4px;
  background: currentColor;
  transform: rotate(45deg);
}

.profile-topic-icon-appearance::before {
  width: 19px;
  height: 11px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.profile-topic-icon-appearance::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.profile-topic-icon-lifestyle::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid currentColor;
}

.profile-topic-icon-lifestyle::after {
  width: 3px;
  height: 12px;
  background: currentColor;
  transform: rotate(45deg);
}

.profile-topic-icon-home::before {
  width: 18px;
  height: 14px;
  bottom: 7px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.profile-topic-icon-home::after {
  width: 16px;
  height: 16px;
  top: 6px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}

.profile-topic-icon-interests::before {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3px solid currentColor;
}

.profile-topic-icon-interests::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.profile-topic-icon-photos::before {
  width: 20px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.profile-topic-icon-photos::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.profile-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .65rem;
  margin: 0;
}

.profile-detail-list div {
  min-width: 0;
  padding: .7rem .75rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fffafd;
}

.profile-detail-list dt {
  margin: 0 0 .18rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.profile-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.profile-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.profile-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 800;
}

.photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.photo-tile {
  overflow: hidden;
}

.photo-tile-visual {
  background: #fff7fa;
}

.photo-modal-trigger,
.photo-modal-trigger:hover {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: none;
  transform: none;
}

.photo-modal-backdrop {
  background: rgba(39, 29, 34, .76);
}

.photo-modal-backdrop:hover {
  background: rgba(39, 29, 34, .76);
}

.photo-modal-dialog {
  border-radius: var(--radius);
}

.photo-modal img {
  border-radius: var(--radius);
}

.message-list {
  gap: 1rem;
  max-width: 860px;
}

.message-thread-card {
  padding: 1rem;
}

.conversation-stream {
  gap: .85rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #fffafd);
}

.conversation-message {
  width: min(76%, 660px);
  border: 1px solid #f0e2e7;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.conversation-message.mine {
  background: #fff1f6;
  border-color: #f3c4d4;
}

.message-filter-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.message-filter-card h1 {
  color: var(--ink);
}

.message-filter-option {
  border-radius: var(--radius);
  background: #fff7fa;
}

table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

th {
  background: #fff7fa;
  color: var(--ink);
  font-weight: 800;
}

th,
td {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--soft-line);
}

tr:last-child td {
  border-bottom: 0;
}

.content-body blockquote {
  border-left-color: var(--primary);
  background: #fff7fa;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.completion-meter {
  height: 10px;
  background: #f4e7ed;
}

.completion-meter::-webkit-progress-bar {
  background: #f4e7ed;
}

.completion-meter::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary), #f07aa0);
}

.completion-meter::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), #f07aa0);
}

.ad-campaign-editor summary {
  padding: .85rem 1rem;
}

.ad-campaign-new {
  background: #fffafd;
}

.ad-editor {
  padding: 1rem;
}

.ad-editor-preview {
  border-left-color: var(--soft-line);
}

.site-footer {
  border-top: 0;
  background: var(--plum);
  color: #dfd5e0;
  padding: 2rem 0 2.35rem;
}

.site-footer a {
  color: #f1e9f1;
}

.site-footer .meta {
  color: #cdbfd0;
}

.footer-inner {
  gap: 1.15rem;
}

.footer-columns {
  gap: 3rem;
}

.footer-columns h2 {
  color: #fff;
  font-size: .92rem;
}

.regional-links a,
.footer-links.vertical a {
  color: #d9cbdd;
}

.regional-links a:hover,
.footer-links.vertical a:hover {
  color: #fff;
}

.site-footer .ad-slot {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: #e9dfe9;
}

.private-launch-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 49, 95, .1), transparent 28%),
    linear-gradient(180deg, #fff, #fff7fa);
}

.private-launch-hero h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: 3.6rem;
  font-weight: 800;
}

.private-launch-hero .lead {
  color: #5f5753;
}

.private-launch-panel,
.private-waitlist-form {
  margin-top: 1rem;
}

.private-waitlist-form {
  width: min(100%, 620px);
  text-align: left;
}

.cookie-banner {
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .home-hero-copy {
    max-width: 620px;
  }

  .home-hero h1 {
    font-size: 2.35rem;
  }

  .home-about-row,
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
  }

  .topbar {
    min-height: 64px;
  }

  .site-nav.open {
    display: grid;
    gap: .25rem;
  }

  .site-nav a,
  .link-button {
    width: 100%;
    justify-content: flex-start;
  }

  .mobile-quick-nav {
    min-height: 86px;
    border-bottom-color: var(--soft-line);
    box-shadow: 0 6px 18px rgba(68, 45, 54, .05);
  }

  .mobile-nav-item,
  button.mobile-nav-item {
    color: #6a625e;
    padding-top: .6rem;
    padding-bottom: .7rem;
    font-weight: 700;
    font-size: .78rem;
  }

  .mobile-nav-icon {
    width: 28px;
    height: 28px;
  }

  .mobile-nav-badge {
    min-width: 21px;
    height: 21px;
    font-size: .72rem;
    right: calc(50% - 22px);
  }

  .mobile-nav-item:hover,
  button.mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--primary);
  }

  .home-form-row.two,
  .home-form-row.three,
  .profile-header,
  .sidebar-layout,
  .dashboard-sidebar,
  .ad-editor {
    grid-template-columns: 1fr;
  }

  .profile-photo,
  .profile-photo-stats,
  .profile-photo-panel form {
    max-width: 420px;
  }

  .conversation-message,
  .conversation-message.mine {
    width: 100%;
  }

  .ad-editor-preview {
    border-left: 0;
    border-top: 1px solid var(--soft-line);
  }

  .footer-columns {
    gap: 1.35rem;
  }
}

.message-folder-actions {
  margin-bottom: .9rem;
}

.messages-section {
  display: grid;
  gap: .85rem;
  margin-top: 1.2rem;
}

.filtered-message-section {
  border-top: 1px solid var(--soft-line);
  padding-top: 1.15rem;
  scroll-margin-top: 96px;
}

.message-section-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.message-section-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

@media (max-width: 520px) {
  body {
    font-size: .92rem;
  }

  .topbar,
  .container,
  .footer-inner,
  .hero-inner,
  .home-hero-inner {
    width: min(100% - 1rem, 1180px);
  }

  .page {
    padding: 1rem 0 2rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .home-hero h1,
  .private-launch-hero h1 {
    font-size: 2rem;
  }

  .home-match-form,
  .auth-card,
  .panel,
  .card {
    padding: .9rem;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .member-card {
    min-width: 0;
  }

  .member-card-photo {
    aspect-ratio: 1 / 1.05;
  }

  .member-card-body {
    padding: .58rem;
  }

  .member-card h3 a {
    font-size: .78rem;
  }

  .member-card .meta {
    font-size: .68rem;
  }

  .member-card p:not(.meta) {
    font-size: .72rem;
    line-height: 1.35;
  }

  .member-card .badge {
    font-size: .64rem;
    padding: .16rem .34rem;
  }

  .member-card .actions .button,
  .member-card .actions button {
    min-height: 30px;
    padding: .34rem .25rem;
    font-size: .7rem;
  }

  .matchmaker-section .section-heading {
    flex-direction: column;
  }

  .match-spotlight-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: .65rem;
    padding: .7rem;
  }

  .match-spotlight-photo {
    width: 74px;
    height: 74px;
  }

  .match-spotlight-copy h3 {
    font-size: .95rem;
  }

  .match-spotlight-copy {
    grid-template-columns: 1fr;
  }

  .match-spotlight-topline {
    flex-wrap: wrap;
    gap: .25rem;
  }

  .match-spotlight-copy .lead,
  .match-reason-list li {
    font-size: .72rem;
  }

  .match-reason-list li:nth-child(n+3) {
    display: none;
  }

  .match-spotlight-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: auto;
    gap: .3rem;
    padding-top: .45rem;
  }

  .match-spotlight-actions .button,
  .match-spotlight-actions button {
    min-height: 30px;
    padding: .34rem .25rem;
    font-size: .7rem;
  }

  .mobile-nav-item,
  button.mobile-nav-item {
    font-size: .72rem;
  }

  .message-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
