/*
 * KNOWN demo app.
 *
 * Two layouts, chosen by html[data-mode] (set in app.js):
 *   frame - desktop: the app sits in a phone frame beside the demo panel
 *   bare  - real phones, and ?embed=1 inside the landing page: the app
 *           fills the window and the frame disappears
 *
 * Inside the phone the look follows iOS: system font, inset grouped lists,
 * translucent bars that content scrolls under, sheets, capsules. The large
 * titles use the brand serif so the app and the site read as one thing.
 */

:root {
  /* Colours that were written into rules, lifted to tokens at the same values (Hallmark gate 48, polish pass 28 Nov 2026). */
  --statusbar-ink: #F3F0E9;
  --screen-shadow: rgb(8 12 13);
  --screen-dim-bg: rgb(8 12 13);
  --search-field-shadow: rgb(14 23 25 / 0.28);
  --search-field-focus-shadow: rgb(14 23 25 / 0.28);
  --avatar-ink: #1B2426;   /* ink initials on the soft dots */
  --segmented-checked-shadow-1: rgb(8 12 13 / .12);
  --segmented-checked-shadow-2: rgb(8 12 13 / .04);
  --toggle-after-shadow-1: rgb(8 12 13 / .16);
  --toggle-after-shadow-2: rgb(8 12 13 / .08);
  --banner-shadow: rgb(8 12 13 / .22);
  --sheet-scrim-bg: rgb(6 10 11 / 0.42);
  --sheet-shadow: rgb(6 10 11 / .14);
  --flag-shadow: rgb(17 26 28 / 0.2);
  --celebrate-bg: rgb(6 10 11 / 0);
  --is-in-bg: rgb(6 10 11 / 0.42);
  --is-out-bg: rgb(6 10 11 / 0);
  --celebrate-card-shadow: rgb(6 10 11 / 0.35);
  --is-destructive-ink: #fff;
  --ask-compose-shadow: rgb(14 23 25 / 0.25);
}

/* ============================================================== THE PAGE */

body.demo { min-height: 100vh; min-height: 100svh; }

.stage {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 360px) auto;
  justify-content: center; align-items: start;
  gap: clamp(48px, 7vw, 120px);
  padding: 28px var(--gutter);
}
/* The phone stays in view while the panel beside it scrolls. */
.device-wrap { display: flex; justify-content: center; position: sticky; top: 28px; }
.panel { padding: 8px 0 40px; }

/* --------------------------------------------------------- the demo panel */

.panel { max-width: 360px; }
.panel .wordmark { color: inherit; }   /* ink on paper, and paper on ink in dark mode */
.panel-title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(38px, 3.8vw, 52px); line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin: 36px 0 14px;
}
.panel-lede { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* A hairline with an inline label. */
.panel-label {
  display: flex; align-items: center; gap: 12px;
  margin: 30px 0 4px;
  font-size: 13px; font-weight: 460; color: var(--ink-faint);
}
.panel-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

.jump-list button {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 4px;
  width: 100%; padding: 11px 0;
  background: none; border: 0; border-bottom: 1px solid var(--hairline);
  text-align: left; color: inherit; font-size: 16px; font-weight: 460;
}
.jump-n { font-family: var(--font-body); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-faint); line-height: 1.4; }
.jump-hint { display: block; font-size: 13.5px; font-weight: 380; color: var(--ink-faint); margin-top: 1px; }
.jump-arrow { width: 16px; height: 16px; color: var(--ink-faint); align-self: center; transition: transform .35s var(--ease-hover); }
.jump-list button:hover .jump-arrow, .jump-list button[aria-current="true"] .jump-arrow { transform: translateX(4px); color: inherit; }
.jump-list button[aria-current="true"] .jump-n { color: var(--accent); }
.jump-count[hidden] { display: none; }
.jump-count {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; background: var(--pop); color: var(--on-pop);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; vertical-align: 2px;
}

.viewas { display: grid; }
.viewas-row {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 8px 0;
  background: none; border: 0; text-align: left; color: inherit;
}
.viewas-row + .viewas-row { border-top: 1px solid var(--hairline); }
.viewas-name { font-size: 15.5px; font-weight: 460; line-height: 1.25; }
.viewas-city { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 380; }
.viewas-state { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.viewas-row[aria-pressed="true"] .viewas-state { color: inherit; font-weight: 520; }
.viewas-row[aria-pressed="true"] .viewas-name::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px;
  border-radius: 50%; background: var(--pop); vertical-align: 3px;
}
.viewas-row:hover .viewas-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.panel-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  margin-top: 26px; font-size: 14px; color: var(--ink-faint);
}
.panel-foot .link-sweep { font-size: 14px; color: var(--ink-soft); }

.debug { margin-top: 22px; font-size: 13px; }
.debug summary { cursor: pointer; color: var(--ink-faint); }
.debug table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.debug th, .debug td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--hairline); }
.debug th { color: var(--ink-faint); font-weight: 460; }
.debug .num { text-align: right; font-variant-numeric: tabular-nums; }
.debug-actions { display: flex; gap: 16px; margin-top: 10px; }
.debug-actions button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 979px) {
  .stage { grid-template-columns: 1fr; justify-items: center; align-content: start; padding-top: 24px; }
  .device-wrap { position: static; }
  .panel { order: 2; max-width: 480px; width: 100%; padding-bottom: 48px; }
  .panel-title { margin-top: 20px; }
}

/* --------------------------------------------------------------- bare mode */

html, body { overflow-x: clip; }
html[data-mode="bare"] body.demo { overflow: clip; }
html[data-mode="bare"] .stage { display: block; padding: 0; min-height: 0; }
html[data-mode="bare"] .panel { display: none; }
html[data-mode="bare"] .device,
html[data-mode="bare"] .device-frame,
html[data-mode="bare"] .device-screen {
  position: fixed; inset: 0; width: auto; height: auto;
  padding: 0; border-radius: 0; transform: none; box-shadow: none; background: none;
}
html[data-mode="bare"] .device-frame::before,
html[data-mode="bare"] .device-frame::after,
html[data-mode="bare"] .device-island,
html[data-mode="bare"] .device-home { display: none; }

/* ================================================================ THE APP */

