/* =======================================================================
   PinayFriendly: page layouts (discover, swipe, matches, profile, photos,
   messages, chat, account, step-by-step forms, moderation).
   Uses only the colour and size names from site.css.
   ======================================================================= */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--pf-card); padding: 8px 12px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.wrap.wide { max-width: 1180px; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.row-buttons form { margin: 0; }
.inline { display: inline; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pf-pill-radius); background: var(--pf-heart); color: var(--pf-on-accent); font-size: var(--pf-fs-12); font-weight: 700; line-height: 1; }
.count[hidden] { display: none; }
.badge.urgent { background: var(--pf-critical-soft); color: var(--pf-critical); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; }
.empty .mark { margin: 0 auto 16px; }

/* ---------- Menus: links in the top bar on computers, a floating bar on phones ---------- */
.top-nav a:not(.button) { display: inline-flex; align-items: center; gap: 6px; color: var(--pf-action); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: var(--pf-pill-radius); }
.top-nav a:not(.button):hover { background: var(--pf-wash); }
.top-nav a[aria-current=page] { background: var(--pf-peach); color: var(--pf-action); }
.tabs { display: none; }
@media (max-width: 767px) {
    body.member .top-nav { display: none; }
    body.member .foot { padding-bottom: 120px; }
    .tabs {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30;
        left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom));
        background: var(--pf-card); border-radius: 26px; padding: 6px; box-shadow: var(--pf-shadow-raised), 0 0 0 1px var(--pf-line);
    }
    .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 20px;
              color: var(--pf-ink-soft); text-decoration: none; font-size: var(--pf-fs-12); font-weight: 600; position: relative; }
    .tabs a[aria-current=page] { color: var(--pf-action); font-weight: 700; }
    .tabs a[aria-current=page] .icon { box-sizing: content-box; padding: 6px; margin: -6px 0 -2px; border-radius: 50%; background: var(--pf-peach); }
    .tabs .count { position: absolute; top: 4px; right: calc(50% - 22px); }
    .wrap { padding-top: 8px; }
    .top { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- Segmented control (Likes / Matches, About / Photos) ---------- */
.segments { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--pf-pill); border-radius: var(--pf-pill-radius); overflow-x: auto; }
.segments a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: var(--pf-pill-radius);
              color: var(--pf-action); text-decoration: none; font-weight: 600; font-size: var(--pf-fs-14); white-space: nowrap; }
.segments a[aria-current=page] { background: var(--pf-card); color: var(--pf-action); font-weight: 700; box-shadow: 0 0 0 1px var(--pf-line); }

/* ---------- Photo cards: the photo is the card, the name sits on it ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.member-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--pf-radius-mid); overflow: hidden; background: var(--pf-wash);
               color: var(--pf-white); text-decoration: none; transition: transform .15s ease; min-width: 0; }
.member-card:hover { transform: translateY(-2px); }
.member-card .photo { position: absolute; inset: 0; display: block; }
.member-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-card::after { content: ""; position: absolute; inset: 0; background: var(--pf-photo-shade); pointer-events: none; }
.member-card .who { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: block; padding: 12px 14px 14px; }
.member-card .name { display: inline; font-size: var(--pf-fs-16); font-weight: 800; overflow-wrap: anywhere; }
.member-card .where, .member-card .when { display: block; font-size: var(--pf-fs-12); opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card .tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: var(--pf-pill-radius); font-size: var(--pf-fs-12); font-weight: 700;
                    background: color-mix(in srgb, var(--pf-white) 28%, transparent); backdrop-filter: blur(8px); color: var(--pf-white); }
.dot { position: absolute; right: 12px; top: 12px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--pf-good); border: 2px solid var(--pf-white); }
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: var(--pf-fs-36); font-weight: 800; color: var(--pf-brand); background: var(--pf-wash); }
.no-photo.big { aspect-ratio: 4 / 5; border-radius: var(--pf-radius); }
.grid.blurred .member-card { filter: blur(8px); background: var(--pf-peach-2); }
.pages { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }

/* ---------- Discover: filters on the side on computers, a sheet on phones ---------- */
.browse { display: grid; gap: 20px; }
.filters > summary { list-style: none; cursor: pointer; }
.filters > summary::-webkit-details-marker { display: none; }
.filter-form .group { padding: 4px 18px; }
.filter-form .group .field { margin: 14px 0; }
.filter-form h2 { font-size: var(--pf-fs-16); margin: 18px 0 8px; }
.filter-form .sort { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.filter-form .sort label { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--pf-pill-radius); background: var(--pf-card); box-shadow: inset 0 0 0 1px var(--pf-line); font-size: var(--pf-fs-14); font-weight: 600; cursor: pointer; }
.filter-form .sort input { position: absolute; opacity: 0; pointer-events: none; }
.filter-form .sort label:has(input:checked) { background: var(--pf-fill-ink); box-shadow: none; color: var(--pf-on-fill); }
.filter-form .sort label:has(input:focus-visible) { outline: 3px solid var(--pf-brand); outline-offset: 2px; }
.filter-actions { display: grid; gap: 8px; margin-top: 16px; }
/* The full Filters panel starts closed everywhere (the age and place row covers the usual ones);
   opened on a computer, it becomes a side column. */
.filters > .filter-form { margin-top: 12px; }
.filters[open] > summary { margin-bottom: 4px; }
@media (min-width: 900px) {
    .browse:has(> .filters[open]) { grid-template-columns: 300px 1fr; align-items: start; }
    .filters[open] { position: sticky; top: 84px; }
}

/* ---------- Swipe: one big photo card with buttons over its foot ---------- */
.deck { position: relative; padding-bottom: 36px; }
.swipe-card { position: relative; border-radius: 28px; background: var(--pf-peach); touch-action: pan-y; transition: transform .2s ease, opacity .2s ease; color: var(--pf-action); }
.swipe-card.gone-left { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.swipe-card.gone-right { transform: translateX(120%) rotate(12deg); opacity: 0; }
.swipe-photo { display: block; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; }
.swipe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.swipe-who { position: relative; z-index: 1; margin-top: -28px; padding: 22px 22px 52px; border-radius: 28px; background: var(--pf-peach); text-align: center; }
.swipe-who h2 { color: var(--pf-action); font-size: var(--pf-fs-36); margin-bottom: 8px; overflow-wrap: anywhere; }
.swipe-who p { margin: 0 0 6px; }
.glass { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--pf-pill-radius); font-size: var(--pf-fs-12); font-weight: 600;
         background: color-mix(in srgb, var(--pf-white) 45%, transparent); color: var(--pf-action); }
.swipe-who .quote { font-size: var(--pf-fs-14); opacity: .95; }
.swipe-buttons { position: absolute; left: 0; right: 0; bottom: -32px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 20px; }
.swipe-buttons form { margin: 0; }
.round { width: 64px; height: 64px; padding: 0; border-radius: 50%; }
button.round.pass { background: var(--pf-card); color: var(--pf-action); box-shadow: var(--pf-shadow-raised); }
button.round.like { width: 76px; height: 76px; background: var(--pf-fill-ink); color: var(--pf-accent-ink); box-shadow: var(--pf-shadow-raised); }
button.round .icon { width: 28px; height: 28px; }
button.round.like .icon { width: 34px; height: 34px; fill: currentColor; }
button.round.small { width: 40px; height: 40px; }
button.round.small .icon { width: 18px; height: 18px; }
.swipe-tip { margin-top: 48px; }
@media (max-width: 767px) { .swipe-photo { aspect-ratio: 3 / 4.2; } }

/* "You have a match!" (the Congrats screen) */
.match-screen { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: var(--pf-page); text-align: center; }
.match-screen[hidden] { display: none; }
.match-screen .inner { display: grid; gap: 14px; justify-items: center; max-width: 360px; width: 100%; }
.match-screen .big { font-size: var(--pf-fs-36); font-weight: 800; color: var(--pf-action); letter-spacing: -.03em; margin: 0; }
.match-screen .hearts { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--pf-peach); box-shadow: 0 0 0 22px var(--pf-brand-soft); margin: 36px 0; }
.match-screen .hearts .icon { width: 56px; height: 56px; color: var(--pf-white); fill: var(--pf-white); }
.match-screen p { color: var(--pf-action); margin: 0; }
.match-screen .button { width: 100%; min-height: var(--pf-button); }
.match-screen .button.light { background: var(--pf-fill-ink); color: var(--pf-on-fill); }

