:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #ECEEF2; --ink: #17181C; --ink-2: #5E6270; --ink-3: #8A8E9A;
  --line: #E1E3E8; --accent: #FFC21A; --accent-soft: #FFF3CC; --accent-ink: #5A4100; --leaf: #12805C; --leaf-soft: #DDF3EA;
  --heart: #E5405E; --danger: #C8322B; --danger-soft: #FCE7E5; --focus: #3B3BD6; --verify: #2F5BEA; --verify-soft: #E4EAFF;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111215; --surface: #1A1C21; --surface-2: #24272E; --ink: #F1F2F4; --ink-2: #A5A9B4; --ink-3: #7C808C;
    --line: #2D3038; --accent-soft: #3A2F0C; --accent-ink: #FFD65C; --leaf: #3CC48F; --leaf-soft: #133528;
    --danger-soft: #3B1714; --focus: #8C8CFF; --verify: #9DB3FF; --verify-soft: #1C2547; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111215; --surface: #1A1C21; --surface-2: #24272E; --ink: #F1F2F4; --ink-2: #A5A9B4; --ink-3: #7C808C;
  --line: #2D3038; --accent-soft: #3A2F0C; --accent-ink: #FFD65C; --leaf: #3CC48F; --leaf-soft: #133528;
  --danger-soft: #3B1714; --focus: #8C8CFF; --verify: #9DB3FF; --verify-soft: #1C2547; color-scheme: dark;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 0.875rem; } .tiny { font-size: 0.8rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row.wrapx { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.section { padding: 44px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; }
