:root {
  color-scheme: light;
  --page: #edf3fb;
  --page-2: #e2edf8;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --surface-blue: #e9f3ff;
  --surface-mint: #dcf7f6;
  --surface-pink: #ffe8ef;
  --ink: #10131c;
  --ink-soft: #232b3b;
  --muted: #657187;
  --muted-2: #8894a8;
  --line: rgba(23, 33, 51, 0.11);
  --line-strong: rgba(23, 33, 51, 0.18);
  --hot: #ff425f;
  --hot-dark: #df2848;
  --sun: #ffca36;
  --ready: #1f9d63;
  --aqua: #009fa7;
  --aqua-dark: #087881;
  --shadow-card: 0 28px 72px rgba(32, 45, 68, 0.18);
  --shadow-soft: 0 14px 36px rgba(32, 45, 68, 0.11);
  --heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --ease: 180ms ease;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #090d14;
  --page-2: #101722;
  --surface: #141b27;
  --surface-soft: #192231;
  --surface-blue: #1b2b40;
  --surface-mint: #153738;
  --surface-pink: #3b1e2a;
  --ink: #f5f8ff;
  --ink-soft: #dbe3ef;
  --muted: #a4b0c4;
  --muted-2: #7f8ba0;
  --line: rgba(221, 232, 248, 0.13);
  --line-strong: rgba(221, 232, 248, 0.24);
  --aqua: #46d3d1;
  --aqua-dark: #6ddfdd;
  --ready: #37c984;
  --shadow-card: 0 28px 72px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, var(--page) 45%, var(--page-2) 100%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
  background: linear-gradient(180deg, #090d14 0%, var(--page) 46%, var(--page-2) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
  appearance: none;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 202, 54, 0.62);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

img,
svg {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--heading);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 10px;
  background: rgba(237, 243, 251, 0.76);
  backdrop-filter: blur(24px);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) auto auto;
  grid-template-areas: "brand copy nav actions";
  gap: 12px;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.brand {
  position: relative;
  display: inline-flex;
  grid-area: brand;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 6px;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-wordmark span:last-child {
  color: var(--hot);
}

.header-copy {
  display: grid;
  grid-area: copy;
  gap: 1px;
  min-width: 0;
  max-height: 48px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  will-change: opacity, transform;
}

.header-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  grid-area: nav;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
  padding: 5px;
  border-radius: 24px;
  background: #e7eef8;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 19px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-tab svg {
  width: 17px;
  height: 17px;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--hot-dark);
  box-shadow: 0 9px 20px rgba(32, 45, 68, 0.13);
}

.header-actions {
  display: flex;
  grid-area: actions;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}

:root[data-header="compact"] .site-header {
  padding: 8px 0;
  background: rgba(237, 243, 251, 0.9);
}

:root[data-header="compact"] .header-inner {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand nav actions";
  gap: 8px;
  padding: 8px 10px;
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(32, 45, 68, 0.1);
}

:root[data-header="compact"] .header-copy {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
}

:root[data-header="compact"] .brand {
  position: relative;
  z-index: 2;
  justify-self: start;
  padding-left: 0;
}

:root[data-header="compact"] .header-actions {
  position: relative;
  z-index: 2;
  justify-self: end;
}

:root[data-header="compact"] .settings-button span {
  display: none;
}

:root[data-header="compact"] .brand-wordmark {
  display: none;
}

:root[data-header="compact"] .nav-tabs {
  position: relative;
  z-index: 1;
  justify-self: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  overflow: visible;
}

.settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(32, 45, 68, 0.14);
  border-radius: 22px;
  background: rgba(232, 238, 247, 0.92);
  color: #313b4c;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(32, 45, 68, 0.07);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.settings-button svg {
  width: 18px;
  height: 18px;
  overflow: visible;
}

.settings-button:hover,
.settings-button.active {
  transform: translateY(-1px);
  background: rgba(224, 232, 242, 0.96);
  box-shadow: 0 6px 14px rgba(32, 45, 68, 0.08);
}

.app-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.experience {
  animation: fadeUp 320ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-chrome {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.screen-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 18px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(247, 251, 255, 0.98), rgba(233, 243, 255, 0.88));
}

