/* My area — member dashboard components: profile photo, chapter cards, badges, mailbox. */

/* Member form column — a centered stack of bordered cards, matching the event-workspace
   form design. Use for standalone /my forms (profile, notifications, ...). */
.form-col { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.form-col .card { gap: 18px; box-shadow: none; }
.form-col .card:hover { border-color: var(--border); }
.form-col .card > .eyebrow { display: block; }
.form-col .card > .card-intro { margin-top: -8px; font-size: 0.92rem; color: var(--text-muted); }
.form-col .card > .profile-section-title:first-child { margin-top: 0; }
/* thin divider between the form body and its submit button */
.form-divider { height: 0; margin: 0; border: 0; border-top: 1px solid var(--border); }
.form-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Ticket grid — like the homepage cards, but auto-fill so a single ticket keeps its
   card width instead of stretching to the full row (unlike .card-grid's auto-fit). */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Small event card — a compact horizontal summary: image (or date placeholder) + title + date. */
.event-mini { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px 14px; }
.event-mini-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); background: var(--cream); flex: none; }
.event-mini-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1; color: var(--blue-deep); background: linear-gradient(140deg, var(--blue-tint), var(--blue)); font-family: 'Space Grotesk', sans-serif; }
.event-mini-ph b { font: 650 1.15rem 'Space Grotesk', sans-serif; font-feature-settings: "tnum"; }
.event-mini-ph span { font-size: 0.58rem; letter-spacing: 0.08em; opacity: 0.85; }
.event-mini-body { min-width: 0; }
.event-mini-title { font-size: 1rem; margin: 0 0 2px; }
.event-mini-date { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Event edit — two-column layout with a sticky left section menu. */
.event-edit { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; padding-block: 32px 72px; }
.edit-nav { position: sticky; top: 127px; }
.edit-nav-menu { display: flex; flex-direction: column; gap: 2px; }
.edit-nav-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; border-left: 2px solid transparent; font: 600 0.9rem 'Space Grotesk', sans-serif; color: var(--text-muted); transition: color 150ms, background 150ms; }
.edit-nav-menu a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.edit-nav-menu a:hover { color: var(--ink); }
.edit-nav-menu a.active { color: var(--orange-deep); background: var(--orange-tint); border-left-color: var(--orange); }
.edit-nav-menu a.active svg { opacity: 1; }
.edit-sections { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.edit-sections > .card { box-shadow: none; gap: 18px; scroll-margin-top: 128px; }
.edit-sections > .card:hover { border-color: var(--border); }
.edit-sections > .card > .eyebrow { display: block; }
@media (max-width: 820px) {
  .event-edit { grid-template-columns: 1fr; gap: 16px; }
  .edit-nav { position: static; }
  .edit-nav-menu { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .edit-nav-menu a { border-left: 0; white-space: nowrap; }
}

/* profile photo */
.profile-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; margin: 0 auto 14px; background: var(--cream); }
.profile-photo-actions { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.profile-photo-actions input[type="file"] { max-width: 240px; font-size: 0.85rem; }
.profile-section-title { margin: 36px 0 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .grid-3 { grid-template-columns: 1fr; } }

/* video detail player (constrained embed) */
.video-player { max-width: 900px; margin: 0 auto; }
.video-player .video-frame { aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow-card); }
.video-player .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-prose { max-width: 720px; margin: 24px auto 0; }

/* status page panels */
.status-panel { margin-bottom: 24px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.status-head b { font: 650 1.1rem 'Space Grotesk', sans-serif; }
.status-foot { text-align: center; margin-top: 8px; }

/* public badge detail / redeem */
.badge-detail-img { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.badge-redeem { text-align: center; max-width: 520px; }
.badge-redeem .badge-detail-img { margin-bottom: 20px; }
.badge-redeem h1 + .muted { margin-top: 10px; }
.badge-redeem .muted + .btn { margin-top: 26px; }
.badge-redeem .fstack { text-align: left; margin-top: 24px; }
.badge-redeem .badge-claim-form { margin-top: 26px; text-align: left; }
.badge-redeem .badge-claim-form .fstack { margin-top: 0; }
.badge-login-card { text-align: center; align-items: center; }
.badge-login-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); display: grid; place-items: center; }
.badge-login-icon svg { width: 28px; height: 28px; }
.badge-login-card h2 { font-size: 1.2rem; margin: 0; }
.badge-login-card .card-intro { margin: 0; max-width: 34ch; }
.badge-login-card .reg-fine { margin: 0; }
/* Badge API page */
.api-facts { display: grid; gap: 14px; margin: 0; }
.api-facts > div { display: grid; grid-template-columns: 150px 1fr; column-gap: 16px; align-items: baseline; }
.api-facts dt { margin: 0; font: 600 0.85rem 'Instrument Sans', sans-serif; color: var(--text-muted); }
.api-facts dd { margin: 0; }
@media (max-width: 560px) {
  .api-facts > div { grid-template-columns: 1fr; row-gap: 2px; }
}
.api-facts code, .api-steps code, .card-intro code { background: var(--ink-soft); padding: 1px 6px; border-radius: 6px; font: 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.form-actions-start { justify-content: flex-start; }
.code-tabs { border: 1px solid var(--border); border-radius: var(--r-media); overflow: hidden; }
.code-tabs-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--cream); border-bottom: 1px solid var(--border); }
.code-tab { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font: 600 0.82rem 'Instrument Sans', sans-serif; color: var(--text-muted); cursor: pointer; }
.code-tab:hover { background: var(--ink-soft); color: var(--ink); }
.code-tab.active { background: var(--ink); color: var(--ink-inverse); }
.code-panel { display: none; margin: 0; padding: 18px; overflow-x: auto; background: var(--ink); color: var(--ink-inverse); font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-panel.active { display: block; }
.code-panel code { white-space: pre; background: none; padding: 0; border-radius: 0; font: inherit; color: inherit; }
/* Badge management: right-pinned tab (Settings) */
.tabrow .tab-right { margin-left: auto; }
/* Badge dashboard */
.badge-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.badge-dash-stats + .form-actions { margin-top: 24px; }
/* Chapter dashboard: stats + facts combined in one card */
.dash-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 22px 16px; text-align: center; }
.dash-stat-row b { display: block; font: 700 2rem/1 'Space Grotesk', sans-serif; color: var(--ink); }
.dash-stat-row span { display: block; margin-top: 5px; font-size: 0.85rem; color: var(--text-muted); }
.card + .form-actions { margin-top: 24px; }
.dash-main > .form-actions { margin-top: 0; }
/* chapter dashboard section headings: icon-aligned; the .dash-main flex gap separates sections,
   so no top margin, just breathing room below before the table */