/* ---------- One member's profile (the peach header, then About and Photos) ---------- */
.profile { display: grid; gap: 16px; }
.profile-head { display: grid; gap: 14px; padding: 20px; border-radius: var(--pf-radius); background: var(--pf-peach); }
.profile-head .who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--pf-wash); border: 3px solid var(--pf-white); display: grid; place-items: center; color: var(--pf-brand); font-weight: 800; font-size: var(--pf-fs-28); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h1 { font-size: var(--pf-fs-28); margin: 0 0 4px; overflow-wrap: anywhere; color: var(--pf-action); }
.profile-head .muted { color: var(--pf-action); }
.profile-head .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-head .actions form { margin: 0; display: grid; }
.profile-head .actions .button, .profile-head .actions button { background: var(--pf-card); color: var(--pf-action); box-shadow: none; min-height: 46px; }
.profile-head .actions .button:hover, .profile-head .actions button:hover { background: var(--pf-wash); }
.profile-head .actions .badge { justify-self: center; align-self: center; background: var(--pf-card); }
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--pf-radius-mid); display: block; background: var(--pf-pill); aspect-ratio: 3 / 4; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 16px; list-style: none; padding: 0; margin: 16px 0 0; }
.facts li { overflow-wrap: anywhere; font-weight: 700; }
.facts li span { display: block; font-size: var(--pf-fs-12); color: var(--pf-ink-soft); font-weight: 500; }
.about h2 { margin-top: 4px; }
.safety-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.safety-row form { margin: 0; }
.report-link { color: var(--pf-critical) !important; }
.safety-actions details > summary { list-style: none; cursor: pointer; }
.safety-actions details > summary::-webkit-details-marker { display: none; }
.safety-actions details[open] > summary { display: none; }
.safety-actions details.card { margin-top: 10px; }
@media (min-width: 900px) {
    .profile { grid-template-columns: 1fr 1.1fr; grid-template-rows: auto auto auto 1fr; align-items: start; }
    .profile > :not(.gallery) { grid-column: 1; }
    .profile .gallery { grid-column: 2; grid-row: 1 / span 4; }
}

/* ---------- My photos (the Upload Photo grid) ---------- */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot { position: relative; aspect-ratio: 3 / 4; border-radius: var(--pf-radius-mid); overflow: hidden; background: var(--pf-wash); }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot .num { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pf-peach); color: var(--pf-action); font-size: var(--pf-fs-12); font-weight: 800; }
.slot .flags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.slot .flags .badge { background: color-mix(in srgb, var(--pf-white) 85%, transparent); }
.slot details { position: absolute; right: 6px; top: 6px; }
.slot summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--pf-white) 85%, transparent); font-weight: 800; }
.slot summary::-webkit-details-marker { display: none; }
.slot details[open] { left: 6px; z-index: 2; }
.slot details[open] summary { margin-left: auto; }
.slot .menu { display: grid; gap: 6px; margin-top: 6px; padding: 8px; background: var(--pf-card); border-radius: var(--pf-radius-small); box-shadow: var(--pf-shadow-raised); }
.slot .menu form { margin: 0; }
.slot .menu button { width: 100%; }
.slot.add { display: grid; place-items: center; background: var(--pf-wash); box-shadow: none; border: 2px dashed var(--pf-peach); color: var(--pf-brand); cursor: pointer; }
.slot.add .icon { width: 32px; height: 32px; }
.slot.add input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-bar { display: grid; gap: 12px; margin-top: 18px; }

/* ---------- Step-by-step forms (profile set-up) ---------- */
.steps-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.steps-head .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--pf-pill); overflow: hidden; }
.steps-head .bar span { display: block; height: 100%; width: 0; background: var(--pf-peach); border-radius: 6px; }
.steps-head .where { font-size: var(--pf-fs-14); font-weight: 700; color: var(--pf-ink-soft); white-space: nowrap; }
.steps-head .skip-step { background: none; box-shadow: none; color: var(--pf-ink-soft); padding: 0 4px; min-height: 40px; font-weight: 600; }
.steps-head .back-step { background: var(--pf-pill); box-shadow: none; color: var(--pf-action); width: 40px; height: 40px; padding: 0; min-height: 40px; border-radius: 50%; }
.stepper .step > .field > label, .stepper .step legend { font-size: var(--pf-fs-28); font-weight: 800; letter-spacing: -.02em; line-height: var(--pf-lh-tight); margin-bottom: 18px; }
.stepper.on .step { display: none; }
.stepper.on .step.here { display: block; }
.stepper.on .step-end { display: none; }
.stepper.on.last .step-end { display: block; }
.stepper.on.last .step-next { display: none; }
.meter { height: 8px; background: var(--pf-pill); border-radius: 8px; overflow: hidden; margin: 10px 0 16px; }
.meter span { display: block; height: 100%; background: var(--pf-peach); }

/* ---------- Messages ---------- */
.people-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; }
.people-row a { flex: none; display: grid; justify-items: center; gap: 6px; width: 64px; color: var(--pf-action); text-decoration: none; font-size: var(--pf-fs-12); }
.people-row .photo.small { width: 60px; height: 60px; box-shadow: 0 0 0 2px var(--pf-page), 0 0 0 4px var(--pf-peach); }
.inbox { list-style: none; padding: 0; margin: 0; background: var(--pf-card); border-radius: var(--pf-radius-mid); box-shadow: var(--pf-shadow); overflow: hidden; }
.inbox-row { display: flex; align-items: center; gap: 4px; padding-right: 10px; border-bottom: 1px solid var(--pf-pill); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row.here { background: var(--pf-brand-soft); }
.inbox-row form { margin: 0; }
.inbox-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 8px 12px 16px; color: var(--pf-action); text-decoration: none; }
.inbox-row.unread .inbox-text > span:last-child { color: var(--pf-action); font-weight: 600; }
.photo.small { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--pf-accent-soft); display: block; }
.photo.small img { width: 100%; height: 100%; object-fit: cover; }
.photo.small .dot { top: auto; right: 2px; bottom: 2px; width: 12px; height: 12px; }
.inbox-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.inbox-row .count { flex: none; }
.quick-block button { background: none; box-shadow: none; color: var(--pf-ink-soft); }
.quick-block button:hover { background: var(--pf-pill); }
.inbox li.empty { list-style: none; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; gap: 16px; }
.chat-side { display: none; }
@media (min-width: 900px) {
    .chat-layout { grid-template-columns: 320px 1fr; }
    .chat-side { display: block; max-height: calc(100vh - 140px); overflow-y: auto; border-radius: var(--pf-radius-mid); }
    .chat-head .back { display: none; }
}
.chat { display: flex; flex-direction: column; background: var(--pf-wash); border-radius: var(--pf-radius); box-shadow: inset 0 0 0 1px var(--pf-line); min-height: 64vh; min-width: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--pf-card); border-bottom: 1px solid var(--pf-line); }
.chat-head .back { display: grid; place-items: center; width: 40px; height: 40px; color: var(--pf-action); text-decoration: none; flex: none; }
.chat-who { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; color: var(--pf-action); text-decoration: none; line-height: 1.25; }
.chat-who .photo.small { width: 42px; height: 42px; }
.chat-who strong { overflow-wrap: anywhere; }
.chat-safety { display: flex; gap: 2px; align-items: center; }
.chat-safety form { margin: 0; }
.chat-safety .button, .chat-safety button { background: none; box-shadow: none; color: var(--pf-action); padding: 0; width: 42px; min-height: 42px; border-radius: 50%; }
.chat-safety .button:hover, .chat-safety button:hover { background: var(--pf-pill); filter: none; }
.chat-menu { position: relative; }
.chat-menu summary { list-style: none; cursor: pointer; font-size: 22px; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.chat-menu summary::-webkit-details-marker { display: none; }
.chat-menu[open] > form { position: absolute; right: 0; top: 44px; z-index: 5; padding: 8px; background: var(--pf-card); border-radius: var(--pf-radius-small); box-shadow: var(--pf-shadow-raised); }
.messages { list-style: none; margin: 0; padding: 18px 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
.msg { max-width: 78%; align-self: flex-start; }
.msg p { margin: 0; padding: 10px 16px; border-radius: 18px 18px 18px 6px; background: var(--pf-card); overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg.mine p { background: var(--pf-peach); color: var(--pf-action); text-align: left; border-radius: 18px 18px 6px 18px; }
.msg .meta { display: block; margin-top: 2px; font-size: var(--pf-fs-12); color: var(--pf-ink-soft); }
.msg .tip { margin-top: 6px; background: var(--pf-card); color: var(--pf-action); font-size: var(--pf-fs-14); border-radius: var(--pf-radius-small); box-shadow: inset 0 0 0 1px var(--pf-peach); }
.msg.flagged p { outline: 2px solid var(--pf-critical); }
.messages > .muted { align-self: center; max-width: 320px; margin: auto; }
.messages.small { max-height: none; }
.typing { padding: 0 16px; margin: 0; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: var(--pf-card); border-top: 1px solid var(--pf-line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; padding: 11px 18px; border-radius: 23px; background-color: var(--pf-pill); border-color: transparent; }
.composer button { min-height: 46px; width: 46px; padding: 0; border-radius: 50%; }
body.chat-page .foot { display: none; }
@media (max-width: 767px) {
    body.chat-page .tabs { display: none; }
    body.chat-page .wrap { padding: 0 0 0; }
    .chat { border-radius: 0; box-shadow: none; min-height: calc(100dvh - 68px); }
    .messages { max-height: none; }
}

/* ---------- Account (the profile header with settings below) ---------- */
.me-head { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 8px 0 16px; }
.me-head .avatar { width: 112px; height: 112px; box-shadow: 0 0 0 4px var(--pf-page), 0 0 0 7px var(--pf-peach); border: 0; }
.me-head h1 { margin: 10px 0 0; font-size: var(--pf-fs-28); }
.promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--pf-radius-mid); background: var(--pf-wash); box-shadow: none; color: var(--pf-action); text-decoration: none; margin-bottom: var(--pf-gap); }
.promo strong { display: block; }
.invite input { margin: 8px 0; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--pf-pill); }
.notice:last-child { border-bottom: 0; }
.notice .tile { width: 44px; height: 44px; border-radius: 50%; background: var(--pf-wash); color: var(--pf-brand); }
.notice .tile.like { background: var(--pf-peach); color: var(--pf-action); }
.notice .tile.like .icon { fill: currentColor; }

/* ---------- Moderation ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 16px; }
.stats .card { margin: 0; padding: 16px; }
.stats strong { display: block; font-size: var(--pf-fs-28); }
.queue { list-style: none; padding: 0; margin: 0; }
.queue-row a { display: flex; flex-direction: column; gap: 4px; color: var(--pf-action); text-decoration: none; }
.queue-row strong { overflow-wrap: anywhere; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { border-radius: 10px; object-fit: cover; }
.selfie { max-width: 100%; border-radius: var(--pf-radius-small); }
.gesture { font-size: var(--pf-fs-20); padding: 16px; background: var(--pf-peach); color: var(--pf-action); border-radius: var(--pf-radius-small); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--pf-fs-14); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--pf-pill); white-space: nowrap; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rows.links a { font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.city-list a { white-space: nowrap; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-row img { border-radius: 10px; object-fit: cover; }
.photo-list { display: grid; gap: 8px; }
.step-next { display: none; }
.stepper.on .step-next { display: block; }
.stepper .step-end, .stepper .step-next { margin-top: 8px; }
.group > .row { flex-wrap: wrap; }
.group > .row.check.switch { flex-wrap: nowrap; }
.filters .group { overflow: visible; }
.segments, .people-row, .chips { scrollbar-width: none; }
.segments::-webkit-scrollbar, .people-row::-webkit-scrollbar { display: none; }
.group > .row .grow { min-width: 140px; }
.group > .row > .row-buttons { margin-left: auto !important; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-good); display: inline-block; }
.match-screen .hearts { position: relative; }
.match-screen .hearts img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.match-screen .hearts img + .icon { position: absolute; right: -6px; bottom: -6px; width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--pf-peach); }
.match-screen button { width: 100%; min-height: var(--pf-button); }

/* The welcome steps after sign-up: no menus, a progress bar, one bar with Skip and Next. */
.welcome-page .tabs, .welcome-page .top-nav { display: none; }
.welcome-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.welcome-head .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--pf-pill); overflow: hidden; }
.welcome-head .bar span { display: block; height: 100%; background: var(--pf-peach); border-radius: 6px; }
.welcome-head .where { font-size: var(--pf-fs-14); font-weight: 700; color: var(--pf-ink-soft); white-space: nowrap; }
.welcome-head .back-step { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pf-pill); color: var(--pf-action); }
.welcome-head .back-step.placeholder { background: none; }
.welcome h1 { font-size: var(--pf-fs-28); letter-spacing: -.02em; margin-bottom: 6px; }
.welcome > .muted { margin-bottom: 20px; }
.welcome-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.welcome-bar .button, .welcome-bar button { min-width: 140px; min-height: var(--pf-button); }
.welcome-bar .skip-step { color: var(--pf-ink-soft); font-weight: 600; padding: 8px 4px; }
.welcome-later { text-align: center; margin-top: 20px; font-size: var(--pf-fs-14); }
.welcome-later a { color: var(--pf-ink-soft); }
.age-range { display: flex; align-items: center; gap: 12px; }
.age-range input { flex: 1; }
.welcome .missing { margin: 0 0 20px; padding-left: 20px; }
.welcome .welcome-edit { margin-top: 10px; }

