/* ---------- Frame ---------- */
.app {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(248, 212, 187, .55), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(224, 238, 235, .7), transparent 60%),
    var(--cream);
}
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; outline: none; }
.screen::-webkit-scrollbar { width: 0; }
.view { animation: viewIn .35s var(--ease); padding-bottom: 28px; min-height: 100%; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Desktop Navigation and Grid */
/* Mobile defaults */
@media (max-width: 899px) {
  .dt-logo { display: none; }
  #tab-links {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }
  .right-rail { display: none; }
}

/* ---------- Top bars ---------- *//* MomSakhi prototype — design system + components.
   Palette: warm cream paper, marigold + terracotta warmth, deep teal for primary
   actions (high contrast with white text), plum as a quiet secondary accent.
   Mobile-first: on phones the app fills the viewport; on desktop it sits in a
   phone frame with a short "showcase" caption beside it for demos. */

:root {
  --cream: #FFF7EE;
  --paper: #FFFDF9;
  --peach: #FDE9DA;
  --peach-2: #F8D4BB;
  --marigold: #E8A33D;
  --marigold-soft: #FCEFD3;
  --terracotta: #B9572F;
  --terracotta-soft: #F8E1D5;
  --teal: #1E4D4F;
  --teal-2: #2C6466;
  --teal-soft: #E0EEEB;
  --plum: #5A2D4C;
  --plum-soft: #F2E2EB;
  --ink: #2A1F1B;
  --ink-2: #6A584F;
  --ink-3: #8F7E74;
  --line: #EFE2D5;
  --danger: #A63A2B;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(80, 45, 20, .06), 0 4px 14px rgba(80, 45, 20, .06);
  --shadow-2: 0 2px 6px rgba(80, 45, 20, .08), 0 14px 34px rgba(80, 45, 20, .12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid rgba(232, 163, 61, .7); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ---------- Top bars ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; background: rgba(255, 247, 238, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.topbar h1 { font-size: 24px; flex: 1; }
.topbar .sub { font-size: 12px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .75); box-shadow: var(--shadow-1); transition: transform .15s var(--ease), background .2s;
  position: relative;
}
.icon-btn:hover { background: #fff; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 2px #fff; }
.backbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 5; background: rgba(255, 247, 238, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backbar .title { flex: 1; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(30, 77, 79, .28); }
.btn-primary:hover { background: var(--teal-2); }
.btn-primary[disabled] { background: #A9BDBB; box-shadow: none; cursor: not-allowed; }
.btn-warm { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px rgba(185, 87, 47, .28); }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-google {
  background: #ffffff; color: #3c4043; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
  font-weight: 600; gap: 12px;
}
.btn-google:hover { background: #f8fafd; border-color: #c2e7ff; box-shadow: 0 1px 3px rgba(60, 64, 67, .16); }
.btn-google:active { background: #f1f3f4; }
.btn-google .google-icon { flex: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.link { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s, box-shadow .2s, color .2s, transform .12s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: none; }
.chip .check { display: none; width: 14px; height: 14px; }
.chip[aria-pressed="true"] .check { display: block; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--peach); color: #7A3B1F; }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag.plum { background: var(--plum-soft); color: var(--plum); }
.tag.marigold { background: var(--marigold-soft); color: #7A4F0C; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, #fff, var(--paper)); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  border: 1px solid rgba(239, 226, 213, .7);
}
.section { padding: 0 18px; }
.section + .section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.section-head h2 { font-size: 19px; }
.section-head .muted { font-size: 13px; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; color: #fff; position: relative;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.hue-teal { background: linear-gradient(135deg, #2C6466, #1E4D4F); }
.hue-marigold { background: linear-gradient(135deg, #EDB45A, #D68B22); }
.hue-terracotta { background: linear-gradient(135deg, #D07650, #B0502A); }
.hue-plum { background: linear-gradient(135deg, #7A4467, #5A2D4C); }
.hue-anon { background: linear-gradient(135deg, #EAD8C8, #D9C1AC); color: #6A4A36; }
.hue-anon svg { width: 20px; height: 20px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px #fff; }
.avatar-stack .avatar + .avatar { margin-left: -5px; }

/* ---------- Welcome ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding: 0 24px 28px; position: relative; overflow: hidden; }
.toran {
  height: 18px; margin: 0 -24px; flex: none;
  background:
    radial-gradient(circle at 12px 0, var(--marigold) 9px, transparent 9.5px) 0 0 / 24px 18px repeat-x,
    radial-gradient(circle at 12px 0, var(--terracotta) 5px, transparent 5.5px) 12px 0 / 24px 18px repeat-x;
  opacity: .9;
}
.welcome .mandala { position: absolute; right: -110px; top: 40px; width: 320px; height: 320px; opacity: .16; color: var(--terracotta); pointer-events: none; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome-hero { margin-top: 36px; position: relative; }
.welcome-hero .logo-mark { width: 64px; height: 64px; }
.welcome-hero h1 { font-size: 36px; margin-top: 24px; letter-spacing: -.02em; line-height: 1.08; color: var(--ink); }
.welcome-hero h1 em { font-style: italic; color: var(--terracotta); }
.welcome-hero p { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 30ch; }
/* What "sakhi" means, under the tagline: small and quiet so the hero stays the tagline. */
.welcome-hero p.sakhi-note { margin-top: 10px; font-size: 13.5px; max-width: 44ch; color: var(--ink-3, var(--ink-2)); }
.welcome-hero p.sakhi-note b { color: var(--terracotta); font-weight: 600; }
.promise { margin-top: 22px; display: grid; gap: 10px; }
.promise-row { display: flex; gap: 14px; align-items: center; padding: 13px 16px; }
.promise-row .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.promise-row b { display: block; font-size: 14.5px; }
.promise-row div span { font-size: 13px; color: var(--ink-2); }
.welcome-cta { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.welcome-cta-header { display: none; }
.welcome-cta .tiny { text-align: center; }
/* Static "About MomSakhi" (index.html, crawlable). Before JS it is the only thing
   in #screen; after JS app.js moves it to the bottom of the welcome view. */
.about-static { margin: 28px 0 0; padding: 20px 4px 4px; border-top: 1px solid var(--line); color: var(--ink-2); position: relative; }
.screen > .about-static { max-width: 560px; margin: 48px auto; padding: 24px; border-top: 0; }
.about-static h2 { font-size: 18px; color: var(--teal); margin-bottom: 8px; }
.about-static p { font-size: 14px; line-height: 1.55; margin-top: 6px; }
.about-static .about-tagline { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.about-static .about-mission { color: var(--ink); font-weight: 500; }
.about-static a { color: var(--plum); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 500; margin: 2px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Onboarding ---------- */
.ob { padding: 6px 22px 28px; min-height: 100%; display: flex; flex-direction: column; }
.ob-steps { display: flex; gap: 6px; margin: 8px 0 22px; }
.ob-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.ob-steps i.on { background: var(--marigold); }
.ob h1 { font-size: 28px; }
.ob .lead { color: var(--ink-2); margin-top: 8px; }
.field { margin-top: 22px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(44, 100, 102, .12); }
textarea.input { min-height: 140px; resize: none; line-height: 1.55; }
/* Optional free-text city (onboarding, meetups gate, Me sheet). */
.city-field { margin-top: 22px; }
.city-field .tiny { font-weight: 500; }
.city-gate { margin: 8px 14px 0; padding: 22px 18px; text-align: center; }
.city-gate .cg-i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--teal-soft); font-size: 28px; }
.city-gate h2 { font-size: 21px; margin-top: 12px; }
.city-gate p.muted { font-size: 14px; margin: 8px auto 0; max-width: 40ch; }
.city-gate .city-field { margin-top: 16px; text-align: left; }
.city-gate .btn { margin-top: 14px; }
.city-strip { display: flex; align-items: center; gap: 6px; padding: 0 18px 10px; margin-top: -4px; font-size: 13.5px; font-weight: 600; color: var(--teal); }
.city-strip svg { width: 15px; height: 15px; }
.city-strip .link { font-size: 13px; margin-left: 4px; }
.city-strip .tiny { font-weight: 500; }
.ob-foot { margin-top: auto; padding-top: 24px; }

.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.toggle-row .grow { flex: 1; }
.toggle-row b { display: block; font-size: 14.5px; }
.toggle-row .grow span { font-size: 12.5px; color: var(--ink-2); }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: #D9CCC1; transition: background .25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.verify-card { padding: 18px; margin-top: 16px; display: flex; gap: 14px; align-items: flex-start; }
.verify-card .vi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--plum-soft); color: var(--plum); }
.verify-card .vi svg { width: 22px; height: 22px; }
.verify-card .grow { flex: 1; }
.verify-card b { display: block; }
.verify-card .state { margin-top: 10px; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; color: #2F7A5B; font-weight: 700; font-size: 13px; }
.done-badge svg { width: 16px; height: 16px; }
.phone-input { display: flex; gap: 8px; }
.phone-input .cc { width: 70px; flex: none; text-align: center; }

/* ---------- Home ---------- */
.hello { padding: 4px 18px 6px; }
.hello h2 { font-size: 26px; letter-spacing: -.015em; }
.hello p { color: var(--ink-2); margin-top: 4px; font-size: 14px; }
.circles-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x mandatory; }
.circles-row::-webkit-scrollbar { display: none; }
.circle-card {
  flex: none; width: 128px; padding: 14px; text-align: left; scroll-snap-align: start;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.circle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.circle-card .ce { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--peach); }
.circle-card:nth-child(3n+2) .ce { background: var(--teal-soft); }
.circle-card:nth-child(3n) .ce { background: var(--marigold-soft); }
.circle-card b { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.3; min-height: 35px; }
.circle-card span { font-size: 11.5px; color: var(--ink-3); }
.circle-card[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--teal), var(--shadow-1); }

.filter-bar { display: flex; gap: 8px; padding: 2px 18px 12px; overflow-x: auto; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .chip { flex: none; }

.feed { display: grid; gap: 12px; padding: 0 14px; }
.post { padding: 16px; transition: transform .15s var(--ease), box-shadow .2s; }
.post.clickable { cursor: pointer; }
.post.clickable:hover { box-shadow: var(--shadow-2); }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.post-head .who > span { font-size: 12px; color: var(--ink-3); }
.post h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.35; margin-top: 12px; letter-spacing: -.005em; }
.post .body { margin-top: 6px; color: #4A3B34; font-size: 14.5px; }
.post .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--cream); color: var(--ink-2); transition: background .2s, color .2s, transform .15s var(--ease);
}
.react .e { font-size: 15px; line-height: 1; }
.react:hover { background: var(--peach); }
.react[aria-pressed="true"] { background: var(--marigold-soft); color: #6E4708; box-shadow: inset 0 0 0 1.5px rgba(232, 163, 61, .55); }
.react.pop .e { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45) rotate(-8deg); } }
.replies-count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.replies-count svg { width: 15px; height: 15px; }
.kind-banner { margin: 0 14px 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--plum), #6E3A5E); color: #fff; box-shadow: var(--shadow-1); }
.kind-banner .kb-i { font-size: 24px; }
/* Add to Home Screen hint (Home, once per device). */
.install-hint { margin: 12px 14px 0; padding: 12px 12px 12px 14px; display: flex; gap: 10px; align-items: center; background: var(--marigold-soft); border: 1px solid var(--line); }
.install-hint .ih-i { font-size: 22px; }
.install-hint b { display: block; font-size: 14px; }
.install-hint span:not(.ih-i) { display: block; font-size: 12.5px; color: var(--text-muted, #6b5a52); }
.install-hint .icon-btn { width: 32px; height: 32px; font-size: 14px; }
/* "Open in Chrome or Safari" card: Google blocks sign-in in in-app browsers. */
.iab-card { padding: 14px 16px; display: grid; gap: 6px; text-align: left; background: var(--terracotta-soft); border: 1px solid var(--terracotta); }
.iab-card > b { font-size: 15px; color: var(--terracotta); }
.iab-card > span { font-size: 13px; line-height: 1.4; }
.iab-card .iab-link { font-size: 13px; padding: 8px 10px; margin-top: 4px; background: var(--paper); }
.iab-card .iab-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.iab-card .iab-actions .btn { flex: 1; text-decoration: none; text-align: center; }
.welcome-hero .iab-card { margin: 0 0 18px; position: relative; z-index: 1; }
/* Google sign-in failure (showSignInFailed): same warm card, above the button. */
.signin-error { margin: 0 0 12px; }
.kind-banner b { display: block; font-size: 14px; }
.kind-banner span { font-size: 12.5px; opacity: .85; }
.circle-hero { margin: 0 14px 14px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.circle-hero .ce { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--peach); flex: none; }
.circle-hero h2 { font-size: 20px; }

/* ---------- Ask ---------- */
.compose { padding: 0 18px; }
.compose .field:first-child { margin-top: 6px; }
.circle-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.counter { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.demo-link { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.anon-preview { margin-top: 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }

.nudge {
  margin-top: 14px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, #FFF6E6, #FDEFD9);
  box-shadow: inset 0 0 0 1.5px rgba(232, 163, 61, .45); animation: viewIn .3s var(--ease);
}
.nudge-head { display: flex; gap: 10px; align-items: center; }
.nudge-head .ni { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.nudge-head b { font-size: 14.5px; }
.nudge p { font-size: 13.5px; color: #5C4630; margin-top: 8px; }
.nudge mark { background: rgba(185, 87, 47, .16); color: var(--danger); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.nudge .suggest { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13.5px; color: var(--ink); }
.nudge .suggest ins { text-decoration: none; background: var(--teal-soft); color: var(--teal); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.nudge-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.nudge-actions .btn { flex: 1; }
.nudge .skip { display: block; margin: 10px auto 0; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; }

/* ---------- Question detail ---------- */
.q-detail { padding: 0 14px; }
.q-detail .post h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.answers-head { padding: 18px 18px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.answers-head h2 { font-size: 18px; }
.answer { padding: 14px 16px; }
.answer + .answer { margin-top: 10px; }
.answer.expert { background: linear-gradient(180deg, #F3FAF8, #fff); border-color: #CFE4DF; }
.expert-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; }
.expert-badge svg { width: 12px; height: 12px; }
.answer .body { margin-top: 8px; font-size: 14.5px; color: #43352F; }
.answers { padding: 0 14px; }
.reply-box { position: sticky; bottom: 0; padding: 10px 14px 14px; background: linear-gradient(rgba(255, 247, 238, 0), var(--cream) 30%); }
.reply-inner { display: flex; gap: 8px; align-items: flex-end; padding: 8px 8px 8px 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-2); }
.reply-inner textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 24px; max-height: 120px; padding: 6px 0; background: transparent; line-height: 1.45; }
.send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s; }
.send-btn:active { transform: scale(.92); }
.send-btn svg { width: 18px; height: 18px; }
.reply-anon { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 0 6px 8px; }
.reply-anon .switch { width: 38px; height: 22px; }
.reply-anon .switch::after { width: 16px; height: 16px; }
.reply-anon .switch[aria-checked="true"]::after { transform: translateX(16px); }
.empty-answers { text-align: center; padding: 26px 20px; color: var(--ink-2); }
.empty-answers .ea { font-size: 34px; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(42, 31, 27, .38); z-index: 40; animation: fadeIn .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--paper); border-radius: 26px 26px 0 0;
  padding: 10px 18px 24px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .15); animation: sheetUp .3s var(--ease);
}
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; margin-bottom: 4px; }
.sheet .muted { font-size: 13.5px; }
.sheet-list { margin-top: 14px; display: grid; gap: 6px; }
.sheet-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; transition: background .2s; }
.sheet-item:hover { background: var(--cream); }
.sheet-item svg { width: 20px; height: 20px; flex: none; }
.sheet-item.danger { color: var(--danger); }
.sheet-item small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Google Account Chooser ---------- */
.google-chooser { text-align: left; }
.gc-header { text-align: center; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.gc-header .google-icon { margin: 0 auto 8px; display: block; }
.gc-header h3 { font-size: 18px; margin: 0 0 2px; color: var(--ink); }
.gc-header p { font-size: 13px; margin: 0; }
.gc-accounts { display: grid; gap: 8px; }
.gc-account-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px;
  border-radius: var(--r-md); background: #ffffff; border: 1px solid var(--line);
  box-shadow: none; transition: background .15s, border-color .15s;
}
.gc-account-item:hover { background: #f8fafd; border-color: #c2e7ff; }
.gc-account-item .avatar { flex: none; font-size: 14px; font-weight: 600; }
.gc-account-item b { display: block; font-size: 14px; color: var(--ink); }
.gc-account-item small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; }
.gc-disclaimer { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: 12px 4px 4px; line-height: 1.4; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 60; opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-2); transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; max-width: 90%;
  overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Nearby ---------- */
.optin { padding: 10px 22px 28px; text-align: center; min-height: 100%; display: flex; flex-direction: column; }
.optin-art { margin: 18px auto 4px; width: 220px; height: 170px; }
.optin h1 { font-size: 26px; margin-top: 10px; }
.optin .lead { color: var(--ink-2); margin: 10px auto 0; max-width: 32ch; }
.optin-list { text-align: left; margin-top: 22px; display: grid; gap: 10px; }
.optin-list .row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.optin-list .row .oi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--teal-soft); color: var(--teal); }
.optin-list .row .oi svg { width: 17px; height: 17px; }
.optin-list .row b { display: block; font-size: 14px; }
.optin .toggle-row { margin-top: 22px; text-align: left; }

.map-card { margin: 0 14px; padding: 10px; overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.map-legend { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 2px; font-size: 12px; color: var(--ink-2); }
.map-legend span { display: inline-flex; gap: 6px; align-items: center; }
.map-legend svg { width: 14px; height: 14px; }
.hood { cursor: pointer; transition: opacity .2s; }
.hood circle.halo { transition: r .3s var(--ease); }
.hood.active circle.halo { fill: rgba(185, 87, 47, .28); }
.mom-list { display: grid; gap: 12px; padding: 0 14px; }
.mom { padding: 16px; }
.mom-top { display: flex; gap: 12px; align-items: center; }
.mom-top .grow { flex: 1; min-width: 0; }
.mom-top b { font-size: 15px; display: block; }
.mom-top .loc { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.mom-top .loc svg { width: 13px; height: 13px; }
.mom .rows { margin-top: 12px; display: grid; gap: 8px; }
.mom .rows .r { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.mom .rows .r .k { width: 74px; flex: none; color: var(--ink-3); font-weight: 600; font-size: 12px; padding-top: 3px; }
.mom .rows .chips { gap: 6px; }
.mom-actions { margin-top: 14px; display: flex; gap: 8px; }
.mom-actions .btn { flex: 1; }
.status-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.status-note svg { width: 14px; height: 14px; }
.privacy-strip { margin: 12px 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--teal-soft); color: var(--teal); display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 600; }
.privacy-strip svg { width: 16px; height: 16px; flex: none; }

/* ---------- Meetups ---------- */
.event { padding: 14px; display: flex; gap: 14px; }
.event + .event { margin-top: 12px; }
.date-tile { width: 60px; flex: none; border-radius: 16px; overflow: hidden; text-align: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); align-self: flex-start; }
.date-tile .m { background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 0; }
.date-tile .d { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; padding-top: 4px; }
.date-tile .w { font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; letter-spacing: .06em; }
.event .grow { flex: 1; min-width: 0; }
.event h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; }
.event .meta { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; display: grid; gap: 2px; }
.event .meta span { display: flex; gap: 6px; align-items: center; }
.event .meta svg { width: 13px; height: 13px; flex: none; }
.event .desc { font-size: 13px; margin-top: 8px; color: #4A3B34; }
.event-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.event-foot .going { font-size: 12px; color: var(--ink-2); flex: 1; }
.rsvp[aria-pressed="true"] { background: #2F7A5B; box-shadow: 0 6px 16px rgba(47, 122, 91, .25); }
.events { padding: 0 14px; }
.seg { display: flex; margin: 0 18px 14px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; padding: 8px 0; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.host-cta { margin: 16px 14px 0; padding: 16px; display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, var(--marigold-soft), var(--peach)); }
.host-cta .grow { flex: 1; }
.host-cta b { display: block; font-size: 14.5px; }
.host-cta .grow span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Chat ---------- */
.chat-view { display: flex; flex-direction: column; min-height: 100%; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; position: sticky; top: 0; z-index: 5; background: rgba(255, 247, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: 15px; }
.chat-head .grow span { font-size: 12px; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.day-sep { text-align: center; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin: 4px 0 8px; }
.safety-pill { align-self: center; text-align: center; max-width: 290px; font-size: 12px; color: var(--teal); background: var(--teal-soft); padding: 8px 12px; border-radius: 14px; margin-bottom: 8px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; animation: viewIn .25s var(--ease); }
.msg .t { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.msg.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--shadow-1); }
.msg.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.typing { align-self: flex-start; background: #fff; padding: 12px 16px; border-radius: 20px; box-shadow: var(--shadow-1); display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-input { position: sticky; bottom: 0; padding: 10px 12px 14px; background: linear-gradient(rgba(255, 247, 238, 0), var(--cream) 35%); }
.blocked-note { text-align: center; padding: 30px 24px; color: var(--ink-2); }
.inbox { padding: 0 14px; display: grid; gap: 10px; }
.inbox-row { display: flex; gap: 12px; align-items: center; padding: 14px; text-align: left; width: 100%; }
.inbox-row .grow { flex: 1; min-width: 0; }
.inbox-row b { display: block; font-size: 14.5px; }
.inbox-row .grow span { font-size: 13px; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Profile ---------- */
.profile-card { margin: 0 14px; padding: 20px; text-align: center; position: relative; overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; background: linear-gradient(120deg, var(--peach-2), var(--marigold-soft)); }
.profile-card .avatar { margin: 18px auto 0; box-shadow: 0 0 0 4px #fff; }
.profile-card h2 { font-size: 22px; margin-top: 10px; }
.profile-card .verified { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: #2F7A5B; font-weight: 700; margin-top: 4px; }
.profile-card .verified svg { width: 14px; height: 14px; }
.profile-card .chips { justify-content: center; margin-top: 12px; }
.profile-card .nick-edit { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; margin-top: 8px; padding: 4px 6px; }
.profile-card .nick-edit svg { width: 14px; height: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--font-display); font-size: 20px; }
.stats span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.settings-group { margin: 18px 14px 0; }
.settings-group h3 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 0 4px 8px; }
.settings-group .card > * + * { border-top: 1px solid var(--line); }
.radio-row { display: flex; gap: 12px; align-items: center; padding: 13px 16px; width: 100%; text-align: left; }
.radio-row .grow { flex: 1; }
.radio-row b { display: block; font-size: 14px; font-weight: 600; }
.radio-row .grow span { font-size: 12px; color: var(--ink-3); }
.post-tagrow { margin-top: 12px; }
.post-tagrow + h3 { margin-top: 8px; }
.hello h2 { font-size: 24px; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDBFB3; flex: none; transition: box-shadow .2s; }
.radio-row[aria-checked="true"] .radio { box-shadow: inset 0 0 0 7px var(--teal); }
.link-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; width: 100%; text-align: left; font-weight: 600; font-size: 14px; }
.link-row svg { width: 18px; height: 18px; color: var(--ink-3); }
.link-row .grow { flex: 1; }
.footer-note { text-align: center; margin: 20px 0 8px; font-size: 12px; color: var(--ink-3); }

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none; display: flex; justify-content: space-around; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); position: relative; z-index: 10;
}
.tabbar[hidden] { display: none; }
/* Post/chat detail pages: no bottom bar on phones; shown as the top menu >= 900px. */
.tabbar.detail-nav { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--ink-3); font-size: 11px; font-weight: 700; text-decoration: none; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.tab svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.tab[aria-current="page"] { color: var(--teal); }
.tab[aria-current="page"] svg { transform: translateY(-1px); }
.tab .ask-fab { width: 46px; height: 46px; margin-top: -20px; border-radius: 16px; background: linear-gradient(135deg, #D27148, var(--terracotta)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(185, 87, 47, .35); }
.tab .ask-fab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] .ask-fab { background: linear-gradient(135deg, var(--teal-2), var(--teal)); box-shadow: 0 8px 18px rgba(30, 77, 79, .35); }

@media (min-width: 900px) {
  body { overflow: hidden; }
  .app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 72px 1fr;
    height: 100vh;
  }
  .screen {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    grid-row: 2;
    grid-column: 1;
    /* Optional: box-shadow or border to delineate it, but let's keep it clean */
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: #fff;
  }
  .tabbar {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    background: rgba(255, 253, 249, .96);
  }
  /* Laptop: keep the top menu on post/chat pages (← back button stays in the view).
     :not([hidden]) so #privacy read before joining (hidden + detail-nav) stays hidden. */
  .tabbar.detail-nav:not([hidden]) { display: flex; }
  .dt-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .dt-logo[hidden] {
    display: none;
  }
  #tab-links {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .tab {
    flex-direction: row;
    gap: 6px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
  }
  .tab:hover {
    background: var(--cream);
  }
  .tab .ask-fab {
    width: 32px;
    height: 32px;
    margin-top: 0;
    border-radius: 10px;
  }
  .tab .ask-fab svg {
    width: 18px;
    height: 18px;
  }
  .topbar, .backbar {
    background: rgba(255, 255, 255, .96); /* blend with screen bg */
  }
  .topbar .logo { display: none; }
  /* Nearby Opt-in Card inside desktop screen */
  .view:has(.optin) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }
  .optin {
    background: var(--paper);
    border-radius: 32px;
    box-shadow: var(--shadow-2);
    min-height: auto;
    max-width: 480px;
    width: 100%;
    padding: 32px;
  }
  
  /* Onboarding / Pre-Auth Mode overrides (Full screen, no rail) */
  .app.onboarding-mode {
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 60% at 100% 0%, rgba(248, 212, 187, .55), transparent 60%),
                radial-gradient(90% 50% at 0% 100%, rgba(224, 238, 235, .7), transparent 60%),
                var(--cream);
  }
  .app.onboarding-mode .tabbar, .app.onboarding-mode .right-rail {
    display: none !important;
  }
  .app.onboarding-mode .screen {
    flex: 1;
    max-width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    /* "safe": when the welcome (now with the About section) is taller than a
       short laptop screen, start at the top instead of centring it off-screen,
       where the top would be clipped and unscrollable. */
    align-items: safe center;
    justify-content: center;
    padding: 20px;
  }
  .app.onboarding-mode .view {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: auto;
  }
  
  /* Regular onboarding steps as a centred card */
  .app.onboarding-mode .ob, .app.onboarding-mode .google-chooser {
    background: var(--paper);
    border-radius: 32px;
    box-shadow: var(--shadow-2);
    min-height: auto;
    max-width: 440px;
    width: 100%;
    padding: 40px;
    border: 1px solid var(--line);
  }
  .app.onboarding-mode .google-chooser {
    padding: 32px;
  }

  /* Two-column welcome. Grid, not flex: the markup has three siblings
     (.welcome-hero, .promise, .welcome-cta), and a flex row squeezed them into
     three narrow columns. The hero and the promise cards share the left column
     (stacked); the sign-in card sits in the right column across both rows. */
  .app.onboarding-mode .welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: auto auto;
    column-gap: 64px;
    row-gap: 0;
    max-width: 1040px;
    width: 100%;
    align-items: center;
    padding: 0;
  }
  .app.onboarding-mode .welcome-hero {
    margin-top: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .app.onboarding-mode .welcome .promise {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 520px;
    margin-top: 26px;
  }
  .app.onboarding-mode .welcome-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .app.onboarding-mode .welcome .about-static {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 40px;
    max-width: 720px;
  }
  .app.onboarding-mode .welcome .mandala {
    top: -100px;
    right: auto;
    left: -100px;
    width: 500px;
    height: 500px;
    opacity: 0.1;
  }
  .app.onboarding-mode .welcome-cta {
    width: 400px;
    background: var(--paper);
    border-radius: 32px;
    box-shadow: var(--shadow-2);
    padding: 40px;
    border: 1px solid var(--line);
    flex: none;
    margin-top: 0;
  }
  .app.onboarding-mode .welcome-cta-header {
    display: block;
    text-align: center;
    margin-bottom: 24px;
  }
  .app.onboarding-mode .welcome-cta-header h3 {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .app.onboarding-mode .welcome-cta-header p {
    font-size: 14px;
    color: var(--ink-2);
  }
  .app.onboarding-mode .toran {
    display: none;
  }
}

@media (min-width: 1200px) {
  .app {
    grid-template-columns: 1fr 720px 300px 1fr;
  }
  .tabbar {
    grid-column: 1 / -1;
    padding: 0 80px;
  }
  #tab-links {
    margin-right: auto;
    margin-left: 120px;
  }
  .screen {
    grid-column: 2;
  }
  .right-rail {
    grid-column: 3;
    grid-row: 2;
    padding: 24px;
    overflow-y: auto;
  }
  .right-rail[hidden] {
    display: none;
  }
  .rr-section {
    margin-bottom: 32px;
  }
  .rr-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    margin-bottom: 12px;
  }
  .rr-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    border-radius: 12px;
    transition: background .2s;
    background: #fff;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(80, 45, 20, .06);
    border: 1px solid var(--line);
  }
  .rr-link:hover {
    background: var(--cream);
  }
}

/* ---------- Moderation ---------- */
.btn-danger { background: var(--danger); color: #fff; }
.mod-item { margin: 12px 16px; padding: 14px 16px; }
.mod-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod-title { font-size: 16px; margin: 10px 0 4px; }
.mod-body { font-size: 14px; margin: 0; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.uid-row { cursor: default; }
.uid-row .tiny { display: block; word-break: break-all; user-select: all; }

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

/* Feedback ("💬 Send feedback"): quiet footer link on main tabs + sheet. */
.feedback-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 18px 28px; }
.feedback-link { background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); opacity: .75; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.feedback-link:hover, .feedback-link:focus-visible { opacity: 1; color: var(--teal); border-color: var(--teal); }

/* Privacy & Terms (#privacy): reuses settings-group/card; readable line length on laptops. */
.privacy-view { max-width: 720px; margin: 0 auto; }
.privacy-intro { margin: 16px 14px 0; padding: 18px 18px 16px; text-align: center; }
.privacy-intro p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.privacy-card { padding: 14px 16px; }
.settings-group .privacy-card > * + * { border-top: none; }
.privacy-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.privacy-card p:last-child { margin-bottom: 0; }
.privacy-card a, .terms-line a { color: var(--plum); font-weight: 600; }
.privacy-list { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.privacy-list li { margin-bottom: 4px; }
.terms-line { margin-bottom: 8px; }
.fb-sheet textarea { min-height: 96px; resize: vertical; }
.fb-sheet .toggle-row { margin-top: 6px; }
.fb-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.fb-actions .btn { min-width: 110px; }
.fb-item .mod-body { white-space: pre-wrap; }

/* ---------- Closed beta: invite codes (2026-10-12) ---------- */
.invite-view .ob { text-align: left; }
.invite-view h1 { margin-top: 10px; }
.invite-input { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; font-size: 18px; }
.invite-error { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--terracotta-soft); color: var(--danger); font-size: 14px; font-weight: 600; }
.invite-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; background: var(--plum-soft); border: 1px solid var(--line); text-align: left; }
.invite-banner > span { font-size: 22px; line-height: 1; }
.invite-banner b { display: block; color: var(--plum); }
.invite-banner div span { font-size: 14px; color: var(--ink-2); }
.invite-banner div span b { display: inline; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.invite-form { margin: 12px 16px; padding: 14px 16px; }
.invite-form .field { margin-top: 8px; }
.invite-form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.invite-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.invite-view .link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.invite-view a { color: var(--teal); font-weight: 700; }