.app-title {
  min-width: 0;
}

.app-title h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.94;
}

.app-title p {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.daily-status {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 86px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  color: var(--aqua-dark);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.daily-status strong {
  color: var(--hot);
  font-family: var(--heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.daily-status span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.panel-surface {
  padding: 22px;
}

.discover-layout {
  display: grid;
  grid-template-columns: 235px minmax(330px, 1fr) 320px;
  grid-template-areas: "rail match details";
  gap: 18px;
  align-items: start;
}

.people-rail,
.match-details {
  min-width: 0;
}

.people-rail {
  grid-area: rail;
}

.discover-layout > .match-card {
  grid-area: match;
}

.match-details {
  grid-area: details;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.rail-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-head small {
  display: block;
  max-width: 170px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-head strong {
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.profile-stack--carousel {
  display: none;
}

.rail-pagination {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(32, 45, 68, 0.05);
}

.rail-pagination > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.rail-page-actions {
  display: flex;
  gap: 8px;
}

.rail-page-button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(247, 250, 255, 0.9);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.rail-page-button.primary {
  border-color: rgba(255, 64, 96, 0.3);
  background: var(--hot);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 64, 96, 0.2);
}

.rail-page-button svg {
  width: 16px;
  height: 16px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(32, 45, 68, 0.06);
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.mini-card.active {
  border-color: rgba(255, 66, 95, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 232, 239, 0.36));
  box-shadow:
    0 0 0 3px rgba(255, 66, 95, 0.08),
    0 0 10px rgba(255, 66, 95, 0.14),
    0 14px 28px rgba(255, 66, 95, 0.1);
}

.mini-card img {
  width: 58px;
  height: 68px;
  border-radius: 19px;
  object-fit: cover;
}

.mini-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.mini-copy strong,
.mini-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-copy strong {
  color: var(--ink);
  font-weight: 950;
}

.mini-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.mini-card em {
  display: block;
  grid-column: 2;
  justify-self: start;
  min-width: 0;
  margin-top: -2px;
  padding: 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.match-card {
  position: relative;
  align-self: start;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: linear-gradient(180deg, #d8e4f2, #c7d7ea);
  box-shadow: var(--shadow-card);
}

.match-card::before,
.match-card::after {
  position: absolute;
  inset: 18px 18px auto;
  z-index: 1;
  height: 96%;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transform: rotate(-2.2deg);
}

.match-card::after {
  inset: 10px 12px auto;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(2deg);
}

.match-photo-backdrop,
.match-photo-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.match-photo-backdrop {
  z-index: 2;
  object-fit: cover;
  filter: blur(20px) saturate(1.05);
  opacity: 0.42;
  transform: scale(1.08);
}

.match-photo-main {
  z-index: 3;
  object-fit: contain;
  background: transparent;
}

.card-topline {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.card-topline span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 950;
}

.match-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 34px 116px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(16, 19, 28, 0.03) 34%, rgba(16, 19, 28, 0.3) 58%, rgba(16, 19, 28, 0.9) 100%);
}

.match-overlay p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.match-overlay h3 {
  color: #ffffff;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.92;
}

.match-overlay small {
  display: block;
  max-width: 520px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 850;
}

.card-topline span,
.match-overlay > span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  color: #ffffff;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(16, 19, 28, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -12px 24px rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(16, 19, 28, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.match-overlay > span {
  align-self: flex-start;
  margin-top: 18px;
  padding: 10px 15px;
}

.swipe-actions {
  position: absolute;
  left: 50%;
  bottom: 25px;
  z-index: 6;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
}

.round-action {
  display: grid;
  place-items: center;
  width: 74px;
  height: 68px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(16, 19, 28, 0.22);
}

.round-action:hover:not(:disabled) {
  transform: translateY(-4px);
}

.round-action svg {
  width: 29px;
  height: 29px;
}

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

.like-action {
  background: var(--hot);
  color: #ffffff;
}

.like-action svg {
  fill: #ffffff;
}

.match-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.detail-header,
.detail-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(32, 45, 68, 0.06);
}

.detail-header {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
}

.detail-header p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-header h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.detail-section {
  padding: 16px;
  border-radius: 24px;
}

.detail-section h4 {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.detail-section p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 740;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 0 4px;
}

.match-details .signal-list,
.account-details .signal-list {
  display: flex;
  flex-wrap: wrap;
}

.signal-list div {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
}

:root[data-theme="dark"] .match-details .signal-list div,
:root[data-theme="dark"] .account-details .signal-list div {
  background: transparent;
}

.signal-list svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--aqua-dark);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(32, 45, 68, 0.06);
}

.photo-thumb {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #d8e4f2;
}

.photo-thumb:hover,
.photo-thumb.active {
  transform: translateY(-1px);
  border-color: #1683f8;
  box-shadow: 0 8px 18px rgba(22, 131, 248, 0.22);
}

.photo-thumb.active::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #1683f8;
  content: "";
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 22px;
  font-weight: 950;
}

.primary-action {
  background: var(--hot);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 66, 95, 0.26);
}