.dash-main-chapter .profile-section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; }
.dash-main-chapter .profile-section-title svg { width: 19px; height: 19px; flex: none; color: var(--orange-deep); }
/* chapter health list */
.health-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.health-list li { display: flex; gap: 10px; align-items: flex-start; }
.health-list .h-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.health-list li.ok .h-ic { background: var(--live-tint); color: var(--live); }
.health-list li.warn .h-ic { background: var(--warn-tint); color: var(--warn-deep); }
.health-list .h-ic svg { width: 12px; height: 12px; }
.health-list .h-label { display: block; font: 600 0.9rem 'Space Grotesk', sans-serif; }
.health-list .h-meta { display: block; margin-top: 1px; font-size: 0.78rem; color: var(--text-muted); }
.badge-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px 18px; text-align: center; text-decoration: none; color: inherit; display: block; }
a.badge-stat:hover { border-color: var(--blue); }
.badge-stat b { display: block; font: 700 2rem/1 'Space Grotesk', sans-serif; color: var(--ink); }
.badge-stat span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--text-muted); }
.badge-dash-head { display: flex; align-items: center; gap: 16px; }
.badge-dash-head img { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.badge-dash-head h2 { margin: 0; font-size: 1.2rem; }
/* Settings items with helper descriptions */
.setting-item { display: flex; flex-direction: column; gap: 6px; }
.setting-help { margin: 0 0 0 58px; font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }
.setting-help code { background: var(--ink-soft); padding: 1px 5px; border-radius: 5px; font: 0.8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.badge-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* granted-badge detail body: left-aligned details under the centered badge + share row */
.badge-redeem .chapter-social { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 10px; margin-top: 14px; }
.badge-redeem .share-btns { display: flex; gap: 10px; }
.badge-redeem .share-label { justify-self: end; align-self: start; padding-top: 9px; font: 600 0.85rem 'Instrument Sans', sans-serif; color: var(--ink); }
.badge-receiver { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 600; }
/* cap the badge image (the .narrow.badge-redeem > * rule sets max-width:none, so be specific) */
.my-page.narrow.badge-redeem > .badge-detail-img { max-width: 300px; }
.badge-detail-body h2 { font-size: 1.15rem; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.badge-detail-body h2 svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.badge-detail-body p { margin: 0; }
.badge-detail-body .badge-issuer { margin-top: 24px; display: flex; align-items: center; gap: 6px; }
.badge-detail-body .badge-issuer svg { width: 16px; height: 16px; color: var(--blue-deep); flex: none; }
/* skill pills */
.skill-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); border: 1px solid var(--blue); font: 600 0.85rem 'Instrument Sans', sans-serif; }
.skill-pill svg { width: 13px; height: 13px; flex: none; }
/* black-outline button (Learn more) */
.btn-outline-ink { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.learn-more-btn { align-self: flex-start; margin-top: 6px; }
.learn-more-btn svg { width: 15px; height: 15px; }

/* event / chapter management header (secondary nav for organizer pages) */
.mgmt-head { display: flex; align-items: center; gap: 14px; padding: 28px 0 16px; }
.mgmt-head .eyebrow { display: block; }
.mgmt-head-view { margin-left: auto; flex: none; white-space: nowrap; }
.mgmt-head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mgmt-head-view svg { width: 15px; height: 15px; flex: none; }
.mgmt-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.mgmt-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.mgmt-back svg { width: 18px; height: 18px; }
.mgmt-back:hover { border-color: var(--orange); color: var(--orange-deep); }
.subnav .disabled { display: inline-flex; align-items: center; gap: 8px; padding: 14px 6px; color: var(--text-muted); opacity: 0.45; pointer-events: none; }

/* sub-sub navigation: a title (mgmt-head) directly above a .tabrow tab row */
.mgmt-head + .tabrow { margin-top: 4px; }
.tabrow .disabled { color: var(--text-muted); opacity: 0.5; pointer-events: none; padding: 10px 14px 12px; white-space: nowrap; font: 600 0.9rem 'Space Grotesk', sans-serif; }
/* icons in the event main menu (top tab row) */
.tabrow a, .tabrow .disabled { display: inline-flex; align-items: center; gap: 8px; }
.tabrow a svg, .tabrow .disabled svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.tabrow a.active svg { opacity: 1; }
/* push a tab to the far right of the row (e.g. Settings) */
.tabrow .tab-end { margin-left: auto; }
/* event image editor (Details page): a bordered, sensibly sized square dropzone */
.event-image-edit { max-width: 300px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.event-image-edit .ticket-square-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* a switch toggle that is not yet available */
.toggle.is-disabled { opacity: 0.6; cursor: default; }
.toggle.is-disabled .chip { margin-left: 8px; }

/* organizer event card (my events list) */
.ev-card { display: flex; gap: 16px; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; color: var(--ink); height: 100%; }
.ev-date { flex: none; width: 58px; text-align: center; background: var(--cream); border-radius: var(--r-media); display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.ev-date b { font: 700 1.4rem 'Space Grotesk', sans-serif; line-height: 1; }
.ev-date span { font: 600 0.7rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-body h3 { font-size: 1.05rem; margin: 0; }
.ev-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--text-muted); }
.ev-meta .tz { margin-left: 6px; opacity: 0.8; }

/* data tables (admin / organizer) */
.table-card { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.gtable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.gtable th { text-align: left; font: 600 0.72rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--cream); white-space: nowrap; }
table.gtable td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
table.gtable tbody tr:first-child td { border-top: none; }
table.gtable tbody tr:hover { background: var(--cream); }
.mono { font-family: 'Space Grotesk', monospace; font-feature-settings: "tnum"; font-size: 0.85rem; }
.cell-sub { font-size: 0.8rem; color: var(--text-muted); }
.mailbox-frame { width: 100%; min-height: 60vh; border: 0; background: var(--surface); }
.managed-card .mc-top.spread { justify-content: space-between; }
.key-copy { margin-top: 10px; }

/* star/number rating group (ticket eval) */
.rating { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font: 600 1rem 'Space Grotesk', sans-serif; cursor: pointer; transition: all 200ms ease-out; }
.rating input:checked + label { background: var(--orange); border-color: var(--orange); color: #fff; }
.rating input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.rating label:hover { border-color: var(--orange); }
.req { color: var(--orange-deep); }

/* keep JS-driven visibility toggles working after Bootstrap is removed */
.d-none { display: none !important; }

/* google-maps location picker (event where) */
.event-map { width: 100%; height: 320px; border-radius: var(--r-media); border: 1px solid var(--border); }

/* repeatable question rows (event settings) */
.question-row { border: 1px solid var(--border); border-radius: var(--r-media); padding: 16px; display: grid; gap: 12px; }
.question-row .qr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* sponsor management (event sponsors) */
.sponsor-logo-thumb { max-height: 40px; max-width: 120px; display: block; }
.sponsor-logo-preview { max-height: 90px; border: 1px solid var(--border); border-radius: var(--r-media); padding: 6px; background: var(--surface); }
.rank-cell { display: inline-flex; align-items: center; gap: 6px; }
.rank-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.rank-btn:disabled { opacity: 0.35; cursor: default; }
.rank-btn svg { width: 14px; height: 14px; }
.link-btn { background: none; border: none; color: var(--orange-deep); font: 600 0.85rem 'Space Grotesk', sans-serif; cursor: pointer; padding: 0; }
.link-btn.danger { color: var(--warn-deep); }
.row-actions { display: inline-flex; gap: 12px; align-items: center; justify-content: flex-end; }

/* messages (event + chapter) */
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin: 4px 0 0; }
.cap { text-transform: capitalize; }
.msg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.msg-card h3 { margin: 0; }
.msg-card .btn { margin-top: 4px; }
.msg-section { margin-top: 32px; }
.empty-card { text-align: center; padding: 40px; max-width: 520px; }
.empty-card h3 { margin: 0 0 8px; }

/* event dashboard */
.dash-callout { border-radius: var(--r-media); padding: 18px 20px; margin-bottom: 20px; }
.dash-callout h4 { margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; }
.dash-callout p { margin: 0; font-size: 0.92rem; }
.dash-callout.warn { background: var(--warn-tint); color: var(--warn-deep); }
.dash-callout.danger { background: var(--warn-tint); color: var(--warn-deep); }

.dash-hero { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; padding: 0; }
.dash-hero-media { position: relative; background: var(--cream); aspect-ratio: 1 / 1; }
.dash-hero-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--text-muted); }
.dash-hero-noimg svg { width: 48px; height: 48px; }
.dash-hero-media .ticket-square-img { width: 100%; height: 100%; object-fit: cover; }
.dash-hero-body { padding: 24px; display: flex; flex-direction: column; }
.dash-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.dash-meta { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-meta li { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 0.92rem; }
.dash-meta svg { width: 16px; height: 16px; flex: none; color: var(--orange-deep); }
.dash-hero-tz { margin-left: 6px; font-size: 0.78rem; opacity: 0.75; }
.dash-hero-cta { margin-top: 18px; }
@media (max-width: 640px) { .dash-hero { grid-template-columns: 1fr; } .dash-hero-tags { justify-content: flex-start; } }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.dash-grid.single { grid-template-columns: 1fr; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }

/* dashboard: main + event-process timeline layout */
.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 4px; }
.dash-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.dash-layout .card { box-shadow: none; }
.dash-layout .card:hover { border-color: var(--border); }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } .dash-side { position: static; } }

