/* Roomilo: iOS 27 look (same system as the calm app and My YOGA PLACE),
   built from Apple's "iOS and iPadOS 27" kit: system font, large titles, inset grouped lists,
   glass buttons and floating glass tab bar, slide-up sheets, light + dark.
   Palette round 3 (18 Nov, user: "something more neutral"): slate #6A736F, sage #A4A698, sand #D9D0C7,
   blush #D9AB9A, coral #D98977. Colors are named by their JOB, so a new palette is a one-line swap:
     --action    coral: buttons, like, picked chips. Text on it is dark (white would be 2.7:1).
     --good      sage: close to you, Verified, rooms. Dark text.
     --structure slate: frames, pass button, shapes. White text works (4.9:1).
     --soft      blush: quote cards, highlight cards. --sand: match screen, tracks, quiet fills.
     --tint      a deeper coral for small text links (5:1), derived from the coral.
     --primary   navy #2E3A59 for main buttons (white text, 11.3:1). --like berry #A3294A for the heart (white, 7.1:1).
                 Dark mode lifts both (#53659A, #B8355A) so they stand out on black and keep white text at 5.7:1. */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-grouped: #F4F0EB;
  --bg-cell: #FFFFFF;
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.17);
  --fill-3: rgba(118, 118, 128, 0.12);
  --fill-4: rgba(116, 116, 128, 0.08);
  --red: #FF383C;
  --green: #34C759;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);

  /* Roomilo palette */
  --c-slate: #6A736F; --c-sage: #A4A698; --c-sand: #D9D0C7; --c-blush: #D9AB9A; --c-coral: #D98977; --ink: #2B302E;
  --action: var(--c-coral); --on-action: var(--ink);
  --good: var(--c-sage); --on-good: var(--ink);
  --structure: var(--c-slate); --on-structure: #FFFFFF;
  --soft: var(--c-blush); --sand: var(--c-sand);
  /* User, 18 Nov (palette option 4, "Navy & berry"): main buttons navy, the like heart berry. Chips and filters stay coral. */
  --primary: #2E3A59; --primary-edge: transparent; --primary-down: #253049; --on-primary: #FFFFFF;
  --like: #A3294A; --on-like: #FFFFFF; --like-glow: rgba(163, 41, 74, .4);
  --accent: var(--action);  /* fills: buttons, switches, like. Dark text on it. */
  --tint: #9E523F;        /* deeper coral for small text and icons (5:1 on the warm background) */
  --frame: var(--structure); /* card frame */
  --gold: var(--good);  /* card number */
  --hit: var(--good);     /* "close to you"; dots get an outline so they read on the track */
  --track: #E6DED6;
  --dot: var(--ink);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue', system-ui, sans-serif;
  --col: 440px;
  --safe-t: max(env(safe-area-inset-top, 0px), 12px);
  --bleed: 0px;
  --safe-b: calc(env(safe-area-inset-bottom, 0px) + var(--bleed));
  --tabbar-b: calc(max(12px, env(safe-area-inset-bottom, 0px) - 13px) + var(--bleed));
}
/* Phones in a browser: the page must reach the very bottom of the screen, under the browser's toolbar
   (iPhone Safari leaves a plain strip there if the page stops at 100dvh). 0 on a Home Screen app and on computers. */
@supports (height: 100lvh) { :root { --bleed: max(0px, 100lvh - 100dvh); } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-grouped: #000000; --bg-cell: #1C1C1E;
    --label: #FFFFFF; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.6); --fill-3: rgba(118, 118, 128, 0.24); --fill-4: rgba(118, 118, 128, 0.18);
    --red: #FF4245; --green: #30D158;
    --glass: rgba(44, 44, 46, 0.62); --glass-edge: rgba(255, 255, 255, 0.14); --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --tint: #E8A090; --frame: #8E9893; --track: #3A3A3C; --dot: #F2F2F7; --hit: var(--good);
    --primary: #53659A; --primary-down: #46568A; --like: #B8355A; --like-glow: rgba(184, 53, 90, .45);
  }
}

* { box-sizing: border-box; }
/* The page color follows the screen on top (set from app.js), so the strip Safari shows around its toolbar
   and the home bar never shows a different color. */
html { -webkit-text-size-adjust: 100%; background: var(--page-bg, var(--bg-grouped)); }
body { margin: 0; background: var(--page-bg, var(--bg-grouped)); color: var(--label); font-family: var(--font); font-size: 17px; line-height: 22px; letter-spacing: -0.43px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden; }
p, h1, h2, h3, h4 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Text styles */
.t-large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.4px; }
.t-title1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0.38px; }
.t-title2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.26px; }
.t-headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-sub { font-size: 15px; line-height: 20px; letter-spacing: -0.23px; }
.t-foot { font-size: 13px; line-height: 18px; letter-spacing: -0.08px; }
.l2 { color: var(--label-2); }
.tint { color: var(--tint); }
.center { text-align: center; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* App column */
.app { max-width: var(--col); margin: 0 auto; height: 100dvh; height: calc(100dvh + var(--bleed)); position: relative; overflow: clip; }
@media (min-width: 480px) { .app { box-shadow: 0 0 0 0.5px var(--sep); } }

/* Screens */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: calc(var(--safe-t) + 54px) 0 calc(var(--tabbar-b) + 62px + 16px); overflow-y: auto; }
.screen.active { display: flex; }
.screen.fixed { overflow: hidden; }
.hd { padding: 0 16px 12px; }

/* Top bar with glass buttons */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 15; padding: var(--safe-t) 16px 0; height: calc(var(--safe-t) + 52px); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .spacer { flex: 1; }
.gbtn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 0 0 0.5px var(--glass-edge); color: var(--label); }
.gbtn .ic { width: 20px; height: 20px; stroke-width: 2; }
.gbtn:active { transform: scale(0.94); }
.gbtn .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-action); font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: 0; }

/* Inset grouped lists */
.section { margin: 0 16px 28px; }
.section-h { padding: 0 16px 8px; font-size: 15px; line-height: 20px; letter-spacing: -0.23px; font-weight: 600; color: var(--label-2); }
.section-f { padding: 8px 16px 0; font-size: 13px; line-height: 18px; letter-spacing: -0.08px; color: var(--label-2); }
.list { background: var(--bg-cell); border-radius: 26px; overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; width: 100%; text-align: left; }
.row + .row::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: 0.5px; background: var(--sep); }
.row.ico + .row::before, .row + .row.ico::before { left: 72px; }
button.row:active { background: var(--fill-4); }
.row .txt { flex: 1; min-width: 0; }
.row .sub { display: block; font-size: 15px; line-height: 20px; letter-spacing: -0.23px; color: var(--label-2); margin-top: 1px; }
.row .detail { color: var(--label-2); white-space: nowrap; }
.row .chev { color: var(--label-3); width: 17px; height: 17px; stroke-width: 2.2; }
.row .check { color: var(--tint); width: 20px; height: 20px; stroke-width: 2.4; visibility: hidden; }
.row[aria-checked="true"] .check { visibility: visible; }
.row.action { color: var(--tint); }
.row.danger { color: var(--red); }   /* iOS system red for destructive actions, not the palette */
.row input[type=text], .row input[type=number], .row input[type=email] { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px; padding: 4px 0; text-align: right; color: var(--label-2); }
.row input::placeholder { color: var(--label-3); }
.row select { margin-left: auto; appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--label-2); text-align: right; font-size: 17px; cursor: pointer; padding-right: 2px; }
.row.col { flex-direction: column; align-items: stretch; gap: 4px; }
.row.col .top { display: flex; justify-content: space-between; align-items: center; }

/* Switch */
.switch { position: relative; width: 64px; height: 28px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: rgba(120, 120, 128, 0.16); transition: background .25s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 39px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.3,.7,.4,1); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(21px); }
@media (prefers-color-scheme: dark) { .switch span { background: rgba(120, 120, 128, 0.36); } }

/* Segmented control */
.seg { display: flex; background: var(--fill-3); border-radius: 18px; padding: 2px; }
.seg button { flex: 1; height: 32px; padding: 0 10px; border-radius: 16px; font-size: 14px; font-weight: 500; letter-spacing: -0.15px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bg-cell); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: #636366; } }

