/* Tribe — light design ("A2"): near-white, black buttons, the logo's colors as small accents */
:root {
  --bg: #FAFAFC;
  --card: #FFFFFF;
  --soft: #F0F0F5;
  --ink: #14141C;
  --muted: #4A4A5E;
  --faint: #62627A;
  --line: #E6E6EE;
  --navline: #E6E6EE;
  --accent: #14141C;
  --accent-press: #000000;
  --accent-soft: #EFE5FF;
  --on-accent: #FFFFFF;
  --dotted: #C9C9D6;
  --warn: #C2410C;
  --danger: #B42318;
  --violet: #5B2FD6;
  --head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 480px;
  --nav-h: 64px;
  --shadow: 0 1px 2px rgba(18, 28, 23, .04), 0 4px 14px rgba(18, 28, 23, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { scrollbar-gutter: stable both-edges; } /* same width on long and short pages, so the app doesn't shift sideways between tabs */
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
p { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1.1; }
h1 { font-size: 34px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; }

#app { max-width: var(--max); margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
body.no-nav #app { padding-bottom: 110px; }

body.chat-open #app { padding-bottom: 0; }
.pad { padding: 0 20px; }
.stack-y { display: flex; flex-direction: column; gap: 14px; }

.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); padding: 18px 20px 22px; }
.hero .topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--on-accent); opacity: .16; pointer-events: none; }
.hero > * { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 44px; }
.hero.compact .hero-main { margin-top: 0; }
.hero h1 { font-size: 38px; font-weight: 700; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.hero .eyebrow button { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 4px; }
.hero .round { width: 48px; height: 48px; border-radius: 50%; background: var(--on-accent); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.hero .ghost-round, .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hero .ghost-round, .hero .icon-btn { background: rgba(241, 239, 232, .16); color: var(--on-accent); }
.hero .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero .tag { background: rgba(241, 239, 232, .16); color: var(--on-accent); }
.hero .hostline { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; }
.hero .hostline .av { box-shadow: 0 0 0 2px var(--on-accent); }
.hero .hostline small { display: block; font-size: 13px; opacity: .85; }

/* ---------- buttons, tags, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 700 16px var(--body); transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.plain { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--navline); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #E3BDB3; }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 6px; }
.btn .i { width: 20px; height: 20px; }
.link { color: var(--accent); font-weight: 700; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag .i { width: 12px; height: 12px; stroke-width: 2.6; }
.tag.warn { background: #F6E3DA; color: var(--warn); }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--faint); }
.field small { color: var(--faint); font-size: 13px; }
input, textarea, select { width: 100%; font: 16px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348544D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.bday-row { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr; gap: 8px; }

/* ---------- date picker ---------- */
.date-btn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: 16px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 12px; }
.date-btn .i { color: var(--accent); flex: none; }
.date-btn.unset span { color: var(--faint); }
.date-btn:focus-visible { border-color: var(--accent); outline: none; }
.cal { display: grid; gap: 14px; padding: 0 4px 4px; }
.cal-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-quick button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; }
.cal-quick button:hover { border-color: var(--accent); }
.cal-quick button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.cal-head b { font-family: var(--head); font-size: 23px; }
.cal-head b span { color: var(--faint); font-weight: 500; }
.cal-head button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cal-head button:hover:not(:disabled) { border-color: var(--accent); }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--faint); padding-bottom: 4px; }
.cal-grid .day { height: 44px; border-radius: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-grid .day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-grid .day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-grid .day.today { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 800; }
.cal-grid .day.sel, .cal-grid .day.sel:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.cal-grid .day:disabled { color: var(--navline); cursor: default; }
.error { color: var(--danger); font-weight: 700; font-size: 14px; }
.error:empty { display: none; }
.form { display: grid; gap: 16px; padding: 18px 16px 0; }
.form h2 { margin-top: 6px; }

/* switch */
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.switch-row .txt { flex: 1; display: grid; gap: 2px; }
.switch-row .txt b { font-family: var(--head); font-size: 17px; }
.switch-row .txt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--navline); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* radio cards & chips */
.choice { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; padding: 0; }
.choice:has(input:checked) { background: var(--accent-soft); border: 2px solid var(--accent); padding: 9px 11px; }
.choice .txt { display: grid; }
.choice .txt b { font-size: 15px; }
.choice .txt small { font-size: 13px; color: var(--muted); }
.choice.disabled { opacity: .55; cursor: default; }
.chips { display: flex; gap: 6px; }
.chips label { flex: 1; position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { height: 42px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.chips input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-family: var(--head); font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 8px; }

/* segmented tabs */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--accent); border-radius: 6px; overflow: hidden; margin: 16px 20px 0; }
.seg a, .seg span { height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.seg [aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* cards & lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.card.pad16 { padding: 14px 16px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.row .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row .txt b { font-family: var(--head); font-size: 17px; }
.row .txt small { color: var(--muted); font-size: 14px; }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { flex: none; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.logo { flex: none; border-radius: 8px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; }
.stack { display: inline-flex; }
.stack .av { box-shadow: 0 0 0 2px var(--bg); }
.stack .av + .av { margin-left: -9px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.empty { text-align: center; padding: 40px 24px; display: grid; gap: 8px; justify-items: center; }
.empty p { color: var(--muted); max-width: 300px; }
.empty .btn { margin-top: 8px; }

/* ---------- meetups trail ---------- */
.trail { position: relative; padding: 18px 20px 0; }
.trail::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 50px; border-left: 3px dotted var(--dotted); }
.stop { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.marker { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 12px; }
.marker.online { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.marker .i { width: 18px; height: 18px; stroke-width: 2.4; }
.stop .txt { display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.stop .when { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.stop .when.online { color: var(--accent); }
.stop .title { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.15; }
.stop .host { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.stop .host .price { color: var(--ink); font-weight: 700; }
.stop .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.checkin-card { margin: 16px 20px 0; padding: 14px 16px; border-radius: 8px; background: var(--card); border: 2px solid var(--accent); display: grid; gap: 10px; }
.checkin-card .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.checkin-card h3 { font-size: 19px; }
.checkin-card .btns { display: flex; gap: 8px; }
.checkin-card .btns .btn { flex: 1; height: 42px; font-size: 14px; border-radius: 6px; padding: 0 10px; white-space: nowrap; }

/* ---------- meetup page ---------- */
.facts { display: grid; gap: 10px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.fact .ico .i { width: 18px; height: 18px; }
.fact .txt { display: grid; padding-top: 1px; }
.fact small { color: var(--muted); font-size: 14px; }
.desc { font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.people { display: grid; gap: 4px; }
.person { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.person b { font-weight: 600; flex: 1; }
.checkin-panel { padding: 14px 16px; display: grid; gap: 12px; }
.checkin-panel .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.checkin-panel .head small { font-size: 12px; color: var(--muted); }
.requests .req { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.requests .who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.requests .who .txt { display: grid; min-width: 0; }
.requests .who small { color: var(--muted); font-size: 12px; }
.requests .req .btn.sm { padding: 0 12px; flex: none; }
.bar3 { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft); }
.bar3 .yes { background: var(--accent); }
.bar3 .pending { background: #B9C9BE; }
.bar3 .no { background: var(--warn); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; color: var(--muted); }
.stats3 b { display: block; font-family: var(--head); font-size: 22px; color: var(--ink); }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: linear-gradient(transparent, var(--bg) 24%); padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); }
.actionbar .in { max-width: calc(var(--max) - 32px); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.actionbar .btn { flex: 1; height: 54px; }
.actionbar .btn.narrow { flex: none; }
.actionbar .note { flex: 1; font-size: 14px; color: var(--muted); }

/* itinerary */
.itin { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.itin li { display: flex; gap: 12px; }
.itin .t { width: 62px; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 11px; }
.itin .b { flex: 1; padding: 10px 12px; border-radius: 6px; background: var(--card); border-left: 3px solid var(--accent); display: grid; gap: 3px; }
.itin .b b { font-weight: 600; font-size: 15px; }
.itin .b small { font-size: 13px; color: var(--muted); }
.itin .b.has-note { background: var(--accent-soft); }
.slot { padding: 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.slot .top { display: flex; gap: 8px; align-items: center; }
.slot input[type=time] { width: 112px; height: 40px; padding: 0 8px; background: var(--bg); font-weight: 600; font-size: 14px; flex: none; }
.slot .what { flex: 1; min-width: 0; height: 40px; border: 0; font-weight: 600; font-size: 15px; padding: 0 4px; }
.slot .note { height: 38px; border: 1px dashed #BDB8AA; background: var(--bg); font-size: 14px; color: var(--muted); }
.slot .x { width: 36px; height: 40px; color: var(--faint); display: flex; align-items: center; justify-content: center; flex: none; }
.slot .addnote { justify-self: start; font-size: 13px; font-weight: 700; color: var(--accent); padding: 4px; }
.add-slot { height: 50px; border-radius: 8px; border: 2px dashed var(--accent); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* top bar for forms */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--navline); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 19px; }
.topbar .side { min-width: 64px; display: flex; }
.topbar .side.end { justify-content: flex-end; }
.topbar a, .topbar .txtbtn { height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--muted); padding: 0 4px; }
.formbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--bg); border-top: 1px solid var(--navline); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.formbar .in { max-width: calc(var(--max) - 32px); margin: 0 auto; display: flex; gap: 10px; }
.formbar .btn { flex: 1; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }

/* check-in page */
.checkin-page { min-height: 100vh; background: var(--accent); color: var(--on-accent); position: relative; overflow: hidden; padding: 16px 20px 24px; display: flex; flex-direction: column; }
.checkin-page .topo { position: absolute; inset: 0; width: 100%; height: 60%; color: var(--on-accent); opacity: .12; }
.checkin-page > * { position: relative; }
.checkin-page .eyebrow { margin-top: 40px; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.checkin-page h1 { font-size: 46px; margin-top: 10px; }
.checkin-page .sheetcard { margin-top: auto; background: var(--bg); color: var(--ink); border-radius: 10px; padding: 20px 18px; display: grid; gap: 14px; }
.checkin-page .fine { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.4; }

/* ---------- clubs ---------- */
.club-hero { padding: 0 20px; display: grid; justify-items: start; gap: 8px; margin-top: -40px; }
.club-hero .logo { box-shadow: 0 0 0 4px var(--bg); }
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { flex: 1; }

/* ---------- chats ---------- */
.chat-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.chat-row .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row .txt b { font-family: var(--head); font-size: 17px; }
.chat-row .txt span { font-size: 14px; }
.chat-row .txt span.read { color: var(--muted); }
.chat-row .txt em { font-style: italic; color: var(--muted); }
.chat-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); }
.chat-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 8px; background: var(--accent); color: var(--on-accent); }
.chat-top .txt { min-width: 0; flex: 1; display: grid; }
.chat-top b { font-family: var(--head); font-size: 18px; }
.chat-top small { font-size: 13px; opacity: .85; }
.chat-top .icon-btn { color: var(--on-accent); }
.chat-body { padding: 16px 16px 96px; display: flex; flex-direction: column; gap: 3px; min-height: calc(100vh - 70px); }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 84%; }
.msg .col { min-width: 0; }
.msg .name { font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0 3px 12px; }
.bubble { background: var(--card); border: 1px solid var(--line); padding: 9px 13px; border-radius: 16px 16px 16px 4px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; }
.msg.mine .bubble { background: var(--accent); border-color: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; }
.msg .av-slot { width: 30px; flex: none; }
.msg.gap { margin-top: 10px; }
.sysmsg { align-self: center; text-align: center; max-width: 88%; margin: 10px 0; padding: 7px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.chat-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--faint); margin: 14px 0 6px; letter-spacing: .06em; text-transform: uppercase; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--navline); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.composer form { max-width: calc(var(--max) - 32px); margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; min-height: 44px; height: 44px; max-height: 120px; border-radius: 22px; padding: 10px 16px; }
.composer button { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- profile ---------- */
.p-head { display: flex; gap: 16px; align-items: flex-end; }
.p-photo { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--on-accent); overflow: hidden; flex: none; }
.p-photo .av, .p-photo img { width: 100% !important; height: 100% !important; font-size: 34px !important; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 16px 20px 0; }
.p-stats b { display: block; font-family: var(--head); font-size: 24px; }
.p-stats span { font-size: 13px; color: var(--muted); }
.prompt-card { padding: 18px 18px 20px; }
.prompt-card .q { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.prompt-card .a { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.menu { display: grid; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; padding: 16px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.menu .i { color: var(--muted); }
.menu .chev { margin-left: auto; color: var(--faint); }
.menu .danger, .menu .danger .i { color: var(--danger); }
.club-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.club-chips a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* images */
.img-pick { position: relative; display: block; cursor: pointer; justify-self: center; }
.img-pick input { display: none; }
.img-pick .ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--soft); border: 2px dashed #C9C3B5; color: var(--muted); font-weight: 700; font-size: 14px; overflow: hidden; }
.img-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .ph.has { border: 0; }
.img-pick.round .ph { width: 108px; height: 108px; border-radius: 50%; }
.img-pick.square .ph { width: 108px; height: 108px; border-radius: 12px; }
.img-pick .plus { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg); }
.img-pick .plus .i { width: 18px; height: 18px; }

/* ---------- welcome ---------- */
.splash { min-height: 100vh; background: var(--accent); color: var(--on-accent); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 24px 40px; }
.splash .topo { position: absolute; inset: 0; width: 100%; height: 70%; color: var(--on-accent); opacity: .14; }
.splash > * { position: relative; }
.splash .mark { width: 72px; height: 72px; border-radius: 18px; background: var(--on-accent); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.splash .mark .i { width: 40px; height: 40px; stroke-width: 1.8; }
.splash h1 { font-size: 54px; line-height: .95; }
.splash .logo { width: 132px; height: auto; margin-bottom: 14px; }
.splash .logo + h1 { font-family: var(--body); font-weight: 700; font-size: 60px; letter-spacing: -1.5px; }
.splash p { font-size: 18px; opacity: .9; margin: 12px 0 32px; }
.splash .btn { background: var(--on-accent); color: var(--accent); }
.splash .btn.ghost { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 1.5px rgba(241, 239, 232, .6); }
.splash .btns { display: grid; gap: 12px; }
.auth { padding: 8px 20px 0; }
.auth h1 { font-size: 34px; margin: 8px 0 6px; }
.auth > p { color: var(--muted); margin-bottom: 20px; }
.switch-auth { text-align: center; color: var(--muted); margin-top: 18px; }

/* ---------- bottom nav ---------- */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--navline); padding-bottom: env(safe-area-inset-bottom); }
#nav .in { max-width: var(--max); margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
#nav a { height: 48px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; }
#nav a.on { color: var(--accent); font-weight: 700; }
#nav a.on span { border-bottom: 3px solid var(--accent); padding-bottom: 3px; }
#nav .dot { position: absolute; top: 10px; right: calc(50% - 26px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* ---------- sheet, toast ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(18, 28, 23, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap.open { background: rgba(18, 28, 23, .4); }
.sheet { width: 100%; max-width: var(--max); background: var(--bg); border-radius: 14px 14px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease; max-height: 80vh; overflow-y: auto; }
.sheet-wrap.open .sheet { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--navline); margin: 0 auto 14px; }
.sheet h3 { margin: 0 4px 8px; }
.sheet p { margin: 0 4px 12px; color: var(--muted); font-size: 14px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; }
.opt:last-child { border-bottom: 0; }
.opt .check { margin-left: auto; color: var(--accent); }
.opt.danger { color: var(--danger); }
#toast { position: fixed; left: 50%; z-index: 60; bottom: calc(var(--nav-h) + 90px); transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 28px; height: 28px; margin: 120px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- safety: report, block, delete account, moderation ---------- */
button.bubble { text-align: left; cursor: pointer; line-height: inherit; }
button.bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .chev { margin-left: auto; color: var(--faint); }
.opt .av, .opt img { flex: none; }
.report-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 4px 4px 0; }
.report-done h3 { margin: 0; }
.report-done p { margin: 0; }
.report-done .btn { width: 100%; }
.report-done .badge-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.menu .badge { margin-left: auto; }
.menu .badge + .chev { margin-left: 0; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.report-card { padding: 14px 16px; display: grid; gap: 10px; }
.rc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-head small { margin-left: auto; color: var(--faint); font-size: 12px; }
.report-card .snap { margin: 0; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--line); border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; font-size: 15px; }
.rc-details { margin: 0; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.rc-people { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* ---------- light design (A2) ---------- */
.hero, .hero.compact { background: var(--bg); color: var(--ink); padding: 20px 20px 10px; }
.hero .topo, .splash .topo, .checkin-page .topo { display: none; }
.hero-main { margin-top: 0; }
.hero:not(.compact) .hero-main::before { content: ""; position: absolute; top: -40px; left: 0; width: 58px; height: 30px; background: url(/logo-mark.svg) no-repeat left / contain; }
.hero:not(.compact) { padding-top: 60px; }
.hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.hero .eyebrow { color: var(--faint); letter-spacing: .06em; }
.hero .round { border-radius: 16px; background: var(--ink); color: #FFFFFF; }
.hero .ghost-round, .hero .icon-btn { background: var(--soft); color: var(--ink); }
.hero .tag { background: var(--soft); color: var(--ink); }
.hero .hostline .av { box-shadow: none; }
.hero .hostline small { color: var(--faint); opacity: 1; }

.btn { border-radius: 14px; font-weight: 800; }
.btn.sm { border-radius: 12px; }
.btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.card { border-radius: 20px; border-color: var(--line); }
.seg { border: 0; border-radius: 14px; background: var(--soft); padding: 4px; gap: 4px; }
.seg a, .seg span { color: var(--muted); border-radius: 11px; height: 40px; }
.seg [aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 28, .1); }
.checkin-card { border-radius: 20px; border: 1.5px solid #D9CCFF; background: #F7F3FF; }
.checkin-card .eyebrow { color: var(--violet); }
.checkin-card .btns .btn { border-radius: 12px; }

/* meetup lists: day headings, then cards led by the host's photo */
.days { padding: 6px 16px 0; display: grid; gap: 10px; }
.pad .days { padding: 0; }
.days section { display: grid; gap: 10px; }
.dayhead { margin: 10px 4px 0; font-size: 15px; font-weight: 900; text-transform: capitalize; }
.dayhead span { font-weight: 700; color: var(--faint); text-transform: none; }
.days .stop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.days .stop > .av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.stop .when { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 800; color: var(--violet); }
.stop .title { font-size: 18px; font-weight: 800; }
.stop .host { gap: 4px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }

#nav { background: var(--card); border-top-color: var(--line); }
#nav .in { grid-template-columns: repeat(3, 1fr); }
#nav a { font-weight: 700; color: var(--faint); }
#nav a.on { color: var(--ink); font-weight: 800; }
#nav a.on span { border-bottom: 0; padding-bottom: 0; }
#nav a.on span::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--ink); margin: 6px auto 0; }
#nav a { flex-direction: column; }

.splash { background: var(--bg); color: var(--ink); }
.splash p { color: var(--muted); opacity: 1; }
.splash .btn { background: var(--ink); color: #FFFFFF; }
.splash .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.checkin-page { background: var(--bg); color: var(--ink); }
.checkin-page .sheetcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.checkin-page .icon-btn { background: var(--soft) !important; color: var(--ink); }
.chat-top { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.chat-top .icon-btn { color: var(--ink); }

/* welcome (W4): big headline, interest chips, and a way to browse without an account */
.splash.welcome { justify-content: flex-start; padding-top: 48px; }
.splash.welcome .logo { width: 96px; margin-bottom: 28px; }
.splash.welcome h1 { font-family: var(--body); font-size: clamp(36px, 10.5vw, 50px); line-height: 1; font-weight: 900; letter-spacing: -2px; }
.splash.welcome h1 span { color: var(--violet); }
.splash.welcome p { margin: 18px 0 0; font-size: 17px; }
.interests { flex: 1; display: flex; flex-wrap: wrap; align-content: center; gap: 10px; padding: 24px 0; }
.interests span { height: 40px; padding: 0 16px; border-radius: 20px; display: flex; align-items: center; font-size: 15px; font-weight: 800; }
.interests .c0 { background: #FFE6DC; color: #B23E12; }
.interests .c1 { background: #EFE5FF; color: #5B2FD6; }
.interests .c2 { background: #DDF1FD; color: #0B6CA8; }
.interests .c3 { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.splash .browse { align-self: center; justify-self: center; padding: 10px; font-size: 15px; font-weight: 800; color: var(--violet); }

/* guests looking around without an account */
.guestbar { margin: 14px 16px 0; padding: 10px 14px; border-radius: 14px; background: #EFE5FF; color: #3B1A9E; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.guestbar a { font-weight: 900; padding: 6px 0; }
.joinsheet { display: grid; gap: 14px; }
.joinsheet .who { display: flex; align-items: center; gap: 12px; }
.joinsheet .who small { display: block; color: var(--muted); font-size: 14px; }
.joinsheet h2 { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
.joinsheet p { color: var(--muted); font-size: 15px; }