@media (min-width: 900px) {
    .profile .gallery { grid-row: auto; }
    .profile .gallery.first { grid-column: 2; grid-row: 1 / span 3; }
    .profile .gallery.more { grid-column: 2; grid-row: auto; }
}
.gallery.first img { aspect-ratio: 4 / 5; }
.gallery.more { grid-template-columns: 1fr 1fr; }
.gallery.more img:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
.gallery.first { grid-template-columns: 1fr; }

/* =======================================================================
   The Velzon look for member pages (see the note at the end of site.css).
   These rules come last on purpose and replace the older look above.
   ======================================================================= */
.mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: var(--pf-vz-radius); background: var(--pf-primary-soft); color: var(--pf-accent-ink); }
.empty { padding: 40px 20px; }
.empty .mark { margin: 0 auto 16px; }
.empty h2 { font-size: 1.125rem; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--pf-heading); }

/* Phone menu: Velzon's white bar, primary for where you are */
@media (max-width: 767px) {
    .tabs { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--pf-card); box-shadow: 0 -1px 0 var(--pf-line), 0 -4px 15px color-mix(in srgb, var(--pf-fill-ink) 6%, transparent); }
    .tabs a { color: var(--pf-ink-soft); border-radius: var(--pf-vz-radius); }
    .tabs a[aria-current=page] { color: var(--pf-accent-ink); background: var(--pf-primary-soft); font-weight: 600; }
    .tabs a[aria-current=page] .icon { background: none; padding: 0; margin: 0; }
    body.member .foot { padding-bottom: 96px; }
}

/* Segments: Velzon nav pills */
.segments { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); padding: 6px; gap: 4px; }
.segments a { border-radius: var(--pf-vz-radius); color: var(--pf-heading); font-weight: 500; min-height: 38px; }
.segments a:hover { color: var(--pf-accent-ink); text-decoration: none; }
.segments a[aria-current=page] { background: var(--pf-primary); color: var(--pf-on-accent); box-shadow: none; }

/* Photo cards: white cards with the photo on top and the name underneath */
.grid { gap: 1.5rem 1rem; }
@media (min-width: 1000px) { .grid { gap: 1.5rem; } }
.member-card { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--pf-card); color: var(--pf-action); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); transition: transform .4s, box-shadow .4s; }
.member-card:hover { transform: translateY(-5px); box-shadow: var(--pf-vz-shadow-lg); text-decoration: none; color: var(--pf-action); }
.member-card::after { display: none; }
.member-card .photo { position: relative; inset: auto; aspect-ratio: 4 / 5; background: var(--pf-skeleton); }
.member-card .who { position: static; padding: .75rem 1rem 1rem; }
.member-card .name { font-size: .9375rem; font-weight: 600; color: var(--pf-heading); }
.member-card .where, .member-card .when { font-size: .8125rem; color: var(--pf-ink-soft); opacity: 1; }
.member-card .tick { width: 15px; height: 15px; font-size: 9px; }
.dot { top: 10px; right: 10px; background: var(--pf-success); width: 12px; height: 12px; }
.no-photo { background: var(--pf-primary-soft); color: var(--pf-accent-ink); font-weight: 600; }
.grid.blurred .member-card { background: var(--pf-primary-soft); aspect-ratio: 4 / 5; }

/* Discover filters: a Velzon card */
.filters { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); padding: 1rem 1.25rem; }
.filters > summary.button { background: var(--pf-primary-soft); color: var(--pf-accent-ink); }
.filter-form h2 { font-size: .6875rem; color: var(--pf-muted); letter-spacing: .05em; margin: 1rem 0 .5rem; }
.filter-form .group { box-shadow: none; background: none; padding: 0; }
.filter-form .group .field { margin: 0 0 .75rem; }
.filter-form .sort label { border-radius: var(--pf-vz-radius); background: var(--pf-pill); min-height: 32px; font-size: .8125rem; }
.filter-form .sort label:has(input:checked) { background: var(--pf-primary); color: var(--pf-on-accent); }
@media (min-width: 900px) { .filters[open] { position: sticky; top: 100px; } }

/* Swipe: a card with a big photo, Pass and Like below */
.swipe-card { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); color: var(--pf-action); padding: 10px 10px 0; }
.swipe-card::after { display: none; }
.swipe-photo { border-radius: var(--pf-vz-radius); aspect-ratio: 4 / 5; }
.swipe-who { position: static; padding: 1rem .5rem 3.25rem; margin: 0; background: none; text-align: left; border-radius: 0; }
.swipe-who h2 { color: var(--pf-heading); font-size: 1.375rem; font-weight: 600; letter-spacing: 0; margin-bottom: .5rem; }
.swipe-who .quote { color: var(--pf-heading); font-style: italic; }
.glass { background: var(--pf-primary-soft); color: var(--pf-indigo); backdrop-filter: none; border-radius: var(--pf-vz-radius); }
.swipe-buttons { bottom: -28px; }
button.round.pass { background: var(--pf-card); color: var(--pf-danger); box-shadow: var(--pf-vz-shadow-lg); }
button.round.pass:hover { background: var(--pf-danger); color: var(--pf-white); }
button.round.like { background: var(--pf-pink); color: var(--pf-on-accent); box-shadow: 0 5px 10px color-mix(in srgb, var(--pf-accent) 35%, transparent); }
button.round.like:hover { background: var(--pf-accent-hover); }
.round { border-radius: 50% !important; }

