/* ChaiPe — styles. Colors live in tokens at the top; change them to rebrand. */
/* Palette: neel (indigo ink) + kesar (saffron) on a cool milk-white. Change these to rebrand. */
:root {
  --paper: #F3F3F7;
  --surface: #FFFFFF;
  --sunk: #ECEBF3;
  --ink: #1B1A2E;
  --muted: #615E78;
  --line: #DFDDEA;
  --leaf: #33297A;
  --leaf-soft: #E7E4F7;
  --on-leaf: #FFFFFF;
  --haldi: #FF9A1F;
  --on-haldi: #2A1600;
  --rose: #D23C74;
  --danger: #B42318;
  --ok-bg: #E2F3E9; --ok-ink: #1C5A3A;
  --err-bg: #FBE4E1; --err-ink: #82201A;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 0 rgba(27,26,46,.04), 0 14px 32px -20px rgba(27,26,46,.45);
  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121120; --surface: #1B1A2C; --sunk: #232238; --ink: #ECEBF6; --muted: #A6A3BF; --line: #302E48;
    --leaf: #A99CFF; --leaf-soft: #2B2752; --on-leaf: #121120; --rose: #F27BA6; --danger: #F4897F;
    --ok-bg: #173527; --ok-ink: #B5E6CB; --err-bg: #3D1C1A; --err-ink: #F7C3BC;
    --shadow: 0 14px 32px -20px rgba(0,0,0,.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121120; --surface: #1B1A2C; --sunk: #232238; --ink: #ECEBF6; --muted: #A6A3BF; --line: #302E48;
  --leaf: #A99CFF; --leaf-soft: #2B2752; --on-leaf: #121120; --rose: #F27BA6; --danger: #F4897F;
  --ok-bg: #173527; --ok-ink: #B5E6CB; --err-bg: #3D1C1A; --err-ink: #F7C3BC;
  --shadow: 0 14px 32px -20px rgba(0,0,0,.85);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { font-size: 16.5px; -webkit-text-size-adjust: 100%; }
html.ts-small { font-size: 15px; }
html.ts-large { font-size: 18.5px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--leaf); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }
.page-title { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .6rem; }
.h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.lede-sm { color: var(--muted); max-width: 60ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.15rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 1.1rem; height: 1.3rem; border-radius: 3px 3px 7px 7px; background: var(--leaf); position: relative; transform: skewX(-6deg); }
.brand-mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 5px; border-radius: 2px; background: var(--haldi); }

/* ---------- Shell ---------- */
body.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 1.6rem; padding: 1.4rem 1rem; border-right: 1px solid var(--line); background: var(--surface); }
.side .brand { padding-left: .6rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--sunk); }
.side-nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }
.side-me { margin-top: auto; display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.side-me:hover { background: var(--sunk); }
.side-me span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.25; }
.side-me small { color: var(--muted); }
.topbar { display: none; }
.main { padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; max-width: 980px; width: 100%; }
body.bare .main { margin-inline: auto; }

.badge { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 99px; background: var(--haldi); color: var(--on-haldi); font: 700 .72rem var(--body); font-style: normal; }

.tabs { display: none; }

@media (max-width: 860px) {
  body.shell { display: block; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding: .7rem 1rem; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar .brand { font-size: 1.15rem; }
  .topbar-right { display: flex; align-items: center; gap: .3rem; }
  .main { padding: 1.2rem 1rem 3rem; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .3rem 0; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 500; }
  .tabs a[aria-current="page"] { color: var(--leaf); }
  .tabs .ic { width: 24px; height: 24px; }
  .tabs .badge { position: absolute; top: 0; left: calc(50% + 6px); }
}
.ic { width: 20px; height: 20px; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.icon-btn:hover { background: var(--sunk); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--haldi); }
.credit-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .65rem; border-radius: var(--r-sm); background: var(--haldi); color: var(--on-haldi); font-weight: 600; font-size: .8rem; text-decoration: none; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.15rem; border-radius: var(--r-sm); border: 1.5px solid transparent; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--leaf); color: var(--on-leaf); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sunk); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-sm { min-height: 36px; padding: .35rem .9rem; font-size: .87rem; }
.btn-xs { min-height: 28px; padding: .15rem .6rem; font-size: .78rem; }
.btn-block { width: 100%; }