.primary-action svg {
  fill: currentColor;
}

.primary-action .icon-check {
  fill: none;
}

.primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--hot-dark);
}

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

.secondary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    var(--shadow-soft);
}

.likes-shell {
  display: grid;
  gap: 18px;
  --likes-chip-bg: rgba(232, 238, 247, 0.72);
  --likes-chip-border: rgba(32, 45, 68, 0.12);
  --likes-chip-text: #313b4c;
}

.match-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.match-strip > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 11px 5px 5px;
  border-radius: 20px;
  border: 1px solid var(--likes-chip-border);
  background: var(--likes-chip-bg);
  color: var(--likes-chip-text);
  font-weight: 950;
}

.match-pill img {
  width: 32px;
  height: 32px;
  border-radius: 15px;
  object-fit: cover;
}

.likes-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.likes-filter {
  display: flex;
  gap: 7px;
  padding: 5px;
  border-radius: 22px;
  background: #e7eef8;
}

.likes-filter button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 950;
}

.likes-filter button.active,
.likes-filter button:hover {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(32, 45, 68, 0.1);
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.likes-browser {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(260px, 1fr) minmax(210px, 280px);
  gap: 16px;
  align-items: start;
}

.likes-list-panel,
.like-conversation,
.like-profile-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.likes-list-panel {
  overflow: hidden;
}

.likes-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.likes-panel-head div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.likes-panel-head strong {
  color: var(--ink);
  font-weight: 950;
}

.likes-panel-head span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hot);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
}

.likes-panel-head small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.likes-list {
  display: grid;
  gap: 10px;
  max-height: min(520px, 58vh);
  overflow-y: auto;
  padding: 10px;
  overscroll-behavior: contain;
}

.like-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(32, 45, 68, 0.06);
  text-align: left;
}

.like-row:hover,
.like-row.active {
  transform: translateY(-1px);
  border-color: rgba(255, 66, 95, 0.44);
  background: rgba(255, 66, 95, 0.08);
  box-shadow: 0 10px 24px rgba(255, 66, 95, 0.1);
}

.like-row img {
  width: 58px;
  height: 62px;
  border-radius: 17px;
  object-fit: cover;
}

.like-row span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.like-row strong,
.like-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-row strong {
  color: var(--ink);
  font-weight: 950;
}

.like-row small {
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 850;
}

.like-row em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.like-conversation {
  display: flex;
  min-height: min(520px, 58vh);
  flex-direction: column;
  padding: 16px;
}

.conversation-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.conversation-head img {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  object-fit: cover;
}

.conversation-head strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-head small {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 820;
}

.message-bubble {
  width: fit-content;
  max-width: min(78%, 360px);
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--surface-blue);
  color: var(--ink-soft);
  font-weight: 820;
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.message-thread .message-bubble {
  margin-top: 0;
}

.message-bubble.outgoing {
  margin-left: auto;
  border-radius: 18px 18px 4px;
  background: var(--hot);
  color: #ffffff;
}

