:root {
  --background: #07101d;
  --surface: #101b2b;
  --surface-raised: #162438;
  --surface-soft: #1c2c42;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7fafc;
  --muted: #d4dee8;
  --accent: #173f67;
  --accent-strong: #0d3155;
  --warm: #ffb84d;
  --danger: #ff6b7a;
  --success: #45d483;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-active {
  overflow-y: auto;
  overflow-x: hidden;
  background: #050c16;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: var(--background);
}

.splash img { width: 128px; height: 128px; object-fit: contain; }
.splash strong { font-size: 30px; }
.splash span { color: var(--muted); }
.loader { width: 34px; height: 34px; margin-top: 18px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

.seo-landing {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  padding: 92px 22px 44px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 14% 12%, rgba(23, 63, 103, .20), transparent 34%),
    linear-gradient(180deg, #f5f8fc 0%, #eaf1f8 100%);
  color: #07101d;
}

.seo-landing::before,
.seo-landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.seo-landing::before {
  background:
    radial-gradient(circle at 16% 20%, rgba(0,177,235,.18) 0 8%, transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(236,63,140,.14) 0 9%, transparent 23%),
    radial-gradient(circle at 72% 82%, rgba(67,176,42,.13) 0 8%, transparent 24%),
    radial-gradient(circle at 22% 78%, rgba(255,143,0,.14) 0 7%, transparent 22%);
  filter: blur(2px);
  animation: landingFloat 18s ease-in-out infinite alternate;
}

.seo-landing::after {
  opacity: .42;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.46) 46%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(23,63,103,.035) 0 1px, transparent 1px 92px);
  transform: translateX(-28%);
  animation: landingShimmer 12s ease-in-out infinite;
}

.seo-landing > * {
  position: relative;
  z-index: 1;
}

.public-site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1040px, 100%);
  margin: 0 auto 22px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 42px rgba(8, 20, 33, .08);
  backdrop-filter: blur(14px);
}

.public-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #07101d;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
}

.public-site-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.public-site-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.public-site-nav a,
.public-site-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #173f67;
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.public-site-nav button {
  color: #fff;
  background: #173f67;
}

@keyframes landingFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18px, -16px, 0) scale(1.04); }
}

@keyframes landingShimmer {
  0%, 28% { transform: translateX(-48%); opacity: 0; }
  45% { opacity: .38; }
  74%, 100% { transform: translateX(48%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-landing::before,
  .seo-landing::after {
    animation: none;
  }
}

.seo-hero {
  position: relative;
  overflow: hidden;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(23, 63, 103, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 20, 33, .10);
}

.seo-hero::before {
  content: "";
  position: absolute;
  right: clamp(28px, 6vw, 82px);
  top: 72px;
  width: 210px;
  height: 210px;
  border-radius: 54px;
  opacity: .92;
  background:
    url('/assets/nammachat-app-icon.png') center / 94px 94px no-repeat,
    radial-gradient(circle at 28% 26%, rgba(255,255,255,.96) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 32%, rgba(236,63,140,.22) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(0,177,235,.20), rgba(236,63,140,.16) 58%, rgba(67,176,42,.16));
  box-shadow: 0 22px 60px rgba(31,55,72,.14);
  animation: heroChatFloat 5.5s ease-in-out infinite;
}

.seo-hero::after {
  content: "";
  position: absolute;
  right: clamp(168px, 14vw, 240px);
  top: 238px;
  width: 66px;
  height: 44px;
  border-radius: 18px 18px 18px 6px;
  background: #ec3f8c;
  box-shadow:
    96px -54px 0 -8px #173f67,
    142px 20px 0 -10px #43b02a,
    0 18px 42px rgba(236,63,140,.24);
  animation: heroBubbleFloat 4.8s ease-in-out infinite alternate;
}

.seo-hero img {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.seo-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 14px 0 14px;
  color: #07101d;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .98;
}

.seo-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0;
  color: #31445a;
  font-size: 18px;
  line-height: 1.65;
}

.seo-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.seo-actions .primary-button,
.seo-actions .secondary-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.seo-actions .primary-button[data-seo-action="chat"] {
  min-height: 58px;
  padding: 0 26px 0 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #173f67, #285b8a 54%, #ec3f8c);
  box-shadow: 0 18px 36px rgba(23,63,103,.24), 0 0 0 0 rgba(236,63,140,.28);
  animation: startChatPulse 2.4s ease-in-out infinite;
}

.seo-actions .primary-button[data-seo-action="chat"]::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-right: 11px;
  border-radius: 12px;
  background:
    url('/assets/nammachat-app-icon.png') center / 25px 25px no-repeat,
    rgba(255,255,255,.96);
  box-shadow: 0 8px 18px rgba(8,20,33,.18);
}

.seo-actions .primary-button[data-seo-action="chat"]::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: startChatShine 3.2s ease-in-out infinite;
}

.seo-actions .primary-button[data-seo-action="chat"]:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0d3155, #173f67 54%, #ec3f8c);
}

@keyframes heroChatFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(2deg); }
}

@keyframes heroBubbleFloat {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(10px, -14px, 0); }
}

@keyframes startChatPulse {
  0%, 100% { box-shadow: 0 18px 36px rgba(23,63,103,.24), 0 0 0 0 rgba(236,63,140,.28); }
  50% { box-shadow: 0 20px 42px rgba(23,63,103,.28), 0 0 0 8px rgba(236,63,140,0); }
}

@keyframes startChatShine {
  0%, 45% { left: -45%; }
  70%, 100% { left: 115%; }
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1040px, 100%);
  margin: 18px auto 0;
}

.public-preview-card,
.public-region-preview,
.public-guide-grid,
.public-footer {
  width: min(1040px, 100%);
  margin: 18px auto 0;
}

.public-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(8, 20, 33, .08);
}

.public-preview-heading h2 {
  margin: 6px 0 8px;
  color: #07101d;
  font-size: 26px;
}

.public-preview-heading p:last-child {
  max-width: 780px;
  margin: 0;
  color: #31445a;
  line-height: 1.62;
}

.public-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.public-region-preview {
  padding: 22px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(8, 20, 33, .08);
}

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

.public-region-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.public-region-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: #173f67;
}

.public-region-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-region-card strong,
.public-region-card span {
  display: block;
}

.public-region-card strong {
  color: #07101d;
  font-size: 15px;
}

.public-region-card span {
  margin-top: 3px;
  color: #44576d;
  font-size: 12px;
  line-height: 1.3;
}

.public-region-card button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #173f67;
  font-weight: 850;
  cursor: pointer;
}

.public-region-card button svg {
  width: 15px;
  height: 15px;
}

.public-region-card button span {
  margin: 0;
  color: #fff;
}

.public-region-loading {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(23, 63, 103, .22);
  border-radius: 14px;
  color: #31445a;
  background: #f8fbff;
  font-weight: 800;
}

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

.public-app-preview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  width: min(1040px, 100%);
  min-height: 520px;
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(8, 20, 33, .10);
}

.public-preview-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid rgba(23, 63, 103, .12);
  background: #f8fbff;
}

.public-preview-profile {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 63, 103, .12);
  text-align: center;
}

.public-preview-profile img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.public-preview-profile strong {
  color: #07101d;
  font-size: 15px;
}

.public-preview-profile span {
  color: #4d6075;
  font-size: 12px;
}

.public-preview-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.public-preview-sidebar button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: #173f67;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.public-preview-sidebar button i,
.public-preview-sidebar button svg {
  justify-self: center;
  width: 19px;
  height: 19px;
}

.public-preview-sidebar button.active {
  color: #fff;
  background: #173f67;
  box-shadow: 0 12px 26px rgba(23, 63, 103, .20);
}

.public-preview-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.public-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(23, 63, 103, .12);
}

.public-preview-topbar h2 {
  margin: 4px 0 0;
  color: #07101d;
  font-size: 30px;
}

.public-preview-content {
  min-height: 0;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.public-preview-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 16px;
  background: #fff;
}

.public-preview-panel h3 {
  margin: 0;
  color: #07101d;
  font-size: 26px;
}

.public-preview-panel > p {
  max-width: 720px;
  margin: 0;
  color: #31445a;
  line-height: 1.62;
}

.public-chat-preview-list,
.public-settings-list {
  display: grid;
  gap: 10px;
}

.public-chat-preview-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 13px;
  background: #f8fbff;
}

.public-chat-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: #173f67;
  font-weight: 900;
}

.public-chat-avatar.pink { background: #ec3f8c; }
.public-chat-avatar.green { background: #38a169; }

.public-chat-preview-list strong,
.public-chat-preview-list small {
  display: block;
}

.public-chat-preview-list strong {
  color: #07101d;
  font-size: 15px;
}

.public-chat-preview-list small {
  margin-top: 3px;
  color: #4d6075;
}

.public-chat-preview-list em {
  color: #173f67;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.public-preview-mini-grid,
.public-dating-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.public-preview-mini-grid article,
.public-dating-stack article {
  padding: 15px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 14px;
  background: #f8fbff;
}

.public-preview-mini-grid i,
.public-preview-mini-grid svg {
  width: 24px;
  height: 24px;
  color: #173f67;
}

.public-preview-mini-grid strong,
.public-preview-mini-grid span,
.public-dating-stack strong,
.public-dating-stack span {
  display: block;
}

.public-preview-mini-grid strong,
.public-dating-stack strong {
  margin-top: 8px;
  color: #07101d;
}

.public-preview-mini-grid span,
.public-dating-stack span {
  margin-top: 5px;
  color: #4d6075;
  font-size: 12px;
  line-height: 1.4;
}

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

.public-dating-photo {
  height: 128px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 24%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, #173f67, #6caef0);
}

.public-dating-photo.pink {
  background:
    radial-gradient(circle at 50% 24%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, #ec3f8c, #ff9dc7);
}

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

.public-settings-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 12px;
  color: #07101d;
  background: #f8fbff;
  font-weight: 850;
}

.public-support-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #173f67, #ec3f8c);
}

.public-support-preview i,
.public-support-preview svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.public-support-preview strong,
.public-support-preview span {
  display: block;
}

.public-guide-grid article {
  padding: 20px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 20, 33, .07);
}

.public-guide-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 13px;
  color: #fff;
  background: #173f67;
}

.public-guide-grid h2 {
  margin: 0;
  color: #07101d;
  font-size: 18px;
}

.public-guide-grid p {
  margin: 8px 0 0;
  color: #31445a;
  font-size: 13px;
  line-height: 1.6;
}

.public-article-section,
.public-faq-section {
  width: min(1040px, 100%);
  margin: 18px auto 0;
  padding: 22px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(8, 20, 33, .08);
}

.public-article-grid,
.public-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.public-article-grid a {
  display: block;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 14px;
  color: #07101d;
  background: linear-gradient(180deg, #f8fbff, #fff);
  text-decoration: none;
}

.public-article-grid strong,
.public-article-grid span {
  display: block;
}

.public-article-grid strong {
  font-size: 16px;
  line-height: 1.25;
}

.public-article-grid span {
  margin-top: 8px;
  color: #31445a;
  font-size: 13px;
  line-height: 1.5;
}

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

.public-faq-list article {
  padding: 16px;
  border: 1px solid rgba(23, 63, 103, .12);
  border-radius: 14px;
  background: #f8fbff;
}

.public-faq-list h3 {
  margin: 0;
  color: #07101d;
  font-size: 17px;
}

.public-faq-list p {
  margin: 8px 0 0;
  color: #31445a;
  font-size: 13px;
  line-height: 1.58;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 0 6px;
  border-top: 1px solid rgba(23, 63, 103, .14);
}

.public-footer strong {
  color: #07101d;
  font-size: 18px;
}

.public-footer p {
  max-width: 640px;
  margin: 6px 0 0;
  color: #31445a;
  font-size: 13px;
  line-height: 1.55;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.public-footer a {
  color: #173f67;
  text-decoration: none;
  font-weight: 850;
}

.public-content-page {
  min-height: 100vh;
  margin: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 12%, rgba(0,177,235,.15), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(236,63,140,.12), transparent 30%),
    linear-gradient(180deg, #f5f8fc 0%, #eaf1f8 100%);
  color: #07101d;
}

.content-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.content-hero,
.content-callout {
  padding: 34px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(8, 20, 33, .09);
}

.content-hero h1 {
  max-width: 840px;
  margin: 8px 0 12px;
  color: #07101d;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.content-hero p:last-child,
.content-callout p {
  max-width: 860px;
  margin: 0;
  color: #31445a;
  font-size: 17px;
  line-height: 1.65;
}

.content-grid,
.content-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.content-list {
  grid-template-columns: 1fr;
}

.content-grid article,
.content-list article {
  padding: 20px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 20, 33, .07);
}

.content-grid h2,
.content-list h2,
.content-callout h2 {
  margin: 0 0 8px;
  color: #07101d;
  font-size: 20px;
}

.content-grid p,
.content-list p {
  margin: 0;
  color: #31445a;
  line-height: 1.62;
}

.content-callout {
  margin-top: 18px;
}

.content-callout .primary-button {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
}

.login-required-modal {
  text-align: center;
}

.login-required-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #173f67, #ec3f8c);
}

.login-required-modal h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.login-required-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.58;
}

.seo-grid article {
  padding: 18px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 20, 33, .07);
}

.seo-grid strong {
  display: block;
  color: #07101d;
  font-size: 16px;
}

.seo-grid p {
  margin: 8px 0 0;
  color: #31445a;
  font-size: 13px;
  line-height: 1.55;
}

.roadmap-section {
  width: min(1040px, 100%);
  margin: 18px auto 0;
  padding: 22px;
  border: 1px solid rgba(244, 63, 143, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(8, 20, 33, .08);
}

.roadmap-heading h2 {
  margin: 6px 0 8px;
  color: #07101d;
  font-size: 26px;
}

.roadmap-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: #31445a;
  font-size: 14px;
  line-height: 1.55;
}

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

.roadmap-grid article {
  padding: 16px;
  border: 1px solid rgba(23, 63, 103, .14);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.roadmap-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  border-radius: 11px;
  color: #fff;
  background: #f43f8f;
}

.roadmap-grid svg {
  width: 20px;
  height: 20px;
}

.roadmap-grid strong {
  display: block;
  color: #07101d;
  font-size: 15px;
}

.roadmap-grid p {
  margin: 7px 0 0;
  color: #31445a;
  font-size: 12px;
  line-height: 1.55;
}

.mobile-download-banner {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1040px, 100%);
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid rgba(244, 63, 143, .76);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(13, 49, 85, .99), rgba(23, 63, 103, .98) 58%, rgba(117, 51, 95, .96)),
    #173f67;
  box-shadow: 0 20px 56px rgba(8, 20, 33, .18), inset 0 -3px 0 rgba(244, 63, 143, .85);
}

.mobile-download-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.mobile-download-icon svg {
  width: 27px;
  height: 27px;
  color: #fff;
  stroke: currentColor;
}

.mobile-download-copy span,
.mobile-download-copy strong {
  display: block;
}

.mobile-download-copy span {
  color: #ffb84d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mobile-download-copy strong {
  margin-top: 4px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.mobile-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  color: #fff;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.store-button svg {
  width: 16px;
  height: 16px;
  color: #f43f8f;
  stroke: currentColor;
}

.store-button span {
  color: #07101d;
}