.form { display: flex; flex-direction: column; gap: .95rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .7rem .8rem; min-height: 46px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select, textarea:focus { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
input[type=file] { font: inherit; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: end; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.check { flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; gap: .6rem !important; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--leaf); }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset.card { padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
legend { font: 700 1rem var(--display); padding: 0; margin-bottom: .2rem; float: left; width: 100%; }
legend + * { clear: both; }
.radios { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.radios legend { font: 600 .92rem var(--body); margin-bottom: .4rem; }
.radios label { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.radios input { accent-color: var(--leaf); width: 18px; height: 18px; }

.chip-pick { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-pick label { display: block !important; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-block; padding: .45rem .85rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: .9rem; cursor: pointer; user-select: none; }
.chip-pick input:checked + span { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.chip-pick input:focus-visible + span { outline: 3px solid var(--haldi); outline-offset: 2px; }
.chip-pick.maxed input:not(:checked) + span { opacity: .45; cursor: not-allowed; }
.prompt-edit { display: grid; gap: .4rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.prompt-edit:last-child { border-bottom: 0; padding-bottom: 0; }

.switch { flex-direction: row !important; align-items: flex-start; gap: .8rem !important; font-weight: 500 !important; cursor: pointer; }
.switch span { display: flex; flex-direction: column; }
.switch input { appearance: none; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--leaf); }
.switch input:checked::after { transform: translateX(18px); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; margin-bottom: 1rem; }
.card > h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.flash { padding: .75rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-err { background: var(--err-bg); color: var(--err-ink); }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 99px; background: var(--sunk); font-size: .8rem; font-weight: 600; color: var(--muted); }
.pill-accepted, .pill-approved { background: var(--ok-bg); color: var(--ok-ink); }
.pill-pending { background: color-mix(in srgb, var(--haldi) 28%, var(--surface)); color: var(--ink); }
.pill-declined, .pill-rejected { background: var(--err-bg); color: var(--err-ink); }

details > summary { cursor: pointer; font-weight: 600; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-block; width: 1.1em; color: var(--leaf); font-weight: 700; }
details[open] > summary::before { content: "–"; }
details > form, details > div, details > p { margin-top: .9rem; }
.menu > summary::before, .filters > summary::before { content: none; }

/* ---------- Avatar: a solid "stamp" tile, no photo ---------- */
.avatar { --h: 250; flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 30%;
  background: hsl(var(--h) 55% 40%); color: #fff; font: 700 .9rem var(--display); letter-spacing: .02em; transform: rotate(-4deg); }
.avatar.sm { width: 38px; height: 38px; font-size: .75rem; }
.avatar.lg { width: 74px; height: 74px; font-size: 1.35rem; border-radius: 28%; }

/* ---------- Profile card (the signature: a tinted header + prompts you can reply to) ---------- */
.pcard { --h: 250; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pcard-head { display: flex; gap: 1.1rem; align-items: center; padding: 1.4rem 1.4rem 1.1rem; background: hsl(var(--h) 60% 50% / .10); border-bottom: 1px solid var(--line); }
.pname { font-size: clamp(1.45rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; }
.prole { color: var(--muted); margin: .25rem 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.facts div { padding: .75rem 1.4rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.block { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.pcard > .block:last-child { border-bottom: 0; }
.block h3 { font: 600 .8rem var(--body); color: var(--muted); margin-bottom: .3rem; }
.block p { margin: 0; }
.block.prompt { border-left: 4px solid var(--haldi); }
.block.prompt h3 { color: var(--leaf); }
.block.prompt p { font: 600 1.2rem/1.4 var(--body); letter-spacing: -.005em; }
.reply { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .3rem .7rem; border-radius: var(--r-sm); border: 1px dashed var(--leaf); background: none; color: var(--leaf); font: 600 .82rem var(--body); cursor: pointer; }
.reply .ic { width: 16px; height: 16px; }
.reply:hover { background: var(--leaf-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li { padding: .28rem .7rem; border-radius: var(--r-sm); background: var(--leaf-soft); color: var(--leaf); font-weight: 600; font-size: .85rem; }
.socials { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 600; }

/* ---------- Wall ---------- */
.wall { max-width: 600px; margin-inline: auto; }
.wall-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.filters { position: relative; }
.filters > summary { padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); font-size: .9rem; }
.filters[open] { flex-basis: 100%; }
.filter-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.filter-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .85rem; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: .5rem; }
@media (max-width: 600px) { .filter-form { grid-template-columns: 1fr; } }
.wall-count { margin: .2rem 0 .8rem; }
.table-card { border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--surface); }
.table-card .pcard { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.deck { display: grid; grid-template-columns: 1fr 1fr 1.6fr; border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--surface); position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 861px) { .deck { bottom: 0; } }
.deck form { display: contents; }
.deck-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 58px; padding: .5rem; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.deck-btn:last-child { border-right: 0; }
.deck-btn:hover { background: var(--sunk); }
.deck-mark { color: var(--rose); }
.deck-mark span { color: var(--ink); }
.deck-invite { background: var(--haldi); color: var(--on-haldi); font-weight: 700; }
.deck-invite:hover { background: color-mix(in srgb, var(--haldi) 88%, #000); }
.deck-btn .ic { width: 20px; height: 20px; }
@media (max-width: 420px) { .deck-btn { flex-direction: column; gap: .15rem; font-size: .82rem; min-height: 62px; } }
.quoted { margin: .4rem 0 0; padding: .7rem .9rem; border-left: 4px solid var(--haldi); background: var(--sunk); border-radius: 0 var(--r-sm) var(--r-sm) 0; display: flex; flex-direction: column; gap: .15rem; }
.quoted[hidden] { display: none; }
.quoted small { color: var(--leaf); font-weight: 600; }
.req-about { margin: .8rem 0 -.4rem; font-size: .85rem; color: var(--muted); }
.req-about strong { color: var(--leaf); }

.sheet { border: 0; border-radius: var(--r-lg); padding: 1.5rem; width: min(520px, 94vw); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.sheet::backdrop { background: rgba(10,18,14,.45); backdrop-filter: blur(2px); }
.sheet h2 { font-size: 1.4rem; }
@media (max-width: 600px) { .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: rise .22s ease-out; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.count { font-size: .78rem; color: var(--muted); text-align: right; margin-top: -.6rem; }

.empty { text-align: center; padding: 3rem 1rem; max-width: 460px; margin: 0 auto; }
.empty h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty p { color: var(--muted); }
.empty .btn { margin: .3rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.empty-line { padding: 1.5rem 0; }

/* ---------- Profile page ---------- */
.selfbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.selfbar p { margin: 0; }
.profile-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.safety { margin-top: 2rem; color: var(--muted); }
.safety summary { font-weight: 500; font-size: .9rem; }

/* ---------- Segmented nav ---------- */
.seg { display: inline-flex; gap: .3rem; padding: .25rem; background: var(--sunk); border-radius: 99px; margin-bottom: 1.2rem; max-width: 100%; }
.seg a { padding: .45rem 1rem; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; gap: .3rem; align-items: center; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-sm a { padding: .3rem .8rem; font-size: .82rem; }

/* ---------- Requests & lists ---------- */
.req-list, .people, .chat-list, .ledger, .notifs, .admin-list, .event-cards, .event-list { list-style: none; margin: 0; padding: 0; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; margin-bottom: .8rem; }
.req-who { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; min-width: 0; }
.req-who span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.req-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-note { margin: .9rem 0; padding: .8rem 1rem; background: var(--sunk); border-radius: var(--r-sm); font: 500 1.05rem/1.45 var(--body); }
.req-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.req-btns { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }

.chat-list a { display: flex; align-items: center; gap: .9rem; padding: .85rem .6rem; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.chat-list a:hover { background: var(--surface); }
.chat-list .cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-list .cl-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list .unread .cl-main small { color: var(--ink); font-weight: 600; }
.chat-list .cl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; color: var(--muted); }

.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.ledger li span { display: flex; flex-direction: column; }
.ledger small { color: var(--muted); font-size: .8rem; }
.plus { color: var(--leaf); } .minus { color: var(--muted); }

.notifs li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
.notifs li.new a, .notifs li.new span { font-weight: 600; }
.notifs a { color: var(--ink); text-decoration: none; }
.notifs li.new::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55rem; border-radius: 50%; background: var(--haldi); }
.notifs li > :first-child { flex: 1; }

/* ---------- Activity ---------- */
.me-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.me-head .page-title { margin: 0; }
.me-head p { margin: .2rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: 0 0 1.4rem; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem; display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 700 1.45rem var(--display); }
.stats dt { font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) { .stats, .stats-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Chat ---------- */
.chat-main { padding: 0 !important; max-width: none; }
.chat { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; }
@media (max-width: 860px) { .chat { height: calc(100dvh - 61px); } }
.chat-head { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-who { flex: 1; display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; min-width: 0; }
.chat-who span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-who small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 44px; z-index: 10; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: .35rem; margin: 0 !important; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: .6rem .8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; background: none; border: 0; font: 500 .92rem var(--body); cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--sunk); }
.thread { flex: 1; overflow-y: auto; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.thread-static { max-height: 60vh; min-height: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 1rem 0 .8rem; }
.opener { align-self: center; text-align: center; max-width: 85%; margin-bottom: .8rem; padding: .9rem 1.1rem; border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.opener small { color: var(--muted); }
.opener p { margin: .3rem 0 0; font: 500 1.02rem/1.4 var(--body); }
.msg { max-width: 78%; display: flex; flex-direction: column; }
.msg p { margin: 0; padding: .6rem .9rem; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.msg time { font-size: .7rem; color: var(--muted); margin: .15rem .5rem 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine p { background: var(--leaf); color: var(--on-leaf); border-bottom-right-radius: 6px; }
.msg.theirs { align-self: flex-start; }
.msg.theirs p { background: var(--sunk); border-bottom-left-radius: 6px; }
.msg.sending { opacity: .55; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; border-radius: 23px; padding: .7rem 1rem; resize: none; }
.composer-static { border: 0; padding: 0; background: none; }
.send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--leaf); color: var(--on-leaf); display: grid; place-items: center; cursor: pointer; }

/* ---------- Membership ---------- */
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1rem 0 1.4rem; }
.plan { display: flex; flex-direction: column; gap: .1rem; padding: 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.plan-pick .plan:hover { border-color: var(--leaf); }
.plan.on { border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.plan-name { font-weight: 600; color: var(--muted); font-size: .9rem; }
.plan-price { font: 700 1.7rem var(--display); }
.plan-cr { font-weight: 600; }
.plan-per { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
@media (max-width: 560px) { .plan-row { grid-template-columns: 1fr; } .plan { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; } .plan-price { font-size: 1.5rem; } }
.pay h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.pay-steps { padding-left: 1.2rem; margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.pay-steps li::marker { font: 700 1rem var(--display); color: var(--leaf); }
.upi-box { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; background: var(--sunk); border-radius: var(--r-md); padding: 1rem; }
#upi-qr { background: #fff; padding: 8px; border-radius: 8px; line-height: 0; }
.upi-id { font: 700 1.15rem var(--body); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.only-mobile { display: none; }
@media (hover: none) and (pointer: coarse) { .only-mobile { display: inline-flex; } }

/* ---------- Events ---------- */
.evc { display: flex; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; margin-bottom: .9rem; }
.evc-date { flex: none; width: 64px; text-align: center; border-radius: var(--r-sm); background: var(--leaf); color: var(--on-leaf); padding: .45rem 0; display: flex; flex-direction: column; line-height: 1.1; align-self: flex-start; }
.evc-date span { font-size: .72rem; font-weight: 600; }
.evc-date strong { font: 700 1.4rem var(--display); }
.evc-body { flex: 1; min-width: 0; }
.evc-body h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.evc-meta { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.evc-meta .ic { width: 16px; height: 16px; }
.evc-act { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cohost { margin-top: 1.6rem; }

/* ---------- Settings ---------- */
.settings .card h2 { font-size: 1.15rem; }
.links { list-style: none; margin: 0 0 .6rem; padding: 0; }
.links a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.links li:last-child a { border-bottom: 0; }
.toggles { gap: 1.1rem; }
.danger-zone { margin-top: 2rem; color: var(--danger); }
.faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq p { margin-top: .6rem; color: var(--muted); max-width: 62ch; }

/* ---------- Auth ---------- */
.auth { max-width: 440px; margin: 3vh auto 0; }
.auth .brand, .narrow > .brand { margin-bottom: 1.8rem; }

/* ---------- Admin ---------- */
.admin-list > li { margin-bottom: .8rem; }
.pay-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.pay-item p { margin: 0 0 .35rem; }
.shot img { border-radius: var(--r-sm); border: 1px solid var(--line); max-height: 200px; object-fit: cover; width: 120px; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; min-height: 36px; padding: .4rem .7rem; }
.member-top { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; align-items: center; }
.search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.dim { opacity: .6; }
.support-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; }
.thread-list li { flex-wrap: wrap; }
.thread-list a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; font-weight: 600; }
.thread-list li.on a { color: var(--leaf); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: .3rem 0; }
.checklist .bad { color: var(--danger); font-weight: 600; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } .pay-item { grid-template-columns: 1fr; } }

/* ---------- Landing ---------- */
.landing { max-width: 1120px !important; }
.land-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; }
.land-top nav { display: flex; gap: 1rem; align-items: center; }
.land-top nav > .land-login { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 1.3rem 0 1.6rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hero-card { position: relative; }
.hero-card .deck { position: static; }
@media (prefers-reduced-motion: no-preference) {
  .hero-card .table-card { animation: settle .8s cubic-bezier(.2,.8,.2,1) both .1s; }
  @keyframes settle { from { transform: translateY(28px); opacity: 0; } }
}
.how, .plans-land, .meet-land { padding: 3rem 0; border-top: 1px solid var(--line); }
.how h2, .plans-land h2, .meet-land h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.2rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 30%; background: var(--haldi); color: var(--on-haldi); font: 800 1rem var(--display); margin-bottom: .8rem; }
.steps strong { display: block; color: var(--ink); font: 700 1.1rem var(--body); margin-bottom: .3rem; }
.event-list .event { display: grid; grid-template-columns: 170px 1fr auto; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.event-list time { color: var(--leaf); font-weight: 600; }
.event-list span { color: var(--muted); }
.land-foot { display: flex; gap: 1.4rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .event-list .event { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Policy pages ---------- */
.legal h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2rem; margin: 0 0 .8rem; }
.legal li { margin-bottom: .35rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 2rem; font-size: .9rem; }
.legal-links.center { justify-content: center; margin-top: 1.5rem; }
.contact-list { display: grid; gap: .9rem; margin: 1rem 0; }
.contact-list dt { font-size: .8rem; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.shot-none { width: 120px; height: 90px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--muted); font-size: .8rem; }
.upi-alt { margin-top: .8rem; }
.upi-alt > .upi-box { margin-top: .8rem; }
.seg-wrap { position: relative; display: flex; align-items: center; max-width: 100%; margin-bottom: 1.2rem; }
.seg-wrap > .seg { margin-bottom: 0; scroll-behavior: auto; cursor: grab; }
.seg-wrap > .seg.dragging { cursor: grabbing; user-select: none; }
.seg-wrap > .seg.dragging a { pointer-events: none; }
.seg-arrow { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 700 1.3rem/1 var(--body); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .15s; padding: 0 0 2px; }
.seg-arrow.prev { left: -6px; } .seg-arrow.next { right: -6px; }
.seg-wrap.can-left .seg-arrow.prev, .seg-wrap.can-right .seg-arrow.next { opacity: 1; pointer-events: auto; }
.seg-arrow:hover { border-color: var(--leaf); color: var(--leaf); }
.seg-wrap.can-right > .seg { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.seg-wrap.can-left > .seg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.seg-wrap.can-left.can-right > .seg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

.rev-gone{margin:-.6rem 0 1.4rem;padding:.7rem .9rem;border:1px dashed var(--line);border-radius:var(--r-md);font-size:.9rem;font-weight:600;color:var(--muted)}
.rev-gone span{font-weight:400}

/* Install-as-app card and phone notifications */
.app-nudge{position:relative;display:flex;gap:.9rem;align-items:flex-start;margin:0 0 1.2rem;padding:1rem 2.4rem 1rem 1rem;border-radius:var(--r-md);background:var(--surface);border:1.5px solid var(--haldi)}
.app-nudge[hidden]{display:none}
.an-ic-big{flex:0 0 2.6rem;height:2.6rem;display:grid;place-items:center;font-size:1.35rem;border-radius:.8rem;background:color-mix(in srgb,var(--haldi) 18%,transparent)}
.an-body{flex:1;min-width:0}.an-body strong{display:block;font-size:1rem}.an-body p{margin:.2rem 0 0;font-size:.88rem;color:var(--muted);line-height:1.45}
.an-act{align-self:center}
.an-steps{margin:.6rem 0 0;padding-left:1.2rem;font-size:.88rem;line-height:1.6}
.an-ic{display:inline-block;font-weight:700}
.an-x{position:absolute;top:.4rem;right:.5rem;border:0;background:none;color:var(--muted);font-size:1.4rem;line-height:1;cursor:pointer;padding:.3rem}
@media (max-width:560px){.app-nudge{flex-wrap:wrap}.an-act{width:100%}.an-act .btn{width:100%}}
.set-sub{font-size:1rem;margin:1.4rem 0 .4rem;padding-top:1rem;border-top:1px solid var(--line)}
.push-settings .inline-form{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}
.an-on{color:#1E8A4E}

/* ---------- Meetups ---------- */
.back-link{display:flex;width:fit-content;align-items:center;gap:.3rem;font-size:.9rem;font-weight:600;color:var(--muted);text-decoration:none;margin:0 0 .9rem}
.back-link .ic{width:16px;height:16px}
.mu-title{color:inherit;text-decoration:none}.mu-title:hover{text-decoration:underline}
.mu-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.55rem 0 .8rem}
.mu-chip{font-size:.78rem;font-weight:600;padding:.22rem .6rem;border-radius:999px;background:var(--sunk);border:1px solid var(--line);color:var(--muted)}
.mu-chip.mu-fee{background:var(--haldi);border-color:transparent;color:var(--on-haldi)}
.mu-chip.hot{color:#B4410F;border-color:currentColor}
.mu-hero{display:flex;gap:1.1rem;align-items:flex-start;margin-bottom:1rem}
.mu-hero-body{flex:1;min-width:0}.mu-hero h1{font:700 1.55rem/1.2 var(--display);margin:.3rem 0 .35rem}
.mu-desc{margin:.2rem 0 0;line-height:1.6}
.mu-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:1rem;align-items:start}
@media (max-width:820px){.mu-grid{grid-template-columns:1fr}}
.mu-join h2,.mu-people h2{font-size:1.15rem;margin:0 0 .6rem}
.mu-state{display:inline-block;font-weight:700;font-size:.85rem;padding:.25rem .7rem;border-radius:999px;margin:0 0 .5rem}
.mu-state.ok{background:var(--ok-bg);color:var(--ok-ink)}.mu-state.wait{background:color-mix(in srgb,var(--haldi) 22%,transparent)}
.mu-steps{margin:0 0 .9rem;padding-left:1.2rem;display:grid;gap:.6rem}
.mu-steps li strong{display:block;margin-bottom:.35rem}.mu-steps small{display:block;margin-top:.3rem}
.mu-pay{display:inline-flex}
.mu-why{margin-top:.7rem}
.mu-release{margin-top:1rem}.mu-release summary{cursor:pointer;color:var(--muted);font-size:.9rem}
.mu-list{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}
.mu-list .mu-person{display:flex;align-items:center;gap:.7rem;padding:.5rem .3rem;border-radius:var(--r-sm)}
.mu-list span{display:flex;flex-direction:column;min-width:0}.mu-list small{color:var(--muted);font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mu-locked{text-align:center;padding:.6rem 0}.mu-locked p{margin:.2rem 0}
.mu-blur{display:flex;justify-content:center;margin-bottom:.7rem}
.mu-blur i{width:42px;height:42px;border-radius:50%;margin-left:-10px;border:3px solid var(--surface);background:linear-gradient(135deg,var(--leaf),var(--haldi));filter:blur(1.5px);opacity:.75}
.mu-blur i:nth-child(2n){background:linear-gradient(135deg,var(--haldi),var(--leaf))}
.mu-hostcta{display:flex;align-items:center;gap:.9rem;margin-top:1.2rem;color:inherit;text-decoration:none}
.mu-hostcta>span:nth-child(2){flex:1;display:flex;flex-direction:column}.mu-hostcta small{color:var(--muted)}
.mu-hostic{font-size:1.5rem;width:2.8rem;height:2.8rem;display:grid;place-items:center;border-radius:.9rem;background:color-mix(in srgb,var(--haldi) 20%,transparent)}
.mu-how{list-style:none;counter-reset:s;padding:0;margin:0 0 1.2rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.mu-how li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:.85rem}
.mu-how li::before{content:counter(s);display:inline-grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--leaf);color:var(--on-leaf);font-weight:700;font-size:.8rem;margin-bottom:.4rem}
.mu-how strong{display:block}.mu-how span{font-size:.85rem;color:var(--muted)}
@media (max-width:700px){.mu-how{grid-template-columns:1fr 1fr}}
.mu-mine{list-style:none;margin:0;padding:0}
.mu-mine a{display:flex;gap:.8rem;align-items:center;padding:.7rem 0;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.mu-mine li:first-child a{border-top:0}
.mu-mine a>span:first-child{flex:1;display:flex;flex-direction:column;min-width:0}.mu-mine small{color:var(--muted)}
.mu-st{font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;background:var(--sunk);white-space:nowrap}
.mu-st.ok{background:var(--ok-bg);color:var(--ok-ink)}.mu-st.no{background:var(--err-bg);color:var(--err-ink)}
.mu-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin:0 0 1rem}
.mu-stats div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:.85rem}
.mu-stats strong{display:block;font:700 1.5rem var(--display)}.mu-stats span{font-size:.8rem;color:var(--muted)}
@media (max-width:640px){.mu-stats{grid-template-columns:1fr 1fr}}
.mu-copy{display:flex;gap:.5rem}.mu-copy input{flex:1;min-width:0}
.mu-table-wrap{overflow-x:auto}
.mu-table{width:100%;border-collapse:collapse;font-size:.9rem}
.mu-table th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:.4rem .5rem;border-bottom:1px solid var(--line)}
.mu-table td{padding:.6rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
.mu-table td a{color:inherit}
/* Admin meetup queue */
.mv-item{display:grid;grid-template-columns:96px 1fr;gap:.9rem}
.mv-shot{width:96px;height:120px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--sunk)}
.mv-item dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem .7rem;margin:.4rem 0 .6rem;font-size:.88rem}.mv-item dt{color:var(--muted)}.mv-item dd{margin:0}
.mv-warn{border-color:var(--haldi)}

/* Meetups on the landing page — present, but secondary to profiles */
.land-meet{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.92rem;text-decoration:none;color:var(--muted);padding:.32rem .7rem;border-radius:999px;border:1px dashed var(--line)}
.land-meet:hover,.land-meet.on{color:var(--ink);border-color:var(--haldi)}
.land-meet i{width:7px;height:7px;border-radius:50%;background:var(--haldi);box-shadow:0 0 0 3px color-mix(in srgb,var(--haldi) 25%,transparent)}
@media (prefers-reduced-motion:no-preference){.land-meet i{animation:mpulse 2s ease-in-out infinite}@keyframes mpulse{50%{box-shadow:0 0 0 6px transparent}}}
.next-meet{display:flex;align-items:center;gap:.8rem;margin-top:1.4rem;padding:.65rem .8rem;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line);color:inherit;text-decoration:none;max-width:30rem}
.next-meet:hover{border-color:var(--haldi)}
.nm-date{flex:none;width:2.9rem;text-align:center;border-radius:var(--r-sm);background:var(--haldi);color:var(--on-haldi);font-size:.7rem;font-weight:700;line-height:1.1;padding:.3rem 0;text-transform:uppercase}
.nm-date b{display:block;font:700 1.15rem var(--display)}
.nm-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.nm-txt small{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.nm-txt strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm-txt em{font-style:normal;font-size:.85rem;color:var(--muted)}
.nm-go{flex:none;display:inline-flex;align-items:center;gap:.2rem;font-size:.85rem;font-weight:600;color:var(--leaf)}
.nm-go .ic{width:16px;height:16px}
@media (max-width:520px){.nm-go{display:none}.land-top nav{gap:.6rem}.land-meet{padding:.28rem .55rem;font-size:.85rem}}
.ml-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.ml-head a{display:inline-flex;align-items:center;gap:.2rem;font-weight:600;color:var(--leaf);text-decoration:none}.ml-head .ic{width:16px;height:16px}
.event-list strong a{color:inherit;text-decoration:none}
/* Public meetups page */
.ml-hero{padding:clamp(1.5rem,5vw,3.5rem) 0 1.5rem}
.ml-kicker{font-weight:700;color:var(--muted);margin:0 0 .4rem}
.ml-hero h1{font-size:clamp(2rem,4.6vw,3.2rem);letter-spacing:-.03em;line-height:1.08}
.ml-steps{list-style:none;counter-reset:s;padding:0;margin:1.4rem 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;max-width:860px}
.ml-steps li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:.9rem 1rem}
.ml-steps li::before{content:counter(s);display:inline-grid;place-items:center;width:1.7rem;height:1.7rem;border-radius:30%;background:var(--haldi);color:var(--on-haldi);font-weight:800;font-size:.85rem;margin-bottom:.45rem}
.ml-steps strong{display:block}.ml-steps span{font-size:.88rem;color:var(--muted)}
@media (max-width:700px){.ml-steps{grid-template-columns:1fr}}
.ml-list{padding:1.5rem 0;border-top:1px solid var(--line)}
.ml-list h2,.ml-host h2{font-size:clamp(1.3rem,2.8vw,1.7rem);margin-bottom:1rem}
.ml-list h3{font-size:1.2rem;margin:0 0 .25rem}
.ml-desc{margin:0 0 .8rem;color:var(--muted)}
.ml-host{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:2rem 0;border-top:1px solid var(--line)}
.ml-host h2{margin-bottom:.3rem}.ml-host p{margin:0}

/* Café music button (home + public meetups) */
.cm-btn{position:fixed;left:16px;bottom:16px;z-index:40;display:inline-flex;align-items:center;gap:.55rem;padding:.55rem .9rem .55rem .75rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:600 .85rem var(--body);box-shadow:0 8px 24px -12px rgba(27,26,46,.45);cursor:pointer}
.cm-btn:hover{border-color:var(--haldi)}
.cm-btn.on{background:var(--leaf);color:var(--on-leaf);border-color:transparent}
.cm-eq{display:inline-flex;align-items:flex-end;gap:2px;height:14px}
.cm-eq i{width:3px;height:5px;border-radius:2px;background:currentColor;opacity:.75}
.cm-btn:not(.on) .cm-eq i:nth-child(2){height:9px}.cm-btn:not(.on) .cm-eq i:nth-child(3){height:12px}.cm-btn:not(.on) .cm-eq i:nth-child(4){height:7px}
@media (prefers-reduced-motion:no-preference){.cm-btn.on .cm-eq i{animation:cmeq 1s ease-in-out infinite}.cm-btn.on .cm-eq i:nth-child(2){animation-delay:-.3s}.cm-btn.on .cm-eq i:nth-child(3){animation-delay:-.6s}.cm-btn.on .cm-eq i:nth-child(4){animation-delay:-.15s}@keyframes cmeq{0%,100%{height:4px}50%{height:14px}}}
.cm-tip{position:fixed;left:16px;bottom:66px;z-index:40;background:var(--ink);color:var(--surface);font-size:.85rem;font-weight:600;padding:.55rem .8rem;border-radius:12px;box-shadow:var(--shadow);transition:opacity .4s,transform .4s}
.cm-tip::after{content:"";position:absolute;left:22px;bottom:-6px;border:6px solid transparent;border-bottom:0;border-top-color:var(--ink)}
.cm-tip.out{opacity:0;transform:translateY(6px)}
@media (prefers-reduced-motion:no-preference){.cm-tip{animation:cmtip .5s cubic-bezier(.2,.8,.2,1)}@keyframes cmtip{from{opacity:0;transform:translateY(8px)}}}
@media (max-width:520px){.cm-btn .cm-label{display:none}.cm-btn{padding:.6rem .7rem}}
.landing{padding-bottom:4.5rem}

/* Landing: profile example first, meetup strip after it on phones; tidy header */
.hero{grid-template-areas:"copy card" "meet card";grid-template-rows:auto auto;row-gap:0}
.hero-copy{grid-area:copy;align-self:end}
.hero-card{grid-area:card;align-self:center}
.hero-meet{grid-area:meet;align-self:start}
.hero-meet:empty{display:none}
.land-top nav a{white-space:nowrap}
.land-meet-m{display:none}
@media (max-width:860px){
  .hero{grid-template-areas:"copy" "card" "meet";grid-template-rows:none;row-gap:1.6rem;padding-top:1.2rem}
  .hero-meet .next-meet{margin-top:0;max-width:none}
}
@media (max-width:560px){
  .land-top .land-meet{display:none}
  .land-top nav{gap:.9rem}
  .land-meet-m{display:inline-flex;align-items:center;gap:.4rem;margin:.1rem 0 .4rem;padding:.3rem .7rem;border-radius:999px;border:1px dashed var(--haldi);font-size:.82rem;font-weight:600;color:var(--ink);text-decoration:none;max-width:100%}
  .land-meet-m i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--haldi)}
  .land-meet-m .ic{width:14px;height:14px;flex:none}
  .hero h1{font-size:2.05rem}
  .lede{font-size:1.05rem;margin:1rem 0 1.2rem}
  .hero-cta{flex-wrap:nowrap}.hero-cta .btn{flex:1;justify-content:center;padding-left:.6rem;padding-right:.6rem;white-space:nowrap}
}

/* Meetup rewards: what you get, after-meetup state, people you met */
.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}
@media (max-width:640px){.row3{grid-template-columns:1fr}}
.mu-perks-h{margin:.2rem 0 .5rem;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.mu-perks{list-style:none;margin:0 0 1.1rem;padding:.75rem .85rem;display:grid;gap:.55rem;background:var(--sunk);border-radius:var(--r-md)}
.mu-perks li{display:flex;gap:.6rem;align-items:flex-start}
.mu-perks .mp-ic{flex:none;width:1.6rem;text-align:center;font-size:1.05rem;line-height:1.3}
.mu-perks strong{display:block;font-size:.92rem}.mu-perks small{display:block;color:var(--muted);font-size:.82rem}
.mu-perks.compact{grid-template-columns:1fr 1fr}
.mu-got{list-style:none;padding:0;margin:.2rem 0 1rem;display:grid;gap:.45rem}
.mu-got li{padding:.55rem .7rem;border-radius:var(--r-sm);background:var(--sunk);font-size:.92rem}
.mu-after{margin-top:.8rem}
.mu-chip.mu-gift{background:var(--ok-bg);color:var(--ok-ink);border-color:transparent}
.mu-met .mu-person{color:inherit;text-decoration:none}
.mu-met .mu-person:hover{background:var(--sunk)}
.mu-met .mu-person>span:not(.avatar){flex:1;min-width:0}
.mu-cn{font-style:normal;font-size:.78rem;font-weight:700;color:var(--leaf);white-space:nowrap}
.tr-steps{list-style:none;counter-reset:s;padding:0;margin:1rem 0 0;display:grid;gap:.7rem}
.tr-steps li{counter-increment:s;display:grid;grid-template-columns:2rem 1fr;gap:.2rem .7rem;align-items:start;padding:.8rem;border:1px solid var(--line);border-radius:var(--r-md)}
.tr-steps li::before{content:counter(s);grid-row:span 2;display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--sunk);font-weight:700;font-size:.85rem}
.tr-steps li.done::before{content:"✓";background:var(--ok-bg);color:var(--ok-ink)}
.tr-steps li.now{border-color:var(--haldi)}.tr-steps li.now::before{background:var(--haldi);color:var(--on-haldi)}
.tr-steps span{font-size:.88rem;color:var(--muted);display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.tr-steps form{margin:0}

/* Admin: conversations safety review */
.cv-note{margin:-.4rem 0 1rem}
.cv-search{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin:0 0 .5rem}
.cv-search input[name=q],.cv-search input[name=kw]{flex:1 1 200px;min-width:0}
.cv-search .check{white-space:nowrap}
.cv-list{list-style:none;margin:0 0 1.2rem;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.cv-list a{display:flex;align-items:center;gap:.7rem;padding:.75rem .9rem;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.cv-list li:first-child a{border-top:0}
.cv-list a:hover{background:var(--sunk)}
.cv-list a>span:not(.avatar):not(.cv-flag):not(.pill){flex:1;min-width:0;display:flex;flex-direction:column}
.cv-list small{color:var(--muted);font-size:.82rem}
.cv-list em{font-style:normal;font-size:.8rem;color:var(--muted);white-space:nowrap}
.cv-flag{display:inline-block;font-size:.72rem;font-weight:700;padding:.15rem .5rem;border-radius:999px;background:var(--err-bg);color:var(--err-ink);white-space:nowrap}
.cv-pair{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-bottom:1rem}
@media (max-width:760px){.cv-pair{grid-template-columns:1fr}}
.cv-person p{margin:.5rem 0}
.cv-wide{margin-bottom:1rem}
.cv-ph{display:flex;align-items:center;gap:.7rem}.cv-ph>span:not(.avatar):not(.pill){flex:1;min-width:0;display:flex;flex-direction:column}.cv-ph small{color:var(--muted);font-size:.82rem;overflow-wrap:anywhere}
.cv-thread{display:flex;flex-direction:column;gap:.55rem}
.cv-msg{max-width:78%;padding:.55rem .75rem;border-radius:var(--r-md);background:var(--sunk)}
.cv-msg.r{align-self:flex-end;background:var(--leaf-soft)}
.cv-msg b{display:block;font-size:.75rem;color:var(--muted);font-weight:600;margin-bottom:.15rem}
.cv-msg p{margin:0;overflow-wrap:anywhere}
.cv-msg.flagged{outline:2px solid var(--danger)}
.cv-msg .cv-flag{margin-top:.35rem}
.cv-note-msg{max-width:none;border:1px dashed var(--line);background:transparent}
.cv-log{margin-top:1rem}