.match-required-note {
  width: fit-content;
  max-width: min(82%, 380px);
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.conversation-spacer {
  flex: 1;
}

.conversation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.message-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.message-composer input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 800;
  padding: 0 14px;
}

.message-composer .primary-action {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
}

.first-message-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 19, 28, 0.38);
  backdrop-filter: blur(10px);
}

.first-message-card {
  display: grid;
  width: min(440px, 100%);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.first-message-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 820;
}

.first-message-card textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
}

.like-profile-panel {
  overflow: hidden;
}

.like-profile-photo {
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.like-profile-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.like-profile-body h3 {
  color: var(--ink);
  font-size: 1.58rem;
  line-height: 1;
}

.like-profile-body h3 span {
  color: var(--muted);
  font-weight: 600;
}

.like-profile-body p {
  margin: 0;
  color: var(--muted-2);
  font-weight: 850;
}

.like-profile-body .secondary-action {
  margin-top: 6px;
}

.like-preview {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 352px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.like-preview-photo {
  position: relative;
  min-height: 324px;
  overflow: hidden;
  border-radius: 24px;
}

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

.like-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.like-preview-copy p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.like-preview-copy h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.like-preview-copy > div > strong {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 860;
}

.like-preview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.like-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.like-card > div {
  min-width: 0;
}

.like-card:hover {
  transform: translateY(-2px);
}

.like-card:focus-visible {
  outline: 3px solid rgba(255, 202, 54, 0.62);
  outline-offset: 2px;
}

.like-card img {
  width: 112px;
  height: 142px;
  border-radius: 23px;
  object-fit: cover;
}

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

.card-head h3 {
  font-size: 1.16rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.age-line {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.05;
}

.card-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.card-head span,
.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 15px;
  background: var(--surface-mint);
  color: var(--aqua-dark);
  font-size: 0.73rem;
  font-weight: 950;
  white-space: nowrap;
}

.likes-shell .card-head span,
.likes-shell .pill-row span {
  border: 1px solid var(--likes-chip-border);
  background: var(--likes-chip-bg);
  color: var(--likes-chip-text);
  font-size: 0.68rem;
}

.like-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 740;
  line-height: 1.38;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  min-width: 0;
}

.like-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-photo-card {
  min-height: 0;
}

.account-photo-card .match-overlay {
  padding-bottom: 44px;
}

.account-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.account-toolbar {
  display: flex;
  justify-content: flex-start;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

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

.profile-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.own-profile-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.own-profile-photo {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #d8e4f2, #c7d7ea);
}

.own-profile-photo img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.own-profile-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 28, 0.02) 34%, rgba(16, 19, 28, 0.72) 100%);
  content: "";
}

.own-profile-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.own-profile-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 950;
  backdrop-filter: blur(16px) saturate(160%);
}

.own-profile-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #ffffff;
}

.own-profile-overlay p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.own-profile-overlay h3 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 0.94;
}

.own-profile-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px;
}

.profile-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.profile-preview-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-preview-head strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 16px;
  background: var(--surface-mint);
  color: var(--aqua-dark);
  font-size: 0.8rem;
  font-weight: 950;
}

.profile-preview-prompt {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

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

.profile-facts div {
  min-width: 0;
  padding: 13px;
  border-radius: 18px;
  background: var(--surface-blue);
}

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

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

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.completion-card,
.form-actions,
.full-field {
  grid-column: 1 / -1;
}

.completion-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--surface-blue), rgba(220, 247, 246, 0.86));
}

.completion-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.completion-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.completion-card strong {
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.7rem;
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hot) 0%, var(--sun) 48%, var(--ready) 100%);
  clip-path: inset(0 calc(100% - var(--completion, 0%)) 0 0);
  transition: clip-path var(--ease);
}

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

.readiness-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.readiness-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 66, 95, 0.12);
  color: var(--hot);
}

.readiness-icon svg {
  width: 17px;
  height: 17px;
}

.readiness-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.readiness-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.readiness-copy strong,
.readiness-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readiness-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.readiness-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(32, 45, 68, 0.04);
}

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

.profile-tools {
  display: grid;
  gap: 14px;
}

.settings-shell {
  display: grid;
  gap: 24px;
}

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

