:root {
  color-scheme: light;
  --navy: #112c3a;
  --navy-deep: #0b202c;
  --teal: #087f7a;
  --teal-dark: #066662;
  --teal-soft: #e8f5f1;
  --ink: #183340;
  --muted: #657985;
  --line: #dce5e9;
  --canvas: #f4f7f9;
  --white: #fff;
  --danger: #b54449;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
input, select, textarea { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button svg { pointer-events: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3vw, 35px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
p + p { margin-top: 12px; }
:focus-visible { outline: 3px solid #52bcb2; outline-offset: 3px; }
.muted, .text-muted { color: var(--muted); }
.eyebrow { display: block; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-weight: 650; font-size: 13px; line-height: 1.3; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-primary { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 3px 7px #087f7a15; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button-secondary:hover { background: #f3f8f8; border-color: #b8cecf; }
.button-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button-ghost:hover { background: #eaf0f3; color: var(--ink); }
.button-subtle { color: var(--muted); background: transparent; border-color: transparent; }
.button-subtle:hover { color: var(--ink); background: #edf3f5; }
.button-attended { color: #176f60; background: #edf8f1; border-color: #b9ded0; }
.button-attended:hover { color: #115e50; background: #e0f3e8; border-color: #93c8b7; }
.button-danger { color: var(--danger); background: #fff3f3; border-color: #f2dadd; }
.button-danger:hover { background: #fbe5e7; }
.button-small, .button-sm { min-height: 35px; padding: 7px 11px; font-size: 12px; }
.button-wide, .button-full { width: 100%; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: inherit; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 11px; color: white; background: var(--teal); font-size: 26px; font-weight: 800; letter-spacing: -.07em; }
.brand-mark > span { color: #a8e7d6; }
.brand-name { font-size: 19px; letter-spacing: -.045em; font-weight: 750; line-height: 1.15; }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.toast { position: fixed; left: 50%; top: 20px; z-index: 1000; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 13px 18px; border: 1px solid #b5dcd4; border-radius: 12px; color: #0d5b53; background: #f0faf6; box-shadow: 0 8px 25px #122d3a20; font-size: 13px; }
.toast:empty { display: none; }
.toast.error, .toast[data-kind="error"], .toast[data-type="error"] { color: #91343a; background: #fff3f3; border-color: #ebc4c8; }

.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand-panel { padding: clamp(36px, 7vw, 100px); color: white; background: radial-gradient(ellipse at 12% 90%, #0e6b654a, transparent 65%), var(--navy-deep); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-brand-panel::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid #ffffff0d; border-radius: 50%; right: -170px; top: 20%; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02; pointer-events: none; }
.auth-brand-panel .brand { margin-bottom: 76px; }
.auth-brand-panel .brand-name { color: white; }
.auth-brand-panel .brand-subtitle { color: #a1bfc6; }
.auth-brand-panel .eyebrow { color: #6fd6c2; }
.auth-brand-panel h1 { max-width: 430px; font-size: clamp(34px, 3.8vw, 51px); font-weight: 600; }
.auth-copy { color: #b7c9d0; max-width: 390px; margin-top: 22px; font-size: 15px; line-height: 1.8; }
.auth-points { list-style: none; padding: 0; margin: 35px 0 0; display: grid; gap: 17px; color: #d2e2e5; font-size: 13px; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points svg { color: #64caba; }
.auth-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 64px)); padding: 40px 0; }
.auth-card > .brand-mark { margin-bottom: 22px; }
.auth-card h2 { font-size: 28px; }
.auth-card > p { margin-top: 12px; margin-bottom: 32px; }
.auth-card > .eyebrow { margin: 0 0 8px; }
.auth-card form { display: grid; gap: 20px; }
.auth-card form .button { margin-top: 5px; }
.auth-footer { margin-top: 25px; font-size: 12px; color: var(--muted); }
.auth-brand-panel > .auth-footer { margin-top: 65px; color: #7899a5; font-size: 11px; }
.auth-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 22px; background: #e6f2ee; border-radius: 13px; color: var(--teal); }
.auth-icon svg { width: 22px; height: 22px; }
.auth-note { display: flex; align-items: center; gap: 7px; margin-top: 27px; color: #8c9ca5; font-size: 11px; }
.auth-note svg { width: 13px; height: 13px; }
.auth-card > .auth-note { margin-top: 27px; margin-bottom: 0; }
.setup-card { width: min(560px, calc(100% - 40px)); margin: 12vh auto; padding: 42px; border: 1px solid var(--line); background: white; border-radius: 20px; box-shadow: 0 15px 50px #163c4b06; }
.setup-card .brand { margin-bottom: 30px; }
.setup-card h1 { font-size: 26px; }
.setup-card p { margin-top: 14px; color: var(--muted); }

.app-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 31px 18px 24px; background: var(--navy-deep); color: #d6e2e8; }
.sidebar .brand { padding: 0 10px; }
.sidebar .brand-name { color: white; }
.sidebar .brand-subtitle { color: #90aebc; }
.sidebar .brand-mark { width: 34px; height: 34px; background: #1e7772; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 48px; }
.sidebar-section-label { margin: 42px 14px 10px; font-size: 8px; font-weight: 650; letter-spacing: .13em; color: #668c9d; }
.sidebar-section-label + .sidebar-nav { margin-top: 0; }
.nav-item { width: 100%; border: 0; border-radius: 9px; padding: 13px 15px; text-align: left; display: flex; align-items: center; gap: 12px; background: transparent; color: #a9bfca; font-size: 13px; font-weight: 550; }
.nav-item:hover { color: white; background: #ffffff08; }
.nav-item.active, .nav-item[aria-current="page"] { color: #a6f0df; background: #17635f65; }
.sidebar-footer { margin-top: auto; padding: 18px 13px 0; border-top: 1px solid #ffffff0c; color: #7796a6; font-size: 11px; }
.sidebar-footer strong { color: #a4beca; font-weight: 500; display: block; margin-bottom: 3px; }
.sidebar-footer { display: flex; gap: 10px; }
.sidebar-footer-icon svg { width: 15px; height: 15px; }
.sidebar-footer p { font-size: 10px; line-height: 1.6; }
.workspace { min-width: 0; }
.topbar { height: 77px; padding: 0 clamp(24px, 3.6vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #ffffffdd; border-bottom: 1px solid #e4eaee; }
.topbar-title { color: #71838d; font-size: 12px; }
.topbar-divider { margin: 0 9px; color: #bac7ce; }
.topbar-account { display: flex; align-items: center; gap: 15px; color: var(--ink); font-size: 12px; }
.account-avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cfe3df; border-radius: 50%; background: #eaf5f0; color: #27766b; font-weight: 700; font-size: 11px; }
.topbar-account #staff-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account .button { min-height: 35px; padding: 7px 10px; }
.main-content { max-width: 1540px; padding: 42px clamp(24px, 3.6vw, 52px) 60px; margin: 0 auto; }
.workspace-footer { padding: 0 clamp(24px, 3.6vw, 52px) 26px; color: #a0adb5; font-size: 10px; }
.workspace-footer span, .public-footer span { margin: 0 6px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.page-header p { margin-top: 10px; font-size: 13px; }
.toolbar { display: flex; gap: 14px; align-items: center; padding: 0 0 25px; }
.search-field { position: relative; flex: 1; max-width: 420px; }
.search-field > svg { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); width: 17px; height: 17px; color: #8a9aa3; pointer-events: none; }
.search-field input:not([type="checkbox"]):not([type="radio"]) { width: 100%; padding-left: 41px; }
.select-field { width: 165px; }
.select-field > label { display: none; }
.toolbar select { width: 100%; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 21px; }
.card, .event-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 8px #142e3a03; }
.event-card { display: flex; flex-direction: column; padding: 23px; transition: border-color .15s, box-shadow .15s; }
.event-card:hover { border-color: #c4d4d9; box-shadow: 0 7px 23px #122c3b07; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.event-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.event-card-top > .muted { font-size: 11px; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; min-height: 58px; padding: 5px 9px; border: 1px solid #d9e9e6; border-radius: 11px; background: #f3f9f7; color: var(--teal); line-height: 1.1; }
.event-card > .event-date { display: block; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.6; }
.event-card > .event-date + .muted { margin-top: 5px; font-size: 12px; }
.date-day { font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
.date-month { margin-top: 4px; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #eef2f4; color: #71828b; font-size: 10px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.badge-open { color: #127362; background: #e9f6ef; }
.badge-closed { color: #74818b; background: #f0f3f5; }
.event-card h3 { margin-bottom: 12px; overflow-wrap: anywhere; }
.event-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.event-meta svg { width: 14px; height: 14px; opacity: .75; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 23px; padding-bottom: 20px; }
.stat + .stat { padding-left: 18px; border-left: 1px solid #e9eef0; }
.stat-value { display: block; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; font-weight: 650; }
.stat-label { display: block; margin-top: 4px; color: #82919a; font-size: 10px; }
.event-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: auto; padding: 24px 0 21px; }
.event-stats > div { min-width: 0; }
.event-stats > div + div { border-left: 1px solid #e3ebee; padding-left: 20px; }
.event-stats strong { display: block; color: var(--ink); font-size: 29px; font-weight: 650; line-height: 1.15; letter-spacing: -.045em; }
.event-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.event-card > .actions { padding-top: 17px; border-top: 1px solid #edf1f3; }
.event-card > .actions .button { padding: 9px 11px; font-size: 12px; }
.card-actions { padding-top: 16px; border-top: 1px solid #edf1f3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-actions .button { min-height: 35px; padding: 7px 10px; font-size: 11px; }
.card-actions .button svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; border: 1px dashed #cad9df; border-radius: var(--radius); background: #ffffff60; padding: 40px 25px; text-align: center; }
.empty-icon { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 18px; background: #e9f0f2; color: #6f909b; margin-bottom: 20px; }
.empty-icon svg { width: 27px; height: 27px; }
.empty-state h3 { margin-bottom: 9px; font-size: 18px; }
.empty-state h2 { margin-bottom: 9px; font-size: 18px; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 13px; }
.empty-state .button { margin-top: 22px; }
.loading-state { padding: 55px; text-align: center; color: var(--muted); font-size: 13px; }
.clients-table { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.table, table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { padding: 15px 20px; color: #7a8d97; background: #f9fbfc; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 17px 20px; border-bottom: 1px solid #edf1f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 650; }
td .muted { display: block; font-size: 11px; margin-top: 3px; }
.client-card { padding: 20px; }
.client-card + .client-card { border-top: 1px solid var(--line); }
.history-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfc; }
.history-card + .history-card { margin-top: 15px; }
.history-card h3 { margin-bottom: 7px; font-size: 16px; }
.history-card > p { font-size: 12px; }
.history-card ul { margin: 15px 0 0; padding-left: 20px; color: #435e69; font-size: 13px; line-height: 1.75; }
.history-card li + li { margin-top: 5px; }

.dialog { border: 1px solid #dce5e9; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 25px 90px #061e3860; width: min(650px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.dialog::backdrop { background: #0b202c70; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 21px; }
.dialog-heading .button { padding: 7px; min-height: 32px; }
.dialog-body { padding: 26px 28px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 19px 28px; border-top: 1px solid var(--line); background: #f9fbfc; }
#participants-dialog { width: min(1000px, calc(100% - 32px)); }
#participants-content { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field > label, .field > span, label.field { font-size: 12px; font-weight: 600; color: #3a535e; }
.field input, .field select, .field textarea { font-weight: 400; }
.full-width, .field.full-width { grid-column: 1 / -1; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 43px; border: 1px solid #d5e0e5; border-radius: 8px; background: white; color: var(--ink); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #9ba9b1; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: #4aa69b; box-shadow: 0 0 0 3px #258d7d12; }
textarea { min-height: 95px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--teal); margin: 0; flex: 0 0 auto; }
.checkbox-field { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #526b77; }
.field small, .field-hint { color: #80939c; font-size: 11px; font-weight: 400; }
.optional { margin-left: 3px; font-size: 10px; color: #98a7af; font-weight: 400; }
.checkbox-field strong { display: block; color: #36575e; font-size: 12px; font-weight: 600; }
.checkbox-field small { display: block; color: #8a9ca5; font-size: 10px; margin-top: 3px; }
.form-error { color: var(--danger); font-size: 12px; }

.public-shell { min-height: 100vh; background: linear-gradient(180deg, #eaf2f2 0, #f5f8fa 360px); padding: 0 28px 60px; }
.public-brand { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 29px 0; border-bottom: 1px solid #d7e3e4; }
.public-brand .brand-subtitle { font-size: 8px; }
.public-brand > span { color: #7c929a; font-size: 11px; }
.public-intro { width: min(1100px, 100%); margin: 43px auto 30px; }
.public-intro h1 { max-width: 780px; font-size: clamp(28px, 3vw, 40px); }
.public-intro p { margin-top: 10px; }
.public-layout { width: min(1100px, 100%); margin: 36px auto 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px; align-items: start; }
.public-form-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 7px 25px #183c4a04; }
.public-summary { border: 1px solid #d6e5e2; background: #ffffffb3; border-radius: 15px; padding: 23px; position: sticky; top: 25px; }
.public-summary h3 { font-size: 15px; margin-bottom: 14px; }
.public-summary h1 { font-size: 28px; line-height: 1.25; margin-bottom: 23px; overflow-wrap: anywhere; }
.public-summary p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.public-summary .eyebrow { color: var(--teal); font-size: 9px; }
.public-summary-note { display: flex; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #e0e9e6; }
.public-summary-note > svg { width: 17px; height: 17px; margin-top: 3px; color: #6b9e95; }
.public-summary-note > p { font-size: 11px; }
.public-event-details { color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.public-footer { padding: 30px 0 0; text-align: center; color: #9cabb1; font-size: 10px; }
.public-summary .event-meta { margin: 12px 0; line-height: 1.6; font-size: 12px; }
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; }
.section-heading h2 { font-size: 17px; }
.section-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.step-number { display: grid; place-items: center; height: 28px; width: 28px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 750; flex: 0 0 auto; }
.choice-group { display: flex; gap: 12px; margin-bottom: 24px; }
.choice-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.radio-choice { display: flex; gap: 9px; align-items: center; flex: 1; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; color: #596f79; font-size: 12px; cursor: pointer; }
.radio-choice:has(input:checked) { background: #f1f9f6; border-color: #70b6a9; color: #176f60; }
.public-form-card section + section, .registration-section + .registration-section { border-top: 1px solid #e5ecef; margin-top: 30px; padding-top: 28px; }
.form-divider { height: 1px; background: #e5ecef; margin: 28px 0; }
.form-footnote { margin-top: 14px; font-size: 10px; line-height: 1.7; text-align: center; color: #8c9da5; }
.participant-card { padding: 20px; border: 1px solid #dfe8ec; border-radius: 11px; background: #f9fbfc; margin-bottom: 14px; }
.participant-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; gap: 12px; }
.participant-heading h3 { font-size: 13px; }
.participant-heading .button { padding: 5px 8px; min-height: 30px; font-size: 11px; }
.participant-card .form-grid { gap: 15px; }
.participant-fields { min-width: 0; margin: 0 0 18px; padding: 20px; border: 1px solid #d9e5e9; border-radius: 12px; background: #f8fbfc; }
.participant-fields > legend { padding: 0 8px; color: #365e68; font-size: 12px; font-weight: 700; }
.participant-fields .form-grid { gap: 16px; }
.participant-fields > .button { margin-top: 15px; }
.public-form-card > form > .button-primary, #public-registration-form > .button-primary { width: 100%; margin-top: 28px; min-height: 47px; }
.public-form-footer { margin-top: 14px; font-size: 11px; color: #8b9ba4; text-align: center; }
.success-state { max-width: 590px; margin: 30px auto; padding: 48px 36px; background: white; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.success-icon { width: 65px; height: 65px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; background: #e4f5ec; color: #20876a; }
.success-icon svg { width: 30px; height: 30px; }
.success-state h2 { margin-bottom: 14px; }
.success-state p { color: var(--muted); font-size: 13px; }
.protocol-box { padding: 17px; border: 1px dashed #bed5d3; border-radius: 10px; background: #f5faf8; margin-top: 24px; }
.protocol-box small { display: block; margin-bottom: 6px; color: #7f968f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.protocol-box > span { display: block; margin-bottom: 6px; color: #7f968f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.protocol-box strong { display: block; color: #306f61; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.icon-button { width: 34px; min-width: 34px; }
.noscript-message { width: min(540px, calc(100% - 40px)); padding: 35px; margin: 10vh auto; background: white; border: 1px solid var(--line); border-radius: 16px; }
.noscript-message p { margin-top: 16px; color: var(--muted); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #d1e2de; border-right-color: var(--teal); border-radius: 50%; vertical-align: middle; margin-right: 9px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar .brand { padding-left: 7px; gap: 8px; }
  .sidebar .brand-name { font-size: 17px; }
  .main-content { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .public-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
  .public-form-card { padding: 25px; }
}
@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 245px; padding: 32px; }
  .auth-brand-panel .brand { margin-bottom: 30px; }
  .auth-brand-panel h1 { font-size: 30px; max-width: 520px; }
  .auth-copy { font-size: 13px; margin-top: 14px; max-width: 470px; }
  .auth-points { display: none; }
  .auth-card { width: min(420px, calc(100% - 48px)); padding: 34px 0 45px; }
  .auth-card h2 { font-size: 25px; }
  .auth-card > p { margin-bottom: 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px 22px 0; flex-direction: row; flex-wrap: wrap; gap: 15px; align-items: center; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand-subtitle { font-size: 8px; }
  .sidebar-nav { width: 100%; display: flex; gap: 8px; margin-top: 0; }
  .sidebar-section-label { display: none; }
  .nav-item { width: auto; padding: 12px 17px; border-radius: 9px 9px 0 0; }
  .nav-item.active { background: #ffffff0f; border-bottom: 2px solid #5bc7b4; }
  .sidebar-footer { display: none; }
  .topbar { height: 59px; padding: 0 24px; }
  .topbar-account { gap: 7px; }
  .topbar-account #staff-name { max-width: 180px; }
  .main-content { padding: 29px 24px 45px; }
  .public-layout { grid-template-columns: 1fr; }
  .public-summary { position: static; grid-row: 1; padding: 19px 22px; }
  .public-summary p { font-size: 12px; }
  .public-summary h3 { margin-bottom: 7px; }
  .public-intro { margin-top: 32px; }
}
@media (max-width: 520px) {
  .page-header { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 25px; }
  .page-header .button { width: 100%; }
  .toolbar { gap: 10px; }
  .select-field { width: 115px; }
  .select-field select { padding-right: 5px; }
  .toolbar input, .toolbar select { font-size: 12px; }
  .topbar-title { display: none; }
  .topbar { justify-content: flex-end; padding: 0 19px; }
  .topbar-account { flex: 1; justify-content: space-between; }
  .topbar-account #staff-name { max-width: calc(100vw - 120px); }
  .main-content { padding: 26px 18px 40px; }
  .sidebar { padding-left: 19px; padding-right: 19px; }
  .event-card { padding: 21px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .dialog { max-height: calc(100dvh - 24px); width: calc(100% - 24px); }
  .dialog-heading { padding: 20px; }
  .dialog-heading h2 { font-size: 19px; }
  .dialog-body { padding: 21px 20px; }
  .dialog-actions { padding: 17px 20px; }
  .dialog-actions .button { flex: 1; }
  .public-shell { padding: 0 16px 35px; }
  .public-brand { padding: 22px 4px; }
  .public-brand > span { font-size: 10px; }
  .public-intro { margin: 28px auto 23px; }
  .public-intro h1 { font-size: 29px; }
  .public-form-card { padding: 23px 19px; }
  .public-summary { padding: 18px 20px; }
  .choice-group { gap: 8px; }
  .radio-choice { padding: 12px 10px; font-size: 11px; }
  .participant-card { padding: 17px 14px; }
  .section-heading { gap: 9px; }
  .section-heading h2 { font-size: 16px; }
  .success-state { padding: 35px 24px; }
  .setup-card { padding: 30px 24px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