/* horizontal event-details card: a free, padded, bigger image + status floated right */
.dash-hero { grid-template-columns: 210px 1fr; align-items: center; position: relative; }
.dash-hero-media { aspect-ratio: auto; background: transparent; padding: 20px; }
.dash-hero-media .ticket-square-img { aspect-ratio: 1 / 1; height: auto; border-radius: var(--r-media); border: 1px solid var(--border); }
.dash-hero-noimg { aspect-ratio: 1 / 1; border-radius: var(--r-media); border: 1px solid var(--border); }
.dash-hero-body { padding: 22px 24px 22px 0; }
.dash-hero .dash-hero-tags { position: absolute; top: 18px; right: 22px; margin: 0; }
@media (max-width: 640px) { .dash-hero { grid-template-columns: 1fr; align-items: stretch; } .dash-hero-body { padding: 0 22px 22px; } .dash-hero .dash-hero-tags { position: static; margin: 0 0 8px; } }

/* event-process vertical timeline */
.process-card { gap: 14px; }
.process { list-style: none; margin: 0; padding: 0; }
.process-step { position: relative; padding: 0 0 20px 30px; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.process-step:last-child::before { display: none; }
.process-step.done::before { background: var(--live); }
.process-dot { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; color: #fff; }
.process-dot svg { width: 11px; height: 11px; }
.process-step.done .process-dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 3px var(--live-tint); }
.process-body { display: block; }
a.process-body { color: var(--ink); }
a.process-body:hover .process-label { color: var(--orange-deep); }
.process-label { display: block; font: 600 0.9rem 'Space Grotesk', sans-serif; }
.process-meta { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }

.reg-total { display: flex; align-items: baseline; gap: 8px; }
.reg-total .num { font: 700 2.6rem 'Space Grotesk', sans-serif; color: var(--orange); line-height: 1; }
.reg-total .num.num-live { color: var(--live); }
.reg-totals { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.reg-bar { height: 10px; border-radius: var(--r-pill); background: var(--cream); overflow: hidden; margin-top: 14px; }
.reg-bar > span { display: block; height: 100%; background: var(--orange); }
.reg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reg-manage-btn { margin-top: 16px; align-self: flex-start; }
.reg-stars { display: inline-flex; gap: 2px; }
.reg-stars svg { width: 16px; height: 16px; }
.reg-star-on { color: #f5a623; }
.reg-star-off { color: var(--border); }
.eval-block { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.eval-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.eval-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.eval-row .lbl { color: var(--text-muted); min-width: 56px; }

.access-list { list-style: none; margin: 0; padding: 0; }
.access-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.access-list li:first-child { border-top: none; }
/* access people as separate tiles */
.access-people { display: flex; flex-direction: column; gap: 10px; }
.access-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-media); background: var(--surface); }
.access-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; font: 600 0.82rem 'Space Grotesk', sans-serif; letter-spacing: 0.02em; }
.access-person-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.access-person-info .cell-sub { font-size: 0.8rem; color: var(--text-muted); }
.access-person .chip { margin-left: auto; }
/* danger zone card (dashboard) */
.card.danger-zone, .dash-layout .card.danger-zone, .dash-layout .card.danger-zone:hover { border-color: #ecc7bf; background: #fdf6f4; }
.danger-zone > .eyebrow { color: #b42318; }
.danger-zone .dash-actions { margin-top: 4px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* event banner dropzone (ported from legacy style.css) */
.event-banner-dropzone { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; transition: box-shadow .15s ease; }
.event-banner-dropzone:hover, .event-banner-dropzone.is-dragover { box-shadow: inset 0 0 0 3px var(--orange); }
.event-banner-dropzone.is-uploading { opacity: .6; pointer-events: none; }
.event-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-banner-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--ink); background: var(--cream); transition: opacity .15s ease; }
.event-banner-overlay svg { width: 28px; height: 28px; margin-bottom: 8px; }
.event-banner-dropzone.has-image .event-banner-overlay { opacity: 0; color: #fff; background: rgba(9, 31, 44, .55); }
.event-banner-dropzone.has-image:hover .event-banner-overlay, .event-banner-dropzone.has-image.is-dragover .event-banner-overlay { opacity: 1; }
.event-banner-hint { margin-top: 8px; font-size: .8rem; opacity: .85; }

/* registrations */
.reg-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 8px 0 22px; }
.reg-filter-card { border: 1px solid var(--border); border-radius: var(--r-media); padding: 12px; background: var(--surface); cursor: pointer; text-align: center; transition: all .15s ease; }
.reg-filter-card:hover { border-color: var(--orange); }
.reg-filter-card.active { border-color: var(--orange); background: var(--orange-tint); }
.reg-filter-card .fnum { font: 700 1.5rem 'Space Grotesk', sans-serif; line-height: 1; display: block; color: var(--ink); }
.reg-filter-card .fnum.c-orange { color: var(--orange); }
.reg-filter-card .fnum.c-green { color: var(--live); }
.reg-filter-card .fnum.c-warn { color: var(--warn-deep); }
.reg-filter-card .fnum.c-red { color: #b42318; }
.reg-filter-card .fnum.c-blue { color: var(--blue-deep); }
.reg-filter-card .fnum.c-muted { color: var(--text-muted); }
.reg-filter-card .flabel { font-size: 0.78rem; color: var(--text-muted); }
.reg-toolbar { display: grid; grid-template-columns: 1fr 200px auto; gap: 10px; margin-bottom: 20px; align-items: center; }
@media (max-width: 640px) { .reg-toolbar { grid-template-columns: 1fr; } }
.reg-downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.reg-search { position: relative; }
.reg-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.reg-search .input { padding-left: 38px; }
.gaic-sort-link { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.gaic-sort-link .sort-ind { color: var(--text-muted); font-size: 0.75rem; }
.reg-answer-text { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.reg-answer-line + .reg-answer-line { margin-top: 6px; }
.reg-eval-line { display: flex; align-items: center; gap: 6px; }
.reg-eval-line .lbl { color: var(--text-muted); font-size: 0.8rem; min-width: 52px; }
.reg-remark-btn { background: none; border: none; color: var(--orange-deep); cursor: pointer; padding: 6px 0 0; display: inline-flex; }
.reg-remark-btn svg { width: 16px; height: 16px; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-end; }
.reg-actions form { display: inline; }
.reg-row-cancelled td { color: var(--text-muted); }
/* status pills in the attendees table: smaller + a little breathing room */
.reg-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; margin-bottom: 4px; }
.reg-status .chip { font-size: 0.7rem; padding: 3px 9px; }
/* per-row actions dropdown (fixed panel so it isn't clipped by the table's overflow) */
.row-menu { position: relative; display: inline-block; }
.row-menu-caret { width: 15px; height: 15px; margin-left: 2px; }
.row-menu-panel { position: fixed; z-index: 1500; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 34px rgba(9, 31, 44, .14); padding: 6px; display: none; }
.row-menu.open .row-menu-panel { display: block; }
.row-menu-panel form { display: block; margin: 0; }
.row-menu-panel .link-btn { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.row-menu-panel .link-btn:hover { background: var(--cream); }

/* event stats (custom plausible bar chart) */
.stats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.stats-title { margin-top: 0; }
.range-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.range-tabs a { padding: 6px 14px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; color: var(--ink); border: 1px solid var(--border); }
.range-tabs a:hover { border-color: var(--orange); }
.range-tabs a.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.stats-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 640px) { .stats-metrics { grid-template-columns: 1fr 1fr; } }
.stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .stats-cols { grid-template-columns: 1fr; } }
.event-stats-metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-media); padding: 16px; }
.event-stats-metric-value { font: 800 1.6rem 'Space Grotesk', sans-serif; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.event-stats-metric-label { color: var(--text-muted); font-size: 0.85rem; }
.event-stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; }
.event-stats-chart-wrap { display: flex; gap: 8px; }
.event-stats-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 180px; min-width: 2.5rem; text-align: right; font-size: 0.75rem; color: var(--text-muted); }
.event-stats-plot { flex: 1 1 auto; min-width: 0; }
.event-stats-xaxis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }
.event-stats-bar { width: 100%; height: 0; background: var(--orange); border-radius: 3px 3px 0 0; transition: height 0.3s ease; }
.event-stats-col { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; align-items: flex-end; border-radius: 3px; }
.event-stats-col:hover { background: var(--cream); }
.event-stats-col:hover .event-stats-bar { background: var(--orange-deep); }
.event-stats-meter { height: 6px; background: var(--cream); border-radius: 3px; overflow: hidden; }
.event-stats-meter-fill { height: 100%; width: 0; background: var(--blue); border-radius: 3px; }
.meter-cell { width: 50%; }
.stats-note svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--orange-deep); }