.settings-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  align-items: flex-start;
}

.settings-toggle {
  margin-top: auto;
}

.settings-section {
  display: grid;
  gap: 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.profile-tools article,
.trust-card,
.admin-card,
.event-log {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.profile-tools article > svg,
.trust-card > svg {
  color: var(--hot);
}

.profile-tools article h3,
.trust-card h3,
.admin-card h3,
.event-log h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.profile-tools article p,
.trust-card p,
.event-log p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-weight: 740;
}

.ai-review-result {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(32, 45, 68, 0.1);
  border-radius: 18px;
  background: rgba(232, 238, 247, 0.68);
}

.ai-review-result span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-review-result strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.ai-review-result small,
.ai-review-result p,
.ai-review-result li {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.ai-review-result p {
  margin: 0;
}

.ai-review-result ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
}

.trust-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.safety-target-card {
  grid-column: 1 / -1;
}

.safety-target-search {
  margin-top: 14px;
}

.safety-target-search input {
  min-height: 48px;
}

.safety-target-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.safety-target-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(232, 238, 247, 0.74);
  color: var(--ink);
  text-align: left;
}

.safety-target-option img {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  object-fit: cover;
}

.safety-target-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.safety-target-option strong,
.safety-target-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-target-option strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.safety-target-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.safety-target-option:hover,
.safety-target-option.active {
  transform: translateY(-1px);
  border-color: rgba(255, 66, 95, 0.44);
  background: rgba(255, 66, 95, 0.1);
  box-shadow: 0 8px 18px rgba(255, 66, 95, 0.1);
}

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

.button-grid button,
.admin-actions button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 19px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-grid button:hover,
.admin-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.event-log {
  grid-column: 1 / -1;
}

.event-log ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.event-log li + li {
  margin-top: 8px;
}

.event-log li span {
  display: block;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-card-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 15px;
  background: var(--surface-blue);
  color: #215f9f;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-console {
  display: grid;
  gap: 16px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-blue);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 2.1rem;
  line-height: 0.9;
}

.admin-review-list {
  display: grid;
  gap: 12px;
}

.admin-review-item,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(32, 45, 68, 0.07);
}

.admin-review-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.admin-review-item > img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
}

.admin-review-copy {
  min-width: 0;
}

.admin-review-copy > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 780;
}

.admin-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.admin-meta-list div {
  min-width: 0;
  padding: 12px;
  border-radius: 17px;
  background: var(--surface-blue);
}

.admin-meta-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-meta-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 880;
}

.admin-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px;
}

.admin-empty svg {
  color: var(--aqua-dark);
}

.admin-empty p {
  margin: 0;
  color: var(--muted);
  font-weight: 780;
}

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

.rank-grid div {
  padding: 13px;
  border-radius: 18px;
  background: var(--surface-blue);
}

.rank-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}