:root {
  /* The demo's colours (moved here from .app for Hallmark gate 48; same values). */
  --app-bg: #F2EFE9;
  --cell: #FBFAF6;
  --label: #111A1C;
  --label-2: rgb(17 26 28 / 0.64);   /* 4.7:1 on the page and the cells */
  --label-3: rgb(17 26 28 / 0.34);
  --sep: rgb(17 26 28 / 0.14);
  --fill: rgb(70 64 52 / 0.08);
  --fill-2: rgb(70 64 52 / 0.14);
  --fill-press: rgb(70 64 52 / 0.11);
  --tint: #B8395F;
  --tint-soft: rgb(184 57 95 / 0.1);
  --on-tint: #FFF8F9;
  --red: #B6412D;
  --on-red: #FBF8F2;
  --mark-bg: rgb(201 65 106 / 0.2);
  --mark-text: #4A1027;
  --material: rgb(242 239 233 / 0.72);
  --material-strong: rgb(248 246 241 / 0.82);
  --knob: #FBFAF6;
  --field-edge: rgb(17 26 28 / 0.5);   /* text fields: 3:1 against the cell and the page */
}

.app {
  --safe-top: 54px;
  --safe-bottom: 34px;
  --nav-h: 44px;
  --tabbar-h: 50px;

  position: absolute; inset: 0; overflow: hidden;
  background: var(--app-bg); color: var(--label);
  font-family: var(--font-ui);
  font-size: 17px; line-height: 22px; letter-spacing: -0.41px;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --app-bg: #0B1113;
    --cell: #151D20;
    --label: #ECEEE9;
    --label-2: rgb(236 238 233 / 0.6);
    --label-3: rgb(236 238 233 / 0.34);
    --sep: rgb(236 238 233 / 0.14);
    --fill: rgb(236 238 233 / 0.08);
    --fill-2: rgb(236 238 233 / 0.15);
    --fill-press: rgb(236 238 233 / 0.1);
    --tint: #F07A9C;
    --tint-soft: rgb(240 122 156 / 0.14);
    --on-tint: #0B1113;
    --red: #EC8A76;
    --on-red: #1A0E0B;
    --mark-bg: rgb(240 122 156 / 0.28);
    --mark-text: #F1F8F7;
    --material: rgb(14 21 23 / 0.7);
    --material-strong: rgb(24 33 36 / 0.82);
    --knob: #ECEEE9;
    --field-edge: rgb(236 238 233 / 0.45);
  }
}
html[data-mode="bare"]:not([data-embed]) .app {
  --safe-top: max(env(safe-area-inset-top, 0px), 8px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.app input, .app textarea, .app .selectable { -webkit-user-select: text; user-select: text; }
.app button { -webkit-touch-callout: none; }
.app :focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 8px; }

/* Status bar: only drawn when the phone is a picture of a phone. */
.statusbar {
  position: absolute; z-index: 80; top: 0; left: 0; right: 0; height: 54px;
  display: none; align-items: center; justify-content: space-between;
  padding: 4px 34px 0 52px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
  pointer-events: none;
}
.statusbar-icons { display: flex; align-items: center; gap: 6px; }
.statusbar svg { height: 12px; width: auto; }
html[data-statusbar] .statusbar { display: flex; }
/* Opened full screen from the landing page on a phone: real safe areas, no fake status bar. */
html[data-embed][data-fullscreen] .app {
  --safe-top: max(env(safe-area-inset-top, 0px), 8px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
.app.sheet-up .statusbar { color: var(--statusbar-ink); transition: color .2s; }

.app-body {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--app-bg);
  transform-origin: 50% 0;
}

/* ----------------------------------------------------------- tabs, screens */

.tab { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.tab.is-active { visibility: visible; pointer-events: auto; }

.screen {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--app-bg);
  touch-action: pan-y;
  box-shadow: -10px 0 30px color-mix(in srgb, var(--screen-shadow) calc(var(--edge, 0) * 16%), transparent);
}
.screen-dim {
  position: absolute; inset: 0; z-index: 30;
  background: var(--screen-dim-bg); opacity: var(--dim, 0);
  pointer-events: none;
}

.scroll {
  position: absolute; inset: 0;
  overflow-x: clip; overflow-y: auto; overscroll-behavior-y: contain;
  padding: calc(var(--safe-top) + var(--nav-h)) 0 calc(var(--tabbar-h) + var(--safe-bottom) + 32px);
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.screen[data-type="edit"] .scroll { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 40px); }

/* Nav bar: a material that fades in only once content scrolls under it. */
.navbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  height: calc(var(--safe-top) + var(--nav-h));
  padding: var(--safe-top) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.navbar-material {
  position: absolute; inset: 0;
  background: var(--material);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0.5px 0 var(--sep);
  opacity: var(--nav-bg, 0);
}
.nav-leading, .nav-trailing { position: relative; display: flex; align-items: center; min-width: 0; }
.nav-leading { justify-self: start; }
.nav-trailing { justify-self: end; gap: 2px; }
.nav-title {
  position: relative; max-width: 190px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.41px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
/* The small title waits for the large one to scroll away; without scripting it just shows. */
.js .nav-title { opacity: 0; transform: translateY(4px); }
.screen.show-title .nav-title { opacity: 1; transform: none; }

.nav-back, .nav-text {
  display: flex; align-items: center; gap: 1px;
  height: 44px; padding: 0 8px; margin: 0;
  background: none; border: 0;
  color: var(--tint); font-size: 17px; letter-spacing: -0.41px;
  white-space: nowrap; max-width: 150px;
}
.nav-back { padding-left: 0; }
.nav-back svg { width: 24px; height: 24px; flex: none; }
.nav-back span { overflow: hidden; text-overflow: ellipsis; }
.nav-text.is-bold { font-weight: 600; }
.nav-back:active, .nav-text:active { opacity: .45; }
.nav-pill {
  height: 30px; padding: 0 12px; margin: 0 6px;
  border-radius: 15px; border: 0;
  background: var(--fill-2); color: var(--label);
  font-size: 13px; font-weight: 600; letter-spacing: -0.08px;
}
.nav-pill:active { transform: scale(.95); }

.large-title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 34px; line-height: 41px; letter-spacing: var(--display-tracking);
  padding: 0 20px; margin-top: 4px;
}
.large-sub { padding: 3px 20px 0; color: var(--label-2); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }

/* ---------------------------------------------------------------- search */

.search-field { position: relative; margin: 18px 16px 0; }
.search-field input {
  width: 100%; height: 50px; padding: 0 46px 0 44px;
  border: 1px solid var(--field-edge); border-radius: 14px;
  background: var(--cell); color: var(--label);
  box-shadow: 0 8px 24px -12px var(--search-field-shadow);
  font-family: var(--font-ui); font-size: 17px; letter-spacing: -0.41px;
  -webkit-appearance: none; appearance: none; outline: none;
  transition: box-shadow .2s var(--ease-out);
}
.search-field input:focus { box-shadow: 0 0 0 2px var(--tint), 0 8px 24px -12px var(--search-field-focus-shadow); }
.search-field input::placeholder { color: var(--label-2); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--label-3); pointer-events: none;
}
.field-clear {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: none; color: var(--label-3);
  display: flex; align-items: center; justify-content: center;
}
.field-clear svg { width: 19px; height: 19px; }
.field-clear[hidden] { display: none; }
.field-hint { padding: 8px 32px 0; font-size: 13px; line-height: 18px; letter-spacing: -0.08px; color: var(--label-2); }

.results-meta { padding: 22px 32px 0; font-size: 13px; color: var(--label-2); }

/* ----------------------------------------------------------------- lists */

.list-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 30px; padding: 0 32px 7px;
  font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: -0.24px;
  color: var(--label-2);
}
.header-btn {
  background: none; border: 0; padding: 0;
  font-size: 15px; text-transform: none; letter-spacing: -0.24px; color: var(--tint);
}
.list {
  margin: 0 16px; overflow: hidden;
  background: var(--cell); border-radius: 12px;
}
.list-footer { padding: 7px 32px 0; font-size: 13px; line-height: 18px; letter-spacing: -0.08px; color: var(--label-2); }
.list-footer.is-error { color: var(--red); }
.list-footer.is-ok { color: var(--tint); }

