:root {
    color-scheme:light;
    --ink:#153d35;
    --deep:#0d2b25;
    --muted:#596b62;
    --paper:#f3f5ed;
    --surface:#fffef8;
    --line:#d6ded1;
    --lime:#d7f66c;
    --danger:#a33132;
    --radius:1.2rem;
    font-family:Inter,'Segoe UI',Arial,sans-serif;
    font-size:16px;
    line-height:1.55}

* {
    box-sizing:border-box}

html {
    min-width:320px;
    scroll-padding-top:2rem}

body {
    margin:0;
    color:var(--ink);
    background:var(--paper)}

body.dialog-open {
    overflow:hidden}

button,input,select,textarea {
    font:inherit}

button,[type=submit],[type=button] {
    cursor:pointer}

button:disabled,input:disabled {
    cursor:not-allowed;
    opacity:.6}

a {
    color:inherit;
    text-underline-offset:.2em}

a:hover {
    text-decoration-thickness:2px}

button,a,input,select,textarea {
    touch-action:manipulation}

:focus-visible {
    outline:3px solid #286fbc;
    outline-offset:4px}

img,svg {
    max-width:100%;
    vertical-align:middle}

h1,h2,h3,p,dl,ul,ol {
    margin-top:0}

h1,h2,h3 {
    color:var(--deep);
    line-height:1.12;
    overflow-wrap:anywhere}

h1 {
    margin-bottom:1.5rem;
    font-size:clamp(2.7rem,6vw,5.5rem);
    font-weight:750;
    letter-spacing:-.055em}

h2 {
    margin-bottom:1rem;
    font-size:clamp(1.6rem,3vw,2.3rem);
    letter-spacing:-.04em}

h3 {
    margin-bottom:.6rem;
    font-size:1.1rem}

p {
    margin-bottom:1rem}

small {
    font-size:.85rem}

hr {
    height:1px;
    border:0;
    margin:1.5rem 0;
    background:var(--line)}

[hidden] {
    display:none!important}

.container {
    width:min(100% - 3rem,1160px);
    margin-inline:auto}

.page {
    padding-block:3rem 5rem}

.site-header {
    border-bottom:1px solid var(--line);
    background:var(--surface)}

.header-inner {
    display:flex;
    min-height:88px;
    align-items:center;
    justify-content:space-between;
    gap:1rem}

.brand {
    display:inline-flex;
    align-items:center;
    gap:.7rem;
    color:var(--deep);
    font-size:1.05rem;
    font-weight:800;
    text-decoration:none;
    letter-spacing:-.03em}

.brand-mark {
    display:grid;
    width:39px;
    height:39px;
    flex:0 0 auto;
    place-items:center;
    border:2px solid var(--ink);
    border-radius:50%;
    background:var(--lime)}

.brand-mark:before {
    width:17px;
    height:17px;
    border:2px solid var(--ink);
    border-radius:50%;
    content:'';
    background:radial-gradient(circle,var(--ink) 0 3px,transparent 3.5px)}

.site-nav {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.5rem 1.35rem;
    font-size:.88rem}

.site-nav a {
    padding-block:.65rem;
    text-decoration:none}

.site-nav a:hover,.site-nav [aria-current=page] {
    text-decoration:underline}

.site-nav form {
    margin:0}

.eyebrow {
    display:flex;
    align-items:center;
    gap:.6rem;
    margin-bottom:1.5rem;
    color:var(--muted);
    font-size:.73rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase}

.eyebrow:before {
    width:8px;
    height:8px;
    border-radius:50%;
    content:'';
    background:var(--ink)}

.hero {
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    align-items:start;
    gap:clamp(2rem,6vw,5.5rem);
    padding-top:1.5rem}

.hero-copy {
    padding-top:1.4rem}

.hero-copy h1 {
    max-width:12ch}

.lead {
    max-width:49ch;
    color:var(--muted);
    font-size:1.08rem;
    line-height:1.75}

.event-meta {
    display:grid;
    gap:1rem;
    margin-block:2rem}

.event-meta-item {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:.2rem}