/* A member's profile: a profile header card, then cards */
.profile-head { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); padding: 1.25rem; overflow: hidden; position: relative; }
.profile-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--pf-primary); opacity: .9; }
.profile-head .who { position: relative; align-items: flex-end; padding-top: 18px; }
.profile-head .avatar { width: 80px; height: 80px; border: 4px solid var(--pf-white); box-shadow: var(--pf-vz-shadow-lg); }
.profile-head h1 { color: var(--pf-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; margin: 0 0 2px; }
.profile-head .muted { color: var(--pf-ink-soft); }
.profile-head .actions { position: relative; }
.profile-head .actions .button, .profile-head .actions button { min-height: 40px; background: var(--pf-primary); color: var(--pf-on-accent); }
.profile-head .actions form button { background: var(--pf-pink); color: var(--pf-on-accent); }
.profile-head .actions .button:hover { background: var(--pf-primary-hover); }
.gallery img { border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); }
.about { padding: 1.25rem; }
.about > p:first-child strong { font-size: 1.125rem; font-weight: 600; color: var(--pf-accent-ink); letter-spacing: 0; font-style: italic; }
.about h2 { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pf-muted); }
.facts li { background: var(--pf-pill); border-radius: var(--pf-vz-radius); font-weight: 600; color: var(--pf-heading); }
.facts li span { color: var(--pf-ink-soft); }
.about .chip { background: var(--pf-primary-soft); color: var(--pf-indigo); box-shadow: none; }
.safety-row .button.line, .safety-row button.line, .safety-actions summary.button { background: var(--pf-card); box-shadow: inset 0 0 0 1px var(--pf-line); }

/* My photos */
.slot { border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); }
.slot.add { background: var(--pf-card); border: 1.5px dashed var(--pf-line-strong); color: var(--pf-accent-ink); box-shadow: none; }
.slot .num { background: var(--pf-primary); color: var(--pf-on-accent); border-radius: var(--pf-vz-radius); }

/* Steps */
.steps-head .bar, .welcome-head .bar { height: 6px; background: var(--pf-primary-soft); border-radius: 3px; }
.steps-head .bar span, .welcome-head .bar span { background: var(--pf-primary); }
.stepper .step > .field > label, .stepper .step legend, .welcome h1 { font-size: 1.5rem; letter-spacing: 0; font-weight: 600; color: var(--pf-heading); }
.welcome { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); padding: 1.5rem 1.25rem; }
.welcome-bar { background: var(--pf-card); }
.back-step, .steps-head .back-step, .welcome-head .back-step { background: var(--pf-primary-soft) !important; color: var(--pf-accent-ink) !important; border-radius: var(--pf-vz-radius) !important; }
.meter { height: 6px; background: var(--pf-primary-soft); }
.meter span { background: var(--pf-primary); }

/* Messages: Velzon chat */
.inbox { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); overflow: hidden; }
.inbox-row { border-radius: 0; border-bottom: 1px solid var(--pf-line); }
.inbox-row:hover, .inbox-row.here { background: var(--pf-pill); }
.inbox-row.here { box-shadow: inset 3px 0 0 var(--pf-primary); }
.inbox-link:hover { text-decoration: none; }
.inbox-row.unread strong { color: var(--pf-heading); }
.photo.small { width: 44px; height: 44px; }
.people-row .photo.small { width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--pf-page), 0 0 0 4px var(--pf-primary); }
.people-row a:hover { text-decoration: none; }
.chat { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); }
.chat-head { background: var(--pf-card); border-bottom: 1px solid var(--pf-line); }
.chat-who:hover { text-decoration: none; }
.messages { background: var(--pf-card); }
.msg p { background: var(--pf-pill); color: var(--pf-action); border-radius: var(--pf-vz-radius-lg); box-shadow: none; }
.msg.mine p { background: var(--pf-primary-soft); color: var(--pf-indigo); border-radius: var(--pf-vz-radius-lg); }
.msg .tip { background: var(--pf-warning-soft); color: var(--pf-accent-ink); }
.composer { background: var(--pf-card); border-top: 1px solid var(--pf-line); }
.composer textarea { border-radius: var(--pf-vz-radius); background-color: var(--pf-pill); border: 0; }
.composer button { border-radius: var(--pf-vz-radius); width: auto; padding: 0 1rem; }
.chat-safety .button, .chat-safety button { color: var(--pf-heading); }
.chat-safety .report-link { color: var(--pf-danger) !important; }

/* Account: a profile card and dashboard tiles */
.me-head { background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); padding: 1.5rem 1rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.me-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; background: var(--pf-primary); }
.me-head > * { position: relative; }
.me-head .avatar { width: 96px; height: 96px; border: 4px solid var(--pf-white); box-shadow: var(--pf-vz-shadow-lg); }
.me-head h1 { font-size: 1.25rem; letter-spacing: 0; color: var(--pf-heading); }
.promo { background: var(--pf-primary-soft); color: var(--pf-indigo); border-radius: var(--pf-vz-radius-lg); box-shadow: none; }
.promo .muted { color: var(--pf-indigo); }
.promo .tile { background: var(--pf-card); }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 1.5rem; }
.kpi { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 1rem 1.1rem; background: var(--pf-card); border-radius: var(--pf-vz-radius-lg); box-shadow: var(--pf-vz-shadow); color: var(--pf-action); }
a.kpi:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--pf-vz-shadow-lg); color: var(--pf-action); }
.kpi { transition: transform .3s, box-shadow .3s; }
.kpi .label { color: var(--pf-muted); margin-bottom: .75rem; }
.kpi strong { display: block; font-size: 1.375rem; font-weight: 600; color: var(--pf-heading); line-height: 1.1; }
.kpi .tile { width: 44px; height: 44px; }
.kpi .tile.success { background: var(--pf-success-soft); color: var(--pf-good); }
.kpi .tile.secondary { background: var(--pf-secondary-soft); color: var(--pf-secondary); }
.kpi .tile.pink { background: var(--pf-accent-soft); color: var(--pf-accent-ink); }

/* News */
.notice .tile { background: var(--pf-primary-soft); color: var(--pf-accent-ink); border-radius: 50%; }
.notice .tile.like { background: var(--pf-accent-soft); color: var(--pf-accent-ink); }

/* Match screen */
.match-screen { background: var(--pf-page); }
.match-screen .big { color: var(--pf-accent-ink); font-size: 2rem; letter-spacing: 0; font-weight: 700; }
.match-screen .hearts { background: var(--pf-primary); box-shadow: 0 0 0 20px var(--pf-primary-soft), 0 0 0 40px color-mix(in srgb, var(--pf-accent-soft) 50%, transparent); }
.match-screen .hearts img + .icon { background: var(--pf-pink); color: var(--pf-on-accent); fill: var(--pf-white); }
.match-screen .button.light { background: var(--pf-primary); color: var(--pf-on-accent); }
.match-screen button.strong { background: var(--pf-primary-soft); color: var(--pf-accent-ink); }

/* Staff area: Velzon dashboard tiles */
.stats { gap: 1.5rem; }
.stats .card { padding: 1.1rem 1.25rem; display: grid; gap: 4px; transition: transform .3s, box-shadow .3s; }
.stats .card:hover { transform: translateY(-3px); box-shadow: var(--pf-vz-shadow-lg); }
.stats strong { font-size: 1.5rem; font-weight: 600; color: var(--pf-heading); order: 2; }
.stats .muted { text-transform: uppercase; font-size: .6875rem; letter-spacing: .05em; color: var(--pf-muted); font-weight: 500; }
.pills { gap: 6px; }
.pills a { background: var(--pf-card); color: var(--pf-heading); border-radius: var(--pf-vz-radius); min-height: 36px; padding: 0 .9rem; font-weight: 500; font-size: .8125rem; box-shadow: var(--pf-vz-shadow); }
.pills a:hover { color: var(--pf-accent-ink); text-decoration: none; }
.pills a[aria-current=page] { background: var(--pf-primary); color: var(--pf-on-accent); }
table { background: var(--pf-card); }
th { color: var(--pf-heading); font-weight: 600; background: var(--pf-pill); }
.me-page { max-width: 760px; margin: 0 auto; }
.profile-head::before { height: 56px; }
.profile-head .who { padding-top: 22px; align-items: flex-start; }
.profile-head .who > div { padding-top: 40px; min-width: 0; }
.welcome-head .back-step.placeholder { background: none !important; }

/* Big buttons, like the start questions in our other apps: one full-width
   Next, with Back and Skip as quiet words under it. */
.welcome-bar { display: block; margin-top: 28px; background: none; }
.welcome-bar .welcome-next { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; font-size: 1.0625rem; font-weight: 600; }
.welcome-bar .welcome-next + .welcome-next { margin-top: 10px; }
.welcome-links { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; }
.welcome-links a { color: var(--pf-ink-soft); padding: 8px 4px; text-decoration: none; }
.welcome-links a:hover { color: var(--pf-accent-ink); }