.row {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; padding: 11px 16px; margin: 0;
  background: transparent; border: 0; border-radius: 0;
  color: inherit; text-align: left; text-decoration: none;
  font-size: 17px; letter-spacing: -0.41px;
  transition: background-color .3s;
}
.row + .row::before, .row-group + .row::before, .row + .row-group::before {
  content: ""; position: absolute; top: 0; right: 0; left: var(--sep-inset, 16px);
  height: 0.5px; background: var(--sep);
}
.list-people { --sep-inset: 72px; }
button.row:active, .row.is-pressed { background: var(--fill-press); transition-duration: 0s; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; }
.row-sub { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; color: var(--label-2); }
.row-sub .via { display: inline-flex; align-items: center; gap: 4px; }
.row-sub .via svg { width: 14px; height: 14px; }
.row-sub strong { color: var(--label); font-weight: 600; }
.row-matches { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.match { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.match-label { margin-right: 5px; font-size: 13px; color: var(--label-2); }
.chev { flex: none; width: 13px; height: 13px; color: var(--label-3); }
.row-suggest > svg:first-child { width: 18px; height: 18px; color: var(--label-3); flex: none; }
.row-suggest .row-main { font-size: 17px; }
.row-end { flex: none; display: flex; align-items: center; gap: 8px; }
.row-text { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.row-text strong { font-weight: 600; }
/* The tappable part of a row that also holds its own buttons. */
.row-link {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 0; margin: 0; border: 0; background: none; color: inherit; text-align: left;
  font-size: 17px; letter-spacing: -0.41px;
}
.row-link:active { opacity: .6; }
.row-value { color: var(--label-2); }

mark { background: var(--mark-bg); color: var(--mark-text); border-radius: 4px; padding: 0 2px; margin: 0 -1px; }

/* Capsules */
.cap {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 10px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06px; line-height: 1;
}
.cap-direct { background: var(--tint-soft); color: var(--tint); }
/* Dashed outline: one step further away than a direct connection. */
.cap-fof { border: 1px dashed var(--label-3); color: var(--label-2); height: 20px; }
.cap-you { background: var(--fill-2); color: var(--label-2); }
.cap-new { background: var(--tint); color: var(--on-tint); height: 18px; padding: 0 6px; font-size: 11px; }

/* ---------------------------------------------------------------- avatars */

.avatar {
  --tone: var(--tone-a);
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tone);
  color: var(--avatar-ink); font-family: var(--font-ui); font-size: 16px; font-weight: 650; letter-spacing: 0;
}
.avatar-xs { width: 24px; height: 24px; font-size: 9.5px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 96px; height: 96px; font-size: 34px; letter-spacing: 0.01em; }
/* People without a photo: the soft dots from Donald's mockup and the landing
   page (sage, sand, gold, lavender, sky, tan, blush, stone) with ink initials,
   so the demo's people look like the site's. 28 Nov 2026, was teal and ink. */
:root {
  --tone-a: #B8C9B0; --tone-b: #E6CBA8; --tone-c: #EDC77A; --tone-d: #CDB9E0;
  --tone-e: #AFC8DA; --tone-f: #D9B190; --tone-g: #EFC4D0; --tone-h: #D7D3C8;
}
.tone-0 { --tone: var(--tone-a); }
.tone-1 { --tone: var(--tone-b); }
.tone-2 { --tone: var(--tone-c); }
.tone-3 { --tone: var(--tone-d); }
.tone-4 { --tone: var(--tone-e); }
.tone-5 { --tone: var(--tone-f); }
.tone-6 { --tone: var(--tone-g); }
.tone-7 { --tone: var(--tone-h); }

/* ---------------------------------------------------------------- buttons */

.btn-fill, .btn-tinted, .btn-plain {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; padding: 0 16px; margin: 0;
  border: 0; border-radius: 14px;
  font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: -0.41px;
  transition: transform .14s var(--ease-out), opacity .14s var(--ease-out);
}
.btn-fill { background: var(--pop); color: var(--on-pop); }   /* one main action per screen, in the hint */
.btn-tinted { background: var(--tint-soft); color: var(--tint); }
.btn-plain { background: transparent; color: var(--tint); height: 44px; }
.btn-plain.is-destructive { color: var(--red); }
.btn-tinted.is-destructive { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.segmented.is-4 { grid-template-columns: repeat(4, 1fr); }
.btn-fill:active, .btn-tinted:active, .btn-plain:active { transform: scale(.97); opacity: .86; transition-duration: .06s; }
.btn-fill svg, .btn-tinted svg { width: 20px; height: 20px; }

.btn-small {
  flex: none; height: 30px; padding: 0 14px; margin: 0;
  border: 0; border-radius: 15px;
  background: var(--tint-soft); color: var(--tint);
  font-size: 15px; font-weight: 600; letter-spacing: -0.24px;
  transition: transform .14s var(--ease-out);
}
.btn-small.is-fill { background: var(--tint); color: var(--on-tint); }
.btn-small:active { transform: scale(.94); }
.btn-small:disabled { background: var(--fill); color: var(--label-3); cursor: not-allowed; }
.btn-small:disabled:active { transform: none; }
.btn-round {
  flex: none; width: 30px; height: 30px; padding: 0; margin: 0;
  border: 0; border-radius: 50%;
  background: var(--fill-2); color: var(--label-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-round svg { width: 14px; height: 14px; }
.btn-round:active { transform: scale(.92); }

/* ------------------------------------------------------------------ cards */

.card {
  display: grid; gap: 12px;
  margin: 0 16px; padding: 16px;
  background: var(--cell); border-radius: 18px;
}
.card + .card { margin-top: 12px; }
.card-text { font-size: 17px; line-height: 22px; }
.card-text strong { font-weight: 600; }
.card-meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.08px; }
.card-foot { font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.08px; }
.card-actions { display: grid; gap: 8px; }
.card-actions.is-pair { grid-template-columns: 1fr 1fr; }
.card-head { display: flex; align-items: flex-start; gap: 12px; }
.pair { display: flex; align-items: center; gap: 6px; flex: none; }
.pair svg { width: 14px; height: 14px; color: var(--label-3); }
.bubble {
  padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  background: var(--fill); font-size: 15px; line-height: 20px; letter-spacing: -0.24px;
  -webkit-user-select: text; user-select: text;
}
.card.is-new { box-shadow: inset 0 0 0 1.5px var(--tint); }

.nudge { background: var(--cell); }
.nudge-kicker { font-size: 13px; font-weight: 600; color: var(--tint); letter-spacing: -0.08px; }
.nudge h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; line-height: 28px; letter-spacing: var(--display-tracking); }
.nudge p { color: var(--label-2); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }

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

.profile-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 24px 0; }
.profile-name {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 28px; line-height: 33px; letter-spacing: var(--display-tracking);
}
.profile-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--label-2); font-size: 15px; letter-spacing: -0.24px; }
.profile-place { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 10px; font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.profile-place svg { width: 16px; height: 16px; color: var(--tint); }
.profile-place .dim { color: var(--label-2); }
.profile-actions { display: grid; gap: 10px; padding: 22px 16px 0; }
.status-card { padding: 14px 16px; border-radius: 14px; background: var(--tint-soft); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.status-card strong { font-weight: 600; }
.caption { padding: 0 8px; text-align: center; font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.08px; }

.mutuals {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 16px 0; padding: 12px 14px;
  background: var(--cell); border-radius: 12px;
}
.facepile { display: flex; flex: none; }
.facepile .avatar { box-shadow: 0 0 0 2px var(--cell); }
.facepile .avatar + .avatar { margin-left: -9px; }
.mutuals p { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.inline-link { padding: 0; margin: 0; border: 0; background: none; color: var(--tint); font-weight: 600; font-size: inherit; letter-spacing: inherit; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 15px; background: var(--fill);
  font-size: 15px; letter-spacing: -0.24px; white-space: nowrap;
}
.tag.is-match { background: var(--mark-bg); color: var(--mark-text); }
.tag mark { background: none; color: inherit; padding: 0; margin: 0; font-weight: 600; }

.row-kv { flex-direction: column; align-items: flex-start; gap: 1px; }
.kv-label { font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.08px; }
.kv-value { font-size: 17px; }
.kv-value .dim { color: var(--label-2); }

.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 16px 0; background: var(--cell); border-radius: 12px; }
.stat { padding: 12px 16px; }
.stat + .stat { box-shadow: inset 0.5px 0 0 var(--sep); }
.stat b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; line-height: 32px; letter-spacing: var(--display-tracking); }
.stat > span { font-size: 13px; color: var(--label-2); }

/* ---------------------------------------------------------- forms, inputs */

.row-field { padding: 6px 6px 6px 16px; gap: 4px; }
.row-field .at { color: var(--label-2); }
.row-field input {
  flex: 1; min-width: 0; height: 38px; padding: 0;
  border: 0; background: none; outline: none; color: var(--label);
  font-size: 17px; letter-spacing: -0.41px;
}
.row-field input::placeholder, .row-input input::placeholder, .row-input textarea::placeholder { color: var(--label-2); }

.row-input { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; padding: 0 16px; min-height: 46px; }
.row-input > span { color: var(--label); }
.row-input input, .row-input select, .row-input textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0;
  border: 0; background: none; outline: none;
  color: var(--label); font-family: var(--font-ui); font-size: 17px; letter-spacing: -0.41px;
  -webkit-appearance: none; appearance: none;
}
.row-input select { color: var(--label-2); }
.row-input textarea { height: auto; min-height: 66px; padding: 12px 0; resize: none; line-height: 22px; }
.row-input.is-stacked { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
.row-input.is-stacked > span { font-size: 13px; color: var(--label-2); letter-spacing: -0.08px; }
.row-input[aria-invalid="true"] > span, .row-input.is-invalid > span { color: var(--red); }
.row-past { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; padding: 0 16px; min-height: 46px; align-items: center; }
.row-past input { min-width: 0; height: 44px; border: 0; background: none; outline: none; color: var(--label); font-size: 17px; letter-spacing: -0.41px; }
.minus {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: var(--red); color: var(--on-red);
  display: inline-flex; align-items: center; justify-content: center;
}
.minus svg { width: 12px; height: 12px; }
.row-add { color: var(--tint); gap: 10px; }
.row-add svg { width: 22px; height: 22px; }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 16px; padding: 2px; border-radius: 9px; background: var(--fill-2);
}
.segmented label {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 32px; border-radius: 7px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.08px; cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--cell); box-shadow: 0 3px 8px var(--segmented-checked-shadow-1), 0 0 0 0.5px var(--segmented-checked-shadow-2); font-weight: 600; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--tint); outline-offset: 1px; }