.store-button[aria-disabled="true"] {
  cursor: default;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.store-button[aria-disabled="true"] svg,
.store-button[aria-disabled="true"] span {
  color: #fff;
}

.network-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.network-progress.active { opacity: 1; }
.network-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .65);
  animation: network-progress-slide 1s ease-in-out infinite;
}
@keyframes network-progress-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(370%); }
}

button.request-busy,
a.request-busy {
  position: relative;
  cursor: wait;
}
button.request-busy > *,
a.request-busy > * { opacity: .28; }
button.request-busy::after,
a.request-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-screen { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); min-height: 100vh; overflow: auto; }
.auth-brand-panel { position: relative; display: grid; align-items: end; min-height: 100vh; padding: 64px; background: #0e2130 url('/assets/nammachat-app-icon.png') center 18% / min(66%, 440px) no-repeat; }
.auth-brand-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,16,29,.18), rgba(7,16,29,.96) 68%); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 540px; }
.auth-brand-copy img { display: none; }
.auth-brand-copy h1 { margin: 0; font-size: 58px; line-height: 1; }
.auth-brand-copy p { max-width: 500px; margin: 18px 0 24px; color: #c3d0dc; font-size: 18px; line-height: 1.55; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; color: #dbe5ee; background: rgba(255,255,255,.05); font-size: 12px; }
.auth-form-panel { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 48px; background: #081421; }
.auth-card { width: min(520px, 100%); }
.mobile-brand { display: none; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h2 { margin: 4px 0 8px; font-size: 30px; }
.auth-heading p:last-child { margin: 0; color: rgba(255,255,255,.84); }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 700; }
.auth-tabs button.active { color: #fff; background: var(--accent); }
.auth-form { display: grid; gap: 15px; }
.auth-form label, .form-grid label, .setting-form label, .form-label { display: grid; gap: 7px; color: #d7e1ea; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--text); background: var(--surface); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 63, 103, .16); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 68px; }
.password-field button { position: absolute; right: 6px; top: 6px; height: 34px; border: 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 800; }
.password-field button { display: grid; place-items: center; width: 38px; padding: 0; }
.password-field button svg { width: 17px; height: 17px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-check { display: grid !important; grid-template-columns: 18px 1fr; align-items: start; line-height: 1.45; font-weight: 500 !important; }
.consent-check input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
a { color: var(--accent); }
.primary-button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 7px; color: #fff; background: var(--accent); font-weight: 750; }
.primary-button:hover { background: #0d3155; }
.primary-button:disabled { cursor: wait; opacity: .55; }
.primary-button.compact { min-height: 40px; }
.text-button { padding: 4px; border: 0; color: var(--accent); background: transparent; font-weight: 700; }
.primary-button,
.secondary-button,
.danger-button,
.store-button,
.top-support-button,
.support-pay-button,
.profile-photo-button,
.command-with-icon,
.member-popup-actions button,
.confirm-actions button {
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.15;
}
.primary-button,
.secondary-button,
.danger-button,
.store-button,
.top-support-button,
.support-pay-button,
.profile-photo-button,
.command-with-icon,
.confirm-actions button {
  display: inline-flex;
}
.primary-button span,
.secondary-button span,
.danger-button span,
.store-button span,
.top-support-button span,
.support-pay-button span,
.profile-photo-button span,
.command-with-icon span,
.member-popup-actions button span,
.confirm-actions button span {
  min-width: 0;
}
.primary-button svg,
.secondary-button svg,
.danger-button svg,
.store-button svg,
.top-support-button svg,
.support-pay-button svg,
.profile-photo-button svg,
.command-with-icon svg,
.member-popup-actions button svg,
.confirm-actions button svg {
  display: block;
  flex: 0 0 auto;
}
.align-right { justify-self: end; }
.guest-notice { padding: 13px; border-left: 3px solid var(--warm); border-radius: 0 6px 6px 0; background: rgba(255,184,77,.08); }
.guest-notice p { margin: 5px 0 0; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.45; }
.onboarding-language-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 2px;
}
.onboarding-language-list button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-raised);
  font-weight: 800;
}
.onboarding-language-list button:hover {
  border-color: rgba(236, 63, 140, .55);
}
.onboarding-language-list button.selected {
  border-color: #ec3f8c;
  color: #fff;
  background: #ec3f8c;
  box-shadow: 0 12px 24px rgba(236, 63, 140, .22);
}
.onboarding-language-list button.selected svg,
.onboarding-language-list button.selected span {
  color: #fff;
}
.onboarding-language-list svg {
  width: 17px;
  height: 17px;
}
.reset-code-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reset-code-actions button { width: 100%; }
.form-message { min-height: 24px; margin-top: 13px; color: var(--danger); font-size: 13px; }
.form-message.success { color: var(--success); }

.app-screen {
  min-height: 100vh;
  background: #050c16;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(244,63,143,.52);
  background: rgba(11,95,145,.97);
  box-shadow: 0 8px 24px rgba(3,46,74,.18);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 66px;
  margin: 0 auto;
  padding: 0 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
}

.site-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.site-navigation button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.site-navigation button:hover,
.site-navigation button:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.site-navigation svg {
  width: 17px;
  height: 17px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
}

.theme-toggle:hover {
  border-color: rgba(23, 63, 103, .45);
  background: var(--surface-raised);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.auth-theme-toggle {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
}

.chat-ad-frame {
  display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(720px, 1180px) minmax(110px, 170px);
  grid-template-rows: auto minmax(0, 1fr);
  justify-content: center;
  gap: 10px;
  height: min(960px, calc(100dvh - 110px));
  min-height: min(780px, calc(100dvh - 110px));
  margin-bottom: 0;
  padding: 10px;
  overflow: hidden;
  background: #050c16;
}

.app-download-banner {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

.chat-ad-frame > .lease-ad-top {
  display: none;
}

.portal-information {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
}

.support-safety-warning {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  margin-top: 0;
  padding: 13px;
  border: 1px solid rgba(255, 184, 77, .32);
  border-left: 4px solid var(--warm);
  border-radius: 7px;
  background: rgba(255, 184, 77, .07);
}

.support-warning-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--warm);
  background: rgba(255, 184, 77, .12);
}

.support-warning-icon svg {
  width: 19px;
  height: 19px;
}

.support-safety-warning strong {
  color: #fff;
  font-size: 14px;
}

.support-safety-warning p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.55;
}

.portal-information {
  padding: 38px 0 28px;
}

.about-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0 32px;
}

.about-summary-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(23, 63, 103, .26);
  border-radius: 50%;
  background: rgba(23, 63, 103, .08);
}

.about-summary-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.about-summary-copy h2 {
  margin: 7px 0 10px;
  color: #fff;
  font-size: 24px;
}

.about-summary-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 7px 0 0;
  color: #d6e0e8;
  font-size: 13px;
  line-height: 1.65;
}

.about-highlights {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.about-highlights span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 12px;
}

.about-highlights svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.portal-roadmap {
  width: 100%;
  margin: 0 0 28px;
  background: #0b1726;
  border-color: rgba(244, 63, 143, .28);
}

.portal-roadmap .roadmap-heading h2,
.portal-roadmap .roadmap-grid strong {
  color: #fff;
}

.portal-roadmap .roadmap-heading p:last-child,
.portal-roadmap .roadmap-grid p {
  color: rgba(255,255,255,.78);
}

.portal-roadmap .roadmap-grid article {
  border-color: rgba(255,255,255,.10);
  background: #101b2b;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.site-footer-brand {
  display: grid;
  gap: 4px;
}

.site-footer-brand strong {
  color: #fff;
  font-size: 16px;
}

.site-footer-brand span,
.site-footer-copyright {
  color: #c9d4df;
  font-size: 11px;
}

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

.site-footer-links a,
.site-footer-links button {
  padding: 5px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links button:hover {
  color: var(--accent);
}

.site-footer-copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}

.app-core {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 94px minmax(300px, 370px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--background);
  box-shadow: var(--shadow);
}

.app-core.profile-mode { grid-template-columns: 94px minmax(0, 1fr); }
.app-core.profile-mode .collection-pane { display: none; }
.app-core.profile-mode .detail-pane { grid-column: 2; }

.chat-ad-frame.ads-hidden {
  grid-template-columns: minmax(720px, 1180px);
  grid-template-rows: auto minmax(0, 1fr);
}
.chat-ad-frame.ads-hidden .lease-ad { display: none; }
.chat-ad-frame.ads-hidden .app-download-banner { grid-column: 1; grid-row: 1; display: grid; }
.chat-ad-frame.ads-hidden .app-core { grid-column: 1; grid-row: 2; }

.lease-ad {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, .17);
  border-radius: 6px;
  color: #fff;
  background: #0a1523;
  text-align: center;
}

.lease-ad span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.lease-ad strong {
  margin-top: 4px;
  color: #cbd7e3;
  font-size: 12px;
}

.lease-ad small {
  margin-top: 3px;
  font-size: 9px;
}
.lease-ad .ad-label { position: absolute; z-index: 2; top: 3px; left: 6px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 600; }
.lease-ad .adsbygoogle { width: 100%; min-width: 1px; min-height: 40px; }

.support-top-banner {
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  place-content: stretch;
  justify-items: stretch;
  align-items: center;
  gap: 15px;
  align-self: stretch;
  justify-self: center;
  width: min(920px, calc(100% - 32px));
  height: auto;
  margin: 4px 0 12px;
  padding: 14px 18px;
  border-style: solid;
  border-color: rgba(244, 63, 143, .72);
  border-radius: 8px;
  background: linear-gradient(120deg, #0b5f91 0%, #173f67 62%, #75335f 100%);
  box-shadow: 0 16px 30px rgba(3, 25, 45, .38), 0 5px 12px rgba(3, 46, 74, .24);
  text-align: left;
}

.support-top-banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #08a9e6 0 38%, #f43f8f 38% 70%, #ff9700 70% 85%, #48b916 85% 100%);
}

.support-top-banner .support-story-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #0b5f91;
  background: #fff;
}

.support-story-icon svg {
  width: 25px;
  height: 25px;
}

.support-top-banner .support-story-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  color: #fff;
  text-transform: none;
}

.support-top-banner .support-story-kicker {
  color: #ffd166;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.support-top-banner .support-story-copy strong {
  margin: 1px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
}

.support-top-banner .support-story-copy small {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding-right: 16px;
  padding-left: 16px;
  white-space: nowrap;
}

.top-support-button svg {
  width: 17px;
  height: 17px;
}