/* Pills (multi-select) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--fill-3); font-size: 15px; letter-spacing: -0.23px; }
.pills button[aria-pressed="true"] { background: var(--accent); color: var(--on-action); }

/* Slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 2px 0 0; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--fill-3); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fill-3); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.06); margin-top: -12px; }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 14px; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.range:disabled { opacity: .35; }
.ends { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--label-2); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 25px; font-size: 17px; font-weight: 600; letter-spacing: -0.43px; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--on-action); }
.btn.grey { background: var(--fill-3); color: var(--tint); }
.btn.plain { height: 44px; color: var(--tint); font-weight: 400; }

/* Floating glass tab bar */
.tabbar { position: absolute; z-index: 20; left: 21px; right: 21px; bottom: var(--tabbar-b); height: 62px; border-radius: 31px; padding: 4px; display: flex;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 0 0 0.5px var(--glass-edge); }
.tabbar button { flex: 1; border-radius: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: 0.1px; color: var(--label); position: relative; }
.tabbar button .ic { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { background: var(--fill-3); color: var(--tint); }
.tabbar .count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #198038; color: #fff; font-size: 11px; line-height: 17px; }   /* green like the match chip (user, 22 Nov) */

/* ── Deck ── */
.deck-hd { display: flex; align-items: flex-end; justify-content: space-between; }
.deck { position: relative; flex: 1; min-height: 0; margin: 0 16px; }
.deck .tcard { position: absolute; inset: 0; }
.deck .tcard.second { transform: scale(.95) translateY(12px); }
.deck .tcard.third { transform: scale(.9) translateY(24px); opacity: .6; }
.actions { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 16px 0 4px; }
.actions .gbtn { width: 60px; height: 60px; border-radius: 30px; }
.actions .gbtn .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.actions .nope { color: var(--structure); }
.actions .flip .ic { width: 22px; height: 22px; }
.actions .flip { width: 48px; height: 48px; }
.actions .like { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 137, 119, 0.4); }
.actions .like .ic { fill: currentColor; stroke: none; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.empty .btn { width: auto; padding: 0 22px; margin-top: 14px; }

/* ── The trading card ── */
.tcard { perspective: 1400px; touch-action: none; user-select: none; -webkit-user-select: none; }
.tcard-inner { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 30px; background: var(--frame); padding: 7px; box-shadow: 0 16px 36px -16px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.face.back { transform: rotateY(180deg); }
.face-in { flex: 1; min-height: 0; background: var(--bg-cell); border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; }
.photo { position: relative; flex: 0 0 44%; background: #c9c1b1 center 30%/cover no-repeat; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 50%); }
.photo .initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 700; color: rgba(255,255,255,.9); }
.corner { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--gold); color: #000; font-weight: 700; font-size: 13px; line-height: 18px; padding: 3px 9px; border-radius: 10px; }
.match { position: absolute; top: 12px; right: 12px; z-index: 2; color: #000; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 14px;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.match b { font-size: 15px; }
.nameplate { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; color: #fff; }
.nameplate h3 { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: 0.38px; }
.nameplate p { font-size: 15px; line-height: 20px; letter-spacing: -0.23px; opacity: .9; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 0.5px solid var(--sep); }
.fact { padding: 8px 4px; text-align: center; }
.fact + .fact { border-left: 0.5px solid var(--sep); }
.fact small { display: block; font-size: 11px; line-height: 13px; color: var(--label-2); }
.fact strong { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.3px; white-space: nowrap; }
.fact.fail strong { color: var(--tint); text-decoration: line-through; }

/* Stats as two-ended ranges */
.stats { list-style: none; margin: 0; padding: 6px 14px 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; }
.stat { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.stat .name { font-size: 15px; letter-spacing: -0.23px; font-weight: 500; }
.stat .scale { position: relative; display: block; }
.stat .trk { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--track); margin: 7px 0 3px; }
.stat .dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 8px; background: var(--dot); transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px var(--bg-cell); }
.stat .want { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--frame); transform: translate(-50%, -50%); }
.stat .ends { font-size: 11px; line-height: 13px; }
.stat.hit .dot { background: var(--hit); }
.stat.miss .dot { background: var(--action); }

/* Card back */
.back .face-in { padding: 20px; gap: 14px; overflow: hidden; } /* no scrolling: Chrome blanks scroll boxes inside a flipped 3D card */
.quote { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--fill-3); border-radius: 14px; padding: 4px 11px; font-size: 15px; letter-spacing: -0.23px; }
.why h4 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; }
.row textarea { width: 100%; border: 0; outline: none; background: transparent; resize: none; font-size: 17px; line-height: 22px; padding: 2px 0; }
.row textarea::placeholder { color: var(--label-3); }
.why ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 22px; letter-spacing: -0.23px; }
.why li.no { color: var(--tint); }
.why li.yes { color: var(--hit); }

/* Swipe stamps */
.stamp { position: absolute; top: 30px; z-index: 5; font-size: 30px; font-weight: 800; padding: 2px 12px; border: 4px solid; border-radius: 12px; opacity: 0; pointer-events: none; }
.stamp.like { left: 24px; color: var(--good); transform: rotate(-14deg); }
.stamp.nope { right: 24px; color: var(--action); transform: rotate(14deg); }

/* Liked */
.avatar { width: 44px; height: 44px; border-radius: 22px; object-fit: cover; flex: none; background: var(--fill-3); }
.pct { font-weight: 600; color: var(--tint); }

/* Me */
.me-card { flex: none; position: relative; height: 560px; margin: 0 16px 28px; }
.me-card .tcard { position: absolute; inset: 0; }
.me-card .face { background: var(--good); }