.row-toggle { justify-content: space-between; }
.toggle {
  -webkit-appearance: none; appearance: none; flex: none; position: relative;
  width: 51px; height: 31px; margin: 0; border-radius: 16px;
  background: var(--fill-2); transition: background-color .25s;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: var(--knob);
  box-shadow: 0 3px 8px var(--toggle-after-shadow-1), 0 1px 1px var(--toggle-after-shadow-2);
  transition: transform .32s var(--ease-spring);
}
.toggle:checked { background: var(--tint); }
.toggle:checked::after { transform: translateX(20px); }
.form-error { padding: 10px 32px 0; color: var(--red); font-size: 13px; line-height: 18px; }
.form-error:empty { display: none; }

/* Choice list: radio rows with a checkmark (intro sheet). */
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { width: 18px; height: 18px; color: var(--tint); flex: none; }
.choice .check { opacity: 0; }
.choice:has(input:checked) .check { opacity: 1; }
.choice:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--tint); }
.note-input {
  display: block; width: 100%; min-height: 104px; padding: 12px 16px;
  border: 0; background: none; outline: none; resize: none;
  color: var(--label); font-family: var(--font-ui); font-size: 17px; line-height: 22px; letter-spacing: -0.41px;
}
.counter { padding: 0 16px 10px; text-align: right; font-size: 12px; color: var(--label-2); }

/* ------------------------------------------------------------------ empty */