/* Stress test 27 Oct 2026: a long city ("San Fernando (La Union)") wrapped to three
   lines in the chat header on a 320 px phone; one line with "..." instead. */
.chat-who > span:last-child { min-width: 0; }
.chat-who .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The arrow-key tip means nothing on a touch screen. */
@media (hover: none) { .swipe-tip { display: none; } }

/* =======================================================================
   "Trust & Warmth" for member pages (see the note at the end of site.css).
   ======================================================================= */
.page-head h1 { text-transform: none; font-size: 1.5rem; color: var(--pf-navy); letter-spacing: -.01em; font-weight: 700; }
.mark { background: var(--pf-navy-soft); color: var(--pf-navy); border-radius: 14px; }
.empty .mark { background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); }
@media (max-width: 767px) {
    .tabs { background: var(--pf-card); box-shadow: 0 -1px 0 var(--pf-line); }
    .tabs a { color: var(--pf-ink-soft); text-decoration: none; border-radius: 12px; }
    .tabs a[aria-current=page] { color: var(--pf-navy); background: var(--pf-navy-soft); }
}
.segments { background: var(--pf-card); border-radius: 9999px; box-shadow: var(--pf-vz-shadow); }
.segments a { border-radius: 9999px; color: var(--pf-action); text-decoration: none; }
.segments a:hover { color: var(--pf-navy); text-decoration: none; }
.segments a[aria-current=page] { background: var(--pf-fill-ink); color: var(--pf-on-fill); }

/* Discover: a curated feed of cards. Photo with the green verified check top right;
   name, age, place, work, an intent pill and one line about them; Pass and Message. */
.member-card { border-radius: 18px; background: var(--pf-card); box-shadow: var(--pf-vz-shadow); color: var(--pf-action); text-decoration: none; }
.member-card:hover { color: var(--pf-action); }
.member-card .photo { aspect-ratio: 4 / 5; background: var(--pf-navy-soft); }
.member-card .name { color: var(--pf-navy); font-size: 1.0625rem; font-weight: 700; }
.member-card .who { display: grid; gap: 3px; padding: .85rem 1rem 1rem; }
.member-card .where, .member-card .when, .member-card .job { color: var(--pf-ink-soft); font-size: .8125rem; }
.member-card .job { display: block; }
.member-card .intent { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 9999px; background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); font-size: .75rem; font-weight: 600; }
.member-card .bio { display: block; margin-top: 4px; font-size: .875rem; color: var(--pf-action); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified-pin { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pf-sage); color: var(--pf-white); font-size: 14px; font-weight: 800; box-shadow: 0 0 0 3px var(--pf-white); }
.member-card .dot { top: auto; bottom: 10px; right: 10px; left: auto; }
/* Discover cards (Anton 31 Oct): every photo the same size and every button the same size;
   the card grows in the text area only, and the buttons sit on the bottom line. */
.feed-card { display: flex; flex-direction: column; border-radius: 18px; background: var(--pf-card); box-shadow: var(--pf-vz-shadow); overflow: hidden; }
.feed-card .member-card { box-shadow: none; border-radius: 0; flex: 1 1 auto; }
.member-card .photo { min-height: 0; overflow: hidden; }
.member-card .photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-card .member-card .photo { flex: none; width: 100%; aspect-ratio: 4 / 5; }
.feed-card .member-card .who { flex: 1 1 auto; align-content: start; }
.feed-card .card-actions { flex: none; margin-top: auto; }
.feed-card .member-card:hover { transform: none; }
.card-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 0 1rem 1rem; }
.card-actions form { margin: 0; display: grid; }
.card-actions .button, .card-actions button { height: 42px; min-height: 42px; box-sizing: border-box; font-size: .9375rem; padding: 0 .75rem; }
.card-actions button.pass { background: transparent; color: var(--pf-ink-soft); box-shadow: inset 0 0 0 1.5px var(--pf-line-strong); }
.card-actions button.pass:hover { color: var(--pf-navy); box-shadow: inset 0 0 0 1.5px var(--pf-navy); background: var(--pf-card); }
@media (max-width: 639px) { .grid.feed { grid-template-columns: 1fr; gap: 18px; } }
.filters { border-radius: 16px; }
.filters > summary.button { background: transparent; color: var(--pf-action); box-shadow: inset 0 0 0 1.5px var(--pf-line-strong); }
.filter-form .sort label { border-radius: 9999px; }
.filter-form .sort label:has(input:checked) { background: var(--pf-fill-ink); color: var(--pf-on-fill); }
.dot { background: var(--pf-sage); }
.no-photo { background: var(--pf-navy-soft); color: var(--pf-navy); }

/* Swipe and the match screen */
.swipe-card { border-radius: 20px; box-shadow: var(--pf-vz-shadow); }
.swipe-photo { border-radius: 14px; }
.swipe-who h2 { color: var(--pf-navy); font-weight: 700; }
.swipe-who .quote { color: var(--pf-action); }
.glass { background: var(--pf-navy-soft); color: var(--pf-navy); }
button.round.pass { background: var(--pf-card); color: var(--pf-ink-soft); box-shadow: inset 0 0 0 1.5px var(--pf-line-strong), 0 6px 16px -8px color-mix(in srgb, var(--pf-fill-ink) 30%, transparent); }
button.round.pass:hover { background: var(--pf-card); color: var(--pf-navy); }
button.round.like { background: var(--pf-terracotta); color: var(--pf-on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--pf-accent) 35%, transparent); }
button.round.like:hover { background: var(--pf-terracotta-hover); }
.match-screen .big { color: var(--pf-navy); }
.match-screen .hearts { background: var(--pf-terracotta); box-shadow: 0 0 0 20px var(--pf-terracotta-soft), 0 0 0 40px color-mix(in srgb, var(--pf-accent-soft) 50%, transparent); }
.match-screen .hearts img + .icon { background: var(--pf-terracotta); }
.match-screen .button.light { background: var(--pf-terracotta); color: var(--pf-on-accent); }
.match-screen button.strong { background: transparent; color: var(--pf-action); box-shadow: inset 0 0 0 1.5px var(--pf-line-strong); }

/* Profiles: a navy header card */
.profile-head { border-radius: 18px; }
.profile-head::before { background: var(--pf-fill-ink); opacity: 1; }
.profile-head h1 { color: var(--pf-navy); font-weight: 700; }
.profile-head .actions .button, .profile-head .actions button { background: var(--pf-terracotta); color: var(--pf-on-accent); border-radius: 9999px; }
.profile-head .actions form button { background: transparent; color: var(--pf-action); box-shadow: inset 0 0 0 1.5px var(--pf-line-strong); }
.profile-head .actions .button:hover { background: var(--pf-terracotta-hover); }
.about > p:first-child strong { color: var(--pf-navy); font-style: normal; }
.facts li { background: var(--pf-page); color: var(--pf-navy); border-radius: 12px; }
.about .chip { background: var(--pf-navy-soft); color: var(--pf-navy); box-shadow: none; }
.gallery img { border-radius: 16px; }

/* Photos, steps, wizard */
.slot { border-radius: 14px; }
.slot.add { border: 2px dashed var(--pf-line-strong); color: var(--pf-accent-ink); background: var(--pf-card); }
.slot .num { background: var(--pf-fill-ink); border-radius: 9999px; }
.steps-head .bar, .welcome-head .bar { background: var(--pf-line); }
.steps-head .bar span, .welcome-head .bar span { background: var(--pf-terracotta); }
.welcome-head .where, .steps-head .where { color: var(--pf-navy); }
.stepper .step > .field > label, .stepper .step legend, .welcome h1 { color: var(--pf-navy); font-weight: 700; letter-spacing: -.015em; }
.back-step, .steps-head .back-step, .welcome-head .back-step { background: var(--pf-navy-soft) !important; color: var(--pf-navy) !important; border-radius: 9999px !important; }
.welcome-head .back-step.placeholder { background: none !important; }
.welcome-bar .skip-step { color: var(--pf-ink-soft); }
.meter { background: var(--pf-line); }
.meter span { background: var(--pf-sage); }
.selfie-next { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--pf-sage-soft); }
.selfie-next h2 { margin: 0; color: var(--pf-sage); font-size: 1.0625rem; display: flex; align-items: center; gap: 8px; }
.selfie-next p { margin: 0; color: var(--pf-action); font-size: .9375rem; }
.selfie-next .button { justify-self: start; }

