:root {
  color-scheme: light;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --ink: #202225;
  --muted: #6d7178;
  --line: #dedbd4;
  --accent: #e94f6d;
  --accent-2: #007f7a;
  --danger: #a94343;
  --shadow: 0 24px 70px rgba(34, 34, 34, 0.14);
}
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  --bg: #101214;
  --surface: #171a1f;
  --ink: #f4f6f8;
  --muted: #a7adb5;
  --line: #2c3138;
  --accent: #ff5d7d;
  --accent-2: #2bb3aa;
  --danger: #d86b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .auth-hero {
  background-color: #12151a;
}
html[data-theme="dark"] .form-card input,
html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-form textarea,
html[data-theme="dark"] .profile-form select,
html[data-theme="dark"] .composer input,
html[data-theme="dark"] .search-panel input,
html[data-theme="dark"] .search-panel select {
  background: #10141a;
  color: var(--ink);
}
html[data-theme="dark"] .form-card input::placeholder,
html[data-theme="dark"] .profile-form input::placeholder,
html[data-theme="dark"] .composer input::placeholder {
  color: var(--muted);
}
html[data-theme="dark"] .choice-pill span,
html[data-theme="dark"] .button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .auth-form-card {
  box-shadow: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { display: flex; flex-direction: column; gap: 28px; padding: 24px; border-right: 1px solid var(--line); background: #fffaf4; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--ink), #3b3d42); color: #fff; }
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-size: 28px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.main-nav { display: grid; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); padding: 0 12px; }
.nav-item:hover, .nav-item.active { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: currentColor; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workspace { min-width: 0; padding: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.mobile-menu-toggle, .mobile-menu, .bottom-nav { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.eyebrow { margin: 0 0 4px; color: var(--accent-2); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; }
.hero-panel, .form-card, .empty-state, .chat-panel, .profile-editor, .person-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 36px rgba(34, 34, 34, 0.06); }
.hero-panel { min-height: 520px; display: grid; align-items: end; padding: 42px; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.18)), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1500&q=82") center/cover; color: #fff; }
.hero-panel h2 { max-width: 680px; font-size: 46px; line-height: 1.05; }
.hero-panel p { max-width: 620px; color: rgba(255,255,255,.88); }
.landing-page { background: #111; }
.landing-page .app-shell { display: block; min-height: 100vh; }
.landing-page .sidebar, .landing-page .topbar, .landing-page .mobile-menu, .landing-page .bottom-nav, .landing-page .site-footer { display: none !important; }
.landing-page .workspace { min-height: 100vh; padding: 0; }
.landing-hero { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=84") center/cover; color: #fff; }
.landing-content { width: 100%; margin-inline: auto; justify-self: center; align-self: center; display: grid; gap: 30px; justify-items: center; text-align: center; }
.landing-logo { display: grid; width: fit-content; margin-inline: auto; justify-items: center; gap: 10px; color: #fff; }
.landing-content > div { width: 100%; display: grid; gap: 12px; justify-items: center; }
.landing-logo .brand-mark { width: 58px; height: 58px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(12px); }
.landing-logo .brand-word { color: #fff; font-size: 42px; letter-spacing: .1em; }
.landing-content h2 { margin: 0 auto 12px; font-size: clamp(28px, 4.8vw, 56px); line-height: 1; white-space: nowrap; }
.landing-content p { margin: 0 auto; color: rgba(255,255,255,.86); font-size: clamp(14px, 1.55vw, 18px); white-space: nowrap; }
.landing-points { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.landing-points span { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.10); padding: 8px 12px; color: #fff; font-size: 14px; font-weight: 700; backdrop-filter: blur(10px); }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.landing-actions .button { min-width: 150px; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); }
.landing-actions .button.primary { border-color: var(--accent); background: var(--accent); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
}
.theme-toggle .theme-icon { width: 18px; height: 18px; }
.auth-page .app-shell { display: block; min-height: 100vh; }
.auth-page .sidebar, .auth-page .topbar, .auth-page .mobile-menu, .auth-page .bottom-nav, .auth-page .site-footer { display: none !important; }
.auth-page .workspace { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.auth-shell { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px); gap: 22px; align-items: stretch; }
.auth-panel { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.auth-hero {
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.76)), url("https://images.unsplash.com/photo-1511988617509-a57c8a288659?auto=format&fit=crop&w=1400&q=84") center/cover;
}
.auth-hero h1 { margin-bottom: 12px; font-size: clamp(34px, 4.8vw, 64px); line-height: .98; max-width: 10ch; }
.auth-hero p { max-width: 34ch; color: rgba(255,255,255,.88); font-size: 18px; }
.auth-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.auth-badges span { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.10); padding: 8px 12px; font-size: 14px; font-weight: 700; backdrop-filter: blur(10px); }
.auth-form-panel { display: grid; gap: 16px; align-content: center; padding: 26px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-head h2 { margin-bottom: 4px; }
.auth-head p { margin-bottom: 0; color: var(--muted); }
.auth-form-card { max-width: none; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 22px; box-shadow: var(--shadow); }
.auth-form-card .button { width: 100%; }
.auth-form-card .auth-links { margin-top: 6px; color: var(--muted); }
.auth-form-card .auth-links a { color: var(--accent-2); text-decoration: underline; }
.auth-form-card .check-row { align-items: start; }
.auth-form-card .check-row a { color: var(--accent-2); text-decoration: underline; }
.button-row, .action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button-row form { margin: 0; }
.button, .form-card button, .profile-form button, .composer button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; cursor: pointer; }
.button.primary, .form-card button, .profile-form button, .composer button { border-color: var(--accent); background: var(--accent); color: #fff; }
.button:disabled { opacity: .55; cursor: default; }
.form-card { max-width: 520px; display: grid; gap: 16px; padding: 24px; }
.form-card label, .profile-form label { display: grid; gap: 8px; color: var(--muted); }
.form-card input, .profile-form input, .profile-form textarea, .profile-form select, .composer input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); }
.profile-form textarea { min-height: 140px; resize: vertical; }
.notice { max-width: 860px; margin-bottom: 18px; border-radius: 8px; padding: 12px 14px; }
.notice.success { background: #e8f3f1; color: #07534f; }
.notice.error { background: #f8e7e7; color: #7a2222; }
.profile-editor { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 22px; padding: 22px; }
.text-profile-editor { max-width: 860px; grid-template-columns: 1fr; }
.preview-profile { overflow: hidden; border-radius: 8px; background: #191919; color: #fff; }
.preview-profile img, .person-card img, .match-card img { width: 100%; object-fit: cover; }
.preview-profile img { aspect-ratio: 4 / 5; }
.preview-profile div { padding: 18px; }
.profile-form { display: grid; gap: 14px; align-content: start; }
.locked-profile-fields { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #faf7f2; padding: 14px; }
.locked-profile-fields > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.locked-profile-fields strong { color: var(--muted); }
.locked-profile-fields span { color: var(--ink); font-weight: 700; text-align: right; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: center; }
.check-row input { width: auto; }
.choice-group { display: grid; gap: 10px; margin: 0; border: 0; padding: 0; color: var(--muted); }
.choice-group legend { padding: 0; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
.choice-pill { display: block !important; color: var(--ink) !important; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 10px; cursor: pointer; text-align: center; }
.choice-pill input:checked + span { border-color: var(--accent-2); background: #e8f3f1; color: #07534f; font-weight: 700; }
.choice-pill input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.theme-card { max-width: none; }
.theme-card p { color: var(--muted); margin-bottom: 2px; }
.theme-card button { width: 100%; }
.theme-choice-group { gap: 12px; }
.theme-choice-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.theme-choice span { flex-direction: column; gap: 4px; min-height: 96px; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 14px 16px; }
.theme-choice strong { font-size: 16px; }
.theme-choice small { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.35; }
.range-field { grid-template-columns: 1fr auto; align-items: center; }
.range-field input[type="range"] { grid-column: 1 / -1; padding: 0; accent-color: var(--accent); }
.range-field span { color: var(--ink); font-weight: 700; }
.range-fields { align-items: end; }
.location-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f7f4ee; padding: 12px; }
.location-field p { margin-bottom: 0; }
.location-field .button { flex: 0 0 auto; }
.empty-photo { display: grid; place-items: center; min-height: 280px; background: #eee8df; color: var(--muted); }
.discover-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.discover-stack { display: grid; max-width: 520px; margin: 0 auto; }
.discover-stack .action-row { justify-content: center; align-items: center; }
.search-panel { display: grid; gap: 18px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.search-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; }
.search-panel label { display: grid; gap: 8px; color: var(--muted); }
.search-panel input, .search-panel select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); }
.search-count { margin-bottom: 14px; }
.discover-actions { margin-bottom: 16px; }
.person-card { overflow: hidden; }
.person-card img { aspect-ratio: 4 / 4.8; }
.photo-carousel { position: relative; overflow: hidden; background: #eee8df; }
.photo-carousel a { display: block; position: relative; aspect-ratio: 4 / 4.8; }
.discover-stack .photo-carousel a { aspect-ratio: 4 / 5; }
.photo-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .16s ease; }
.photo-carousel img.active { opacity: 1; }
.photo-steps { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 5px; }
.photo-steps span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .45); box-shadow: 0 1px 4px rgba(0,0,0,.16); }
.photo-steps span.active { background: #fff; }
.photo-tap { position: absolute; top: 0; bottom: 0; z-index: 3; width: 50%; border: 0; background: transparent; cursor: pointer; }
.photo-tap-prev { left: 0; }
.photo-tap-next { right: 0; }
.person-body { display: grid; gap: 14px; padding: 18px; }
.person-body h2 { margin-bottom: 2px; }
.person-body p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { border-radius: 8px; background: #f0ece6; padding: 8px 10px; }
.round-btn { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 28px; box-shadow: 0 10px 28px rgba(34,34,34,.12); cursor: pointer; }
.pass { color: var(--danger); }
.like { color: var(--accent); }
.empty-state { max-width: 680px; padding: 28px; }
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.likes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
.match-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.match-card img { aspect-ratio: 4 / 5; }
.match-card div { display: grid; gap: 10px; padding: 14px; }
.match-card form { display: grid; }
.messages-layout { display: grid; grid-template-columns: 310px 1fr; gap: 20px; }
.thread-list { display: grid; gap: 10px; align-content: start; }
.thread { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 10px; }
.thread.active { border-color: var(--accent-2); }
.thread img, .avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #eee8df; }
.thread p, .chat-head p, .muted { margin-bottom: 0; color: var(--muted); }
.thread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: auto; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; }
.chat-panel { min-height: 560px; display: grid; grid-template-rows: auto minmax(240px, 1fr) auto auto; gap: 16px; padding: 22px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.chat-profile-link { display: inline-flex; flex: 0 0 auto; }
.chat-unmatch { margin-left: auto; }
.chat-body { display: flex; flex-direction: column; gap: 10px; justify-content: end; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 70%; border-radius: 8px; background: #f0ece6; padding: 10px 12px; }
.bubble.me { align-self: end; background: var(--accent-2); color: #fff; }
.typing-indicator { min-height: 22px; margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.typing-indicator[hidden] { display: none; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 980px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .app-shell { grid-template-columns: 1fr; }
  .workspace { padding: 18px 18px calc(112px + env(safe-area-inset-bottom)); }
  .auth-page .workspace { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 320px; }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 8; align-items: center; margin: -18px -18px 22px; padding: 14px 18px; background: rgba(245, 243, 239, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .mobile-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 11px; cursor: pointer; }
  .mobile-menu-toggle span:not(.sr-only) { display: block; height: 2px; border-radius: 999px; background: var(--ink); }
  .mobile-menu { position: fixed; top: 72px; right: 14px; z-index: 12; width: min(260px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); padding: 8px; }
  .mobile-menu:not([hidden]) { display: grid; gap: 4px; }
  .mobile-menu .nav-item { min-height: 48px; justify-content: flex-start; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 4px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(34, 34, 34, .12); }
  .bottom-nav .nav-item { position: relative; flex: 1 1 0; min-width: 0; min-height: 64px; flex-direction: column; justify-content: center; gap: 4px; border-radius: 8px; padding: 6px 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
  .bottom-nav .nav-item:hover, .mobile-menu .nav-item:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
  .icon { width: 24px; height: 24px; }
  .icon svg { width: 24px; height: 24px; }
  .profile-editor, .messages-layout, .search-grid, .theme-choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { h1 { font-size: 28px; } .hero-panel { min-height: 480px; padding: 24px; } .hero-panel h2 { font-size: 34px; } .landing-hero { padding: 22px; } .landing-logo .brand-mark { width: 52px; height: 52px; } .landing-logo .brand-word { font-size: 34px; } .landing-content h2 { font-size: clamp(24px, 7vw, 42px); white-space: normal; overflow-wrap: anywhere; } .landing-content p { font-size: clamp(12px, 3.4vw, 16px); white-space: normal; overflow-wrap: anywhere; } .landing-actions { width: 100%; } .landing-actions .button { flex: 1 1 100%; } .auth-panel { border-radius: 20px; } .auth-hero { min-height: 280px; padding: 22px; } .auth-hero h1 { font-size: 34px; } .auth-hero p { font-size: 16px; } .auth-form-panel { padding: 0; } .auth-form-card { padding: 18px; border-radius: 18px; } .auth-head { align-items: flex-start; flex-direction: column; } .discover-list { grid-template-columns: 1fr; } .split-fields, .composer { grid-template-columns: 1fr; } .location-field { align-items: stretch; flex-direction: column; } }
@media (max-width: 680px) { .likes-grid { grid-template-columns: 1fr; } }
.member-detail { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 22px; align-items: start; }
.member-photo-panel, .member-info-panel, .safety-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.member-photo-panel { overflow: hidden; }
.member-photo-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.member-info-panel { display: grid; gap: 22px; padding: 24px; }
.safety-box { padding: 14px; }
.safety-box summary { cursor: pointer; color: var(--muted); }
.safety-box form { display: grid; gap: 12px; margin-top: 14px; }
.safety-box label { display: grid; gap: 8px; color: var(--muted); }
.safety-box select, .safety-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.button.danger, .danger-card button { border-color: var(--danger); background: var(--danger); color: #fff; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.danger-card { border-color: rgba(169, 67, 67, .35); }
@media (max-width: 760px) { .member-detail { grid-template-columns: 1fr; } }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.admin-list { display: grid; gap: 16px; }
.report-card { display: grid; grid-template-columns: 1fr minmax(220px, 280px); gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.report-main { display: grid; gap: 14px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-details { border-left: 3px solid var(--accent-2); background: #f7f4ee; border-radius: 8px; padding: 12px; }
.admin-actions { display: grid; gap: 10px; align-content: start; }
.admin-actions .button { width: 100%; }
@media (max-width: 860px) { .report-card, .report-grid { grid-template-columns: 1fr; } }
.status-pill { display: inline-flex; align-items: center; min-height: 34px; border-radius: 8px; background: #f0ece6; color: var(--muted); padding: 7px 10px; }
.profile-form-stack { display: grid; gap: 22px; }
.profile-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-photo-summary { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.profile-photo-summary h2 { margin-bottom: 4px; }
.photo-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo-strip-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eee8df; }
.photo-strip-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-strip-item span { position: absolute; left: 7px; bottom: 7px; border-radius: 8px; background: rgba(32, 34, 37, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 7px; }
.empty-photo-summary { grid-column: 1 / -1; display: grid; place-items: center; min-height: 130px; border: 2px dashed #c9c4ba; border-radius: 8px; background: #faf7f2; color: var(--muted); font-weight: 700; }
.photo-page { display: grid; gap: 22px; }
.photo-manager { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.modern-upload { display: grid; gap: 14px; max-width: 860px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.upload-dropzone { display: grid; place-items: center; gap: 8px; min-height: 230px; border: 2px dashed #c9c4ba; border-radius: 8px; background: #faf7f2; color: var(--muted); padding: 24px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.upload-dropzone:hover { border-color: var(--accent); background: #fff7f8; color: var(--ink); }
.upload-dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-dropzone strong { color: var(--ink); font-size: 22px; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #e8f3f1; color: var(--accent-2); }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.upload-preview[hidden] { display: none; }
.upload-preview-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.upload-preview-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.upload-preview-item span { display: block; overflow: hidden; padding: 8px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.photo-upload { display: grid; gap: 12px; }
.photo-upload label { display: grid; gap: 8px; color: var(--muted); }
.photo-upload input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.photo-grid-large { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-tile div { display: grid; gap: 8px; padding: 10px; }
.photo-tile form { display: grid; }
.photo-moderation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.photo-review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.photo-review-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.photo-review-card > div { display: grid; gap: 10px; padding: 14px; }
.person-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.match-score { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 34px; border-radius: 8px; background: #e8f3f1; color: var(--accent-2); font-weight: 700; }
.shared-tags span { background: #e8f3f1; color: #07534f; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.stat-card strong { font-size: 30px; }
.stat-card span { color: var(--muted); }
.admin-section { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.admin-table th { color: var(--muted); font-weight: 700; }
.admin-search { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; margin-bottom: 16px; }
.admin-search input { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .admin-search { grid-template-columns: 1fr; } }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: auto; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; }
@media (max-width: 980px) { .nav-badge { position: absolute; top: 5px; right: 12px; min-width: 19px; height: 19px; margin-left: 0; font-size: 11px; padding: 0 5px; } }
.site-footer { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal-page { max-width: 860px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.legal-page h2 { margin-bottom: 0; }
.form-card .check-row a { color: var(--accent-2); text-decoration: underline; }