.empty { padding: 44px 32px 4px; text-align: center; }
.empty > svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--label-3); }
.empty h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 27px; letter-spacing: var(--display-tracking); }
.empty p { margin-top: 8px; color: var(--label-2); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  height: 34px; padding: 0 14px; border: 0; border-radius: 17px;
  background: var(--cell); box-shadow: 0 0 0 0.5px var(--sep);
  color: var(--tint); font-size: 15px; letter-spacing: -0.24px;
}
.chip .n { margin-left: 5px; color: var(--label-2); }
.chip:active { transform: scale(.96); }

/* --------------------------------------------- skeleton (AI search fallback) */

.list-skeleton { margin-top: 12px; }
.list-skeleton .row { min-height: 72px; }
.sk {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--fill) 0%, var(--fill-2) 50%, var(--fill) 100%) 0 0 / 300% 100%;
  animation: sk-shimmer 1.4s linear infinite;
}
.sk-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.sk-line { height: 13px; width: 62%; margin: 3px 0; }
.sk-line + .sk-line { width: 38%; height: 11px; }
.list-skeleton .row:nth-child(2) .sk-line:first-child { width: 48%; }
.list-skeleton .row:nth-child(3) .sk-line:first-child { width: 55%; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ----------------------------------------------------------------- tabbar */

.tabbar {
  position: absolute; z-index: 40; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--material-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 -0.5px 0 var(--sep);
}
.tab-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
  padding: 7px 0 0; margin: 0; border: 0; background: none;
  color: var(--label-2); font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 13px;
}
.tab-btn svg { width: 27px; height: 27px; transition: transform .14s var(--ease-out); }
.tab-btn .solid { fill: none; }
.tab-btn[aria-selected="true"] { color: var(--tint); }
.tab-btn[aria-selected="true"] .solid { fill: currentColor; }
.tab-btn:active svg { transform: scale(.88); }
.tab-badge {
  position: absolute; top: 3px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pop); color: var(--on-pop);
  font-size: 12px; font-weight: 600; line-height: 18px; letter-spacing: 0; text-align: center;
}
.tab-badge:empty { display: none; }

/* ----------------------------------------------------------------- banner */

.banner-host {
  position: absolute; z-index: 85; left: 0; right: 0;
  top: calc(var(--safe-top) - 2px);
  pointer-events: none;
}
.banner {
  display: flex; align-items: center; gap: 12px;
  margin: 0 10px; padding: 12px 12px 12px 14px;
  border-radius: 24px;
  background: var(--material-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 14px 44px var(--banner-shadow), 0 0 0 0.5px var(--sep);
  pointer-events: auto;
  will-change: transform;
}
.banner-text { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.banner-text strong { display: block; font-weight: 600; }
.banner-icon { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--tint); color: var(--on-tint); display: flex; align-items: center; justify-content: center; }
.banner-icon svg { width: 16px; height: 16px; }
.banner-action {
  flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 16px;
  background: var(--tint); color: var(--on-tint); font-size: 14px; font-weight: 600; letter-spacing: -0.15px;
}
.banner-action:active { transform: scale(.95); }

/* ------------------------------------------------------------------ sheet */

.sheet-host { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.sheet-host.is-open { pointer-events: auto; }
.sheet-scrim { position: absolute; inset: 0; background: var(--sheet-scrim-bg); opacity: 0; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(var(--safe-top) + 10px);
  display: flex; flex-direction: column;
  background: var(--app-bg);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px var(--sheet-shadow);
  transform: translateY(110%);
  will-change: transform;
}
.sheet-handle { flex: none; padding-top: 6px; touch-action: none; cursor: grab; }
.sheet-handle:active { cursor: grabbing; }
.sheet-grabber { width: 36px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--label-3); opacity: .7; }
.sheet-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 8px; }
.sheet-nav h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.41px; }
.sheet-nav > :last-child { justify-self: end; }
.sheet-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: calc(var(--safe-bottom) + 24px);
  scrollbar-width: none;
}
.sheet-scroll::-webkit-scrollbar { display: none; }
.sheet-target { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 24px 0; }
.sheet-target h3 { margin-top: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 27px; letter-spacing: var(--display-tracking); }
.sheet-target p { margin-top: 6px; color: var(--label-2); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }
.sheet-submit { padding: 22px 16px 0; }

/* ------------------------------------------------------- accessibility prefs */

@media (prefers-reduced-transparency: reduce) {
  .navbar-material, .tabbar, .banner { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--app-bg); }
}
@media (prefers-contrast: more) {
  :root { --sep: rgb(17 26 28 / 0.4); --label-2: rgb(17 26 28 / 0.8); }
}


/* ================================================== v3: people, chats, polish */

/* Friends of friends: one step out from the teal. And the open-profile outline. */
:root { --fof: #B8395F; --fof-soft: rgb(184 57 95 / 0.1); --open: rgb(17 26 28 / 0.42); }   /* friends of friends: the raspberry ring, as in Donald's mockup (was teal) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fof: #F07A9C; --fof-soft: rgb(240 122 156 / 0.16); --open: rgb(236 238 233 / 0.45); }
}

