/* Launch Weekend — "Ship Board". Light cool paper, ink, cobalt for builders, coral for growers.
   Colour is never the only signal: builder = square, grower = circle, always beside the word. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-2193, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-2193, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  /* palette */
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #121417;
  --ink-2: #454b55;
  --ink-3: #5b626d;       /* smallest grey: 5.7:1 on paper, 5.3:1 on wash */
  --line: #e2e5ea;
  --line-2: #cfd4db;
  --wash: #eceff3;
  --b: #2f5bff;           /* builder, cobalt */
  --b-wash: #eaf0ff;
  --b-ink: #1f3fc4;
  --g: #ff5a4d;           /* grower, coral */
  --g-wash: #fff0ee;
  --g-ink: #c0291f;
  --danger: #b42318;
  --danger-wash: #fdeeec;
  --live: #14a35a;
  --live-ink: #0c7a42;
  --amber: #e8a317;
  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* space + shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r: 12px; --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 56px;
  --pad-l: max(16px, env(safe-area-inset-left));
  --pad-r: max(16px, env(safe-area-inset-right));
  --dock-h: calc(64px + env(safe-area-inset-bottom));
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%;
}
body.in { padding-bottom: var(--dock-h); }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
body:not(.in) .member-only, body.in .out-only { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--b); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.display { font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.mono, .label {
  font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.label { display: block; }
.hint { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.page-h { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.page-sub { margin-top: 6px; color: var(--ink-3); font-size: 15px; }

/* shape markers: square = builder, circle = grower */
.mk { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 4px; background: var(--b); vertical-align: middle; }
.mk-ci { background: var(--g); border-radius: 50%; }
.mk-sm { width: 10px; height: 10px; border-radius: 2.5px; }
.mk-sm.mk-ci { border-radius: 50%; }
.mk-xl { width: 36px; height: 36px; border-radius: 9px; }
.mk-xl.mk-ci { border-radius: 50%; }
.mk-end { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 50%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-row {
  max-width: 1180px; margin: 0 auto; height: var(--bar); display: flex; align-items: center; gap: var(--s-4);
  padding: 0 var(--pad-r) 0 var(--pad-l);
}
.wordmark { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.marks { display: flex; align-items: center; gap: 3px; }
.marks .mk { width: 11px; height: 11px; border-radius: 3px; }
.marks .mk-ci { border-radius: 50%; }
.wm-tag { margin-left: -3px; color: var(--ink-3); font: 400 13px/1 var(--mono); }
.top-action { margin-left: auto; }
.top-acct { flex: none; gap: 7px; padding: 0 14px 0 11px; margin-left: -8px; }
.top-acct svg { width: 18px; height: 18px; flex: none; }
.top-acct[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px; background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 1px 2px rgba(18, 20, 23, .25); }
.btn-primary:hover:not([disabled]) { background: #262a30; }
.btn-ghost { border-color: var(--line-2); background: var(--card); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink-3); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
#heroPrimary::after { content: "\2192"; margin-left: 2px; transition: transform .2s var(--ease); }
#heroPrimary:hover::after { transform: translateX(3px); }
body.in #topAction, #acctBtn { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
body:not(.in) #topAction { background: var(--ink); color: #fff; }

.close {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 500; line-height: 1;
}
.close:hover { border-color: var(--ink-3); }
.close svg { width: 16px; height: 16px; }

/* ---------- dock: bottom bar on phones, part of the top bar on desktop ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px var(--pad-r) env(safe-area-inset-bottom) var(--pad-l);
  background: var(--card); border-top: 1px solid var(--line);
}
.dock-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 56px; padding-bottom: 6px;
  border-radius: 10px; color: var(--ink-2); font-size: 12px; font-weight: 500; text-align: center;
}
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn:active { background: var(--wash); }
.dock-btn[aria-current="page"] { color: var(--ink); font-weight: 600; }
.dock-btn[aria-current="page"] svg { stroke-width: 2.3; }
.dock-btn[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; background: var(--b); border-radius: 2px; }
.dock-post { color: var(--ink); font-weight: 600; }
.dock-post svg { width: 44px; height: 30px; padding: 6px 13px; border-radius: 9px; background: var(--ink); color: #fff; stroke-width: 2.2; }

/* ---------- landing ---------- */
.hero { padding: 28px 0 8px; }
.land-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.evt { display: inline-flex; align-items: center; margin-bottom: 26px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-2); font: 400 13px/1 var(--mono); }
.land-h {
  position: relative; display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px;
  font-size: clamp(34px, 10.2vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; white-space: nowrap;
}
.land-h::before { content: ""; position: absolute; left: 9px; top: .52em; bottom: .52em; width: 2px; background: var(--line-2); transform-origin: top; }
.ln { position: relative; display: flex; align-items: center; gap: .32em; }
.ln .mk { width: 20px; height: 20px; box-shadow: 0 0 0 5px var(--paper); }
.ln .mk-end { box-shadow: 0 0 0 5px var(--paper); }
.caret { display: inline-block; width: .075em; height: .8em; margin-left: .14em; border-radius: 1px; background: var(--b); vertical-align: -.04em; }
.land-sub { max-width: 30em; margin-bottom: 26px; padding-left: 32px; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.land-cta { padding-left: 32px; }
.land-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.count { position: relative; overflow: hidden; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.count::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--b); }
.count-g::before { background: var(--g); }
.count-top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.count-lbl { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.count-n { display: block; font: 500 56px/1 var(--mono); letter-spacing: -.04em; font-feature-settings: "tnum"; }
.count p { margin-top: 8px; color: var(--ink-3); font-size: 14px; }

.promise { margin: 40px auto 0; }
.promise > .label { margin-bottom: 10px; }
.promise-h { max-width: 18em; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.promise-list { display: grid; gap: 10px; margin-top: 20px; }
.promise-list li { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.promise-list .num { flex: none; color: var(--ink-3); font: 500 13px/1.5 var(--mono); }
.promise-list p { color: var(--ink-2); }

/* ---------- chips ---------- */
.chips, .chip-row, .post-tags, .prow-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row { gap: 8px; }
span.chip, button.chip[disabled] {
  display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 7px; background: var(--wash);
  color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 1.2;
}
.chips-ghost span.chip { background: transparent; border: 1px dashed var(--line-2); padding: 5px 8px; }
button.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-2);
  font-size: 14px; font-weight: 500; line-height: 1; transition: border-color .15s, background .15s, color .15s;
}
button.chip::after { content: ""; position: absolute; inset: -3px -2px; }
button.chip:hover { border-color: var(--ink-3); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
button.chip[aria-disabled="true"] { opacity: .45; }
.gap { padding: 2px 5px; border: 1px solid currentColor; border-radius: 4px; color: var(--g-ink); font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
button.chip[aria-pressed="true"] .gap { color: #fff; }
.chip-clear { gap: 8px; margin-top: var(--s-2); }
.chip-clear svg { width: 14px; height: 14px; }

/* ---------- avatars ---------- */
.ph { flex: none; width: 44px; height: 44px; object-fit: cover; background: var(--wash); border-radius: 12px; }
.ph[data-track="grower"] { border-radius: 50%; }
.av { display: grid; place-items: center; overflow: hidden; background: var(--b); color: #fff; font: 500 14px/1 var(--mono); }
.av[data-track="grower"] { background: var(--g); color: var(--ink); }

/* side label: shape + word */
.side-mark { display: inline-flex; align-items: center; gap: 7px; color: var(--b-ink); font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
[data-track="grower"] .side-mark { color: var(--g-ink); }
.sm-dot { width: 10px; height: 10px; border-radius: 2.5px; background: var(--b); }
[data-track="grower"] .sm-dot { border-radius: 50%; background: var(--g); }

.nm { font-weight: 600; letter-spacing: -.01em; }
.hl { color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-top: var(--s-4); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
  color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px rgba(47, 91, 255, .22); }
input[aria-invalid="true"] { border-color: var(--danger); }
input:disabled { background: var(--wash); color: var(--ink-3); }
.ferr, .gate-err, .summary {
  color: var(--danger); font-size: 14px; line-height: 1.45;
}
.ferr:empty, .gate-err:empty { display: none; }
.summary { margin-bottom: var(--s-3); padding: 10px 12px; border-radius: 10px; background: var(--danger-wash); font-weight: 500; }
.retry { margin-left: 4px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline; padding: 12px 4px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--wash); }
.seg button {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 9px; color: var(--ink-2);
  font-size: 14px; font-weight: 500; text-align: center; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 20, 23, .12), 0 0 0 1px var(--line); }
.seg button b { margin-left: 4px; color: var(--ink-3); font: 500 12px/1 var(--mono); }
.seg .mk { margin-right: 7px; }
.seg-stage button[aria-pressed="true"], .view-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.switch {
  position: relative; flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line-2); transition: background .2s;
}
.switch::after { content: ""; position: absolute; inset: -6px -4px; } /* a 44px-tall hit area around the 32px switch */
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(18, 20, 23, .3); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--b); }
.switch[aria-checked="true"] i { transform: translateX(20px); }

.confirm { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.confirm > p, .confirm > input, .confirm > .ferr { flex: 1 0 100%; }
.confirm > p { color: var(--ink-2); }
.confirm > .btn { flex: 1 1 140px; }
.inline-form { display: grid; gap: var(--s-2); margin-top: var(--s-3); }

/* ---------- directory ---------- */
.dir-head, .feed-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.directory { padding-top: var(--s-4); padding-bottom: var(--s-6); }
.dir-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.search { position: relative; flex: 1 1 200px; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 42px; }
.filters-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 500; transition: border-color .15s;
}
.filters-btn:hover { border-color: var(--ink-3); }
.filters-btn svg { width: 18px; height: 18px; }
.filters-btn.active, .filters-btn[aria-expanded="true"] { border-color: var(--ink); }
.filters-btn.active { background: var(--ink); color: #fff; }
.seg-sides { flex: 1 0 100%; }
.fpanel { display: none; flex: 1 0 100%; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.fpanel.open { display: block; }
.fp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.star-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-weight: 500; }
.star-toggle svg { width: 18px; height: 18px; }
.star-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.star-toggle[aria-pressed="true"] svg { fill: currentColor; }
.seg-mini { flex: 1 1 220px; max-width: 320px; }

.dir-meta { margin: var(--s-4) 0 var(--s-2); font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dir-meta:empty { display: none; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.prow {
  position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 72px; padding: 12px 40px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; transition: border-color .15s, box-shadow .2s;
}
.prow:hover { border-color: var(--line-2); box-shadow: 0 4px 18px -8px rgba(18, 20, 23, .16); }
.prow::after, .mrow::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border: solid var(--ink-3); border-width: 0 1.8px 1.8px 0; transform: rotate(-45deg); }
.prow-text, .mrow-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.prow, .mrow, .my-name, .post, .reply { min-width: 0; overflow-wrap: anywhere; }
.prow-top .nm, .mrow-top .nm { min-width: 0; }
.prow-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.prow .nm { font-size: 16px; }
.prow .hl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-chips { margin-top: 3px; }
.prow-chips .chip { padding: 4px 8px; font-size: 12.5px; }
.prow .starred { position: absolute; right: 34px; top: 12px; width: 16px; height: 16px; fill: var(--ink); stroke: var(--ink); }

.meet-host:empty { display: none; }
.meet { margin-top: var(--s-5); }
.meet-h { margin-bottom: var(--s-3); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.mlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.mrow {
  position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 12px 40px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; transition: border-color .15s;
}
.mrow:hover { border-color: var(--line-2); }
.mrow-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.mrow .hl { display: none; }
.why { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.meet-none { padding: var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card); }
.meet-btn { margin-top: var(--s-3); }

/* ---------- empty states ---------- */
.empty { margin: var(--s-4) 0; padding: var(--s-6) var(--s-5); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card); }
.empty .label { margin-bottom: 10px; }
.empty h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.empty p:not(.label) { margin-top: 8px; color: var(--ink-2); }
.empty .btn { margin-top: var(--s-4); }

/* ---------- feed ---------- */
.feed { padding-top: var(--s-4); padding-bottom: var(--s-6); }
.feed-layout { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.feed-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.feed-filters .seg { flex: 1 1 0; min-width: 0; }
.feed-filters .seg button { padding: 0 6px; font-size: 13px; }
.feed-filters .filters-btn { padding: 0 14px; }
.feed-filters .filters-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feed-filters .filters-btn.active span { position: static; width: auto; height: auto; clip: auto; }
.chip-panel { flex: 1 0 100%; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.legend { display: none; }

.composer-host:empty { display: none; }
.composer-bar {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; padding: 10px 14px 10px 10px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(18, 20, 23, .04);
  transition: border-color .15s;
}
.composer-bar:hover { border-color: var(--line-2); }
.cb-text { flex: 1; min-width: 0; color: var(--ink-2); font-size: 15px; }
.cb-plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--wash); }
.cb-plus svg { width: 18px; height: 18px; }
.composer-prompt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: 18px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.composer-prompt p { flex: 1 1 200px; color: var(--ink-2); }

.composer { margin-bottom: 18px; padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); box-shadow: 0 8px 28px -16px rgba(18, 20, 23, .25); }
.c-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.c-close { min-height: 44px; padding: 0 4px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.kinds { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
.kind-opt { position: relative; display: block; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.ko-in { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, background .15s; }
.ko-in svg { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--ink-2); }
.ko-name { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.ko-hint { color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.kind-opt input:checked + .ko-in { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.kind-opt input:focus-visible + .ko-in { outline: 2px solid var(--b); outline-offset: 2px; }
.c-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-2) 0 var(--s-4); }
.c-hint { flex: 1; font-size: 13px; }
.c-meta .label { margin-left: auto; }
.c-actions { margin-top: var(--s-4); }
.c-actions .btn { width: 100%; }
.cg + .ferr, .composer .cg { margin-top: var(--s-3); }

.feed-new { display: block; width: 100%; margin-bottom: var(--s-3); padding: 12px; border-radius: 10px; background: var(--b); color: #fff; font-weight: 500; text-align: center; min-height: 44px; }
.feed-more { display: flex; width: 100%; margin-top: var(--s-2); }

.feed-list { position: relative; padding-left: 36px; }
.feed-list:empty { display: none; }
.feed-list::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(var(--line-2) 0 94%, transparent); }
.day { position: relative; display: flex; align-items: center; height: 20px; margin: 4px 0 12px; color: var(--ink-3); font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.day::before { content: ""; position: absolute; left: -32px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--ink-3); border-radius: 50%; background: var(--paper); }
.post { position: relative; margin-bottom: 14px; }
.post .stop { position: absolute; left: -36px; top: 19px; box-shadow: 0 0 0 5px var(--paper); transition: transform .2s var(--ease); }
.post[data-track="grower"] > .stop { background: var(--g); border-radius: 50%; }
.post:hover > .stop { transform: scale(1.12); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .15s, box-shadow .2s; }
.post:hover .card { border-color: var(--line-2); box-shadow: 0 4px 18px -8px rgba(18, 20, 23, .14); }
.post-open { display: block; width: 100%; padding: 14px 16px 2px; text-align: left; }
.post-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kind-label { padding: 5px 8px; border-radius: 6px; background: var(--b-wash); color: var(--b-ink); font: 600 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.kind-label[data-track="grower"] { padding: 5px 10px; border-radius: 99px; background: var(--g-wash); color: var(--g-ink); }
.when { color: var(--ink-3); font: 400 12px/1 var(--mono); }
.post-body { display: block; margin-bottom: 12px; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.post-tags { margin-bottom: 12px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 6px 8px 6px 12px; border-top: 1px solid var(--line); }
.post-author { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 44px; padding: 2px 6px 2px 0; border-radius: 8px; text-align: left; }
.post-author .ph { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.post-author .ph[data-track="grower"] { border-radius: 50%; }
.pa-text { display: flex; flex-direction: column; min-width: 0; }
.pa-name { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.post-author:hover .pa-name { text-decoration: underline; text-underline-offset: 3px; }
.pa-meta { display: flex; gap: 4px; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.reply-link { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; }
.reply-link:hover { background: var(--wash); }
.reply-link svg { width: 16px; height: 16px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; overflow: hidden; background: var(--paper); }
.overlay-page { z-index: 70; }
.overlay-thread { z-index: 58; }
.overlay-admin { z-index: 64; }
.overlay-gate { z-index: 85; }
.overlay-sheet { flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.sheet-scroll { flex: none; display: flex; justify-content: center; width: 100%; min-height: 100%; margin: auto 0; padding: 0 var(--pad-r) calc(32px + env(safe-area-inset-bottom)) var(--pad-l); }
.sheet-in { width: min(480px, 100%); }
.sheet-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) 0 10px; background: var(--paper); pointer-events: none; }
.sheet-in > * + * { margin-top: var(--s-3); }
.sheet-in > .sheet-top + * { margin-top: 0; }

.join-scroll { width: 100%; overflow-y: auto; overscroll-behavior: contain; }
.join-in { width: 100%; max-width: 640px; min-height: 100%; margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); display: flex; flex-direction: column; }
.thread-in, .overlay-admin .join-in { max-width: 720px; }
.join-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: max(10px, env(safe-area-inset-top)) 0 10px; background: var(--paper); }
.join-top .close { margin-left: auto; }
.join-in > form { display: flex; flex: 1; flex-direction: column; }
.join-in > form > :last-child, .join-in > :last-child { margin-top: auto; }
.join-h { margin-top: var(--s-2); font-size: 28px; }
.join-h2 { margin-top: var(--s-6); font-size: 22px; }
.join-h2 + .hint { margin-top: 4px; }
.join-bar { position: sticky; bottom: 0; z-index: 4; margin: var(--s-6) calc(var(--pad-l) * -1) 0 calc(var(--pad-r) * -1); padding: var(--s-3) var(--pad-r) calc(var(--s-3) + env(safe-area-inset-bottom)) var(--pad-l); border-top: 1px solid var(--line); background: var(--paper); }
.join-bar-in { display: grid; gap: var(--s-2); max-width: 640px; margin: 0 auto; }
.join-bar-in .btn { width: 100%; }
.success { margin-top: var(--s-2); }
.success h2 { margin-top: 8px; font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.success .mono { display: inline-flex; align-items: center; gap: 8px; }
.success .mono::before, .gate-in > .mono:first-child::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--b); }
.join-badge { margin-top: var(--s-4); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.tile:has(input:focus-visible) { outline: 2px solid var(--b); outline-offset: 2px; }
.tile:hover { border-color: var(--ink-3); }
.t-name { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.t-sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: 14px; line-height: 1.35; }
.t-sel { display: none; align-items: center; gap: 4px; margin-top: auto; font: 600 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.t-sel svg { width: 14px; height: 14px; stroke-width: 2.4; }
.tile[data-track="builder"]:has(input:checked) { border-color: var(--b); background: var(--b-wash); }
.tile[data-track="builder"]:has(input:checked) .t-sel { color: var(--b-ink); }
.tile[data-track="grower"]:has(input:checked) { border-color: var(--g); background: var(--g-wash); }
.tile[data-track="grower"]:has(input:checked) .t-sel { color: var(--g-ink); }
.tile:has(input:checked) .t-sel { display: inline-flex; }

.consent { display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-3); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); font-size: 14px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--b); }

.cg { margin-top: var(--s-5); }
.cg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.cg-group { margin-top: var(--s-3); }
.cg-gname { margin-bottom: 8px; }
.cg .hint { margin-bottom: var(--s-2); }
.cg .chips { gap: 8px; }
.photo-pick { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.photo-pick .ph { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; }
.photo-pick .ph[data-track="grower"] { border-radius: 50%; }
.pg { margin-top: var(--s-5); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.pg .field:first-of-type { margin-top: var(--s-3); }
.pcount { margin-left: auto; }
.field > .label { display: flex; align-items: center; }

/* ---------- thread ---------- */
.post-full { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.post-full .post-author { padding-left: 0; }
.post-full .post-main { margin-top: var(--s-3); }
.post-full .kind-label { display: inline-block; margin-bottom: 10px; }
.post-full .post-body { margin-bottom: 12px; font-size: 16.5px; }
.post-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.post-actions:empty { display: none; }
.post-slot:empty { display: none; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 500; }
.tbtn svg { width: 16px; height: 16px; }
.tbtn:hover { border-color: var(--ink-3); }
.tbtn.quiet { color: var(--ink-2); }
.tbtn.danger { color: var(--danger); }
.replies-sec { margin-top: var(--s-6); }
.m-head { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-3); }
.t-h { font-size: 20px; }
.replies { display: grid; gap: var(--s-2); }
.reply { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.reply .post-author { min-height: 40px; }
.reply .post-body { margin: 6px 0 0; font-size: 15px; }
.reply .post-actions { margin-top: 8px; padding-top: 0; border: 0; }
.replies-empty, .helpers-none { margin-top: var(--s-2); }
.helpers { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.helpers-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; font-weight: 600; }
.helpers-toggle .chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.helpers-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.hlist { display: grid; border-top: 1px solid var(--line); }
.hcard { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; text-align: left; }
.hcard + .hcard { border-top: 1px solid var(--line); }
.hc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-match { color: var(--ink-2); font-size: 13px; }
.hc-match i { margin-right: 6px; color: var(--ink-3); font-style: normal; }
.reply-bar { position: sticky; bottom: 0; z-index: 4; margin: var(--s-5) calc(var(--pad-l) * -1) 0 calc(var(--pad-r) * -1); padding: var(--s-3) var(--pad-r) calc(var(--s-3) + env(safe-area-inset-bottom)) var(--pad-l); border-top: 1px solid var(--line); background: var(--paper); }
.reply-bar-in { display: grid; gap: var(--s-2); }
.reply-bar textarea { min-height: 48px; }
.rb-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.rb-row .btn { min-width: 120px; }

/* ---------- badge ---------- */
.badge-wrap { width: 100%; }
.badge { position: relative; overflow: hidden; padding: 24px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(18, 20, 23, .04), 0 18px 40px -24px rgba(18, 20, 23, .25); }
.badge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--b); }
.badge[data-track="grower"]::before { background: var(--g); }
.b-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: 20px; }
.b-serial { color: var(--ink-3); font: 400 12px/1 var(--mono); letter-spacing: .04em; }
.b-id { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.b-photo { width: 64px; height: 64px; border-radius: 18px; font-size: 21px; }
.b-photo[data-track="grower"] { border-radius: 50%; }
.b-who { min-width: 0; }
.b-name { font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.b-name.long { font-size: 22px; }
.b-headline { margin-top: 6px; color: var(--ink-2); font-size: 15px; text-wrap: pretty; overflow-wrap: anywhere; }
.b-project { margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.b-project-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: 10px; }
.b-project-name { font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; overflow-wrap: anywhere; }
.b-project-about { margin-top: 4px; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.stage-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-2); font: 500 12px/1 var(--mono); text-transform: lowercase; }
.stage-pill i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.stage-building i { background: var(--amber); }
.stage-idea i { border: 1.5px solid var(--ink-3); background: transparent; }
.stage-live { border-color: #b9e6cf; background: #effaf4; color: var(--live-ink); }
.stage-live i { background: var(--live); }
.steps { display: flex; margin-top: 16px; }
.steps li { position: relative; flex: 1; padding-top: 18px; color: var(--ink-3); font: 500 12px/1 var(--mono); text-transform: lowercase; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps li i { position: absolute; left: 0; top: 0; z-index: 1; width: 10px; height: 10px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--paper); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ink); }
.steps li.done i { border-color: var(--ink); background: var(--ink); }
.steps li.cur::before { background: var(--line-2); }
.steps li.cur i { box-shadow: 0 0 0 4px rgba(18, 20, 23, .1); }
.steps li.cur:last-child i { border-color: var(--live); background: var(--live); box-shadow: 0 0 0 4px rgba(20, 163, 90, .2); }
.b-ask { margin-bottom: 20px; }
.b-ask .label { margin-bottom: 6px; }
.b-ask p:last-child { font-size: 15.5px; overflow-wrap: anywhere; white-space: pre-line; }
.b-groups { display: grid; gap: 18px; }
.b-groups:empty { display: none; }
.b-group .label { margin-bottom: 10px; }

/* contact actions under a badge */
.acts { display: flex; flex-direction: column; gap: var(--s-2); }
.acts > div { display: contents; }
/* contact buttons waiting for their links: same size as the real ones, so nothing moves when they arrive */
.act.act-skel, .act.act-primary.act-skel { pointer-events: none; box-shadow: none; color: var(--ink-3); border-color: var(--line); background: linear-gradient(100deg, var(--wash) 30%, var(--card) 50%, var(--wash) 70%) 0 0 / 220% 100%; animation: skel 1.4s linear infinite; }
.act-skel > svg { opacity: .5; }
.act-primary.act-skel > svg { color: var(--ink-3); }
/* links will not arrive (limit or offline): the placeholders stop shimmering and sit quietly dimmed */
.contact-box.failed .act.act-skel { animation: none; background: var(--wash); opacity: .7; }
@keyframes skel { to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .act.act-skel { animation: none; } }
.acts > div > .act-note, .act-note { margin-top: 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-wash); color: var(--danger); font-size: 14px; }
.act {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; text-align: left;
  transition: border-color .15s, transform .12s;
}
.act:hover { border-color: var(--line-2); }
.act:active { transform: scale(.99); }
.act > svg { flex: none; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.act > span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.act-sub { margin-top: 1px; color: var(--ink-3); font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-link::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px; border: solid var(--ink-3); border-width: 1.8px 1.8px 0 0; transform: rotate(45deg); }
.act-primary { justify-content: center; min-height: 56px; padding: 0 20px; border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 1px 2px rgba(18, 20, 23, .25); }
.act-primary:hover { border-color: #262a30; background: #262a30; }
.act-primary > svg { width: 20px; height: 20px; padding: 0; border: 0; background: none; }
.act-primary > span { flex: 0 1 auto; }
.act-row .row-chev { width: 18px; height: 18px; margin-left: auto; border: 0; background: none; padding: 0; color: var(--ink-3); }
.act-danger { color: var(--danger); }
.act-danger > svg { color: var(--danger); }
.act[aria-pressed="true"] > svg { fill: var(--ink); }
.act-num { margin: 2px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--wash); font: 500 15px/1.2 var(--mono); }
.act-left { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.act-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.save-ask { margin-top: 0; }
.note-btn { margin-top: 8px; min-height: 44px; }

/* My card, My QR, account */
.view-seg { margin-bottom: var(--s-3); }
.view-seg button { font-weight: 600; }
.my-name { margin-bottom: var(--s-4); }
.my-name h2 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.my-name .label { margin-top: 6px; }
.my-qr { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.my-qr img { width: min(100%, 300px); height: auto; background: #fff; }
.my-qr .mono { color: var(--ink-3); }
.my-qr-big img { width: min(100%, 340px); }
.qr-view { padding-top: var(--s-2); }
.qr-empty { padding: var(--s-6) 0; }
.qr-empty h2 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.qr-empty .hint { margin: 8px 0 var(--s-4); }
.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: var(--s-2); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.back-btn svg { width: 18px; height: 18px; }
.acct-title { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.acct-email { margin: 6px 0 var(--s-4); color: var(--ink-3); font: 400 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 500; }
.reveal-count { margin-bottom: var(--s-3); }
.acct .acts + .acct-danger-h { margin-top: var(--s-5); }
.acct-danger-h { margin-bottom: var(--s-2); color: var(--danger); }
.acct .acts { margin-bottom: var(--s-3); }
.claim-head { margin-bottom: var(--s-2); }
.claim-head h2 { margin: 6px 0; font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.claim-btns { margin-top: var(--s-3); }

/* ---------- admin ---------- */
.adm-h { margin: var(--s-6) 0 var(--s-2); }
.adm-list { display: grid; gap: var(--s-2); }
.adm-row { display: grid; gap: 6px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.adm-acct { grid-template-columns: 1fr auto; align-items: center; }
.adm-who { font-weight: 600; }
.adm-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.adm-reason, .adm-email { color: var(--ink-3); font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.adm-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 6px; }
.adm-status { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 99px; background: var(--wash); color: var(--ink-2); }
.adm-status.bad { background: var(--danger-wash); color: var(--danger); }

/* ---------- sign in ---------- */
.overlay-gate { align-items: center; justify-content: center; overflow-y: auto; padding: 72px var(--pad-r) 32px var(--pad-l); }
.gate-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: var(--pad-r); }
.gate-in { width: min(440px, 100%); margin: auto; padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(18, 20, 23, .04), 0 24px 48px -28px rgba(18, 20, 23, .3); }
.gate-in > .mono:first-child { display: inline-flex; align-items: center; gap: 8px; }
.gate-h { margin-top: 10px; font-size: 32px; }
.gate-lead { margin: 10px 0 var(--s-5); color: var(--ink-2); font-size: 16px; }
.gate-lead b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.gate-in form { display: grid; gap: var(--s-3); }
.gate-in .btn { width: 100%; }
.gate-in input[name="code"], #si-code { font: 500 22px/1 var(--mono); letter-spacing: .3em; text-align: center; }
#si-code::placeholder { font: 400 15px/1 var(--sans); letter-spacing: 0; }
.gate-err { padding: 10px 12px; border-radius: 10px; background: var(--danger-wash); font-weight: 500; }
.gate-info { color: var(--ink-2); font-size: 14px; }
.gate-info:empty { display: none; }
.gate-back { min-height: 44px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.gate-note { margin-top: var(--s-4); color: var(--ink-3); font-size: 13.5px; }
.gate-note a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- footer and toast ---------- */
.foot { margin-top: var(--s-4); padding: var(--s-6) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: var(--s-5); }
.foot-title { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.foot-note { max-width: 40ch; margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.foot-note a { color: var(--ink-2); text-underline-offset: 3px; }
.qr-tile { width: 176px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qr-tile img { width: 100%; height: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 14px); z-index: 90; max-width: min(90vw, 420px); padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px); transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body:not(.in) .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- privacy note ---------- */
.doc { max-width: 720px; padding-top: var(--s-6); padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom)); }
.doc-title { margin-top: 10px; font-size: clamp(34px, 9vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.doc-lede { max-width: 52ch; margin-top: var(--s-4); color: var(--ink-2); font-size: 18px; }
.doc section { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.doc h2 { color: var(--ink-3); font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.doc p, .doc li { max-width: 62ch; margin-top: 12px; color: var(--ink-2); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li::marker { color: var(--ink-3); }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .land-h::before { animation: draw 1s .15s var(--ease) both; }
  @keyframes draw { from { transform: scaleY(0); } }
  .ln { animation: rise .6s var(--ease) both; }
  .ln:nth-child(2) { animation-delay: .22s; }
  .ln:nth-child(3) { animation-delay: .44s; }
  .ln .mk { animation: pop .5s var(--ease) both; }
  .ln:nth-child(2) .mk { animation-delay: .22s; }
  .ln:nth-child(3) .mk { animation-delay: .44s; }
  .evt, .land-sub, .land-cta, .count { animation: rise .6s var(--ease) both; }
  .land-sub { animation-delay: .5s; }
  .land-cta { animation-delay: .6s; }
  .count { animation-delay: .35s; }
  .post, .prow { animation: rise .45s var(--ease) both; }
  .badge { animation: rise .5s var(--ease) both; }
  .stage-live i::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--live); border-radius: 50%; animation: pulse 2s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.25); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .kinds { grid-template-columns: repeat(3, 1fr); }
  .ko-in { grid-template-columns: 1fr; row-gap: 2px; min-height: 96px; align-content: start; padding: 12px; }
  .ko-in svg { grid-row: auto; margin-bottom: 4px; }
  .promise-list { grid-template-columns: repeat(3, 1fr); }
  .promise-list li { flex-direction: column; gap: 10px; }
  .foot-inner { grid-template-columns: 1fr auto; align-items: end; }
  .gate-in { padding: 36px 36px 30px; }
}
@media (min-width: 700px) {
  .grid, .mlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-filters .filters-btn span { position: static; width: auto; height: auto; clip: auto; }
}
@media (min-width: 900px) {
  :root { --bar: 64px; }
  body.in { padding-bottom: 0; }
  .topbar-row { gap: var(--s-5); }
  .dock {
    position: static; display: flex; gap: 2px; margin-left: var(--s-2); padding: 0; border: 0; background: none;
  }
  .dock-btn { flex-direction: row; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
  .dock-btn svg { width: 18px; height: 18px; }
  .dock-btn:hover { background: var(--wash); }
  .dock-btn[aria-current="page"] { background: var(--wash); }
  .dock-btn[aria-current="page"]::before { display: none; }
  .dock-post { order: 5; margin-left: var(--s-2); background: var(--ink); color: #fff; }
  .dock-post:hover { background: #262a30; }
  .dock-post svg { width: 18px; height: 18px; padding: 0; background: none; stroke-width: 2.2; }
  .toast, body:not(.in) .toast { bottom: 28px; }

  .hero { padding: 64px 0 24px; min-height: calc(100vh - var(--bar) - 120px); display: flex; align-items: center; }
  .hero .land-grid { grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: center; }
  .land-h { font-size: clamp(64px, 6.4vw, 92px); }
  .land-h::before { left: 13px; }
  .ln .mk { width: 28px; height: 28px; border-radius: 6px; }
  .ln .mk-ci, .ln .mk-end { border-radius: 50%; }
  .land-sub { padding-left: 52px; font-size: 20px; }
  .land-cta { padding-left: 52px; }
  .land-side { grid-template-columns: 1fr; gap: 14px; }
  .count { padding: 24px 28px 22px; }
  .count-n { font-size: 96px; }
  .promise { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
  .promise-h { font-size: 36px; }
  .promise-list li { padding: 22px; }

  .page-h { font-size: 38px; }
  .dir-head, .feed-head { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .directory { padding-top: var(--s-6); }
  .dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-5); }
  .dir-head .page-sub { margin: 0; }
  .dir-filters { align-items: center; flex-wrap: nowrap; }
  .dir-filters .search { flex: 1 1 auto; }
  .dir-filters .seg-sides { flex: 0 0 auto; order: 3; }
  .dir-filters .filters-btn { order: 2; }
  .dir-filters .fpanel { order: 4; flex: 1 0 100%; }
  .dir-filters { flex-wrap: wrap; }
  .dir-filters .search { flex: 1 1 280px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .mlist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .mrow .hl { display: block; }
  .meet { margin-top: var(--s-6); }
  .prow { padding: 14px 40px 14px 16px; }

  .feed { padding-top: var(--s-6); }
  .feed-layout { grid-template-columns: 300px minmax(0, 680px); gap: 72px; justify-content: center; align-items: start; }
  .feed-aside { position: sticky; top: calc(var(--bar) + 24px); }
  .feed-filters { margin-top: var(--s-5); }
  .feed-filters .seg { flex: 1 0 100%; flex-direction: column; background: none; padding: 0; gap: 6px; }
  .feed-filters .seg button { font-size: 14px; flex: none; justify-content: flex-start; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); text-align: left; }
  .feed-filters .seg button:hover { border-color: var(--ink-3); }
  .feed-filters .seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
  .feed-filters .filters-btn { flex: 1 0 100%; justify-content: flex-start; }
  .legend { display: flex; flex-direction: column; gap: 14px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
  .legend p { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
  .legend .mk { margin-top: 6px; }
  .legend b { color: var(--ink); font-weight: 600; }
  .feed-list { padding-left: 48px; }
  .feed-list::before { left: 8px; }
  .post .stop { left: -48px; }
  .day::before { left: -45px; }
  .post-open { padding: 18px 22px 2px; }
  .post-foot { padding: 6px 12px 6px 18px; }

  .overlay-sheet { background: rgba(18, 20, 23, .45); }
  .sheet-scroll { padding: 40px var(--pad-r); }
  .sheet-in { padding: 0 24px 24px; border-radius: 20px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(18, 20, 23, .5); align-self: flex-start; }
  .sheet-in.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; align-items: start; width: min(900px, 100%); }
  .sheet-in.two > * + * { margin-top: 0; }
  .sheet-in.two > .sheet-top { grid-column: 1 / -1; }
  .sheet-top { padding-top: 16px; }
  .join-in { padding-left: var(--s-5); padding-right: var(--s-5); }
  .join-bar, .reply-bar { margin-left: calc(var(--s-5) * -1); margin-right: calc(var(--s-5) * -1); padding-left: var(--s-5); padding-right: var(--s-5); }
  .badge { padding: 28px 28px 26px; }
  .b-name { font-size: 32px; }
  .b-photo { width: 72px; height: 72px; }
  .gate-in { padding: 40px 40px 34px; }
}
@media (min-width: 1100px) {
  .grid, .mlist { gap: 14px; }
}
.summary:empty { display: none; }
/* the server's QR has a cream background; lift it to pure white so the modules read dark-on-white */
.my-qr img, .qr-tile img { filter: contrast(1.25); }
.sheet-in > div > * + * { margin-top: var(--s-3); }
/* narrow phones: "Launch Weekend", "My card"/"Add your card" and the account button must all fit at 320px */
@media (max-width: 520px) {
  .topbar-row { gap: var(--s-3); }
  .top-action { padding: 0 12px; font-size: 13px; }
  .top-acct { margin-left: -4px; padding: 0 12px; font-size: 13px; }
  .top-acct svg { display: none; } /* the word matters more than the icon when space is short */
  .wm-tag { display: none; }
}
@media (max-width: 360px) {
  .topbar-row { gap: 6px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .wm-tag { display: none; }
  .wordmark { gap: 7px; font-size: 13px; }
  .top-action { padding: 0 8px; font-size: 12.5px; }
  .top-acct { margin-left: 0; padding: 0 8px; font-size: 12.5px; }
}

/* the match list inside the narrow publish sheet stays one column at every width */
#join .mlist { grid-template-columns: 1fr; }

/* Visually hidden inputs (photo picker, etc.) are absolutely positioned; without a positioned
   scroller they hang off the fixed overlay and let it be scrolled out of place on focus.
   Contain them in the scroller, and make the overlay itself unscrollable. */
.join-scroll, .sheet-scroll { position: relative; }
.overlay:not(.overlay-sheet) { overflow: clip; }

/* A focused field must never sit under the sticky top bar or the sticky bottom bar (which can hold an error summary
   or a "Discard changes?" question), so scrolling to it leaves room for both. */
.join-scroll, .overlay-sheet, .sheet-scroll {
  scroll-padding-top: calc(72px + env(safe-area-inset-top));
  scroll-padding-bottom: calc(180px + env(safe-area-inset-bottom));
}

/* photo picker: one tab stop (the hidden input); its ring shows on the visible button */
.photo-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.photo-pick:has(#photo-file:focus-visible) label.btn { outline: 2px solid var(--b); outline-offset: 2px; }
.photo-clear[hidden] { display: none; }
.nudge { margin-top: var(--s-2); padding: 10px 12px; border-radius: 10px; background: var(--wash); color: var(--ink-2); }
.join-bar-in .discard { margin-top: 0; }

/* a mark on your own row in the directory */
.you-tag { padding: 3px 7px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.also { margin-top: var(--s-5); }

/* the empty feed's three starters */
.starters { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.starter { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 15px; font-weight: 600; text-align: left; transition: border-color .15s; }
.starter:hover { border-color: var(--ink-3); }
.starter svg { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
@media (min-width: 560px) {
  .starters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .starter { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 96px; padding: 14px; }
}

/* sign-in hint and neutral notes */
.gate-lead + .gate-hint { margin: -14px 0 var(--s-5); color: var(--ink-3); font-size: 14px; }
.acts > div > .act-note.act-note-info, .act-note.act-note-info { background: var(--wash); color: var(--ink-2); }

/* inline links in small print get a 44px-tall hit area without changing how the text looks */
.gate-note a, .foot-note a { position: relative; }
.gate-note a::after, .foot-note a::after { content: ""; position: absolute; inset: -14px -6px; }

/* admin */
.adm-search { margin-bottom: var(--s-3); }
.adm-meta { margin-top: var(--s-3); }
.adm-list + .adm-meta + .btn { margin-top: var(--s-2); width: 100%; }
.adm-acct { grid-template-columns: minmax(0, 1fr) auto; }
.adm-act { display: flex; justify-content: flex-end; }
.adm-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.adm-act .adm-confirm { max-width: 240px; justify-content: flex-end; }
.adm-ask { flex: 1 0 100%; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.adm-susp { align-self: center; color: var(--danger); }

/* ---------- admin insights ---------- */
.overlay-insights { z-index: 65; }
.adm-ins { width: 100%; margin-top: var(--s-3); justify-content: center; }
.ins-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-3) 0 var(--s-2); }
.ins-sec { margin-bottom: var(--s-4); }
.ins-meta { margin: 0 0 var(--s-3); }
.ins-empty { padding: var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card); color: var(--ink-2); }
.ins-big { margin: 0 0 var(--s-3); font-size: 15px; color: var(--ink-2); }
.ins-big b { font-size: 34px; letter-spacing: -.03em; color: var(--ink); }
.ins-sub { margin: var(--s-4) 0 var(--s-2); font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ins-bars { display: grid; gap: 8px; }
.ins-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 6.5rem; align-items: center; gap: var(--s-3); font-size: 14px; line-height: 1.3; }
.ins-l { overflow-wrap: anywhere; }
.ins-bar { display: block; height: 10px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 99px; background: var(--b); }
.ins-n { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ins-n small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.ins-spark { display: flex; align-items: flex-end; gap: 1px; height: 64px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.ins-spark i { flex: 1 1 0; min-width: 1px; background: var(--b); border-radius: 1px 1px 0 0; }
.ins-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.ins-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ins-table th, .ins-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.ins-table th[scope="row"] { min-width: 120px; }
.ins-table tbody tr:last-child > * { border-bottom: 0; }
.ins-table thead th { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); }
.ins-table th[scope="row"] { font-weight: 500; }
.ins-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-brk { margin: 6px 0 0; }
@media (max-width: 520px) { .ins-row { grid-template-columns: minmax(0, 1fr) 6.5rem; } .ins-row .ins-bar { grid-column: 1 / -1; order: 3; } }

/* admin: event code, unusual activity, action log */
.adm-panel { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.adm-code-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.adm-code-row > div { min-width: 0; flex: 1 1 180px; }
.adm-code-val { margin: 2px 0 6px; font-size: 24px; letter-spacing: .08em; overflow-wrap: anywhere; }
.adm-qr { flex: none; width: 132px; height: 132px; border-radius: 10px; }
.adm-signups { margin: 0; font-weight: 600; }
.adm-signups.bad { color: var(--danger); }
.adm-change { display: grid; gap: var(--s-2); }
.adm-change input { width: 100%; }
.adm-logrow { gap: 2px; }
.adm-logrow .adm-text { white-space: normal; }