.admin-card.local-admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.reset-action {
  margin-top: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-state.compact {
  min-height: 260px;
  grid-column: 1 / -1;
}

.empty-state > svg {
  width: 38px;
  height: 38px;
  color: var(--hot);
  fill: currentColor;
}

.empty-state h3 {
  margin-top: 12px;
  font-size: 1.45rem;
  font-weight: 700;
}

.empty-state p {
  max-width: 420px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-weight: 780;
}

:root[data-theme="dark"] .site-header {
  background: rgba(9, 13, 20, 0.78);
}

:root[data-theme="dark"] .header-inner,
:root[data-theme="dark"] .app-chrome,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .rail-pagination,
:root[data-theme="dark"] .detail-header,
:root[data-theme="dark"] .detail-section,
:root[data-theme="dark"] .like-card,
:root[data-theme="dark"] .like-row,
:root[data-theme="dark"] .like-preview,
:root[data-theme="dark"] .likes-list-panel,
:root[data-theme="dark"] .like-conversation,
:root[data-theme="dark"] .like-profile-panel,
:root[data-theme="dark"] .match-strip,
:root[data-theme="dark"] .own-profile-card,
:root[data-theme="dark"] .profile-form,
:root[data-theme="dark"] .profile-tools article,
:root[data-theme="dark"] .ai-review-result,
:root[data-theme="dark"] .trust-card,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .admin-review-item,
:root[data-theme="dark"] .admin-empty,
:root[data-theme="dark"] .event-log,
:root[data-theme="dark"] .empty-state {
  background: rgba(20, 27, 39, 0.9);
}

:root[data-theme="dark"] .header-inner {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .nav-tabs,
:root[data-theme="dark"] .likes-filter {
  background: rgba(31, 42, 58, 0.76);
}

:root[data-theme="dark"] .nav-tab:hover,
:root[data-theme="dark"] .nav-tab.active,
:root[data-theme="dark"] .likes-filter button.active,
:root[data-theme="dark"] .likes-filter button:hover {
  background: rgba(245, 248, 255, 0.1);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .settings-button,
:root[data-theme="dark"] .secondary-action,
:root[data-theme="dark"] .rail-page-button,
:root[data-theme="dark"] .safety-target-option,
:root[data-theme="dark"] .button-grid button,
:root[data-theme="dark"] .admin-actions button {
  border-color: var(--line-strong);
  background: rgba(31, 42, 58, 0.86);
  color: var(--ink-soft);
}

:root[data-theme="dark"] .settings-button:hover,
:root[data-theme="dark"] .settings-button.active,
:root[data-theme="dark"] .secondary-action:hover:not(:disabled),
:root[data-theme="dark"] .rail-page-button:hover,
:root[data-theme="dark"] .safety-target-option:hover,
:root[data-theme="dark"] .safety-target-option.active,
:root[data-theme="dark"] .like-row:hover,
:root[data-theme="dark"] .like-row.active {
  background: rgba(43, 57, 78, 0.96);
}

:root[data-theme="dark"] .rail-page-button.primary {
  border-color: rgba(255, 64, 96, 0.35);
  background: var(--hot);
  color: #ffffff;
}

:root[data-theme="dark"] .screen-bar {
  background: linear-gradient(145deg, rgba(18, 27, 40, 0.98), rgba(24, 39, 57, 0.86));
}

:root[data-theme="dark"] .daily-status {
  background: rgba(20, 27, 39, 0.9);
}

:root[data-theme="dark"] .photo-grid {
  border-color: rgba(221, 232, 248, 0.18);
  background: rgba(20, 27, 39, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .photo-thumb {
  background: rgba(31, 42, 58, 0.92);
}

:root[data-theme="dark"] .mini-card.active {
  border-color: rgba(255, 66, 95, 0.48);
  background: linear-gradient(145deg, rgba(31, 42, 58, 0.98), rgba(59, 30, 42, 0.48));
  box-shadow:
    0 0 0 3px rgba(255, 66, 95, 0.1),
    0 0 10px rgba(255, 66, 95, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .match-card {
  border-color: rgba(221, 232, 248, 0.18);
  background: linear-gradient(180deg, #172233, #101722);
}

:root[data-theme="dark"] .match-card::before,
:root[data-theme="dark"] .match-card::after {
  background: rgba(245, 248, 255, 0.12);
}

:root[data-theme="dark"] .round-action,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(245, 248, 255, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .like-action {
  background: var(--hot);
  color: #ffffff;
}

:root[data-theme="dark"] .like-action svg {
  fill: #ffffff;
}

:root[data-theme="dark"] .likes-shell {
  --likes-chip-bg: rgba(31, 42, 58, 0.82);
  --likes-chip-border: rgba(221, 232, 248, 0.18);
  --likes-chip-text: #dce5f2;
}

:root[data-theme="dark"] .completion-card {
  background:
    linear-gradient(135deg, rgba(27, 43, 64, 0.95), rgba(21, 55, 56, 0.7));
}

:root[data-theme="dark"] .progress-track {
  background: rgba(245, 248, 255, 0.12);
}

:root[data-theme="dark"] .readiness-check {
  background: rgba(245, 248, 255, 0.07);
}

:root[data-theme="dark"] .admin-card-head span,
:root[data-theme="dark"] .profile-facts div,
:root[data-theme="dark"] .admin-stat,
:root[data-theme="dark"] .admin-meta-list div,
:root[data-theme="dark"] .message-bubble,
:root[data-theme="dark"] .rank-grid div {
  background: rgba(64, 130, 204, 0.16);
  color: #b9d9ff;
}

:root[data-theme="dark"] .message-bubble.outgoing {
  background: var(--hot);
  color: #ffffff;
}

:root[data-theme="dark"] .match-required-note {
  background: rgba(245, 248, 255, 0.08);
}

:root[data-theme="dark"] .first-message-card {
  background: rgba(20, 27, 39, 0.98);
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand copy actions"
      "nav nav nav";
    gap: 8px 14px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
    align-self: center;
  }

  .header-copy {
    grid-area: copy;
    align-self: center;
  }

  .header-actions {
    grid-area: actions;
    align-self: center;
    justify-self: end;
  }

  .nav-tabs {
    grid-area: nav;
    justify-self: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .discover-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "match details"
      "rail rail";
  }

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

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

  .profile-stack:not(.profile-stack--carousel),
  .rail-pagination {
    display: none;
  }

  .profile-stack--carousel {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-inline: -4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 4px 10px;
    scroll-padding-inline: 4px;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .profile-stack--carousel .mini-card {
    flex: 0 0 min(265px, 72vw);
    scroll-snap-align: start;
  }

  .match-details .photo-grid,
  .account-details .photo-grid {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .match-details .photo-thumb img,
  .account-details .photo-thumb img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 1040px) {
  .likes-browser {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
    grid-template-areas:
      "conversation profile"
      "list list";
    gap: 14px;
  }

  .likes-list-panel {
    grid-area: list;
  }

  .likes-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, min(34vw, 320px));
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    padding-inline: 18px 14px;
    scroll-padding-inline: 18px 14px;
    scroll-snap-type: x proximity;
  }

  .like-conversation {
    grid-area: conversation;
    min-height: min(430px, 50vh);
  }

  .like-profile-panel {
    grid-area: profile;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .like-profile-photo {
    height: clamp(210px, 28vw, 260px);
    min-height: 0;
    object-position: center top;
  }

  .like-profile-body {
    align-content: start;
    gap: 6px;
    padding: 12px;
  }

  .like-profile-body h3 {
    font-size: 1.36rem;
  }

  .like-profile-body p {
    font-size: 0.82rem;
  }

  .like-profile-body .pill-row {
    gap: 5px;
    margin-top: 2px;
  }

  .likes-shell .like-profile-body .pill-row span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .like-profile-body .secondary-action {
    min-height: 42px;
    margin-top: 2px;
    padding: 0 12px;
    border-radius: 18px;
  }

  .like-row {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 96px;
    scroll-snap-align: start;
  }

  .like-row img {
    width: 54px;
    height: 58px;
  }
}

@media (max-width: 840px) {
  .account-layout,
  .profile-layout,
  .profile-tools,
  .discover-layout,
  .likes-browser,
  .like-preview,
  .like-conversation,
  .like-profile-panel,
  .likes-tools {
    grid-template-columns: 1fr;
  }

  .likes-browser {
    grid-template-columns: minmax(0, 1fr) minmax(176px, 240px);
    grid-template-areas:
      "conversation profile"
      "list list";
  }

  .likes-list {
    grid-auto-columns: minmax(240px, min(74vw, 340px));
  }

  .like-conversation {
    min-height: 300px;
  }

  .like-profile-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .like-profile-photo {
    height: 210px;
    min-height: 0;
  }

  .discover-layout {
    grid-template-areas:
      "match"
      "details"
      "rail";
  }

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

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

  .daily-status {
    min-height: auto;
    grid-auto-flow: column;
    gap: 8px;
  }

  .panel-surface {
    padding: 16px;
  }

  .profile-stack--carousel .mini-card {
    flex-basis: min(285px, 82vw);
  }

  .match-card {
    min-height: 0;
  }

  .match-details {
    display: grid;
  }

  .profile-form,
  .own-profile-card,
  .rank-grid,
  .admin-summary-grid,
  .admin-meta-list,
  .settings-grid,
  .account-actions,
  .photo-grid,
  .like-card {
    grid-template-columns: 1fr;
  }

  .admin-review-item {
    grid-template-columns: 1fr;
  }

  .admin-review-item > img {
    width: 100%;
    height: 220px;
  }

  .match-details .photo-grid,
  .account-details .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .like-card img {
    width: 100%;
    height: 260px;
  }

  .likes-filter {
    overflow-x: auto;
  }

  .likes-list {
    max-height: none;
  }

  .like-preview-photo {
    min-height: 300px;
  }

  .like-preview-actions {
    grid-template-columns: 1fr;
  }

  .conversation-actions,
  .message-composer {
    grid-template-columns: 1fr;
  }

  .like-profile-photo {
    height: 210px;
  }
}

@media (max-width: 620px) {
  .likes-browser {
    grid-template-columns: 1fr;
    grid-template-areas:
      "conversation"
      "profile"
      "list";
  }

  .like-conversation {
    min-height: 280px;
  }

  .like-profile-panel {
    grid-template-columns: minmax(108px, 32vw) minmax(0, 1fr);
    align-items: stretch;
  }

  .like-profile-photo {
    height: 152px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "copy copy"
      "nav nav";
    gap: 10px;
    width: min(100% - 20px, 1180px);
    padding: 10px;
  }

  .app-main {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    width: fit-content;
    justify-content: center;
  }

  .settings-button {
    display: inline-grid;
    justify-self: end;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 18px;
  }

  .settings-button span {
    display: none;
  }

  .settings-button svg {
    width: 20px;
    height: 20px;
  }

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

  :root[data-header="compact"] .site-header {
    padding-top: 8px;
  }

  :root[data-header="compact"] .header-inner {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-areas: "brand nav actions";
    gap: 0;
    min-height: 62px;
    padding: 7px 10px;
  }

  :root[data-header="compact"] .brand {
    width: 42px;
    justify-self: start;
  }

  :root[data-header="compact"] .brand-icon {
    width: 30px;
    height: 34px;
    transform: translate(4px, -2px);
  }

  :root[data-header="compact"] .header-actions {
    width: 44px;
    justify-self: end;
  }

  :root[data-header="compact"] .settings-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  :root[data-header="compact"] .nav-tabs {
    justify-self: center;
    width: max-content;
    max-width: calc(100% - 120px);
    padding: 6px;
    overflow: visible;
  }

  :root[data-header="compact"] .nav-tab {
    min-width: 42px;
    padding: 0 8px;
    font-size: 0;
  }

  :root[data-header="compact"] .nav-tab svg {
    width: 19px;
    height: 19px;
  }

  .header-copy span {
    white-space: normal;
  }

  .nav-tabs {
    display: flex;
    justify-self: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    padding: 4px;
  }

  .nav-tab {
    min-width: 0;
    min-height: 42px;
    gap: 5px;
    padding: 0 6px;
    font-size: 0.9rem;
  }

  .nav-tab:nth-child(n + 4) {
    display: none;
  }

  .header-copy {
    grid-area: copy;
  }

  .screen-bar {
    padding: 20px 18px 16px;
  }

  .app-title h2 {
    font-size: 2.15rem;
  }

  .app-chrome {
    border-radius: 28px;
  }

  .panel-surface {
    padding: 12px;
  }

  .match-card {
    min-height: 0;
    border-radius: 30px;
  }

  .match-card::before,
  .match-card::after {
    border-radius: 28px;
  }

  .match-overlay {
    padding: 30px 24px 108px;
  }

  .match-overlay h3 {
    font-size: 2.55rem;
  }

  .round-action {
    width: 68px;
    height: 62px;
    border-radius: 25px;
  }

  .button-grid,
  .profile-facts,
  .readiness-checks,
  .like-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root[data-header="compact"] .nav-tabs {
    max-width: calc(100% - 116px);
  }

  :root[data-header="compact"] .nav-tab {
    min-width: 42px;
    padding: 0 8px;
    font-size: 0;
  }

  :root[data-header="compact"] .nav-tab svg {
    width: 19px;
    height: 19px;
  }
}