.navlinks { display: flex; gap: 2px; }
.navlinks a { padding: 8px 12px; border-radius: 999px; font-weight: 550; color: var(--ink-2); font-size: 0.95rem; }
.navlinks a:hover { color: var(--ink); background: var(--surface-2); }
.navlinks a.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; min-width: 0; width: 220px; }
.searchbox input { border: 0; background: none; outline: none; width: 100%; font-size: 0.93rem; }
.bottomnav { display: none; }
@media (max-width: 900px) {
  .navlinks, .hide-m { display: none !important; }
  .topbar .searchbox { display: none; }
  .topbar .wrap { gap: 10px; } .topbar .brand { margin-right: auto; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); }
  .bottomnav a.on { color: var(--ink); }
  .bottomnav svg { width: 22px; height: 22px; }
  main { padding-bottom: 84px; }
}
@media (min-width: 901px) { .show-m { display: none !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 0.95rem; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.btn-accent { background: var(--accent); color: #2A1F00; }
.btn-accent:hover { background: #F2B200; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-joined { background: var(--leaf-soft); color: var(--leaf); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 0.87rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.iconbtn:hover { background: var(--surface-2); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-leaf { background: var(--leaf-soft); color: var(--leaf); }
.chip-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.pulse { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse, .rise { animation: none !important; } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.card-pad { padding: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.ccard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color .15s; }
.ccard:hover { border-color: var(--ink-3); }
.ccard .art { aspect-ratio: 16 / 8; }
.ccard-body { padding: 0 18px 18px; position: relative; }
.ccard .logo { margin-top: -26px; margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 0.88rem; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; opacity: .8; }
.statline { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.statline b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; margin-right: 3px; }

.ecard { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.ecard:hover { border-color: var(--ink-3); }
.ecard .art { aspect-ratio: 16 / 7; position: relative; }
.datebadge { position: absolute; left: 14px; top: 14px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1.05; min-width: 54px; }
.datebadge b { display: block; font-family: var(--display); font-size: 1.4rem; }
.datebadge span { font-size: 0.72rem; font-weight: 700; color: var(--ink-2); }
.ecard-body { padding: 16px 18px 18px; }
.ecard h3 { margin: 4px 0 8px; }
.elist { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; }
.elist .art { aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; }
@media (max-width: 560px) { .elist { grid-template-columns: 84px 1fr; gap: 12px; } }

.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ocard:hover { border-color: var(--ink-3); }
.needs { display: flex; flex-wrap: wrap; gap: 6px; }
.need { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.86rem; font-weight: 650; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kv div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.kv b { display: block; font-family: var(--display); font-size: 1.1rem; }
.kv span { font-size: 0.78rem; color: var(--ink-2); }

/* logos & avatars */
.logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; border: 3px solid var(--surface); overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-s { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; border-width: 2px; }
.logo-xl { width: 104px; height: 104px; border-radius: 28px; font-size: 54px; border-width: 5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #fff; flex: none; }
.avatar-s { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-l { width: 64px; height: 64px; font-size: 1.3rem; }
.facepile { display: flex; } .facepile .avatar { border: 2px solid var(--surface); margin-left: -8px; } .facepile .avatar:first-child { margin-left: 0; }

/* art */
.art { position: relative; overflow: hidden; background: var(--surface-2); }
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hero */
.hero { padding: 48px 0 12px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.hero-lede { font-size: 1.2rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 30ch; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 480px; margin-top: 24px; }
.hero-search input { border: 0; outline: none; background: none; flex: 1; min-width: 0; font-size: 1rem; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
.mosaic a { position: relative; border-radius: var(--r-l); overflow: hidden; }
.mosaic a:nth-child(1) { grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }
.mosaic .tag { position: absolute; left: 12px; bottom: 12px; right: 12px; background: var(--surface); border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.mosaic .tag b { font-size: 0.9rem; display: block; line-height: 1.2; }
.mosaic .tag span { font-size: 0.78rem; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .mosaic { grid-auto-rows: 110px; }
}
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how .panel { padding: 22px; }
.how ol { list-style: none; padding: 0; margin: 14px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.how ol li + li::before { content: "›"; color: var(--ink-3); margin-right: 8px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.band { margin-top: 56px; background: var(--ink); color: var(--bg); border-radius: var(--r-l); padding: 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band .muted { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.band .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* page header */
.pagehead { padding: 36px 0 20px; }
.pagehead p { margin-top: 8px; max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.select, .input, .textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; height: 42px; padding: 0 12px; font-size: 0.93rem; outline: none; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8E9A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; width: 100%; }
.input { width: 100%; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.93rem; font-weight: 550; }
.toggle.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* community profile */
.cover { height: clamp(180px, 30vw, 320px); border-radius: 0 0 var(--r-l) var(--r-l); overflow: hidden; }
@media (min-width: 1181px) { .cover { border-radius: var(--r-l); margin-top: 16px; } }
.profilehead { display: flex; gap: 22px; align-items: flex-start; padding-top: 16px; position: relative; flex-wrap: wrap; }
.profilehead .logo-xl { margin-top: -64px; }
@media (max-width: 600px) { .profilehead { gap: 12px; } .profilehead .grow { flex-basis: 100%; } .profilehead .profile-actions { margin-left: 0; } }
.profilehead .logo-xl { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.profilehead h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 28px; }
.side { position: sticky; top: 84px; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; font-weight: 650; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 0.82rem; color: var(--ink-2); }
.sponsorbox { background: var(--accent-soft); border-radius: var(--r-m); padding: 20px; color: var(--accent-ink); }
.sponsorbox h3 { color: var(--ink); }

/* score */
.score { display: flex; align-items: center; gap: 14px; }
.score svg { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.score .num { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; }

/* posts */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-text { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.photos { display: grid; gap: 4px; margin-top: 12px; border-radius: var(--r-m); overflow: hidden; }
.photos.n1 { grid-template-columns: 1fr; } .photos.n1 > * { aspect-ratio: 16 / 10; }
.photos.n2 { grid-template-columns: 1fr 1fr; } .photos.n2 > * { aspect-ratio: 1; }
.photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; } .photos.n3 > :first-child { grid-row: span 2; }
.photos.n4 { grid-template-columns: 1fr 1fr; } .photos.n4 > * { aspect-ratio: 16 / 11; }
.post-actions { display: flex; gap: 4px; margin-top: 10px; margin-left: -8px; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.post-actions button:hover { background: var(--surface-2); }
.post-actions .liked { color: var(--heart); }
.post-actions svg { width: 18px; height: 18px; }
.comments { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.comment .bubble { background: var(--bg); border-radius: 14px; padding: 7px 12px; font-size: 0.93rem; }
.typebadge { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.typebadge.announcement { background: var(--accent-soft); color: var(--accent-ink); }
.typebadge.recap { background: var(--leaf-soft); color: var(--leaf); }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.composer .textarea { border: 0; padding: 4px 0; min-height: 70px; box-shadow: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 1; }

/* forms */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field > label, .label { font-weight: 650; font-size: 0.93rem; }
.hint { font-size: 0.84rem; color: var(--ink-3); }
.err { font-size: 0.84rem; color: var(--danger); font-weight: 600; }
.field.bad .input, .field.bad .textarea, .field.bad .select { border-color: var(--danger); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; font-weight: 550; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.upload { border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: 14px; display: flex; align-items: center; gap: 14px; background: var(--surface); }
.upload .prev { width: 88px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); }
.upload .prev.sq { width: 56px; }
.upload .prev img { width: 100%; height: 100%; object-fit: cover; }
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
@media (max-width: 600px) { .formcard { padding: 20px; border-radius: var(--r-m); } }
.fieldset { border-top: 1px solid var(--line); padding-top: 22px; }
.rolecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .rolecards { grid-template-columns: 1fr; } }
.rolecard { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-m); padding: 14px; }
.rolecard.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rolecard b { display: block; font-family: var(--display); font-size: 1.05rem; margin: 6px 0 2px; }
.rolecard span { font-size: 0.85rem; color: var(--ink-2); }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--surface-2); }
.steps i.on { background: var(--ink); }

/* misc */
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: var(--r-m); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 44px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-l); }
.empty .em { font-size: 34px; }
.empty h3 { margin: 8px 0 6px; }
.empty p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 16px; }
.notice { background: var(--surface-2); border-radius: var(--r-m); padding: 12px 14px; font-size: 0.9rem; color: var(--ink-2); }
.errorbox { background: var(--danger-soft); color: var(--danger); border-radius: var(--r-m); padding: 12px 14px; font-weight: 600; font-size: 0.92rem; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (max-width: 900px) { .toasts { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); } }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 0.93rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: rise .3s both; }
.toast.error { background: var(--danger); color: #fff; }
.overlay { position: fixed; inset: 0; background: rgba(10,10,14,.5); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-l); width: min(560px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 26px; animation: rise .25s both; }
@media (max-width: 600px) { .overlay { place-items: end center; padding: 0; } .modal { border-radius: var(--r-l) var(--r-l) 0 0; max-height: 92%; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); } }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 6px; min-width: 260px; z-index: 50; }
.menu a, .menu button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.menu .em { font-size: 20px; }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.93rem; }
.table th { font-size: 0.8rem; color: var(--ink-3); font-weight: 650; }
.scrollx { overflow-x: auto; }
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; margin-top: 24px; }
.dashnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; align-self: start; }
.dashnav a { padding: 10px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.dashnav a.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge { background: var(--accent); color: #2A1F00; border-radius: 99px; font-size: 0.72rem; font-weight: 800; padding: 1px 7px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; gap: 12px; } .dashnav { position: static; display: flex; flex-direction: row; overflow-x: auto; } .dashnav a { white-space: nowrap; gap: 6px; } }
.bignum { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; }
.inq { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: var(--surface); }
.status { font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.status.new { background: var(--accent-soft); color: var(--accent-ink); }
.status.contacted { background: var(--surface-2); color: var(--ink-2); }
.status.accepted { background: var(--leaf-soft); color: var(--leaf); }
.status.declined { background: var(--danger-soft); color: var(--danger); }
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-3); font-size: 0.88rem; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 901px) { .hscroll { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.prose p + p { margin-top: 12px; }

.navlinks a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 901px) { .topbar .searchbox { cursor: pointer; } }
@media (max-width: 1240px) and (min-width: 901px) { .topbar .searchbox { width: 40px; padding: 0; justify-content: center; } .topbar .searchbox input { display: none; } .topbar .wrap { gap: 14px; } }
.searchbox svg { flex: none; width: 18px; height: 18px; } .badge { min-width: 20px; text-align: center; }

/* ---------- verification, status pills, switches ---------- */
.verified { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 6px; border-radius: 99px; background: var(--verify-soft); color: var(--verify); font-size: 0.78rem; font-weight: 750; white-space: nowrap; vertical-align: middle; font-family: var(--body, inherit); letter-spacing: 0; }
.verified svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.verified.compact { width: 20px; height: 20px; padding: 0; justify-content: center; }
.verified.compact svg { width: 12px; height: 12px; }
h1 .verified, h2 .verified, h3 .verified { margin-left: 8px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--leaf-soft); color: var(--leaf); }
.pill.wait { background: var(--accent-soft); color: var(--accent-ink); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.off { background: var(--surface-2); color: var(--ink-2); }
.switch { width: 44px; height: 26px; border-radius: 99px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch.on { background: var(--leaf); box-shadow: none; }
.switch.on i { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }

/* ---------- choice cards (who can join) ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.choice { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 4px; cursor: pointer; color: var(--ink); }
.choice b { font-size: 0.97rem; }
.choice span { font-size: 0.86rem; color: var(--ink-2); }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.formsection { display: grid; gap: 4px; }
.formsection h3 { font-size: 1.15rem; }

/* ---------- question builder ---------- */
.qlist { display: grid; gap: 10px; }
.qrow { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; background: var(--surface); display: grid; gap: 10px; }
.qrow-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; }
@media (max-width: 600px) { .qrow-top { grid-template-columns: 1fr; } }
.qrow-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.qrow-bottom .grow { flex: 1; }
.qrow .input, .qrow .select { height: 40px; }
.minicheck { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.minicheck input { width: 17px; height: 17px; accent-color: var(--ink); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { border: 1px dashed var(--line); background: none; border-radius: 99px; padding: 6px 11px; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.presets button:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- registration form ---------- */
.optlist { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 0.93rem; background: var(--surface); }
.opt input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.opt:has(input:checked) { border-color: var(--ink); }
.profilebox { background: var(--surface-2); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 4px; }
.profilebox .row { flex-wrap: wrap; }
.sectionlabel { font-size: 0.78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.modal-scroll { max-height: min(62vh, 560px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }

/* ---------- answers & attendee tables ---------- */
.answers { display: grid; gap: 6px; font-size: 0.88rem; }
.answers div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; }
.answers dt { color: var(--ink-3); }
.answers dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.statcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.statcards .panel { padding: 14px; }
.statcards b { font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1.1; }
.statcards span { font-size: 0.82rem; color: var(--ink-2); }
.filterchips { display: flex; gap: 6px; flex-wrap: wrap; }
.filterchips button { border: 0; cursor: pointer; }
.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: var(--r-m); padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bulkbar .btn-ghost { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
@media (max-width: 900px) { .bulkbar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ink); }
.table td.actions, .table th.actions { white-space: nowrap; text-align: right; position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 12px -10px rgba(0,0,0,.18); }
.table td.actions .btn { margin-left: 4px; }
.table .ans { font-size: 0.86rem; min-width: 130px; max-width: 240px; overflow-wrap: break-word; }
.table th.ansh { min-width: 130px; max-width: 240px; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table .who { min-width: 190px; }
.acards { display: none; gap: 10px; }
@media (max-width: 760px) { .atable { display: none; } .acards { display: grid; } }
.acard { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; background: var(--surface); display: grid; gap: 10px; }
.acard .row.wrapx { --gap: 6px; }
details.ans-toggle summary { cursor: pointer; font-size: 0.86rem; font-weight: 650; color: var(--ink-2); }
details.ans-toggle[open] summary { margin-bottom: 8px; }

/* ---------- email outbox ---------- */
.mail { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.mail summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.mail summary::-webkit-details-marker { display: none; }
.mail pre { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); white-space: pre-wrap; font-family: inherit; font-size: 0.92rem; line-height: 1.55; }
.statusbanner { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-m); padding: 14px 16px; }
.statusbanner.wait { background: var(--accent-soft); color: var(--accent-ink); }
.statusbanner.ok { background: var(--leaf-soft); color: var(--leaf); }
.statusbanner.bad { background: var(--danger-soft); color: var(--danger); }
.statusbanner.off { background: var(--surface-2); color: var(--ink-2); }
.statusbanner b { display: block; }
.statusbanner p { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-2); }