/* badge editor */
.mgmt-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.mgmt-titlebar h1 { margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge-image-preview { text-align: center; }
.badge-image-preview img { border: 1px solid var(--border); border-radius: var(--r-media); }
.badge-image-preview svg { width: 72px; height: 72px; color: var(--text-muted); }

/* dashboard stat tile + facts list */
.statnum { font: 700 2.6rem 'Space Grotesk', sans-serif; color: var(--orange); line-height: 1; display: block; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.facts-list li:first-child { border-top: none; }
.facts-list .fact-ic { width: 17px; height: 17px; flex: none; color: var(--text-muted); }
.facts-list .fact-ic svg { width: 100%; height: 100%; }

/* create-event wizard — stepper + choice cards */
.wizard-progress { max-width: 640px; margin: 0 auto 36px; }
.wizard-head { max-width: 640px; margin: 0 auto 22px; text-align: center; }
.wizard-head h1 { margin: 4px 0 0; font-size: 1.7rem; }
.wizard-progress-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; }
.wizard-progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.wizard-progress-step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.wizard-progress-step:first-child::before { display: none; }
.wizard-progress-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--border); font: 600 0.85rem 'Space Grotesk', sans-serif; color: var(--text-muted); position: relative; z-index: 1; }
.wizard-progress-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wizard-progress-step.is-active .wizard-progress-dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.wizard-progress-step.is-active .wizard-progress-label { color: var(--ink); font-weight: 700; }
.wizard-progress-step.is-done .wizard-progress-dot { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
.wizard-progress-step.is-done::before, .wizard-progress-step.is-active::before { background: var(--orange); }

.choose-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px; color: var(--ink); cursor: pointer; transition: border-color 200ms ease-out; }
.choose-card:hover { border-color: var(--orange); }
.choose-card-image { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); background: var(--cream); flex: none; }
.choose-card-title { font-size: 1.05rem; margin: 0 0 2px; }
.choose-card-meta { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.choose-list { display: grid; gap: 14px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.reg-radio { display: block; border: 1.5px solid var(--border); border-radius: var(--r-media); padding: 14px 16px; cursor: pointer; transition: border-color 200ms ease-out, background 200ms ease-out; }
.reg-radio:hover { border-color: var(--orange); }
.reg-radio:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.reg-radio input { margin-right: 8px; }
.reg-radio b { font-weight: 600; }
.reg-radio .help { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* wizard review (step 6) */
.review-dl { display: grid; grid-template-columns: 140px 1fr; gap: 0 20px; }
.review-dl dt { font: 600 0.75rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 12px 0; border-top: 1px solid var(--border); }
.review-dl dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.review-dl dt:first-of-type, .review-dl dd:first-of-type { border-top: none; }
.review-dl dd .sub { display: block; color: var(--text-muted); font-size: 0.88rem; }
.review-dl dd.pre { white-space: pre-wrap; }
@media (max-width: 560px) { .review-dl { grid-template-columns: 1fr; } .review-dl dt { border-top: 1px solid var(--border); padding-bottom: 0; } .review-dl dd { border-top: none; padding-top: 2px; } }

/* my chapters — card with a role badge + stat row, 3 per row (flat, no shadow/hover) */
.mychapters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mychapter-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; color: var(--ink); height: 100%; }
.mychapter-card .mc-head { display: flex; align-items: center; gap: 14px; }
.mychapter-card .mc-icon { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); background: var(--cream); flex: none; display: flex; align-items: center; justify-content: center; }
.mychapter-card .mc-name { font: 650 1.1rem 'Space Grotesk', sans-serif; flex: 1; min-width: 0; }
.mychapter-card .mc-role { font: 600 0.72rem 'Space Grotesk', sans-serif; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mychapter-card .mc-role.lead { background: var(--orange-tint); color: var(--orange-deep); }
.mychapter-card .mc-role.member { background: var(--blue-tint); color: var(--blue-deep); }
.mychapter-card .mc-stats { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.mychapter-card .mc-stat { display: flex; flex-direction: column; }
.mychapter-card .mc-stat b { font: 650 1.1rem 'Space Grotesk', sans-serif; }
.mychapter-card .mc-stat span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mychapter-card .mc-actions { display: flex; }
@media (max-width: 900px) { .mychapters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mychapters-grid { grid-template-columns: 1fr; } }

/* received badges wall */
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.badge-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); }
.badge-card img { width: 120px; height: 120px; object-fit: contain; }
.badge-card h3 { font-size: 1rem; margin: 0; }
.badge-card .bdate { font-size: 0.8rem; color: var(--text-muted); }

/* managed badges */
.managed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.managed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.managed-card .mc-top { display: flex; gap: 14px; align-items: center; }
.managed-card .mc-img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); background: var(--cream); flex: none; display: flex; align-items: center; justify-content: center; }
.managed-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.managed-card .mstats { display: flex; gap: 24px; }
.managed-card .mstats b { font: 650 1.2rem 'Space Grotesk', sans-serif; display: block; }
.managed-card .mstats span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.managed-card .mactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; align-items: center; }

/* mailbox */
.msg-list { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.msg { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); color: var(--ink); transition: background 200ms ease-out; }
.msg:first-child { border-top: none; }
.msg:hover { background: var(--cream); }
.msg .subj { font-weight: 600; font-size: 0.95rem; }
.msg.unread .subj { font-weight: 700; }
.msg .prev { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; display: block; }
.msg .meta { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.msg .date { font-size: 0.8rem; color: var(--text-muted); }