.event-meta dt {
    color:var(--muted);
    font-size:.77rem}

.event-meta dd {
    margin:0;
    font-weight:650;
    overflow-wrap:anywhere}

.event-description {
    white-space:pre-line;
    overflow-wrap:anywhere}

.hero-note {
    max-width:47ch;
    padding-top:1.2rem;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:.86rem}

.card {
    min-width:0;
    padding:clamp(1.3rem,3vw,2rem);
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:var(--surface);
    box-shadow:0 1rem 3rem rgb(16 47 35 / 7%)}

.card-header {
    margin-bottom:1.65rem}

.card-header h2 {
    margin-bottom:.55rem;
    font-size:1.8rem}

.card-header p {
    margin-bottom:0;
    color:var(--muted);
    font-size:.91rem}

.registration-card {
    position:relative;
    overflow:hidden}

.registration-card:before {
    position:absolute;
    inset:0 0 auto;
    height:5px;
    content:'';
    background:var(--lime)}

.stack {
    display:grid;
    gap:1.25rem}

.stack>* {
    margin-block:0}

.stack-sm {
    gap:.75rem}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1.15rem}

.form-grid .full {
    grid-column:1/-1}

.field {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:.4rem}

.field label,.field-label {
    color:var(--deep);
    font-size:.86rem;
    font-weight:650}

.field-help,.hint {
    margin:0;
    color:var(--muted);
    font-size:.8rem}

.field-error {
    margin:0;
    color:var(--danger);
    font-size:.83rem}

input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea {
    width:100%;
    min-width:0;
    min-height:48px;
    border:1px solid #aebdaf;
    border-radius:.65rem;
    padding:.72rem .85rem;
    color:var(--deep);
    background:#fff}

textarea {
    min-height:130px;
    resize:vertical}

input::placeholder,textarea::placeholder {
    color:#7b897f;
    opacity:1}

input:focus,select:focus,textarea:focus {
    border-color:var(--ink)}

input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] {
    border-color:var(--danger)}

input[type=checkbox],input[type=radio] {
    width:1.15rem;
    height:1.15rem;
    margin:.15rem .55rem 0 0;
    accent-color:var(--ink)}

.checkbox-label {
    display:flex;
    align-items:start;
    font-size:.88rem}

.form-footer {
    padding-top:1rem;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:.79rem}

.form-footer p:last-child {
    margin-bottom:0}

.button {
    display:inline-flex;
    min-height:48px;
    align-items:center;
    justify-content:center;
    gap:.6rem;
    padding:.75rem 1.2rem;
    border:1px solid var(--ink);
    border-radius:.65rem;
    color:var(--surface);
    background:var(--ink);
    font-size:.9rem;
    font-weight:700;
    line-height:1.3;
    text-align:center;
    text-decoration:none}

.button:hover {
    border-color:var(--deep);
    background:var(--deep);
    text-decoration:none}

.button-primary {
    border-color:var(--lime);
    color:var(--deep);
    background:var(--lime)}