/* Avatars: photos, and a ring that says how far away someone is. */
.avatar.has-photo { background: var(--fill-2); overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.ring-fof { outline: 2px solid var(--fof); outline-offset: 2px; }
.avatar.ring-open { outline: 1.5px dashed var(--open); outline-offset: 2px; }
.cap-fof { border-color: var(--fof); color: var(--fof); }
.cap-open { border: 1px dashed var(--open); color: var(--label-2); height: 20px; }
.row-sub .via svg { color: var(--fof); }

/* Name, flags, then where they live. */
.flags { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.flag { width: 17px; height: 11.3px; border-radius: 2px; flex: none; box-shadow: 0 0 0 0.5px var(--flag-shadow); }
.row-title { gap: 4px 7px; flex-wrap: nowrap; min-width: 0; }
.row-title .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name .flags { margin-left: 10px; vertical-align: 5px; gap: 4px; }
.profile-name .flag { width: 24px; height: 16px; border-radius: 3px; }
.row-place { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; color: var(--label); opacity: 0.78; }
.chat-head-name .flags, .card-text .flags { margin-left: 6px; vertical-align: 1px; }
.row-person .row-matches { margin-top: 5px; }

/* Rolling numbers: only the digits that change slide. */
.roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.roll-d { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll-d.is-rolling .roll-old { position: absolute; left: 0; top: 0; }
.roll-d.up .roll-old { animation: roll-out-up .26s var(--ease-expo) forwards; }
.roll-d.up .roll-new { display: inline-block; animation: roll-in-up .26s var(--ease-expo) both; }
.roll-d.down .roll-old { animation: roll-out-down .26s var(--ease-expo) forwards; }
.roll-d.down .roll-new { display: inline-block; animation: roll-in-down .26s var(--ease-expo) both; }
@keyframes roll-out-up { to { transform: translateY(-100%); opacity: 0; } }
@keyframes roll-in-up { from { transform: translateY(100%); opacity: 0; } }
@keyframes roll-out-down { to { transform: translateY(100%); opacity: 0; } }
@keyframes roll-in-down { from { transform: translateY(-100%); opacity: 0; } }

/* Search: your circle, live, beside the title; and what smart search tried. */
.constellation {
  position: absolute; right: 10px; top: calc(var(--safe-top) + var(--nav-h) - 14px);
  width: 112px; height: 112px; pointer-events: none;
}
.constellation ~ .large-sub { max-width: calc(100% - 150px); }
.interpreted { color: var(--tint); }
.interpreted svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.interpreted strong { font-weight: 600; }

/* Profile actions */
.action-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.action-pair.is-single { grid-template-columns: 1fr; }
.mutuals.is-open > svg { width: 22px; height: 22px; flex: none; color: var(--label-2); }
.visibility-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.visibility-note svg { width: 14px; height: 14px; flex: none; }

/* Introductions: who wrote what */
.said { display: flex; align-items: flex-start; gap: 10px; }
.said > div { flex: 1; min-width: 0; }
.said .avatar { margin-top: 18px; }
.said-who { margin: 0 0 4px 4px; font-size: 12px; font-weight: 500; color: var(--label-2); }
.bubble.is-vouch { background: var(--fof-soft); }
.bubble.in-list { margin: 12px; }
.pair.is-large { gap: 10px; }
.pair.is-large svg { width: 18px; height: 18px; }
.btn-plain.is-left { justify-content: flex-start; width: auto; height: 30px; padding: 0; font-size: 15px; font-weight: 500; }
.btn-plain.is-left svg { width: 14px; height: 14px; }
.inline-link.is-red { color: var(--red); font-weight: 500; }

/* Chats list */
.row-chat { align-items: flex-start; }
.row-chat .avatar { margin-top: 2px; }
.chat-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-chat.is-unread .chat-preview { color: var(--label); }
.chat-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; }
.chat-when { font-size: 13px; color: var(--label-2); letter-spacing: -0.08px; }
.unread {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--pop); color: var(--on-pop);
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}

/* A conversation */
.chat-head {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 4px 24px 6px; margin: 0;
  background: none; border: 0; color: inherit; text-align: center;
}
.chat-head-name { margin-top: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 27px; letter-spacing: var(--display-tracking); }
.chat-head-place { font-size: 13px; color: var(--label-2); letter-spacing: -0.08px; }
.chat-origin { display: grid; gap: 8px; margin: 10px 16px 4px; padding: 12px 14px; border-radius: 14px; background: var(--cell); }
.origin-kicker { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--tint); letter-spacing: -0.04px; }
.origin-kicker svg { width: 13px; height: 13px; flex: none; }
.origin-note { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 19px; color: var(--label-2); letter-spacing: -0.15px; }
.origin-note strong { color: var(--label); font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px 12px; }
.day-sep { margin: 14px 0 6px; text-align: center; font-size: 12px; font-weight: 500; color: var(--label-2); }
.bubble-row { display: flex; }
.bubble-row.is-me { justify-content: flex-end; }
.is-me + .is-them, .is-them + .is-me { margin-top: 8px; }
.msg {
  max-width: 76%; padding: 8px 13px; border-radius: 18px;
  font-size: 16px; line-height: 21px; letter-spacing: -0.3px;
  white-space: pre-wrap; overflow-wrap: anywhere;
  -webkit-user-select: text; user-select: text;
}
.is-me .msg { background: var(--tint); color: var(--on-tint); }
.is-them .msg { background: var(--cell); color: var(--label); box-shadow: 0 0 0 0.5px var(--sep); }
.is-me .msg.has-tail { border-bottom-right-radius: 6px; }
.is-them .msg.has-tail { border-bottom-left-radius: 6px; }

/* The composer sits where the tab bar was: the bar steps aside in a chat. */
.screen-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; }
.screen.has-footer .scroll { padding-bottom: calc(var(--safe-bottom) + 72px); }
.composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: var(--material-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 -0.5px 0 var(--sep);
}
.composer textarea {
  flex: 1; min-height: 38px; max-height: 120px; padding: 8px 14px;
  border: 0; border-radius: 19px; background: var(--cell); color: var(--label);
  box-shadow: inset 0 0 0 0.5px var(--sep);
  font-family: var(--font-ui); font-size: 16px; line-height: 22px; letter-spacing: -0.3px;
  resize: none; outline: none;
}
.composer textarea:focus { box-shadow: inset 0 0 0 1.5px var(--tint); }
.composer textarea::placeholder { color: var(--label-2); }
.send {
  flex: none; width: 36px; height: 36px; margin-bottom: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--tint); color: var(--on-tint);
  transition: transform .12s var(--ease-out);
}
.send svg { width: 20px; height: 20px; }
.send:active { transform: scale(.88); }
.tabbar { transition: transform .32s var(--ease-expo); }
.app.in-chat .tabbar { transform: translateY(105%); }

/* The one big moment: a new connection. */
.celebrate {
  position: absolute; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--celebrate-bg); transition: background-color .3s var(--ease-out);
}
.celebrate.is-in { background: var(--is-in-bg); }
.celebrate.is-out { background: var(--is-out-bg); }
.celebrate-burst { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.celebrate-card {
  position: relative; z-index: 1; display: grid; gap: 10px;
  width: 100%; max-width: 330px; padding: 26px 22px 14px;
  border-radius: 26px; background: var(--app-bg); text-align: center;
  box-shadow: 0 30px 80px var(--celebrate-card-shadow);
  transition: transform .5s var(--ease-spring), opacity .22s var(--ease-out);
}
.js .celebrate-card { opacity: 0; transform: scale(.92) translateY(14px); }
.celebrate.is-in .celebrate-card { opacity: 1; transform: none; }
.celebrate.is-out .celebrate-card { opacity: 0; transform: scale(.97); }
.celebrate-pair { display: flex; justify-content: center; margin: 2px 0 8px; }
.cp { transition: transform .7s var(--ease-spring) .06s; }
.cp-a { transform: translateX(-46px); }
.cp-b { transform: translateX(46px); margin-left: -12px; }
.celebrate.is-in .cp { transform: none; }
.cp .avatar { box-shadow: 0 0 0 3px var(--app-bg); }
.celebrate h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; line-height: 29px; letter-spacing: var(--display-tracking); }
.celebrate p { margin-bottom: 6px; color: var(--label-2); font-size: 15px; line-height: 20px; letter-spacing: -0.24px; }