/* Messages and chat */
.inbox { border-radius: 16px; }
.inbox-row.here { box-shadow: inset 3px 0 0 var(--pf-terracotta); }
.inbox-link { text-decoration: none; }
.people-row a { text-decoration: none; }
.people-row .photo.small { box-shadow: 0 0 0 2px var(--pf-page), 0 0 0 4px var(--pf-terracotta); }
.chat { border-radius: 16px; }
.chat-who { text-decoration: none; }
.msg p { background: var(--pf-page); color: var(--pf-action); border-radius: 18px 18px 18px 6px; }
.msg.mine p { background: var(--pf-fill-ink); color: var(--pf-on-fill); border-radius: 18px 18px 6px 18px; }
.msg .tip { background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); }
.composer textarea { border-radius: 9999px; background-color: var(--pf-page); border: 1.5px solid var(--pf-line-strong); }
.composer button { border-radius: 9999px; }
.chat-safety .button, .chat-safety button { background: transparent; color: var(--pf-navy); box-shadow: none; }
.chat-safety .button:hover, .chat-safety button:hover { background: var(--pf-navy-soft); }
.chat-safety .report-link { color: var(--pf-critical) !important; }
/* Toward sharing contact details: 10 messages each way */
.unlock { padding: 10px 16px; background: var(--pf-page); border-bottom: 1px solid var(--pf-line); }
.unlock p { margin: 0 0 6px; font-size: .8125rem; color: var(--pf-ink-soft); }
.unlock p b { color: var(--pf-navy); }
.unlock .bar { height: 6px; border-radius: 6px; background: var(--pf-line); overflow: hidden; }
.unlock .bar span { display: block; height: 100%; background: var(--pf-terracotta); border-radius: 6px; }
.unlocked { margin: 4px 0; padding: 16px; border-radius: 16px; background: var(--pf-sage-soft); align-self: stretch; list-style: none; }
.unlocked h3 { margin: 0 0 6px; color: var(--pf-sage); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.unlocked p { margin: 0 0 10px; font-size: .9375rem; color: var(--pf-action); }
.unlocked ul { margin: 0 0 12px; padding-left: 18px; font-size: .875rem; color: var(--pf-action); }

/* Account and staff dashboards */
.me-head { border-radius: 18px; }
.me-head::before { background: var(--pf-fill-ink); }
.me-head .avatar { box-shadow: 0 0 0 4px var(--pf-white); }
.me-head h1 { color: var(--pf-navy); }
.me-head .button { border-radius: 9999px; }
.promo { background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); border-radius: 16px; text-decoration: none; }
.promo .muted { color: var(--pf-accent-ink); }
.kpi { border-radius: 16px; text-decoration: none; color: var(--pf-action); }
.kpi strong { color: var(--pf-navy); }
.kpi .label { color: var(--pf-ink-soft); }
.kpi .tile { background: var(--pf-navy-soft); color: var(--pf-navy); }
.kpi .tile.success { background: var(--pf-sage-soft); color: var(--pf-sage); }
.kpi .tile.pink, .kpi .tile.secondary { background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); }
.notice .tile { background: var(--pf-navy-soft); color: var(--pf-navy); }
.notice .tile.like { background: var(--pf-terracotta-soft); color: var(--pf-accent-ink); }
.stats .card { border-radius: 16px; }
.stats strong { color: var(--pf-navy); }
.pills a { border-radius: 9999px; color: var(--pf-action); text-decoration: none; }
.pills a[aria-current=page] { background: var(--pf-fill-ink); color: var(--pf-on-fill); }
th { background: var(--pf-page); color: var(--pf-navy); }
/* A photo slot while its picture uploads. */
.slot.add.busy { opacity: .55; pointer-events: none; }
@media (min-width: 1000px) { .grid.feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-actions .button, .card-actions button { white-space: nowrap; }
/* Country flags: a flags-only font (Twemoji Country Flags, CC BY 4.0, see static/fonts/README.md),
   loaded only when a flag is on the page, because Windows draws no flag emoji. */
@font-face { font-family: "PF Flags"; src: url("../fonts/TwemojiCountryFlags.a19faae092f7.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF; font-display: swap; }
.flag { font-family: "PF Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }
/* The age and place row at the top of Discover and Swipe. */
.quick-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 0 0 14px; }
.quick-filters .field { margin: 0; display: grid; gap: 4px; }
.quick-filters label { font-size: var(--pf-fs-12); color: var(--pf-ink-soft); font-weight: 600; }
.quick-filters .ages { display: flex; align-items: center; gap: 4px; }
.quick-filters input[type=number] { width: 4.2em; }
.quick-filters select { min-width: 9.5em; max-width: 12em; }
.quick-filters button { min-height: 42px; }
/* "Trans woman" on cards and profiles: a small quiet pill. */
.gender-pill { display: inline-block; width: max-content; max-width: 100%; justify-self: start; align-self: flex-start; margin: 4px 0 2px; padding: 2px 8px; border-radius: 999px; background: var(--pf-accent-soft); color: var(--pf-accent-ink); font-size: var(--pf-fs-12); font-weight: 600; vertical-align: middle; }
/* The match quiz result on a profile and in a chat. */
.quiz-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 16px; background: var(--pf-accent-soft); color: var(--pf-action); }
.quiz-result .hearts { color: var(--pf-accent-ink); letter-spacing: 2px; font-size: var(--pf-fs-14); white-space: nowrap; }
.quiz-result strong { display: block; }
.quiz-result.small { padding: 8px 12px; margin: 8px 12px; }
.quiz-result a.button { margin-left: auto; white-space: nowrap; }
/* Voice answers: on a profile and on My photos. */
.voice-answer, .voice-card { display: grid; gap: 10px; }
.voice-answer audio, .voice-card audio { width: 100%; }
.voice-answer p { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
/* Super Like and Rewind on Swipe; the star on members who Super Liked you. */
.swipe-card.gone-up { transform: translateY(-120%); opacity: 0; }
button.round.super { background: var(--pf-card); color: var(--pf-accent-ink); box-shadow: var(--pf-vz-shadow-lg); }
button.round.super:hover { background: var(--pf-accent); color: var(--pf-on-accent); }
button.round.rewind { background: var(--pf-card); color: var(--pf-ink-soft); box-shadow: var(--pf-vz-shadow-lg); }
button.round.super .icon, button.round.rewind .icon { fill: currentColor; }
button.round.rewind .icon { fill: none; }
.super-note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--pf-accent-soft); color: var(--pf-accent-ink); font-weight: 600; font-size: var(--pf-fs-14); }
.super-note .icon { fill: currentColor; }
.member-card .super-pin { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--pf-accent); color: var(--pf-on-accent); font-size: var(--pf-fs-12); font-weight: 600; z-index: 1; }
.member-card .super-pin .icon { width: 12px; height: 12px; fill: currentColor; }

/* The Philippines map picker (includes/ph_map.html): three island groups, tap one or more. */
.ph-map { border: 0; margin: 0; padding: 0; min-width: 0; }
.ph-map legend { font-size: var(--pf-fs-12); color: var(--pf-ink-soft); font-weight: 600; padding: 0; margin-bottom: 4px; }
.ph-map legend small { font-weight: 400; }
.ph-map-shapes { display: grid; grid-template-columns: repeat(3, auto); align-items: end; justify-content: start; gap: 2px 6px; }
.ph-map label { position: relative; display: grid; justify-items: center; gap: 2px; cursor: pointer; padding: 4px 6px; border-radius: 12px; font-size: var(--pf-fs-12); font-weight: 600; color: var(--pf-ink-soft); }
.ph-map input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph-map svg { display: block; height: 46px; width: auto; }
.ph-map .ph-luzon svg { height: 64px; }
.ph-map .ph-visayas { align-self: center; }
.ph-map path { fill: var(--pf-accent-soft); stroke: var(--pf-line-strong); stroke-width: 2; stroke-linejoin: round; transition: fill .15s; }
.ph-map label:hover path { fill: var(--pf-fill-ink); }
.ph-map label:has(input:checked) { color: var(--pf-accent-ink); }
.ph-map label:has(input:checked) path { fill: var(--pf-accent); stroke: var(--pf-accent-ink); }
.ph-map label:has(input:focus-visible) { outline: 3px solid var(--pf-accent-ink); outline-offset: 1px; }