/* ── Sheet ── */
.sheet-bg { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-bg.show { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; z-index: 41; left: 8px; right: 8px; bottom: 8px; transform: translateY(110%); visibility: hidden; transition: transform .38s cubic-bezier(.2,.9,.25,1), visibility 0s .38s;
  background: var(--bg-grouped); border-radius: 34px; padding: 6px 0 calc(var(--safe-b) + 14px); max-height: 90%; display: flex; flex-direction: column; box-shadow: 0 -4px 40px rgba(0,0,0,.18); }
.sheet.show { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2,.9,.25,1); }
@media (prefers-color-scheme: dark) { .sheet { background: #1C1C1E; } .sheet .list { background: #2C2C2E; } }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 0 auto 6px; flex: none; }
.sheet .bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 14px; flex: none; }
.sheet .bar .t-headline { flex: 1; text-align: center; }
.sheet .bar .gbtn { box-shadow: none; background: var(--fill-3); }
.sheet .scroll { overflow-y: auto; flex: 1; min-height: 0; }
.sheet .foot { padding: 10px 16px 0; flex: none; }

/* ── Onboarding (Apple welcome pattern + one question per screen) ── */
.onb { position: absolute; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 54px) 0 calc(var(--safe-b) + 20px); overflow-y: auto; }
.onb .topbar { background: var(--bg); }
.progress { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.onb .step-n { font-size: 13px; color: var(--label-2); width: 52px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.onb .body { padding: 0 24px; }
.onb .body .list { background: var(--bg-grouped); }
@media (prefers-color-scheme: dark) { .onb .body .list { background: #1C1C1E; } }
.onb .kicker { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--tint); margin-bottom: 6px; }
.onb .q { margin-bottom: 24px; }
.onb .bottom { margin-top: auto; padding: 24px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.onb .list .row { min-height: 56px; }
.appicon { width: 84px; height: 84px; border-radius: 19px; margin: 8px auto 22px; background: var(--structure); overflow: hidden; box-shadow: 0 6px 20px rgba(106, 115, 111, .3); display: flex; align-items: center; justify-content: center; }
.appicon svg { width: 54px; height: 54px; }
.appicon picture { display: block; width: 100%; height: 100%; border-radius: inherit; }
.appicon img { width: 100%; height: 100%; border-radius: inherit; display: block; }   /* the logo: purple (icons/apple-touch-icon.png) in light mode, light (icons/logo-light-180.png) in dark mode */
.features { display: flex; flex-direction: column; gap: 22px; margin: 34px 4px 0; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature .ic { width: 30px; height: 30px; stroke-width: 1.7; color: var(--tint); margin-top: 2px; }
.budget-big { font-size: 48px; line-height: 56px; font-weight: 700; text-align: center; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.reveal { position: relative; height: 520px; margin: 4px 24px 0; }
.reveal .tcard { position: absolute; inset: 0; }
.reveal .face { background: var(--good); }
.reveal .tcard.dealing .tcard-inner { animation: deal 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes deal { 0% { transform: translateY(60px) scale(.8) rotateY(180deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }

/* Toast */
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 6px); transform: translate(-50%, -16px); z-index: 50; max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border-radius: 24px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 0 0 0.5px var(--glass-edge); font-size: 15px; line-height: 20px; letter-spacing: -0.23px; opacity: 0; transition: opacity .25s, transform .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 720px) {
  .photo { flex-basis: 38%; }
  .nameplate h3 { font-size: 24px; line-height: 28px; }
  .stat .ends { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tcard-inner, .sheet { transition: none; } .reveal .tcard.dealing .tcard-inner { animation: none; } }

/* ── Rooms (18 Nov) ── */
.room-chip { position: absolute; left: 12px; top: 44px; z-index: 2; background: var(--good); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.room-art { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.room-art svg { display: block; width: 100%; height: 100%; }
.room-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.room-facts span { background: var(--fill-3); border-radius: 12px; padding: 3px 10px; font-size: 13px; line-height: 18px; }
.safety { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--sand) 60%, transparent); border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 18px; }
.safety b { font-weight: 600; }
.report { color: var(--tint); font-size: 15px; font-weight: 500; align-self: flex-start; }
.back .row-btns { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* Matches */
.match-tag { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--good); border-radius: 9px; padding: 1px 7px; margin-left: 6px; }
.sheet .pair { display: flex; justify-content: center; margin: 4px 0 10px; }
.sheet .pair img, .sheet .pair .me-av { width: 64px; height: 64px; border-radius: 32px; object-fit: cover; border: 3px solid var(--bg-grouped); }
.sheet .pair .me-av { margin-left: -14px; background: var(--good); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.ext { display: inline-flex; width: 17px; height: 17px; stroke-width: 2.2; color: var(--label-3); }
.tips { margin: 0; padding-left: 20px; font-size: 15px; line-height: 21px; letter-spacing: -0.23px; }
.tips li + li { margin-top: 6px; }
.row.col textarea { min-height: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 0; }
a { color: inherit; text-decoration: none; }
a.row:active { background: var(--fill-4); }
.card { background: var(--bg-cell); border-radius: 26px; padding: 16px; }
.tile { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.tile .ic { width: 18px; height: 18px; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .sheet .card { background: #2C2C2E; } }

/* ═══════════ Direction A: Full bleed (18 Nov, user's pick) ═══════════ */
.ic.f { fill: currentColor; stroke: none; }
.screen.fb { padding: 0; overflow: hidden; background: #000; }
.fb-deck { position: absolute; inset: 0; }
.pc { position: absolute; inset: 0; overflow: hidden; background: #111; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.pc.under { transform: scale(.95); filter: brightness(.6); }
.pc .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; -webkit-user-drag: none; }
.pc .ph.on { opacity: 1; }
.ph-fallback { display: flex; align-items: flex-start; padding-top: 16%; justify-content: center; background: linear-gradient(160deg, var(--good), var(--action)); font-size: 150px; font-weight: 800; color: rgba(255,255,255,.88); }
.ph-art svg { width: 100%; height: 100%; display: block; }
.pc .shade-t { position: absolute; inset: 0 0 auto; height: 210px; background: linear-gradient(rgba(5,8,8,.55), transparent); pointer-events: none; }
.pc .shade-b { position: absolute; inset: auto 0 0; height: 70%; background: linear-gradient(to top, rgba(5,8,8,.95) 0%, rgba(5,8,8,.76) 44%, transparent 100%); pointer-events: none; }
.pc .bars { position: absolute; top: calc(var(--safe-t) + 4px); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.pc .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.pc .bars i.on { background: #fff; }
.pc .ph-label { position: absolute; top: calc(var(--safe-t) + 70px); left: 16px; z-index: 3; }
.pc .info { position: absolute; left: 20px; right: 20px; bottom: calc(var(--tabbar-b) + 62px + 14px + 70px + 16px); z-index: 2; }
.pc.static .info { bottom: 22px; }
.preview .pc.static .info { bottom: calc(var(--safe-b) + 16px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip2 { height: 30px; border-radius: 15px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap; }
.chip2 .ic { width: 15px; height: 15px; }
.chip2.action { background: var(--action); color: var(--on-action); }
.chip2.dk { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.chip2.good { background: var(--good); color: var(--ink); }
.pc .name { margin: 0; font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -0.6px; }
.pc .meta { margin: 7px 0 14px; font-size: 16px; line-height: 21px; opacity: .92; }
.pc .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.traits span { height: 30px; padding: 0 12px; border-radius: 15px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.traits span.hit { background: var(--good); color: var(--ink); box-shadow: none; }
.traits span .ic { width: 14px; height: 14px; stroke-width: 3; }
.pc .money { margin: 14px 0 0; font-size: 15px; line-height: 20px; opacity: .86; }
.pc .stamp { top: calc(var(--safe-t) + 130px); font-size: 40px; border-width: 5px; z-index: 6; background: rgba(5,8,8,.25); }
.pc .stamp.like { left: 26px; }
.pc .stamp.nope { right: 26px; }

.fb-top { position: absolute; top: calc(var(--safe-t) + 16px); left: 16px; right: 16px; z-index: 12; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.fb-top > * { pointer-events: auto; }
.fb-top .spacer { flex: 1; pointer-events: none; }
.seg2 { display: flex; height: 40px; border-radius: 20px; padding: 3px; background: rgba(255,255,255,.17); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.seg2 button { padding: 0 16px; border-radius: 17px; font-size: 15px; font-weight: 600; color: #fff; }
.seg2 button[aria-selected="true"] { background: #fff; color: var(--ink); }
.gbtn.dk { background: rgba(255,255,255,.17); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.pill-note { height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255,255,255,.17); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.fb-act { position: absolute; left: 24px; right: 24px; bottom: calc(var(--tabbar-b) + 62px + 14px); z-index: 12; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.fb-act > * { pointer-events: auto; }
.rb { width: 62px; height: 62px; border-radius: 31px; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .12s; }
.rb:active { transform: scale(.92); }
.rb .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.rb.dk { background: rgba(255,255,255,.17); color: #fff; -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.rb.lt { background: var(--bg-cell); color: var(--structure); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.rb.like { width: 70px; height: 70px; border-radius: 35px; background: var(--action); color: var(--on-action); box-shadow: 0 10px 26px rgba(217,137,119,.45); }
.rb.like .ic { width: 30px; height: 30px; }
.fb-hint { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; pointer-events: none; }
.fb-hint .ic { width: 16px; height: 16px; }
.fb-empty { position: absolute; inset: 0; background: var(--sand); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 32px calc(150px + var(--bleed)); gap: 8px; }
.fb-empty svg.bgshapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-empty > :not(svg) { position: relative; }
.fb-empty .btn { width: auto; padding: 0 24px; margin-top: 12px; }
.screen.fb.empty-state .fb-act { display: none; }
.screen.fb.empty-state .seg2 { background: rgba(5,8,8,.12); }
.screen.fb.empty-state .seg2 button { color: var(--ink); }
.screen.fb.empty-state .seg2 button[aria-selected="true"] { color: var(--ink); }

/* Profile sheet */
.pf-bg { position: absolute; inset: 0; z-index: 44; background: rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.pf-bg.show { opacity: 1; pointer-events: auto; }
.pf { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--safe-t) + 140px); z-index: 45; background: var(--bg-cell); color: var(--label); border-radius: 34px 34px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .42s cubic-bezier(.2,.9,.25,1), visibility 0s .42s; display: flex; flex-direction: column; box-shadow: 0 -10px 30px rgba(0,0,0,.22); }
.pf.show { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.2,.9,.25,1); }
.pf-grab { height: 24px; flex: none; display: flex; align-items: center; justify-content: center; width: 100%; }
.pf-grab i { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); }
.pf-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 20px calc(var(--safe-b) + 112px); }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-head h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: .3px; }
.pf-meta { margin: 2px 0 0; font-size: 15px; line-height: 20px; color: var(--label-2); }
.quote-c { margin: 16px 0 6px; background: var(--soft); color: var(--ink); border-radius: 26px; padding: 18px 20px 20px; }
.quote-c small { font-size: 13px; font-weight: 600; opacity: .75; }
.quote-c p { margin: 6px 0 0; font-size: 23px; line-height: 28px; font-weight: 700; letter-spacing: -0.3px; }
.pf-h { font-size: 20px; line-height: 25px; font-weight: 700; margin: 26px 0 12px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--label-2); margin: -4px 0 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 6px; vertical-align: -2px; margin-right: 5px; }
.rng { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.rng .n { font-size: 15px; font-weight: 600; }
.rng .t { position: relative; height: 6px; border-radius: 3px; background: var(--track); margin-top: 7px; }
.rng .you { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 10px; border: 2.5px solid var(--structure); transform: translate(-50%, -50%); background: var(--bg-cell); }
.rng .them { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 7px; background: var(--dot); transform: translate(-50%, -50%); }
.rng.hit .them { background: var(--hit); }
.rng .e { display: flex; justify-content: space-between; font-size: 11px; line-height: 13px; color: var(--label-2); margin-top: 7px; }
@media (prefers-color-scheme: dark) { .rng .you { border-color: #E8A090; } }
.room-ph { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--fill-3); }
.room-ph img, .room-ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.list.inset { background: var(--bg-grouped); }
@media (prefers-color-scheme: dark) { .list.inset { background: #2C2C2E; } }
.pf .report-row { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 17px; margin: 22px 0 0; padding: 6px 0; }
.pf-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 18px); display: flex; gap: 10px; padding: 6px; border-radius: 40px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--glass-shadow), inset 0 0 0 .5px var(--glass-edge); }
.pf-bar:empty { display: none; }
.pf-bar .rb { width: 56px; height: 56px; }
.likepill { height: 56px; border-radius: 28px; background: var(--action); color: var(--on-action); padding: 0 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.likepill .ic { width: 22px; height: 22px; }
.likepill.done { background: var(--fill-3); color: var(--label-2); }

/* Match moment */
.mo { position: absolute; inset: 0; z-index: 60; background: var(--sand); color: var(--ink); overflow: hidden; }
.mo svg.bgshapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo .duo { position: absolute; top: calc(var(--safe-t) + 110px); left: 0; right: 0; height: 200px; }
.mo .p { position: absolute; top: 0; width: 164px; height: 164px; border-radius: 82px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 16px 30px rgba(5,8,8,.25); background: var(--structure); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800; }
.mo .p img { width: 100%; height: 100%; object-fit: cover; }
.mo .p1 { left: calc(50% - 150px); transform: rotate(-8deg); }
.mo .p2 { right: calc(50% - 150px); transform: rotate(7deg); }
.mo .hb { position: absolute; left: 50%; top: 112px; margin-left: -32px; width: 64px; height: 64px; border-radius: 32px; background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; border: 5px solid #fff; z-index: 2; }
.mo .hb .ic { width: 28px; height: 28px; }
.mo .m-title { position: absolute; top: calc(var(--safe-t) + 340px); left: 24px; right: 24px; text-align: center; }
.mo .m-title h2 { margin: 0; font-size: 48px; line-height: 1; font-weight: 900; letter-spacing: -1px; }
.mo .m-title p { margin: 12px 8px 0; font-size: 17px; line-height: 23px; }
.mo .m-btns { position: absolute; left: 24px; right: 24px; bottom: calc(var(--safe-b) + 28px); display: flex; flex-direction: column; gap: 10px; }
.btn.white { background: #fff; color: var(--ink); }
.btn.on-structure { color: #fff; font-weight: 500; height: 44px; }
.mo.show .p1 { animation: pop1 .55s cubic-bezier(.2,1.4,.4,1) both; }
.mo.show .p2 { animation: pop2 .55s .08s cubic-bezier(.2,1.4,.4,1) both; }
.mo.show .hb { animation: pop3 .5s .3s cubic-bezier(.2,1.6,.4,1) both; }
.mo.show .m-title { animation: rise .5s .25s ease both; }
@keyframes pop1 { from { transform: rotate(-30deg) scale(.4); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes pop2 { from { transform: rotate(30deg) scale(.4); opacity: 0; } to { transform: rotate(7deg) scale(1); opacity: 1; } }
@keyframes pop3 { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Matches */
.hd-row { display: flex; align-items: center; justify-content: space-between; }
.bell-dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 5px; background: var(--action); }
.newm { display: flex; gap: 14px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.newm::-webkit-scrollbar { display: none; }
.newm button { width: 70px; flex: none; text-align: center; font-size: 13px; font-weight: 500; }
.newm .av { width: 70px; height: 70px; border-radius: 35px; padding: 3px; background: var(--action); margin-bottom: 6px; display: block; }
.newm .av img, .newm .av span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--bg-grouped); display: block; }
.hl { margin: 0 16px 28px; background: var(--soft); color: var(--ink); border-radius: 26px; padding: 16px; display: flex; gap: 14px; align-items: center; width: calc(100% - 32px); text-align: left; }
.pair2 { display: flex; flex: none; }
.pair2 > * { width: 46px; height: 46px; border-radius: 23px; overflow: hidden; border: 3px solid var(--soft); object-fit: cover; }
.pair2 > * + * { margin-left: -14px; background: var(--structure); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.hl b { display: block; font-size: 16px; line-height: 21px; }
.hl small { font-size: 14px; color: rgba(5,8,8,.7); }
.hl .go { margin-left: auto; width: 36px; height: 36px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.hl .go .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.avatar.ph-i { display: flex; align-items: center; justify-content: center; background: var(--structure); color: #fff; font-weight: 700; }

/* Places */
.room-card { display: block; width: 100%; text-align: left; background: var(--bg-cell); border-radius: 26px; overflow: hidden; }
.room-card + .room-card { margin-top: 14px; }
.room-card .im { position: relative; aspect-ratio: 16 / 10; background: var(--fill-3); }
.room-card .im > img, .room-card .im > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-card .pr { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); border-radius: 13px; padding: 4px 10px; font-weight: 700; font-size: 16px; }
.room-card .body { padding: 12px 16px 16px; }
.room-card .body b { display: block; font-size: 17px; }
.room-card .owner { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--label-2); }
.room-card .owner img { width: 28px; height: 28px; border-radius: 14px; object-fit: cover; }
.room-card .owner .pct { margin-left: auto; }

/* Me */
.me-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 16px 26px; }
.me-av { width: 104px; height: 104px; border-radius: 52px; overflow: hidden; background: var(--good); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; margin-bottom: 12px; }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.btn.sm { height: 38px; border-radius: 19px; padding: 0 14px; font-size: 15px; width: auto; }
.btn.sm .ic { width: 18px; height: 18px; }
.preview { position: absolute; inset: 0; z-index: 50; background: #000; }

/* Photo pickers in onboarding */
.photo-pick { width: 64px; height: 64px; border-radius: 32px; overflow: hidden; background: var(--fill-3); color: var(--tint); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.photo-pick.wide { width: 96px; height: 64px; border-radius: 16px; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.reveal-fb { position: relative; height: min(560px, 62dvh); margin: 18px 24px 0; border-radius: 34px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.reveal-fb .pc.dealing { animation: deal2 .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes deal2 { from { transform: translateY(40px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal-fb .pc .name { font-size: 34px; }

/* Neighborhood picker (18 Nov): search, areas that open, "Anywhere in X" */
.hp-search { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 12px; background: var(--fill-3); padding: 0 12px; margin-bottom: 12px; color: var(--label-2); }
.hp-search .ic { width: 18px; height: 18px; }
.hp-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 17px; color: var(--label); -webkit-appearance: none; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hp-chip { height: 32px; padding: 0 8px 0 12px; border-radius: 16px; background: var(--accent); color: var(--on-action); display: inline-flex; align-items: center; gap: 4px; font-size: 15px; letter-spacing: -0.23px; }
.hp-chip .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.hp-area + .hp-area { border-top: 0.5px solid var(--sep); }
.hp-head .chev { transition: transform .2s; }
.hp-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.hp-body { padding: 0 16px 14px; }
.hp-all { height: 34px; padding: 0 14px; border-radius: 17px; box-shadow: inset 0 0 0 1.5px var(--good); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.hp-all .ic { display: none; width: 16px; height: 16px; stroke-width: 2.6; }
.hp-all[aria-pressed="true"] { background: var(--good); color: var(--ink); box-shadow: none; }
.hp-all[aria-pressed="true"] .ic { display: inline; }
.hp-none { padding: 14px 16px; color: var(--label-2); margin: 0; }
.onb .hp-list { background: var(--bg-grouped); }
@media (prefers-color-scheme: dark) { .onb .hp-list { background: #1C1C1E; } }

/* ── Verified, households, deal-breakers, agreement (18 Nov) ── */
.vbadge { display: inline-flex; width: 24px; height: 24px; border-radius: 12px; background: #198038; color: #fff; align-items: center; justify-content: center; vertical-align: middle; margin-left: 8px; flex: none; }
.vbadge .ic { width: 15px; height: 15px; stroke-width: 3; }
.pc .name .vbadge { width: 28px; height: 28px; border-radius: 14px; vertical-align: 6px; }
.pc .name .vbadge .ic { width: 17px; height: 17px; }
.row .vbadge { width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; }
.row .vbadge .ic { width: 12px; height: 12px; }
.big-ic2 { width: 64px; height: 64px; border-radius: 32px; color: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.big-ic2 .ic { width: 30px; height: 30px; stroke-width: 2; }
.verify-card { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 28px; padding: 14px 16px; border-radius: 22px; background: var(--soft); color: var(--ink); text-align: left; }
.verify-card > .ic:first-child { width: 28px; height: 28px; }
.verify-card b { display: block; font-size: 16px; line-height: 21px; }
.verify-card small { font-size: 14px; line-height: 19px; color: rgba(5,8,8,.72); }
.verify-card .chev { margin-left: auto; color: rgba(5,8,8,.45); }
.demo-pill { display: table; margin: 0 auto 14px; font-size: 12px; font-weight: 600; background: var(--fill-3); color: var(--label-2); border-radius: 10px; padding: 3px 10px; }
.vf-id { width: 260px; height: 164px; border-radius: 18px; border: 3px dashed var(--good); margin: 22px auto 8px; display: flex; align-items: center; justify-content: center; color: var(--label-2); }
.vf-face { width: 190px; height: 236px; border-radius: 50%; border: 3px dashed var(--good); margin: 22px auto 8px; display: flex; align-items: center; justify-content: center; color: var(--label-2); }
.vf-id .ic, .vf-face .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--fill-3); border-top-color: var(--good); margin: 0 auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.room-card .owner img + img { margin-left: -12px; }
.room-card .owner img { border: 2px solid var(--bg-cell); }
.clause { background: var(--bg-cell); border-radius: 22px; padding: 14px 16px 16px; margin-bottom: 10px; }
.clause h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; margin: 0 0 6px; color: var(--tint); }
.clause h4 .ic { width: 18px; height: 18px; }
.clause p { margin: 0; font-size: 16px; line-height: 22px; letter-spacing: -0.3px; }
.clause .seg { margin-top: 12px; }
@media (prefers-color-scheme: dark) { .sheet .clause { background: #2C2C2E; } }
#printArea { display: none; }
@media print {
  body { overflow: visible !important; background: #fff !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block; padding: 32px; font: 14px/1.55 -apple-system, "Helvetica Neue", sans-serif; color: #000; }
  #printArea h1 { font-size: 24px; margin: 0 0 4px; }
  #printArea h3 { font-size: 15px; margin: 18px 0 4px; }
}
.pc .ph.ph-fallback { padding-top: calc(var(--safe-t) + 90px); font-size: 120px; line-height: 1; }

/* Small fixes: the "good" color needs dark text or an outline */
.rng .you { border-color: var(--action); }
.rng.hit .them { box-shadow: 0 0 0 2px var(--structure); }
.why li.yes { color: var(--structure); }
.chip2.white { background: #fff; color: var(--structure); }
.hp-all { box-shadow: inset 0 0 0 1.5px var(--structure); }
.hp-all[aria-pressed="true"] { background: var(--good); color: var(--ink); box-shadow: none; }
.vf-id, .vf-face { border-color: var(--structure); }
.spin { border-top-color: var(--action); }
.ph-fallback { background: linear-gradient(160deg, var(--c-coral), var(--c-slate)); }
.pc .stamp.like { color: var(--good); }
@media (prefers-color-scheme: dark) { .hp-all { box-shadow: inset 0 0 0 1.5px #8A9BA2; } .vf-id, .vf-face { border-color: #8A9BA2; } }

/* ── Room photos: gallery, count, uploader (18 Nov) ── */
.gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal.in-card { margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
.gal figure { margin: 0; flex: 0 0 84%; scroll-snap-align: start; }
.gal.one figure { flex-basis: 100%; }
.gal-ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #151515; padding: 0; border: 0; cursor: zoom-in; }
.gal-ph .gal-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) brightness(.7); }
.gal-ph .gal-img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.gal figcaption { font-size: 13px; line-height: 18px; color: var(--label-2); margin: 6px 4px 0; }
.pcount { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; border-radius: 12px; padding: 3px 9px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.pcount .ic { width: 14px; height: 14px; }
.pm { width: 100%; }
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pm-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--fill-3); cursor: pointer; }
.pm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 13px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.pm-x .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.vote { display: inline-flex; gap: 6px; flex: none; }
.req-who { flex: none; border-radius: 50%; }
.pm-adj { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 14px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.pm-adj .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.pa-prev[hidden], .pa-ring[hidden] { display: none !important; }
.pm-cover { position: absolute; left: 6px; bottom: 6px; background: var(--good); color: var(--on-good); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.pm-add { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--label-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tint); font-size: 13px; font-weight: 600; cursor: pointer; }
.pm-add .ic { width: 24px; height: 24px; }
.pm-note { font-size: 13px; line-height: 18px; color: var(--label-2); margin: 8px 0 0; }

/* ── Main buttons and heart (user, 18 Nov; colors set in :root) ── */
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--primary-edge), 0 2px 6px rgba(0,0,0,.08); }
.btn.primary:active { background: var(--primary-down); }
.btn.primary .ic { stroke: var(--on-primary); }
.rb.like { background: var(--like); color: var(--on-like); box-shadow: 0 10px 26px var(--like-glow); }
.likepill { background: var(--like); color: var(--on-like); }
.likepill.done { background: var(--fill-3); color: var(--label-2); }
.mo .hb { background: var(--like); color: var(--on-like); }
.btn.danger-fill { background: var(--like); color: #fff; }

/* Sign-in code field */
.otp { display: block; width: 100%; height: 66px; border: 0; border-radius: 18px; background: var(--bg-grouped); text-align: center; font-size: 34px; letter-spacing: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--label); outline: none; margin-top: 4px; padding-left: 12px; }
.otp:focus { box-shadow: inset 0 0 0 2px var(--action); }
.otp::placeholder { color: var(--label-3); }
@media (prefers-color-scheme: dark) { .otp { background: #1C1C1E; } }
.otp-err { color: var(--red); font-size: 15px; line-height: 20px; margin: 8px 4px 0; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ── Store must-haves: block, report, legal pages (19 Nov) ── */
.lnk { color: var(--tint); font: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.pf-safety { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.pf-safety .report-row { margin: 0; }
.row.ico .btn.sm { margin-left: auto; }
.doc { font-size: 15px; line-height: 22px; letter-spacing: -0.2px; }
.doc h1 { font-size: 22px; line-height: 28px; margin: 0 0 4px; }
.doc h2 { font-size: 17px; line-height: 22px; margin: 20px 0 6px; }
.doc p, .doc li { margin: 0 0 8px; }
.doc ul { padding-left: 20px; margin: 0 0 8px; }
.doc a { color: var(--tint); }
.doc .date { color: var(--label-2); font-size: 13px; }
.doc .draft { background: var(--sand); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.doc .small { font-size: 13px; color: var(--label-2); margin-top: 20px; }
@media (prefers-color-scheme: dark) { .doc .draft { background: #3A3A3C; color: #F2F2F7; } }

/* ═══════════ Computers (19 Nov): a real website layout ═══════════
   Everything below only applies from 900px wide, so phones look exactly as before. */
.side-logo, .side-foot, .fb-keys, .brand-panel { display: none; }
kbd { font: inherit; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.2); }
@media (min-width: 900px) {
  :root { --side: 248px; --cardW: 430px; --panelW: 400px; --gap: 28px; --cardX: calc(50% - var(--cardW) / 2); }
  .app { max-width: none; box-shadow: none; }

  /* Sidebar instead of the bottom tab bar */
  .tabbar { left: 0; right: auto; top: 0; bottom: 0; width: var(--side); height: auto; border-radius: 0; padding: 28px 14px 22px; flex-direction: column; gap: 4px;
    background: var(--bg-cell); box-shadow: inset -0.5px 0 0 var(--sep); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar button { flex: none; height: 48px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; border-radius: 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
  .tabbar button .ic { width: 22px; height: 22px; }
  .tabbar button:hover { background: var(--fill-4); }
  .tabbar button[aria-current="page"] { background: var(--fill-3); }
  .tabbar .count { position: static; margin-left: auto; }
  .side-logo { display: block; font-size: 25px; font-weight: 800; letter-spacing: -0.6px; padding: 0 14px 24px; color: var(--structure); }
  .side-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding: 0 14px; }
  .tabbar .side-foot .lnk { height: auto; padding: 0; border-radius: 0; flex: none; display: inline; color: var(--label-2); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0; }
  .tabbar .side-foot .lnk:hover { background: none; }
  .side-foot .lnk:hover { color: var(--tint); }

  /* Pages sit to the right of the sidebar, centered */
  .screen { left: var(--side); }
  .screen:not(.fb) { padding: 44px max(32px, calc((100% - 760px) / 2)) 64px; }
  .screen:not(.fb) .hd { padding-left: 16px; }
  #view-places { padding-left: max(32px, calc((100% - 980px) / 2)); padding-right: max(32px, calc((100% - 980px) / 2)); }
  #placesBody > .section:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  #placesBody > .section:first-child > .section-h, #placesBody > .section:first-child > p { grid-column: 1 / -1; }
  #placesBody .room-card + .room-card { margin-top: 0; }
  .room-card:hover, .row:is(button, a):hover { filter: brightness(.98); }

  /* Discover: the card floats in the page, on the page color */
  .screen.fb { background: var(--bg-grouped); }
  .screen.fb .fb-deck { left: var(--cardX); width: var(--cardW); top: 32px; bottom: 32px; border-radius: 32px; overflow: hidden; box-shadow: 0 26px 60px -26px rgba(0,0,0,.45); }
  .screen.fb .fb-top { left: calc(var(--cardX) + 16px); right: auto; width: calc(var(--cardW) - 32px); top: 48px; }
  .screen.fb .fb-act { left: calc(var(--cardX) + 24px); right: auto; width: calc(var(--cardW) - 48px); bottom: 56px; }
  .pc .info { bottom: 132px; }
  .pc .bars { top: 12px; }
  .pc .ph-label { top: 66px; }
  .pc .stamp { top: 110px; }
  .pc .ph.ph-fallback { padding-top: 110px; }
  .fb-act .fb-hint:not(.fb-keys) { display: none; }
  .fb-keys { display: inline-flex; gap: 4px; align-items: center; }
  .fb-empty { padding-bottom: 60px; }

  /* Sheets become centered dialogs; the profile slides in from the right */
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(540px, calc(100% - 48px)); max-height: 86vh; padding-bottom: 16px;
    transform: translate(-50%, -46%); opacity: 0; transition: transform .28s ease, opacity .22s ease, visibility 0s .28s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; transition: transform .28s ease, opacity .22s ease; }
  .sheet .grabber { display: none; }
  .sheet .bar { padding-top: 14px; }
  .pf { left: auto; right: 0; top: 0; bottom: 0; width: 440px; border-radius: 28px 0 0 28px; transform: translateX(105%); }
  .pf-grab { display: none; }
  .pf-scroll { padding-top: 26px; }

  /* Full-screen moments, centered */
  .preview { background: var(--bg-grouped); }
  .preview .fb-deck { left: calc(50% - var(--cardW) / 2); width: var(--cardW); top: 32px; bottom: 32px; border-radius: 32px; overflow: hidden; box-shadow: 0 26px 60px -26px rgba(0,0,0,.45); }
  .preview .fb-top { left: calc(50% - var(--cardW) / 2 + 16px); right: auto; width: calc(var(--cardW) - 32px); top: 48px; }
  /* The match moment: a phone-shaped card in the middle, the page dimmed behind it */
  .mo { left: 50%; right: auto; top: 32px; bottom: 32px; width: var(--cardW); transform: translateX(-50%); border-radius: 32px;
    box-shadow: 0 0 0 100vmax rgba(20, 24, 22, .5), 0 30px 60px -20px rgba(0,0,0,.5); }
  .mo .duo { top: 70px; }
  .mo .m-title { top: 300px; }
  .mo .m-btns { bottom: 28px; }

  /* Welcome and sign-up: brand panel on the left, the steps on the right */
  .onb { left: 50%; padding: 72px max(48px, calc((50vw - 520px) / 2)) 44px; }
  .onb .topbar { padding-left: max(32px, calc((50vw - 560px) / 2)); padding-right: max(32px, calc((50vw - 560px) / 2)); }
  .onb .body { padding: 0; }
  .onb .bottom { padding-left: 0; padding-right: 0; margin-top: 32px; margin-bottom: auto; }
  .onb > .body { margin-top: auto; }   /* the steps sit in the middle of the right half, and still scroll if they're tall */
  .onb > .reveal-fb { margin-top: 18px; }
  .reveal-fb { margin-left: auto; margin-right: auto; max-width: 400px; }
  .onb:not([hidden]) + .brand-panel { display: flex; }
  .brand-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; z-index: 30; flex-direction: column; justify-content: flex-end; padding: 56px 56px 60px; color: #fff;
    background: #4B514E url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?w=1400&q=75&auto=format&fit=crop") center / cover; }
  .brand-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,32,30,.9), rgba(28,32,30,.45) 55%, rgba(28,32,30,.2)); }
  .brand-panel > * { position: relative; }
  .bp-logo { position: absolute; top: 44px; left: 56px; font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
  .brand-panel h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; margin: 0 0 20px; max-width: 560px; letter-spacing: -0.8px; }
  .brand-panel ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 17px; }
  .brand-panel li::before { content: "✓"; margin-right: 10px; color: var(--c-sage); font-weight: 800; }
  .brand-panel small { opacity: .8; font-size: 14px; }

  .toast { top: 18px; }
}
/* Wide windows: the profile of the top card is always shown next to it */
@media (min-width: 1200px) {
  :root { --cardX: calc(50% - (var(--cardW) + var(--gap) + var(--panelW)) / 2); }
  .pf.docked { left: calc(var(--side) + (100% - var(--side)) / 2 - (var(--cardW) + var(--gap) + var(--panelW)) / 2 + var(--cardW) + var(--gap)); right: auto;
    width: var(--panelW); top: 32px; bottom: 32px; border-radius: 28px; transform: none; z-index: 5; transition: none; box-shadow: 0 26px 60px -34px rgba(0,0,0,.35); }
  .pf.docked .pf-bar { display: none; }
  .pf.docked .pf-scroll { padding-bottom: 28px; }
}

/* ZIP codes (19 Nov) */
.zip-msg { margin: 10px 4px 0; font-size: 15px; line-height: 20px; color: var(--label-2); }
.zip-msg p { margin: 0 0 10px; }
.zip-msg b { color: var(--label); }
.zip-found { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.hp-zip { padding-top: 14px; }
.hp-note { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--label-2); }
#f-zip { max-width: 96px; font-variant-numeric: tabular-nums; }

/* Cards: fold-away details (19 Nov) */
.pc .name-row { display: flex; align-items: flex-end; gap: 12px; }
.pc .name-row > div { flex: 1; min-width: 0; }
.pc .more-btn { flex: none; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 19px; border: 0; padding: 0; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.pc .more-btn .ic, .pc .more-btn svg { width: 20px; height: 20px; stroke-width: 2.4; transition: transform .3s ease; }
.pc .info.open .more-btn svg { transform: rotate(180deg); }
.pc .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.pc .more > div { overflow: hidden; min-height: 0; }
.pc .info.open .more { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .pc .more, .pc .more-btn svg { transition: none; } }
/* Photo required, move-in date */
.need-photo { margin: 10px 16px 0; font-size: 13px; line-height: 18px; color: var(--tint); font-weight: 600; }
.row input[type=date] { margin-left: auto; border: 0; outline: none; background: var(--fill-3); color: var(--label); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 17px; min-height: 34px; -webkit-appearance: none; appearance: none; }

/* Messages (19 Nov): simple chat between matches */
.chat { position: absolute; inset: 0; z-index: 25; background: var(--bg); color: var(--label); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .34s cubic-bezier(.2,.9,.25,1); }
.chat.show { transform: none; }
.ch-head { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 2px) 10px 8px; border-bottom: .5px solid var(--sep); }
.ch-p { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 2px 4px; border-radius: 14px; color: var(--label); }
.ch-p > span { min-width: 0; }
.ch-av { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; background: var(--structure); color: #fff; font-weight: 700; }
.ch-p b { display: flex; align-items: center; font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.ch-p b .vbadge { width: 18px; height: 18px; margin-left: 6px; }
.ch-p b .vbadge .ic { width: 11px; height: 11px; }
.ch-p small { display: block; font-size: 13px; line-height: 18px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-list { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.ch-intro { text-align: center; padding: 4px 8px 0; }
.ch-pair { display: flex; justify-content: center; margin-bottom: 10px; }
.ch-pair > * { width: 64px; height: 64px; border-radius: 32px; border: 3px solid var(--bg); object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--structure); color: #fff; font-weight: 700; font-size: 24px; }
.ch-pair > * + * { margin-left: -16px; }
.ch-next { margin: 12px auto 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 16px; border-radius: 20px; background: var(--fill-3); color: var(--label); font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.ch-next .ic { width: 17px; height: 17px; }
.ch-next .chev { width: 14px; height: 14px; opacity: .45; }
.ch-safe, .ch-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 18px; text-align: left; }
.ch-safe { margin: 16px 0 6px; background: var(--fill-4); color: var(--label-2); }
.ch-safe .ic, .ch-warn .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.ch-warn { margin: 6px 0 8px; background: color-mix(in srgb, var(--c-blush) 30%, transparent); color: var(--label); }
.ch-warn button { color: var(--tint); font-weight: 600; font-size: 13px; padding: 0; }
.ch-warn.out { flex: none; margin: 0 12px 6px; }
.ch-time { text-align: center; font-size: 12px; line-height: 16px; color: var(--label-2); margin: 14px 0 6px; font-weight: 500; }
.ch-who { font-size: 12px; line-height: 16px; color: var(--label-2); margin: 8px 0 2px 12px; }
.bub { max-width: 78%; padding: 8px 13px; border-radius: 19px; font-size: 17px; line-height: 22px; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.bub.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); }
.bub.them { align-self: flex-start; background: var(--fill-3); color: var(--label); }
.bub.me.tail { border-bottom-right-radius: 6px; margin-bottom: 6px; }
.bub.them.tail { border-bottom-left-radius: 6px; margin-bottom: 6px; }
.bub.typing { display: inline-flex; gap: 4px; padding: 13px 14px; border-bottom-left-radius: 6px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--label-2); animation: chDot 1.2s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; }
.bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ch-open { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 6px; }
.ch-open .ch-time { align-self: stretch; }
.ch-open button { max-width: 85%; padding: 8px 14px; border-radius: 19px; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); font-size: 16px; line-height: 21px; text-align: left; }
.ch-bar { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px calc(var(--safe-b) + 8px); border-top: .5px solid var(--sep); background: var(--bg); }
.ch-bar textarea { flex: 1; min-width: 0; resize: none; border: 0; box-shadow: inset 0 0 0 1px var(--sep); border-radius: 19px; padding: 8px 14px; font: inherit; font-size: 17px; line-height: 22px; max-height: 120px; background: var(--bg); color: var(--label); outline: none; }
.ch-bar textarea:focus { box-shadow: inset 0 0 0 1.5px var(--primary); }
.ch-send { width: 38px; height: 38px; border-radius: 19px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; flex: none; transition: opacity .2s; }
.ch-send:disabled { opacity: .3; }
.ch-send .ic { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; }
@media (prefers-color-scheme: dark) { .ch-open button { color: #fff; } }
/* Banner for new messages (inside the app) */
.banner { position: absolute; z-index: 55; left: 10px; right: 10px; top: calc(var(--safe-t) + 4px); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; text-align: left; color: var(--label);
  background: color-mix(in srgb, var(--bg-cell) 85%, transparent); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 12px 34px rgba(0,0,0,.2), inset 0 0 0 .5px var(--sep);
  transform: translateY(-150%); visibility: hidden; transition: transform .38s cubic-bezier(.2,.9,.25,1), visibility 0s .38s; }
.banner.show { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2,.9,.25,1); }
.bn-av { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; background: var(--structure); color: #fff; font-weight: 700; }
.bn-t { min-width: 0; flex: 1; }
.bn-t b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.bn-t span { display: block; font-size: 15px; line-height: 20px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Matches list: last message and unread */
.row .sub.unread { color: var(--label); font-weight: 600; }
.row .sub.msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.udot { width: 10px; height: 10px; border-radius: 5px; background: var(--primary); flex: none; margin: 0 4px; }
@media (min-width: 900px) {
  .chat { left: var(--side); border-left: .5px solid var(--sep); }
  .ch-head, .ch-list, .ch-bar { padding-left: max(16px, calc((100% - 720px) / 2)); padding-right: max(16px, calc((100% - 720px) / 2)); }
  .ch-warn.out { margin-left: max(16px, calc((100% - 720px) / 2)); margin-right: max(16px, calc((100% - 720px) / 2)); }
  .bub { max-width: 70%; }
  .banner { left: auto; right: 24px; width: 380px; top: 20px; }
}

/* Agreement: money fields, sublease note (19 Nov) */
.ag-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 16px; line-height: 22px; color: var(--label); }
.ag-f input { width: 128px; text-align: right; border: 0; outline: none; background: var(--fill-3); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 17px; color: var(--label); -moz-appearance: textfield; }
.ag-f input::-webkit-outer-spin-button, .ag-f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.clause p.ag-lbl { margin: 14px 0 -4px; font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: 0; }
.ag-note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-cell); border-radius: 22px; padding: 14px 16px; font-size: 15px; line-height: 21px; color: var(--label); }
.ag-note .ic { width: 20px; height: 20px; flex: none; color: var(--tint); margin-top: 1px; }
@media (prefers-color-scheme: dark) { .sheet .ag-note { background: #2C2C2E; } }
.ch-warn button#metBtn { display: inline; }
.ag-money { position: relative; flex: none; }
.ag-money b { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--label-2); pointer-events: none; }
.ag-f .ag-money input { padding-left: 24px; }

/* Verified / not verified chip on the card front (19 Nov, user: clear green or red) */
.chip2.vok { background: #198038; color: #fff; }   /* 5.0:1 with white text */
.chip2.mtc { background: #198038; color: #fff; }   /* "% match": same green as Verified (the user asked for green, 22 Nov) */
.chip2.vno { background: #DA1E28; color: #fff; }   /* 5.0:1 with white text */
.chip2.vok .ic, .chip2.vno .ic { width: 14px; height: 14px; stroke-width: 3; }
.pc .vrow { display: flex; margin: -4px 0 14px; }
.pf-v { display: flex; margin: 10px 0 0; }

/* Small verified chip for lists and the chat header, dot on the "New" circles (19 Nov) */
.vs { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 6px; margin-left: 6px; border-radius: 10px; font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: 0; color: #fff; white-space: nowrap; vertical-align: 2px; }
.vs .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.vs.vok { background: #198038; }
.vs.vno { background: #DA1E28; }
.ch-p b .vs { margin-left: 8px; vertical-align: 0; }
.newm .av { position: relative; }
.vdot { position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: #fff; border: 2px solid var(--bg-grouped); }
.vdot .ic { width: 12px; height: 12px; stroke-width: 3.4; }
.vdot.vok { background: #198038; }
.vdot.vno { background: #DA1E28; }

/* Photo adjuster (19 Nov): frame the photo in the card's shape, face in the circle */
.pa { position: absolute; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; padding: var(--safe-t) 0 calc(var(--safe-b) + 12px); }
.pa-top { flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.pa-tbtn { height: 40px; padding: 0 14px; border-radius: 20px; font-size: 17px; color: #fff; }
.pa-tbtn.done { background: #fff; color: #0B0D0C; font-weight: 600; }
.pa-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 24px; }
.pa-frame { position: relative; flex: none; overflow: hidden; border-radius: 24px; background: #151515; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; container-type: size;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.pa-frame:active { cursor: grabbing; }
.pa-frame:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Verification videos: a full-screen camera, like the photo adjuster */
.vc { position: absolute; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; padding: var(--safe-t) 0 calc(var(--safe-b) + 14px); }
.vc-step { min-width: 70px; text-align: right; padding-right: 14px; font-size: 15px; color: rgba(255,255,255,.7); }
.vc-stage { position: relative; flex: 1; min-height: 0; margin: 6px 16px 0; border-radius: 24px; overflow: hidden; background: #151515; }
.vc-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-stage video.mirror { transform: scaleX(-1); }
.vc-count { position: absolute; top: 14px; right: 14px; min-width: 56px; height: 56px; padding: 0 12px; border-radius: 28px; background: rgba(217,48,37,.92);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 24px; font-weight: 700; }
.vc-count::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: #fff; }
.vc-count.pre::before { display: none; }
.vc-count.pre { background: rgba(0,0,0,.6); font-size: 40px; width: 84px; height: 84px; border-radius: 42px; top: calc(50% - 42px); right: calc(50% - 42px); }
.vc-say { flex: none; margin: 14px 24px 0; font-size: 18px; line-height: 24px; font-weight: 600; text-align: center; min-height: 48px; }
.vc-foot { flex: none; display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px 24px 0; }
.vc-foot .btn { width: auto; flex: 1; max-width: 220px; }
.vc-rec { width: 76px; height: 76px; border-radius: 38px; border: 4px solid #fff; background: transparent; display: grid; place-items: center; flex: none; }
.vc-rec::after { content: ""; width: 58px; height: 58px; border-radius: 29px; background: #e5342b; }
.vc-rec:disabled { opacity: .45; }
/* behind the photo when it's zoomed out: a soft, darker copy of the same photo fills the rest */
#paBg, #paCBg { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) brightness(.72); pointer-events: none; }
#paImg { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.pa-mock { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; padding: 0 7% 12%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.6cqw; pointer-events: none;
  background: linear-gradient(to top, rgba(5,8,8,.9), rgba(5,8,8,.62) 45%, transparent); }
.pa-mock b { font-size: 10cqw; line-height: 1; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-mock i { display: block; height: 3cqw; width: 64%; border-radius: 2cqw; background: rgba(255,255,255,.34); }
.pa-mock i.s { width: 38%; }
.pa-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255,255,255,.85); pointer-events: none; display: flex; align-items: flex-end; justify-content: center; transition: border-color .3s; }
.pa-ring span { transform: translateY(calc(100% + 10px)); padding: 5px 11px; border-radius: 14px; background: rgba(0,0,0,.55); font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s; }
.pa.moved .pa-ring { border-color: rgba(255,255,255,.5); }
.pa.moved .pa-ring span { opacity: 0; }
.pa-foot { flex: none; width: 100%; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 8px 24px 0; }
.pa-zoom { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1; color: rgba(255,255,255,.75); }
.pa-zoom input { flex: 1; min-width: 0; accent-color: #fff; }
.pa-prev { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pa-circle { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #222; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.pa-circle img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.pa-prev small { font-size: 11px; line-height: 13px; color: rgba(255,255,255,.7); white-space: nowrap; }
.pa-hint { flex: none; margin: 10px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .pa-ring, .pa-ring span { transition: none; } }

/* Sign-up and Me: ways back into the adjuster */
.adj-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--tint); }
.adj-link .ic { width: 16px; height: 16px; }
.me-avw { position: relative; }
.me-edit { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; background: var(--bg-cell); color: var(--label); box-shadow: 0 2px 8px rgba(0,0,0,.18), 0 0 0 .5px var(--sep); }
.me-edit .ic { width: 17px; height: 17px; }

/* Ask to get verified (22 Nov): the strip under the chat header, and the ask as a card in the chat */
.ch-askbar { flex: none; display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 7px 6px 7px 10px; border-radius: 16px; background: var(--fill-4); font-size: 14px; line-height: 19px; }
.ch-askbar .ca-ic { flex: none; width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: #DA1E28; color: #fff; }
.ch-askbar .ca-ic .ic { width: 11px; height: 11px; stroke-width: 3.4; }
.ch-askbar .ca-t { flex: 1; min-width: 0; }
.ch-askbar .btn.sm { height: 32px; border-radius: 16px; font-size: 14px; padding: 0 12px; flex: none; }
.ch-askbar .ca-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--label-2); }
.ch-askbar .ca-x .ic { width: 14px; height: 14px; }
.ch-ask { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; margin: 10px 0; padding: 12px; border-radius: 16px; background: var(--fill-4); font-size: 14px; line-height: 20px; color: var(--label); }
.ch-ask > .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--label-2); }
.ch-ask > span { flex: 1 1 calc(100% - 30px); min-width: 0; }   /* the button wraps under the text */
.ch-ask .ok { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.ch-ask .ok .ic { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: #198038; color: #fff; stroke-width: 3.4; box-sizing: content-box; }
.ch-ask .btn.sm { margin-left: 28px; }

/* A removed profile: one plain screen above everything except sheets (Help, Delete) */
.removed { position: absolute; inset: 0; z-index: 35; background: var(--sand); }
.removed .fb-empty { padding: calc(var(--safe-t) + 24px) 32px calc(var(--safe-b) + 24px); }
.removed .fb-empty .btn { max-width: 340px; }
.removed .rm-acct { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.removed .rm-del { color: #DA1E28; }

/* Commute estimates (launch area): on the card's details and in the profile's room section */
.pc .money.commute { margin-top: 4px; }
.commute-note { margin: 10px 2px 0; font-size: 15px; line-height: 20px; color: var(--label-2); }

/* Send feedback */
.fb-row textarea { width: 100%; min-height: 132px; border: 0; background: transparent; color: var(--label); font: inherit; font-size: 17px; line-height: 22px; resize: vertical; outline: none; padding: 4px 0; }

/* Room photos on the card: the whole photo (or the owner's framing) on a blurred, darker copy of itself */
.pc .ph-room { overflow: hidden; background: #151515; }
.pc .ph-room .ph-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(24px) brightness(.68); }
.pc .ph-room .ph-fg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Full-screen photos */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; }
.vw-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vw-strip::-webkit-scrollbar { display: none; }
.vw-strip figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--safe-t) + 56px) 0 calc(var(--safe-b) + 24px); }
.vw-strip img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; display: block; }
.vw-strip figcaption { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.8); text-align: center; padding: 0 16px; }
.vw-x { position: absolute; top: calc(var(--safe-t) + 10px); right: 12px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.16); color: #fff; display: none; place-items: center; }
.vw-nav.prev { left: 12px; } .vw-nav.next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .vw-nav { display: grid; } }
.vw-x:focus-visible, .vw-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vw-x, .vw-nav, .vw-strip figcaption, .vw-hint { transition: opacity .3s; }
.vw-hint { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 22px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 22px; background: rgba(255,255,255,.16); font-size: 15px; pointer-events: none; }
.vw-hint .ic { width: 22px; height: 22px; animation: vw-turn 2.4s ease-in-out infinite; }
@keyframes vw-turn { 0%, 30% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .vw-hint .ic { animation: none; } }
/* A turned phone: the photo takes the whole screen; the buttons step back until a tap */
@media (orientation: landscape) and (pointer: coarse) {
  .vw-strip figure { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .vw-strip img { max-height: 100%; }
  .vw-strip figcaption { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); left: 0; right: 0; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
  .vw-x { top: calc(env(safe-area-inset-top, 0px) + 10px); right: calc(env(safe-area-inset-right, 0px) + 12px); }
  .vw-strip figure { position: relative; }
}
.viewer.ui-off .vw-x, .viewer.ui-off .vw-nav, .viewer.ui-off figcaption { opacity: 0; pointer-events: none; }
/* The full-screen button on room photos (card) */
.pc .ph-full { position: absolute; top: calc(var(--safe-t) + 66px); right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 20px;
  background: rgba(5,8,8,.45); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pc .ph-full .ic { width: 18px; height: 18px; }
.pc .ph-full[hidden] { display: none; }