/* Launch screen: the mark on the app's own ground. */
.launch {
  position: absolute; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: var(--app-bg); transition: opacity .35s var(--ease-out);
}
.launch.is-gone { opacity: 0; pointer-events: none; }
.launch-mark { width: 64px; height: 64px; }
.lm-dot { fill: var(--label); }
.lm-ring { fill: none; stroke: var(--pop); stroke-width: 3; }
.lm-outer { fill: none; stroke: var(--label-3); stroke-width: 2.4; stroke-dasharray: 4 5; }

/* Photo picker */
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 2px; }
.photo-actions { display: flex; gap: 8px; }
.photo-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; line-height: 30px; cursor: pointer; }
.photo-pick svg { width: 16px; height: 16px; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick:focus-within { outline: 2px solid var(--tint); outline-offset: 2px; }
.btn-small[hidden] { display: none; }

/* ======================================================= v4: motion pass */

/* The living stage: the circle of whoever you're viewing as, drawn around
   the phone (app.js). Faded on the panel's side so it never sits under text. */
.stage-canvas { display: none; }
html[data-mode="frame"] .stage-canvas {
  --faint: color-mix(in srgb, var(--ink) 16%, transparent);
  display: block; position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, var(--faint) var(--fade-from, 40%), var(--ink) var(--fade-to, 52%));
          mask-image: linear-gradient(90deg, var(--faint) var(--fade-from, 40%), var(--ink) var(--fade-to, 52%));
}
@media (max-width: 979px) {
  html[data-mode="frame"] .stage-canvas {
    -webkit-mask-image: linear-gradient(180deg, var(--ink) var(--fade-from, 55%), var(--faint) var(--fade-to, 90%));
            mask-image: linear-gradient(180deg, var(--ink) var(--fade-from, 55%), var(--faint) var(--fade-to, 90%));
  }
}
.stage { position: relative; z-index: 1; }

/* Page intro (desktop): the panel's parts rise in one after another, then
   the phone glides up. The safety net shows everything at 2.4s whatever
   happens to the script. */
html.pre-intro .panel > *,
html.pre-intro .device-wrap { opacity: 0; animation: intro-show 0s linear 2.4s forwards; }
html.intro-play .panel > * {
  animation: panel-in .8s var(--ease-out) both;
  animation-delay: calc(var(--pi, 0) * 70ms + 80ms);
}
html.intro-play .device-wrap { animation: device-in 1.1s var(--ease-out) .18s both; }
@keyframes intro-show { to { opacity: 1; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes device-in { from { opacity: 0; transform: translateY(36px) scale(.985); } }

/* Switching person: the headline settles in. */
.panel-title.is-new { animation: title-new .7s var(--ease-out); }
@keyframes title-new { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* Inside the phone: a screen's rows arrive in a quick cascade on tab
   switches, pushes and fresh results (app.js `cascade`). */
.is-entering > .enter {
  animation: app-enter .52s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 32ms);
}
@keyframes app-enter { from { opacity: 0; transform: translateY(12px); } }
.is-entering .profile-hero .avatar-xl { animation: avatar-pop .7s var(--ease-spring) .05s both; }
@keyframes avatar-pop { from { transform: scale(.82); opacity: 0; } }

/* The tab you pick gives a small spring. */
.tab-btn.is-popping svg { animation: tab-pop .42s var(--ease-spring); }
@keyframes tab-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }

/* Pulling down on a screen stretches the large title a touch (app.js). */
.large-title { transform-origin: 0 100%; }

@media (prefers-reduced-motion: reduce) {
  html.pre-intro .panel > *, html.pre-intro .device-wrap { opacity: 1; animation: none; }
  html.intro-play .panel > *, html.intro-play .device-wrap,
  .panel-title.is-new, .is-entering > .enter, .is-entering .profile-hero .avatar-xl,
  .tab-btn.is-popping svg { animation: none; }
}

/* ===================================================== interview features */
/* Nov 2026: asks, saved searches, three-way introductions, privacy per field,
   block and report, thanks and vouches, identity checks, explainers, tour. */

/* Who you are right now, top left of every first screen. */
.nav-me { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; margin: 0 4px; max-width: 150px; }
.nav-me .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.nav-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-me svg { width: 13px; height: 13px; flex: none; color: var(--label-2); }
.nav-me.is-new { animation: me-pop .6s var(--ease-spring); }
@keyframes me-pop { 0% { transform: scale(.86); box-shadow: 0 0 0 0 var(--pop); } 60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--pop) 0%, transparent); } 100% { transform: none; } }
.nav-icon { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--tint); display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 24px; height: 24px; }
.nav-icon:active { opacity: .45; }

/* Identity seal after a name. */
.verified { display: inline-flex; flex: none; color: var(--tint); }
.verified svg { width: 15px; height: 15px; }
.profile-name .verified svg { width: 22px; height: 22px; }
.profile-name .verified { margin-left: 6px; vertical-align: -1px; }
.id-ok, .id-no { font-size: 13px; color: var(--label-2); }
.id-no { color: var(--label-3); }
.profile-place.is-hidden { color: var(--label-2); }
.profile-place.is-hidden svg { color: var(--label-3); }

/* Vouches on a skill, thanks, details kept back. */
.tag.is-vouched { gap: 6px; }
.vouch-n { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--tint); }
.vouch-n svg { width: 12px; height: 12px; }
.inline-icon { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; color: var(--tint); }
.row-thanks { align-items: flex-start; }
.row-thanks .avatar { margin-top: 1px; }
.row-thanks p { font-size: 15px; line-height: 20px; letter-spacing: -0.24px; color: var(--label-2); }
.row-thanks strong { color: var(--label); font-weight: 600; margin-right: 4px; }
.row-add svg { flex: none; }
.kept-back { margin-top: 22px; }
.kept-back .inline-icon { color: var(--label-3); }

/* Option rows in a sheet or on You. */
.row-option > svg:first-child { width: 22px; height: 22px; flex: none; color: var(--tint); }
.row-option.is-red, .row-option.is-red > svg:first-child { color: var(--red); }
.row-count { color: var(--label-2); font-size: 15px; }
.btn-fill.is-destructive { background: var(--red); color: var(--on-red, var(--is-destructive-ink)); }

/* Intro sheet: a friend who is busy or taking a break can't be picked. */
.choice.is-disabled { cursor: default; }
.choice.is-disabled .avatar, .choice.is-disabled .row-title { opacity: .45; }
.check.is-off { opacity: 1 !important; color: var(--label-3); }

