/* SomeoneBetter. Brand magenta on plum ink, sunshine for "super" moments. */

:root {
  --brand: #bb2649;
  --brand-press: #96193a;
  --brand-soft: #ffe3e8;
  --ink: #241433;
  --muted: #6c5f7d;
  --paper: #f6f2fa;
  --surface: #ffffff;
  --surface-2: #efe9f5;
  --line: #e4dbec;
  --gold: #ffc93c;
  --gold-ink: #6b4a00;
  --mint: #17a06a;
  --danger: #c42b2b;
  --shadow: 0 1px 2px rgb(36 20 51 / .06), 0 8px 24px rgb(36 20 51 / .08);
  --shadow-card: 0 2px 6px rgb(36 20 51 / .1), 0 18px 40px rgb(36 20 51 / .16);
  --f-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
  --rail-w: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #e0446b;
    --brand-press: #c9335a;
    --brand-soft: #3d1626;
    --ink: #f5eef9;
    --muted: #ab9bbb;
    --paper: #140c1b;
    --surface: #1f1428;
    --surface-2: #2a1d35;
    --line: #36284a;
    --gold-ink: #ffd76a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-card: 0 2px 6px rgb(0 0 0 / .4), 0 18px 40px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #e0446b;
  --brand-press: #c9335a;
  --brand-soft: #3d1626;
  --ink: #f5eef9;
  --muted: #ab9bbb;
  --paper: #140c1b;
  --surface: #1f1428;
  --surface-2: #2a1d35;
  --line: #36284a;
  --gold-ink: #ffd76a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  --shadow-card: 0 2px 6px rgb(0 0 0 / .4), 0 18px 40px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; }
h1.display { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); }
h2.display { font-size: 1.5rem; }
.muted { color: var(--muted); }
.lede { margin: 0 0 20px; max-width: 60ch; }
.fine { font-size: .8125rem; color: var(--muted); text-align: center; }
.err { color: var(--danger); font-weight: 600; }
.danger { color: var(--danger) !important; }
.verified { color: var(--mint); font-weight: 600; }
kbd { font: 600 .75rem var(--f-body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface); }

