:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #162536;
    background: #f3f6f8;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: min(20rem, 100%);
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(74, 144, 164, 0.18), transparent 32rem), #f3f6f8;
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.hero {
    width: min(100%, 44rem);
    padding: clamp(2rem, 7vw, 4.5rem);
    border: 1px solid #d8e1e7;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1.5rem 4rem rgba(24, 50, 77, 0.1);
}

.portal {
    width: min(100%, 68rem);
    padding: clamp(1.5rem, 5vw, 4rem);
}

.portal-brand {
    display: block;
    width: 15rem;
    max-width: 100%;
    height: auto;
    margin: 0 0 1.5rem;
}

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

.space-card {
    padding: clamp(1.4rem, 4vw, 2.25rem);
    border: 1px solid #d8e1e7;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(24, 50, 77, 0.08);
}

.participant-card { border-top: 0.35rem solid #267b88; }
.organizer-card { border-top: 0.35rem solid #7c5a98; }
.space-card h2 { margin: 0.3rem 0 0.75rem; color: #17324d; font-size: 1.8rem; }
.space-card > p:not(.space-label) { color: #526574; line-height: 1.55; }
.space-label { margin: 0; color: #526574; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.7rem;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button.primary { color: #fff; background: #1d596d; }
.button.secondary { border-color: #9eb0ba; color: #17324d; background: #fff; }
.button:hover { filter: brightness(0.94); }
.button:disabled { cursor: wait; opacity: 0.68; }

.form-shell { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); }
.form-panel { width: min(100%, 52rem); margin: 0 auto; padding: clamp(1.4rem, 5vw, 3rem); border: 1px solid #d8e1e7; border-radius: 1.25rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(24, 50, 77, 0.1); }
.form-panel.narrow { width: min(100%, 38rem); }
.form-panel.organizer-dashboard { width: min(100%, 58rem); }
.form-panel h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.05; }
.form-intro { margin: 1rem 0 1.8rem; color: #526574; line-height: 1.55; }
.event-metadata { margin: -1rem 0 1.8rem; color: #526574; font-size: 0.95rem; }
.back-link { display: inline-block; margin-bottom: 2rem; color: #245b70; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label, .checkbox-field label { color: #243d52; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 2.9rem; padding: 0.65rem 0.75rem; border: 1px solid #93a6b1; border-radius: 0.55rem; color: #162536; background: #fff; font: inherit; }
.field textarea { resize: vertical; line-height: 1.5; }
.field small { color: #5d6d78; line-height: 1.4; }
.field-group { margin: 1.5rem 0; padding: 1rem; border: 1px solid #c7d2d9; border-radius: 0.75rem; }
.field-group legend { padding: 0 0.35rem; color: #17324d; font-weight: 800; }
.field-section-title { margin: 1.25rem 0 0.25rem; color: #17324d; font-size: 1rem; }
.field-hint { color: #536774; font-size: 0.92rem; }
.optional { font-weight: 400; color: #5d6d78; }
.checkbox-field { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1rem 0 0.3rem; }
.checkbox-field input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin-top: 0.1rem; }
.submit { margin-top: 1.5rem; }
.alternate { margin: 1.5rem 0 0; color: #526574; }
.alternate a, .text-button { color: #245b70; font-weight: 750; }
.text-button { margin-top: 1rem; padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.notice { margin: 1rem 0 1.5rem; padding: 1rem; border-left: 0.35rem solid; border-radius: 0.5rem; line-height: 1.5; }
.notice.success { border-color: #247146; color: #174c31; background: #edf8f1; }
.notice.error { border-color: #a52f35; color: #722126; background: #fff0f0; }
.validation-summary, .validation-message { color: #8c252b; }
.validation-summary { margin-bottom: 1rem; }
.validation-message { font-size: 0.9rem; }
.profile-summary { margin: 1.5rem 0; padding: 1rem; border-radius: 0.75rem; background: #f3f6f8; }
.profile-summary p { margin: 0.25rem 0; }
.participant-qr-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid #c8d7df; border-radius: 1rem; background: #f7fafb; }
.participant-qr-card h2 { margin: 0.25rem 0 0.5rem; }
.participant-qr-card p:last-child { margin-bottom: 0; }
.participant-qr-image { width: 12rem; max-width: 100%; padding: 0.65rem; border-radius: 0.65rem; background: #fff; }
.participant-qr-image svg { display: block; width: 100%; height: auto; }
.compact { margin-top: 1rem; }
.page-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.page-heading h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.event-list-heading { align-items: flex-end; margin-bottom: 1.5rem; }
.event-search { margin-bottom: 2rem; }
.event-search small { color: #526574; }
.event-status-group + .event-status-group { margin-top: 2rem; }
.event-status-group h2 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.75rem; font-size: 1.35rem; }
.event-status-group h2 span { display: inline-flex; min-width: 1.8rem; min-height: 1.8rem; align-items: center; justify-content: center; padding: 0.1rem 0.45rem; border-radius: 999px; color: #245b70; background: #eaf3f6; font-size: 0.9rem; }
.dashboard-events { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid #d8e1e7; }
.dashboard-events-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dashboard-events-heading h2 { margin: 0; }
.dashboard-events .event-status-group h3 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.75rem; font-size: 1.2rem; }
.dashboard-events .event-status-group h3 span { display: inline-flex; min-width: 1.8rem; min-height: 1.8rem; align-items: center; justify-content: center; padding: 0.1rem 0.45rem; border-radius: 999px; color: #245b70; background: #eaf3f6; font-size: 0.9rem; }
.dashboard-logout { margin-top: 0.5rem; }
.participant-registrations { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid #d8e1e7; }
.participant-registration-list { display: grid; gap: 1rem; }
.participant-registration-card { padding: 1.15rem; border: 1px solid #c8d7df; border-radius: 1rem; background: #fff; }
.participant-registration-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.participant-registration-heading h4, .participant-registration-heading p { margin: 0 0 0.4rem; }
.participant-registration-heading h4 { font-size: 1.2rem; }
.participant-registration-heading p { color: #526574; }
.participant-registration-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.participant-registration-facts dt, .participant-registration-details dt { font-weight: 700; }
.participant-registration-facts dd, .participant-registration-details dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.participant-registration-card summary { cursor: pointer; color: #1f667a; font-weight: 700; }
.participant-registration-details { margin-top: 0.8rem; padding: 0.9rem; border-radius: 0.7rem; background: #f5f8fa; }
.participant-registration-details h5 { margin: 0.6rem 0; font-size: 1rem; }
.participant-registration-details ul { margin: 0; padding-left: 1.25rem; }
.participant-registration-details dl { display: grid; gap: 0.65rem; margin-bottom: 0; }
.participant-registration-actions, .modal-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.catalog-panel { width: min(100%, 72rem); }
.catalog-filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(9rem, 1fr)); gap: 0.85rem; align-items: end; margin: 1.5rem 0 2rem; padding: 1rem; border: 1px solid #c8d7df; border-radius: 1rem; background: #f7fafb; }
.catalog-filters .field { margin: 0; }
.catalog-filters input, .catalog-filters select { width: 100%; }
.catalog-filter-actions { display: flex; gap: 0.65rem; grid-column: 1 / -1; }
.catalog-result-count { color: #526574; font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.catalog-card { overflow: hidden; border: 1px solid #c8d7df; border-radius: 1rem; background: #fff; box-shadow: 0 0.35rem 1rem rgba(23, 50, 77, 0.06); }
.catalog-card > img, .catalog-card-placeholder { width: 100%; height: 13rem; object-fit: cover; }
.catalog-card-placeholder { display: grid; place-items: center; color: #245b70; background: linear-gradient(135deg, #e9f3f6, #f7fafb); font-weight: 800; letter-spacing: 0.08em; }
.catalog-card-content { padding: 1.15rem; }
.catalog-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 0.8rem; }
.catalog-card-heading h2 { margin: 0; font-size: 1.35rem; }
.catalog-card-description { color: #526574; line-height: 1.45; }
.catalog-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.catalog-card-facts dt { font-weight: 700; }
.catalog-card-facts dd { margin: 0.2rem 0 0; }
.catalog-categories { color: #245b70; font-weight: 700; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.registration-link-panel { margin: 1.5rem 0; padding: 1.1rem; border: 1px solid #bad0d9; border-radius: 0.9rem; background: #f4fafc; }
.registration-link-panel h2 { margin-top: 0; font-size: 1.3rem; }
.registration-link-qr { margin-top: 0.75rem; }
.registration-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.65rem; align-items: center; }
.registration-link-row input { min-width: 0; }
.public-event-lead { color: #314d61; font-size: 1.15rem; line-height: 1.5; }
.public-event-description { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #d8e1e7; }
.public-registration { margin: 1rem 0 1.5rem; }
.public-register-cta { min-width: 12rem; }
.registration-form-card { margin-top: 1rem; padding: 1.25rem; border: 1px solid #b9cbd5; border-radius: 1rem; background: #f8fafb; }
.registration-form-card h2 { margin-top: 0; }
.registration-profile-summary { margin: 1rem 0 1.25rem; padding: 1rem; border-left: 0.3rem solid #1f667a; border-radius: 0.5rem; background: #eaf3f6; }
.registration-profile-summary p { margin: 0.25rem 0 0; }
.public-custom-field { margin: 1rem 0; }
.public-custom-field > input, .public-custom-field > textarea, .public-custom-field > select { width: 100%; min-height: 2.9rem; padding: 0.65rem 0.75rem; border: 1px solid #93a6b1; border-radius: 0.55rem; font: inherit; }
.public-custom-field fieldset, .companion-fields { margin: 1rem 0; padding: 1rem; border: 1px solid #b9cbd5; border-radius: 0.75rem; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(13, 31, 47, 0.7); }
.confirmation-dialog { width: min(38rem, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3); }
.confirmation-dialog h2 { margin-top: 0; }
.account-closure { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #dce3e8; }
.account-closure-dialog { width: min(38rem, calc(100% - 2rem)); border: 0; }
.account-closure-dialog::backdrop { background: rgba(10, 25, 36, 0.66); }
.confirmation-summary > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid #d1dde4; }
.confirmation-summary dt { font-weight: 700; }
.confirmation-summary dd { margin: 0; overflow-wrap: anywhere; }
.waitlist-position { width: 6rem; margin: 1.5rem auto 0.5rem; padding: 1rem; border-radius: 50%; color: #fff; background: #1d596d; text-align: center; font-size: 2rem; font-weight: 800; }
.empty-state { padding: 2rem; border: 1px dashed #9eb0ba; border-radius: 1rem; text-align: center; background: #f8fafb; }
.empty-state h2 { margin-top: 0; color: #17324d; }
.empty-state p { color: #526574; line-height: 1.55; }
.event-list { padding: 0; list-style: none; }
.event-list li + li { margin-top: 0.75rem; }
.event-list a { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem; border: 1px solid #d8e1e7; border-radius: 0.8rem; color: #17324d; text-decoration: none; }
.event-list a:hover { border-color: #326477; background: #f8fafb; }
.event-list strong, .event-list small { display: block; }
.event-list small { margin-top: 0.3rem; color: #526574; }
.event-card-description { display: -webkit-box; margin-top: 0.45rem; overflow: hidden; color: #314d61; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-list .event-card-date { color: #245b70; font-weight: 700; }
.event-list .event-card-attention { width: fit-content; padding: 0.2rem 0.55rem; border-radius: 999px; color: #7a3d00; background: #fff0d5; font-weight: 800; }
.notice.conflict { border-color: #a76512; color: #593806; background: #fff6e6; }
.notice.conflict h2 { margin-top: 0; color: inherit; }
.server-version { padding: 0.8rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.7); }
.preserve-lines { white-space: pre-wrap; }
.history { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #d8e1e7; }
.history h2 { color: #17324d; }
.history-list { padding-left: 1.4rem; }
.history-list li + li { margin-top: 0.8rem; }
.history-list details { padding: 0.8rem; border: 1px solid #d8e1e7; border-radius: 0.7rem; }
.history-list summary { cursor: pointer; }
.history-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.history-comparison > div { min-width: 0; padding: 0.8rem; border-radius: 0.5rem; background: #f3f6f8; overflow-wrap: anywhere; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0.2rem solid #e79b2d; outline-offset: 0.18rem; }

.eyebrow {
    margin: 0 0 0.75rem;
    color: #326477;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #17324d;
    font-size: clamp(2.6rem, 9vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.intro {
    max-width: 36rem;
    margin: 1.5rem 0 2.25rem;
    color: #4b5f70;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.65;
}

.status-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid #d8e1e7;
    border-radius: 1rem;
    background: #f8fafb;
}

.status-card strong { display: block; color: #17324d; }
.status-card p { margin: 0.25rem 0 0; color: #526574; line-height: 1.45; }

.status-indicator {
    flex: 0 0 auto;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.3rem;
    border: 2px solid #526574;
    border-radius: 50%;
    background: #fff;
}

.status-indicator.checking { border-top-color: transparent; animation: spin 0.9s linear infinite; }
.status-indicator.available { border-color: #17683a; background: #2f9e61; }
.status-indicator.unavailable { border-color: #8a2c2c; background: #d04a4a; }

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 1rem 1rem;
    padding: 1rem 3.5rem 1rem 1rem;
    border: 2px solid #7d2020;
    border-radius: 0.75rem;
    color: #fff;
    background: #9f2929;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
}

.event-presentation-image {
    display: block;
    width: min(100%, 42rem);
    max-height: 24rem;
    margin: 1rem 0;
    border-radius: 1rem;
    object-fit: cover;
}

.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    list-style: none;
}

.selected-categories li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.5rem 0.4rem 0.8rem;
    border: 1px solid #b9cbd5;
    border-radius: 999px;
    background: #f3f8fa;
}

.selected-categories .button { padding: 0.35rem 0.65rem; }

.category-suggestions {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem;
    border: 1px solid #d1dde4;
    border-radius: 0.75rem;
    background: #f8fafb;
}

.category-suggestions ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.category-suggestions p { margin: 0.5rem 0 0; }

.event-tabs {
    margin: 1.5rem 0;
    border-bottom: 1px solid #b9cbd5;
    overflow-x: auto;
}

.event-tabs [role="tablist"] { display: flex; gap: 0.35rem; min-width: max-content; }
.event-tabs [role="tab"] { padding: 0.85rem 1.1rem; border: 1px solid transparent; border-bottom: 0.25rem solid transparent; color: #345164; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.event-tabs [role="tab"]:hover { background: #eef5f7; }
.event-tabs [role="tab"].active { border-bottom-color: #e88b16; color: #17324d; }
.event-tabs [role="tab"]:focus-visible { outline: 0.2rem solid #e88b16; outline-offset: -0.2rem; }
[role="tabpanel"]:focus { outline: none; }
[role="tabpanel"]:focus-visible { outline: 0.2rem solid #e88b16; outline-offset: 0.25rem; }

.lifecycle-actions { margin: 1.25rem 0; }
.lifecycle-actions > .button { min-width: 12rem; }
.event-readonly-summary { margin: 1rem 0 2rem; }
.event-summary-list { display: grid; gap: 0; margin: 1.25rem 0; border: 1px solid #d1dde4; border-radius: 0.75rem; overflow: hidden; }
.event-summary-list > div { display: grid; grid-template-columns: minmax(10rem, 0.35fr) 1fr; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid #d1dde4; }
.event-summary-list > div:last-child { border-bottom: 0; }
.event-summary-list dt { font-weight: 700; }
.event-summary-list dd { margin: 0; }

.fixed-registration-fields {
    padding: 1rem;
    border-left: 0.3rem solid #326477;
    border-radius: 0.5rem;
    background: #eef5f7;
}

.fixed-registration-fields ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0;
}

.form-block-toolbar { display: flex; gap: 1rem; align-items: end; margin: 1.5rem 0; }
.form-block-toolbar .field { margin-bottom: 0; }
.form-block-toolbar > .button { align-self: end; }
.form-block-list { display: grid; gap: 1rem; padding: 0; list-style: none; }

.form-block {
    padding: 1.1rem;
    border: 1px solid #b9cbd5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(23, 50, 77, 0.06);
}

.form-block-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.form-block-heading h3 { margin-top: 0.45rem; }
.button.danger { border-color: #a63d40; color: #842d30; background: #fff7f7; }
.button.danger.account-closure-button { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; background: #9b252a; border-color: #9b252a; }
.button.danger.account-closure-button:hover:not(:disabled) { background: #7b1920; border-color: #7b1920; }
.checkbox-label { display: flex; gap: 0.6rem; align-items: center; margin: 0.8rem 0; }
.checkbox-label input { width: auto; }
.block-options { margin-top: 1rem; padding: 1rem; border: 1px dashed #9eb2be; border-radius: 0.75rem; }
.option-row { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; margin-bottom: 0.65rem; }

.registration-preview {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #d1dde4;
    border-radius: 1rem;
    background: #f8fafb;
}

.application-layout { min-height: 100vh; display: flex; flex-direction: column; }
.application-content { flex: 1 0 auto; }
.application-footer { flex: 0 0 auto; padding: 1rem; color: #526574; text-align: center; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.home-statistics { margin-top: 2rem; }
.home-statistics dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.75rem; }
.home-statistics dl div { padding: 0.9rem; border: 1px solid #c4d2da; border-radius: 0.75rem; background: #fff; }
.home-statistics dd { margin: 0.25rem 0 0; font-size: 1.75rem; font-weight: 700; }
.legal-page { max-width: 58rem; }
.legal-page h2 { margin-top: 1.6rem; }
.legal-table-scroll { overflow-x: auto; }
.legal-table-scroll table { width: 100%; border-collapse: collapse; }
.legal-table-scroll th, .legal-table-scroll td { padding: 0.6rem; border: 1px solid #c4d2da; text-align: left; vertical-align: top; }

.registration-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1.25rem 0; }
.registration-counts > div { display: grid; gap: 0.15rem; padding: 1rem; border-radius: 0.8rem; background: #f1f5f7; }
.registration-counts strong { font-size: 1.65rem; color: #1f667a; }
.registration-counts span { color: #526574; }
.registration-counts dt { color: #526574; font-weight: 700; }
.registration-counts dd { margin: 0.2rem 0 0; font-size: 1.65rem; font-weight: 700; color: #1f667a; }
.organizer-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.registration-readonly-note { padding: 0.8rem 1rem; border-left: 0.3rem solid #e59022; background: #fff8ec; }
.organizer-registration-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.organizer-registration-card { padding: 1.1rem; border: 1px solid #c8d7df; border-radius: 1rem; background: #fff; }
.registration-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.registration-card-heading h3, .registration-card-heading p { margin: 0 0 0.3rem; }
.registration-pseudonym { font-size: 0.95rem; font-weight: 500; color: #526574; }
.status-badge { display: inline-flex; padding: 0.35rem 0.65rem; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.status-badge.confirmed { color: #17603b; background: #dff4e9; }
.status-badge.pending { color: #7a4a00; background: #fff0cd; }
.status-badge.waitlisted { color: #345777; background: #e3eef8; }
.status-badge.inactive { color: #6b3540; background: #f8e5e8; }
.registration-metadata, .registration-answer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0 0; }
.registration-metadata div, .registration-answer-list div { min-width: 0; }
.registration-metadata dt, .registration-answer-list dt { font-weight: 700; }
.registration-metadata dd, .registration-answer-list dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.registration-details { margin-top: 1rem; }
.registration-details summary { cursor: pointer; font-weight: 700; color: #1f667a; }
.companion-summary { margin-top: 1rem; padding: 0.8rem; border-radius: 0.7rem; background: #f5f8fa; }
.companion-summary h4, .companion-summary p { margin: 0 0 0.35rem; }
.registration-actions { margin-top: 1rem; }
.registration-decision-dialog { width: min(42rem, calc(100vw - 2rem)); }
.attendance-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.attendance-heading h2, .attendance-heading p { margin: 0 0 0.4rem; }
.qr-scanner-dialog { width: min(36rem, calc(100vw - 2rem)); }
.qr-video-frame { position: relative; display: grid; place-items: center; min-height: 18rem; overflow: hidden; border: 0.25rem solid #1f667a; border-radius: 1rem; background: #0d1f2f; color: #fff; }
.qr-video-frame video { display: block; width: 100%; max-height: 65vh; object-fit: cover; }
.qr-video-frame p { position: absolute; margin: 0; padding: 0.6rem 0.9rem; border-radius: 0.5rem; background: rgba(13, 31, 47, 0.85); }
.attendance-summary { margin: 1rem 0; padding: 1.15rem; border-left: 0.35rem solid #267b88; border-radius: 0.75rem; background: #eaf3f6; }
.attendance-summary h3, .attendance-summary p { margin: 0.35rem 0; }
.onsite-registration { margin: 1.25rem 0; padding: 1rem; border: 1px solid #c8d7df; border-radius: 0.85rem; background: #f7fafb; }
.onsite-registration summary { cursor: pointer; color: #1f667a; font-weight: 800; }
.onsite-registration form { margin-top: 1rem; }
.attendance-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.attendance-search { max-width: 42rem; }
.attendance-list { display: grid; gap: 0.85rem; padding: 0; list-style: none; }
.attendance-card { padding: 1rem; border: 1px solid #c8d7df; border-radius: 1rem; background: #fff; }
.attendance-person { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.attendance-person h3, .attendance-person p { margin: 0 0 0.3rem; }
.attendance-audit { margin: 0.75rem 0 0; color: #526574; font-size: 0.95rem; }
.attendance-answers { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.85rem 0 0; }
.attendance-answers > div { padding: 0.55rem 0.7rem; border: 1px solid #c8d7df; border-radius: 0.7rem; background: #f5f8fa; }
.attendance-answers dt { font-size: 0.85rem; font-weight: 700; color: #526574; }
.attendance-answers dd { margin: 0.15rem 0 0; font-weight: 700; }
.attendance-visibility-label { display: inline-flex; width: fit-content; padding: 0.25rem 0.5rem; border-radius: 999px; color: #345777; background: #e3eef8; font-weight: 700; }
.attendance-actions { margin-top: 0.9rem; }
.attendance-actions [aria-pressed="true"] { border-color: #1f667a; color: #fff; background: #1f667a; }
.attendance-actions .attendance-present[aria-pressed="true"] { border-color: #17603b; background: #17603b; }
.public-event-metrics { margin: 1.5rem 0; }
.event-metrics-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.event-metrics-list > div { padding: 0.9rem; border: 1px solid #cbd9e0; border-radius: 0.8rem; background: #f7fafb; }
.event-metrics-list dt { font-weight: 700; color: #526574; }
.event-metrics-list dd { margin: 0.35rem 0 0; font-size: 1.15rem; font-weight: 700; }

.preview-fixed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.preview-fixed label, .preview-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.preview-field > label { display: flex; gap: 0.5rem; align-items: center; }
.preview-field small { color: #526574; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#blazor-error-ui a { color: #fff; font-weight: 700; }

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.55rem;
    right: 0.7rem;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-event-image { display: block; max-width: 100%; max-height: 28rem; object-fit: contain; margin: 1rem 0; }
.admin-event-counts { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.admin-event-counts th, .admin-event-counts td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #c8d7df; }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d8e1e7;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #326477;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    text-align: center;
    font-weight: 700;
}

.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Chargement"); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 48rem) {
    .space-grid, .field-grid, .history-comparison, .preview-fixed, .registration-counts, .organizer-metrics, .attendance-metrics, .registration-metadata, .registration-answer-list, .event-metrics-list, .participant-registration-facts { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .actions { flex-direction: column; align-items: stretch; }
    .page-heading { flex-direction: column; }
    .event-list-heading { align-items: stretch; }
    .dashboard-events-heading { flex-direction: column; align-items: stretch; }
    .registration-link-row { grid-template-columns: 1fr; }
    .form-block-toolbar, .form-block-heading { flex-direction: column; align-items: stretch; }
    .registration-card-heading { flex-direction: column; }
    .participant-registration-heading { flex-direction: column; }
    .participant-qr-card { grid-template-columns: 1fr; }
    .participant-qr-image { justify-self: center; }
    .attendance-heading { flex-direction: column; }
    .catalog-filters, .catalog-grid, .catalog-card-facts { grid-template-columns: 1fr; }
    .catalog-card-heading, .catalog-pagination { flex-direction: column; align-items: stretch; }
    .attendance-person { flex-direction: column; }
    .option-row { grid-template-columns: 1fr; }
    .event-summary-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

.communications-panel { width: min(100%, 76rem); }
.communication-tabs { margin: 1.5rem 0 2rem; }
.email-template-editor { margin: 1.5rem 0; padding: clamp(1rem, 3vw, 2rem); border: 2px solid #a9bdc8; border-radius: 1rem; background: #f7fafb; }
.email-template-editor h3 { margin-top: 0; }
.email-functional-action { margin: 1rem 0; padding: 1rem; border: 1px dashed #1c5b6c; border-radius: 0.5rem; background: #eaf3f6; }
.email-functional-action p { margin-bottom: 0; }
.email-logo-editor { min-width: 0; margin: 1.5rem 0; padding: 1rem; border: 1px solid #c8d7df; border-radius: 0.75rem; background: #fff; }
.email-logo-editor legend { padding: 0 0.35rem; font-weight: 700; }
.email-logo-preview { display: block; max-width: min(100%, 16rem); max-height: 10rem; width: auto; height: auto; margin: 0.75rem 0; object-fit: contain; }
.email-fixed-footer { margin-top: 1.5rem; }
.email-fixed-footer summary { cursor: pointer; font-weight: 700; }
.communication-recipients { margin-top: 2rem; }
.communication-people-table { overflow-x: auto; }
.email-preview-dialog { width: min(64rem, calc(100% - 2rem)); max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); padding: clamp(1rem, 3vw, 2rem); border: 1px solid #a8bac7; border-radius: 1rem; background: #fff; color: #17354d; overflow: auto; }
.email-preview-dialog::backdrop { background: rgba(10, 27, 43, 0.7); }
.email-preview-dialog-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.email-preview-dialog-heading h2 { margin: 0; }
.email-preview-frame { display: block; width: 100%; height: min(65dvh, 44rem); min-height: 20rem; border: 1px solid #a8bac7; background: #f3f6f8; }

.password-control { position: relative; }
.field .password-control > input { padding-inline-end: 3.25rem; }
.password-eye {
    position: absolute;
    inset-inline-end: 0.3rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #38546a;
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    cursor: pointer;
}
.password-eye:hover { background: #edf2f5; }
.password-eye svg { width: 1.25rem; height: 1.25rem; }
.password-eye-slash { display: none; }
.password-control[data-visible="true"] .password-eye-slash { display: block; }
.password-control input::-ms-reveal { display: none; }
.password-rules {
    margin-block: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-inline-start: 2px solid #8fa9bd;
    background: #f7fafc;
    font-size: 0.9rem;
}
.password-rules p { margin: 0 0 0.25rem; font-weight: 650; }
.password-rules ul { margin: 0; padding: 0; list-style: none; }
.password-rule-met { color: #1f6535; }
.password-rule-pending { color: #a22a32; }