.button-primary:hover {
    border-color:#bde34f;
    background:#bde34f}

.button-secondary {
    border-color:var(--line);
    color:var(--ink);
    background:transparent}

.button-secondary:hover {
    border-color:var(--ink);
    color:var(--ink);
    background:#edf0e5}

.button-danger {
    border-color:var(--danger);
    color:#fff;
    background:var(--danger)}

.button-danger:hover {
    border-color:#852324;
    background:#852324}

.button-quiet {
    min-height:44px;
    border-color:transparent;
    color:var(--ink);
    background:transparent}

.button-quiet:hover {
    border-color:transparent;
    color:var(--ink);
    background:#e8eddf}

.button-sm {
    min-height:40px;
    padding:.55rem .8rem;
    font-size:.8rem}

.button-block {
    width:100%}

.actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:.65rem}

.actions form {
    margin:0}

.actions-end {
    justify-content:flex-end}

.text-link {
    padding:0;
    border:0;
    color:var(--ink);
    background:transparent;
    font-size:inherit;
    text-decoration:underline;
    text-underline-offset:.2em}

.stat-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.75rem;
    margin-bottom:1.5rem}

.stat-card {
    min-width:0;
    padding:.95rem;
    border:1px solid var(--line);
    border-radius:.85rem;
    background:#f1f4e8}

.stat-value {
    display:block;
    color:var(--deep);
    font-size:1.8rem;
    font-weight:750;
    line-height:1.15;
    letter-spacing:-.05em;
    font-variant-numeric:tabular-nums}

.stat-label {
    display:block;
    margin-top:.35rem;
    color:var(--muted);
    font-size:.74rem;
    line-height:1.4}

.stat-card-featured {
    border-color:var(--lime);
    background:var(--lime)}

.stat-card-featured .stat-label {
    color:var(--ink)}

.alert {
    margin-bottom:1.25rem;
    padding:1rem 1.15rem;
    border:1px solid var(--line);
    border-radius:.8rem;
    background:#edf1e7;
    font-size:.9rem;
    overflow-wrap:anywhere}

.alert p:last-child,.alert ul:last-child {
    margin-bottom:0}

.alert-success {
    border-color:#b9d29f;
    background:#eaf4e1}

.alert-error {
    border-color:#e0b3a9;
    color:#7d2728;
    background:#fff0ec}

.alert-warning {
    border-color:#e1ca8d;
    color:#80500c;
    background:#fff5d7}

.status-badge {
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    border:1px solid var(--line);
    border-radius:2rem;
    padding:.28rem .65rem;
    color:var(--muted);
    background:#f0f2ec;
    font-size:.73rem;
    font-weight:650;
    line-height:1.5;
    white-space:nowrap}

.status-badge:before {
    width:6px;
    height:6px;
    flex:0 0 auto;
    border-radius:50%;
    content:'';
    background:currentColor}

.status-registered {
    border-color:#bfd2b2;
    color:#315226;
    background:#eaf4e1}

.status-waiting,.status-waitlisted {
    border-color:#dec990;
    color:#80500c;
    background:#fff5d7}

.status-withdrawn,.status-cancelled {
    color:#59675f;
    background:#ecefe9}

.status-blocked,.status-failed {
    border-color:#e1b4ae;
    color:var(--danger);
    background:#fff0ec}

.confirmation {
    width:min(100%,650px);
    margin:2rem auto}

.confirmation-symbol {
    display:grid;
    width:60px;
    height:60px;
    place-items:center;
    margin-bottom:1.75rem;
    border-radius:50%;
    color:var(--ink);
    background:var(--lime);
    font-size:1.6rem}

.confirmation h1 {
    margin-bottom:1rem;
    font-size:clamp(2rem,6vw,3.5rem)}

.prose {
    max-width:72ch;
    overflow-wrap:anywhere}

.prose h1 {
    font-size:clamp(2.2rem,5vw,3.5rem)}

.prose h2 {
    margin-top:2rem;
    font-size:1.45rem}

.prose li+li {
    margin-top:.5rem}

.missing-content {
    border-left:4px solid #b38029;
    padding-left:1rem;
    color:#80500c}

.admin-page {
    padding-block:2.5rem 4rem}

.page-heading {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    margin-bottom:2rem}

.page-heading h1 {
    margin-bottom:.55rem;
    font-size:clamp(2rem,5vw,3.4rem)}

.page-heading p {
    margin-bottom:0;
    color:var(--muted);
    font-size:.93rem}

.dashboard-grid {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:.8rem;
    margin-bottom:2rem}

.dashboard-grid .stat-card {
    padding:1.15rem;
    background:var(--surface)}

.dashboard-grid .stat-card-featured {
    border-color:var(--ink);
    color:#fff;
    background:var(--ink)}

.dashboard-grid .stat-card-featured .stat-value,.dashboard-grid .stat-card-featured .stat-label {
    color:var(--surface)}

.toolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:end;
    gap:.8rem;
    margin-bottom:1.5rem}

.toolbar .field {
    flex:1 1 150px}

.toolbar .field-search {
    flex:2 1 240px}

.table-card {
    padding:0;
    overflow:hidden}

.table-card .toolbar,.table-card .card-header {
    margin:0;
    padding:1.3rem}

.table-scroll {
    max-width:100%;
    overflow-x:auto;
    overscroll-behavior-x:contain}

.data-table {
    width:100%;
    border-collapse:collapse;
    font-size:.86rem;
    text-align:left}

.data-table th,.data-table td {
    padding:1rem 1.2rem;
    border-bottom:1px solid var(--line);
    vertical-align:middle}

.data-table th {
    color:var(--muted);
    background:#eef1e7;
    font-size:.71rem;
    font-weight:750;
    letter-spacing:.05em;
    text-transform:uppercase;
    white-space:nowrap}

.data-table tr:last-child td {
    border-bottom:0}

.data-table tbody tr:hover {
    background:#f7f8ef}

.data-table .name {
    min-width:150px;
    color:var(--deep);
    font-weight:650}

.data-table .email {
    overflow-wrap:anywhere}

.data-table .date {
    min-width:145px;
    color:var(--muted);
    font-size:.8rem;
    font-variant-numeric:tabular-nums}

.data-table .actions {
    flex-wrap:nowrap}

.table-caption {
    padding:.9rem 1.3rem;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:.79rem}

.empty-state {
    padding:3rem 1.5rem;
    color:var(--muted);
    text-align:center}

.pagination {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:.8rem;
    margin-top:1.25rem;
    font-size:.85rem}

.two-columns {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:1.5rem}

.settings-section+.settings-section {
    margin-top:2rem}

.settings-section fieldset {
    min-width:0;
    margin:0;
    padding:0;
    border:0}

.settings-section legend {
    width:100%;
    margin-bottom:1.2rem;
    font-size:1.2rem;
    font-weight:700}

.danger-zone {
    border-color:#d8aaa0}

.internal-note {
    padding:.9rem;
    border-left:3px solid var(--line);
    color:var(--muted);
    background:#f2f4eb;
    font-size:.85rem;
    white-space:pre-wrap;
    overflow-wrap:anywhere}

.auth-page {
    display:grid;
    min-height:calc(100svh - 190px);
    align-items:center;
    padding-block:3rem}

.auth-card {
    width:min(100%,470px);
    margin-inline:auto}

.auth-card h1 {
    margin-bottom:.75rem;
    font-size:2.25rem}

.auth-card .lead {
    margin-bottom:1.75rem;
    font-size:.93rem}

.auth-links {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:.75rem;
    margin-top:1.25rem;
    font-size:.82rem}

.otp-input {
    font-size:1.65rem!important;
    font-weight:650;
    letter-spacing:.4em;
    text-align:center;
    font-variant-numeric:tabular-nums}

.totp-secret {
    padding:1rem;
    border:1px dashed #8a9d8c;
    border-radius:.7rem;
    background:#f3f5ea;
    font-family:Consolas,monospace;
    font-size:.98rem;
    line-height:1.8;
    text-align:center;
    overflow-wrap:anywhere;
    user-select:all}

.recovery-codes {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.6rem;
    padding:1rem;
    border:1px solid var(--line);
    border-radius:.8rem;
    background:#f4f6ed;
    font-family:Consolas,monospace;
    font-size:.86rem;
    list-style:none}

.recovery-codes li {
    overflow-wrap:anywhere}

.confirm-dialog {
    width:min(calc(100% - 2rem),460px);
    max-height:calc(100svh - 3rem);
    padding:1.75rem;
    overflow-y:auto;
    border:1px solid var(--line);
    border-radius:var(--radius);
    color:var(--ink);
    background:var(--surface);
    box-shadow:0 1.5rem 5rem rgb(0 0 0 / 20%)}

.confirm-dialog::backdrop {
    background:rgb(9 29 23 / 62%);
    backdrop-filter:blur(3px)}

.confirm-dialog h2 {
    margin-bottom:1rem;
    font-size:1.65rem}

.confirm-dialog p {
    margin-bottom:1.5rem;
    overflow-wrap:anywhere}

.confirm-dialog .actions {
    justify-content:flex-end}

.confirm-dialog form {
    margin:0}

.site-footer {
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:.8rem}

.footer-inner {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding-block:1.5rem}

.footer-inner p {
    margin:0}

.footer-links {
    display:flex;
    flex-wrap:wrap;
    gap:.7rem 1.3rem}

.muted {
    color:var(--muted)}

.text-small {
    font-size:.83rem}

.text-center {
    text-align:center}

.nowrap {
    white-space:nowrap}

.visually-hidden,.honeypot {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    margin:-1px!important;
    padding:0!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important}

.skip-link {
    position:absolute;
    z-index:20;
    top:.5rem;
    left:.5rem;
    padding:.75rem 1rem;
    transform:translateY(-160%);
    border-radius:.5rem;
    color:#fff;
    background:var(--deep)}

.skip-link:focus {
    transform:translateY(0)}

@media(max-width:1050px) {
    .dashboard-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))}

.hero {
    gap:2rem}

}

@media(max-width:760px) {
    .container {
    width:min(100% - 2rem,600px)}

.page {
    padding-block:2rem 3rem}

.header-inner {
    min-height:76px}

.site-nav {
    gap:.25rem .85rem;
    font-size:.81rem}

.hero {
    grid-template-columns:minmax(0,1fr);
    gap:1.75rem;
    padding-top:0}

.hero-copy {
    padding-top:.4rem}

.hero-copy h1 {
    max-width:14ch}

.eyebrow {
    margin-bottom:1rem;
    font-size:.68rem}

.event-meta {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem;
    margin-block:1.5rem}

.hero-note {
    display:none}

.lead {
    font-size:1rem}

.two-columns {
    grid-template-columns:minmax(0,1fr)}

.page-heading {
    margin-bottom:1.5rem}

.admin-page {
    padding-block:1.8rem 3rem}

.table-card .toolbar,.table-card .card-header {
    padding:1rem}

.data-table th,.data-table td {
    padding:.85rem 1rem}

.footer-inner {
    align-items:flex-start;
    flex-direction:column}

}

@media(max-width:420px) {
    .container {
    width:calc(100% - 1.5rem)}

.brand {
    gap:.5rem;
    font-size:.98rem}

.brand-mark {
    width:33px;
    height:33px}

.header-inner {
    flex-wrap:wrap;
    gap:.25rem;
    padding-block:.75rem}

.site-nav {
    gap:.25rem .75rem}

.form-grid {
    grid-template-columns:minmax(0,1fr)}

.stat-card {
    padding:.75rem .6rem}

.stat-value {
    font-size:1.55rem}

.stat-label {
    font-size:.7rem}

.dashboard-grid {
    gap:.5rem}

.dashboard-grid .stat-card {
    padding:.8rem .6rem}

.confirm-dialog {
    padding:1.3rem}

.confirm-dialog .actions {
    align-items:stretch;
    flex-direction:column-reverse}

.recovery-codes {
    grid-template-columns:minmax(0,1fr)}

}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important}

}

@media print {
    body {
    color:#000;
    background:#fff}

.site-header,.site-footer,.toolbar,.actions,.skip-link,.no-print {
    display:none!important}

.container {
    width:100%}

.card {
    border-color:#aaa;
    box-shadow:none}

.table-scroll {
    overflow:visible}

.data-table {
    font-size:10pt}

.data-table th,.data-table td {
    padding:.4rem}

a {
    text-decoration:none}

}

.qr-code {
    display:block;
    width:min(100%,240px);
    margin:1.5rem auto;
    padding:.75rem;
    border:1px solid var(--line);
    border-radius:.5rem;
    background:#fff}

.qr-code svg {
    display:block;
    width:100%;
    height:auto}

details>summary {
    cursor:pointer;
    padding-block:.6rem}

details[open]>summary {
    margin-bottom:1rem}

details form {
    margin-top:.75rem}

.data-table details {
    min-width:190px;
    margin-top:.5rem}

