:root {
  --paper: #fafaf8;
  --card: #fff;
  --ink: #282d2a;
  --muted: #626960;
  --line: #dce0d8;
  --green: #365641;
  --wash: #edf1eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; font-weight: 600; }
h1 { font-size: 32px; letter-spacing: -.8px; margin-bottom: 12px; }
h2 { font-size: 21px; letter-spacing: -.3px; margin-bottom: 16px; }
h3 { font-size: 16px; margin-bottom: 10px; }
p { margin-bottom: 16px; }
small, .small { font-size: 12px; }
.muted, .optional, .fine { color: var(--muted); }
.break { overflow-wrap: anywhere; }
.icon { width: 17px; height: 17px; flex-shrink: 0; vertical-align: middle; }
.eyebrow { font-size: 12px; font-weight: 400; color: var(--muted); }
.lede { color: var(--muted); font-size: 16px; max-width: 580px; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; min-height: 44px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.button:hover { background: #444c45; }
.button.secondary { background: transparent; color: var(--ink); border-color: #a9b2a7; }
.button.secondary:hover { background: var(--wash); }
.button.green { background: var(--wash); color: var(--green); border-color: #a9bca7; }
.button.small { font-size: 12px; padding: 7px 12px; min-height: 36px; }
.button.full { width: 100%; margin-top: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 7px 0; font-size: 13px; color: var(--green); }
.text-button:hover, footer a:hover, .social-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.danger { color: #a03d2c; }
.site-header { max-width: 1000px; margin: auto; padding: 22px 32px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); }
.brand { font-size: 17px; font-weight: 650; letter-spacing: -.3px; flex-shrink: 0; }
.site-header nav { display: flex; gap: 24px; font-size: 13px; }
.site-header nav a { color: var(--muted); padding: 5px 0; }
.site-header nav a.active { color: var(--ink); box-shadow: 0 1px var(--ink); }
.header-end { margin-left: auto; flex-shrink: 0; }
.account-link { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.account-link .avatar { width: 28px; height: 28px; font-size: 10px; }
main { max-width: 1000px; margin: auto; padding: 0 32px; min-height: 65vh; }
footer { max-width: 1000px; margin: 64px auto 0; padding: 22px 32px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
footer > div { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .text-button { font-size: 12px; color: inherit; padding: 0; }
footer .icon { height: 12px; width: 12px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 1000; background: var(--paper); padding: 12px; }
.skip:not(:focus) { clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; white-space: nowrap; padding: 0; }
.page-intro { padding: 42px 0 30px; }
.landing { max-width: 680px; margin: 0 auto; }
.landing .page-intro { padding-top: 58px; padding-bottom: 34px; }
.landing h1 { font-size: 34px; }
.event-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-label { color: var(--muted); font-size: 12px; margin-bottom: 8px !important; }
.event-card h2 { margin-bottom: 6px; font-size: 24px; }
.event-card p { margin-bottom: 4px; }
.event-time { font-weight: 500; }
.event-card .muted { margin-top: 14px; max-width: 470px; }
.event-bottom { flex-shrink: 0; }
.attending { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 16px; }
.avatar-stack { display: flex; padding-left: 4px; }
.avatar-stack:empty { display: none; }
.avatar-stack .avatar { width: 28px; height: 28px; font-size: 10px; margin-left: -4px; border: 2px solid var(--paper); }
.rsvp-buttons { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.join-section { padding-top: 28px; }
.join-section p { margin-top: 16px; font-size: 13px; line-height: 1.7; }
.landing-note { font-size: 13px; color: var(--muted); margin: 32px 0 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; font-size: 14px; font-weight: 500; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 72px; height: 72px; font-size: 24px; }
.tone-0 { background: #e6dace; color: #665446; }
.tone-1 { background: #dbe4e3; color: #3d6262; }
.tone-2 { background: #e5e2d3; color: #676237; }
.tone-3 { background: #dce3d5; color: #4d6242; }
.tone-4 { background: #e3dce6; color: #68566f; }
.tone-5 { background: #e2e0d9; color: #676254; }
.profile-nudge { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 16px 18px; background: var(--wash); border-radius: 4px; }
.profile-nudge strong { display: block; font-size: 13px; font-weight: 500; }
.profile-nudge span { font-size: 12px; color: var(--muted); }
.section { margin-top: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 7px; }
.section-heading > .text-button { flex-shrink: 0; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.person-card { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; border-top: 1px solid var(--line); padding: 22px 0; min-width: 0; }
.person-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.person-top { grid-row: 1 / 5; }
.card-arrow { display: none; }
.person-card h3 { font-size: 16px; margin: 0 0 3px; overflow-wrap: anywhere; }
.person-bio { grid-column: 2; font-size: 13px; color: var(--muted); margin: 0 0 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.person-card .tags, .connection { grid-column: 2; }
.tag { display: inline-flex; border-radius: 3px; background: #eeefea; padding: 3px 7px; font-size: 11px; line-height: 1.5; max-width: 100%; overflow-wrap: anywhere; font-weight: 400; }
.tag.green { background: #e4ecdf; color: var(--green); }
.tag.rust { background: #eee4db; color: #78513a; }
.connection { font-size: 12px; color: var(--green); margin-top: 5px; }
.directory-tools { display: flex; gap: 16px; margin: 0 0 24px; }
.directory-tools .search { flex: 1; }
.directory-tools select { width: 230px; margin: 0; font-size: 13px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid #bfc5bb; border-radius: 4px; padding: 0 12px; margin-bottom: 0; }
.search input { border: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; padding: 10px 0 !important; }
.search .icon { color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 32px 0; border-top: 1px solid var(--line); }
.empty h3 { font-size: 17px; }
.empty p { font-size: 14px; color: var(--muted); }
.profile-page { max-width: 720px; margin: auto; }
.back-link { margin: 24px 0; }
.profile-sheet { border-top: 1px solid var(--line); }
.profile-visibility { display: flex; justify-content: flex-end; padding-top: 22px; }
.profile-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.profile-body > h1 { font-size: 32px; margin-bottom: 5px; overflow-wrap: anywhere; }
.profile-body > .muted { font-size: 13px; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; max-width: 630px; margin: 22px 0; }
.socials { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.social-link { display: flex; gap: 7px; align-items: center; font-size: 13px; color: var(--green); }
.social-link .icon { width: 13px; height: 13px; }
.common-box { background: var(--wash); padding: 20px; margin: 28px 0; border-radius: 4px; }
.common-box h2 { font-size: 15px; margin-bottom: 8px; }
.common-box p { font-size: 13px; margin-bottom: 12px; }
.common-box p:last-child { margin: 0; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 36px 0; }
.profile-columns h2, .profile-reading h2 { font-size: 18px; }
.interest-list > div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 14px; }
.interest-list small { color: var(--muted); font-size: 12px; }
.profile-reading { margin: 36px 0; }
.reading-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reading-link:hover { color: var(--green); }
.editor-page { max-width: 700px; margin: auto; }
.editor-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.editor-intro .lede { font-size: 14px; }
.editor-intro > a { flex-shrink: 0; }
.draft-notice { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 12px; color: var(--muted); }
.draft-notice strong { font-size: 12px; font-weight: 400; }
.draft-notice .text-button { color: var(--muted); font-size: 12px; }
.profile-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.profile-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; color: var(--muted); font-size: 14px; }
.profile-tabs button.selected { color: var(--ink); border-bottom-color: var(--ink); }
.profile-tabs button span { color: var(--muted); margin-right: 3px; }
.editor-content { padding: 28px 0 32px; min-width: 0; }
.editor-content > h2 { font-size: 19px; margin-bottom: 20px; }
.editor-content > .muted { font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #bfc5bb; background: var(--card); border-radius: 4px; padding: 10px 12px; font-weight: 400; font-size: 14px; min-height: 44px; margin-top: 7px; }
input[type=hidden] { display: none !important; }
input::placeholder, textarea::placeholder { color: #7b8179; }
textarea { resize: vertical; line-height: 1.6; }
label small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 5px; line-height: 1.65; }
.optional { font-size: 11px; font-weight: 400; margin-left: 5px; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.form-section h3 { font-size: 16px; }
.social-details > p { margin: 18px 0 10px; }
.social-row { grid-template-columns: 145px 1fr; gap: 12px; margin-bottom: 10px; }
.check-setting { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
input[type=checkbox] { accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; margin: 4px 0 0; }
.check-setting strong { font-weight: 500; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); background: var(--paper); z-index: 10; }
.save-bar > span { font-size: 12px; color: var(--muted); }
.save-bar .button { flex-shrink: 0; }
.signup-complete { max-width: 480px; margin: auto; padding: 40px 0; }
.signup-complete h1 { font-size: 27px; margin-bottom: 30px; }
.signup-rsvp h2 { font-size: 24px; margin-bottom: 12px; }
.signup-rsvp > p { color: var(--muted); }
.rsvp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.signup-rsvp .rsvp-actions { margin: 24px 0 12px; }
.signup-rsvp .rsvp-actions .button { flex: 1; min-height: 48px; }
.skip-rsvp { display: inline-block; padding: 10px 0; margin-bottom: 12px; }
.rsvp-reminder { border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 24px; background: var(--wash); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rsvp-reminder strong { font-size: 14px; font-weight: 500; }
.rsvp-reminder p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.account-details { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; font-size: 13px; }
.account-details p { margin-top: 20px; }
.account-details .text-button { margin-right: 20px; }
.topic-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.topic-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topic-row h3 { font-size: 14px; margin: 0; }
.topic-row .eyebrow { font-size: 11px; }
.topic-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.topic-levels label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.topic-levels select { margin-top: 4px; font-size: 13px; color: var(--ink); }
.topic-row.chosen h3 { color: var(--green); }
.add-custom { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.add-custom h3 { font-size: 16px; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; }
.inline-form input, .inline-form select { flex: 1; margin: 0; }
.inline-form .button { flex-shrink: 0; }
.post-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.post-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; flex: 1; cursor: pointer; }
.post-check strong { font-size: 14px; font-weight: 500; }
.post-check small { font-size: 12px; margin-top: 3px; }
.post-row > a { padding: 8px; color: var(--muted); }
.post-row > a .icon { height: 15px; width: 15px; }
#post-search { margin-bottom: 0; }
.editor-content > .search + p { margin: 14px 0 0; }
.meetup-switch { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 28px; }
.meetup-switch label { margin: 0; flex: 1; max-width: 470px; }
.meetup-switch p { font-size: 12px; color: var(--muted); margin: 20px 0 0; }
.circles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.circle-card { border-top: 2px solid var(--line); padding: 22px 0; min-width: 0; }
.circle-card.my-circle { border-color: var(--green); }
.circle-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.circle-number { color: var(--muted); font-size: 13px; }
.circle-card h2 { font-size: 20px; }
.circle-card h3 { font-size: 14px; }
.circle-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.circle-people a { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.circle-people .avatar { width: 30px; height: 30px; font-size: 10px; }
.prompts { padding-left: 20px; font-size: 14px; }
.prompts li { padding-left: 4px; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { border-top: 1px solid var(--line); padding: 24px 0; min-width: 0; }
.card > p { font-size: 13px; color: var(--muted); }
.card .tag { margin-bottom: 7px; }
.copy-field { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.copy-field input { font-size: 12px; }
summary { cursor: pointer; font-size: 14px; font-weight: 500; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '+'; display: inline-block; width: 20px; color: var(--muted); }
details[open] > summary::before { content: '−'; }
.meetup-editor > summary { display: flex; align-items: center; gap: 10px; }
.meetup-editor > summary > span:first-of-type { flex: 1; }
.meetup-editor form { margin-top: 24px; }
.group-controls { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.setup-steps { font-size: 13px; color: var(--muted); padding-left: 22px; margin: 24px 0; }
.setup-steps li { padding-left: 4px; margin-bottom: 14px; }
.setup-steps a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
#email-preferences .text-button { margin-left: 15px; }
#email-preferences .button { margin-bottom: 8px; }
.draft-card { border-top: 1px solid var(--line); padding: 18px 0; }
.draft-card > p { font-size: 13px; white-space: pre-wrap; margin-top: 16px; }
.draft-card .tags { margin: 16px 0; }
.draft-card .interest-list { margin: 18px 0; }
.draft-card summary .tag { margin-left: 12px; }
.prose { max-width: 700px; margin: auto; padding-top: 42px; }
.prose h2 { margin-top: 32px; font-size: 19px; }
.prose p { font-size: 14px; line-height: 1.85; color: var(--muted); }
.demo-banner { font-size: 11px; padding: 7px 20px; text-align: center; background: #e9e8df; color: var(--muted); }
.loading { padding: 90px 30px; text-align: center; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 4px; font-size: 13px; opacity: 0; pointer-events: none; z-index: 100; }
#toast.visible { opacity: 1; }
dialog { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 36px; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: #1b261d66; }
dialog > h2 { font-size: 25px; margin: 8px 0 16px; padding-right: 10px; }
dialog > p { font-size: 14px; }
.dialog-close { position: absolute; right: 12px; top: 12px; background: none; border: 0; padding: 7px; }
.auth-footer { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.auth-footer .text-button { font-size: 12px; }
.form-error { font-size: 13px; color: #a03d2c; }
.recovery-code { display: block; padding: 18px; border: 1px solid var(--line); background: var(--wash); overflow-wrap: anywhere; margin: 22px 0; }
.sso-buttons { display: grid; gap: 10px; }
.divider { text-align: center; font-size: 12px; color: var(--muted); margin: 20px 0; }
@media (max-width: 760px) {
  .site-header { gap: 24px; }
  .account-link > span:not(.avatar) { display: none; }
  .event-card { align-items: flex-start; flex-direction: column; gap: 22px; }
  .event-bottom { width: 100%; }
  .people-grid { column-gap: 24px; }
  .admin-grid { grid-template-columns: 1fr; gap: 12px; }
  .circles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { font-size: 14px; }
  h1, .landing h1 { font-size: 27px; letter-spacing: -.6px; }
  h2 { font-size: 20px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; padding: 18px 20px; gap: 14px; }
  .brand { font-size: 16px; }
  .header-end { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; gap: 28px; }
  .site-header nav a { padding-bottom: 3px; }
  main { padding: 0 20px; }
  footer { display: block; margin-top: 44px; padding: 22px 20px 28px; font-size: 11px; }
  footer > span { display: block; margin-bottom: 14px; }
  footer > div { gap: 20px; }
  footer .text-button { font-size: 11px; }
  .page-intro, .landing .page-intro { padding-top: 30px; padding-bottom: 25px; }
  .lede { font-size: 15px; }
  .event-card { padding: 22px 0; }
  .event-card h2 { font-size: 22px; }
  .join-section { padding-top: 24px; }
  .join-section p br { display: none; }
  .landing-note { margin-top: 25px; }
  .section { margin-top: 30px; }
  .section-heading { align-items: flex-start; gap: 15px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > .text-button { font-size: 12px; white-space: nowrap; padding-top: 0; }
  .section-heading > .text-button .icon { display: none; }
  .people-grid { grid-template-columns: 1fr; }
  .person-card { padding: 20px 0; }
  .directory-tools { flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .directory-tools select { width: 100%; font-size: 16px; }
  .profile-body > h1 { font-size: 28px; }
  .profile-columns { grid-template-columns: 1fr; gap: 28px; margin: 28px 0; }
  .interest-list > div { flex-direction: row; justify-content: space-between; gap: 14px; font-size: 13px; }
  .interest-list small { text-align: right; max-width: 135px; }
  .profile-title { margin-bottom: 16px; }
  .profile-visibility { padding-top: 18px; }
  .editor-intro { align-items: flex-start; }
  .editor-intro > a { font-size: 12px; max-width: 80px; }
  .editor-intro > a .icon { display: none; }
  .draft-notice { gap: 10px; }
  .draft-notice strong, .draft-notice .text-button { font-size: 11px; }
  .profile-tabs { justify-content: space-between; gap: 12px; }
  .profile-tabs button { font-size: 13px; }
  .editor-content { padding-top: 24px; }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .social-row { grid-template-columns: 100px 1fr; gap: 10px; }
  .social-row input { font-size: 16px; padding-left: 9px; padding-right: 9px; }
  .save-bar { padding: 12px 0; gap: 14px; }
  .save-bar > span { font-size: 11px; }
  .save-bar .button { font-size: 12px; padding: 10px 12px; }
  .save-bar .button .icon { display: none; }
  .topic-levels { gap: 10px; }
  .topic-levels select { font-size: 16px; padding: 9px 5px; }
  .topic-row .eyebrow { font-size: 10px; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .meetup-switch { flex-direction: column; align-items: stretch; gap: 0; }
  .meetup-switch p { margin-top: 12px; }
  .meetup-editor > summary { flex-wrap: wrap; font-size: 13px; }
  .meetup-editor > summary::before { width: 10px; }
  .prose { padding-top: 30px; }
  dialog { padding: 28px 24px; }
}
@media (max-width: 360px) {
  .topic-levels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Interest selection stays compact; knowledge is a separate, optional final step. */
.topic-picker { border: 1px solid #bfc5bb; border-radius: 4px; background: var(--card); }
.topic-picker > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; }
.topic-picker > summary::before { display: none; }
.topic-picker[open] > summary { border-bottom: 1px solid var(--line); }
.topic-picker > .search { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.topic-options { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 10px; scrollbar-gutter: stable; }
.topic-group { font-size: 11px; color: var(--muted); margin: 16px 0 6px; padding-top: 6px; }
.topic-option { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid #eeefea; cursor: pointer; }
.topic-option:last-child { border-bottom: 0; }
.topic-option strong { font-size: 14px; font-weight: 500; }
.topic-option small { font-size: 12px; line-height: 1.5; margin-top: 3px; }
.topic-option:has(input:checked) strong { color: var(--green); }
.topic-empty { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.selection-count { margin: 16px 0 9px; }
.selected-topic-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.selected-topic { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-align: left; background: var(--wash); border: 1px solid #d5ded1; border-radius: 4px; padding: 7px 9px; font-size: 12px; overflow-wrap: anywhere; }
.selected-topic .icon { width: 13px; height: 13px; margin-left: 2px; }
.selection-number { color: var(--muted); font-size: 12px; font-weight: 400; }
.add-topic-form { margin-top: 16px; }
.add-topic-form > label { margin-bottom: 5px; }
.add-topic-form > p { margin: 5px 0 0; font-size: 11px; }
.add-topic-form .inline-form { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
.add-topic-form .inline-form input { min-width: 0; margin: 0; }
.add-topic-form .inline-form .button { flex: 0 0 auto; margin: 0; }
.knowledge-row { display: grid; grid-template-columns: 1fr 175px; gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.knowledge-row label { font-size: 14px; margin: 0 0 6px; }
.knowledge-row p { margin: 0; }
.knowledge-row select { margin: 0; }
.topic-source { color: var(--green); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.topic-source .icon { width: 11px; height: 11px; }
.profile-tabs { justify-content: space-between; gap: 16px; }
.profile-tabs button { white-space: nowrap; }
@media (max-width: 560px) {
  .profile-tabs { gap: 6px; }
  .profile-tabs button { font-size: 12px; }
  .profile-tabs button span { margin-right: 0; }
  .topic-options { max-height: 310px; padding-left: 12px; padding-right: 12px; }
  .topic-option strong { font-size: 13px; }
  .topic-option small { font-size: 11px; }
  .knowledge-row { grid-template-columns: 1fr; gap: 12px; }
  .knowledge-row select { font-size: 16px; }
}
@media (max-width: 360px) {
  .profile-tabs button { font-size: 11px; }
  .profile-tabs button span { display: none; }
}
/* The QR-entry flow starts with one input and keeps primary actions within thumb reach. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.name-screen { max-width: 440px; margin: 0 auto; padding: 64px 0 30px; }
.name-screen h1 { font-size: 30px; }
.name-screen p { font-size: 14px; }
#name-form input { font-size: 22px; padding: 14px; margin-top: 28px; min-height: 58px; }
#name-form .button { min-height: 50px; }
.name-screen .name-save-note { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.onboarding-progress { padding-top: 28px; margin-bottom: 8px; }
.progress-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.progress-steps { display: flex; gap: 8px; }
.progress-steps > * { flex: 1; min-width: 0; height: 36px; padding: 15px 0; border: 0; background: none; }
.progress-steps > * > span { display: block; height: 3px; background: var(--line); border-radius: 2px; }
.progress-steps > .reached > span { background: var(--green); }
.name-screen .onboarding-progress { padding-top: 0; margin-bottom: 26px; }
dialog .onboarding-progress { padding-top: 0; padding-right: 28px; margin-bottom: 16px; }
.editor-page > .onboarding-progress + .editor-intro { padding-top: 12px; }
.step-actions { display: flex; align-items: center; gap: 20px; }
.step-actions > .text-button { font-size: 13px; }
.draft-controls { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); min-height: 40px; }
.draft-controls .text-button { font-size: 12px; }
textarea[name=bio] { min-height: 100px; overflow-y: hidden; resize: none; }
.social-value { min-width: 0; }
.field-error { display: block; color: var(--rust); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.field-error:empty { display: none; }
input[aria-invalid=true] { border-color: var(--rust); }
.consent-details { margin: -10px 0 20px 29px; font-size: 12px; color: var(--muted); }
.consent-details summary { font-size: 12px; font-weight: 400; }
.consent-details p { margin-top: 12px; }
.name-screen > .text-button { font-size: 11px; color: var(--muted); }
.expertise-disclosure { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.expertise-disclosure > p { margin: 14px 0 0; }
#guest-email > summary { margin-bottom: 18px; }
.invite-qr { display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.invite-qr img { width: 180px; max-width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.invite-qr p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.invite-qr .text-button { font-size: 12px; }
@media (max-width: 560px) {
  .name-screen { padding-top: 42px; }
  .name-screen h1 { font-size: 28px; }
  .editor-intro { padding-top: 24px; padding-bottom: 10px; }
  .draft-notice { padding-bottom: 7px; }
  .editor-content { padding-top: 20px; }
  .topic-options { max-height: clamp(88px, calc(100svh - 510px), 200px); }
  .topics-page > .onboarding-progress { padding-top: 12px; margin-bottom: 0; }
  .topics-page > .onboarding-progress + .editor-intro { padding-top: 4px; padding-bottom: 0; }
  .topics-page .editor-content { padding-top: 10px; }
  .topics-page .add-topic-form { margin-top: 12px; }
  .save-bar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .button { min-height: 46px; }
  .invite-qr { flex-wrap: wrap; }
}
