/* moje.party brand palette, applied through Radzen's documented theming variables
   (https://blazor.radzen.com/docs/guides/theming/variables). Hue values are lifted
   directly from guest/src/style.css — that file stays the source of truth; this is
   a more "business/desktop" application of the same family (light neutral surface,
   not the phone-first cream), not a new palette. Anchors:
     --rz-base-100  = guest --color-bg      (#faf7f2)
     --rz-base-300  = guest --color-border  (#e7e0d6)
     --rz-base-600  = guest --color-muted   (#6f665d)
     --rz-base-900  = guest --color-text    (#2b2622)
     --rz-primary   = guest --color-accent  (#b5673a)
   The remaining base-* steps and primary/secondary shades are interpolated between
   those anchors to keep the same 50 (lightest) -> 900 (darkest) ramp Radzen expects. */
:root {
    --rz-base-50: #fffdf9;
    --rz-base-100: #faf7f2;
    --rz-base-200: #ede6d9;
    --rz-base-300: #e7e0d6;
    --rz-base-400: #d4c9ba;
    --rz-base-500: #b3a696;
    --rz-base-600: #6f665d;
    --rz-base-700: #554d44;
    --rz-base-800: #3a332c;
    --rz-base-900: #2b2622;
    --rz-base-light: var(--rz-base-100);
    --rz-base-lighter: #ffffff;
    --rz-base-dark: var(--rz-base-600);
    --rz-base-darker: var(--rz-base-900);
    --rz-base: var(--rz-base-200);

    --rz-primary: #b5673a;
    --rz-primary-light: #c98a5e;
    --rz-primary-lighter: rgba(181, 103, 58, 0.14);
    --rz-primary-dark: #96522e;
    --rz-primary-darker: #7a4324;
    --rz-on-primary-lighter: var(--rz-primary);

    /* No secondary accent is defined for /guest; this is a muted, desaturated
       companion to the primary rust-orange, used only where Radzen needs a
       distinct "secondary" (nothing in the app currently renders ButtonStyle.Secondary,
       but other components fall back to it internally). */
    --rz-secondary: #8a7c6d;
    --rz-secondary-light: #a6998a;
    --rz-secondary-lighter: rgba(138, 124, 109, 0.16);
    --rz-secondary-dark: #6f645a;
    --rz-secondary-darker: #574e46;
    --rz-on-secondary-lighter: var(--rz-secondary);

    /* The header bar is the panel's stand-in for /guest's dark top bar (guest itself has
       no literal header element to copy pixel-for-pixel — this is the closest equivalent
       in a screen that actually has navigation chrome), using the same near-black text
       tone guest already defines. */
    --rz-header-background-color: var(--rz-base-900);
    --rz-header-color: #ffffff;

    /* Radzen's material theme uppercases every button label by default. Too shouty for
       filter tabs like "Zdjęcia"/"Wideo" — turning it off is a one-line,
       theme-level fix (no per-component overrides needed). */
    --rz-text-button-text-transform: none;
}

/* Radzen material theme (v11.4.0) bug: ButtonStyle.Light in its Outlined and Text variants
   colors the label/border with --rz-base-200 — a pale tone that only reads on a *dark*
   surface (that's exactly how it's used correctly below, inside .rz-header). On our light
   page background this made "Web"/"Oryginał"/"Anuluj" etc. look disabled even though they
   were active. The Filled variant of the same ButtonStyle.Light already uses
   var(--rz-text-color) (see material.css) — align Outlined/Text with that instead of
   inventing a new color. */
.rz-button.rz-variant-outlined.rz-light.rz-shade-default {
    box-shadow: inset 0 0 0 var(--rz-border-width) var(--rz-base-400);
    color: var(--rz-text-color);
}

.rz-button.rz-variant-text.rz-light {
    color: var(--rz-text-color);
}

.rz-button.rz-variant-outlined.rz-light:not(.rz-state-disabled):hover,
.rz-button.rz-variant-outlined.rz-light:not(.rz-state-disabled):active,
.rz-button.rz-variant-text.rz-light:not(.rz-state-disabled):hover,
.rz-button.rz-variant-text.rz-light:not(.rz-state-disabled):active {
    background-color: rgba(43, 38, 34, 0.06);
}

/* The one place ButtonStyle.Light + Outlined is meant to sit on a dark surface: the
   "Wyloguj" button on the header bar. Restore the light-on-dark styling there. */
.rz-header .rz-button.rz-variant-outlined.rz-light,
.rz-header .rz-button.rz-variant-text.rz-light {
    color: #ffffff;
}