/* Asks. */
.card.ask { margin-top: 0; }
.card.ask + .card.ask, .card + .card.ask { margin-top: 12px; }
.card-head > .btn-round { margin-left: auto; }
.card-head > div { flex: 1; min-width: 0; }
.avatar-link { padding: 0; border: 0; background: none; border-radius: 50%; flex: none; }
.ask-count { align-self: center; font-size: 15px; color: var(--label-2); letter-spacing: -0.24px; }
.btn-tinted:disabled { background: var(--fill); color: var(--label-3); cursor: not-allowed; }
.quote { padding: 8px 10px; border-radius: 8px; background: var(--fill); font-size: 14px; line-height: 19px; color: var(--label-2); }
.row-ask > svg:first-child { color: var(--tint); }
.card-icon { width: 24px; height: 24px; flex: none; color: var(--tint); margin-top: 1px; }
.tour-card .card-text, .verify-card .card-text { font-size: 16px; line-height: 21px; }

/* Search: related words, saving a search, asking from the empty state. */
.related { padding: 4px 32px 0; font-size: 13px; line-height: 18px; color: var(--label-3); letter-spacing: -0.08px; }
.saved-note { display: flex; align-items: center; gap: 6px; margin: 18px 32px 0; font-size: 13px; line-height: 18px; color: var(--label-2); }
.saved-note svg { width: 15px; height: 15px; color: var(--tint); flex: none; }
.saved-note span { flex: 1; }
.empty-actions { margin: 20px auto 0; max-width: 260px; }
.field-hint .inline-link { font-size: 13px; }

/* Explainer sheets. */
.sheet-icon { display: inline-flex; color: var(--tint); }   /* a plain line icon, no badge behind it */
.sheet-icon svg { width: 34px; height: 34px; stroke-width: 1.6; }
.tips { margin: 20px 16px 0; padding: 4px 16px 4px 36px; background: var(--cell); border-radius: 12px; list-style: decimal; }
.tips li { padding: 10px 0; font-size: 15px; line-height: 21px; letter-spacing: -0.24px; color: var(--label-2); }
.tips li + li { border-top: 0.5px solid var(--sep); }
.tips strong { color: var(--label); font-weight: 600; }
.tips::marker, .tips li::marker { color: var(--tint); font-weight: 600; }
.fine { margin: 14px 32px 0; font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.08px; }
.tip { display: flex; gap: 8px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--tint-soft); font-size: 13px; line-height: 18px; color: var(--label); }
.tip > svg { width: 16px; height: 16px; flex: none; color: var(--tint); margin-top: 1px; }
.circles-figure svg { width: 190px; height: 190px; }
.circles-figure circle { fill: none; }
.circles-figure .c-open { stroke: var(--label-3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.circles-figure .c-fof { stroke: var(--fof, var(--tint)); stroke-width: 2; fill: color-mix(in srgb, var(--fof, var(--tint)) 7%, transparent); }
.circles-figure .c-circle { stroke: var(--tint); stroke-width: 2.5; fill: var(--tint-soft); }
.circles-figure .c-you { fill: var(--pop); }
.circles-figure .c-label { fill: var(--label-2); font-size: 11px; font-family: var(--font-ui); text-anchor: middle; letter-spacing: .02em; }
.circles-figure .c-label.is-you { fill: var(--label); font-weight: 600; }

/* The tour. */
.tour { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 24px 4px; }
.tour-n { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--tint); }
.tour h3 { margin-top: 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 27px; letter-spacing: var(--display-tracking); }
.tour > p:not(.tour-n) { margin-top: 8px; color: var(--label-2); font-size: 16px; line-height: 22px; letter-spacing: -0.3px; min-height: 88px; }
.tour-dots { display: flex; gap: 6px; margin: 16px 0 18px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--fill-2); transition: background-color .3s; }
.tour-dots span.on { width: 18px; background: var(--pop); }
.tour .card-actions { width: 100%; }

/* Demo sheet: who you are now. */
.viewing-now { display: flex; align-items: center; gap: 14px; margin: 6px 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--cell); }
.viewing-now p { display: flex; flex-direction: column; font-size: 13px; color: var(--label-2); }
.viewing-now strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 27px; color: var(--label); letter-spacing: var(--display-tracking); }

/* Chat: say thanks once someone helped. */
.thanks-nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 16px 6px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--cell); font-size: 15px; color: var(--label-2); }
.thanks-nudge .btn-small { display: inline-flex; align-items: center; gap: 5px; }
.thanks-nudge .btn-small svg { width: 15px; height: 15px; }

/* Editor: suggestions, several jobs and programmes. */
.chips.is-left { justify-content: flex-start; margin: 10px 16px 0; gap: 6px; }
.chips.is-left .chip { height: 30px; padding: 0 12px; font-size: 14px; }
.row-job, .row-study { grid-template-columns: auto 1fr 1fr; }
.row-study select { min-width: 0; height: 44px; border: 0; background: none; outline: none; color: var(--label-2); font-family: var(--font-ui); font-size: 15px; }
.row-indent { padding-left: 48px; }
.study-block { position: relative; }
.study-block + .study-block::before, .row-job + .row-job::before, .study-block + .row::before, .row-job + .row::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; height: 0.5px; background: var(--sep);
}
.row-job { position: relative; }
.study-block .row-toggle { position: relative; }
.study-block .row-toggle::before { content: ""; position: absolute; top: 0; right: 0; left: 48px; height: 0.5px; background: var(--sep); }

@media (prefers-reduced-motion: reduce) {
  .nav-me.is-new { animation: none; }
  .tour-dots span { transition: none; }
}

/* ======================================================= the Asks tab (24 Nov) */

/* The post box at the top of the feed: looks like a field, opens the ask sheet. */
.ask-compose {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 18px 16px 4px; padding: 10px 10px 10px 12px;
  border: 0; border-radius: 14px; background: var(--cell); color: var(--label-3);
  box-shadow: 0 0 0 0.5px var(--sep), 0 8px 24px -14px var(--ask-compose-shadow);
  font: inherit; text-align: left; cursor: pointer;
}
.ask-compose-text { flex: 1; font-size: 17px; letter-spacing: -0.41px; }
.ask-compose .btn-small { display: inline-flex; align-items: center; pointer-events: none; }
.ask-compose:active { transform: scale(.985); }
.ask-filter { margin-top: 16px; margin-bottom: 14px; }
.ask-filter label { font-size: 13px; letter-spacing: -0.08px; white-space: nowrap; }

/* Pass it on: pick which friends get an ask (24 Nov, Donald). */
.pass-quote { margin: 16px 16px 4px; }
.row-toggle.row-person { gap: 12px; }
.row-toggle.row-person .row-main small { display: block; color: var(--label-2); font-size: 13px; line-height: 18px; letter-spacing: -0.08px; }
.row-toggle.row-person .toggle:disabled { background: var(--tint-soft); cursor: not-allowed; }
