:root {
    --ink: #17152b;
    --ink-soft: color-mix(in srgb, var(--ink) 82%, white);
    --paper: #fffaf2;
    --surface: #ffffff;
    --line: #e9e3da;
    --muted: #746f82;
    --pink: #ff4f87;
    --pink-dark: color-mix(in srgb, var(--pink) 87%, black);
    --purple: #7c5cff;
    --yellow: #ffd84d;
    --cyan: #43d7da;
    --green: #2ab673;
    --red: #e84163;
    --shadow: 0 16px 45px rgba(30, 23, 62, .14);
    --shadow-small: 0 8px 24px rgba(30, 23, 62, .09);
    --radius: 22px;
    --app-width: 540px;
    --nav-height: 64px;
    --nav-safe-bottom: env(safe-area-max-inset-bottom, env(safe-area-inset-bottom, 0px));
}

/* Firefox Android bug 2057232: in a browser tab the top toolbar can initially
   be reported as a bottom safe area, until the first scroll. Native browser
   chrome already protects that edge. Apply before first paint, not on scroll;
   installed standalone apps keep their real system safe area. */
@media (display-mode: browser) {
    html.android-firefox { --nav-safe-bottom: 0px; }
    html.android-firefox .bottom-nav { bottom: 0; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--brand-font, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { margin-bottom: 10px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.025em; }
p { margin-bottom: 16px; }
.muted, small { color: var(--muted); }
.push-right { margin-left: auto; }

.pixel-heart {
    display: inline-block;
    flex: none;
    width: 36px;
    height: 32px;
    background: linear-gradient(135deg, var(--pink) 0 47%, #ff7a4f 48% 68%, var(--yellow) 69% 100%);
    clip-path: polygon(12.5% 0, 37.5% 0, 50% 14%, 62.5% 0, 87.5% 0, 100% 14%, 100% 50%, 87.5% 50%, 87.5% 64%, 75% 64%, 75% 78%, 62.5% 78%, 62.5% 92%, 37.5% 92%, 37.5% 78%, 25% 78%, 25% 64%, 12.5% 64%, 12.5% 50%, 0 50%, 0 14%);
    filter: drop-shadow(4px 5px 0 rgba(124, 92, 255, .27));
}
.pixel-heart--small { width: 25px; height: 22px; filter: drop-shadow(2px 3px 0 rgba(124, 92, 255, .25)); }
.pixel-heart--hero { width: 92px; height: 82px; filter: drop-shadow(8px 10px 0 var(--purple)); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.035em; }
.brand--small { gap: 9px; font-size: .97rem; }
.eyebrow { margin-bottom: 7px; color: var(--purple); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 850;
    line-height: 1.1;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:active { transform: translateY(2px) scale(.985); }
.button--large { min-height: 54px; border-radius: 17px; }
.button--full { width: 100%; }
.button--primary { color: var(--on-primary, #fff); background: var(--pink); box-shadow: 0 6px 0 color-mix(in srgb, var(--pink) 76%, black); }
.button--primary:hover { background: var(--pink-dark); }
.button--ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 5px 0 #ddd6cc; }
.button--danger { color: #fff; background: var(--red); box-shadow: 0 5px 0 #ae2340; }
.text-button { padding: 8px 5px; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-weight: 800; }
.icon-button, .back-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 850;
}

.page-main { width: 100%; margin: 0 auto; }
.app-body .page-main { max-width: var(--app-width); min-height: 100vh; padding: 74px 14px 102px; background: color-mix(in srgb, var(--paper) 95%, var(--ink)); }
.app-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 50%;
    width: min(100%, var(--app-width));
    min-height: 64px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(233, 227, 218, .9);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(18px);
}
.app-header .icon-button { margin-left: auto; width: 42px; height: 42px; background: transparent; border-color: transparent; }
/* The controls keep their height. Reserve only a real device inset, and move
   unused safe-area background below the viewport when the browser covers it.
   In particular, Firefox/Android must not inherit a guessed iPhone-sized gap. */
.bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) - var(--nav-safe-bottom));
    margin: 0 auto;
    width: min(100%, var(--app-width));
    height: calc(var(--nav-height) + var(--nav-safe-bottom));
    min-height: calc(var(--nav-height) + var(--nav-safe-bottom));
    max-height: calc(var(--nav-height) + var(--nav-safe-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: calc(var(--nav-height) - 13px);
    padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + var(--nav-safe-bottom)) max(10px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: #fff;
    transform: translate3d(0, 0, 0);
}
.app-body .page-main { padding-bottom: calc(var(--nav-height) + 24px + var(--nav-safe-bottom)); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8c8698; font-size: .72rem; font-weight: 800; }
.bottom-nav a.active { color: var(--pink); }
.bottom-nav svg { width: 25px; height: 25px; }
.nav-icon-wrap { position: relative; }
.nav-badge, .count-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--pink); font-size: .7rem; font-weight: 900; }
.nav-badge { position: absolute; top: -7px; right: -13px; border: 2px solid #fff; }

.toast-stack { position: fixed; z-index: 100; top: calc(72px + env(safe-area-inset-top)); left: 50%; width: min(calc(100% - 28px), 500px); transform: translateX(-50%); pointer-events: none; }
.toast { margin-bottom: 8px; padding: 12px 16px; border-radius: 14px; color: #fff; background: var(--ink); box-shadow: var(--shadow-small); font-weight: 750; animation: toast-in .25s ease both; }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* Landing */
.guest-body { background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--yellow) 34%, transparent), transparent 26%), radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--purple) 17%, transparent), transparent 28%), var(--paper); }
.landing { min-height: 100vh; width: min(100%, 1050px); margin: auto; padding: 34px 22px 42px; display: grid; align-items: center; gap: 42px; overflow: hidden; }
.landing__brand { display: grid; gap: 28px; }
.landing h1 { margin: 0 0 20px; font-size: clamp(3.5rem, 17vw, 6.8rem); line-height: .86; }
.landing h1 span { color: var(--pink); text-shadow: 5px 5px 0 var(--yellow); }
.landing__copy { max-width: 530px; font-size: 1.11rem; color: var(--ink-soft); }
.landing__actions { display: flex; flex-direction: column; gap: 12px; }
.age-note { margin: 17px 0 0; color: var(--muted); font-size: .82rem; }
.phone-preview { width: min(100%, 340px); margin: 0 auto; padding: 14px 14px 18px; border: 4px solid var(--ink); border-radius: 36px; background: #fff; box-shadow: 13px 14px 0 var(--purple), var(--shadow); transform: rotate(1.5deg); }
.phone-preview__top { min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; font-size: .8rem; font-weight: 900; }
.mini-logo { color: var(--pink); font-size: 1.3rem; }
.demo-card { position: relative; overflow: hidden; min-height: 420px; border-radius: 24px; color: #fff; background: var(--ink); }
.demo-card__art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(150deg, var(--cyan), var(--purple) 58%, var(--pink)); }
.demo-photo-placeholder { position: absolute; inset: 56px 38px 62px; display: grid; place-items: center; border: 12px solid rgba(255,255,255,.16); border-radius: 32px 10px 32px 10px; color: rgba(255,255,255,.84); background: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 18px, rgba(23,21,43,.1) 18px 36px); font-size: 1rem; font-weight: 1000; letter-spacing: .18em; }
.pixel-spark { position: absolute; width: 20px; height: 20px; background: var(--yellow); box-shadow: 20px 20px 0 rgba(255,255,255,.8); }
.pixel-spark.p1 { top: 55px; left: 28px; }.pixel-spark.p2 { top: 108px; right: 34px; transform: rotate(45deg); }.pixel-spark.p3 { top: 28px; right: 112px; width: 10px; height: 10px; }
.demo-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(14,10,35,.9)); }
.demo-card__info { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px; }
.demo-card__info h2 { margin: 0; font-size: 1.75rem; }.demo-card__info p { margin: 2px 0 0; font-size: .9rem; opacity: .88; }
.demo-actions { display: flex; justify-content: center; gap: 30px; padding-top: 14px; }
.demo-actions span { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.demo-actions span:last-child { color: #fff; border-color: var(--pink); background: var(--pink); }
.swipe-hint { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .75rem; }

/* Forms and registration */
.auth-shell { width: min(100% - 28px, 470px); min-height: 100vh; margin: 0 auto; padding: 34px 0 54px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.auth-shell--wide { width: min(100% - 28px, 580px); }
.form-card { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow-small); }
.form-card > h1 { font-size: 2.25rem; }
.form-intro { color: var(--muted); }
.form-stack { display: grid; gap: 20px; }
.form-stack label, .form-stack legend { font-weight: 800; }
.form-stack small, legend small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 600; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 9px; }
input[type="text"], input[type="password"], input[type="date"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; min-height: 49px; margin-top: 7px; padding: 11px 13px; border: 2px solid var(--line); border-radius: 13px; outline: 0; background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,92,255,.13); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 88px; }
.password-toggle { position: absolute; right: 7px; top: 14px; padding: 6px 8px; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 850; }
.form-footer { margin: 20px 0 0; text-align: center; color: var(--muted); }.form-footer a { color: var(--purple); font-weight: 850; }
.alert { padding: 12px 14px; border-radius: 13px; font-size: .9rem; }.alert p { margin: 0; }.alert p + p { margin-top: 5px; }
.alert--error { color: #8f1e37; border: 1px solid #ffc3d0; background: #fff0f4; }
.stepper { display: flex; align-items: center; gap: 9px; }
.stepper::before { content: "Registrierung"; margin-right: auto; color: var(--muted); font-size: .78rem; font-weight: 800; }
.stepper span { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 9px; color: #aaa4b3; background: #fff; font-size: .75rem; font-weight: 900; }
.stepper span.active { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 3px 3px 0 #dcd2ff; }
.segmented { display: grid; gap: 7px; }.segmented--2 { grid-template-columns: repeat(2, 1fr); }.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 48px; display: grid; place-items: center; padding: 8px; border: 2px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 800; }
.segmented input:checked + span { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 0 4px 0 #5138c8; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picker label { font-weight: 750; }.tag-picker input { position: absolute; opacity: 0; }
.tag-picker span { display: block; padding: 8px 11px; border: 2px solid color-mix(in srgb, var(--tag-color, var(--purple)) 35%, white); border-radius: 999px; color: var(--ink-soft); background: color-mix(in srgb, var(--tag-color, var(--purple)) 11%, white); cursor: pointer; font-size: .85rem; }
.tag-picker input:checked + span { color: #fff; border-color: var(--tag-color, var(--purple)); background: var(--tag-color, var(--purple)); }
.upload-drop { min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 2px dashed #c9bfda; border-radius: 18px; background: #fbf9ff; cursor: pointer; text-align: center; }
.upload-drop input, .inline-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-drop__icon { width: 48px; height: 48px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--purple); font-size: 1.7rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid figure { position: relative; aspect-ratio: 3/4; overflow: hidden; margin: 0; border-radius: 14px; background: #eee; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.adult-confirmation { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.adult-confirmation input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--purple); }
.upload-drop:focus-within { outline: 3px solid var(--purple); outline-offset: 3px; }
.photo-picker-status { margin: 0; color: var(--muted); font-size: .85rem; }
.photo-picker-slot { min-width: 0; aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 2px dashed color-mix(in srgb, var(--purple) 40%, white); border-radius: 14px; color: var(--purple); background: color-mix(in srgb, var(--purple) 5%, white); cursor: pointer; font-weight: 800; }
.photo-picker-slot span:first-child { font-size: 2rem; line-height: 1; }
.photo-picker-slot small { font-size: .72rem; }
.photo-picker-remove { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(23,21,43,.8); font-size: 1.7rem; cursor: pointer; }
.photo-grid .photo-picker-selected { outline: 2px solid var(--purple); outline-offset: -2px; }
.photo-remove-existing { position: absolute; inset: auto 0 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 3px; color: #fff; background: rgba(23,21,43,.82); font-size: .7rem; cursor: pointer; }
.photo-remove-existing input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--pink); }
.photo-grid .is-marked-for-removal img { opacity: .3; filter: grayscale(1); }
.photo-grid .is-marked-for-removal .photo-remove-existing { background: #98223c; }
.photo-picker-slot:focus-visible, .photo-picker-remove:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Vote */
.vote-shell { height: calc(100vh - 176px); height: calc(100svh - 176px); min-height: 480px; display: flex; flex-direction: column; }
.card-stage { position: relative; flex: 1; min-height: 0; }
.profile-card { position: absolute; inset: 0; overflow: hidden; border-radius: 26px; color: #fff; background: var(--ink); box-shadow: var(--shadow); touch-action: pan-y; user-select: none; cursor: grab; transform-origin: 50% 100%; transition: transform .24s ease, opacity .24s ease; }
.profile-card.is-dragging { cursor: grabbing; transition: none; }
.profile-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #302c4a; }
.profile-card__shade { position: absolute; inset: 34% 0 0; background: linear-gradient(transparent, rgba(10,8,28,.96)); pointer-events: none; }
.profile-card__dots { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 5px; }
.profile-card__dots span { height: 4px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.42); }.profile-card__dots span.active { background: #fff; }
.profile-card__content { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; }
.profile-card__title { display: flex; align-items: center; gap: 10px; }.profile-card__title h1 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }.profile-card__title small { color: rgba(255,255,255,.75); }
.profile-card__meta { margin: 4px 0 10px; opacity: .86; font-weight: 700; }
.profile-card__bio { margin: 7px 0 12px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .93rem; }
.profile-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }.profile-card__tags span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(19,15,46,.38); backdrop-filter: blur(8px); font-size: .74rem; font-weight: 800; }
.profile-card__report { position: absolute; z-index: 5; top: 28px; right: 15px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: rgba(17,14,42,.45); backdrop-filter: blur(8px); cursor: pointer; font-weight: 900; }
.swipe-label { position: absolute; z-index: 6; top: 82px; padding: 8px 13px; border: 4px solid; border-radius: 9px; opacity: 0; font-size: 1.5rem; font-weight: 1000; letter-spacing: .05em; text-transform: uppercase; }
.swipe-label--like { left: 22px; color: #6dffc1; transform: rotate(-10deg); }.swipe-label--pass { right: 22px; color: #ff9aaf; transform: rotate(10deg); }
.vote-actions { height: 84px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.vote-button { width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 7px 20px rgba(30,23,62,.14); cursor: pointer; transition: transform .15s; }
.vote-button:active { transform: scale(.91); }.vote-button svg { width: 29px; height: 29px; stroke-width: 2.5; }
.vote-button--pass { color: var(--red); }.vote-button--like { color: var(--on-primary, #fff); background: var(--pink); box-shadow: 0 7px 0 color-mix(in srgb, var(--pink) 76%, black); }
.card-stage .empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }

/* Content, matches and profile */
.content-shell { width: 100%; margin: 0 auto; }.content-shell--narrow { max-width: 620px; }
.section-heading { min-height: 70px; display: flex; align-items: center; gap: 12px; }.section-heading h1 { margin: 0; font-size: 1.9rem; }.section-heading p { margin: 0 0 4px; }
.section-heading--simple { margin: 8px 3px 20px; }.section-heading--simple .push-right { align-self: center; }
.empty-state { padding: 44px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow-small); }
.empty-state__icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--pink); box-shadow: 6px 6px 0 var(--yellow); font-size: 2rem; }
.empty-state--page { width: min(100% - 30px, 500px); margin: 18vh auto 0; }
.range-fieldset strong { float: right; color: var(--pink); }.range-label { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; margin-top: 8px; font-size: .82rem; }.range-label input { accent-color: var(--purple); }
.state-grid { display: grid; gap: 7px; }.state-grid input { position: absolute; opacity: 0; }.state-grid span { min-height: 43px; display: flex; align-items: center; padding: 8px 11px; border: 2px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: .86rem; font-weight: 750; }.state-grid input:checked + span { border-color: var(--purple); color: var(--purple); background: #f3efff; }
/* A nowrap preview must not become the implicit grid column's minimum width.
   Constrain the track and its flex item, then ellipsis can work inside the row. */
.match-list { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 9px; }
.match-row { width: 100%; min-width: 0; max-width: 100%; min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(30,23,62,.045); }.match-row--unread { border-color: #ffc0d4; background: #fff7fa; }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 18px; color: #fff; background: var(--purple); font-size: 1.4rem; }.avatar img { width: 100%; height: 100%; object-fit: cover; }.avatar--small { width: 42px; height: 42px; border-radius: 13px; }.avatar--admin { width: 46px; height: 46px; border-radius: 12px; }
.match-row__content { min-width: 0; flex: 1; }.match-row__top { display: flex; align-items: baseline; gap: 7px; }.match-row__top time { margin-left: auto; color: var(--muted); font-size: .69rem; }.match-row p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.match-row .count-badge { flex: 0 0 auto; }
.match-row__content > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary { margin-bottom: 12px; padding: 17px 18px; display: flex; align-items: center; gap: 12px; border-radius: 18px; color: #fff; background: var(--ink); }.profile-summary h2, .profile-summary p { margin: 0; }.profile-summary p { color: rgba(255,255,255,.7); }.locked-chip { margin-left: auto; max-width: 140px; color: var(--yellow); font-size: .68rem; font-weight: 800; text-align: right; }
.content-shell > .form-card + .form-card, .content-shell > .profile-summary + .form-card, .danger-zone { margin-top: 12px; }
.field-heading { display: flex; align-items: center; }.field-heading div { flex: 1; }.field-heading h2, .field-heading p { margin: 0; }.field-heading p { color: var(--muted); font-size: .8rem; }.field-heading > span { color: var(--pink); font-weight: 900; }
.photo-grid--editable figure { overflow: visible; }.photo-grid--editable img { overflow: hidden; border-radius: 14px; }.photo-position { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(23,21,43,.7); font-size: .72rem; font-weight: 900; }
.photo-delete { position: absolute; top: -7px; right: -7px; width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--red); cursor: pointer; line-height: 1; }
.inline-upload { display: flex; gap: 8px; }.inline-upload .button { flex: 1; }
.danger-zone { padding: 20px; border: 1px solid #ffc6d2; border-radius: 18px; background: #fff4f6; }.danger-zone h2 { margin-bottom: 5px; }.danger-zone p { color: #84515d; font-size: .88rem; }

/* Chat */
.app-body:has(.chat-shell) .page-main { padding: 64px 0 0; }
.app-body:has(.chat-shell) .app-header, .app-body:has(.chat-shell) .bottom-nav { display: none; }
.chat-shell { height: calc(100dvh - env(safe-area-inset-top)); max-width: var(--app-width); margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; background: #f7f3ef; }
.chat-header { min-height: 64px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }.chat-header strong, .chat-header small { display: block; }.chat-header small { font-size: .7rem; }.chat-header .icon-button { border: 0; background: transparent; }
.message-list { min-height: 0; overflow-y: auto; padding: 18px 13px 14px; overscroll-behavior: contain; }
.message-loading { color: var(--muted); text-align: center; font-size: .8rem; }
.message { width: fit-content; max-width: 82%; margin: 0 auto 7px 0; padding: 9px 11px 6px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 2px 6px rgba(30,23,62,.06); word-break: break-word; }.message--mine { margin-left: auto; margin-right: 0; border-radius: 16px 16px 5px 16px; background: #efeaff; }.message p { margin: 0; white-space: pre-wrap; }.message time { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; text-align: right; }.message img, .message video { width: min(270px, 100%); max-height: 360px; margin-bottom: 6px; border-radius: 11px; object-fit: cover; }
.composer { position: relative; min-height: 68px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 43px 1fr 45px; align-items: end; gap: 7px; border-top: 1px solid var(--line); background: #fff; }.composer textarea { min-height: 45px; max-height: 120px; margin: 0; resize: none; border-radius: 18px; }.attach-button, .send-button { width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 15px; cursor: pointer; }.attach-button { position: relative; overflow: hidden; min-width: 0; color: var(--purple); background: #f1edff; }.attach-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }.attach-button svg { pointer-events: none; }.attach-button:focus-within { outline: 3px solid var(--purple); outline-offset: 2px; }.send-button { color: #fff; background: var(--pink); }.attachment-preview { position: absolute; right: 64px; bottom: calc(64px + env(safe-area-inset-bottom)); max-width: 220px; padding: 6px 9px; border-radius: 10px; color: #fff; background: var(--ink); font-size: .72rem; }

/* Dialog */
.modal { width: min(calc(100% - 28px), 430px); padding: 25px; border: 0; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(15,10,38,.34); }.modal::backdrop { background: rgba(15,10,38,.62); backdrop-filter: blur(5px); }.modal h2 { font-size: 1.8rem; }.modal__actions { display: grid; gap: 10px; }.match-modal { text-align: center; }.match-burst { width: 86px; height: 86px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 27px; color: #fff; background: var(--pink); box-shadow: 9px 9px 0 var(--yellow), -9px -9px 0 var(--cyan); font-size: 3.2rem; }

/* Admin */
.admin-body { background: #f4f1ed; }.admin-header { min-height: 68px; padding: 11px max(20px, calc((100vw - 1240px)/2)); display: flex; align-items: center; gap: 12px; color: #fff; background: var(--ink); }.admin-chip { padding: 4px 8px; border-radius: 7px; color: var(--ink); background: var(--yellow); font-size: .7rem; font-weight: 900; }.admin-header .text-button { color: #fff; }
.admin-nav { padding: 0 max(20px, calc((100vw - 1240px)/2)); display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; }.admin-nav a { padding: 15px 12px 12px; border-bottom: 3px solid transparent; color: var(--muted); font-size: .86rem; font-weight: 800; white-space: nowrap; }.admin-nav a.active { color: var(--purple); border-color: var(--purple); }
.admin-main { width: min(calc(100% - 28px), 1240px); margin: 0 auto; padding: 28px 0 60px; }.admin-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 22px; }.admin-title-row h1, .admin-title-row p { margin-bottom: 0; }.period-nav { margin-left: auto; display: flex; gap: 5px; overflow-x: auto; }.period-nav a { padding: 8px 11px; border-radius: 10px; color: var(--muted); background: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; }.period-nav a.active { color: #fff; background: var(--purple); }
.range-browser { margin-bottom: 12px; padding: 10px 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .8rem; }.range-browser a:last-child { text-align: right; }.range-browser a { color: var(--purple); font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.stat-card { min-height: 140px; padding: 17px; display: flex; flex-direction: column; border-radius: 19px; color: #fff; box-shadow: var(--shadow-small); }.stat-card span { font-size: .8rem; font-weight: 800; }.stat-card strong { margin-top: auto; font-size: 2.7rem; line-height: 1; }.stat-card small { margin-top: 6px; color: rgba(255,255,255,.82); }.stat-card--pink { background: var(--pink); }.stat-card--purple { background: var(--purple); }.stat-card--yellow { color: var(--ink); background: var(--yellow); }.stat-card--yellow small { color: rgba(23,21,43,.7); }.stat-card--cyan { color: var(--ink); background: var(--cyan); }.stat-card--cyan small { color: rgba(23,21,43,.7); }
.admin-panels { margin-top: 12px; display: grid; gap: 12px; }.admin-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 4px 15px rgba(30,23,62,.045); }.admin-card__heading { display: flex; }.admin-card__heading a { margin-left: auto; color: var(--purple); font-size: .8rem; font-weight: 800; }.status-list { display: grid; gap: 1px; }.status-list div { padding: 11px 0; display: flex; border-bottom: 1px solid var(--line); }.status-list div:last-child { border-bottom: 0; }.status-list strong { margin-left: auto; }.admin-card--attention { display: flex; flex-direction: column; align-items: flex-start; background: #fff7d6; }.big-number { margin: 10px 0 20px; font-size: 4rem; line-height: 1; }
.admin-filters { margin-bottom: 12px; padding: 12px; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.admin-filters label span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; }.admin-filters input, .admin-filters select { margin-top: 3px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }.admin-table th { color: var(--muted); background: #fbfaf8; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }.admin-table tr:last-child td { border-bottom: 0; }.user-cell { display: flex; align-items: center; gap: 9px; }.user-cell strong, .user-cell small { display: block; }.user-cell small { font-size: .69rem; }.status-pill, .reason-chip { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: .68rem; font-weight: 850; }.status-pill--active { color: #166b45; background: #dff7ec; }.status-pill--blocked { color: #97263e; background: #ffe3e9; }.status-pill--review { color: #674e00; background: #fff0b5; }.status-pill--pending { color: #5d4c8d; background: #ede8ff; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }.mini-button { min-height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: .7rem; font-weight: 800; }.mini-button--danger { color: var(--red); border-color: #ffcad5; }.empty-table { padding: 35px !important; color: var(--muted); text-align: center !important; }.pagination { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 5px; }.pagination a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: .8rem; font-weight: 800; }.pagination a.active { color: #fff; background: var(--purple); }
.report-list { display: grid; gap: 10px; }.report-card { padding: 14px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.reason-chip { color: #98223c; background: #ffe9ee; }.report-card__body p { margin: 8px 0 3px; }.report-card__body small { font-size: .7rem; }
.admin-panels--settings { align-items: start; }.hint-box { padding: 11px; border-radius: 11px; color: #5a4d82; background: #f1edff; font-size: .8rem; }.hashtag-add-form, .hashtag-admin-row form { display: grid; gap: 7px; align-items: center; }.hashtag-add-form input, .hashtag-admin-row input { margin: 0; }.hashtag-add-form input[type="color"], .hashtag-admin-row input[type="color"] { width: 49px; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }.check-label { display: flex; gap: 6px; align-items: center; font-size: .76rem; font-weight: 800; }.hashtag-admin-list { margin-top: 15px; display: grid; gap: 8px; }.hashtag-admin-row { padding: 9px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 12px; }.hashtag-admin-row > form:first-child { grid-template-columns: minmax(100px,1fr) 48px 65px auto auto; }

@media (min-width: 560px) {
    .state-grid { grid-template-columns: repeat(2, 1fr); }
    .app-body { background: #e9e5e1; }
    .app-body .page-main { box-shadow: 0 0 35px rgba(30,23,62,.08); }
    .landing__actions { flex-direction: row; }.landing__actions .button { min-width: 190px; }
    .admin-filters { grid-template-columns: 2fr 1fr auto; align-items: end; }
    .report-card { grid-template-columns: 190px 1fr auto; align-items: center; }
}

@media (min-width: 800px) {
    .landing { grid-template-columns: 1.15fr .85fr; padding: 60px 40px; }.landing__brand { gap: 38px; }.landing h1 { font-size: clamp(5rem, 8vw, 7rem); }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }.admin-panels { grid-template-columns: 1.3fr .7fr; }.admin-panels--settings { grid-template-columns: .75fr 1.25fr; }
}

@media (max-width: 720px) {
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }.admin-table thead { display: none; }.admin-table tr { padding: 12px; border-bottom: 1px solid var(--line); }.admin-table td { min-height: 34px; padding: 5px 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px; border: 0; }.admin-table td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 800; }.admin-table td:first-child { display: block; margin-bottom: 7px; }.admin-table td:first-child::before { display: none; }
    .hashtag-admin-row > form:first-child { grid-template-columns: 1fr 48px 62px; }.hashtag-admin-row .check-label, .hashtag-admin-row .mini-button { grid-row: 2; }
}

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

/* Editable branding and compact, mobile-first admin editor. */
.demo-actions span:last-child, .nav-badge, .count-badge, .empty-state__icon, .send-button, .match-burst, .stat-card--pink { color: var(--on-primary, #fff); }
.stepper span.active, .segmented input:checked + span, .upload-drop__icon, .avatar, .period-nav a.active, .pagination a.active, .stat-card--purple { color: var(--on-secondary, #fff); }
.stat-card--pink small, .stat-card--purple small { color: inherit; opacity: .8; }
.segmented input:checked + span { box-shadow: 0 4px 0 color-mix(in srgb, var(--purple) 70%, black); }
.stepper span.active { box-shadow: 3px 3px 0 color-mix(in srgb, var(--purple) 25%, white); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.brand-logo { display: block; flex: none; object-fit: contain; }
.brand-logo--small { width: 32px; height: 32px; }
.brand-logo--hero { width: auto; max-width: min(260px, 100%); height: auto; max-height: 130px; object-position: left; }
.brand--small > span:last-child { overflow-wrap: anywhere; }
.app-header .brand { min-width: 0; }
.app-header .brand > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-entry-link { margin-left: auto; flex: none; padding: 8px 10px; border-radius: 10px; color: var(--on-secondary, #fff); background: var(--purple); font-size: .75rem; font-weight: 850; }
.preview-admin-bar { padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 18px; color: #fff; background: var(--ink); font-size: .78rem; }
.preview-admin-bar a { color: var(--yellow); font-weight: 850; }
.landing h1, .landing__copy, .demo-card__info { overflow-wrap: anywhere; }
.landing__brand { min-width: 0; }
.landing--without-preview { grid-template-columns: 1fr; max-width: 800px; }
.preview-label { padding: 3px 6px; border-radius: 5px; color: var(--muted); background: var(--paper); font-size: .61rem; font-weight: 700; }
.demo-card__photo { width: 100%; height: 100%; object-fit: cover; }
.landing-blocks { width: min(100% - 44px, 970px); margin: -4px auto 60px; display: grid; gap: 16px; }
.landing-block { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); overflow-wrap: anywhere; }
.landing-block p { margin: 0; color: var(--ink-soft); }
.landing-block__number { display: inline-block; margin-bottom: 12px; color: var(--purple); font-size: .85rem; font-weight: 900; }
.settings-jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.settings-jump-nav a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 800; }
.settings-jump-nav a:hover { color: var(--purple); border-color: var(--purple); }
.settings-sections { display: grid; gap: 18px; }
.settings-section { scroll-margin-top: 16px; min-width: 0; }
.settings-section .hint-box { margin: 0; }
.settings-section input[type="file"] { display: block; width: 100%; margin: 8px 0 0; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: .8rem; }
.settings-section input[type="file"]::file-selector-button { margin-right: 8px; padding: 7px 9px; border: 0; border-radius: 7px; color: var(--purple); background: color-mix(in srgb, var(--purple) 10%, white); font: inherit; font-weight: 800; cursor: pointer; }
.settings-two-cols { display: grid; gap: 16px; }
.settings-two-cols > *, .settings-upload-row > * { min-width: 0; }
.settings-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-color-grid label { padding: 12px; border: 1px solid var(--line); border-radius: 13px; font-size: .78rem; }
.settings-color-grid input[type="color"] { display: block; width: 100%; height: 42px; margin: 8px 0 0; padding: 3px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.settings-upload-row { display: grid; gap: 16px; align-items: center; }
.brand-asset-preview { width: 140px; height: 110px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: repeating-conic-gradient(#f4f1ed 0% 25%, white 0% 50%) 50% / 20px 20px; }
.brand-asset-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-asset-preview--portrait { width: 110px; height: 145px; }.brand-asset-preview--portrait img { width: 100%; height: 100%; object-fit: cover; }
.brand-asset-preview--avatar { width: 72px; height: 72px; border-radius: 50%; }.brand-asset-preview--avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-editor-block { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.settings-editor-block > legend { width: auto; max-width: 100%; padding: 0 5px; margin: 0 0 6px; }
.settings-section .check-label { align-items: flex-start; gap: 9px; font-size: .85rem; line-height: 1.45; }
.settings-section .check-label input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--purple); }
.settings-sections .admin-panels { margin: 0; }
.settings-sections .admin-panels--settings { grid-template-columns: 1fr; }
.settings-section .hashtag-add-form { grid-template-columns: 1fr 49px 65px; }
.settings-section .hashtag-add-form .button { grid-column: span 2; }
.settings-section .hashtag-admin-row { min-width: 0; }
@media (min-width: 600px) {
    .settings-two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-color-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .settings-upload-row { grid-template-columns: auto minmax(0, 1fr); }
    .landing-blocks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .settings-section .hashtag-add-form { grid-template-columns: 1fr 49px 65px auto auto; }
    .settings-section .hashtag-add-form .button { grid-column: auto; }
}
@media (min-width: 1000px) {
    .settings-sections .admin-panels--settings { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 430px) {
    .admin-header { padding: 12px 14px; gap: 7px; flex-wrap: wrap; }
    .admin-header .brand { max-width: calc(100% - 54px); }
    .settings-editor-block { padding: 12px; }
    .settings-section { padding: 17px; }
    .photo-remove-existing { flex-wrap: wrap; gap: 1px; font-size: .63rem; }
}

.vote-empty-actions { display: flex; flex-direction: column; gap: 24px; }
.profile-logout, .profile-legal { margin-top: 22px; }
.profile-legal .site-footer__contact { width: 100%; margin: 0; }
.profile-legal .site-footer__links { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 0; }
.profile-legal .site-footer__links a { display: block; min-height: 44px; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.profile-legal h2 { margin-bottom: 0; }
.message__footer form { margin: 0; }
.profile-card__report { font-size: 17px; letter-spacing: 1px; }
[data-open-report] span { font-size: 17px; letter-spacing: 1px; }