.rz-header .rz-button.rz-variant-outlined.rz-light {
    box-shadow: inset 0 0 0 var(--rz-border-width) rgba(255, 255, 255, 0.5);
}

.rz-header .rz-button.rz-variant-outlined.rz-light:not(.rz-state-disabled):hover,
.rz-header .rz-button.rz-variant-outlined.rz-light:not(.rz-state-disabled):active,
.rz-header .rz-button.rz-variant-text.rz-light:not(.rz-state-disabled):hover,
.rz-header .rz-button.rz-variant-text.rz-light:not(.rz-state-disabled):active {
    background-color: rgba(255, 255, 255, 0.12);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #2c2c2c;
    background: linear-gradient(180deg, #fdf6ec 0%, #f3e9f7 100%);
}

.placeholder h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.placeholder p {
    font-size: 1.1rem;
    color: #6b6b6b;
    margin: 0;
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.auth-card .field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.auth-card label {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.auth-card input {
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
}

.auth-card .rz-button {
    margin-top: 0.5rem;
}

.form-error {
    color: #b32121;
    font-size: 0.9rem;
    margin: 0;
}

.auth-subtitle {
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.confirm-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    background: var(--rz-primary-lighter);
    color: var(--rz-base-900);
    font-size: 0.9rem;
}

.confirm-banner .resend-confirmation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.publish-blocked {
    margin: 0.5rem 0 1rem;
}

.publish-blocked p {
    margin: 0 0 0.5rem;
}

.register-turnstile-hint {
    font-size: 0.85rem;
    color: #5a5a5a;
    margin: 0;
}

.resend-confirmation-message {
    font-size: 0.85rem;
    margin: 0;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    color: #2c2c2c;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: #6b6b6b;
}

.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab {
    padding: 0.5rem 0.9rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.tab-active {
    border-bottom-color: currentColor;
    font-weight: 600;
}

.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(43, 38, 34, 0.08);
    text-decoration: none;
    color: inherit;
}

.event-card-body {
    flex: 1;
    min-width: 0;
}

.event-card-monogram {
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

.monogram-0 { background: var(--rz-primary); }
.monogram-1 { background: var(--rz-primary-dark); }
.monogram-2 { background: var(--rz-primary-darker); }
.monogram-3 { background: var(--rz-secondary-dark); }

.event-card-title {
    overflow-wrap: anywhere;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
    background: #f0f0f0;
}

.bar {
    height: 0.4rem;
    border-radius: 0.2rem;
    background: #eee;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--rz-primary);
}

.event-card-bytes {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-top: 0.25rem;
}

.event-card-deadline {
    font-size: 0.8rem;
    color: var(--rz-base-600);
    margin-top: 0.15rem;
}

.event-card-deadline-warning {
    color: var(--rz-warning-darker);
    font-weight: 600;
}

.deadline-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.deadline-tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--rz-base-100);
    border: 1px solid var(--rz-base-300);
}

.deadline-tile-warning {
    background: var(--rz-warning-lighter);
    border: 1px solid var(--rz-warning);
}

.deadline-tile-label {
    font-size: 0.7rem;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    color: var(--rz-base-600);
}

.deadline-tile-warning .deadline-tile-label {
    color: var(--rz-warning-darker);
}

.deadline-tile-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rz-base-900);
}

.deadline-tile-warning .deadline-tile-value {
    color: var(--rz-warning-darker);
}

.deadline-tile-caption {
    font-size: 0.75rem;
    color: var(--rz-base-600);
}

.deadline-tile-warning .deadline-tile-caption {
    color: var(--rz-warning-darker);
}

.reveal-card {
    margin: 1rem 0;
}

.reveal-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.reveal-card-notice {
    margin: 0 0 1rem 0;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    background: #fffbe6;
    border: 1px solid #e6c200;
    color: #6b5900;
    font-size: 0.9rem;
}

.reveal-card-body {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1.5rem;
}

.reveal-card-info {
    flex: 1 1 260px;
    min-width: 0;
}

.reveal-card-field {
    margin-bottom: 0.5rem;
}

.reveal-card-label {
    display: block;
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-bottom: 0.15rem;
}

.reveal-card-field code {
    word-break: break-all;
}

.reveal-card-qr {
    flex: 0 0 auto;
    width: 160px;
}

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

/* Print sheet for the reveal card's QR (P-15): hides all chrome and page content
   except the event title and the QR code, so window.print() produces a clean
   title + QR page for the host to hand out or pin up. */