.page { max-width: 680px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
body:not(.has-nav) .page { padding-bottom: 48px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.page-head .back { font-size: 2rem; line-height: 1; text-decoration: none; color: var(--ink); padding: 0 8px 4px 0; }
.section-title { font: 700 1.0625rem var(--f-display); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-press); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.btn--light { background: #fff; color: var(--brand); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 4px; margin-top: 20px; }
.form--inline { margin-top: 16px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 6px; display: flex; justify-content: space-between; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.count { color: var(--muted); font-size: .8125rem; justify-self: end; }
.strength { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background-color .2s; }
.strength i[data-level=ok] { background: var(--gold); }
.strength i[data-level=strong] { background: var(--mint); }
input[type=range] { width: 100%; accent-color: var(--brand); }
.dual { display: grid; gap: 4px; }
.out { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; align-items: stretch; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 500; font-size: .9375rem; transition: all .12s; user-select: none;
}
.chips--stack .chip span { width: 100%; border-radius: 12px; }
.chips--sm .chip span { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; }
.group-title { font: 600 .875rem var(--f-body); color: var(--muted); margin: 18px 0 8px; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; background: color-mix(in srgb, var(--mint) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); font-weight: 500; }
.flash--err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 1000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 14px; font-weight: 600;
  max-width: calc(100vw - 32px); box-shadow: var(--shadow-card); transition: all .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: var(--danger); color: #fff; }

/* ---------- Navigation ---------- */

.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: space-around; align-items: stretch;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar__brand, .tabbar .tabbar__settings { display: none; }
.tabbar__item {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .6875rem; font-weight: 600;
}
.tabbar__item .icon { width: 24px; height: 24px; }
.tabbar__item.is-active { color: var(--brand); }
.tabbar__item.is-active .icon { fill: currentColor; fill-opacity: .15; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff; font: 700 .6875rem/1 var(--f-body);
}
.tabbar__item .badge { position: absolute; top: 6px; left: calc(50% + 6px); border: 2px solid var(--surface); }
.only-mobile { display: inline-flex; }

@media (min-width: 900px) {
  .tabbar {
    top: 0; right: auto; width: var(--rail-w); height: auto; padding: 24px 12px;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line);
  }
  .tabbar__brand {
    display: flex; align-items: center; gap: 10px; padding: 0 12px 24px;
    font: 800 1.125rem var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  }
  .tabbar__brand img { width: 32px; height: 32px; object-fit: contain; }
  .tabbar__item { flex: 0; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; }
  .tabbar__item:hover { background: var(--surface-2); color: var(--ink); }
  .tabbar__item.is-active { background: var(--brand-soft); }
  .tabbar__item .badge { position: static; margin-left: auto; border: 0; }
  .tabbar .tabbar__settings { display: flex; margin-top: auto; }
  body.has-nav .page { margin-left: calc(var(--rail-w) + max(0px, (100vw - var(--rail-w) - 680px) / 2)); padding-bottom: 48px; }
  .toast { bottom: 32px; left: calc(50% + var(--rail-w) / 2); }
  .only-mobile { display: none; }
}

/* ---------- Avatars ---------- */

.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--lg { width: 72px; height: 72px; }
.avatar--xl { width: 104px; height: 104px; }
.avatar--ph, .ph {
  display: grid; place-items: center; color: #fff;
  font: 800 1.5rem var(--f-display); text-shadow: 0 2px 10px rgb(0 0 0 / .15);
}
.avatar--xl.avatar--ph { font-size: 2.75rem; }
.ph b { font-size: clamp(4rem, 20vw, 8rem); font-weight: 800; opacity: .9; }

/* ---------- Discover ---------- */

body.discover .page { padding-top: 8px; }
.page-head--discover { margin-bottom: 12px; }
.nudge {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 14px;
  background: var(--brand-soft); color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.nudge p { margin: 0; }

.deck-wrap { display: grid; justify-items: center; }
.deck {
  position: relative; width: 100%; max-width: 420px;
  height: min(620px, calc(100dvh - var(--nav-h) - 220px)); min-height: 400px;
}
@media (min-width: 900px) { .deck { height: min(640px, calc(100dvh - 210px)); } }
.page:has(.nudge) .deck { height: min(600px, calc(100dvh - var(--nav-h) - 290px)); }
@media (min-width: 900px) { .page:has(.nudge) .deck { height: min(620px, calc(100dvh - 270px)); } }

.card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-card);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .35s;
  will-change: transform;
}
.card.is-top { cursor: grab; }
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-flying { transition: transform .45s cubic-bezier(.4, 0, .6, 1), opacity .45s; pointer-events: none; }
.card.is-back { animation: card-back .4s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes card-back { from { transform: translateX(-120%) rotate(-20deg); } }
.card.nudge-r { animation: nudge-r .3s; }
.card.nudge-l { animation: nudge-l .3s; }
@keyframes nudge-r { 50% { transform: perspective(800px) rotateY(-6deg); } }
@keyframes nudge-l { 50% { transform: perspective(800px) rotateY(6deg); } }

.card__media { position: absolute; inset: 0; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__media .ph { width: 100%; height: 100%; }
.card__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(20 8 28 / .88)); pointer-events: none; }
.card__bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.card__bars i { flex: 1; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .35); }
.card__bars i.on { background: #fff; }
.card__tap { position: absolute; top: 0; bottom: 38%; width: 30%; }
.card__tap--prev { left: 0; }
.card__tap--next { right: 0; }

.card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 64px 20px 20px; color: #fff; z-index: 2; }
.card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.pill--compat { background: rgb(255 255 255 / .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill--gold { background: var(--gold); color: #3a2800; }
.pill--online { background: var(--mint); }
.card__name { font: 800 2.125rem/1 var(--f-display); letter-spacing: -0.02em; }
.card__name span { font-weight: 500; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: .9375rem; opacity: .92; }
.card__prompt { margin: 12px 0 0; font-size: .9375rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__prompt small { display: block; opacity: .75; font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card__more {
  position: absolute; right: 16px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .8); background: rgb(0 0 0 / .2); color: #fff;
  font: italic 700 1rem Georgia, serif;
}

/* The rubber stamps: the signature moment of the app. */
.stamp {
  position: absolute; top: 44px; z-index: 3; opacity: 0; pointer-events: none;
  font: 800 2.75rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 14px; border: 5px solid currentColor; border-radius: 12px;
  background: rgb(255 255 255 / .08);
  mix-blend-mode: normal;
}
.stamp--like { left: 22px; color: #3ef0a1; transform: rotate(-16deg); }
.stamp--nope { right: 22px; color: #ff5a7a; transform: rotate(14deg); }
.stamp--super { left: 50%; top: auto; bottom: 46%; color: var(--gold); transform: translateX(-50%) rotate(-6deg); }

.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: .875rem; font-weight: 500; }
.card .tag { background: rgb(255 255 255 / .18); color: #fff; }
.tag--shared { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.card .tag--shared { background: rgb(255 255 255 / .92); color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--shared { color: #ff8fab; } }
:root[data-theme="dark"] .tag--shared { color: #ff8fab; }

.actions { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 18px; }
.actions.is-empty .act:not(.act--undo) { opacity: .3; pointer-events: none; }
.act {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 1.75rem; line-height: 1;
  transition: transform .15s cubic-bezier(.3, .7, .4, 1.5);
}
.act:hover { transform: scale(1.08); }
.act:active { transform: scale(.92); }
.act--undo { width: 48px; height: 48px; font-size: 1.25rem; color: var(--gold-ink); }
.act--pass { color: #ff5a7a; }
.act--like { width: 72px; height: 72px; background: var(--brand); color: #fff; font-size: 2rem; }
.act--super { width: 52px; height: 52px; color: #e0a800; font-size: 1.5rem; }
.act--super b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #3a2800; font: 700 .6875rem/20px var(--f-body); }
.act--super.is-out { opacity: .45; }
.kbd-hint { color: var(--muted); font-size: .8125rem; margin-top: 14px; display: none; gap: 6px; align-items: center; }
@media (hover: hover) and (min-width: 900px) { .kbd-hint { display: flex; } }

.deck-empty { text-align: center; padding: 48px 16px; max-width: 420px; }
.deck-empty h2 { margin: 20px 0 8px; }
.deck-empty__pulse { position: relative; display: inline-grid; place-items: center; }
.deck-empty__pulse::before, .deck-empty__pulse::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--brand);
  animation: pulse 2.4s ease-out infinite; opacity: 0;
}
.deck-empty__pulse::after { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Dialogs / sheets ---------- */

dialog { border: 0; padding: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(20 8 28 / .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { width: min(560px, 100vw); margin: auto auto 0; }
.sheet[open] { animation: sheet-up .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__body {
  position: relative; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 640px) { .sheet { margin: auto; } .sheet__body { border-radius: 24px; } }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.5rem; line-height: 1; }
.sheet__close--float { position: sticky; top: 0; float: right; z-index: 5; margin: 0 0 -40px; box-shadow: var(--shadow); }
.sheet--profile .sheet__body { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }

/* ---------- Full profile ---------- */

.pf { display: grid; gap: 14px; }
.pf__hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.pf__hero > img, .pf__hero > .ph { width: 100%; height: 100%; object-fit: cover; }
.pf__hero::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(20 8 28 / .8)); }
.pf__heroinfo { position: absolute; left: 20px; bottom: 18px; color: #fff; z-index: 1; }
.pf__heroinfo h2 { font-size: 2rem; }
.pf__heroinfo p { margin: 2px 0 0; opacity: .85; }
.pf__why { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--brand-soft); }
.pf__why h3 { font: 700 1rem var(--f-display); margin-bottom: 4px; }
.pf__why p { margin: 0; line-height: 2; }
.pf__score, .strength__ring {
  --size: 76px; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  position: relative;
}
.pf__score b, .strength__ring b { position: absolute; font: 800 1.125rem var(--f-display); }
.pf__score { -webkit-mask: none; mask: none; background: radial-gradient(closest-side, var(--brand-soft) 79%, transparent 80% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.strength__ring { -webkit-mask: none; mask: none; background: radial-gradient(closest-side, var(--surface) 79%, transparent 80% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.pf__facts, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf__facts { padding: 4px 4px 0; }
.pf__block { padding: 4px 8px; }
.pf__block h3 { font: 700 1rem var(--f-display); margin-bottom: 10px; }
.pf__bio { font-size: 1.0625rem; margin: 0; white-space: pre-line; }
.pf__prompt { padding: 22px 20px; border-radius: 20px; background: var(--surface-2); }
.pf__prompt small { font-weight: 600; color: var(--muted); }
.pf__prompt p { font: 700 1.375rem/1.3 var(--f-display); margin: 6px 0 0; letter-spacing: -0.01em; }
.pf__photo img { width: 100%; border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; }
.pf__actions { position: sticky; bottom: -24px; display: flex; justify-content: center; gap: 18px; margin: 0 -12px -24px; padding: 28px 0 24px; background: linear-gradient(transparent, var(--surface) 45%); }
.pf__report { text-align: center; padding-top: 12px; }

/* ---------- Match modal ---------- */

.match { width: 100vw; height: 100dvh; margin: 0; background: radial-gradient(120% 80% at 50% 30%, #d6365f, #6b0f2c 70%, #2a0815); color: #fff; overflow-y: auto; }
.match::backdrop { background: #2a0815; }
.match__confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.match__inner { position: relative; z-index: 1; min-height: 100%; max-width: 440px; margin: 0 auto; padding: 48px 20px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.match__title {
  margin: 0; font: 800 clamp(3.5rem, 18vw, 5.5rem)/.85 var(--f-display); letter-spacing: -0.04em;
  text-transform: lowercase;
}
.match.is-in .match__title { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.match__pair { display: flex; align-items: center; margin: 8px 0; }
.match__face { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.match__face img, .match__face .ph { width: 100%; height: 100%; object-fit: cover; }
.match__face .ph b { font-size: 3rem; }
.match__face--me { transform: rotate(-8deg); }
.match__face--them { transform: rotate(8deg); }
.match.is-in .match__face--me { animation: slide-l .6s .15s cubic-bezier(.2, .9, .3, 1.2) both; }
.match.is-in .match__face--them { animation: slide-r .6s .15s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes slide-l { from { transform: translateX(-120px) rotate(-30deg); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(120px) rotate(30deg); opacity: 0; } }
.match__heart { position: relative; z-index: 2; margin: 0 -18px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 1.75rem; }
.match.is-in .match__heart { animation: beat 1s .6s ease-in-out 2; }
@keyframes beat { 30% { transform: scale(1.3); } 60% { transform: scale(.95); } }
.match__sub { margin: 0; font-size: 1.0625rem; opacity: .92; }
.match__breakers { display: grid; gap: 8px; width: 100%; }
.match__send { display: flex; gap: 8px; width: 100%; }
.match__send input { border-radius: 999px !important; border-color: transparent !important; color: var(--ink); background: #fff !important; }

.breaker {
  text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--line);
  background: var(--surface); font-size: .9375rem; line-height: 1.35;
}
.breaker:hover { border-color: var(--brand); border-style: solid; }
.breaker--light { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .35); }
.breaker--light:hover { border-color: #fff; }

/* ---------- Likes ---------- */

.like-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.like-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 0; padding: 0;
  background: var(--surface-2); box-shadow: var(--shadow); text-align: left; transition: transform .2s, opacity .3s;
}
.like-card:hover { transform: translateY(-3px); }
.like-card.is-gone { opacity: 0; transform: scale(.8); }
.like-card.is-super { outline: 3px solid var(--gold); outline-offset: -3px; }
.like-card img, .like-card__ph { width: 100%; height: 100%; object-fit: cover; }
.like-card__ph { display: grid; place-items: center; color: #fff; font: 800 4rem var(--f-display); }
.like-card__meta { position: absolute; inset: auto 0 0; padding: 32px 12px 12px; background: linear-gradient(transparent, rgb(20 8 28 / .85)); color: #fff; display: grid; }
.like-card__meta small { opacity: .9; font-weight: 600; }
.like-card.is-super small { color: var(--gold); }

.empty { text-align: center; padding: 48px 16px; max-width: 420px; margin: 0 auto; }
.empty h2 { margin-bottom: 8px; }
.empty p { margin: 0 0 20px; }
.empty__emoji { font-size: 3.5rem; margin: 0 0 12px !important; }

/* ---------- Chats list ---------- */

.count-pill { background: var(--brand); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.fresh-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.fresh { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .875rem; flex: none; }
.fresh .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line); }
.fresh.is-new .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand); }
.convos { list-style: none; margin: 0 -8px; padding: 0; }
.convo { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.convo:hover { background: var(--surface-2); }
.convo__av { position: relative; flex: none; }
.dot-online { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--paper); }
.convo__text { flex: 1; min-width: 0; display: grid; }
.convo__text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.is-unread .convo__text span { color: var(--ink); font-weight: 600; }
.convo__meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); }
.your-move { background: var(--brand-soft); color: var(--brand); font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: .6875rem; }

/* ---------- Chat ---------- */

body.chat-page .page { padding: 0; max-width: 760px; }
@media (max-width: 899px) { body.chat-page .tabbar { display: none; } }
.chat { display: flex; flex-direction: column; height: 100dvh; }
.chat__head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface); position: sticky; top: 0; z-index: 3;
}
.chat__head .back { font-size: 2rem; line-height: 1; text-decoration: none; color: var(--ink); padding: 0 8px 4px; }
.chat__who { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 0; }
.chat__who .avatar { width: 42px; height: 42px; }
.chat__who small { display: block; color: var(--muted); font-size: .8125rem; }
.menu { position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-2); }
.menu__list { position: absolute; right: 0; top: 46px; min-width: 200px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-card); padding: 6px; display: grid; z-index: 10; }
.menu__list button { text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu__list button:hover { background: var(--surface-2); }

.chat__scroll { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.chat__intro { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 24px 0 16px; color: var(--muted); }
.chat__intro p { margin: 4px 0 0; }
.compat-pill { background: var(--brand-soft); color: var(--brand); font-weight: 600; padding: 6px 14px; border-radius: 999px; font-size: .875rem; }
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.day { text-align: center; color: var(--muted); font-size: .75rem; font-weight: 600; margin: 14px 0 6px; }
.msg { position: relative; max-width: 78%; display: grid; animation: msg-in .2s ease-out; }
@keyframes msg-in { from { transform: translateY(6px); opacity: 0; } }
.msg--me { align-self: flex-end; justify-items: end; }
.msg--them { align-self: flex-start; }
.bubble { padding: 10px 14px; border-radius: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.msg--them .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--me .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg--date .bubble { background: linear-gradient(135deg, var(--gold), #ffad5a); color: #3a2800; border: 0; display: grid; gap: 4px; min-width: 200px; }
.msg--date .bubble small { font-weight: 700; opacity: .8; }
.date-actions button { margin-top: 6px; border: 0; background: #3a2800; color: var(--gold); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.msg__meta { font-size: .6875rem; color: var(--muted); margin: 2px 6px 0; display: none; gap: 6px; }
.msg:hover .msg__meta, .msg--me:last-child .msg__meta, .msg--me.is-read:has(+ .msg--them) .msg__meta { display: flex; }
.msg .heart { position: absolute; bottom: 10px; right: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--brand); font-size: .75rem; display: none; place-items: center; }
.msg.is-hearted .heart { display: grid; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.msg--me .heart { right: auto; left: -10px; }
.msg--them .bubble { cursor: default; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-top: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.breakers { padding: 10px 16px 0; border-top: 1px solid var(--line); background: var(--paper); }
.breakers p { margin: 0 0 8px; font-size: .875rem; }
.breakers__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.breakers__list .breaker { flex: 0 0 auto; max-width: 260px; }

.composer { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-height: 44px !important; max-height: 140px; resize: none; border-radius: 22px !important; padding: 10px 16px !important; }
.composer__tool { width: 40px; height: 44px; border: 0; background: none; font-size: 1.25rem; border-radius: 50%; flex: none; }
.composer__tool:hover { background: var(--surface-2); }
.composer__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.125rem; flex: none; }

/* ---------- Profile ---------- */

.me-hero { display: flex; gap: 18px; align-items: center; }
.me-hero p { margin: 4px 0 0; }
.pstrength { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.pstrength .section-title { margin: 0 0 6px; }
.tips { margin: 0; padding-left: 18px; }
.tips li { margin: 2px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border-radius: 20px; overflow: hidden; background: var(--line); }
.stat { background: var(--surface); padding: 16px 12px; display: grid; text-align: center; }
.stat b { font: 800 1.75rem var(--f-display); color: var(--brand); }
.stat span { font-weight: 600; font-size: .875rem; }
.stat small { color: var(--muted); font-size: .75rem; }
.profile-preview { max-width: 420px; }

/* ---------- Edit profile / onboarding ---------- */

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px; }
.photo-slot { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface); border: 2px dashed var(--line); }
.photo-slot.has-photo { border: 0; cursor: grab; }
.photo-slot.is-cover::before { content: "Cover"; position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.photo-slot.is-dragging { opacity: .4; }
.photo-slot.is-loading { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__add { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.photo-slot__add span { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.photo-slot__del { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: 1.125rem; line-height: 1; }
.prompt-edit { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); margin-bottom: 12px; box-shadow: var(--shadow); }
.prompt-edit select { font-weight: 600; }
.pick-count { color: var(--brand); }

.step { padding-bottom: 8px; }
.step > h2 { margin: 8px 0 6px; }
.edit-form .step { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.edit-form .step:first-of-type { border-top: 0; margin-top: 0; }
.sticky-save { position: sticky; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); margin-top: 24px; }
@media (min-width: 900px) { .sticky-save { bottom: 16px; } }

.stepper__head { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 12px 0; }
.stepper__head p { margin: 10px 0 0; font-size: .9375rem; }
.stepper__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.stepper__bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 6px; transition: width .35s cubic-bezier(.2, .8, .3, 1); }
.stepper__nav {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%);
}
.stepper__nav .btn--primary { flex: 1; max-width: 260px; }

/* ---------- Play: This or That ---------- */

.tot { display: grid; gap: 16px; }
.tot__progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.tot__progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .35s; }
.tot__count { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.tot__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tot__or {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 800 1rem var(--f-display);
}
.tot__opt {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 260px; padding: 20px 12px; border-radius: 24px; border: 0; color: #fff;
  font: 800 clamp(1.25rem, 4vw, 1.75rem)/1.1 var(--f-display); letter-spacing: -0.01em;
  transition: transform .25s cubic-bezier(.3, .7, .4, 1.4), opacity .25s, filter .25s;
}
.tot__opt--a { background: linear-gradient(160deg, #e0446b, #9d1c3e); }
.tot__opt--b { background: linear-gradient(160deg, #7d4bd8, #3c1d78); }
.tot__opt:hover { transform: scale(1.02); }
.tot__opt.is-in { animation: tot-in .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.tot__opt--b.is-in { animation-delay: .06s; }
@keyframes tot-in { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.tot__opt.is-picked { transform: scale(1.04); box-shadow: 0 0 0 4px var(--gold); }
.tot__opt.is-other { opacity: .45; filter: saturate(.4); transform: scale(.96); }
.tot__emoji { font-size: 3.5rem; line-height: 1; }
.tot__pct { font: 600 .9375rem var(--f-body); min-height: 1.4em; }
.tot-done { text-align: center; padding: 16px 0; }
.vibe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.vibe__item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .875rem; }
.vibe__item:hover { border-color: var(--brand); }

/* ---------- Settings ---------- */

.panel { padding: 18px; border-radius: 20px; background: var(--surface); margin-bottom: 14px; box-shadow: var(--shadow); }
.panel .section-title { margin-top: 0; }
.panel p { margin: 0 0 12px; }
.panel--danger { border: 1.5px solid color-mix(in srgb, var(--danger) 30%, transparent); box-shadow: none; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.safety { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Auth ---------- */

body.auth { min-height: 100vh; background: radial-gradient(90% 60% at 80% 0%, var(--brand-soft), transparent 70%) no-repeat fixed, var(--paper); }
.auth-card { max-width: 440px; margin: 24px auto; padding: 32px 24px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-card); }
.auth-card__logo img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card > p { margin: 0; }
.auth-card__alt { text-align: center; margin-top: 16px !important; }
@media (max-width: 480px) { .auth-card { margin: 0 -4px; padding: 24px 18px; box-shadow: none; } }

/* ---------- Landing ---------- */

body.landing .page { max-width: 1160px; padding-bottom: 0; }
.land-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 16px; }
.land-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.25rem var(--f-display); letter-spacing: -0.02em; }
.land-nav__brand img { width: 36px; height: 36px; object-fit: contain; }
.land-nav nav { display: flex; align-items: center; gap: 18px; }
.land-nav nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }

.hero { display: grid; gap: 40px; align-items: center; padding: 24px 0 64px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 48px 0 96px; } }
.hero__title {
  font: 800 clamp(3rem, 8vw, 6.25rem)/.92 var(--f-display); letter-spacing: -0.045em; margin: 0 0 24px;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.hero__lede { font-size: 1.1875rem; max-width: 46ch; margin: 0 0 28px; color: var(--muted); }
.hero__lede em { color: var(--ink); font-style: normal; text-decoration: underline wavy var(--brand); text-underline-offset: 5px; }
.hero__copy .muted { margin-top: 18px; }
.hero__demo { display: grid; justify-items: center; }
.deck--demo { height: 520px; min-height: 0; max-width: 360px; }
.deck--demo .card { transform-origin: 50% 100%; }
.hero__hint { color: var(--muted); font-weight: 600; margin-top: 18px; }

.features { display: grid; gap: 40px 48px; padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.feature h2 { font: 800 1.375rem var(--f-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); max-width: 40ch; }

.cta-band {
  margin: 24px -16px 0; padding: 72px 24px; text-align: center; background: var(--brand); color: #fff;
  display: grid; justify-items: center; gap: 24px;
}
@media (min-width: 1192px) { .cta-band { border-radius: 32px; margin: 24px 0 0; } }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 18ch; line-height: 1; }
.land-foot { padding: 32px 0; color: var(--muted); font-size: .875rem; text-align: center; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Admin ---------- */

.admin .page { max-width: 1120px; padding-bottom: 48px; }
.admin h1.display { margin-bottom: 4px; }
.admin-sub { margin: 0 0 16px; font-size: .9375rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-head__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 800 1.125rem var(--f-display); }
.admin-head__brand img { width: 28px; height: 28px; }
.admin-head__exit { margin-left: auto; font-weight: 600; font-size: .9375rem; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a, .filter-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.admin-nav a:hover, .filter-tabs a:hover { background: var(--surface-2); }
.admin-nav a.is-active, .filter-tabs a.is-active { background: var(--ink); color: var(--paper); }
.admin-nav .badge { position: static; border: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.filter-tabs a { font-size: .875rem; padding: 6px 12px; border: 1px solid var(--line); }
.filter-tabs a.is-active { border-color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { display: block; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
a.kpi:hover { outline: 2px solid var(--line); }
.kpi b { display: block; font: 800 1.875rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .875rem; font-weight: 500; }
.kpi--alert { background: var(--brand); color: #fff; }
.kpi--alert span { color: rgb(255 255 255 / .85); }

.admin-grid { display: grid; gap: 0 14px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }

.bars { display: flex; align-items: stretch; gap: 4px; height: 170px; }
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bars__bar { width: 100%; max-width: 28px; background: var(--brand); border-radius: 6px 6px 2px 2px; }
.bars__n { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars__d { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.meters { display: grid; gap: 14px; }
.meter__label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; margin-bottom: 6px; }
.meter__track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter__track span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.people li:last-child { border-bottom: 0; }
.people li > a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.people li > .muted { flex: none; font-size: .875rem; }
.avatar--sm { width: 36px; height: 36px; font-size: 1rem; }

.admin-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
/* Beats the global full-width input rule (same specificity, later in the file). */
.admin .admin-search input[type="search"][name] { flex: 1 1 240px; width: auto; min-width: 0; }
.admin-search select { width: auto; flex: none; }
.admin-search .btn { flex: none; min-height: 48px; }

.panel--flush { padding: 0; overflow: hidden; }
.utable { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.utable th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.utable td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.utable tr:last-child td { border-bottom: 0; }
.utable tbody tr:hover { background: var(--surface-2); }
.utable td:nth-child(2) { word-break: break-all; }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.tagset { display: flex; flex-wrap: wrap; gap: 4px; }
.tagset .tag, .report .tag, .tag--sm { padding: 2px 9px; font-size: .75rem; font-weight: 600; }
.tag--ban { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.tag--admin { background: var(--ink); color: var(--paper); }
.tag--test { background: color-mix(in srgb, var(--gold) 35%, var(--surface)); color: var(--gold-ink); }
.tag--warn { background: var(--brand-soft); color: var(--brand); }
.tag--online { background: color-mix(in srgb, var(--mint) 16%, var(--surface)); color: var(--mint); }
@media (max-width: 899px) { .hide-md { display: none; } }
@media (max-width: 639px) { .hide-sm { display: none; } .utable td, .utable th { padding-inline: 12px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0; }

.admin-back { display: inline-block; margin-bottom: 12px; font-weight: 600; }
.admin-back::before { content: "‹ "; }
.member-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.member-head p { margin: 2px 0; }
.member-head .tagset { margin-top: 8px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin .field > span .muted { font-weight: 400; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .9375rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo-grid figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid form { position: absolute; right: 8px; bottom: 8px; }
.report { border-bottom: 1px solid var(--line); padding: 12px 0; }
.report:last-child { border-bottom: 0; }
.panel.report { padding: 16px 18px; border-bottom: 0; }
.report p { margin: 0 0 4px; }
.report.is-resolved { opacity: .65; }
.report blockquote { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
.report__who { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