/* Red and green flags: a reaction on each message you received (messaging/includes/message.html). */
.chat-flags { padding: 4px 12px; margin: 0; font-size: var(--pf-fs-12); text-align: right; }
.flag-count { font-weight: 700; margin-left: 6px; }
.flag-count.green { color: var(--pf-good); }
.flag-count.red { color: var(--pf-critical); }
.msg-flags { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.msg-flags form { margin: 0; }
.flag-mini { min-height: 28px; min-width: 28px; padding: 3px; border-radius: 999px; background: transparent; box-shadow: none; opacity: .45; }
.flag-mini:hover, .flag-mini.on { opacity: 1; }
.flag-mini.green.on { background: var(--pf-good-soft); }
.flag-mini.red.on { background: var(--pf-critical-soft); }
.flag-mini svg { width: 16px; height: 16px; fill: none; stroke: var(--pf-action); stroke-width: 2; stroke-linejoin: round; display: block; }
.flag-mini.red .cloth { fill: var(--pf-critical); stroke: var(--pf-critical); }
.flag-mini.green .cloth { fill: var(--pf-good); stroke: var(--pf-good); }
.msg.flagged-red { box-shadow: inset 3px 0 0 var(--pf-critical); }
.msg.flagged-green { box-shadow: inset 3px 0 0 var(--pf-good); }
.msg.card-held { background: var(--pf-critical-soft); max-width: 100%; }
.msg.card-held .tip { color: var(--pf-critical); font-weight: 600; margin: 0; }
.flag-auto { color: var(--pf-critical); }
.profile-flags { display: inline-flex; gap: 10px; font-weight: 700; font-size: var(--pf-fs-12); }
.profile-flags .red { color: var(--pf-critical); }
.profile-flags .green { color: var(--pf-good); }

/* The slots on Messages: a face per used slot, dashed circles for free ones (messaging/slots_line.html). */
.slot-row { margin: 0 0 14px; }
.slot-row .slots-line { margin: 0 0 8px; }
.slot-circles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; align-items: flex-start; }
.slot-circles li { display: grid; justify-items: center; gap: 2px; }
/* Only the circles on Messages: a bare .slot rule here also shrank the photo tiles on My photos to 48 px circles (review loop 2, 17 Nov 2026). */
.slot-circles .slot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative; }
.slot.used { box-shadow: 0 0 0 2px var(--pf-accent); background: var(--pf-accent-soft); color: var(--pf-action); font-weight: 700; }
.slot.used img { width: 100%; height: 100%; object-fit: cover; }
.slot.free { border: 2px dashed var(--pf-line-strong); background: var(--pf-card); }
.slot-circles .past-ten { margin-left: 10px; }
.slot-circles .past-ten .slot.used { box-shadow: 0 0 0 2px var(--pf-good); opacity: .85; }
.slot-circles .past-ten .tick { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--pf-good); color: var(--pf-white); font-size: 12px; display: grid; place-items: center; }
.slot-circles small { font-size: 11px; color: var(--pf-good); }
.slot-row.full .slot.used { box-shadow: 0 0 0 2px var(--pf-critical); }
.slots-full { display: grid; gap: 8px; }
.slots-full .button { justify-self: start; }

/* Discover: List / Swipe with the filter button beside it (discovery/quick_filters.html). */
.discover-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; position: relative; }
.discover-top .segments { flex: 1; margin-bottom: 0; }
.filter-pop { flex: none; }
.filter-pop > summary { list-style: none; cursor: pointer; }
.filter-pop > summary::-webkit-details-marker { display: none; }
.filter-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--pf-card); color: var(--pf-action); box-shadow: inset 0 0 0 1px var(--pf-line-strong); font-weight: 600; }
.filter-button:hover, .filter-pop[open] .filter-button { background: var(--pf-accent-soft); }
.filter-chip { font-size: var(--pf-fs-12); max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-panel.quick-filters { display: grid; gap: 14px; margin: 0; padding: 18px; background: var(--pf-card);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pf-action) 18%, transparent); z-index: 1001; }
/* Phones: a sheet from the bottom. Computers: a small panel under the button. */
@media (max-width: 767px) {
  .filter-panel.quick-filters { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .filter-pop[open]::before { content: ""; position: fixed; inset: 0; background: color-mix(in srgb, var(--pf-action) 35%, transparent); z-index: 1000; }
}
@media (min-width: 768px) {
  .filter-panel.quick-filters { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; border-radius: 18px; }
}

/* The profile facts (Looking for, Status, English ...): even label / value rows, no pale boxes (Anton, 30 Oct 2026). */
.about .facts { display: grid; grid-template-columns: 1fr; gap: 0 28px; margin: 18px 0 0; border-top: 1px solid var(--pf-line); }
@media (min-width: 640px) { .about .facts { grid-template-columns: 1fr 1fr; } }
.about .facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; margin: 0;
  background: none; border-radius: 0; border-bottom: 1px solid var(--pf-line); color: var(--pf-action); font-weight: 600; text-align: right; overflow-wrap: normal; }
.about .facts li span { display: inline; flex: none; font-size: var(--pf-fs-12); font-weight: 500; color: var(--pf-ink-soft); text-align: left; }

/* Green and red flags: soft chips, filled when chosen, a clear tap target. */
.flag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.flag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: var(--pf-fs-12); font-weight: 700; }
.flag-chip svg { width: 15px; height: 15px; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.flag-chip.green { background: var(--pf-good-soft); color: var(--pf-good); }
.flag-chip.green svg { stroke: var(--pf-good); }
.flag-chip.green .cloth { fill: var(--pf-good); }
.flag-chip.red { background: var(--pf-critical-soft); color: var(--pf-critical); }
.flag-chip.red svg { stroke: var(--pf-critical); }
.flag-chip.red .cloth { fill: var(--pf-critical); }
.msg-flags { gap: 6px; margin: 6px 0 0; display: flex; }
.flag-mini { display: inline-grid; place-items: center; min-height: 32px; min-width: 40px; padding: 0 8px; border-radius: 999px; opacity: 1;
  background: var(--pf-card); box-shadow: inset 0 0 0 1px var(--pf-line-strong); transition: background .15s, box-shadow .15s; }
.flag-mini svg { width: 16px; height: 16px; stroke-linecap: round; }
.flag-mini .cloth { fill: none; }
.flag-mini.green svg { stroke: var(--pf-good); }
.flag-mini.red svg { stroke: var(--pf-critical); }
.flag-mini.green .cloth { stroke: var(--pf-good); }
.flag-mini.red .cloth { stroke: var(--pf-critical); }
.flag-mini.green:hover { background: var(--pf-good-soft); }
.flag-mini.red:hover { background: var(--pf-critical-soft); }
.flag-mini.green.on { background: var(--pf-good); box-shadow: none; }
.flag-mini.red.on { background: var(--pf-critical); box-shadow: none; }
.flag-mini.on svg, .flag-mini.on .cloth { stroke: var(--pf-white); fill: var(--pf-white); }
.flag-mini:focus-visible { outline: 3px solid var(--pf-accent-ink); outline-offset: 2px; }
.msg.flagged-red, .msg.flagged-green { box-shadow: none; }

/* The selfie camera on computers (verification/verify.html). */
.selfie-camera { display: grid; gap: 10px; margin: 0 0 14px; }
.selfie-camera video, .selfie-camera img { width: 100%; border-radius: 18px; background: var(--pf-line); transform: scaleX(-1); }
.selfie-camera img { transform: none; }
.selfie-buttons { display: grid; gap: 8px; }
[data-selfie-camera] [hidden] { display: none !important; }

/* The voice intro (profiles/photos.html, member.html, includes/card.html). */
.voice-tips { margin: 10px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--pf-accent-soft); }
.voice-tips h3 { margin: 0 0 6px; font-size: var(--pf-fs-14, .875rem); }
.voice-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--pf-action); }
.voice-intro { display: grid; gap: 8px; margin: 0 0 14px; }
.voice-intro p { display: flex; align-items: center; gap: 8px; margin: 0; }
.voice-intro audio { width: 100%; }
.speaker { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pf-accent-soft); flex: none; }
.speaker svg, .voice-pin svg { width: 18px; height: 18px; fill: var(--pf-accent-ink); stroke: var(--pf-accent-ink); stroke-width: 1.5; stroke-linejoin: round; }
.speaker .wave, .voice-pin .wave { fill: none; stroke-linecap: round; }
.voice-pin { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pf-card); box-shadow: 0 2px 8px color-mix(in srgb, var(--pf-action) 20%, transparent); }

/* --- Messages and chat, 31 Oct 2026 (Anton's mock-up): one slot bar, one "full" box, a waiting row,
   a simple chat list with a menu per row, one row of chips at the top of a chat. --- */