@media print {
    html,
    body,
    .rz-body,
    .page {
        background: #ffffff;
    }

    .rz-header,
    .no-print {
        display: none !important;
    }

    .page {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .page > a,
    .page > .form-error,
    .page > .event-card-meta,
    .page > p,
    .page > .rz-button,
    .page > .deadline-tiles {
        display: none;
    }

    .page h1 {
        text-align: center;
        font-size: 3rem;
        margin: 3rem 0 2rem;
        outline: none;
    }

    /* .reveal-card alone loses the specificity fight against Radzen's own
       .rz-card.rz-variant-filled { box-shadow: ... } (material.css) — two
       classes beat one, so the card kept its shadow/border-look on paper
       even with box-shadow/border set to none here. Match Radzen's own
       .rz-card compound selector to win on specificity, not source order. */
    .rz-card.reveal-card {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .reveal-card-title,
    .reveal-card-notice,
    .reveal-card-info {
        display: none;
    }

    .reveal-card-body {
        justify-content: center;
    }

    .reveal-card-qr {
        width: min(80vmin, 500px);
        margin: 0 auto;
    }

    @page {
        margin: 0;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

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

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

        .loading-progress circle:last-child {
            stroke: var(--rz-primary, #b5673a);
            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;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.page-wide {
    max-width: 1000px;
}

.file-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.file-filter {
    display: flex;
    gap: 0.4rem;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: #eef4fb;
}

.file-section {
    margin: 1.5rem 0;
}

.file-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rz-base-800);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.file-packaging {
    margin: 1rem 0;
}

.file-packaging-status {
    margin: 0;
    color: var(--rz-base-800);
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--rz-base-300);
    border-left: 3px solid var(--rz-primary);
    border-radius: 0.5rem;
    background: var(--rz-primary-lighter);
}

.package-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.package-row-label {
    min-width: 8rem;
    font-weight: 600;
    color: var(--rz-base-600);
}

.package-row-bottom {
    gap: 0.75rem;
}

.package-download-link {
    margin-left: auto;
}

.file-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rz-base-300);
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(43, 38, 34, 0.08);
    cursor: default;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.file-tile:hover {
    box-shadow: 0 4px 14px rgba(43, 38, 34, 0.14);
}

.file-tile.selected {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.file-tile-checkbox {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    width: 1.1rem;
    height: 1.1rem;
    z-index: 1;
}

.file-tile-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.file-tile-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    background: linear-gradient(180deg, var(--rz-base-100), var(--rz-base-200));
}

.file-tile-meta {
    padding: 0.5rem 0.6rem 0.25rem;
}

.file-tile-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rz-base-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-tile-size {
    margin-top: 0.1rem;
    font-size: 0.7rem;
    color: var(--rz-base-600);
}

.file-tile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.4rem 0.4rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--rz-base-200);
}

.file-tile-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.file-tile-actions-row .rz-button {
    flex: 1;
}

.file-tile-actions > .rz-button {
    width: 100%;
}

/* RadzenBody sets transform:translateZ(0), which turns it into the containing
   block for position:fixed descendants — without this override, the modal
   backdrop below would cover only the body area, not the whole viewport. */
.rz-body {
    transform: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    max-width: 360px;
    width: 100%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.app-header {
    padding: 0.5rem 1.5rem;
}

.app-header-brand {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.app-header-brand:hover,
.app-header-brand:focus-visible {
    color: rgba(255, 255, 255, 0.8);
}

.app-header-user {
    margin: 0;
    color: #ffffff;
}
.app-footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    text-align: left;
}

.contact-link {
    border: none;
    background: transparent;
    color: #6b6b6b;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem 0;
}

.contact-modal {
    max-width: 420px;
}

.contact-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
}

.contact-fields {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-fields .field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-fields label {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.contact-fields input,
.contact-fields select,
.contact-fields textarea {
    padding: 0.5rem 0.6rem;
    font: inherit;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
}

.contact-event {
    margin: 0;
    font-size: 0.9rem;
}

.contact-done {
    color: #2f7a3e;
    font-weight: 600;
}

.password-input {
    position: relative;
    display: flex;
}

.password-input input {
    flex: 1;
    min-width: 0;
    padding-right: 4.5rem;
}

.password-input input::-ms-reveal,
.password-input input::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 0.75rem;
    background: none;
    border: 0;
    color: var(--rz-primary);
    font-size: 0.85rem;
    cursor: pointer;
}
