/* SeeKyaa — social-app look: photo-led hero, story bubbles, card feed, pill controls. */

:root {
  color-scheme: light;
  /* SeeKyaa's colours: a soft purple (chosen 19 Nov 2026), with neutrals tinted to match. */
  --ink: #1d1a26;
  --muted: #66617a;
  --soft: #948fa6;
  /* Softened 20 Nov 2026: a deeper page and off-white cards, so light mode doesn't glare. */
  --bg: #e9e7f0;
  --card: #f9f8fc;
  --line: #dedbe8;
  --line-strong: #cfcadd;
  --brand: #7357d9;
  --brand-dark: #5a3fc0;
  --brand-soft: #eee9fd;
  --brand-rgb: 115, 87, 217;  /* --brand as numbers, for see-through glows: rgba(var(--brand-rgb), .2) */
  --brand-ink: #5a3fc0;       /* deep brand text on white, in both themes */
  --brand-line: #d3c8f8;      /* soft brand borders */
  --brand-on-dark: #cbbdfb;   /* brand links on dark panels */
  --g1: #5a3fc0; --g2: #7d5ce6; --g3: #a98bf5;  /* the gradient's three stops */
  --shade-rgb: 24, 18, 42;    /* shadows and backdrops */
  --night-rgb: 15, 11, 28;    /* photo overlays */
  --night: #221c33;           /* behind photos while they load */
  --plum-a: #1f1a33; --plum-b: #3a2d6b;  /* dark brand panels (cookie bar) */
  --grad-hero: linear-gradient(100deg, #d9ceff 0%, #f1ecff 100%);  /* headline words over the photo: always light */
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --grad-light: linear-gradient(100deg, #d6cafc 0%, #e6dcfd 100%);
  --success: #1f8f5f;
  --radius-card: 20px;
  --shadow-card: 0 1px 2px rgba(29, 26, 38, .04), 0 8px 24px rgba(29, 26, 38, .06);
  /* The device's own font, as Facebook and Instagram use: San Francisco on Apple, Roboto on Android, Segoe UI on Windows. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--font);
  /* Theme-aware surfaces (light values; dark values below) */
  --tint: #f1eff7;            /* soft panel inside a card */
  --tint-strong: #e6e3ef;     /* hover / pill backgrounds */
  --track: #dad6e5;           /* slider and switch tracks */
  --brand-tint: #f1edfc;      /* pale purple highlight */
  --chat-bg: #ebe9f2;         /* chat wallpaper */
  --bar: #f9f8fc;             /* solid header / bottom bar (nothing shows through, as on Instagram) */
  --solid: #1d1a26;           /* dark chip/toast in light mode */
  --on-solid: #ffffff;
  --bubble-mine: #e8e1ff;
  --warn-bg: #fff7e6;
  --warn-ink: #6b4e00;
  --good-bg: #e9f8f0;
  --good-ink: #155c3d;
  --bad-bg: #fdecef;
  --bad-ink: #8e1f35;
}

/* ---- Dark theme (the default). Applied by <html data-theme="dark"> before the page draws.
   Facebook-style: soft charcoal page, the feed's cards a step lighter than the side panels,
   off-white text and a calmer, lighter purple. ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6e4ec;
  --muted: #b3afc0;
  --soft: #8c889b;
  --bg: #17161c;
  --card: #232229;
  --side-card: #1d1c22;        /* side panels sit quieter than the feed in the middle */
  --line: #38363f;
  --line-strong: #4a4752;
  --brand: #9d87f0;
  --brand-dark: #c4b5fa;
  --brand-soft: #2d2944;
  --brand-rgb: 157, 135, 240;
  --brand-on-dark: #c4b5fa;
  --g1: #5b46b0; --g2: #7660cf; --g3: #9a83e6;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --grad-light: linear-gradient(100deg, #3d3466 0%, #463c6e 100%);
  --tint: #2c2b33;
  --tint-strong: #393741;
  --track: #4c4a55;
  --brand-tint: #25222f;
  --chat-bg: #17161c;
  --bar: #232229;
  --solid: #e6e4ec;
  --on-solid: #17161c;
  --bubble-mine: #3a3357;
  --warn-bg: #2e2610;
  --warn-ink: #f2d38a;
  --good-bg: #12291e;
  --good-ink: #8fe0b5;
  --bad-bg: #331520;
  --bad-ink: #ffb3c2;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .2);
}

/* Facebook-like: the feed in the middle stands out; the side panels blend into the page. */
:root[data-theme="dark"] .side-card, :root[data-theme="dark"] .side .profile-card { background: var(--side-card); border-color: transparent; box-shadow: none; }
:root[data-theme="dark"] .post-card, :root[data-theme="dark"] .feed-card, :root[data-theme="dark"] .composer-card { border-color: transparent; }

* { box-sizing: border-box; }

body {
  margin: 0;
  /* No minimum width: with Safari's Page Zoom at 150%, an iPhone screen behaves like a ~290px one. */
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, select, textarea, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
h1 { font-weight: 700; }
h3, h4, th, strong, b { font-weight: 600; } /* browsers default these to full bold */
a { color: var(--brand); }

/* ---- Loading: a thin bar along the top, and placeholder cards ---- */
.top-progress { position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; z-index: 100; height: 3px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.top-progress.on { opacity: 1; }
.top-progress span { display: block; width: 0; height: 100%; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 10px rgba(var(--brand-rgb), .7); }
.skeleton-card { padding: 18px 20px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.sk-row { margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--tint-strong) 0%, var(--tint) 50%, var(--tint-strong) 100%); background-size: 200% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; }
.sk-line { height: 12px; }
.sk-line.w30 { width: 30%; } .sk-line.w35 { width: 35%; } .sk-line.w50 { width: 50%; } .sk-line.w55 { width: 55%; }
.sk-line.w60 { width: 60%; } .sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---- Header ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  /* On iPhone, the home-screen app draws under the clock / Dynamic Island: the header starts below them
     (env(safe-area-inset-top) is 0 in a normal browser tab, so nothing changes there). */
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  /* Same width as the page body below, so the logo lines up with the content (see main / main.layout). */
  padding-left: max(20px, calc((100% - 760px) / 2));
  padding-right: max(20px, calc((100% - 760px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .25); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3);
}

.account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account-email { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

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

.button {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.button:active { transform: scale(.97); }
a.button { text-decoration: none; }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .3); }
.button-primary:hover { box-shadow: 0 8px 24px rgba(var(--brand-rgb), .4); }
.button-secondary { border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
.button-secondary:hover { background: var(--tint); }
.button-glass { border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.button-glass:hover { background: rgba(255, 255, 255, .26); }
.button-large { min-height: 54px; padding: 0 28px; font-size: 15px; }
.button-small { min-height: 36px; padding: 0 15px; gap: 8px; font-size: 13px; }
.button-full { width: 100%; }

.link-button { padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.link-button:hover { color: var(--brand); }

.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
}
.icon-button:hover { background: #f5eff4; color: var(--ink); }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: clamp(440px, 64vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: inset(0); /* Safari: the slowly zooming photo must never reach past the screen edge */
  background: var(--plum-a);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 58%;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift { to { transform: scale(1.08) translateY(-1%); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--night-rgb), .2) 0%, rgba(var(--night-rgb), .1) 35%, rgba(var(--night-rgb), .78) 100%),
    linear-gradient(90deg, rgba(var(--night-rgb), .62) 0%, rgba(var(--night-rgb), .15) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 48px 0;
}

.hero-badge {
  margin-bottom: 20px;
  padding: 7px 14px 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
}

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4be08f; }
.live-dot::after { position: absolute; inset: -4px; border-radius: 50%; background: rgba(75, 224, 143, .45); animation: live-pulse 1.8s ease-out infinite; content: ""; }
@keyframes live-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}

.grad-text { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-copy { max-width: 470px; margin: 0 0 30px; color: rgba(255, 255, 255, .86); font-size: 17px; line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points { margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 400; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .2); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Layout ---- */

main { width: min(100% - 40px, 760px); margin: 0 auto; }

.notice {
  margin: 22px 0 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #f6d9a8;
  border-radius: 14px;
  background: #fff8ea;
  color: #74572a;
  font-size: 12px;
  line-height: 1.5;
}
.notice p { margin: 0; }
.notice code { padding: 1px 5px; border-radius: 5px; background: #fbe9c6; font-size: 11px; }
.notice-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: #f3c56d; color: #fff; font-size: 12px; font-weight: 400; }

.tabs {
  margin: 26px 0 0;
  padding: 5px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.tab {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--solid); color: var(--on-solid); }

.view { padding: 26px 0 0; }
.hidden { display: none !important; }

.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.section-gap { margin-top: 40px; margin-bottom: 14px; }
.section-note { margin: 10px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* ---- Stories (popular places) ---- */

.stories {
  margin: 0 -20px 22px;
  padding: 4px 20px 6px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }

.story {
  width: 74px;
  flex: 0 0 74px;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.story-ring {
  width: 70px;
  height: 70px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--g3), var(--g2) 50%, var(--g1));
  transition: transform .2s;
}
.story:hover .story-ring { transform: scale(1.05); }
.story:active .story-ring { transform: scale(.94); }
.story-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--a, #ff7a59), var(--b, #d6246e));
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.story-near { background: var(--card); color: var(--brand); }
.story-near svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.story.loading .story-ring { animation: gps-spin 1s linear infinite; }
.story-label { max-width: 74px; overflow: hidden; font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.story.active .story-ring { background: var(--solid); }
.story.active .story-label { color: var(--brand); font-weight: 400; }

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

.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } /* never wider than its column (the people row scrolls inside) */
.feed > * { min-width: 0; }

.post-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { box-shadow: 0 1px 2px rgba(30, 23, 32, .04), 0 14px 32px rgba(30, 23, 32, .09); }

/* Example posts: clearly labelled, slightly quieter than real ones */
.example-tag { margin-left: 6px; padding: 3px 9px; display: inline-flex; align-items: center; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.post-card.is-example { border-style: dashed; }
.example-note { min-width: 0; color: var(--soft); font-size: 12.5px; }
.post-head { position: relative; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
/* The ··· menu on a post: follow it, or report it */
.post-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 6; min-width: 250px; padding: 6px; display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 14px 36px rgba(var(--shade-rgb), .28); animation: notif-drop .14s ease-out; }
.post-menu button { min-height: 52px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.post-menu button:hover, .post-menu button:focus-visible { background: var(--tint-strong); }
.post-menu button > span:first-child { font-size: 20px; }
.post-menu strong { display: block; font-size: 14.5px; font-weight: 600; }
.post-menu small { display: block; color: var(--muted); font-size: 12.5px; }
.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--a, #ff7a59), var(--b, #d6246e));
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand-soft);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.post-who { min-width: 0; flex: 1; display: grid; gap: 2px; }
.post-who strong { overflow: hidden; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.post-who span { color: var(--soft); font-size: 12px; font-weight: 400; }

.post-copy { margin: 0 0 14px; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.post-question {
  margin: 0 0 16px;
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.45;
}
.post-question svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.post-actions { padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.reply-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.reply-count svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.reply-count .link-button { margin-left: 8px; }

.action-primary {
  min-height: 40px;
  padding: 0 18px 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 5px 14px rgba(var(--brand-rgb), .28);
  transition: transform .15s, box-shadow .2s;
}
.action-primary:hover { box-shadow: 0 8px 20px rgba(var(--brand-rgb), .38); }
.action-primary:active { transform: scale(.95); }
.action-primary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }

.post-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 13px; font-weight: 500; }
.post-flag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Owner / sent cards (My posts) */
.post-meta, .post-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-meta { margin-bottom: 12px; flex-wrap: wrap; }
.post-bottom { padding-top: 12px; border-top: 1px solid var(--line); }
.post-bottom-plain { border-top: 0; padding-top: 10px; justify-content: flex-start; }
.area-tag { padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 400; }
.post-time { color: var(--soft); font-size: 12px; font-weight: 400; }
.post-snippet { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.55; overflow-wrap: anywhere; }
.reply-button { padding: 7px 0 7px 10px; border: 0; background: transparent; color: var(--brand); font-size: 13px; font-weight: 500; }

.status-badge { margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: #f1edf1; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.status-badge.live { background: #e3f6ec; color: var(--success); }
.status-badge.removed { background: #fde4e4; color: #a12d2d; }

.owner-question { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.owner-question strong { color: var(--ink); }
.owner-question span { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 400; }
.filtered-note { margin: 10px 0 0; color: var(--soft); font-size: 12px; line-height: 1.55; }

.reply-list { margin-top: 12px; display: grid; gap: 8px; }
.reply-entry { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.reply-entry strong { color: var(--brand); font-size: 11px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.reply-entry p { margin: 4px 0 0; }
.reply-entry.locked { filter: blur(5px); user-select: none; }
.reply-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.locked-inbox { position: relative; min-height: 150px; }
.unlock-panel {
  position: absolute;
  inset: 12px 0 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 14px;
}
.unlock-panel p { margin: 0 0 6px; }

.empty-state {
  padding: 38px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }

/* ---- Place search + GPS ---- */

.board-filter { margin: 16px 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.place-picker { position: relative; }
.place-field {
  min-height: 50px;
  padding: 5px 5px 5px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.place-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.place-pin { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linejoin: round; transition: stroke .2s; }
.has-place .place-pin { fill: rgba(var(--brand-rgb), .14); stroke: var(--brand); }
.form-card .place-field input, .place-field input {
  min-width: 0;
  min-height: 38px;
  flex: 1;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
}
.form-card .place-field input:focus, .place-field input:focus { border: 0; box-shadow: none; }
.has-place .place-field input { font-weight: 400; }
.place-clear { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 18px; line-height: 1; }
.gps-button {
  min-height: 40px;
  padding: 0 15px 0 12px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), .25);
  transition: transform .15s, opacity .2s;
}
.gps-button:active { transform: scale(.95); }
.gps-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gps-button.loading { opacity: .8; }
.gps-button.loading svg { animation: gps-spin 1s linear infinite; }
@keyframes gps-spin { to { transform: rotate(360deg); } }

.place-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 8;
  max-height: 360px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(30, 23, 32, .16);
}
.place-list li { min-height: 46px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 400; -webkit-tap-highlight-color: transparent; }
.place-list li > svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place-list li.active, .place-list li[data-index]:hover { background: var(--tint); }
.place-list li.active > svg { stroke: var(--brand); }
.place-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-list .place-gps { color: var(--brand); }
.place-list .place-gps svg { stroke: var(--brand); }
.place-list .place-heading { min-height: 0; padding: 12px 12px 4px; color: var(--soft); cursor: default; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.place-list .place-empty, .place-list .place-loading { color: var(--muted); cursor: default; font-weight: 400; }
.spinner { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: gps-spin .8s linear infinite; }
.place-kind { color: var(--soft); font-size: 11px; font-weight: 400; white-space: nowrap; }

.radius-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.chip:active { transform: scale(.95); }
.chip.active { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.distance { color: var(--brand); font-size: 12px; font-weight: 500; }

/* ---- Consent, data rights, cookie notice ---- */

.consent-group { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.consent-group .check-row, .consent-row { font-size: 13px !important; color: var(--ink); }
.check-row a { color: var(--brand); font-weight: 400; }
.button-danger { background: #c62a47; color: #fff; box-shadow: 0 6px 16px rgba(198, 42, 71, .25); }
.button-danger:hover { background: #a91f3a; }

.privacy-card {
  margin-top: 40px;
  padding: 20px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.privacy-card h2 { margin: 0; font-size: 20px; }
.privacy-card .section-note { margin-bottom: 0; }
.privacy-card a:not(.button) { color: var(--brand); font-weight: 400; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-actions a.button { text-decoration: none; }

.tag-remove { width: 18px; height: 18px; margin: 0 -4px 0 2px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #efe6ee; color: var(--muted); font-size: 13px; line-height: 1; }
.tag-remove:hover { background: #fde4e4; color: #a12d2d; }

/* Full-width bar along the bottom of the screen. */
.cookie-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  padding: 14px max(20px, calc((100% - 1040px) / 2)) calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  /* Dark brand panel. */
  background: linear-gradient(135deg, var(--plum-a), var(--plum-b)); opacity: .99;
  box-shadow: 0 -10px 30px rgba(var(--shade-rgb), .25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.cookie-notice p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.5; }
.cookie-notice .button { flex: 0 0 auto; min-width: 88px; border-color: transparent; background: var(--card); color: var(--ink); }
.cookie-notice .button:hover { background: var(--tint-strong); }
.cookie-notice a { color: var(--brand-on-dark); font-weight: 400; }

body > footer a { color: var(--muted); }
.side-footer a { color: var(--soft); }

/* ---- Legal pages (terms.php, privacy.php) ---- */

.legal-body { background: var(--bg); }
.legal-page { width: min(100% - 40px, 760px); margin: 0 auto; padding: 40px 0 60px; }
.legal-page h1 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.legal-page h2 { margin: 32px 0 10px; font-size: 21px; }
.legal-page h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 600; }
.legal-page p, .legal-page li { color: #3d3540; font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--brand); font-weight: 400; }
.legal-page section { padding: 4px 0; border-top: 1px solid var(--line); }
.legal-lead { font-size: 17px !important; }
.legal-table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 13px; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line); background: var(--card); text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { background: var(--tint); font-weight: 600; }
.legal-table code { font-size: 12px; }
.legal-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px; }
.legal-page ol { padding-left: 22px; }
.legal-meta { color: var(--soft) !important; font-size: 13px !important; }
.deletion-status { margin: 8px 0 24px; padding: 18px 20px !important; border: 1px solid #bfe6cf !important; border-radius: var(--radius-card); background: #effaf3; }
.deletion-status h2 { margin-top: 4px; }
.deletion-lookup { display: grid; gap: 8px; }
.deletion-lookup label { font-size: 13px; font-weight: 400; }
.deletion-lookup-row { display: flex; gap: 10px; }
.deletion-lookup input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
mark.todo { padding: 1px 5px; border-radius: 5px; background: #fff1b8; color: #6b4e00; font-weight: 400; }
@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 10px; }
  .legal-table td { border-bottom: 0; }
  .legal-table td:last-child { border-bottom: 1px solid var(--line); }
}

/* ---- "Desperately seeking…" post types ---- */

.kind-picker { margin-bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kind-tile {
  padding: 14px 12px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .12s;
}
.kind-tile:hover { border-color: var(--brand-line); }
.kind-tile:active { transform: scale(.98); }
.kind-tile strong { font-size: 14px; font-weight: 400; line-height: 1.25; }
.kind-tile span:last-child { color: var(--muted); font-size: 12px; line-height: 1.4; }
.kind-emoji { font-size: 24px; line-height: 1; }
.kind-tile.active { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-tint), var(--brand-soft)); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }

.kind-bar { margin: -8px -20px 12px; padding: 2px 20px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.kind-bar::-webkit-scrollbar { display: none; }
.kind-chip {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.kind-chip:active { transform: scale(.95); }
.kind-chip.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .25); }

.ds-kicker { margin: -2px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ds-words { color: var(--brand); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.kind-label {
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--tint-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}
button.kind-label:hover { background: var(--track); }
.kind-buddy .ds-words { color: #1f8f7a; }
.kind-lost_touch .ds-words { color: #6c4fd6; }

@media (max-width: 600px) {
  .kind-picker { grid-template-columns: 1fr; }
  .kind-tile { grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; }
  .kind-tile .kind-emoji { grid-row: span 2; }
}
@media (min-width: 1100px) {
  .kind-bar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  .kind-bar { margin: -8px -16px 12px; padding: 2px 16px 4px; }
}

/* ---- Travel moments ---- */

.travel-toggle {
  min-height: 52px;
  margin-top: 4px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: border-color .2s, background .2s;
}
.travel-toggle > svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; }
.travel-toggle > span:first-of-type { flex: 1; }
.toggle-switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; border-radius: 999px; background: var(--track); transition: background .2s; }
.toggle-switch::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; content: ""; }
.travel-toggle.on { border-color: var(--brand-line); background: var(--brand-tint); }
.travel-toggle.on .toggle-switch { background: var(--grad); }
.travel-toggle.on .toggle-switch::after { transform: translateX(18px); }
.travel-box { padding: 14px 16px 16px; display: grid; gap: 9px; border: 1px solid rgba(var(--brand-rgb), .28); border-radius: 18px; background: linear-gradient(160deg, var(--brand-tint), var(--brand-soft)); }
.travel-box label { margin-top: 2px; }
.travel-box .privacy-hint { margin: 0; }

.journey {
  margin: -4px 0 12px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  border-radius: 12px;
  background: linear-gradient(100deg, #eef3ff, #f6efff);
  color: #2f3a78;
  font-size: 13px;
  font-weight: 500;
}
.journey svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.journey-arrow { color: #7682c9; }
.journey-note { color: #6b74a8; font-weight: 400; }
.journey-ref { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--card); color: #2f3a78; font-size: 11px; letter-spacing: .04em; }
.story-travel { background: linear-gradient(140deg, #6a8dff, #8a4dff); }
.story-travel svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
.story.active .story-ring { background: var(--solid); }

/* ---- Desktop side panels ---- */

.side { display: none; }
.center { min-width: 0; }

.side-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.side-title { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.side-text { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.side-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.side-me { display: flex; align-items: center; gap: 12px; }
.side-me div { min-width: 0; display: grid; }
.side-me strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.side-me span { color: var(--soft); font-size: 11px; }
/* "View profile" and "Edit" as small badge buttons under your name */
.side-me div > span { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.me-badge { min-height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--tint-strong); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.me-badge:hover { border-color: var(--brand-line); background: var(--brand-tint); }
.side-me .me-badge span { color: var(--brand); font-size: 12px; }
.me-badge.strong { border-color: transparent; background: var(--grad); color: #fff; }
.side-me .me-badge.strong span { color: #fff; }
.side-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-stats button { padding: 10px 4px; display: grid; gap: 2px; border: 0; border-radius: 12px; background: var(--tint); color: var(--ink); text-align: center; }
.side-stats button:hover { background: #f3ecf2; }
.side-stats strong { font-size: 18px; font-weight: 600; }
.side-stats span { color: var(--muted); font-size: 11px; font-weight: 400; }

.side-nav { display: grid; gap: 2px; }
.side-link {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  transition: background .15s;
}
.side-link:hover { background: var(--card); }
.side-link svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-link.active { background: var(--card); color: var(--brand); box-shadow: var(--shadow-card); }
.side-badge { min-width: 22px; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; text-align: center; }

.side-list { margin: 0; padding: 0; display: grid; gap: 2px; list-style: none; }
.side-row { width: 100%; padding: 8px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; }
.side-row:hover { background: var(--tint); }
.side-row .flag { width: 28px; height: 21px; flex-basis: 28px; }
.side-row-text { min-width: 0; display: grid; }
.side-row-text strong { overflow: hidden; font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.side-row-text span { color: var(--soft); font-size: 12px; }
.avatar.small { width: 34px; height: 34px; flex: 0 0 34px; font-size: 12px; box-shadow: none; }
.side-empty { padding: 6px 8px; color: var(--soft); font-size: 13px; }
.side-more { margin-top: 8px; color: var(--brand); }
.side-travel { background: linear-gradient(150deg, #f1f4ff, #f8efff); border-color: #e3e6fb; }
.side-travel p { margin: 0 0 14px; color: #4d557f; font-size: 13px; line-height: 1.55; }
.side-travel-icon { width: 40px; height: 40px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #6a8dff, #8a4dff); }
.side-travel-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
.side-steps { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.side-steps strong { color: var(--ink); }
.side-footer { margin: 4px 0 0; color: var(--soft); font-size: 11px; text-align: center; }

@media (min-width: 1100px) {
  /* Wide screens: the header spans the three-column layout (logo above the left panel). */
  .topbar { padding: 0 max(24px, calc((100% - 1280px) / 2)); }
  main.layout {
    width: min(100% - 48px, 1280px);
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    align-items: start;
    gap: 28px;
  }
  .center { max-width: 680px; width: 100%; justify-self: center; }
  .side {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    /* 2px room for card shadows, cancelled by the negative margin so cards line up with the header edges. */
    margin: 0 -2px;
    padding: 22px 2px 24px;
    display: grid;
    align-content: start;
    gap: 14px;
    overflow-y: auto;
    /* Still scrolls, but no scrollbar strip pushing the cards inwards. */
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .tabs { display: none; }
  .view { padding-top: 22px; }
  .stories, .community-bar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---- Communities ---- */

.flag { width: 20px; height: 15px; flex: 0 0 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(30, 23, 32, .08); background-size: cover; }
.community-flag { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.community-flag svg { width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 1.8; }
.has-place .community-flag svg { stroke: var(--brand); }

.community-bar {
  margin: -6px -20px 22px;
  padding: 2px 20px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.community-bar::-webkit-scrollbar { display: none; }
.community-chip {
  min-height: 38px;
  padding: 0 14px 0 11px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.community-chip:active { transform: scale(.95); }
.community-chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.community-chip.active { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.community-chip.more { border-style: dashed; color: var(--brand); }
.chip-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; text-align: center; }
.community-chip.active .chip-count { background: rgba(255, 255, 255, .2); color: #fff; }

.community-tag {
  min-height: 30px;
  padding: 0 10px 0 7px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
button.community-tag:hover { border-color: var(--line-strong); background: var(--card); }
.community-tag .flag { width: 18px; height: 13px; flex-basis: 18px; }
.post-meta .community-tag { margin-right: auto; }
.community-tag.small { min-height: 22px; padding: 0 8px 0 5px; gap: 5px; font-size: 11px; }
.community-tag.small .flag { width: 15px; height: 11px; flex-basis: 15px; border-radius: 2px; }
.post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.post-who .post-sub > span { color: var(--soft); font-size: 12px; font-weight: 400; }

.consent-row { padding: 12px 14px; border: 1px solid rgba(var(--brand-rgb), .28); border-radius: 14px; background: var(--brand-tint); font-size: 12px !important; }

.sheet { width: min(100% - 32px, 480px); }
.community-sheet { display: grid; gap: 12px; }
.community-list { max-height: min(52vh, 460px); margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.community-row {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.community-row:hover, .community-row.active { background: var(--tint); }
.community-row .flag { width: 26px; height: 19px; flex-basis: 26px; }

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

.form-card {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.form-card label, .dialog label { margin-top: 8px; color: var(--ink); font-size: 13px; font-weight: 400; }
.form-card select, .form-card textarea, .dialog textarea, .form-card input, .dialog input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-card select, .form-card input, .dialog input { min-height: 48px; }
.form-card textarea, .dialog textarea { resize: vertical; line-height: 1.55; }
.form-card select:focus, .form-card textarea:focus, .dialog textarea:focus, .form-card input:focus, .dialog input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12);
}
/* Inputs inside the rounded search pills carry no border of their own (also inside forms and dialogs). */
.place-field input, .form-card .place-field input, .dialog .place-field input,
.place-field input:focus, .form-card .place-field input:focus, .dialog .place-field input:focus {
  width: auto;
  min-width: 0;
  min-height: 38px;
  flex: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.label-note { color: var(--soft); font-weight: 400; }
.field-hint { display: flex; justify-content: space-between; color: var(--soft); font-size: 11px; }
.privacy-hint { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 9px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fdecee; color: #a3243a; font-size: 13px; line-height: 1.5; }

.verify-box {
  margin: 8px 0 4px;
  padding: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(var(--brand-rgb), .28);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--brand-tint), var(--brand-soft));
}
.verify-box label { margin-top: 2px; }
.verify-box .privacy-hint { margin: 0; }
.verify-title { margin: 0; color: var(--brand); font-size: 13px; font-weight: 500; }
.verify-title span { margin-right: 4px; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; line-height: 1.5; }
.check-row input { width: 18px !important; min-height: 0 !important; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--brand); }

/* The title (with its small label above) and the × side by side, × level with the title */
.dialog-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dialog-title-row > div { min-width: 0; }
.dialog-title-row .eyebrow { margin: 0 0 4px; }
.dialog-title-row h2 { margin: 0; }
.dialog-title-row .dialog-close { flex: 0 0 34px; margin-bottom: 1px; }

/* A small label and the × on one line at the top of a pop-up */
.dialog-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-top-row .eyebrow { margin: 0; }
.dialog-top-row .dialog-close { flex: 0 0 34px; }

/* ---- SeeKyaa Plus and Boosts ---- */

.plus-sheet, .dialog.plus-sheet { width: min(100% - 32px, 480px); padding: 0; overflow-y: auto; }
/* One row: 💎, then "SeeKyaa Plus" (with its short line under it), then × on the right */
.plus-hero { position: sticky; top: 0; z-index: 2; padding: 16px 16px 16px 20px; display: flex; align-items: center; gap: 12px; background: var(--grad); color: #fff; }
.plus-hero .dialog-close { flex: 0 0 34px; background: rgba(255, 255, 255, .2); color: #fff; }
.plus-gem { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.plus-hero-text { min-width: 0; flex: 1; }
.dialog .plus-hero h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.2; }
.plus-hero p { margin: 2px 0 0; opacity: .9; font-size: 13px; }
.plus-hero p:empty { display: none; }
.plus-body { padding: 18px 22px 22px; display: grid; gap: 12px; }
.plus-loading { margin: 20px 0; color: var(--muted); text-align: center; }
.plus-have { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-tint); font-size: 13.5px; }
.plus-benefits { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.plus-benefits li { display: flex; gap: 12px; align-items: center; }
.plus-benefits li > span:first-child { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-tint); font-size: 17px; }
.plus-benefits strong { display: block; font-size: 14px; font-weight: 600; }
.plus-benefits small { color: var(--muted); font-size: 12.5px; }
.plus-section-title { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.plus-section-title small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-card { position: relative; min-height: 96px; padding: 18px 8px 12px; display: grid; justify-items: center; align-content: center; gap: 2px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--card); color: var(--ink); text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.plan-card:hover { border-color: var(--brand-line); }
.plan-card:active { transform: scale(.98); }
.plan-card.active { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-tint), var(--brand-soft)); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.plan-card strong { font-size: 13.5px; font-weight: 600; }
.plan-price { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.plan-card small { color: var(--muted); font-size: 12px; }
.plan-tag { position: absolute; top: -9px; left: 50%; padding: 2px 9px; transform: translateX(-50%); border-radius: 999px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
/* Very narrow screens: plans and boosts as full-width rows (name · price · per day), badges on the left */
@media (max-width: 340px) {
  .plan-grid, .plan-grid.two { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plan-card { min-height: 60px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .plan-tag { left: 14px; transform: none; }
}
.plus-small { margin: 0; text-align: center; }
.order-summary { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); font-size: 14px; }
.order-summary strong { font-size: 18px; }
.plus-soon { padding: 14px; display: flex; gap: 12px; border-radius: 14px; background: var(--brand-tint); }
.plus-soon > span { font-size: 24px; line-height: 1; }
.plus-soon strong { font-size: 14px; }
.plus-soon p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.plus-back { justify-self: center; }
.plus-done { display: grid; justify-items: center; gap: 8px; padding: 10px 0 0; text-align: center; }
.plus-done > span { font-size: 44px; }
.plus-done h3 { margin: 0; font-size: 19px; }
.plus-done p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.plus-badge { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.plus-cta { width: 100%; margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--brand-line); border-radius: 14px; background: linear-gradient(160deg, var(--brand-tint), var(--brand-soft)); color: var(--ink); text-align: left; cursor: pointer; }
.plus-cta > span:first-child { font-size: 22px; }
.plus-cta > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.plus-cta strong { font-size: 14px; }
.plus-cta small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .plus-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .plus-sheet[open] { animation: sheet-up .25s ease-out; }
  .plus-hero { padding-top: calc(16px + env(safe-area-inset-top)); }
  .plus-body { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ---- Get the app (Add to Home Screen) ---- */
.install-banner { margin-bottom: 18px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--brand-line); border-radius: var(--radius-card); background: linear-gradient(160deg, var(--brand-tint), var(--card) 65%); box-shadow: var(--shadow-card); }
:root[data-theme="dark"] .install-banner { border-color: rgba(var(--brand-rgb), .35); background: linear-gradient(160deg, var(--brand-soft), var(--card) 70%); }
.install-banner.hidden { display: none; }
.install-banner img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; }
.install-banner > div { min-width: 0; flex: 1; display: grid; gap: 1px; }
.install-banner strong { font-size: 14px; }
.install-banner small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.install-banner .button { flex: 0 0 auto; }
.install-banner-close { width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.install-menu-item.hidden { display: none; }
.install-sheet { width: min(100% - 32px, 420px); }
.install-hero { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.install-hero img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .3); }
.install-hero > div { min-width: 0; flex: 1; }
.dialog .install-hero h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.install-hero p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.install-hero .dialog-close { flex: 0 0 34px; align-self: flex-start; }
.install-list { margin: 0 0 14px; padding: 0; display: grid; gap: 12px; list-style: none; }
.install-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.install-num { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; }
.install-share { width: 20px; height: 20px; margin: 0 2px; vertical-align: -4px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--brand-tint); color: var(--muted); font-size: 13px; }
/* The bouncing arrow pointing at Safari's Share button at the bottom of an iPhone screen */
.install-pointer { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2147483647; display: grid; justify-items: center; gap: 2px; transform: translateX(-50%); pointer-events: none; animation: install-bounce 1s ease-in-out infinite; }
.install-pointer.hidden { display: none; }
.install-pointer span { padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.install-pointer svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
@keyframes install-bounce { 50% { transform: translate(-50%, 8px); } }

/* ---- Safety tips (a pop-up, plus one line on the match screen) ---- */

.safety-sheet { width: min(100% - 32px, 440px); }
.safety-tips { margin: 6px 0 14px; padding: 0; display: grid; gap: 12px; list-style: none; }
.safety-tips li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.safety-tips li > span:first-child { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-tint); font-size: 16px; }
.safety-sheet .privacy-hint { margin: 0 0 12px; }
.match-sheet .match-safety { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; line-height: 1.5; opacity: .9; }
.match-safety .link-button { color: #fff !important; font-size: inherit !important; font-weight: 600 !important; text-decoration: underline !important; }

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

.dialog {
  width: min(100% - 32px, 440px);
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(var(--shade-rgb), .3);
}
.dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
.dialog::backdrop { background: rgba(var(--shade-rgb), .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog form { display: grid; gap: 11px; }
/* One heading and the close button on a coloured bar across the top (sign in, join, passwords) */
.dialog.has-head { padding-top: 0; overflow-y: auto; }
.dialog-head { position: sticky; top: 0; z-index: 2; margin: 0 -26px 6px; padding: 13px 14px 13px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--grad); color: #fff; }
.dialog .dialog-head h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.25; }
.dialog-head .dialog-close { flex: 0 0 34px; justify-self: auto; background: rgba(255, 255, 255, .2); color: #fff; }
.dialog-head .dialog-close:hover { background: rgba(255, 255, 255, .32); }
.auth-main { display: grid; gap: 11px; }
/* Joining: one question per screen */
.auth-group { display: grid; gap: 9px; }
.auth-group[data-auth-group="social"] { gap: 9px; }
.email-start { width: 100%; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions .button { flex: 1; width: auto; white-space: nowrap; }
.auth-actions #auth-back, .profile-foot #profile-back { flex: 0 0 auto; padding: 0 22px; }
.auth-progress { height: 4px; overflow: hidden; border-radius: 999px; background: var(--tint-strong); }
.auth-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .3s ease; }
.auth-main.stepping .auth-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-main.stepping .auth-group input:not([type="checkbox"]) { min-height: 54px; font-size: 18px; }
.auth-main.stepping .consent-group { gap: 4px; }
/* Show / hide what you're typing in a password box */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 76px; }
.password-toggle { position: absolute; top: 50%; right: 6px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: var(--tint-strong); color: var(--ink); }
.password-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dialog h2 { margin: 0; font-size: 26px; }
.dialog-wide { width: min(100% - 32px, 560px); }
.dialog-context { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog-close { width: 34px; height: 34px; justify-self: end; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 20px; line-height: 1; }
.dialog-switch { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.dialog-switch .link-button { color: var(--brand); font-size: 13px; }

.social-buttons { display: grid; gap: 9px; }
.social-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .2s; }
.social-button:hover { background: var(--tint); }
.social-button[hidden] { display: none; }
.divider { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 12px; }
.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }

.price-row { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; }
.price-was { font-size: 13px; font-weight: 500; -webkit-text-fill-color: var(--muted); }
.price-row strong { font-size: 24px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Messages */
.thread { max-height: 46vh; padding: 4px 2px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.bubble { max-width: 84%; padding: 10px 14px; align-self: flex-start; border-radius: 20px 20px 20px 6px; background: var(--tint-strong); font-size: 14px; line-height: 1.5; }
.bubble.mine { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--grad); color: #fff; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-label { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 400; letter-spacing: .05em; opacity: .75; text-transform: uppercase; }
.bubble-time { display: block; margin-top: 4px; font-size: 10px; opacity: .65; }
#thread-compose { display: grid; gap: 9px; }
#thread-compose .form-actions { margin-top: 0; justify-content: space-between; align-items: center; }

.conversation { width: 100%; padding: 16px 18px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); text-align: left; }
.conversation:hover { border-color: var(--line-strong); }
.conversation .post-meta { margin: 0; }
.conversation-snippet { color: var(--muted); font-size: 13px; font-style: italic; }
.conversation-last { overflow: hidden; font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

.report-reason { margin-bottom: 10px; font-size: 14px; }

/* ---- Profiles ---- */

img.avatar { display: block; object-fit: cover; background: var(--tint-strong); }
.avatar.small { width: 34px; height: 34px; flex: 0 0 34px; font-size: 12px; box-shadow: none; }
.avatar.large { width: 76px; height: 76px; flex: 0 0 76px; font-size: 24px; }
.avatar.xlarge { width: 120px; height: 120px; flex: 0 0 120px; font-size: 36px; margin: 0 auto; }
.avatar-button { padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.avatar-button:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .35); outline-offset: 2px; }
.name-button { padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 400; cursor: pointer; }
.name-button:hover { color: var(--brand); }
.post-who .where { color: var(--muted); font-weight: 400; }
.header-avatar { margin-right: 2px; }

.profile-card { padding: 20px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.profile-main { display: flex; align-items: center; gap: 16px; }
.profile-text { min-width: 0; }
.profile-text .eyebrow { margin-bottom: 2px; }
.profile-text h2 { margin: 0 0 4px; font-size: 24px; }
.profile-bio { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-bio .muted { color: var(--soft); }
.profile-nudge { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff7e6; color: #6b4e00; font-size: 13px; font-weight: 400; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.photo-picker { display: flex; align-items: center; gap: 16px; }
.photo-preview { width: 96px; height: 96px; flex: 0 0 96px; overflow: hidden; border-radius: 50%; background: var(--tint-strong); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-soft); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview.loading { opacity: .5; animation: live-pulse 1.2s ease-in-out infinite; }
.photo-empty { width: 100%; height: 100%; display: grid; place-items: center; }
.photo-empty svg { width: 46px; height: 46px; fill: none; stroke: var(--soft); stroke-width: 1.6; }
.photo-actions { display: grid; justify-items: start; gap: 6px; }
.photo-actions label.button { margin: 0; cursor: pointer; color: #fff; font-size: 13px; }
.photo-actions .privacy-hint { margin: 0; }

/* Up to 3 photos: the main one big on the left, two smaller ones stacked beside it. */
.photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 300px; aspect-ratio: 3 / 2; }
.photo-grid.loading { opacity: .55; animation: live-pulse 1.2s ease-in-out infinite; pointer-events: none; }
.photo-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 14px; background: var(--brand-tint); }
.photo-tile.main { grid-row: span 2; }

.photo-tile img, .photo-make-main { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-make-main { padding: 0; border: 0; background: none; cursor: pointer; }
.photo-make-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-main-badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(var(--night-rgb), .72); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.photo-tile-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--night-rgb), .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.photo-tile.empty { display: grid; place-content: center; justify-items: center; gap: 2px; border: 2px dashed var(--line); color: var(--brand); font-size: 26px; font-weight: 600; cursor: pointer; transition: border-color .15s, transform .12s; }
.photo-tile.empty small { color: var(--soft); font-size: 12px; font-weight: 600; }
.photo-tile.empty:hover:not(:disabled) { border-color: var(--brand); }
.photo-tile.empty:active:not(:disabled) { transform: scale(.97); }
.photo-tile.empty:disabled { opacity: .45; cursor: default; }

/* Basics (looking for, star sign, drinking...): chips in the editor, pills on profiles. */
.basics-typed { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-bottom: 14px; }
.basics-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.height-input { position: relative; display: block; }
.height-input input { width: 100%; padding-right: 40px; }
.height-input em { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--soft); font-size: 13px; font-style: normal; pointer-events: none; }
.basics-groups { display: grid; gap: 14px; }
.basics-group { display: grid; gap: 8px; }
.basics-group-label { font-size: 13px; font-weight: 600; }
.basics-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.small { padding: 7px 12px; font-size: 13px; }
.basics-pills { margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.basics-pills li { padding: 5px 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; }
.deck-info .basics-pills li { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .16); color: #fff; font-size: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Photo stacks (People cards and full profiles): tap left/right to change photo. */
.stack-photo { opacity: 0; transition: opacity .18s ease; }
.stack-photo.on { opacity: 1; }
.photo-bars { position: absolute; top: 10px; right: 12px; left: 12px; z-index: 3; display: flex; gap: 4px; pointer-events: none; }
.photo-bars span { height: 4px; flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .38); }
.photo-bars span.on { background: #fff; }
.photo-stack .photo-bars ~ .demo-badge { top: 24px; }
.deck-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deck-more { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--brand-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; transition: transform .12s; }
.deck-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.deck-more:active { transform: scale(.9); }
.deck-looking { margin: 0; justify-self: start; padding: 4px 11px; border-radius: 999px; background: var(--grad); font-size: 13px; font-weight: 600; }
.deck-info .deck-bio { -webkit-line-clamp: 2; }

.person-sheet { width: min(100% - 32px, 420px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.person-card.rich { justify-items: stretch; gap: 0; padding: 0; text-align: left; }
.person-gallery { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--night); }
.person-gallery .stack-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-tap { position: absolute; top: 0; bottom: 0; z-index: 2; width: 50%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gallery-tap.prev { left: 0; }
.gallery-tap.next { right: 0; }
.person-gallery-empty { display: grid; justify-items: center; padding: 12px 0 4px; }
.person-main { display: grid; gap: 10px; padding: 16px 4px 6px; }
.person-main h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.person-age { font-weight: 500; opacity: .85; }
.person-section h3 { margin: 0 0 6px; color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.person-section .person-bio { margin: 0; }
.looking-pill { margin: 0; display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.person-meta.small { font-size: 12px; }
.person-card.rich .report-person { justify-self: start; }
.person-swipe { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 22px; padding: 14px 0 4px; background: linear-gradient(180deg, transparent, var(--card) 40%); }

.button-dating { border: 0; background: #fff; color: var(--brand-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.button-dating:hover { background: var(--brand-tint); }

@media (max-width: 480px) {
  .basics-typed { grid-template-columns: 1fr 112px; }
}
.person-card { display: grid; justify-items: center; gap: 6px; padding: 4px 4px 8px; text-align: center; }
.person-card h2 { margin: 10px 0 0; }
.person-meta { margin: 0; color: var(--soft); font-size: 13px; }
.person-bio { margin: 8px 0 4px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

.reply-entry.with-author .reply-author { display: flex; align-items: center; gap: 10px; }
.reply-entry.with-author .reply-author strong { color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.conversation-head { display: flex; align-items: center; gap: 12px; }
.conversation-who { min-width: 0; display: grid; }
.conversation-who strong { font-size: 15px; }
.thread-person { display: flex; align-items: center; gap: 12px; }
.thread-person strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ---- Like / save / share ---- */

.post-icons { display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.icon-action {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s, transform .12s;
}
button.icon-action:hover { background: var(--tint-strong); color: var(--ink); }
button.icon-action:active { transform: scale(.9); }
.icon-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
/* Very narrow screens (e.g. Safari Page Zoom at 150%): tighter icons and Reply, so the row always fits */
@media (max-width: 340px) {
  .post-icons { margin-left: -6px; gap: 0; }
  .icon-action { min-width: 34px; padding: 0 5px; }
  .action-primary { padding: 0 13px 0 11px; gap: 6px; }
  .post-actions { gap: 6px; }
}
.icon-action.static { cursor: default; }
.icon-action.like.on { color: #e0245e; }
.icon-action.like.on svg { fill: currentColor; }
.icon-action.save.on { color: var(--ink); }
.icon-action.save.on svg { fill: currentColor; }
.icon-action.pop svg { animation: heart-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; font-size: 13px !important; color: var(--muted) !important; }
.share-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-target { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.share-target:hover { background: var(--tint); }
.share-target.whatsapp:hover { border-color: #25d366; }
.share-target.facebook:hover { border-color: #1877f2; }
.post-sheet { padding: 18px; }
.post-sheet .dialog-close { display: block; margin: 0 0 6px auto; }
.post-sheet .post-card { box-shadow: none; border: 0; padding: 4px 6px; }

/* ---- Unread message badges ---- */

.nav-icon { position: relative; display: inline-flex; }
.nav-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--card);
  border-radius: 999px;
  background: #e0245e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.tab-badge { min-width: 20px; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 11px; }
.tab.active .tab-badge { background: var(--card); color: #e0245e; }
.side-badge[data-unread-badge] { background: #e0245e; }
.conversation-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.conversation-row .conversation-last { flex: 1; min-width: 0; }
.conversation.unread { border-color: var(--brand-line); background: var(--brand-tint); }
.conversation.unread .conversation-last { color: var(--ink); font-weight: 600; }
.unread-dot { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #e0245e; color: #fff; font-size: 11px; font-weight: 600; }
.ticks { color: var(--soft); font-size: 11px; font-weight: 400; letter-spacing: -.08em; }
.ticks.read { color: #34b7f1; }
.bubble.mine .ticks { margin-left: 6px; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.bubble.mine .ticks.read { color: #b9ecff; }

/* ---- New post pop-up ---- */

.compose-sheet {
  width: min(100% - 32px, 640px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.compose-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.compose-head .eyebrow { margin-bottom: 2px; }
.compose-head h2 { margin: 0; font-size: 22px; }
.compose-x { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 22px; line-height: 1; }
.compose-x:hover { background: var(--tint-strong); color: var(--ink); }
.compose-x:focus:not(:focus-visible) { outline: none; }
.compose-sheet .compose-body { margin: 0; padding: 18px 22px 0; border: 0; border-radius: 0; box-shadow: none; }
.compose-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 14px -22px 0;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* Two clear steps: 1 "who" on a tinted band across the full width, then 2 "the details". */
.compose-section.compose-choose { margin: -18px -22px 6px; padding: 18px 22px 20px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); background: var(--tint); }
.compose-choose .kind-picker { margin-bottom: 0; }
.compose-step-title { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.compose-step-num { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.compose-details-title { margin-top: 10px; }
/* Details: bolder labels with a little more room above each question, so they scan easily. */
.compose-sheet .compose-body > label:not(.check-row), .compose-sheet .travel-box > label { margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.compose-sheet .compose-body > .compose-details-title + label { margin-top: 2px; }
.compose-sheet .label-note { font-weight: 400; }

/* Keep fields lifted into view clear of the sticky header. */
.compose-sheet label, .compose-sheet .place-picker { scroll-margin-top: 96px; }
.layout label, .layout .place-picker { scroll-margin-top: 76px; }

@media (max-width: 760px) {
  /* Phones: a full-screen sheet, like composing in a native app. */
  .compose-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .compose-sheet[open] { animation: sheet-up .25s ease-out; }
  .compose-head { padding: 14px 16px 12px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .compose-head h2 { font-size: 20px; }
  .compose-sheet .compose-body { padding: 16px 16px 0; }
  .compose-section.compose-choose { margin: -16px -16px 6px; padding: 16px 16px 18px; }
  .compose-foot { margin: 14px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .compose-foot .button-primary { flex: 1; }
}

/* ---- Toast, footer, misc ---- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 7;
  max-width: calc(100% - 40px);
  padding: 13px 18px;
  border-radius: 16px;
  background: var(--solid);
  color: var(--on-solid); /* dark text on the light bubble in dark mode, white on dark in light mode */
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(var(--shade-rgb), .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translateY(0); }

body > footer { padding: 18px 20px 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--soft); font-size: 12px; }
body > footer span:first-child { color: var(--brand); font-weight: 400; }
/* "Powered and managed by Deegits Technology Limited" */
.made-by { color: var(--soft); font-size: 12px; }
.made-by a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.made-by a:hover { color: var(--brand); }
body > footer .made-by { flex-basis: 100%; text-align: center; }
.menu-made-by { margin: 6px 0 2px; padding: 8px 12px 4px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.4; }
.legal-made-by { margin: 14px 0 0; text-align: center; }
.photo-credit a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 20px; text-align: center; }

@media (min-width: 640px) {
  .section-heading { align-items: center; }
}

/* Wide screens show a horizontal band of the tall photo: keep her head in frame. */
@media (min-width: 761px) {
  .hero-bg { object-position: 62% 40%; }
}

/* ---- App-style bottom navigation (phones and small tablets) ---- */
.bottom-nav { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabs { display: none; }
  .view { padding-top: 22px; }
  body:not([data-view="discover"]) :is(.hero, .safety) { display: none !important; }
  body:not([data-view="discover"]) main { padding-top: 4px; }

  .hero { min-height: min(70svh, 560px); }
  .hero-inner { width: min(100% - 32px, 1040px); min-width: 0; max-width: calc(100% - 32px); padding: 32px 0 36px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-copy { font-size: 15px; }
  /* A fixed grid that can only shrink, never push past the screen edge: the main button full width,
     then Browse posts and Dating side by side, each exactly half. */
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hero-actions .button { min-width: 0; padding: 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-actions .button-primary { grid-column: 1 / -1; }
  /* Text now sits mid-photo on phones: darken evenly so it stays readable over the bright platform. */
  .hero-overlay { background: linear-gradient(180deg, rgba(var(--night-rgb), .5) 0%, rgba(var(--night-rgb), .58) 45%, rgba(var(--night-rgb), .85) 100%); }

  main { width: min(100% - 32px, 760px); }
  .stories { margin: 0 -16px 20px; padding: 4px 16px 6px; gap: 14px; }
  .community-bar { margin: -6px -16px 20px; padding: 2px 16px 4px; }

  /* Communities open as a bottom sheet, like native apps. */
  .sheet { width: 100%; max-width: none; max-height: 86dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: sheet-up .25s ease-out; }
  .community-list { max-height: 56dvh; }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: var(--bar);
  }

  .bottom-tab {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--soft);
    font-size: 11px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s, transform .12s;
  }
  .bottom-tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .bottom-tab:active { transform: scale(.92); }
  .bottom-tab.active { color: var(--ink); }
  .bottom-tab.active svg { stroke-width: 2.4; }
  .bottom-tab.active:not(.bottom-post) span:last-child::after { display: block; width: 4px; height: 4px; margin: 3px auto 0; border-radius: 50%; background: var(--brand); content: ""; }

  .bottom-post-icon {
    width: 52px;
    height: 52px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    border: 4px solid var(--card);
    border-radius: 18px;
    background: var(--grad);
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .38);
    transition: transform .25s, border-radius .25s;
  }
  .bottom-post-icon svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.8; }
  .bottom-post.active .bottom-post-icon { transform: rotate(45deg); border-radius: 50%; }
  .bottom-post { color: var(--ink); }

  .toast { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 16px; text-align: center; }
  body > footer { padding-bottom: 16px; }
  /* Phones: the bar sits directly on top of the bottom navigation. */
  .cookie-notice { bottom: calc(67px + env(safe-area-inset-bottom)); padding: 12px 16px; box-shadow: none; }
  .cookie-notice p { font-size: 12px; }
  /* While typing a place, the keyboard is up: tuck the bottom bar away. */
  body.typing .bottom-nav { display: none; }
}

@media (max-width: 480px) {
  .topbar { height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .account-email { display: none; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .hero-points { gap: 8px 16px; font-size: 12px; }
  .section-heading h2 { font-size: 24px; }
  .post-card { padding: 16px; }
  .post-copy { font-size: 15px; }
  .form-card { padding: 18px; }
  .form-actions .button { padding: 0 16px; }
  .gps-button span { display: none; }
  .gps-button { width: 40px; padding: 0; justify-content: center; }
  .action-primary { padding: 0 15px 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Profile sheet, settings, notifications (2026-11-13.7) ---- */

.dialog select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; outline: none; background: var(--card); color: var(--ink); font-size: 14px; }
.dialog select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.field-label { margin-top: 8px; color: var(--ink); font-size: 13px; font-weight: 400; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px; }
.field-pair .privacy-hint { margin: 0 0 6px; }
.dialog .field-pair label { display: block; margin-bottom: 6px; }
@media (max-width: 480px) { .field-pair { grid-template-columns: 1fr; gap: 6px; } .field-pair .privacy-hint { margin: 0; } }

/* Profile: a stepped sheet with a coloured header and a Back / Next footer */
.profile-sheet { width: min(100% - 32px, 520px); max-height: min(720px, calc(100dvh - 32px)); padding: 0; overflow: hidden; }
.profile-sheet[open] { display: flex; flex-direction: column; }
.profile-sheet form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.profile-body { min-height: 230px; }
.profile-head { flex: 0 0 auto; padding: 18px 22px 16px; background: var(--grad); color: #fff; }
.profile-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-head .eyebrow { margin: 0; color: rgba(255, 255, 255, .85); }
.profile-head .dialog-close { background: rgba(255, 255, 255, .2); color: #fff; }
.profile-head .dialog-close:hover { background: rgba(255, 255, 255, .32); }
.profile-head h2 { margin: 6px 0 4px; color: #fff; font-size: 26px; }
.profile-head-intro { margin: 0; color: rgba(255, 255, 255, .9); font-size: 13px; line-height: 1.5; }
.profile-head-intro:empty { display: none; }
/* Setting up: one question per screen with a progress bar. Editing: all fields on one page. */
.profile-progress-bar { height: 4px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.profile-progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width .3s ease; }
.profile-sheet.editing .profile-progress-bar { display: none; }
@media (min-width: 761px) { .profile-sheet:not(.editing) { height: min(580px, calc(100dvh - 32px)); } }
.profile-sheet:not(.editing) .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile-sheet:not(.editing) .edit-only { display: none; }
.profile-sheet:not(.editing) .profile-body { padding-top: 24px; }
.profile-sheet:not(.editing) .profile-step input:not([type="checkbox"]):not([type="file"]) { min-height: 46px; font-size: 16px; }
.profile-sheet:not(.editing) .photo-picker { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.profile-sheet:not(.editing) .photo-actions { align-items: center; }
.profile-sheet:not(.editing) .profile-step .photo-preview { width: 150px; height: 150px; flex-basis: 150px; }
.profile-sheet:not(.editing) .gender-chips .chip { min-height: 40px; padding: 0 16px; font-size: 14px; }
/* Date of birth: Day / Month / Year boxes, the same on every phone */
.dob-fields { display: grid; grid-template-columns: 76px minmax(0, 1fr) 96px; gap: 10px; }
.dob-fields input, .dob-fields select { width: 100%; min-width: 0; }
.dob-fields input { text-align: center; }
.profile-sheet:not(.editing) .dob-fields select { min-height: 46px; font-size: 16px; }
/* Setting up: Continue sits right under the question (not pinned to the bottom of the screen) */
.profile-sheet:not(.editing) .profile-body { flex: 0 0 auto; overflow: visible; }
.profile-sheet:not(.editing) form { overflow-y: auto; }
.profile-sheet:not(.editing) .profile-foot { padding-top: 6px; border-top: 0; background: transparent; }
.profile-sheet.editing .profile-step + .profile-step { padding-top: 14px; border-top: 1px solid var(--line); }

/* Editing: a slim header (just "Edit your profile" and ×) */
.profile-sheet.editing .profile-head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 12px 14px 12px 22px; }
.profile-sheet.editing .profile-head-top { display: contents; }
.profile-sheet.editing .profile-head .eyebrow, .profile-sheet.editing .profile-head-intro { display: none; }
.profile-sheet.editing .profile-head .dialog-close { grid-column: 2; grid-row: 1; }
.profile-sheet.editing .profile-head h2 { grid-column: 1; grid-row: 1; margin: 0; font-size: 19px; }

/* Medium-sized fields (profile editor and its detail pop-ups) */
.profile-sheet.editing input:not([type="checkbox"]):not([type="file"]), .profile-sheet.editing select,
.profile-item-sheet input:not([type="checkbox"]):not([type="file"]), .profile-item-sheet select { min-height: 42px; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.profile-sheet.editing textarea, .profile-item-sheet textarea { padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.profile-sheet.editing .place-field, .profile-item-sheet .place-field { min-height: 44px; }
.profile-sheet.editing .place-field input, .profile-item-sheet .place-field input { min-height: 32px; padding: 0; }
.profile-sheet.editing .step-label { font-size: 13px; }
.profile-sheet.editing .photo-grid { max-width: 280px; }

/* Editing: one full-width button per detail, a tick on the right when it's filled in */
.profile-rows { display: grid; gap: 18px; }
.profile-rows.hidden { display: none; }
.profile-rows-group { display: grid; gap: 6px; }
.profile-rows-group h3 { margin: 0 0 2px; color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.profile-row-button { width: 100%; min-height: 54px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.profile-row-button:hover { border-color: var(--line-strong); background: var(--brand-tint); }
.profile-row-button:active { transform: scale(.99); }
.pri-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-tint); font-size: 16px; }
.pri-text { min-width: 0; flex: 1; display: grid; gap: 1px; }
.pri-text strong { font-size: 14px; font-weight: 600; }
.pri-text strong em { margin-left: 4px; color: var(--soft); font-size: 11px; font-style: normal; font-weight: 500; }
.pri-text small { overflow: hidden; color: var(--soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pri-check { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; }
.pri-check.on { border-color: transparent; background: var(--grad); }
.pri-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.profile-rows .privacy-hint { margin: 0; }

/* One detail's pop-up */
.profile-item-sheet { width: min(100% - 32px, 440px); }
.profile-item-sheet .dialog-head { margin-bottom: 16px; }
.profile-item-body { display: grid; gap: 10px; }
.profile-item-body .step-label, .profile-item-body .basics-group-label, .profile-item-body .basics-field > span:first-child { display: none; }
.profile-item-body .profile-step, .profile-item-body .basics-group, .profile-item-body .basics-field { animation: none; }
.profile-item-body .basics-field { display: block; }
.profile-item-body .basics-chips { gap: 8px; }
.profile-item-sheet .form-error { margin-top: 10px; }
.profile-item-actions { margin-top: 16px; display: flex; gap: 10px; }
.profile-item-actions .button { flex: 1; }
.profile-item-actions .button.hidden { display: none; }
@media (max-width: 760px) {
  .profile-sheet.editing .profile-head { padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; }
  .profile-item-sheet { width: 100%; max-width: none; max-height: 85dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .profile-item-sheet[open] { animation: sheet-up .25s ease-out; }
}
.profile-steps { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.profile-step-dot { height: 18px; padding: 6px 0; border: 0; background: transparent; cursor: pointer; }
.profile-step-dot span { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: background .25s; }
.profile-step-dot.done span { background: rgba(255, 255, 255, .75); }
.profile-step-dot.current span { background: var(--card); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.profile-body { flex: 1 1 auto; min-height: 0; padding: 18px 22px 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.profile-step { display: grid; gap: 9px; animation: step-in .22s ease-out; }
.profile-step[hidden] { display: none; }
.profile-step > label:first-child, .profile-step > .photo-picker:first-child { margin-top: 0; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }
.profile-body .form-error { margin-top: 12px; }
.profile-foot { flex: 0 0 auto; padding: 12px 22px; display: flex; gap: 10px; border-top: 1px solid var(--line); background: var(--card); }
.profile-foot .button { flex: 1; }
.profile-foot .button.hidden { display: none; }
.profile-foot .invisible { visibility: hidden; }
.profile-step .photo-picker { padding: 6px 0 4px; }
.profile-step .photo-preview { width: 112px; height: 112px; flex-basis: 112px; }
.profile-progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--track); }
.profile-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.profile-progress-text { margin: -2px 0 0; color: var(--soft); font-size: 12px; font-weight: 400; }
.gender-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gender-chips .chip.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(var(--brand-rgb), .22); }
@media (max-width: 760px) {
  .profile-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .profile-head { padding: calc(14px + env(safe-area-inset-top)) 16px 14px; }
  .profile-head h2 { font-size: 23px; }
  .profile-body { padding: 16px 16px 8px; }
  .profile-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .profile-sheet[open] { animation: sheet-up .25s ease-out; }
}

.profile-facts { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-facts span { padding: 3px 10px; border-radius: 999px; background: var(--tint-strong); color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-facts.center { justify-content: center; margin: 4px 0 2px; }
.profile-nudge { display: grid; gap: 8px; }
.report-person { margin-top: 6px; color: var(--muted) !important; font-size: 13px; }
.report-person:hover { color: #c62a47 !important; }

/* Account & settings: a native-app style list */
.settings-card { margin-top: 28px; padding: 20px 20px 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.settings-card h2 { margin: 0 0 8px; font-size: 20px; }
.settings-list { margin: 0 -8px; padding: 0; list-style: none; }
.settings-list li + li { border-top: 1px solid var(--line); }
.settings-list li[hidden] { display: none; }
.settings-list button, .settings-list a { width: 100%; min-height: 58px; padding: 10px 8px; display: flex; align-items: center; gap: 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; transition: background .15s; }
.settings-list button:hover, .settings-list a:hover { background: var(--tint); }
.settings-list button::after, .settings-list a::after { margin-left: auto; color: var(--soft); font-size: 20px; content: "›"; }
.settings-list strong { display: block; font-size: 14px; }
.settings-list small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.settings-list .danger strong { color: #c62a47; }
.settings-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 12px; background: var(--tint-strong); font-size: 17px; }

/* Notification settings */
.setting-toggle { min-height: 64px; padding: 10px 14px; }
.setting-toggle strong { display: block; font-size: 14px; }
.setting-toggle small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.setting-toggle > span:nth-of-type(2) { flex: 1; }
.setting-emoji { flex: 0 0 auto !important; font-size: 20px; }
.setting-toggle.on { border-color: var(--brand-line); background: var(--brand-tint); }
.setting-toggle.on .toggle-switch { background: var(--grad); }
.setting-toggle.on .toggle-switch::after { transform: translateX(18px); }
#settings-radius { align-items: center; padding-left: 4px; }
#settings-radius.hidden { display: none; }
.radius-label { color: var(--muted); font-size: 13px; font-weight: 400; }
.push-row { margin-top: 4px; padding: 14px; display: flex; align-items: center; gap: 12px; border-radius: 16px; background: var(--tint); }
.push-row > div { flex: 1; min-width: 0; }
.push-row strong { display: block; font-size: 14px; }
.push-row small { display: block; color: var(--muted); font-size: 12px; }

/* The bell */
.bell-button { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background .15s; }
.bell-button:hover { background: var(--tint-strong); }
.bell-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.bell-button .nav-badge { top: 2px; right: 0; }
.bell-button.ring svg { animation: bell-ring .9s ease-in-out; transform-origin: 50% 15%; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

/* Notifications, Facebook-style: a dropdown under the bell on computers (full screen on phones),
   All / Unread tabs, New and Earlier, the person's photo with a coloured badge, unread highlighted. */
.notif-sheet { width: min(100% - 32px, 400px); padding: 14px 8px 8px; display: none; }
.notif-sheet[open] { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 761px) {
  /* Drops down from the top right, under the bell, instead of sitting in the middle of the page */
  .notif-sheet { position: fixed; inset: 60px 16px auto auto; margin: 0; max-height: calc(100dvh - 76px); }
  .notif-sheet::backdrop { background: rgba(var(--shade-rgb), .12); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .notif-sheet[open] { animation: notif-drop .16s ease-out; }
}
@keyframes notif-drop { from { opacity: 0; transform: translateY(-6px); } }
.notif-head { padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.notif-head h2 { flex: 1; margin: 0; font-size: 22px; letter-spacing: -.02em; }
.notif-head .link-button { color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; }
.notif-head .dialog-close { flex: 0 0 32px; width: 32px; height: 32px; }
.notif-tabs { padding: 0 8px; display: flex; gap: 6px; }
.notif-tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.notif-tab:hover { background: var(--tint-strong); }
.notif-tab.active { background: var(--brand-soft); color: var(--brand-dark); }
.notif-list { min-height: 0; flex: 1 1 auto; margin: 0; padding: 0 0 4px; overflow-y: auto; overscroll-behavior: contain; }
.notif-section { margin: 10px 8px 4px; font-size: 16px; font-weight: 700; }
.notif-row { position: relative; border-radius: 10px; transition: background .12s, opacity .18s, transform .18s; }
.notif-row:hover { background: var(--tint); }
.notif-row.removing { opacity: 0; transform: translateX(16px); }
.notif-item { width: 100%; padding: 8px 40px 8px 8px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.notif-pic { position: relative; flex: 0 0 56px; width: 56px; height: 56px; }
.notif-avatar, .notif-pic .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 20px; }
.notif-glyph { display: grid; place-items: center; background: var(--brand-soft); font-size: 26px; }
.notif-glyph.people { background: linear-gradient(135deg, var(--brand-soft), var(--tint-strong)); }
.notif-badge { position: absolute; right: -3px; bottom: -3px; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--card); border-radius: 50%; color: #fff; font-size: 12px; line-height: 1; }
.notif-text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.notif-line { color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.notif-line strong { font-weight: 700; }
.notif-count { color: var(--muted); font-weight: 400; }
.notif-body { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notif-time { color: var(--soft); font-size: 12.5px; font-weight: 600; }
.notif-row.unread .notif-time { color: var(--brand); }
.notif-row.unread .notif-line { font-weight: 500; }
.notif-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--brand); }
.notif-more { position: absolute; top: 50%; right: 8px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 1px; opacity: 0; cursor: pointer; box-shadow: var(--shadow-card); transition: opacity .12s; }
.notif-row:hover .notif-more, .notif-more:focus-visible, .notif-row:has(.notif-menu) .notif-more { opacity: 1; }
.notif-row.unread .notif-item { padding-right: 44px; }
@media (pointer: coarse) { .notif-more { opacity: 1; border-color: transparent; background: transparent; box-shadow: none; } .notif-row.unread .notif-dot { margin-right: 6px; } }
.notif-menu { position: absolute; top: calc(50% + 20px); right: 8px; z-index: 5; min-width: 230px; padding: 6px; display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 12px 32px rgba(var(--shade-rgb), .28); }
.notif-menu button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.notif-menu button:hover { background: var(--tint-strong); }
.notif-empty { padding: 32px 16px; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.notif-empty > span { font-size: 34px; }
.notif-empty strong { color: var(--ink); font-size: 15px; }
.notif-settings-link { align-self: center; padding: 6px 0; color: var(--muted) !important; font-size: 13px; }
/* A new notification while you're here: a pop-up in the bottom-left corner, like Facebook */
.notif-toast { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: min(calc(100% - 32px), 360px); padding: 8px; display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 12px 36px rgba(var(--shade-rgb), .35); animation: notif-toast-in .25s ease-out; }
.notif-toast.hidden { display: none; }
.notif-toast-body { min-width: 0; flex: 1; padding: 4px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.notif-toast-close { width: 30px; height: 30px; flex: 0 0 30px; align-self: flex-start; padding: 0; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
@keyframes notif-toast-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .notif-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.push-banner { padding: 12px 14px; display: flex; align-items: center; gap: 12px; border-radius: 16px; background: linear-gradient(120deg, var(--brand-tint), var(--brand-soft)); }
.push-banner.hidden { display: none; }
.push-banner > span { font-size: 22px; }
.push-banner p { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; }
@media (max-width: 760px) {
  .notif-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; padding: calc(14px + env(safe-area-inset-top)) 6px 8px; }
  .notif-sheet[open] { animation: sheet-up .25s ease-out; }
  .notif-list { max-height: none; flex: 1; }
  .push-banner { flex-wrap: wrap; }
}

/* Passwords */
.forgot-link { justify-self: end; margin-top: -4px; color: var(--brand) !important; font-size: 12px; }
.sent-state { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sent-state.hidden { display: none; }
.sent-icon { font-size: 42px; }
.sent-state p { margin: 0; font-size: 14px; line-height: 1.55; }
/* Sign-in code */
.auth-code { display: grid; justify-items: center; gap: 12px; text-align: center; }
.auth-code.hidden { display: none; }
.auth-code > p { margin: 0; font-size: 14px; line-height: 1.55; }
.auth-code .form-error { justify-self: stretch; }
.code-input { width: min(100%, 240px); padding: 12px 14px; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .4em; text-align: center; text-indent: .4em; }
.auth-code-links { display: flex; gap: 18px; justify-content: center; }
#forgot-ask { display: grid; gap: 11px; }
#forgot-ask.hidden { display: none; }

@media (max-width: 760px) {
  .account-email { display: none; }
}
#settings-radius { gap: 6px; }
#settings-radius .chip { padding: 0 12px; }

/* Your communities: chosen countries as removable chips */
.picked-communities { display: flex; flex-wrap: wrap; gap: 8px; }
.picked-community { min-height: 36px; padding: 0 4px 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 500; }
.picked-community .flag { border-radius: 3px; }
.picked-community button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--brand-dark); font-size: 18px; line-height: 1; }
.picked-community button:hover { background: rgba(163, 25, 91, .12); }
#profile-community-picker.hidden { display: none; }
/* Two-step profile: sections in the same step sit together */
.profile-body { display: grid; align-content: start; gap: 14px; }
.profile-body .form-error { margin-top: 0; }
.profile-step .photo-preview { width: 96px; height: 96px; flex-basis: 96px; }

/* ---- Chats, messaging-app style (2026-11-13) ---- */

/* The chat list */
/* ---- Messages: the chat list, WhatsApp-style ---- */
.chats-head { margin: 4px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chats-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.chats-private { color: var(--soft); font-size: 12.5px; }
.chats-search { position: relative; margin-bottom: 10px; display: flex; align-items: center; }
.chats-search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.chats-search input { width: 100%; min-height: 42px; padding: 0 42px; border: 0; border-radius: 999px; background: var(--tint-strong); color: var(--ink); font-size: 15px; outline: none; box-shadow: none; }
.chats-search input:focus { box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .35); }
.chats-search input::-webkit-search-cancel-button { display: none; }
.chats-search-clear { position: absolute; right: 8px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--line-strong); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.chats-search-clear.hidden { display: none; }
.chat-filters { margin: 0 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chat-filters::-webkit-scrollbar { display: none; }
.chat-filter { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--tint-strong); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.chat-filter.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.chat-filter-count { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.chat-filter-count.hidden { display: none; }
/* One plain list (no card around it), dividers start after the photo, like WhatsApp */
.chat-list { margin: 0 -8px; display: grid; }
.chat-row { width: 100%; padding: 0 8px; display: flex; align-items: center; gap: 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background .12s; }
.chat-row:hover { background: var(--tint); }
.chat-row:active { background: var(--tint-strong); }
.chat-pic { position: relative; flex: 0 0 54px; width: 54px; height: 54px; }
.chat-pic .avatar { width: 54px; height: 54px; font-size: 19px; }
.chat-kind { position: absolute; right: -3px; bottom: -2px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 50%; background: var(--card); font-size: 11px; line-height: 1; }
.chat-row-main { min-width: 0; flex: 1; min-height: 74px; padding: 12px 0; display: grid; align-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.chat-row:last-child .chat-row-main { border-bottom-color: transparent; }
.chat-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-row-top strong { overflow: hidden; font-size: 16.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-time { flex: 0 0 auto; color: var(--soft); font-size: 12.5px; font-weight: 400; }
.chat-row.unread .chat-row-time { color: var(--brand); font-weight: 600; }
.chat-row-last { min-width: 0; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14.5px; }
.chat-row-last .ticks { flex: 0 0 auto; font-size: 13px; }
.chat-row-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.unread .chat-row-text { color: var(--ink); font-weight: 500; }
.chat-unread { min-width: 22px; height: 22px; margin-left: 6px; padding: 0 7px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.chat-unread.dot { min-width: 12px; width: 12px; height: 12px; padding: 0; }
.chats-empty { padding: 44px 20px; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.chats-empty > span { font-size: 40px; }
.chats-empty strong { color: var(--ink); font-size: 16px; }

/* The conversation */
.chat-sheet { width: min(100% - 32px, 560px); height: min(760px, calc(100dvh - 32px)); max-height: none; padding: 0; overflow: hidden; border-radius: 22px; }
.chat-sheet[open] { display: flex; flex-direction: column; }
.chat-sheet form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.chat-head { flex: 0 0 auto; padding: 10px 10px 10px 6px; display: flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; }
.chat-head .chat-back, .chat-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; justify-self: auto; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.chat-head .chat-back:hover, .chat-icon:hover { background: rgba(255, 255, 255, .18); }
.chat-head svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.chat-head .thread-person { flex: 1; min-width: 0; gap: 10px; }
.chat-head .avatar { width: 40px; height: 40px; flex: 0 0 40px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.chat-who { min-width: 0; display: grid; padding: 0; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.chat-who strong { overflow: hidden; font-size: 17px !important; font-weight: 600; letter-spacing: 0 !important; text-overflow: ellipsis; white-space: nowrap; }
.chat-who span { overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-context { flex: 0 0 auto; padding: 8px 14px; display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; line-height: 1.45; }
.chat-context strong { color: var(--ink); }
.chat-context > span:last-child { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
  background-color: var(--chat-bg);
  background-image: radial-gradient(rgba(163, 25, 91, .06) 1px, transparent 1px), radial-gradient(rgba(163, 25, 91, .04) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.chat-notice { max-width: 88%; margin: 4px auto 8px; padding: 7px 12px; border-radius: 10px; background: #fff6d8; color: #6b5a1e; font-size: 12px; line-height: 1.45; text-align: center; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.chat-day { margin: 10px 0 6px; text-align: center; }
.chat-day span { padding: 5px 12px; border-radius: 9px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 400; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-messages .bubble { position: relative; max-width: 80%; margin-top: 8px; padding: 7px 10px 6px 11px; align-self: flex-start; border-radius: 4px 16px 16px 16px; background: var(--card); color: var(--ink); font-size: 15px; line-height: 1.4; box-shadow: 0 1px 1px rgba(var(--shade-rgb), .08); }
.chat-messages .bubble.mine { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--bubble-mine); color: var(--ink); }
.chat-messages .bubble.continued { margin-top: 2px; border-radius: 16px; }
.chat-messages .bubble p { display: inline; }
.chat-messages .bubble-label { margin-bottom: 2px; color: var(--brand); font-size: 10px; opacity: 1; }
.bubble-meta { float: right; margin: 6px 0 -2px 10px; color: var(--soft); font-size: 11px; line-height: 1; white-space: nowrap; }
.chat-messages .bubble.mine .ticks { margin-left: 2px; color: var(--soft); letter-spacing: -.12em; }
.chat-messages .bubble.mine .ticks.read { color: #2aa2e6; }
.chat-messages .bubble.sending { opacity: .75; }
.chat-hint { flex: 0 0 auto; margin: 0; padding: 10px 16px; background: var(--card); color: var(--muted); font-size: 13px; text-align: center; }
.chat-hint.hidden { display: none; }
.chat-sheet .form-error { margin: 0; border-radius: 0; }
.chat-compose { flex: 0 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px; background: var(--chat-bg); }
.chat-compose.hidden { display: none; }
.chat-compose textarea, .dialog .chat-compose textarea { flex: 1; min-width: 0; width: auto; min-height: 46px; max-height: 140px; padding: 12px 16px; border: 0; border-radius: 24px; background: var(--card); font-size: 15px; line-height: 1.4; resize: none; box-shadow: 0 1px 1px rgba(var(--shade-rgb), .08); }
.chat-compose textarea:focus, .dialog .chat-compose textarea:focus { box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .25); }
.chat-send { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); transition: transform .12s; }
.chat-send:active { transform: scale(.92); }
.chat-send:disabled { opacity: .6; }
.chat-send svg { width: 22px; height: 22px; margin-left: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 760px) {
  .chat-sheet { width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0; }
  .chat-sheet[open] { animation: sheet-up .22s ease-out; }
  .chat-head { padding-top: calc(10px + env(safe-area-inset-top)); }
}

/* ---- Signed in vs signed out ---- */
/* Signed in: open straight on the posts. Signed out: account-only screens never show. */
body.signed-in .hero, html.likely-signed-in .hero { display: none; }
/* The site footer is for visitors. Signed-in members have the same links in the account menu
   (Contact us, Privacy & Terms, Dark mode), so the app screens end cleanly, like an app. */
body.signed-in > footer, html.likely-signed-in body > footer { display: none; }
body:not(.signed-in) :is(#my-posts-view, #messages-view, #admin-view) { display: none !important; }
@media (max-width: 760px) {
  body.signed-in main, html.likely-signed-in main { padding-top: 4px; }
}

/* ---- No zoom on phones and tablets (app-like, as on iPhone apps) ----
   touch-action: no double-tap zoom. text-size-adjust: Safari doesn't enlarge text when the phone is turned.
   overflow-x: nothing (a card swiping away, a toast sliding in) can make the page wider than the screen,
   which on iPhone looks like being stuck zoomed in. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* On phones the page itself only scrolls up and down: it can't be dragged or wobbled sideways (as in apps).
   The rows that scroll sideways (places, post types, communities, Dating near you) still do. */
@media (pointer: coarse) {
  html { touch-action: pan-y; }
  .stories, .kind-bar, .community-bar, .strip-row, .chat-filters { touch-action: pan-x pan-y; }
  input[type="range"] { touch-action: none; } /* sliders get the whole drag (distance, ages) */
}
html { overflow-x: hidden; } /* (only on <html>: on <body> too it would make the page its own scroll box and break sticky bars) */
@supports (overflow: clip) { html, body, main { overflow-x: clip; } } /* clip never makes a scroll box, so sticky bars still work */
@media (max-width: 760px), (pointer: coarse) {
  /* 16px+ stops iPhone and iPad zooming in when a text box is tapped (also in landscape, wider than 760px) */
  input, select, textarea, .form-card input, .form-card select, .form-card textarea, .dialog input, .dialog textarea, .dialog select { font-size: 16px !important; }
}
#thread-compose.chat-compose { display: flex; gap: 8px; }
#thread-compose.chat-compose.hidden { display: none; }

/* ---- Distance sliders (1–100 km), dating-app style ---- */
.distance-slider { padding: 12px 16px 14px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); }
.distance-slider.hidden { display: none; }
.distance-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.distance-top label, .dialog .distance-top label, .distance-top .field-label, .people-setup .distance-top .field-label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.3; }
.distance-top output { line-height: 1.3; }
.distance-top output { color: var(--brand); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#settings-radius.distance-slider { box-shadow: none; background: var(--tint); }
.range, .dialog input.range, .form-card input.range {
  --fill: 0%;
  width: 100%;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--g2) 0%, var(--g3) var(--fill), var(--track) var(--fill)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: #e9e0e8; }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--g2), var(--g3)); }
.range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(var(--shade-rgb), .25), 0 0 0 1px rgba(var(--shade-rgb), .06); -webkit-appearance: none; appearance: none; transition: transform .12s; }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(var(--shade-rgb), .25), 0 0 0 1px rgba(var(--shade-rgb), .06); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .25), 0 1px 3px rgba(var(--shade-rgb), .25); }

/* ---- Profile tab, app-style (2026-11-13) ---- */
.profile-card { position: relative; padding: 0; gap: 0; overflow: hidden; }
.profile-cover { height: 96px; background: var(--grad); }
.profile-cover::after { display: block; height: 100%; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .18), transparent 45%); content: ""; }
.profile-hero { margin-top: -62px; padding: 0 20px 18px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.profile-photo { position: relative; border-radius: 50%; box-shadow: 0 0 0 5px var(--card), 0 8px 24px rgba(var(--shade-rgb), .18); }
.profile-photo .avatar.xlarge { width: 116px; height: 116px; flex-basis: 116px; margin: 0; }
.profile-photo-edit { position: absolute; right: 2px; bottom: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid var(--card); border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; }
.profile-hero h2 { margin: 8px 0 0; font-size: 26px; }
.profile-age { color: var(--muted); font-weight: 500; }
.profile-hero .profile-facts { margin: 0; }
.profile-hero .profile-bio { max-width: 420px; margin: 2px 0 0; color: var(--muted); }
.profile-hero .profile-nudge { width: 100%; margin-top: 6px; text-align: left; }
.profile-edit { min-width: 180px; margin-top: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.profile-stat { padding: 12px 4px 14px; display: grid; gap: 1px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s; }
.profile-stat + .profile-stat { border-left: 1px solid var(--line); }
.profile-stat:hover { background: var(--tint); }
.profile-stat strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-stat span { color: var(--muted); font-size: 12px; font-weight: 400; }

/* Your things: a grid of tidy buttons */
.hub-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-tile { position: relative; min-height: 76px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-align: left; box-shadow: var(--shadow-card); transition: transform .12s, border-color .15s; }
.hub-tile:hover { border-color: var(--line-strong); }
.hub-tile:active { transform: scale(.98); }
.hub-tile.hidden { display: none; }
.hub-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--a, var(--g3)), var(--b, var(--g1))); font-size: 21px; box-shadow: 0 4px 10px rgba(var(--shade-rgb), .12); }
.hub-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-text strong { font-size: 15px; }
.hub-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hub-count { min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--tint-strong); color: var(--ink); font-size: 12px; font-weight: 600; }
.hub-count.alert { background: #e0245e; color: #fff; }
.hub-count.hidden { display: none; }
.hub-new { border: 1.5px dashed var(--brand-line); background: var(--brand-tint); box-shadow: none; }
.hub-new .hub-icon { background: var(--grad); color: #fff; font-size: 24px; font-weight: 400; }
@media (max-width: 420px) {
  .hub-tile { min-height: 70px; padding: 12px; gap: 10px; }
  .hub-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 19px; }
  .hub-text strong { font-size: 14px; }
}
@media (max-width: 340px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } } /* very narrow: one tile per row */
#my-posts-view .settings-card { margin-top: 18px; }

/* Profile screens (My posts, Replies, Saved) */
.list-sheet { width: min(100% - 32px, 620px); height: min(820px, calc(100dvh - 32px)); max-height: none; padding: 0; overflow: hidden; background: var(--bg); }
.list-sheet[open] { display: flex; flex-direction: column; }
.list-head { flex: 0 0 auto; padding: 10px 12px 10px 6px; display: flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; }
.list-head .list-back, .list-action { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; justify-self: auto; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; }
.list-head .list-back:hover, .list-action:hover { background: rgba(255, 255, 255, .18); }
.list-head svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.list-title { flex: 1; min-width: 0; display: grid; }
.list-title h2 { margin: 0; color: #fff; font-size: 19px !important; }
.list-title span { color: rgba(255, 255, 255, .85); font-size: 12px; }
.list-body { flex: 1 1 auto; min-height: 0; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.settings-section-label { margin: 10px 0 -2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.settings-section-label span { color: var(--soft); font-weight: 400; letter-spacing: 0; text-transform: none; }
#auth-digest-row.hidden { display: none; }

/* My posts: the post, then likes / shares / saves / replies, then replies folded behind a button */
.owned-stats { margin: 2px 0 12px; padding: 10px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.owned-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted); font-size: 12px; text-align: center; }
.owned-stat > span { color: var(--brand); font-size: 15px; line-height: 1.2; }
.owned-stat strong { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.2; }
.replies-toggle { width: 100%; min-height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--tint); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.replies-toggle:hover { background: var(--tint-strong); }
.replies-chevron { width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.replies-toggle.open .replies-chevron { transform: rotate(180deg); }
.owned-replies { margin-top: 12px; }
.owned-replies.hidden { display: none; }
.owned-no-replies { margin: 0; color: var(--muted); font-size: 13px; }
.owned-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.owned-foot > :only-child { margin-left: auto; }
/* "OK to feature on SeeKyaa's social media" on your own post (opt-in, removable) */
.social-tag { min-height: 26px; padding: 0 8px 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 600; }
.social-on { color: var(--muted) !important; font-size: 13px; text-decoration: none; }
.social-on:hover { color: var(--brand) !important; }
.social-consent { margin: 14px 0 2px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14px; }
.social-consent .label-note { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-style: normal; }

/* Search box at the top of a list (Saved posts): stays in view while you scroll the results */
.list-search { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 12px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; background: var(--bg); }
.list-search.hidden, .list-search-count.hidden, .list-search-clear.hidden { display: none; }
.list-search svg { position: absolute; left: 28px; width: 17px; height: 17px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.dialog .list-search input { flex: 1; min-height: 42px; padding: 0 40px 0 40px; border-radius: 999px; font-size: 14px; }
.list-search input::-webkit-search-cancel-button { display: none; }
.list-search-clear { position: absolute; right: 22px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--tint-strong); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.list-search-count { margin: -4px 2px 10px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .list-sheet { width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0; }
  .list-sheet[open] { animation: sheet-up .22s ease-out; }
  .list-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .list-body { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
}

/* Compact profile header: "Your profile" + Edit in one coloured row, photo beside the name */
.profile-bar { padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--grad); }
.profile-bar .eyebrow { margin: 0; color: rgba(255, 255, 255, .92); }
.profile-bar-edit { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.profile-bar-edit:hover { background: rgba(255, 255, 255, .34); }
.profile-row { padding: 16px 18px 14px; display: flex; align-items: center; gap: 14px; }
.profile-row .profile-photo { flex: 0 0 auto; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--brand-soft); }
.profile-row .avatar.large { width: 78px; height: 78px; flex-basis: 78px; }
.profile-row .profile-photo-edit { width: 26px; height: 26px; right: -2px; bottom: 0; border-width: 2px; font-size: 12px; }
.profile-row-text { min-width: 0; display: grid; gap: 4px; }
.profile-row-text h2 { margin: 0; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.profile-row-text .profile-facts { margin: 0; }
.profile-row-text .profile-bio { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-card > .profile-nudge { margin: 0 18px 14px; }

/* ---- Header account menu (photo + name ▾) ---- */
.account-menu-wrap { position: relative; }
.account-trigger { height: 42px; padding: 3px 10px 3px 3px; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); transition: background .15s, border-color .15s; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--line); background: var(--card); }
.account-trigger .account-email { max-width: 160px; color: var(--ink); font-weight: 400; }
.account-caret { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.account-trigger[aria-expanded="true"] .account-caret { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 300px; max-height: calc(100vh - 90px); padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 18px 50px rgba(var(--shade-rgb), .18); animation: menu-in .14s ease-out; }
.account-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.account-menu [role=menuitem] { width: 100%; min-height: 42px; padding: 8px 10px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; text-align: left; text-decoration: none; }
.account-menu [role=menuitem]:hover, .account-menu [role=menuitem]:focus-visible { outline: none; background: var(--tint-strong); }
.menu-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-strong); font-size: 15px; }
.account-menu .menu-me { padding: 10px; }
.menu-me .avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.menu-me strong { display: block; font-size: 16px; }
.menu-me small { display: block; color: var(--brand); font-size: 12px; font-weight: 400; }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }
.menu-badge { min-width: 20px; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.menu-badge.hidden { display: none; }
.side-badge[data-notif-badge] { background: #e0245e; }
/* Phones: the bottom bar's Profile tab has everything, so the header stays light (photo opens the menu as a sheet-like panel). */
@media (max-width: 760px) {
  .account-trigger { padding: 3px; }
  .account-trigger .account-email, .account-caret { display: none; }
  .account-menu { position: fixed; top: calc(64px + env(safe-area-inset-top)); right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 160px - env(safe-area-inset-top)); }
  .header-signout { display: none; }
}

/* ---- People (2026-11-14) ---- */
@media (max-width: 760px) {
  .bottom-nav { grid-template-columns: repeat(5, 1fr) !important; }
  .bottom-tab span { font-size: 11px; }
}
.people-heading { align-items: center; }
.round-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.round-icon.hidden { display: none; }
.round-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Setup */
.people-setup { padding: 20px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.people-setup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.people-setup-head h3 { margin: 0; font-size: 20px; }
.people-setup-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.people-setup .distance-slider { box-shadow: none; background: var(--tint); }
.people-setup-foot { display: flex; justify-content: space-between; gap: 10px; }
.people-setup-foot .link-button { color: var(--muted); font-size: 13px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 400; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.choice:active { transform: scale(.96); }
.choice.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(var(--brand-rgb), .25); }
/* Two-thumb age range on one track */
.dual-range { --from: 0%; --to: 100%; position: relative; height: 28px; }
.dual-range::before { position: absolute; top: 11px; right: 0; left: 0; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--track) var(--from), var(--g2) var(--from), var(--g3) var(--to), var(--track) var(--to)); content: ""; }
.dual-range .range { position: absolute; inset: 0; pointer-events: none; }
.dual-range .range::-webkit-slider-runnable-track, :root[data-theme="dark"] .dual-range .range::-webkit-slider-runnable-track { background: transparent; }
:root[data-theme="dark"] .dual-range .range::-moz-range-progress, :root[data-theme="dark"] .dual-range .range::-moz-range-track { background: transparent; }
.dual-range .range::-moz-range-track { background: transparent; }
.dual-range .range::-moz-range-progress { background: transparent; }
.dual-range .range::-webkit-slider-thumb { pointer-events: auto; }
.dual-range .range::-moz-range-thumb { pointer-events: auto; }

/* Empty / notice states */
.people-empty { padding: 36px 20px; display: grid; justify-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); text-align: center; box-shadow: var(--shadow-card); }
.people-empty h3 { margin: 6px 0 0; font-size: 20px; }
.people-empty p { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.people-empty-actions { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.people-orb { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-size: 36px; box-shadow: 0 0 0 10px rgba(var(--brand-rgb), .1), 0 0 0 22px rgba(var(--brand-rgb), .05); animation: orb-pulse 2.4s ease-in-out infinite; }
.people-orb.small { width: 52px; height: 52px; flex: 0 0 52px; font-size: 24px; box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .1); animation: none; }
@keyframes orb-pulse { 50% { box-shadow: 0 0 0 16px rgba(var(--brand-rgb), .08), 0 0 0 32px rgba(var(--brand-rgb), .03); } }

/* The card stack */
.deck-wrap { display: grid; justify-items: center; gap: 14px; }
.deck { position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4; max-height: calc(100dvh - 270px); min-height: 360px; }
.deck-card { position: absolute; inset: 0; overflow: hidden; border-radius: 24px; background: var(--night); box-shadow: 0 10px 30px rgba(var(--shade-rgb), .18); touch-action: pan-y; user-select: none; transform-origin: 50% 90%; }
.deck-card:not(.top) { transform: scale(.96) translateY(10px); filter: brightness(.92); }
.deck-card.top { cursor: grab; z-index: 2; }
.deck-card.top:active { cursor: grabbing; }
.deck-card.loading { background: linear-gradient(110deg, var(--track) 30%, var(--tint) 50%, var(--track) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.deck-card > img, .deck-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-photo-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; font-size: 96px; font-weight: 600; }
.deck-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(var(--night-rgb), .88)); content: ""; pointer-events: none; }
.deck-info { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 18px 18px 20px; display: grid; gap: 6px; color: #fff; }
.deck-info h3 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.deck-info h3 span { font-weight: 500; opacity: .9; }
.deck-meta { margin: 0; font-size: 14px; font-weight: 500; opacity: .92; }
.deck-bio { margin: 0; display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.45; opacity: .95; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.deck-moment { margin-top: 4px; padding: 9px 12px; display: flex; gap: 8px; align-items: flex-start; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; line-height: 1.4; text-align: left; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.deck-moment span:last-child { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.deck-stamp { position: absolute; top: 28px; z-index: 3; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-size: 30px; font-weight: 700; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.deck-stamp.yes { left: 22px; border-color: #3ddc97; color: #3ddc97; transform: rotate(-14deg); }
.deck-stamp.pass { right: 22px; border-color: #ff5d73; color: #ff5d73; transform: rotate(14deg); }
.deck-actions { display: flex; justify-content: center; gap: 26px; }
.deck-button { width: 68px; height: 68px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card); font-size: 30px; font-weight: 600; line-height: 1; box-shadow: 0 8px 22px rgba(var(--shade-rgb), .14); transition: transform .12s, box-shadow .15s; }
.deck-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(var(--shade-rgb), .18); }
.deck-button:active, .deck-button.pressed { transform: scale(.88); }
.deck-button.pass { color: #ff5d73; }
.deck-button.like { width: 76px; height: 76px; background: var(--grad); color: #fff; font-size: 34px; }
.deck-hint { margin: 0; color: var(--soft); font-size: 12px; text-align: center; }
@media (max-width: 760px) {
  .deck { max-height: calc(100dvh - 300px); }
  .deck-info h3 { font-size: 26px; }
}

/* It's a match! */
.match-sheet { width: min(100% - 32px, 420px); padding: 0; overflow: hidden; background: var(--grad); color: #fff; text-align: center; }
.match-sheet::backdrop { background: rgba(var(--shade-rgb), .72); }
.match-inner { padding: 30px 24px 22px; display: grid; justify-items: center; gap: 10px; }
.match-hearts span { display: inline-block; font-size: 52px; animation: heart-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.match-sheet h2 { margin: 0; color: #fff; font-size: 34px !important; letter-spacing: -.03em; }
.match-sheet p { margin: 0; opacity: .92; }
.match-avatars { margin: 10px 0 8px; display: flex; justify-content: center; }
.match-avatars .avatar { width: 104px; height: 104px; flex-basis: 104px; margin: 0; box-shadow: 0 0 0 4px var(--card), 0 10px 24px rgba(0, 0, 0, .2); }
.match-avatars .avatar + .avatar { margin-left: -18px; }
.button-light { background: #fff; color: var(--brand-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.match-later { color: #fff !important; opacity: .9; }

/* Chat options sheet */
.options-sheet { width: min(100% - 32px, 380px); padding: 12px; }
.options-list { margin-bottom: 10px; overflow: hidden; border-radius: 16px; background: var(--tint); }
.options-list button { width: 100%; min-height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.options-list button + button { border-top: 1px solid var(--line); }
.options-list button:hover { background: var(--tint-strong); }
.options-list button.danger { color: #c62a47; }
.options-list button.hidden { display: none; }
@media (max-width: 760px) {
  .options-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .options-sheet[open] { animation: sheet-up .2s ease-out; }
}

/* Chats: a brand-new match */
.chat-empty { margin: 24px auto 8px; display: grid; justify-items: center; gap: 10px; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.chat-empty strong { color: var(--ink); }
.chat-row-text.new-match { color: var(--brand) !important; font-weight: 400; }
.post-flag.muted { color: var(--muted); }

/* Footer: "Contact us" is a button (it opens the form) but must look exactly like the links beside it. */
body > footer { align-items: baseline; }
body > footer a, body > footer .link-button, .side-footer a, .side-footer .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
  cursor: pointer;
}
.side-footer a, .side-footer .link-button { color: var(--soft); }
body > footer a:hover, body > footer .link-button:hover, .side-footer a:hover, .side-footer .link-button:hover { color: var(--brand); }

/* Header: logo + (moderators) Admin link on the left */
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-pill { height: 32px; padding: 0 12px 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s, transform .12s; }
.admin-pill:hover { background: var(--brand-dark); }
.admin-pill:active { transform: scale(.96); }
.admin-pill.hidden { display: none; }
.admin-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) {
  .admin-pill { padding: 0 10px 0 8px; font-size: 12px; }
}

/* ---- "Create a post" card at the top of the feed (signed in), Facebook-style ---- */
.composer-card { margin-bottom: 18px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
html:not(.likely-signed-in) body:not(.signed-in) .composer-card { display: none; }
.composer-row { display: flex; align-items: center; gap: 12px; }
.composer-row .avatar { width: 44px; height: 44px; flex: 0 0 44px; }
.composer-input { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; overflow: hidden; border: 0; border-radius: 999px; background: var(--tint-strong); color: var(--muted); font-size: 15px; font-weight: 500; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background .15s; }
.composer-input:hover { background: var(--track); }
/* Stand apart from the feed: it's for making a post, not reading one. */
.composer-card { padding-bottom: 14px; border: 1.5px solid var(--brand-line); background: linear-gradient(160deg, var(--brand-tint), var(--card) 65%); }
:root[data-theme="dark"] .composer-card { border-color: rgba(var(--brand-rgb), .35); background: linear-gradient(160deg, var(--brand-soft), var(--card) 70%); }
.composer-title { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.composer-title h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.composer-title small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.composer-plus { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); color: #fff; font-size: 22px; font-weight: 600; line-height: 1; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }
.composer-input { display: flex; align-items: center; gap: 10px; padding-right: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.composer-input #composer-prompt { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-go { flex: 0 0 auto; min-height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; }

/* Dating strip: a heart, so it reads as swiping, not searching */
.strip-head { align-items: center !important; }
.strip-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }
.strip-icon svg { width: 18px; height: 18px; fill: #fff; }
.strip-head-text { min-width: 0; flex: 1; }
.strip-head-text small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
textarea.auto-grow { resize: none; overflow-y: auto; transition: height .1s ease; }
.composer-actions { margin-top: 10px; padding-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid var(--line); }
.composer-actions button { min-height: 40px; padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; transition: background .15s, color .15s; }
.composer-actions button:hover { background: var(--tint-strong); color: var(--ink); }
.composer-actions button span { font-size: 18px; }
@media (max-width: 560px) {
  .composer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Signed in: the feed heading steps back so posts (and the composer) lead */
body.signed-in #discover-view > .section-heading h2 { font-size: 20px; }
body.signed-in #discover-view > .section-heading { margin-top: 4px; }

/* ---- "People near you" strip on Discover (signed in) ---- */
.people-strip { margin-bottom: 18px; }
/* Inside the feed (after a few posts): a card of its own, like "People you may know" */
.people-strip.in-feed { margin: 0; padding: 16px 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(160deg, var(--brand-tint), var(--card) 55%); box-shadow: var(--shadow-card); }
:root[data-theme="dark"] .people-strip.in-feed { border-color: transparent; background: linear-gradient(160deg, var(--brand-soft), var(--card) 60%); }
.strip-arrows { display: none; gap: 6px; }
.strip-arrow { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.strip-arrow:hover { background: var(--tint-strong); }
@media (pointer: fine) { .strip-arrows { display: flex; } }
.people-strip.hidden, body:not(.signed-in) .people-strip { display: none; }
.strip-head { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.strip-head h3 { margin: 0; font-size: 17px; }
.strip-all { color: var(--brand) !important; font-size: 13px !important; font-weight: 500 !important; text-decoration: none !important; }
.strip-row { margin: 0 -4px; padding: 2px 4px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip-row::-webkit-scrollbar { display: none; }
.strip-person { position: relative; width: 118px; height: 160px; flex: 0 0 118px; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: var(--night); color: #fff; text-align: left; scroll-snap-align: start; box-shadow: var(--shadow-card); transition: transform .15s; }
.strip-person:hover { transform: translateY(-2px); }
.strip-person img, .strip-person .deck-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 44px; }
.strip-person::after { position: absolute; right: 0; bottom: 0; left: 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(var(--night-rgb), .85)); content: ""; }
.strip-person-info { position: absolute; right: 10px; bottom: 9px; left: 10px; z-index: 1; display: grid; gap: 1px; }
.strip-person-info strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.strip-person-info small { font-size: 11px; opacity: .9; }
.strip-more { width: 118px; height: 160px; flex: 0 0 118px; display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed var(--brand-line); border-radius: 18px; background: var(--brand-tint); color: var(--brand-dark); font-size: 13px; font-weight: 400; scroll-snap-align: start; }
.strip-more span { font-size: 28px; }
.strip-invite { width: 100%; padding: 14px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); color: var(--ink); text-align: left; box-shadow: var(--shadow-card); }
.strip-invite > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.strip-invite strong { font-size: 15px; }
.strip-invite small { color: var(--muted); font-size: 13px; }
.strip-invite > span:last-child { color: var(--brand); font-size: 20px; font-weight: 400; }

/* Wide screens: the side panels stick right under the header, so their first card lines up with the
   first card in the middle column (post box, profile card, …). */
@media (min-width: 1100px) {
  .side { top: 64px; max-height: calc(100vh - 64px); }
}

/* People: the cards and setup screen carry their own titles. While browsing, only a slim line
   ("Dating · within 50 km") and the settings button stay. */
.people-heading h2 { display: none; }
.people-heading { min-height: 44px; margin-bottom: 12px; align-items: center; }
.people-heading .eyebrow { margin: 0; }
#people-view.no-heading .people-heading { display: none; }

/* People setup choices: compact chips (same scale as the app's other chips) */
.choice { min-height: 36px; padding: 0 14px; border-width: 1px; font-size: 13px; }
.choice.active { box-shadow: 0 3px 8px rgba(var(--brand-rgb), .2); }
.choice-row { gap: 6px; }
.people-setup .field-label { margin-top: 2px; font-size: 13px; }
@media (max-width: 420px) {
  .choice { min-height: 34px; padding: 0 12px; }
}

/* People: "no more people" pop-up, preference chips, one-tap fixes, "already agreed" note */
.people-empty-sheet { width: min(100% - 32px, 420px); text-align: center; }
.people-empty-sheet[open] { display: grid; justify-items: center; gap: 12px; }
.people-empty-sheet .dialog-close { position: absolute; top: 14px; right: 14px; }
.people-empty-sheet h2 { margin: 6px 0 0; font-size: 22px !important; }
.people-empty-sheet .dialog-context { max-width: 320px; }
.pref-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pref-chips span { padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 400; }
.people-empty p .pref-chips { margin: 4px 0 10px; }
.people-empty-text { display: block; }
.quick-fixes { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quick-fixes:empty { display: none; }
.quick-fixes .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
.people-empty-sheet > .button-full { margin-top: 2px; }
.people-later { color: var(--muted) !important; font-size: 13px !important; }
.people-empty-actions .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
.agreed-note { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: #eef8f2; color: #1d6b45; font-size: 12px; line-height: 1.5; }

/* ---- Confirmation modal (replaces the browser's confirm/alert/prompt) ---- */
.ask-sheet { width: min(100% - 32px, 400px); padding: 26px 24px 20px; text-align: center; }
.ask-sheet form { justify-items: center; gap: 10px; }
.ask-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 28px; }
.ask-icon.hidden { display: none; }
.ask-sheet h2 { margin: 4px 0 0; font-size: 21px !important; line-height: 1.3; }
.ask-sheet .dialog-context { max-width: 320px; font-size: 14px; }
.ask-sheet .dialog-context.hidden { display: none; }
.ask-field { width: 100%; display: grid; gap: 6px; text-align: left; }
.ask-field.hidden { display: none; }
.ask-field span { font-size: 13px; font-weight: 400; }
.ask-sheet .ask-field input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15px; }
.ask-sheet .ask-field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.ask-sheet .form-error { width: 100%; margin: 0; }
.ask-actions { width: 100%; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-actions .button { min-height: 46px; }
.ask-actions .button.hidden { display: none; }
.ask-actions:has(.hidden) { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .ask-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .ask-sheet[open] { animation: sheet-up .2s ease-out; }
}

/* ---- People pop-up (full screen on phones, a large window on computers) ---- */
.people-sheet { width: min(100% - 32px, 500px); height: min(880px, calc(100dvh - 32px)); max-height: none; padding: 0; overflow: hidden; background: var(--bg); }
.people-sheet[open] { display: flex; flex-direction: column; }
.people-head { flex: 0 0 auto; min-height: 60px; padding: 10px 12px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: var(--card); }
.people-head .eyebrow { margin: 0; }
.people-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.people-head .round-icon { width: 40px; height: 40px; flex-basis: 40px; box-shadow: none; }
.people-head .people-close { margin: 0; justify-self: auto; }
#people-view.no-heading .people-head .eyebrow, #people-view.no-heading #people-settings-open { visibility: hidden; }
.people-body { flex: 1 1 auto; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.people-sheet .deck { max-height: calc(100dvh - 300px); }
.people-sheet .people-setup, .people-sheet .people-empty { box-shadow: none; }
@media (max-width: 760px) {
  .people-sheet { width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0; }
  .people-sheet[open] { animation: sheet-up .22s ease-out; }
  .people-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .people-body { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
  .people-sheet .deck { max-height: calc(100dvh - 260px); }
}

/* Demo people (moderators only): a clear badge on their cards */
.demo-badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(30, 23, 32, .75); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.strip-person .demo-badge { top: 8px; left: 8px; padding: 2px 7px; font-size: 9px; }


/* People pop-up header: title + subtitle while choosing preferences (keeps the form short) */
.people-head-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.people-head-title.hidden, .people-head .eyebrow.hidden { display: none; }
.people-head-title h2 { margin: 0; overflow: hidden; font-size: 18px !important; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.people-head-title p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.people-orb.tiny { width: 40px; height: 40px; flex: 0 0 40px; font-size: 19px; box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .1); animation: none; }
/* While the title shows, the hidden settings button mustn't take room */
#people-view.no-heading #people-settings-open { display: none; }
.people-sheet .people-setup { padding-top: 16px; }

/* Desktop: "Trending places" on the right already covers the city bubbles, so the feed follows "People near you" directly.
   (Phones and tablets have no right panel, so the bubbles stay there as the quick way to jump to a city.) */
@media (min-width: 1100px) {
  #discover-view > .stories { display: none; }
}

/* ---- Feed head: one heading, a Filters button, one row of post types, removable filter chips ---- */
.feed-head { margin-top: 6px; align-items: flex-end; }
.filter-toggle { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.filter-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-toggle:hover, .filter-toggle.on { border-color: var(--ink); }
.filter-toggle.on { background: var(--solid); color: var(--on-solid); }
.filter-count { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; }
.filter-count.hidden { display: none; }
#discover-view .kind-bar { margin: 10px 0 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#discover-view .kind-bar::-webkit-scrollbar { display: none; }
.active-filters { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters.hidden { display: none; }
.active-filter { min-height: 32px; padding: 0 8px 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 500; }
.active-filter span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--brand-rgb), .15); font-size: 14px; }
.clear-all-filters { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.clear-all-filters:hover { background: var(--tint-strong); }
/* Follow the picked place or community */
.follow-chip { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }
.follow-chip.on { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
/* The Following screen */
.follow-section { margin: 18px 4px 8px; font-size: 15px; font-weight: 700; }
.follow-section:first-child { margin-top: 4px; }
.follow-row { padding: 6px; display: flex; align-items: center; gap: 12px; border-radius: 14px; }
.follow-row:hover { background: var(--tint); }
.follow-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 20px; }
.follow-icon .flag { width: 24px; height: 18px; }
.follow-main { min-width: 0; flex: 1; padding: 4px 0; display: grid; gap: 2px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.follow-main strong { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.follow-main small { color: var(--muted); font-size: 13px; }
.follow-off { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.follow-off:hover { background: var(--tint-strong); }
.empty-state .empty-clear { margin: 14px auto 0; display: flex; }
.active-filter .flag { width: 16px; height: 12px; flex-basis: 16px; }
.feed-filters { margin-top: 12px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.feed-filters.hidden { display: none; }
.feed-filters .board-filter { margin: 0; }
.feed-filters .community-bar { margin: 0; }
.feed-filters .field-label { margin: 0; }
.filter-done { justify-self: end; }
#discover-view > #feed { margin-top: 14px; }
body.signed-in #discover-view > .section-heading { margin-top: 6px; }

/* The city bubbles are gone everywhere: places are in Filters (search, Near me), Travel is a chip in the post-type row,
   and "Trending places" covers popular places on desktop. */
#discover-view > .stories { display: none !important; }
.kind-chip[data-travel-toggle].active { border-color: transparent; background: var(--grad); color: #fff; }

/* Heading, post types, active filters and the Filters panel share one card (like the post box above) */
.feed-card { margin-top: 4px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.feed-card .feed-head, body.signed-in #discover-view .feed-card .section-heading { margin: 0; }
.feed-card .feed-head .eyebrow { margin-bottom: 2px; }
.feed-card .feed-head h2 { margin: 0; }
#discover-view .feed-card .kind-bar { margin: 12px -16px 0; padding: 0 16px; }
.feed-card .active-filters { margin-top: 10px; }
.feed-card .feed-filters { margin: 14px -16px -14px; padding: 14px 16px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-card) var(--radius-card); background: var(--tint); box-shadow: none; }
.feed-card .feed-filters .place-field { background: var(--card); }
#discover-view > .feed-card + #feed { margin-top: 14px; }
@media (max-width: 760px) {
  .feed-card { padding: 14px 14px 12px; }
  #discover-view .feed-card .kind-bar { margin: 12px -14px 0; padding: 0 14px; }
  .feed-card .feed-filters { margin: 12px -14px -12px; padding: 12px 14px 14px; }
}

.feed-card .feed-head h2 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
@media (max-width: 760px) { .feed-card .feed-head h2 { font-size: 20px; white-space: nowrap; } }


@media (max-width: 760px) { .feed-card .feed-head { gap: 8px; } .feed-card .filter-toggle { min-height: 36px; padding: 0 11px; gap: 5px; font-size: 13px; flex: 0 0 auto; } .feed-card .feed-head > div { min-width: 0; } .feed-card .feed-head h2 { overflow: hidden; text-overflow: ellipsis; } }


/* ---- Dark/light switch (account menu, settings list) ---- */
.menu-switch { position: relative; width: 40px; height: 24px; flex: 0 0 40px; margin-left: auto; border-radius: 999px; background: var(--track); transition: background .2s; }
.menu-switch::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; content: ""; }
.menu-switch.on { background: var(--grad); }
.menu-switch.on::after { transform: translateX(16px); }
.settings-list button:has(.menu-switch)::after { content: none; }

/* ---- Dark theme: one-off colours that aren't variables ---- */
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .icon-button:hover, :root[data-theme="dark"] button.kind-label:hover, :root[data-theme="dark"] .side-stats button:hover, :root[data-theme="dark"] .composer-input:hover { background: var(--tint-strong); }
:root[data-theme="dark"] .notice, :root[data-theme="dark"] .profile-nudge, :root[data-theme="dark"] .chat-notice, :root[data-theme="dark"] .a-alert { background: var(--warn-bg); color: var(--warn-ink); }
:root[data-theme="dark"] .notice code, :root[data-theme="dark"] mark.todo { background: rgba(242, 211, 138, .15); color: var(--warn-ink); }
:root[data-theme="dark"] .status-badge { background: var(--tint-strong); }
:root[data-theme="dark"] .status-badge.live, :root[data-theme="dark"] .agreed-note, :root[data-theme="dark"] .a-alert.good, :root[data-theme="dark"] .a-badge.good { background: var(--good-bg); color: var(--good-ink); }
:root[data-theme="dark"] .status-badge.removed, :root[data-theme="dark"] .tag-remove:hover, :root[data-theme="dark"] .form-error, :root[data-theme="dark"] .a-alert.bad, :root[data-theme="dark"] .a-badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
:root[data-theme="dark"] .a-badge.warn, :root[data-theme="dark"] .u-counts div.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #5a4a1e; }
:root[data-theme="dark"] .a-badge.info { background: #1c2440; color: #a9bdff; }
:root[data-theme="dark"] .a-demo { background: var(--tint); border-color: var(--line-strong); }
:root[data-theme="dark"] .deletion-status { background: var(--good-bg) !important; border-color: #24563d !important; color: var(--good-ink); }
:root[data-theme="dark"] .unlock-panel, :root[data-theme="dark"] .empty-state { background: rgba(36, 37, 38, .92); }
:root[data-theme="dark"] .photo-preview, :root[data-theme="dark"] .profile-progress { background: var(--tint-strong); }
:root[data-theme="dark"] .chat-messages .bubble.mine, :root[data-theme="dark"] .a-transcript p.them { background: var(--bubble-mine); }
:root[data-theme="dark"] .chat-messages .bubble.mine .ticks.read { color: #6cc8ff; }
:root[data-theme="dark"] .range::-moz-range-track { background: var(--track); }
:root[data-theme="dark"] .people-orb { box-shadow: 0 0 0 10px rgba(var(--brand-rgb), .12), 0 0 0 22px rgba(var(--brand-rgb), .05); }
:root[data-theme="dark"] .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--g1) 0%, var(--g3) var(--fill), var(--track) var(--fill)); }
:root[data-theme="dark"] .range::-moz-range-progress { background: linear-gradient(90deg, var(--g1), var(--g3)); }
:root[data-theme="dark"] .dual-range::before { background: linear-gradient(90deg, var(--track) var(--from), var(--g1) var(--from), var(--g3) var(--to), var(--track) var(--to)); }
:root[data-theme="dark"] .side-travel { background: linear-gradient(150deg, #20232f, #272330); border-color: transparent; }
:root[data-theme="dark"] .side-travel p { color: #b8bce0; }
:root[data-theme="dark"] .legal-page p, :root[data-theme="dark"] .legal-page li { color: #d0d2d6; }
:root[data-theme="dark"] .journey {background: linear-gradient(100deg, #1a2038, #221a38); color: #c3cbff; }
:root[data-theme="dark"] .journey-arrow, :root[data-theme="dark"] .journey-note { color: #959ed6; }
:root[data-theme="dark"] .journey-ref { color: #c3cbff; }
:root[data-theme="dark"] .kind-chip, :root[data-theme="dark"] .community-chip, :root[data-theme="dark"] .chip, :root[data-theme="dark"] .choice, :root[data-theme="dark"] .a-chip { color: var(--muted); }
:root[data-theme="dark"] .push-banner { background: linear-gradient(120deg, var(--brand-soft), var(--tint)); }
:root[data-theme="dark"] .ask-icon { background: var(--brand-soft); }
:root[data-theme="dark"] img.avatar, :root[data-theme="dark"] .a-avatar { background: var(--tint-strong); }
:root[data-theme="dark"] .dialog::backdrop { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] .brand { color: var(--ink); }
:root[data-theme="dark"] .place-list { background: var(--card); }
:root[data-theme="dark"] .c-grid { stroke: var(--line); }
:root[data-theme="dark"] .c-bar { fill: var(--brand); }
:root[data-theme="dark"] .c-col.on .c-bar { fill: var(--brand-dark); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color: var(--ink); }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: var(--soft); }
.people-strip.invite .strip-arrows { display: none; }
.people-strip, .people-strip .strip-row { min-width: 0; max-width: 100%; }
/* Occupation: job title + kind of work (full width in the sign-up step; title only in its own pop-up) */
.basics-typed .basics-occupation { grid-column: 1 / -1; display: grid; gap: 8px; }
.basics-occupation > label { font-size: 13px; font-weight: 600; }
.basics-occupation .basics-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-item-body .basics-occupation > label { display: none; }
.profile-item-body .basics-occupation { display: grid; gap: 12px; }
.basics-chips .chip.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .25); }