.slot-panel { margin: 4px 0 18px; }
.slot-meter { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slot-meter .slots-line { margin: 0; font-size: var(--pf-fs-16); }
.slot-help { position: relative; flex: none; font-size: var(--pf-fs-14); }
.slot-help summary { list-style: none; cursor: pointer; color: var(--pf-accent-ink); font-weight: 600; }
.slot-help summary::-webkit-details-marker { display: none; }
.slot-help[open] p { position: absolute; right: 0; top: 26px; z-index: 6; width: min(300px, 80vw); margin: 0; padding: 12px 14px; background: var(--pf-card); border-radius: var(--pf-radius-small); box-shadow: var(--pf-shadow-raised); color: var(--pf-ink-soft); }
.slot-bar { display: flex; gap: 5px; margin-top: 10px; }
.slot-bar .seg { flex: 1; height: 8px; border-radius: 6px; background: var(--pf-line-strong); }
.slot-bar .seg.used { background: var(--pf-accent); }
.slots-full { margin-top: 14px; padding: 14px 16px; border-radius: var(--pf-radius-mid); background: var(--pf-accent-soft); box-shadow: inset 0 0 0 1px var(--pf-line-strong); }
.slots-full strong { display: block; font-size: var(--pf-fs-16); color: var(--pf-action); }
.slots-full p { margin: 4px 0 0; color: var(--pf-ink-soft); font-size: var(--pf-fs-14); }
.slot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.section-label { margin: 0 0 8px; font-family: var(--pf-font); font-size: var(--pf-fs-12); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pf-ink-soft); }
.waiting { margin-top: 18px; }
.waiting-row { display: flex; gap: 14px; overflow-x: auto; list-style: none; margin: 0; padding: 2px 2px 4px; scrollbar-width: none; }
.waiting-row a { display: grid; justify-items: center; gap: 5px; width: 62px; color: var(--pf-action); text-decoration: none; font-size: var(--pf-fs-12); }
.waiting-row .photo.small { width: 56px; height: 56px; overflow: visible; box-shadow: 0 0 0 2px var(--pf-page), 0 0 0 3.5px var(--pf-accent); outline: 2px dashed var(--pf-accent); outline-offset: 3px; }
.waiting-row .photo.small img { border-radius: 50%; }
.waiting-row .wait-badge { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--pf-card); box-shadow: var(--pf-shadow); display: grid; place-items: center; font-size: 11px; }
.waiting-row .ellipsis { max-width: 62px; }
.waiting .muted.small { margin: 8px 0 0; font-size: var(--pf-fs-12); }
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 10px; }
.inbox-head .section-label { margin: 0; }
.inbox-head .chips { margin: 0; }
.chat-list { background: var(--pf-card); border-radius: var(--pf-radius-mid); box-shadow: inset 0 0 0 1px var(--pf-line); }
.chat-list .inbox-row { padding-right: 4px; }
.chat-list .inbox-link { flex: 1; min-width: 0; }
.chat-list .inbox-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list .inbox-row.closed .inbox-text { opacity: .7; }
.row-menu, .chat-menu { position: relative; flex: none; }
.row-menu summary, .chat-menu summary { list-style: none; cursor: pointer; font-size: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--pf-ink-soft); }
.row-menu summary::-webkit-details-marker, .chat-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .chat-menu summary:hover { background: var(--pf-pill); }
.menu-pop { position: absolute; right: 0; top: 42px; z-index: 8; min-width: 210px; display: grid; gap: 2px; padding: 6px; background: var(--pf-card); border-radius: var(--pf-radius-small); box-shadow: var(--pf-shadow-raised); }
.menu-pop form { margin: 0; }
.menu-pop button, .menu-pop .button, .menu-pop a { width: 100%; justify-content: flex-start; text-align: left; box-shadow: none; padding: 9px 12px; border-radius: var(--pf-radius-small); background: none; color: var(--pf-action); font-size: var(--pf-fs-14); font-weight: 600; text-decoration: none; display: flex; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--pf-pill); filter: none; }
.menu-pop .menu-danger { color: var(--pf-critical); }
.chat-menu[open] > form { position: static; padding: 0; box-shadow: none; }
.round-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--pf-action); box-shadow: inset 0 0 0 1px var(--pf-line-strong); margin-left: auto; }
.round-icon:hover { background: var(--pf-pill); }
.chat-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: var(--pf-card); border-bottom: 1px solid var(--pf-line); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chip-s { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--pf-accent-soft); color: var(--pf-on-fill); font-size: var(--pf-fs-12); font-weight: 600; text-decoration: none; white-space: nowrap; }
a.chip-s:hover { background: var(--pf-fill-ink); }
.chip-s.muted-chip { color: var(--pf-ink-soft); font-weight: 500; }
.chip-s .mini-bar { display: inline-block; width: 40px; height: 5px; border-radius: 3px; background: var(--pf-line-strong); overflow: hidden; }
.chip-s .mini-bar span { display: block; height: 100%; background: var(--pf-accent-ink); }
.chip-s .flag-count.green { color: var(--pf-good); }
.chip-s .flag-count.red { color: var(--pf-critical); }
.start-card { margin: 10px 12px 12px; padding: 14px 16px; border-radius: var(--pf-radius-mid); background: var(--pf-accent-soft); box-shadow: inset 0 0 0 1px var(--pf-line-strong); }
.start-card strong { display: block; color: var(--pf-action); }
.start-card p { margin: 4px 0 10px; color: var(--pf-ink-soft); font-size: var(--pf-fs-14); }
.start-card form { margin: 0; }
.chat-side .slot-panel { margin: 0 0 12px; padding: 14px; background: var(--pf-card); border-radius: var(--pf-radius-mid); box-shadow: inset 0 0 0 1px var(--pf-line); }
.chat-side .slots-full p { display: none; }
.chat-side .waiting .muted.small { display: none; }
a.badge.busy { text-decoration: none; color: var(--pf-accent-ink); }
/* Computers: the floating bottom bar stays on the chat page, so leave room for it under the message box. */
@media (min-width: 768px) {
    body.chat-page .chat { height: calc(100vh - 240px); min-height: 420px; }
    body.chat-page .messages { max-height: none; min-height: 0; }
    body.chat-page .chat-side { max-height: calc(100vh - 240px); }
}
/* Computers (31 Oct 2026, Oracle call for Anton): the four places sit in the top bar, like most dating
   websites, so pages and chats get the whole height. Phones and tablets keep the floating bottom bar. */
@media (min-width: 1024px) {
    body.member .tabs { top: 10px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: auto;
        display: flex; gap: 4px; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
    body.member .tabs a { flex-direction: row; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 23px; font-size: var(--pf-fs-14); }
    body.member .tabs .count { top: -4px; right: -6px; }
    body.member .wrap { padding-bottom: 40px; }
    body.member .foot { padding-bottom: 32px; }
    body.chat-page .tabs { display: flex; }
    body.chat-page .chat { height: calc(100vh - 150px); }
    body.chat-page .chat-side { max-height: calc(100vh - 150px); }
}

/* Design Review 3 Nov 2026 (notes 004, 005): on phones every tap target is at least 44 px,
   and the four Matches tabs fit the screen (the 4th, "Viewed me", was cut off at 390 px). */
@media (max-width: 640px) {
    .icon-button { width: 44px; height: 44px; }
    .segments a, .chips .chip, .slot-actions .button.small { min-height: 44px; }
    .chips .chip { display: inline-flex; align-items: center; }
    .segments:not(.view-switch) { overflow-x: visible; }
    .segments:not(.view-switch) a { flex: 1 1 0; min-width: 0; padding: 0 6px; gap: 4px; font-size: var(--pf-fs-14); white-space: nowrap; }
    .segments:not(.view-switch) a .icon { display: none; }
    .chat-head .back, .chat-menu summary { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}
/* The refused-message note lines up with the message box (Design Review, 3 Nov 2026). */
[data-send-error] { margin: 0; padding: 0 12px 10px 30px; background: var(--pf-card); }

/* Chat sheets and held-message actions (UX plan, approved 3 Nov 2026).
   Bottom sheet on phones, a small centred window on computers. Palette names only. */
dialog.sheet { border: 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto;
  margin: auto auto 0; border-radius: var(--pf-radius) var(--pf-radius) 0 0; background: var(--pf-card); color: var(--pf-action); box-shadow: var(--pf-shadow-raised); }
dialog.sheet::backdrop { background: color-mix(in srgb, var(--pf-action) 40%, transparent); }
dialog.sheet h2 { margin: 0 0 8px; font-size: var(--pf-fs-20); }
dialog.sheet p { margin: 0 0 10px; line-height: 1.5; }
dialog.sheet fieldset { border: 0; padding: 0; margin: 0 0 10px; }
dialog.sheet form[method="dialog"] button, .sheet-actions button { min-height: 44px; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions .ghost { background: var(--pf-pill); color: var(--pf-action); box-shadow: none; }
@media (min-width: 768px) { dialog.sheet { margin: auto; border-radius: var(--pf-radius); } }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: pf-sheet-up 200ms cubic-bezier(.22, 1, .36, 1); }
  @keyframes pf-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.lock-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.lock-steps li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--pf-radius-small); background: var(--pf-accent-soft); }
.lock-steps li.done { background: var(--pf-good-soft); }
.lock-steps .step-mark { flex: none; width: 1.2em; font-weight: 700; color: var(--pf-ink-soft); }
.lock-steps li.done .step-mark { color: var(--pf-good); }
button.chip-s.chip-button { border: 0; cursor: pointer; min-height: 0; box-shadow: none; font: inherit; font-size: var(--pf-fs-12); font-weight: 600; }
button.chip-s.chip-button:hover { background: var(--pf-fill-ink); filter: none; }
.held-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.held-actions form { margin: 0; }
.held-actions button { min-height: 32px; padding: 0 10px; font-size: var(--pf-fs-12); }
/* The other person's held message: a calm safety card, not an alarm. */
.msg.card-held { background: var(--pf-accent-soft); border-radius: var(--pf-radius-small); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--pf-line-strong); }
.msg.card-held .tip { color: var(--pf-action); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; background: none; border: 0; box-shadow: none; padding: 0; }
.msg.card-held .tip .icon { flex: none; width: 18px; height: 18px; color: var(--pf-accent-ink); }
/* My message waiting for a check: a pale outlined bubble, so it reads as "not sent yet". */
.msg.mine.held p { background: var(--pf-accent-soft); box-shadow: inset 0 0 0 1.5px var(--pf-accent); }