.support-top-banner .top-support-button span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.lease-ad-top { grid-column: 1 / -1; grid-row: 2; }
.lease-ad-left { grid-column: 1; grid-row: 2; }
.lease-ad-right { grid-column: 3; grid-row: 2; }
.lease-ad-left[data-ad-mounted="true"],
.lease-ad-right[data-ad-mounted="true"] {
  align-content: start;
  padding: 10px 4px;
}
.lease-ad-left[data-ad-mounted="true"] .adsbygoogle,
.lease-ad-right[data-ad-mounted="true"] .adsbygoogle {
  width: 100%;
  min-height: 100%;
}
.app-sidebar { display: flex; flex-direction: column; align-items: center; padding: 18px 12px; border-right: 1px solid var(--line); background: #091422; }
.sidebar-account-wrap { position: relative; width: 100%; }
.sidebar-account-button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0 2px 10px; border: 0; border-bottom: 1px solid var(--line); color: #fff; background: transparent; text-align: center; }
.sidebar-account-button:hover, .sidebar-account-button[aria-expanded="true"] { color: #fff; }
.sidebar-avatar { width: 48px; height: 48px; font-size: 13px; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.sidebar-account-copy { display: grid; gap: 2px; width: 100%; min-width: 0; }
.sidebar-account-copy strong, .sidebar-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy strong { color: #fff; font-size: 11px; }
.sidebar-account-copy small { color: rgba(255,255,255,.76); font-size: 9px; }
.sidebar-account-wrap .account-menu { top: 0; right: auto; left: calc(100% + 13px); }
.app-nav { display: grid; gap: 8px; width: 100%; margin-top: 24px; }
.app-nav button { display: grid; justify-items: center; gap: 4px; min-height: 64px; padding: 8px 3px; border: 0; border-radius: 7px; color: #fff; background: transparent; font-size: 10px; font-weight: 650; }
.app-nav button:hover, .app-nav button.active { color: var(--text); background: var(--surface-raised); }
.app-nav button.active .nav-icon { color: #fff; background: var(--accent); }
.nav-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.nav-icon svg { width: 15px; height: 15px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.group { color: #362000; background: var(--warm); }
.avatar.female { color: #330e24; background: #ff83bd; }
.avatar.male { color: #071b35; background: #75b7ff; }

.collection-pane { display: grid; grid-template-rows: 84px auto minmax(0, 1fr); min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: #0d1928; }
.pane-header { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 18px; border-bottom: 1px solid var(--line); }
.pane-header h2 { margin: 3px 0 0; font-size: 23px; }
.pane-header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); font-size: 11px; font-weight: 800; }
.icon-button svg { width: 18px; height: 18px; stroke-width: 2; }
.pane-action { min-height: 36px; padding: 0; }
.account-menu { position: absolute; z-index: 90; top: calc(100% + 9px); right: 0; width: min(310px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #122033; box-shadow: 0 22px 55px rgba(0,0,0,.48); }
.account-menu-profile { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 11px; align-items: center; padding: 15px; background: #17273b; }
.account-menu-avatar { width: 48px; height: 48px; font-size: 14px; }
.account-menu-profile strong, .account-menu-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-profile strong { font-size: 14px; }
.account-menu-profile small { margin-top: 4px; color: rgba(255,255,255,.82); font-size: 11px; }
.account-menu-status { display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid var(--line); color: rgba(255,255,255,.82); font-size: 10px; }
.account-menu-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(69,212,131,.12); }
.account-menu-actions { display: grid; padding: 6px; }
.account-menu-actions button { display: grid; grid-template-columns: 34px minmax(0,1fr) 16px; gap: 9px; align-items: center; width: 100%; min-height: 54px; padding: 7px 8px; border: 0; border-radius: 6px; color: var(--text); background: transparent; text-align: left; }
.account-menu-actions button:hover { background: var(--surface-soft); }
.account-menu-actions button > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: #fff; background: var(--accent); }
.account-menu-actions button svg { width: 17px; height: 17px; }
.account-menu-actions button > svg { width: 15px; height: 15px; color: var(--muted); }
.account-menu-actions strong, .account-menu-actions small { display: block; }
.account-menu-actions strong { font-size: 12px; }
.account-menu-actions small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 9px; }
.account-menu-actions .logout { color: var(--danger); }
.account-menu-actions .logout > span:first-child { color: var(--danger); background: rgba(255,107,122,.1); }
.account-menu-actions .logout > span:first-child svg {
  color: var(--danger);
  stroke: currentColor;
}
.search-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; margin: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.search-field span { color: var(--muted); font-size: 11px; }
.search-field span svg { width: 16px; height: 16px; }
.search-field input { min-height: 40px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.collection-content { display: grid; align-content: start; gap: 7px; min-height: 0; overflow: auto; padding: 0 9px 18px; }
.list-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 68px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; color: var(--text); background: #101c2c; box-shadow: 0 5px 16px rgba(0,0,0,.10); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.list-item:hover { border-color: rgba(143,180,212,.34); background: #17283d; transform: translateY(-1px); }
.list-item.active { border-color: rgba(143,180,212,.46); background: #1a2d43; box-shadow: inset 3px 0 0 #8fb4d4; }
.list-item.unread { border-color: rgba(143,180,212,.48); background: #142f4a; box-shadow: inset 4px 0 0 #4f86b5, 0 7px 20px rgba(0,0,0,.18); }
.list-item.unread:hover, .list-item.unread.active { border-color: rgba(143,180,212,.68); background: #193a59; }
.list-item.unread .list-item-copy strong { color: #fff; font-weight: 750; }
.list-item.unread .list-item-copy span { color: rgba(255,255,255,.86); font-weight: 600; }
.list-item.unread .list-meta { color: #fff; font-weight: 700; }
.list-item.unread > .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.list-item-copy { min-width: 0; }
.list-item-copy strong, .list-item-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-copy strong { color: #fff; font-size: 13px; font-weight: 650; }
.list-item-copy span { margin-top: 4px; color: rgba(255,255,255,.8); font-size: 11px; }
.list-item > .avatar,
.list-item > .nav-icon,
.region-row-icon,
.region-state-header img,
.region-state-header .region-state-avatar,
.profile-main-avatar,
.dating-upload-avatar {
  align-self: center;
}
.list-item-copy,
.region-row-copy,
.profile-summary-copy,
.dating-card-copy,
.dating-stack-copy {
  align-self: center;
}
.list-item-copy strong,
.region-row-copy strong,
.profile-summary-copy h3,
.dating-card-copy h3 {
  line-height: 1.15;
}
.list-meta { display: grid; justify-items: end; align-self: stretch; align-content: space-between; gap: 6px; min-width: 40px; color: var(--muted); font-size: 9px; }
.list-meta time { white-space: nowrap; }
.unread-dot { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: #f43f8f; box-shadow: 0 0 0 3px rgba(244,63,143,.16); }
.empty-list { padding: 45px 22px; color: var(--muted); text-align: center; line-height: 1.6; }

.detail-pane { min-width: 0; min-height: 0; overflow: hidden; background: #08131f; }
.empty-detail { display: grid; place-content: center; justify-items: center; height: 100%; padding: 28px; text-align: center; }
.empty-detail img { width: 112px; height: 112px; object-fit: contain; opacity: .9; }
.empty-detail h2 { margin: 12px 0 7px; }
.empty-detail p { margin: 0 0 20px; color: var(--muted); }
.detail-content { height: 100%; min-height: 0; }
.conversation-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns .2s ease;
}

.conversation-shell.member-open {
  grid-template-columns: minmax(0, 1fr) 292px;
}

.chat-layout { display: grid; grid-template-rows: 72px minmax(0,1fr) auto; height: 100%; min-height: 0; overflow: hidden; padding-bottom: 14px; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-header-copy { min-width: 0; flex: 1; }
.chat-header-copy strong, .chat-header-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-copy span { margin-top: 3px; color: rgba(255,255,255,.8); font-size: 11px; }
.header-actions { display: flex; gap: 7px; }
.header-actions .secondary-button,
.header-actions .danger-button { min-height: 36px; padding: 0 11px; font-size: 11px; white-space: nowrap; }
.mobile-back { display: none; }
.message-list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 5vw, 70px) 18px; background: #08131f; }
.message-row { display: flex; margin-bottom: 9px; }
.message-row.own { justify-content: flex-end; }
.message-bubble { max-width: min(680px, 74%); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px 8px 8px 2px; background: var(--surface-raised); }
.message-row.own .message-bubble { border-color: rgba(23,63,103,.38); border-radius: 8px 8px 2px 8px; background: #17324c; }
.message-sender { display: block; margin-bottom: 4px; color: var(--warm); font-size: 11px; font-weight: 700; }
.message-text { margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-time { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; text-align: right; }
.chat-composer { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0,1fr) 54px; gap: 6px 9px; min-height: 94px; padding: 7px 18px 12px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 24px rgba(0,0,0,.16); }
.chat-composer textarea { grid-column: 1; grid-row: 1; height: 44px; min-height: 44px; max-height: 116px; padding: 11px 13px; overflow-y: hidden; resize: none; transition: height .12s ease; }
.composer-toolbar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 28px; }
.composer-tool-wrap { position: relative; }
.composer-tool { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: rgba(255,255,255,.86); background: transparent; }
.composer-tool:hover, .composer-tool.active { color: var(--text); border-color: var(--line); background: var(--surface-raised); }
.composer-tool svg { width: 17px; height: 17px; }
.composer-picker { position: absolute; z-index: 40; bottom: 37px; left: 0; display: grid; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #172538; box-shadow: var(--shadow); }
.emoji-picker { grid-template-columns: repeat(5, 34px); }
.sticker-picker { grid-template-columns: repeat(4, 44px); }
.emoji-picker button, .sticker-picker button { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 5px; background: transparent; }
.emoji-picker button { width: 34px; height: 34px; font-size: 20px; }
.sticker-picker button { width: 44px; height: 44px; font-size: 30px; }
.emoji-picker button:hover, .sticker-picker button:hover { background: var(--surface-soft); }
.color-picker { grid-template-columns: repeat(5, 30px); gap: 5px; }
.color-swatch { width: 30px; height: 30px; padding: 0; border: 2px solid rgba(255,255,255,.26); border-radius: 50%; }
.color-swatch.selected { outline: 2px solid #fff; outline-offset: 2px; }
.color-default { background: #f7fafc; }
.color-mint { background: #2d5f8f; }
.color-blue { background: #71b7ff; }
.color-amber { background: #ffc45c; }
.color-rose { background: #ff8aa1; }
.composer-size { display: grid; grid-template-columns: 17px auto; align-items: center; gap: 4px; margin-left: 2px; color: #fff; }
.composer-size svg { width: 16px; height: 16px; }
.composer-size select { min-height: 30px; max-width: 86px; padding: 3px 6px; border-radius: 6px; font-size: 11px; }
.send-button { grid-column: 2; grid-row: 1; align-self: end; display: grid; place-items: center; height: 44px; border: 0; border-radius: 7px; color: #fff; background: var(--accent); font-weight: 900; }
.send-button svg { width: 20px; height: 20px; }
.message-text.text-color-mint { color: #9bbbd6; }
.message-text.text-color-blue { color: #71b7ff; }
.message-text.text-color-amber { color: #ffc45c; }
.message-text.text-color-rose { color: #ff8aa1; }
.message-text.text-bold { font-weight: 800; }
.message-text.text-size-small { font-size: 12px; }
.message-text.text-size-normal { font-size: 14px; }
.message-text.text-size-large { font-size: 18px; }
.message-bubble.sticker-bubble { border-color: transparent; background: transparent; box-shadow: none; }
.message-row.own .message-bubble.sticker-bubble { border-color: transparent; background: transparent; }
.message-text.sticker-message { font-size: 48px; line-height: 1.1; }
.danger-icon { color: var(--danger); border-color: rgba(255, 107, 122, .38); }
.command-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.command-with-icon svg { width: 18px; height: 18px; }

.group-member-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 292px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #0d1928;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .18s ease, transform .18s ease;
}

.conversation-shell.member-open .group-member-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

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

.member-panel-header strong,
.member-panel-header span {
  display: block;
}

.member-panel-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.member-panel-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.member-panel-controls label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.member-panel-controls label svg {
  width: 16px;
  height: 16px;
}

.member-panel-controls input,
.member-panel-controls select {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 11px;
}

.member-filter-wrap {
  position: relative;
}

.member-filter-menu {
  position: absolute;
  z-index: 25;
  top: 42px;
  right: 0;
  width: 226px;
  padding: 8px;
  border: 1px solid #30465d;
  border-radius: 8px;
  background: #122033;
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
}

.member-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 2px 8px 7px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.member-filter-heading svg {
  width: 15px;
  height: 15px;
}

.member-filter-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 16px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.member-filter-menu button.filter-section-end {
  margin-bottom: 6px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 7px 7px 0 0;
}

.filter-option-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: #263a50;
}

.filter-option-icon svg {
  width: 16px;
  height: 16px;
}

.filter-option-icon.female { background: #a53d70; }
.filter-option-icon.male { background: #315f91; }
.filter-option-icon.other { background: #596477; }
.filter-option-copy, .filter-option-copy strong, .filter-option-copy small { display: block; min-width: 0; }
.filter-option-copy strong { color: #fff; font-size: 11px; }
.filter-option-copy small { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 9px; }
.filter-option-check { width: 15px; height: 15px; color: #fff; opacity: 0; }
.member-filter-menu button.active .filter-option-check { opacity: 1; }
.member-filter-menu button.active .filter-option-icon { box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.member-filter-menu button:focus-visible { outline: 2px solid #8fb4d4; outline-offset: -2px; }

.member-filter-menu button:hover {
  background: #1a2d43;
}

.member-filter-menu button.active {
  color: #fff;
  background: #203a55;
}

.group-member-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.group-member-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(0,0,0,.10);
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.group-member-item:hover,
.group-member-item:focus-visible {
  border-color: rgba(143,180,212,.48);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.group-member-item .avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.14);
  font-size: 12px;
}

.group-member-copy {
  min-width: 0;
}

.group-member-copy strong,
.group-member-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-copy strong {
  color: var(--text);
  font-size: 13px;
}

.group-member-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.group-member-state { display: grid; justify-items: end; gap: 5px; }
.member-online { display: inline-flex !important; align-items: center; gap: 5px; color: var(--success); font-size: 8px; font-weight: 750; }
.member-online i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(69,212,131,.12); }

.gender-label {
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
}

.gender-label.female { color: #ff9cca; background: rgba(255, 131, 189, .12); }
.gender-label.male { color: #94c7ff; background: rgba(117, 183, 255, .12); }
.gender-label.none, .gender-label.other { color: var(--warm); background: rgba(255, 184, 77, .1); }

.member-popup-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.member-popup-profile .avatar {
  width: 56px;
  height: 56px;
}

.member-popup-profile strong,
.member-popup-profile span {
  display: block;
}

.member-popup-profile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.member-popup-actions {
  display: grid;
  gap: 7px;
}

.member-popup-actions button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-raised);
  text-align: left;
}

.member-popup-actions button:hover {
  border-color: rgba(23, 63, 103, .48);
}

.member-popup-actions button > svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  justify-self: center;
}

.member-popup-actions strong,
.member-popup-actions small {
  display: block;
}

.member-popup-actions small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.member-popup-actions button.danger,
.member-popup-actions button.danger > svg {
  color: var(--danger);
}

.region-state { margin-bottom: 22px; }
.region-state-header { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #29415b; border-radius: 8px; background: #132438; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.region-state-header img { width: 54px; height: 54px; object-fit: cover; border: 2px solid var(--surface-soft); border-radius: 50%; background: var(--surface-soft); }
.region-state-header .region-state-avatar { width: 54px; height: 54px; border: 2px solid var(--surface-soft); font-size: 14px; }
.region-state-header strong, .region-state-header span { display: block; }
.region-state-header > div > strong { color: #fff; font-size: 14px; }
.region-state-header > div > span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.region-count { min-width: 48px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: var(--muted); background: #1d334a; text-align: center; }
.region-count strong { color: var(--text); font-size: 13px; }
.region-count small { margin-top: 1px; font-size: 8px; text-transform: uppercase; }
.region-list { display: grid; gap: 8px; width: calc(100% - 14px); margin-left: 14px; padding: 10px 0 0 10px; border-left: 2px solid #29415b; }
.region-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid #2a4057; border-radius: 8px; color: var(--text); background: #17283a; box-shadow: 0 5px 14px rgba(0,0,0,.10); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.region-row:hover, .region-row:focus-visible { border-color: rgba(40,91,138,.62); background: var(--surface-raised); transform: translateY(-1px); }
.region-row-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: #fff; background: var(--accent); }
.region-row-icon svg { width: 18px; height: 18px; }
.region-row-copy, .region-row-copy strong, .region-row-copy small { display: block; min-width: 0; }
.region-row-copy strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.region-row-copy small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.region-row-status { display: flex; align-items: center; gap: 4px; color: var(--accent); }
.region-row-status strong { font-size: 9px; }
.region-row-status svg { width: 15px; height: 15px; }
.region-row.joined { border-color: rgba(40,91,138,.48); background: rgba(40,91,138,.12); }
.region-row.joined .region-row-status { color: #8fb4d4; }

.page-view { height: 100%; overflow: auto; padding: clamp(20px, 4vw, 48px); }
.page-view-header { margin-bottom: 24px; }
.page-view-header h2 { margin: 4px 0 7px; font-size: 28px; }
.page-view-header p { margin: 0; color: rgba(255,255,255,.82); }
.profile-hero { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-hero .avatar { width: 104px; height: 104px; font-size: 28px; }
.profile-hero h3 { margin: 0; font-size: 24px; }
.profile-hero p { margin: 5px 0 0; color: var(--muted); }
.profile-page { display: grid; grid-template-rows: auto auto minmax(0, 1fr); padding: 0; overflow: hidden; background: #08131f; }
.profile-page-header { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; align-items: center; padding: 20px clamp(20px,4vw,48px); border-bottom: 1px solid var(--line); background: #101d2e; }
.profile-page-header h2 { margin: 4px 0 4px; color: #fff; font-size: 28px; }
.profile-page-header p:last-child { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.profile-summary { display: grid; grid-template-columns: 116px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 28px clamp(20px,5vw,64px); border-bottom: 1px solid var(--line); background: #0d1a2a; }
.profile-avatar-upload {
  position: relative;
  width: 116px;
  height: 116px;
}
.profile-main-avatar { width: 116px; height: 116px; border: 4px solid rgba(255,255,255,.14); font-size: 30px; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.profile-summary-copy { min-width: 0; }
.profile-summary-copy h3 { margin: 0; overflow: hidden; color: #fff; font-size: 27px; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary-copy p { margin: 6px 0 0; color: var(--accent); font-size: 14px; font-weight: 750; }
.profile-summary-copy span { display: block; margin-top: 8px; overflow: hidden; color: rgba(255,255,255,.78); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-photo-button {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 3px solid #0d1a2a;
  border-radius: 50%;
  color: #fff;
  background: #ec3f8c;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.26);
}
.profile-photo-button span { display: none; }
.profile-photo-button svg { width: 17px; height: 17px; color: #fff; }
.profile-edit-form { align-content: start; width: min(1100px,100%); max-height: 100%; min-height: 0; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; }
.profile-form-section { display: grid; grid-template-columns: minmax(190px,260px) minmax(0,1fr); gap: clamp(22px,4vw,54px); padding: 28px clamp(20px,5vw,64px); border-bottom: 1px solid var(--line); }
.profile-section-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-content: start; }
.profile-section-heading > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: #fff; background: var(--accent); }
.profile-section-heading svg { width: 20px; height: 20px; }
.profile-section-heading h3 { margin: 1px 0 5px; color: #fff; font-size: 17px; }
.profile-section-heading p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.4; }
.profile-page .form-grid { max-width: none; }
.profile-page .form-grid label, .profile-page .form-grid label > span { color: #fff; }
.profile-page .form-grid label > span { font-size: 13px; font-weight: 750; }
.profile-page input, .profile-page select, .profile-page textarea { color: #fff; background: #101e30; }
.profile-page textarea { min-height: 128px; }
.profile-readonly-field { align-content: start; }
.profile-locked-value { display: grid !important; grid-template-columns: 20px minmax(0,1fr); gap: 2px 9px; align-items: center; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); }
.profile-locked-value svg { grid-row: 1 / 3; width: 17px; height: 17px; color: var(--muted); }
.profile-locked-value strong { color: var(--text); font-size: 13px; }
.profile-locked-value small { color: var(--muted); font-size: 9px; font-weight: 500; }
.profile-save-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px clamp(20px,5vw,64px) 50px; border-top: 1px solid rgba(255,255,255,.12); background: #0a1624; }
.profile-save-bar > span { color: rgba(255,255,255,.74); font-size: 12px; }
.profile-save-bar .primary-button { min-width: 160px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; max-width: 850px; }
.form-grid .wide { grid-column: 1 / -1; }
.dating-page { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; padding: 0; overflow: hidden; background: #08131f; }
.dating-page .dating-content { display: grid; gap: 16px; min-height: 0; overflow: hidden; padding: 16px 18px 18px; }
.dating-page-header { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.dating-page-header > div { min-width: 0; }
.dating-page-header p:last-child { max-width: 760px; line-height: 1.45; }
.dating-page-header h2 { font-size: 24px; }
.dating-page-header p:last-child { font-size: 12px; }
.dating-mobile-tabs { display: none; }
.dating-tab-icon { border-radius: 10px; }
.dating-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dating-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #101c2c;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.dating-photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: #17283d; }
button.dating-photo { cursor: zoom-in; }
button.dating-photo:focus-visible { outline: 3px solid #ec3f8c; outline-offset: -3px; }
.dating-photo img, .dating-photo .avatar { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.dating-card-copy { display: grid; gap: 9px; padding: 0 14px; }
.dating-card-copy h3 { margin: 0; color: #fff; font-size: 20px; line-height: 1.15; }
.dating-card-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.45; }
.dating-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dating-tags span { padding: 5px 8px; border-radius: 999px; color: #fff; background: rgba(79,134,181,.30); font-size: 11px; font-weight: 750; }
.dating-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px 14px; }
.dating-card-actions .primary-button,
.dating-card-actions .secondary-button { min-height: 42px; }
.dating-preview-card { padding: 18px; }
.dating-stack-wrap {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 0;
}
.dating-stack-stage {
  position: relative;
  width: min(100%, 420px);
  height: min(68vh, 620px);
  min-height: 480px;
}
.dating-stack-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #101c2c;
  box-shadow: 0 24px 52px rgba(0,0,0,.28);
  transform: translateY(calc(var(--i) * 10px)) scale(calc(1 - (var(--i) * .035)));
  transform-origin: center bottom;
  transition: transform .22s ease, opacity .22s ease, box-shadow .18s ease;
  z-index: calc(20 - var(--i));
  touch-action: pan-y;
}
.dating-stack-card.top {
  cursor: grab;
}
.dating-stack-card.dragging {
  cursor: grabbing;
  transition: none;
}
.dating-stack-card.leaving {
  pointer-events: none;
}
.dating-stack-card.leaving-like {
  opacity: 0;
  transform: translateX(130%) rotate(18deg);
}
.dating-stack-card.leaving-skip {
  opacity: 0;
  transform: translateX(-130%) rotate(-18deg);
}
.dating-stack-photo {
  aspect-ratio: auto;
  min-height: 0;
}
.dating-stack-copy {
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, rgba(16,28,44,.88), #101c2c);
}
.dating-stack-copy h3 {
  font-size: 24px;
}
.dating-stack-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 18px;
  background: #101c2c;
}
.dating-stack-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.dating-stack-actions button:disabled {
  cursor: wait;
  opacity: .68;
}
.dating-skip-button {
  background: #e53935;
}
.dating-like-button {
  background: #ec3f8c;
}
.dating-stack-actions svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.dating-swipe-badge {
  position: absolute;
  top: 22px;
  z-index: 3;
  padding: 8px 14px;
  border: 3px solid currentColor;
  border-radius: 10px;
  background: rgba(255,255,255,.90);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-12deg);
}
.dating-swipe-like {
  left: 22px;
  color: #ec3f8c;
}
.dating-swipe-skip {
  right: 22px;
  color: #e53935;
  transform: rotate(12deg);
}
.dating-stack-card[data-swipe-hint="like"] .dating-swipe-like,
.dating-stack-card[data-swipe-hint="skip"] .dating-swipe-skip {
  opacity: 1;
}
.dating-stack-count {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 750;
}
.dating-stack-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: min(58vh, 520px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  color: #fff;
  background: #101c2c;
  text-align: center;
}
.dating-stack-empty > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: #ec3f8c;
}
.dating-stack-empty svg {
  width: 26px;
  height: 26px;
}
.dating-stack-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}
.dating-stack-empty p {
  max-width: 360px;
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.5;
}
.dating-photo-upload-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #101c2c;
}
.dating-photo-upload {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  cursor: pointer;
}
.dating-upload-avatar {
  width: 104px;
  height: 104px;
  border: 4px solid rgba(255,255,255,.14);
  font-size: 28px;
  box-shadow: 0 14px 32px rgba(0,0,0,.24);
}
.dating-photo-camera {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #101c2c;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
}
.dating-photo-camera svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke: currentColor;
}
.dating-photo-upload-card strong,
.dating-photo-upload-card p {
  display: block;
  margin: 0;
}
.dating-photo-upload-card strong {
  color: #fff;
  font-size: 16px;
}
.dating-photo-upload-card p {
  margin-top: 6px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.45;
}
.dating-profile-form {
  align-content: start;
  max-width: none;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 10px 12px;
  padding: 0 4px 18px 0;
}
.dating-profile-form label { gap: 5px; font-size: 12px; }
.dating-profile-form label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dating-profile-form label > span small {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255,255,255,.62);
}
.dating-profile-form input,
.dating-profile-form select,
.dating-profile-form textarea {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}
.dating-profile-form textarea { min-height: 88px; max-height: 138px; }
.dating-profile-form .wide.two-fields,
.dating-profile-form .dating-form-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  gap: 10px;
  padding: 12px 0 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18%, #fff);
}
.dating-profile-form .primary-button,
.dating-profile-form .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.15;
}
.dating-profile-form .primary-button svg,
.dating-profile-form .secondary-button svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}
.dating-profile-form .primary-button,
.dating-profile-form .primary-button span,
.dating-profile-form .primary-button svg,
.dating-profile-form .secondary-button,
.dating-profile-form .secondary-button span,
.dating-profile-form .secondary-button svg {
  color: #fff;
}
.dating-form-actions {
  display: grid;
}
.settings-list { display: grid; gap: 10px; max-width: 760px; }
.setting-tile { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; min-height: 66px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); text-align: left; }
.setting-tile { text-decoration: none; }
.setting-tile .tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: #fff; background: var(--accent); font-weight: 900; }
.setting-tile .tile-icon svg { width: 19px; height: 19px; }
.setting-tile > svg { width: 17px; height: 17px; color: var(--muted); }
.setting-tile strong, .setting-tile span { display: block; }
.setting-tile span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.setting-tile.danger { color: var(--danger); }
.setting-form label, .form-grid label { color: #fff; font-size: 14px; }

.app-modal { width: min(620px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 28px)); max-height: min(760px, calc(100dvh - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.app-modal.settings-modal { width: min(590px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 28px)); }
.settings-modal .modal-header { background: #132237; }
.settings-modal .modal-header h2 { color: #fff; font-size: 20px; }
.settings-modal .modal-content { padding: 16px; background: #0a1624; }
.settings-modal-content { display: grid; gap: 14px; }
.settings-modal-intro { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(23,63,103,.42); border-radius: 8px; background: #112538; }
.settings-modal-intro > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; color: #fff; background: var(--accent); }
.settings-modal-intro > span svg { width: 23px; height: 23px; }
.settings-modal-intro h3 { margin: 3px 0 4px; color: #fff; font-size: 19px; }
.settings-modal-intro p:last-child { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.4; }
.settings-modal .settings-list { gap: 8px; max-width: none; }
.settings-modal .setting-tile { min-height: 68px; color: #fff; background: #122033; }
.settings-modal .setting-tile:hover { border-color: rgba(23,63,103,.48); background: #17283d; }
.settings-modal .setting-tile strong { color: #fff; font-size: 15px; }
.settings-modal .setting-tile span { color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.35; }
.settings-modal .setting-tile > svg { color: #fff; }
.settings-modal .setting-tile.danger,
.settings-modal .setting-tile.danger strong,
.settings-modal .setting-tile.danger span { color: #fff; }
.settings-modal .setting-tile.danger .tile-icon { color: #fff; background: rgba(255,107,122,.18); }
.app-modal.support-modal { width: min(960px, calc(100% - 24px)); height: min(900px, calc(100dvh - 20px)); max-height: calc(100dvh - 20px); }
.app-modal.image-viewer-modal { width: min(1100px, calc(100% - 18px)); height: min(900px, calc(100dvh - 18px)); max-height: calc(100dvh - 18px); background: #050b12; }
.image-viewer-modal .modal-header { color: #fff; background: #07111d; }
.image-viewer-modal .modal-header h2 { color: #fff; }
.image-viewer-modal .modal-content { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; max-height: none; padding: 12px; overflow: hidden; background: #050b12; }
.image-viewer { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.image-viewer-stage { display: grid; place-items: center; min-height: 0; overflow: auto; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: radial-gradient(circle at center, #101c2c, #050b12 72%); }
.image-viewer-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform .16s ease; }
.image-viewer-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.image-viewer-controls .icon-button,
.image-viewer-controls .secondary-button { color: #fff; background: #173f67; }
.image-viewer-controls .secondary-button { min-width: 76px; }
.support-modal .modal-header { background: #132237; }
.support-modal .modal-header h2 { color: #fff; font-size: 20px; }
.support-modal .modal-content { max-height: none; padding: 0; background: #0a1624; }
.support-payment-content { display: grid; gap: 20px; padding: 24px; }
.support-payment-intro { position: relative; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; align-items: center; overflow: hidden; padding: 20px; border: 1px solid rgba(255,184,77,.42); border-left: 5px solid var(--warm); border-radius: 8px; background: #112538; }
.support-payment-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; color: #fff; background: var(--accent); }
.support-payment-logo svg { width: 27px; height: 27px; }
.support-payment-intro h3 { margin: 4px 0 6px; color: #fff; font-size: 21px; }
.support-payment-intro p:last-child { margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.5; }
.support-impact-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.support-impact-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; min-height: 62px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.support-impact-item > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; color: #fff; background: var(--accent); }
.support-impact-item svg { width: 18px; height: 18px; }
.support-impact-item strong, .support-impact-item small { display: block; }
.support-impact-item strong { color: var(--text); font-size: 12px; }
.support-impact-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.support-payment-grid { display: grid; grid-template-columns: minmax(210px,.82fr) minmax(0,1.18fr); gap: 14px; align-items: stretch; }
.support-payment-grid.no-qr { grid-template-columns: 1fr; }
.support-qr-card { display: grid; justify-items: center; align-content: center; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.support-qr-card > span { color: #0c1a28; font-size: 13px; font-weight: 800; }
.support-qr-card img { display: block; width: min(220px,100%); aspect-ratio: 1; object-fit: contain; }
.support-qr-card figcaption { color: #405164; font-size: 11px; text-align: center; }
.support-payment-methods { display: grid; gap: 12px; }
.support-method-card { display: grid; gap: 13px; align-content: start; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #122033; }
.support-method-heading { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
.support-method-heading > span, .support-proof-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: #fff; background: var(--accent); }
.support-method-heading svg, .support-proof-heading svg { width: 19px; height: 19px; }
.support-method-heading small, .support-method-heading strong { display: block; }
.support-method-heading small { color: rgba(255,255,255,.72); font-size: 11px; }
.support-method-heading strong { margin-top: 3px; color: #fff; font-size: 14px; }
.support-value-row { padding: 12px; border: 1px solid rgba(255,184,77,.34); border-radius: 7px; background: rgba(255,184,77,.08); }
.support-value-row span, .support-value-row strong { display: block; color: #fff; }
.support-value-row span { font-size: 11px; }
.support-value-row strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 14px; }
.support-pay-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; text-decoration: none; }
.support-pay-button svg { width: 18px; height: 18px; }
.support-bank-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.support-bank-details > div { padding: 9px; border-radius: 6px; background: rgba(255,255,255,.05); }
.support-bank-details span, .support-bank-details strong { display: block; color: #fff; }
.support-bank-details span { font-size: 10px; }
.support-bank-details strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 12px; }
.support-bank-details > div:first-child { grid-column: 1 / -1; }
.support-proof-section { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #101e30; }
.support-proof-heading { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
.support-proof-heading h3 { margin: 0; color: #fff; font-size: 17px; }
.support-proof-heading p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
.app-modal[open] { display: flex; flex-direction: column; }
.app-modal::backdrop { background: rgba(0,0,0,.68); }
.modal-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-content { flex: 1 1 auto; min-height: 0; max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain; padding: 17px 17px max(30px, env(safe-area-inset-bottom)); }
.modal-content form { display: grid; gap: 14px; }
.support-proof-form { margin-top: 17px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.support-proof-form label, .support-proof-form label > span, .support-proof-form small { color: #fff; }
.support-proof-form label > span { font-size: 13px; font-weight: 750; }
.support-proof-form small { opacity: .72; font-size: 10px; }
.support-proof-form input { color: #fff; background: #0a1624; }
.support-file-field { padding: 12px; border: 1px dashed rgba(255,255,255,.25); border-radius: 7px; background: rgba(255,255,255,.035); }
.support-proof-form .primary-button { min-height: 46px; margin-bottom: 10px; }
.member-list { display: grid; gap: 7px; }
.member-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.member-row strong, .member-row span { display: block; }
.member-row span { color: rgba(255,255,255,.8); font-size: 11px; }
.secondary-button, .danger-button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-soft); font-weight: 750; }
.danger-button { border-color: rgba(255,107,122,.4); color: var(--danger); }

.confirm-dialog {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 4px 2px;
  text-align: center;
}

.confirm-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,107,122,.42);
  border-radius: 50%;
  color: var(--danger);
  background: rgba(255,107,122,.1);
  font-size: 24px;
  font-weight: 900;
}

.confirm-symbol svg {
  width: 25px;
  height: 25px;
}

.confirm-dialog p {
  max-width: 440px;
  margin: 0;
  color: #d9e2ea;
  line-height: 1.55;
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  width: min(360px, 100%);
  margin-top: 4px;
}

.confirm-actions button {
  min-height: 44px;
}

.toast { position: fixed; z-index: 200; right: 20px; top: 20px; max-width: 380px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255,107,122,.45); }

@media (max-width: 980px) {
  .seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .mobile-download-banner { grid-template-columns: 48px minmax(0, 1fr); }
  .mobile-download-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 28px 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; }
  .mobile-brand img { width: 52px; height: 52px; object-fit: contain; }
  .mobile-brand strong { font-size: 20px; }
  .site-header-inner { gap: 12px; }
  .site-navigation button { padding: 0 8px; }
  .site-navigation button svg { display: none; }
  .about-summary { grid-template-columns: 72px minmax(0,1fr); }
  .about-highlights { grid-column: 2; grid-template-columns: repeat(3, minmax(0,1fr)); min-width: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer-links { justify-content: flex-start; }
  .chat-ad-frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 8px; }
  .app-download-banner { grid-column: 1; grid-row: 1; }
  .app-core { grid-column: 1; grid-row: 2; grid-template-columns: 76px minmax(290px, 340px) minmax(0,1fr); }
  .app-core.profile-mode { grid-template-columns: 76px minmax(0,1fr); }
  .lease-ad-top { grid-column: 1; grid-row: 2; }
  .lease-ad-left, .lease-ad-right { display: none; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .chat-ad-frame {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  .lease-ad {
    padding: 6px;
  }

  .chat-composer {
    min-height: 68px;
    padding-top: 9px;
    padding-bottom: 10px;
  }
}

@media (max-width: 720px) {
  body { overflow: hidden; }
  .seo-landing { padding: 74px 12px 28px; overflow-y: auto; }
  .seo-hero { padding: 24px; border-radius: 14px; }
  .seo-hero::before,
  .seo-hero::after {
    display: none;
  }
  .seo-hero img { width: 72px; height: 72px; }
  .seo-hero p:not(.eyebrow) { font-size: 15px; }
  .seo-actions { display: grid; }
  .seo-grid { grid-template-columns: 1fr; }
  .roadmap-section { padding: 16px; border-radius: 14px; }
  .roadmap-heading h2 { font-size: 21px; }
  .mobile-download-banner { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 12px; }
  .mobile-download-icon { width: 42px; height: 42px; border-radius: 11px; }
  .mobile-download-icon svg { width: 22px; height: 22px; }
  .mobile-download-copy strong { font-size: 13px; }
  .mobile-download-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store-button { min-height: 38px; padding: 0 9px; font-size: 11px; }
  .two-fields, .form-grid { grid-template-columns: 1fr; }
  .reset-code-actions { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  body.app-active { overflow: auto; }
  .portal-information { display: block; }
  .site-header { position: sticky; top: 0; z-index: 80; }
  .site-header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 7px; width: 100%; min-height: 58px; padding: 0 6px; }
  .site-brand { font-size: 15px; }
  .site-brand img { width: 36px; height: 36px; }
  .site-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; width: 100%; padding: 0 2px 6px; overflow-x: auto; scrollbar-width: none; }
  .site-theme-toggle { grid-column: 2; grid-row: 1; min-width: 42px; padding: 0 9px; }
  .site-theme-toggle span { display: none; }
  .site-navigation::-webkit-scrollbar { display: none; }
  .site-navigation button { flex: 0 0 auto; justify-content: center; min-height: 40px; padding: 0 11px; color: #fff; }
  .site-navigation button svg { display: block; }
  .chat-ad-frame { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 4px; width: 100%; height: calc(100dvh - 104px); min-height: 0; padding: 4px; }
  .app-download-banner { grid-column: 1; grid-row: 1; }
  .app-core { grid-column: 1; grid-row: 2; display: block; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .app-core.profile-mode .detail-pane { display: block; }
  .lease-ad { padding: 4px; }
  .lease-ad-top { grid-column: 1; min-height: 0; }
  .lease-ad-top { grid-row: 2; }
  .lease-ad-left, .lease-ad-right { display: none; }
  .lease-ad strong { font-size: 10px; }
  .lease-ad small { font-size: 8px; }
  .support-top-banner { grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; padding: 7px 9px; }
  .support-top-banner { width: calc(100% - 12px); margin: 3px 0 7px; }
  .support-top-banner .support-story-icon { width: 36px; height: 36px; }
  .support-story-icon svg { width: 19px; height: 19px; }
  .support-top-banner .support-story-kicker,
  .support-top-banner .support-story-copy small { display: none; }
  .support-top-banner .support-story-copy strong { font-size: 12px; }
  .top-support-button { min-height: 36px; padding: 0 10px; }
  .top-support-button span { display: none; }
  .app-sidebar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-direction: row; width: 100%; height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 10px max(6px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .sidebar-account-wrap { display: none; }
  .app-nav { grid-template-columns: repeat(6,1fr); gap: 3px; margin: 0; }
  .app-nav button { min-height: 54px; }
  .collection-pane { height: 100%; padding-bottom: calc(68px + env(safe-area-inset-bottom)); border: 0; }
  .pane-header { padding: 12px; }
  .detail-pane { position: fixed; z-index: 20; inset: 104px 0 calc(68px + env(safe-area-inset-bottom)) 0; height: auto; transform: translateX(100%); transition: transform .2s ease; }
  .detail-pane.open { transform: translateX(0); }
  .chat-ad-frame.ads-hidden { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); height: calc(100dvh - 104px); padding: 4px; }
  .chat-ad-frame.ads-hidden .app-download-banner { grid-column: 1; grid-row: 1; display: grid; }
  .chat-ad-frame.ads-hidden .app-core { grid-column: 1; grid-row: 2; width: 100%; height: 100%; }
  .chat-ad-frame.ads-hidden .app-sidebar { bottom: 0; }
  .chat-ad-frame.ads-hidden .collection-pane { height: calc(100dvh - 172px - env(safe-area-inset-bottom)); }
  .chat-ad-frame.ads-hidden .detail-pane { inset: 104px 0 calc(68px + env(safe-area-inset-bottom)) 0; }
  .app-modal.support-modal { width: calc(100% - 10px); height: calc(100dvh - 10px); max-height: calc(100dvh - 10px); }
  .app-modal.settings-modal { width: calc(100% - 20px); max-height: calc(100dvh - 80px); }
  .app-modal.image-viewer-modal { width: calc(100% - 8px); height: calc(100dvh - 8px); max-height: calc(100dvh - 8px); }
  .image-viewer-modal .modal-content { padding: 8px; }
  .image-viewer-controls { padding-bottom: max(2px, env(safe-area-inset-bottom)); }
  .settings-modal .modal-content { padding: 12px; }
  .settings-modal-intro { grid-template-columns: 42px minmax(0,1fr); padding: 12px; }
  .settings-modal-intro > span { width: 40px; height: 40px; }
  .settings-modal .setting-tile { min-height: 64px; padding: 10px; }
  .support-payment-content { gap: 13px; padding: 13px; }
  .support-payment-intro { grid-template-columns: 46px minmax(0,1fr); gap: 11px; padding: 13px; }
  .support-payment-logo { width: 46px; height: 46px; }
  .support-payment-intro h3 { font-size: 18px; }
  .support-impact-row { grid-template-columns: 1fr; }
  .support-payment-grid { grid-template-columns: 1fr; }
  .support-qr-card img { width: min(210px,100%); }
  .support-bank-details { grid-template-columns: 1fr; }
  .support-bank-details > div:first-child { grid-column: auto; }
  .support-proof-section { padding: 13px; }
  .mobile-back { display: grid; }
  .message-list { padding: 16px 10px; }
  .chat-header { gap: 6px; padding: 8px; }
  .chat-header > .avatar { display: none; }
  .header-actions { gap: 4px; }
  .header-actions .secondary-button,
  .header-actions .danger-button { min-height: 34px; padding: 0 7px; font-size: 10px; }
  .conversation-shell,
  .conversation-shell.member-open { display: block; }
  .group-member-panel {
    position: absolute;
    z-index: 12;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 90vw);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 45px rgba(0, 0, 0, .38);
    opacity: 0;
    transform: translateX(100%);
  }
  .conversation-shell.member-open .group-member-panel {
    opacity: 1;
    transform: translateX(0);
  }
  .message-bubble { max-width: 86%; }
  .chat-layout { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .chat-composer { grid-template-columns: minmax(0,1fr) 54px; min-height: 88px; padding: 8px 10px max(12px, env(safe-area-inset-bottom)); }
  .page-view { padding: 20px 16px 88px; }
  .profile-page { height: 100%; padding: 0; }
  .profile-hero { grid-template-columns: 78px 1fr; }
  .profile-hero .avatar { width: 78px; height: 78px; }
  .profile-page-header { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 14px; }
  .profile-page-header h2 { font-size: 22px; }
  .profile-page-header p:last-child { font-size: 11px; }
  .profile-summary { grid-template-columns: 82px minmax(0,1fr); gap: 13px; padding: 18px 14px; }
  .profile-main-avatar { width: 82px; height: 82px; border-width: 3px; font-size: 22px; }
  .profile-summary-copy h3 { font-size: 20px; }
  .profile-summary-copy p, .profile-summary-copy span { font-size: 11px; }
  .profile-photo-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .profile-form-section { grid-template-columns: 1fr; gap: 16px; padding: 20px 14px; }
  .profile-section-heading { grid-template-columns: 38px minmax(0,1fr); }
  .profile-section-heading > span { width: 38px; height: 38px; }
  .profile-edit-form { max-height: 100%; }
  .profile-save-bar { align-items: stretch; flex-direction: column; padding: 14px 14px max(50px, env(safe-area-inset-bottom)); }
  .profile-save-bar > span { display: none; }
  .profile-save-bar .primary-button { width: 100%; }
  .dating-page { height: 100%; }
  .dating-page-header { grid-template-columns: minmax(0,1fr); }
  .dating-page-header > div { grid-column: 1 / -1; }
  .dating-page .dating-content { padding: 12px 12px max(80px, env(safe-area-inset-bottom)); }
  .dating-profile-form { max-height: none; padding-right: 0; }
  .dating-profile-form .wide.two-fields,
  .dating-profile-form .dating-form-actions { bottom: calc(-1 * max(80px, env(safe-area-inset-bottom))); }
  .toast { right: 12px; left: 12px; top: 12px; max-width: none; }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    min-width: 0;
  }

  .splash img {
    width: 108px;
    height: 108px;
  }

  .splash strong {
    font-size: 26px;
  }

  .seo-landing {
    height: 100dvh;
    min-height: 100dvh;
    padding: 18px 12px 28px;
    background: #f1f4f7;
  }

  .seo-hero {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .seo-hero img {
    width: 64px;
    height: 64px;
  }

  .seo-hero h1 {
    margin-top: 12px;
    font-size: 34px;
    line-height: 1.03;
  }

  .seo-hero p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.55;
  }

  .seo-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seo-actions .primary-button,
  .seo-actions .secondary-button {
    width: 100%;
  }

  .seo-grid article,
  .roadmap-section {
    border-radius: 12px;
  }

  .roadmap-grid article {
    padding: 14px;
  }

  .mobile-download-banner {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .mobile-download-copy strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-download-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .store-button {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .auth-screen {
    min-height: 100dvh;
  }

  .auth-form-panel {
    display: block;
    min-height: 100dvh;
    padding: 18px 14px 34px;
    overflow-y: auto;
  }

  .auth-card {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
  }

  .auth-heading h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .auth-tabs {
    gap: 6px;
  }

  .auth-tabs button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form textarea,
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    min-height: 44px;
    font-size: 14px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 6px 8px 0;
  }

  .site-brand {
    min-width: 0;
    font-size: 16px;
  }

  .site-brand img {
    width: 34px;
    height: 34px;
  }

  .site-navigation {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    padding: 6px 0 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .site-navigation button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    scroll-snap-align: start;
    font-size: 11px;
  }

  .site-navigation svg {
    width: 15px;
    height: 15px;
  }

  .site-theme-toggle {
    min-width: 38px;
    min-height: 34px;
    border-radius: 999px;
  }

  .app-screen {
    min-height: 100dvh;
  }

  .chat-ad-frame,
  .chat-ad-frame.ads-hidden {
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100dvh - 91px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #f1f4f7;
  }

  .app-download-banner {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .chat-ad-frame > .lease-ad,
  .chat-ad-frame > .lease-ad-top {
    display: none !important;
  }

  .app-core,
  .chat-ad-frame.ads-hidden .app-core {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
  }

  .collection-pane {
    grid-template-rows: 72px auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    padding-bottom: 0;
    background: #fff;
  }

  .pane-header {
    height: 72px;
    padding: 12px;
  }

  .pane-header h2 {
    font-size: 22px;
  }

  .search-field {
    margin: 10px 12px;
    border-radius: 12px;
  }

  .collection-content {
    gap: 7px;
    padding: 0 10px calc(82px + env(safe-area-inset-bottom));
  }

  .list-item {
    min-height: 62px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .list-item .avatar {
    width: 42px;
    height: 42px;
  }

  .list-item-copy strong {
    font-size: 13px;
  }

  .list-item-copy span {
    font-size: 10px;
  }

  .app-sidebar {
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 22px rgba(31,55,72,.10);
  }

  .app-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
  }

  .app-nav button {
    min-height: 54px;
    padding: 4px 1px;
    border-radius: 12px;
    font-size: 9px;
  }

  .nav-icon {
    width: 27px;
    height: 27px;
  }

  .detail-pane {
    inset: 91px 0 calc(68px + env(safe-area-inset-bottom)) 0;
    background: #fff;
  }

  .chat-ad-frame.ads-hidden .detail-pane {
    inset: 91px 0 calc(68px + env(safe-area-inset-bottom)) 0;
  }

  .empty-detail {
    padding: 20px;
  }

  .empty-detail img {
    width: 86px;
    height: 86px;
  }

  .empty-detail h2 {
    font-size: 22px;
  }

  .chat-layout {
    grid-template-rows: 62px minmax(0, 1fr) auto;
    padding-bottom: 0;
    background: #fff;
  }

  .chat-header {
    min-height: 62px;
    padding: 8px 10px;
  }

  .chat-header-copy strong {
    font-size: 15px;
  }

  .message-list {
    padding: 14px 10px 12px;
    background: #f8fafc;
  }

  .message-bubble {
    max-width: 88%;
    border-radius: 13px 13px 13px 4px;
  }

  .message-row.own .message-bubble {
    border-radius: 13px 13px 4px 13px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 6px;
    min-height: 86px;
    padding: 7px 10px max(9px, env(safe-area-inset-bottom));
    background: #fff;
  }

  .chat-composer textarea {
    height: 42px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .send-button {
    width: 48px;
    height: 42px;
    border-radius: 14px;
  }

  .composer-toolbar {
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .composer-tool {
    width: 28px;
    height: 28px;
  }

  .composer-size select {
    max-width: 76px;
    font-size: 10px;
  }

  .group-member-panel {
    width: min(320px, 92vw);
  }

  .page-view {
    height: 100%;
    padding: 16px 12px 16px;
  }

  .region-state {
    margin-bottom: 14px;
  }

  .region-state-header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 10px;
    border-radius: 13px;
  }

  .region-state-header img,
  .region-state-header .region-state-avatar {
    width: 46px;
    height: 46px;
  }

  .region-list {
    width: calc(100% - 8px);
    margin-left: 8px;
    padding: 8px 0 0 8px;
  }

  .region-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .region-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .region-row-status strong {
    display: none;
  }

  .profile-page,
  .dating-page {
    height: 100%;
    overflow: hidden;
  }

  .profile-page-header,
  .dating-page-header {
    padding: 12px;
  }

  .dating-page-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dating-page-header > div {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .dating-page-header h2 {
    max-width: none;
    font-size: 24px;
    line-height: 1.1;
  }

  .dating-page-header p:last-child {
    max-width: none;
    font-size: 12px;
    line-height: 1.4;
  }

  .dating-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(20,43,60,.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31,55,72,.08);
  }

  .dating-mobile-tabs button {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 46px;
    padding: 5px 2px;
    border: 0;
    border-radius: 11px;
    color: #173f67;
    background: transparent;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
  }

  .dating-mobile-tabs button.active {
    color: #fff;
    background: #ec3f8c;
    box-shadow: 0 8px 18px rgba(236,63,140,.22);
  }

  .dating-mobile-tabs button.active span,
  .dating-mobile-tabs button.active svg {
    color: #fff !important;
  }

  .dating-mobile-tabs svg {
    display: block;
    width: 16px;
    height: 16px;
  }

  .profile-summary {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px;
  }

  .profile-main-avatar {
    width: 74px;
    height: 74px;
  }

  .profile-form-section {
    padding: 16px 12px;
  }

  .profile-save-bar {
    padding: 12px;
  }

  .dating-page .dating-content {
    overflow-y: auto;
    padding: 12px 10px;
  }

  .dating-profile-form {
    overflow: visible;
    padding-bottom: 0;
  }

  .dating-photo-upload-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 13px;
  }

  .dating-photo-upload,
  .dating-upload-avatar {
    width: 82px;
    height: 82px;
  }

  .dating-upload-avatar {
    border-width: 3px;
    font-size: 22px;
  }

  .dating-photo-camera {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .dating-photo-upload-card strong {
    font-size: 14px;
  }

  .dating-photo-upload-card p {
    font-size: 11px;
  }

  .dating-profile-form .wide.two-fields,
  .dating-profile-form .dating-form-actions {
    position: static;
    grid-template-columns: 1fr;
    padding: 8px 0 0;
    border-top: 0;
    background: #fff;
  }

  .dating-profile-form .dating-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 8px -10px 0;
    padding: 10px 10px 12px;
    border-top: 1px solid rgba(20,43,60,.12);
    background: #fff;
    box-shadow: 0 -10px 24px rgba(31,55,72,.10);
  }

  .dating-profile-form .dating-form-actions .primary-button {
    width: 100%;
    min-height: 48px;
  }

  .dating-grid {
    grid-template-columns: 1fr;
  }

  .dating-stack-stage {
    width: min(100%, 340px);
    height: min(58vh, 500px);
    min-height: 420px;
  }

  .dating-stack-copy {
    padding: 13px 14px 10px;
  }

  .dating-stack-copy h3 {
    font-size: 20px;
  }

  .dating-stack-actions {
    gap: 9px;
    padding: 0 14px 14px;
  }

  .dating-stack-actions button {
    min-height: 44px;
  }

  .dating-card-copy h3 {
    font-size: 18px;
  }

  .settings-list {
    gap: 8px;
  }

  .setting-tile {
    grid-template-columns: 38px 1fr auto;
    min-height: 62px;
    padding: 10px;
    border-radius: 12px;
  }

  .portal-information {
    width: calc(100% - 24px);
    margin: 22px auto 0;
    padding: 18px 0 20px;
  }

  .about-summary {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 18px;
  }

  .about-summary-mark {
    width: 50px;
    height: 50px;
  }

  .about-summary-mark img {
    width: 40px;
    height: 40px;
  }

  .about-summary-copy h2 {
    font-size: 20px;
  }

  .about-highlights {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .portal-roadmap {
    padding: 16px;
  }

  .site-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

html[data-theme="light"] {
  --background: #f4f7fa;
  --surface: #ffffff;
  --surface-raised: #eaf0f5;
  --surface-soft: #dce7ef;
  --line: rgba(20, 43, 60, .16);
  --text: #142b3c;
  --muted: #526879;
  --accent: #173f67;
  --accent-strong: #0d3155;
  --warm: #b86b00;
  --danger: #c9364d;
  --success: #18864c;
  --shadow: 0 20px 55px rgba(31, 55, 72, .15);
}

html[data-theme="light"] body,
html[data-theme="light"] body.app-active,
html[data-theme="light"] .app-screen,
html[data-theme="light"] .chat-ad-frame {
  color: var(--text);
  background: #f1f4f7;
}

html[data-theme="light"] .splash,
html[data-theme="light"] .auth-form-panel {
  background: #f1f4f7;
}

html[data-theme="light"] .auth-card {
  padding: 28px;
  border: 1px solid rgba(20,43,60,.10);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31,55,72,.10);
}

html[data-theme="light"] .auth-brand-panel {
  background-color: #dbeeea;
}

html[data-theme="light"] .auth-brand-panel::before {
  background: linear-gradient(180deg, rgba(244,247,250,.12), rgba(226,241,238,.97) 68%);
}

html[data-theme="light"] .auth-brand-copy p,
html[data-theme="light"] .auth-heading p:last-child,
html[data-theme="light"] .guest-notice p,
html[data-theme="light"] .auth-form label,
html[data-theme="light"] .form-grid label,
html[data-theme="light"] .setting-form label,
html[data-theme="light"] .form-label {
  color: var(--muted);
}

html[data-theme="light"] .trust-row span {
  color: var(--text);
  background: rgba(255,255,255,.58);
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(43,112,151,.18);
  background: rgba(218, 241, 252, .97);
  box-shadow: 0 8px 24px rgba(43,112,151,.08);
}

html[data-theme="light"] .site-brand,
html[data-theme="light"] .site-navigation button,
html[data-theme="light"] .site-footer-links a,
html[data-theme="light"] .site-footer-links button,
html[data-theme="light"] .site-footer-brand strong,
html[data-theme="light"] .about-summary-copy h2,
html[data-theme="light"] .about-highlights span {
  color: var(--text);
}

html[data-theme="light"] .site-navigation button:hover,
html[data-theme="light"] .site-navigation button:focus-visible {
  color: #0d4666;
  background: rgba(255,255,255,.72);
}

html[data-theme="light"] .site-theme-toggle {
  border-color: rgba(43,112,151,.18);
  background: rgba(255,255,255,.78);
}

html[data-theme="light"] .about-summary-copy p:not(.eyebrow),
html[data-theme="light"] .site-footer-brand span,
html[data-theme="light"] .site-footer-copyright {
  color: var(--muted);
}

html[data-theme="light"] .lease-ad {
  color: var(--text);
  border-color: rgba(20,43,60,.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31,55,72,.07);
}

html[data-theme="light"] .support-top-banner .support-story-copy,
html[data-theme="light"] .support-top-banner .support-story-copy strong {
  color: var(--text);
}

html[data-theme="light"] .support-top-banner .support-story-copy small,
html[data-theme="light"] .lease-ad strong,
html[data-theme="light"] .lease-ad small {
  color: var(--muted);
}

html[data-theme="light"] .app-core,
html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .collection-pane,
html[data-theme="light"] .detail-pane,
html[data-theme="light"] .message-list,
html[data-theme="light"] .group-member-panel,
html[data-theme="light"] .profile-page,
html[data-theme="light"] .dating-page,
html[data-theme="light"] .profile-page-header,
html[data-theme="light"] .profile-summary,
html[data-theme="light"] .profile-save-bar {
  background: var(--surface);
}

html[data-theme="light"] .app-core {
  border-color: rgba(20,43,60,.11);
  box-shadow: 0 18px 48px rgba(31,55,72,.12);
}

html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .collection-pane,
html[data-theme="light"] .profile-page-header,
html[data-theme="light"] .dating-page-header,
html[data-theme="light"] .profile-save-bar {
  background: #f8fafc;
}

html[data-theme="light"] .auth-tabs,
html[data-theme="light"] .setting-tile,
html[data-theme="light"] .member-popup-actions button,
html[data-theme="light"] .app-modal {
  border-color: rgba(20,43,60,.11);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31,55,72,.08);
}

html[data-theme="light"] .dating-card {
  border-color: rgba(20,43,60,.12);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31,55,72,.10);
}

html[data-theme="light"] .dating-stack-card,
html[data-theme="light"] .dating-stack-actions,
html[data-theme="light"] .dating-stack-copy,
html[data-theme="light"] .dating-stack-empty {
  border-color: rgba(20,43,60,.12);
  background: #fff;
}

html[data-theme="light"] .dating-stack-card {
  box-shadow: 0 24px 52px rgba(31,55,72,.16);
}

html[data-theme="light"] .dating-stack-copy {
  background: linear-gradient(180deg, rgba(255,255,255,.88), #fff);
}

html[data-theme="light"] .dating-stack-count,
html[data-theme="light"] .dating-stack-empty p {
  color: var(--muted);
}

html[data-theme="light"] .dating-stack-empty h3 {
  color: var(--text);
}

html[data-theme="light"] .dating-photo-upload-card {
  border-color: rgba(20,43,60,.12);
  background: #fff;
  box-shadow: 0 10px 26px rgba(31,55,72,.08);
}

html[data-theme="light"] .dating-photo-upload-card strong {
  color: var(--text);
}

html[data-theme="light"] .dating-photo-upload-card p {
  color: var(--muted);
}

html[data-theme="light"] .dating-photo-camera {
  border-color: #fff;
  color: #fff;
  background: #173f67;
}

html[data-theme="light"] .dating-photo {
  background: #eaf0f5;
}

html[data-theme="light"] .dating-profile-form .wide.two-fields,
html[data-theme="light"] .dating-profile-form .dating-form-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18%, #fff);
}

html[data-theme="light"] .dating-profile-form label > span small {
  color: rgba(18, 27, 38, .54);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  border-color: rgba(20,43,60,.16);
  color: var(--text);
  background: #fff;
}

html[data-theme="light"] .app-nav button,
html[data-theme="light"] .sidebar-account-copy small,
html[data-theme="light"] .account-menu-profile small,
html[data-theme="light"] .account-menu-status,
html[data-theme="light"] .account-menu-actions small,
html[data-theme="light"] .list-item-copy span,
html[data-theme="light"] .chat-header-copy span,
html[data-theme="light"] .page-view-header p,
html[data-theme="light"] .profile-page-header p:last-child,
html[data-theme="light"] .dating-page-header p:last-child,
html[data-theme="light"] .profile-summary-copy span,
html[data-theme="light"] .profile-section-heading p,
html[data-theme="light"] .profile-save-bar > span {
  color: var(--muted);
}

html[data-theme="light"] .list-item-copy strong,
html[data-theme="light"] .profile-page-header h2,
html[data-theme="light"] .dating-page-header h2,
html[data-theme="light"] .dating-card-copy h3,
html[data-theme="light"] .profile-summary-copy h3,
html[data-theme="light"] .profile-section-heading h3,
html[data-theme="light"] .profile-page .form-grid label,
html[data-theme="light"] .profile-page .form-grid label > span,
html[data-theme="light"] .setting-form label,
html[data-theme="light"] .form-grid label {
  color: var(--text);
}

html[data-theme="light"] .dating-card-copy p {
  color: var(--muted);
}

html[data-theme="light"] .dating-stack-actions button,
html[data-theme="light"] .dating-stack-actions button span,
html[data-theme="light"] .dating-stack-actions button svg {
  color: #fff;
}

html[data-theme="light"] .image-viewer-modal,
html[data-theme="light"] .image-viewer-modal .modal-header,
html[data-theme="light"] .image-viewer-modal .modal-content {
  color: #fff;
  background: #050b12;
}

html[data-theme="light"] .image-viewer-modal .modal-header h2,
html[data-theme="light"] .image-viewer-controls button,
html[data-theme="light"] .image-viewer-controls button span,
html[data-theme="light"] .image-viewer-controls button svg {
  color: #fff;
}

html[data-theme="light"] .account-menu,
html[data-theme="light"] .account-menu-profile,
html[data-theme="light"] .composer-picker,
html[data-theme="light"] .settings-modal .modal-header,
html[data-theme="light"] .settings-modal .modal-content,
html[data-theme="light"] .settings-modal-intro,
html[data-theme="light"] .settings-modal .setting-tile,
html[data-theme="light"] .support-modal .modal-header,
html[data-theme="light"] .support-modal .modal-content,
html[data-theme="light"] .support-payment-intro,
html[data-theme="light"] .support-method-card,
html[data-theme="light"] .support-proof-section,
html[data-theme="light"] .support-proof-form input {
  color: var(--text);
  background: var(--surface);
}

html[data-theme="light"] .account-menu,
html[data-theme="light"] .composer-picker,
html[data-theme="light"] .settings-modal .modal-content,
html[data-theme="light"] .support-modal .modal-content {
  box-shadow: 0 18px 44px rgba(31,55,72,.14);
}

html[data-theme="light"] .settings-modal .setting-tile:hover {
  background: var(--surface-raised);
}

html[data-theme="light"] .settings-modal .modal-header h2,
html[data-theme="light"] .settings-modal-intro h3,
html[data-theme="light"] .settings-modal-intro p:last-child,
html[data-theme="light"] .settings-modal .setting-tile,
html[data-theme="light"] .settings-modal .setting-tile strong,
html[data-theme="light"] .settings-modal .setting-tile span,
html[data-theme="light"] .settings-modal .setting-tile > svg,
html[data-theme="light"] .support-modal .modal-header h2,
html[data-theme="light"] .support-payment-intro h3,
html[data-theme="light"] .support-payment-intro p:last-child,
html[data-theme="light"] .support-method-heading small,
html[data-theme="light"] .support-method-heading strong,
html[data-theme="light"] .support-value-row span,
html[data-theme="light"] .support-value-row strong,
html[data-theme="light"] .support-bank-details span,
html[data-theme="light"] .support-bank-details strong,
html[data-theme="light"] .support-proof-heading h3,
html[data-theme="light"] .support-proof-heading p,
html[data-theme="light"] .support-proof-form label,
html[data-theme="light"] .support-proof-form label > span,
html[data-theme="light"] .support-proof-form small {
  color: var(--text);
}

html[data-theme="light"] .profile-page input,
html[data-theme="light"] .profile-page select,
html[data-theme="light"] .profile-page textarea {
  color: var(--text);
  background: #fff;
}

html[data-theme="light"] .message-row.own .message-bubble {
  border-color: rgba(23,63,103,.24);
  background: #e1ebf5;
}

html[data-theme="light"] .chat-composer {
  background: #f7fafc;
  box-shadow: 0 -8px 24px rgba(31,55,72,.08);
}

html[data-theme="light"] .about-summary,
html[data-theme="light"] .site-footer {
  background: #fff;
}

html[data-theme="light"] .portal-information {
  width: min(1212px, calc(100% - 32px));
  margin-top: 72px;
  padding-right: 16px;
  padding-left: 16px;
  border: 1px solid rgba(20,43,60,.10);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31,55,72,.08);
}

html[data-theme="light"] .composer-tool,
html[data-theme="light"] .composer-size {
  color: var(--text);
}

html[data-theme="light"] .support-value-row,
html[data-theme="light"] .support-bank-details > div,
html[data-theme="light"] .support-file-field {
  background: var(--surface-raised);
}

html[data-theme="light"] .region-row {
  border-color: rgba(20,43,60,.12);
  background: #f8fafc;
  box-shadow: 0 7px 20px rgba(31,55,72,.07);
}

html[data-theme="light"] .region-state-header {
  border-color: #c6d7e6;
  background: #e5eef6;
  box-shadow: 0 8px 22px rgba(31,55,72,.08);
}

html[data-theme="light"] .region-state-header > div > strong,
html[data-theme="light"] .region-count strong {
  color: #17324a;
}

html[data-theme="light"] .region-count {
  border-color: #c5d6e5;
  background: #d6e4f0;
}

html[data-theme="light"] .region-list {
  border-left-color: #c6d7e6;
}

html[data-theme="light"] .region-row:hover,
html[data-theme="light"] .region-row:focus-visible {
  border-color: rgba(40,91,138,.52);
  background: #f5f8fb;
}

html[data-theme="light"] .region-row.joined {
  border-color: rgba(40,91,138,.38);
  background: #eaf1f8;
}

html[data-theme="light"] .primary-button,
html[data-theme="light"] .secondary-button,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .member-popup-actions button:not(.danger),
html[data-theme="light"] .auth-tabs button.active {
  border-color: #173f67;
  color: #fff;
  background: #173f67;
}

html[data-theme="light"] .primary-button:hover,
html[data-theme="light"] .secondary-button:hover,
html[data-theme="light"] .icon-button:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .member-popup-actions button:not(.danger):hover {
  border-color: #0d3155;
  color: #fff;
  background: #0d3155;
}

html[data-theme="light"] .primary-button svg,
html[data-theme="light"] .secondary-button svg,
html[data-theme="light"] .icon-button svg,
html[data-theme="light"] .theme-toggle svg,
html[data-theme="light"] .member-popup-actions button:not(.danger) svg {
  color: #fff;
}

html[data-theme="light"] .danger-button,
html[data-theme="light"] .icon-button.danger-icon,
html[data-theme="light"] .member-popup-actions button.danger {
  border-color: #b82940;
  color: #fff;
  background: #b82940;
}

@media (max-width: 720px) {
  html[data-theme="light"] .auth-card {
    padding: 18px;
  }
}

html[data-theme="light"] .auth-screen :is(h1, h2, h3, h4, p, label, strong, small, span),
html[data-theme="light"] .app-screen :is(h1, h2, h3, h4, p, label, strong, small, span),
html[data-theme="light"] .app-modal :is(h1, h2, h3, h4, p, label, strong, small, span),
html[data-theme="light"] .account-menu :is(p, label, strong, small, span) {
  color: #101820 !important;
}

html[data-theme="light"] .portal-roadmap :is(.eyebrow, h2, strong, p, span) {
  color: #fff !important;
}

html[data-theme="light"] .portal-roadmap .roadmap-heading p:last-child,
html[data-theme="light"] .portal-roadmap .roadmap-grid p {
  color: rgba(255, 255, 255, .82) !important;
}

html[data-theme="light"] .portal-roadmap .roadmap-grid article {
  border-color: rgba(255, 255, 255, .18) !important;
  background: #122033 !important;
}

html[data-theme="light"] .portal-roadmap .roadmap-grid article > span {
  color: #fff !important;
  background: #f43f8f !important;
}

html[data-theme="light"] .portal-roadmap svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: #101820 !important;
}

html[data-theme="light"] .mobile-download-banner {
  border-color: rgba(244, 63, 143, .82) !important;
  background: linear-gradient(135deg, #0d3155 0%, #173f67 58%, #7b2558 100%) !important;
  box-shadow: 0 20px 56px rgba(8, 20, 33, .18), inset 0 -3px 0 rgba(244, 63, 143, .95) !important;
}

html[data-theme="light"] .mobile-download-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, .16) !important;
}

html[data-theme="light"] .mobile-download-icon svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html[data-theme="light"] .mobile-download-copy span {
  color: #ffb84d !important;
}

html[data-theme="light"] .mobile-download-copy strong,
html[data-theme="light"] .store-button,
html[data-theme="light"] .store-button span,
html[data-theme="light"] .store-button svg {
  color: #fff !important;
}

html[data-theme="light"] .store-button {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(244, 63, 143, .92) !important;
}

html[data-theme="light"] .store-button svg {
  color: #fff !important;
  stroke: currentColor !important;
}

html[data-theme="light"] .store-button[aria-disabled="true"] {
  background: rgba(255, 255, 255, .14) !important;
}

html[data-theme="light"] :is(
  .primary-button,
  .secondary-button,
  .icon-button,
  .theme-toggle,
  .send-button,
  .danger-button,
  .member-popup-actions button:not(.danger),
  .auth-tabs button.active
) :is(span, strong, small, svg),
html[data-theme="light"] :is(
  .primary-button,
  .secondary-button,
  .icon-button,
  .theme-toggle,
  .send-button,
  .danger-button,
  .member-popup-actions button:not(.danger),
  .auth-tabs button.active
) {
  color: #fff !important;
}

html[data-theme="light"] :is(
  .app-nav button.active .nav-icon,
  .account-menu-actions button > span:first-child,
  .region-row-icon,
  .profile-section-heading > span,
  .setting-tile .tile-icon,
  .settings-modal-intro > span,
  .support-payment-logo,
  .support-impact-item > span,
  .support-method-heading > span,
  .support-proof-heading > span
),
html[data-theme="light"] :is(
  .app-nav button.active .nav-icon,
  .account-menu-actions button > span:first-child,
  .region-row-icon,
  .profile-section-heading > span,
  .setting-tile .tile-icon,
  .settings-modal-intro > span,
  .support-payment-logo,
  .support-impact-item > span,
  .support-method-heading > span,
  .support-proof-heading > span
) svg {
  color: #fff !important;
}

html[data-theme="light"] .support-top-banner {
  border-color: rgba(244,63,143,.72);
  background: linear-gradient(120deg, #0b5f91 0%, #173f67 62%, #75335f 100%);
  box-shadow: 0 16px 30px rgba(31,55,72,.24), 0 5px 12px rgba(3,46,74,.16);
}

html[data-theme="light"] .support-top-banner .support-story-copy,
html[data-theme="light"] .support-top-banner .support-story-copy strong,
html[data-theme="light"] .support-top-banner .support-story-copy small {
  color: #fff !important;
}

html[data-theme="light"] .support-top-banner .support-story-kicker {
  color: #ffd166 !important;
}

html[data-theme="light"] .support-top-banner .support-story-icon {
  color: #0b5f91 !important;
  background: #fff;
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(244,63,143,.52);
  background: rgba(11,95,145,.97);
  box-shadow: 0 8px 24px rgba(3,46,74,.16);
}

html[data-theme="light"] .site-header .site-brand,
html[data-theme="light"] .site-header .site-brand span,
html[data-theme="light"] .site-header .site-navigation button,
html[data-theme="light"] .site-header .site-navigation button span,
html[data-theme="light"] .site-header .site-navigation button svg {
  color: #fff !important;
}

html[data-theme="light"] .site-header .site-navigation button:hover,
html[data-theme="light"] .site-header .site-navigation button:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.16);
}

html[data-theme="light"] .site-header .site-theme-toggle {
  border-color: rgba(255,255,255,.42);
  color: #fff !important;
  background: rgba(255,255,255,.14);
}

html[data-theme="light"] .site-header .site-theme-toggle :is(span, svg) {
  color: #fff !important;
}

html[data-theme="light"] .list-item {
  border-color: rgba(20,43,60,.11);
  background: #fff;
  box-shadow: 0 6px 18px rgba(31,55,72,.07);
}

html[data-theme="light"] .list-item:hover {
  border-color: rgba(40,91,138,.34);
  background: #f5f8fb;
}

html[data-theme="light"] .list-item.active:not(.unread) {
  border-color: rgba(40,91,138,.42);
  background: #eaf1f8;
  box-shadow: inset 3px 0 0 #285b8a;
}

html[data-theme="light"] .list-item.unread,
html[data-theme="light"] .list-item.unread:hover,
html[data-theme="light"] .list-item.unread.active {
  border-color: rgba(143,180,212,.68);
  background: #173f67;
  box-shadow: inset 4px 0 0 #8fb4d4, 0 8px 22px rgba(31,55,72,.16);
}

html[data-theme="light"] .list-item.unread :is(strong, span, time) {
  color: #fff !important;
}

html[data-theme="light"] .group-member-item {
  border-color: rgba(20,43,60,.11);
  background: #fff;
  box-shadow: 0 6px 18px rgba(31,55,72,.07);
}

html[data-theme="light"] .group-member-item:hover,
html[data-theme="light"] .group-member-item:focus-visible {
  border-color: rgba(40,91,138,.40);
  background: #f5f8fb;
}

html[data-theme="light"] .member-online {
  color: #18864c !important;
}

html[data-theme="light"] .gender-label.female { color: #a61f62 !important; }
html[data-theme="light"] .gender-label.male { color: #1f5f9a !important; }
html[data-theme="light"] .gender-label.none,
html[data-theme="light"] .gender-label.other { color: #8a5700 !important; }

html[data-theme="light"] .member-filter-menu {
  border-color: rgba(20,43,60,.14);
  background: #fff;
  box-shadow: 0 18px 42px rgba(31,55,72,.18);
}

html[data-theme="light"] .member-filter-heading {
  color: #526879;
}

html[data-theme="light"] .member-filter-menu button.filter-section-end {
  border-bottom-color: rgba(20,43,60,.10);
}

html[data-theme="light"] .member-filter-menu button:hover {
  background: #edf3f8;
}

html[data-theme="light"] .member-filter-menu .filter-option-copy strong {
  color: #142b3c !important;
}

html[data-theme="light"] .member-filter-menu .filter-option-copy small {
  color: #526879 !important;
}

html[data-theme="light"] .member-filter-menu button.active {
  background: #173f67;
}

html[data-theme="light"] .member-filter-menu button.active .filter-option-copy strong,
html[data-theme="light"] .member-filter-menu button.active .filter-option-copy small,
html[data-theme="light"] .member-filter-menu button.active .filter-option-check {
  color: #fff !important;
}

.dating-stack-actions button,
.dating-stack-actions button span,
.dating-stack-actions button svg,
html[data-theme="light"] .dating-stack-actions button,
html[data-theme="light"] .dating-stack-actions button span,
html[data-theme="light"] .dating-stack-actions button svg {
  color: #fff !important;
}

.dating-page > .dating-page-header {
  display: none;
}

.profile-page > .profile-page-header {
  display: none;
}

@media (max-width: 600px) {
  .profile-page {
    grid-template-rows: auto minmax(0, 1fr);
    background: #f4f7fb;
  }

  .profile-page > .profile-page-header {
    display: none;
  }

  .dating-page > .dating-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 10px 8px;
    background: #f8fafc;
  }

  .dating-page > .dating-page-header > div {
    display: none;
  }

  .dating-page > .dating-page-header .dating-mobile-tabs {
    display: grid;
    width: 100%;
  }

  .dating-page > .dating-page-header .dating-mobile-tabs button span,
  .dating-page > .dating-page-header .dating-mobile-tabs button svg {
    color: inherit;
  }

  .profile-summary {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    margin: 12px 12px 10px;
    padding: 14px;
    border: 1px solid rgba(40,91,138,.16);
    border-radius: 18px;
    background: linear-gradient(135deg, #173f67, #285b8a 62%, #f03f88);
    box-shadow: 0 14px 34px rgba(31,55,72,.18);
  }

  .profile-avatar-upload {
    width: 76px;
    height: 76px;
  }

  .profile-main-avatar {
    width: 76px;
    height: 76px;
    border: 3px solid rgba(255,255,255,.72);
    font-size: 21px;
    box-shadow: 0 12px 24px rgba(0,0,0,.20);
  }

  .profile-summary-copy h3 {
    color: #fff !important;
    font-size: 20px;
  }

  .profile-summary-copy p {
    margin-top: 4px;
    color: rgba(255,255,255,.88) !important;
    font-size: 12px;
  }

  .profile-summary-copy span {
    margin-top: 7px;
    color: rgba(255,255,255,.82) !important;
    font-size: 11px;
  }

  .profile-photo-button {
    right: -2px;
    bottom: -2px;
    width: 32px;
    height: 32px;
    min-height: 0;
    border: 2px solid rgba(255,255,255,.88);
    color: #fff;
    background: #ec3f8c;
    backdrop-filter: none;
  }

  .profile-photo-button svg,
  .profile-photo-button span {
    color: #fff;
  }

  .profile-form-section {
    margin: 0 12px 10px;
    padding: 14px;
    border: 1px solid rgba(20,43,60,.10);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31,55,72,.08);
  }

  .profile-section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-section-heading > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #173f67;
  }

  .profile-section-heading h3 {
    font-size: 15px;
  }

  .profile-section-heading p {
    font-size: 11px;
  }
}

.dating-photo-upload .dating-photo-camera {
  top: auto !important;
  right: 4px !important;
  bottom: 4px !important;
  left: auto !important;
  z-index: 2;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}

.dating-photo-upload .dating-photo-camera svg {
  display: block;
  margin: 0;
}

.dating-profile-form .dating-photo-upload-card,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card {
  position: relative;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(236,63,140,.32);
  border-radius: 18px;
  background: linear-gradient(135deg, #173f67 0%, #285b8a 58%, #ec3f8c 100%);
  box-shadow: 0 16px 38px rgba(31,55,72,.20);
}

.dating-profile-form .dating-photo-upload-card::after {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.dating-profile-form .dating-photo-upload-card > * {
  position: relative;
  z-index: 1;
}

.dating-profile-form .dating-photo-upload,
.dating-profile-form .dating-upload-avatar {
  width: 98px;
  height: 98px;
}

.dating-profile-form .dating-upload-avatar {
  border: 4px solid rgba(255,255,255,.82);
  background: #fff;
  font-size: 26px;
  box-shadow: 0 16px 30px rgba(0,0,0,.22);
}

.dating-profile-form .dating-photo-upload-card strong,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.dating-profile-form .dating-photo-upload-card p,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card p {
  max-width: 360px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.dating-profile-form .dating-photo-camera,
html[data-theme="light"] .dating-profile-form .dating-photo-camera {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  color: #fff;
  background: #ec3f8c;
  box-shadow: 0 10px 20px rgba(20,43,60,.26);
}

.dating-profile-form .dating-photo-camera svg {
  width: 18px;
  height: 18px;
  color: #fff;
  stroke: currentColor;
}

@media (max-width: 600px) {
  .dating-profile-form .dating-photo-upload-card,
  html[data-theme="light"] .dating-profile-form .dating-photo-upload-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .dating-profile-form .dating-photo-upload,
  .dating-profile-form .dating-upload-avatar {
    width: 78px;
    height: 78px;
  }

  .dating-profile-form .dating-upload-avatar {
    border-width: 3px;
    font-size: 21px;
  }

  .dating-profile-form .dating-photo-upload-card strong,
  html[data-theme="light"] .dating-profile-form .dating-photo-upload-card strong {
    font-size: 15px;
  }

  .dating-profile-form .dating-photo-upload-card p,
  html[data-theme="light"] .dating-profile-form .dating-photo-upload-card p {
    font-size: 11px;
    line-height: 1.35;
  }

  .dating-profile-form .dating-photo-camera,
  html[data-theme="light"] .dating-profile-form .dating-photo-camera {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }
}

.dating-profile-form .dating-photo-upload-card,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card {
  min-height: 148px;
  overflow: visible;
  margin-bottom: 12px;
}

.dating-profile-form .dating-photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dating-profile-form .dating-photo-camera,
html[data-theme="light"] .dating-profile-form .dating-photo-camera {
  top: auto !important;
  right: -6px !important;
  bottom: -6px !important;
  left: auto !important;
  z-index: 4;
  transform: none !important;
}

.dating-profile-form .dating-photo-upload-card strong,
.dating-profile-form .dating-photo-upload-card p,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card strong,
html[data-theme="light"] .dating-profile-form .dating-photo-upload-card p {
  color: #fff !important;
}

@media (max-width: 600px) {
  .dating-profile-form .dating-photo-upload-card,
  html[data-theme="light"] .dating-profile-form .dating-photo-upload-card {
    min-height: 112px;
    margin-bottom: 10px;
  }

  .dating-profile-form .dating-photo-camera,
  html[data-theme="light"] .dating-profile-form .dating-photo-camera {
    right: -4px !important;
    bottom: -4px !important;
  }
}

.dating-mobile-tabs button.active,
.dating-mobile-tabs button.active span,
.dating-mobile-tabs button.active svg,
html[data-theme="light"] .dating-mobile-tabs button.active,
html[data-theme="light"] .dating-mobile-tabs button.active span,
html[data-theme="light"] .dating-mobile-tabs button.active svg {
  color: #fff !important;
  stroke: currentColor;
}

.dating-page .dating-content {
  align-content: start;
  align-items: start;
  overflow-y: auto;
}

.dating-matches-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 360px));
  align-items: start;
  justify-content: start;
  gap: 16px;
  padding-bottom: 18px;
}

.dating-matches-grid .dating-card {
  max-width: 360px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31,55,72,.12);
}

.dating-matches-grid .dating-photo {
  height: 236px;
  aspect-ratio: auto;
  border-radius: 18px 18px 0 0;
  background: #101820;
}

.dating-matches-grid .dating-photo img {
  object-fit: cover;
}

.dating-matches-grid .dating-card-copy {
  gap: 7px;
  padding: 14px 16px 2px;
}

.dating-matches-grid .dating-card-copy h3,
html[data-theme="light"] .dating-matches-grid .dating-card-copy h3 {
  color: #101820 !important;
  font-size: 20px;
}

.dating-matches-grid .dating-card-copy p,
html[data-theme="light"] .dating-matches-grid .dating-card-copy p {
  color: #31445a !important;
  font-size: 13px;
}

.dating-matches-grid .dating-card-actions {
  gap: 10px;
  padding: 10px 16px 16px;
}

.dating-matches-grid .dating-card-actions .primary-button,
.dating-matches-grid .dating-card-actions .secondary-button {
  min-height: 46px;
  border-radius: 13px;
  color: #fff;
  font-size: 13px;
}

.dating-matches-grid .dating-card-actions .primary-button span,
.dating-matches-grid .dating-card-actions .primary-button svg,
.dating-matches-grid .dating-card-actions .secondary-button span,
.dating-matches-grid .dating-card-actions .secondary-button svg {
  color: #fff !important;
}

.dating-match-list {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 10px;
  max-width: 720px;
  padding-bottom: 18px;
}

.dating-match-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid rgba(20,43,60,.12);
  border-radius: 16px;
  color: #101820;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(31,55,72,.08);
}

.dating-match-row:hover {
  border-color: rgba(236,63,140,.35);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(31,55,72,.12);
}

.dating-match-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(236,63,140,.18);
  font-size: 16px;
}

.dating-match-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dating-match-copy strong,
html[data-theme="light"] .dating-match-copy strong {
  overflow: hidden;
  color: #101820 !important;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dating-match-copy small,
html[data-theme="light"] .dating-match-copy small {
  overflow: hidden;
  color: #506070 !important;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dating-match-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: #ec3f8c;
  font-size: 11px;
  font-weight: 900;
}

.dating-match-status svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.dating-match-row > svg {
  width: 18px;
  height: 18px;
  color: #173f67;
}

.dating-match-profile {
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 42px));
}

.dating-match-profile-photo {
  height: min(360px, 46vh);
  aspect-ratio: auto;
  border-radius: 18px;
  background: #101820;
}

.dating-match-profile-photo img {
  object-fit: cover;
}

.dating-match-profile-copy {
  display: grid;
  gap: 7px;
}

.dating-match-profile-copy h3,
html[data-theme="light"] .dating-match-profile-copy h3 {
  margin: 0;
  color: #101820 !important;
  font-size: 24px;
}

.dating-match-profile-copy p,
html[data-theme="light"] .dating-match-profile-copy p {
  margin: 0;
  color: #31445a !important;
  line-height: 1.45;
}

.dating-match-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}

.dating-match-profile-actions button {
  min-height: 46px;
  border-radius: 13px;
}

@media (max-width: 720px) {
  .dating-matches-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 12px;
  }

  .dating-matches-grid .dating-card {
    max-width: none;
    border-radius: 16px;
  }

  .dating-matches-grid .dating-photo {
    height: 260px;
    border-radius: 16px 16px 0 0;
  }

  .dating-matches-grid .dating-card-actions {
    position: static;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 16px;
  }

  .dating-match-list {
    align-self: start;
    align-content: start;
    max-width: none;
    gap: 8px;
  }

  .dating-match-row {
    grid-template-columns: 50px minmax(0, 1fr) 18px;
    min-height: 68px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .dating-match-avatar {
    width: 50px;
    height: 50px;
  }

  .dating-match-status {
    display: none;
  }

  .dating-match-profile {
    width: min(100%, calc(100vw - 34px));
  }

  .dating-match-profile-photo {
    height: min(300px, 42vh);
  }

  .dating-match-profile-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) {
  .auth-screen {
    grid-template-columns: minmax(420px, .92fr) minmax(560px, 1.08fr);
    min-height: 100vh;
    background:
      radial-gradient(circle at 18% 18%, rgba(236,63,140,.22), transparent 30%),
      radial-gradient(circle at 86% 80%, rgba(23,63,103,.20), transparent 32%),
      #f1f4f7;
  }

  .auth-brand-panel {
    align-items: center;
    min-height: 100vh;
    padding: 64px clamp(42px, 5vw, 76px);
    background:
      linear-gradient(145deg, rgba(23,63,103,.96), rgba(40,91,138,.88) 58%, rgba(236,63,140,.88)),
      url('/assets/nammachat-app-icon.png') center 18% / min(58%, 360px) no-repeat;
    overflow: hidden;
  }

  .auth-brand-panel::before {
    background:
      linear-gradient(180deg, rgba(7,16,29,.22), rgba(7,16,29,.78)),
      radial-gradient(circle at 24% 26%, rgba(255,255,255,.18), transparent 24%);
  }

  .auth-brand-copy {
    display: grid;
    gap: 18px;
    max-width: 560px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 26px;
    background: rgba(8,20,33,.34);
    box-shadow: 0 24px 70px rgba(8,20,33,.28);
    backdrop-filter: blur(12px);
  }

  .auth-brand-copy img {
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
  }

  .auth-brand-copy h1 {
    color: #fff;
    font-size: clamp(46px, 4.4vw, 66px);
    letter-spacing: 0;
  }

  .auth-brand-copy p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 18px;
  }

  .trust-row {
    gap: 10px;
    margin-top: 4px;
  }

  .trust-row span {
    border-color: rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 800;
  }

  .auth-form-panel,
  html[data-theme="light"] .auth-form-panel {
    place-items: center;
    padding: 56px clamp(42px, 6vw, 92px);
    background:
      linear-gradient(180deg, rgba(255,255,255,.86), rgba(241,244,247,.96)),
      #f1f4f7;
  }

  .auth-card,
  html[data-theme="light"] .auth-card {
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(20,43,60,.12);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 72px rgba(31,55,72,.16);
  }

  .auth-heading {
    margin-bottom: 20px;
  }

  .auth-heading .eyebrow {
    color: #ec3f8c !important;
    font-size: 11px;
    font-weight: 900;
  }

  .auth-heading h2,
  html[data-theme="light"] .auth-heading h2 {
    margin-top: 6px;
    color: #101820 !important;
    font-size: 34px;
    line-height: 1.08;
  }

  .auth-heading p:last-child,
  html[data-theme="light"] .auth-heading p:last-child {
    color: #506070 !important;
    font-size: 15px;
  }

  .auth-tabs,
  html[data-theme="light"] .auth-tabs {
    gap: 6px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid rgba(20,43,60,.10);
    border-radius: 16px;
    background: #eef4f8;
  }

  .auth-tabs button,
  html[data-theme="light"] .auth-tabs button {
    min-height: 46px;
    border-radius: 12px;
    color: #173f67 !important;
    font-size: 13px;
    font-weight: 900;
  }

  .auth-tabs button.active,
  html[data-theme="light"] .auth-tabs button.active {
    color: #fff !important;
    background: linear-gradient(135deg, #173f67, #285b8a);
    box-shadow: 0 10px 22px rgba(23,63,103,.20);
  }

  .auth-form {
    gap: 14px;
  }

  .auth-form label,
  .auth-form .form-label,
  html[data-theme="light"] .auth-form label,
  html[data-theme="light"] .auth-form .form-label {
    color: #101820 !important;
    font-size: 13px;
    font-weight: 850;
  }

  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    min-height: 50px;
    border: 1px solid rgba(20,43,60,.14);
    border-radius: 14px;
    color: #101820;
    background: #fff;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(31,55,72,.05);
  }

  .auth-form input::placeholder,
  .auth-form textarea::placeholder {
    color: #7d8792;
  }

  .auth-form input:focus,
  .auth-form select:focus,
  .auth-form textarea:focus {
    border-color: #ec3f8c;
    box-shadow: 0 0 0 4px rgba(236,63,140,.12);
  }

  .password-field button {
    top: 8px;
    right: 8px;
    color: #173f67;
  }

  .auth-form .primary-button {
    min-height: 52px;
    border-radius: 14px;
    color: #fff;
    background: #173f67;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(23,63,103,.22);
  }

  .auth-form .primary-button:hover {
    background: #0d3155;
  }

  .text-button.align-right {
    color: #173f67;
    font-size: 13px;
  }

  .guest-notice,
  html[data-theme="light"] .guest-notice {
    border-left: 0;
    border-radius: 16px;
    color: #101820;
    background: #fff8ec;
    box-shadow: inset 0 0 0 1px rgba(255,184,77,.30);
  }

  .guest-notice strong,
  html[data-theme="light"] .guest-notice strong {
    color: #101820 !important;
  }

  .guest-notice p,
  html[data-theme="light"] .guest-notice p {
    color: #5d4b2a !important;
  }

  .consent-check,
  html[data-theme="light"] .consent-check {
    color: #506070 !important;
    font-size: 12px !important;
  }

  .consent-check a {
    color: #173f67;
    font-weight: 900;
  }
}

.auth-form .consent-check,
html[data-theme="light"] .auth-form .consent-check {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 2px 0;
  color: #506070 !important;
  line-height: 1.4;
}

.auth-form .consent-check input,
html[data-theme="light"] .auth-form .consent-check input {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: none !important;
  accent-color: #173f67;
}

.auth-form .consent-check span,
html[data-theme="light"] .auth-form .consent-check span {
  display: block;
  min-width: 0;
  color: #506070 !important;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .auth-form .consent-check,
  html[data-theme="light"] .auth-form .consent-check {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
  }

  .auth-form .consent-check input,
  html[data-theme="light"] .auth-form .consent-check input {
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    margin-top: 1px !important;
  }

  .auth-form .consent-check span,
  html[data-theme="light"] .auth-form .consent-check span {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-form-panel,
  html[data-theme="light"] .auth-form-panel {
    display: block;
    min-height: auto;
    padding: 10px 12px calc(78px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .auth-card,
  html[data-theme="light"] .auth-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 14px;
    border-radius: 14px;
  }

  .mobile-brand {
    gap: 8px;
    margin-bottom: 14px;
  }

  .mobile-brand img {
    width: 42px;
    height: 42px;
  }

  .mobile-brand strong {
    font-size: 18px;
  }

  .auth-heading {
    margin-bottom: 14px;
  }

  .auth-heading .eyebrow {
    font-size: 10px;
  }

  .auth-heading h2,
  html[data-theme="light"] .auth-heading h2 {
    margin: 4px 0 6px;
    font-size: 28px;
    line-height: 1.05;
  }

  .auth-heading p:last-child,
  html[data-theme="light"] .auth-heading p:last-child {
    font-size: 16px;
    line-height: 1.25;
  }

  .auth-tabs,
  html[data-theme="light"] .auth-tabs {
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 12px;
  }

  .auth-tabs button,
  html[data-theme="light"] .auth-tabs button {
    min-height: 38px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.05;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-form label,
  .auth-form .form-label,
  html[data-theme="light"] .auth-form label,
  html[data-theme="light"] .auth-form .form-label {
    gap: 5px;
    font-size: 12px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
  }

  .auth-form .primary-button {
    min-height: 44px;
    border-radius: 11px;
  }

  .two-fields {
    gap: 10px;
  }

  .text-button.align-right {
    padding: 0;
    font-size: 12px;
  }

  #guestForm {
    gap: 10px;
  }

  #guestForm .guest-notice,
  html[data-theme="light"] #guestForm .guest-notice {
    padding: 10px 11px;
    border-radius: 12px;
  }

  #guestForm .guest-notice strong {
    font-size: 13px;
  }

  #guestForm .guest-notice p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  #guestForm .consent-check {
    padding: 0;
  }
}

.dating-mobile-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}

.dating-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.dating-mobile-tabs button {
  min-width: max-content;
}

@media (max-width: 980px) {
  .public-region-grid,
  .public-guide-grid,
  .public-article-grid,
  .public-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-preview-card,
  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-app-preview {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .public-preview-mini-grid {
    grid-template-columns: 1fr;
  }

  .public-preview-actions,
  .public-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .public-site-nav {
    position: relative;
    top: 0;
    display: grid;
    gap: 10px;
    border-radius: 14px;
  }

  .public-site-nav nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .public-site-nav a,
  .public-site-nav button {
    white-space: nowrap;
  }

  .public-preview-card,
  .public-region-preview,
  .public-guide-grid article,
  .public-article-section,
  .public-faq-section {
    padding: 16px;
    border-radius: 14px;
  }

  .public-preview-heading h2 {
    font-size: 22px;
  }

  .public-region-grid,
  .public-guide-grid,
  .public-article-grid,
  .public-faq-list {
    grid-template-columns: 1fr;
  }

  .public-app-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .public-preview-sidebar {
    display: block;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 63, 103, .12);
  }

  .public-preview-profile {
    display: none;
  }

  .public-preview-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .public-preview-sidebar button {
    grid-template-columns: 24px auto;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .public-preview-topbar {
    padding: 14px;
  }

  .public-preview-topbar h2 {
    font-size: 22px;
  }

  .public-preview-topbar .primary-button {
    min-width: auto;
  }

  .public-preview-content {
    padding: 14px;
  }

  .public-preview-panel {
    padding: 16px;
  }

  .public-preview-panel h3 {
    font-size: 22px;
  }

  .public-dating-stack,
  .public-settings-list {
    grid-template-columns: 1fr;
  }

  .public-region-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 10px;
  }

  .public-region-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .public-region-card button span {
    display: none;
  }

  .content-shell {
    width: min(100% - 20px, 720px);
    padding: 12px 0 34px;
  }

  .content-hero,
  .content-callout {
    padding: 22px;
    border-radius: 15px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-hero p:last-child,
  .content-callout p {
    font-size: 15px;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.onboarding-language-list button.selected,
.onboarding-language-list button.selected *,
.dating-mobile-tabs button.active,
.dating-mobile-tabs button.active *,
.auth-tabs button.active,
.auth-tabs button.active * {
  color: #fff !important;
  fill: none;
  stroke: currentColor;
}
