/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Hermes fatal-error bar (Slice 8 hardening): semantic tokens only, correct in light and dark.
   The framework hooks (#blazor-error-ui, .reload, .dismiss) are preserved. */

#blazor-error-ui[b-y0l1zpl1ql] {
    background-color: var(--hs-surface-raised);
    color: var(--hs-text-primary);
    border-top: 2px solid var(--hs-status-danger);
    bottom: 0;
    box-shadow: var(--hs-shadow-overlay);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 2.5rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}

    #blazor-error-ui .reload[b-y0l1zpl1ql] {
        margin-left: 0.5rem;
        color: var(--hs-accent);
        font-weight: 500;
    }

    #blazor-error-ui .reload:focus-visible[b-y0l1zpl1ql],
    #blazor-error-ui .dismiss:focus-visible[b-y0l1zpl1ql] {
        outline: 2px solid var(--hs-focus-ring);
        outline-offset: 2px;
        border-radius: var(--hs-radius-control, 0.5rem);
    }

    #blazor-error-ui .dismiss[b-y0l1zpl1ql] {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        border: 0;
        background: transparent;
        color: var(--hs-text-muted);
        cursor: pointer;
        font-size: 0.875rem;
        line-height: 1;
        padding: 0.25rem;
    }

    #blazor-error-ui .dismiss:hover[b-y0l1zpl1ql] {
        color: var(--hs-text-primary);
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Hermes reconnect dialog (Slice 8 hardening). The framework state classes and ids are preserved
   exactly; only the visual treatment is owned. All colors come from Hermes design tokens so light
   and dark resolve automatically, and the animation is optional decoration. */

.components-reconnect-first-attempt-visible[b-g09cr0iflv],
.components-reconnect-repeated-attempt-visible[b-g09cr0iflv],
.components-reconnect-failed-visible[b-g09cr0iflv],
.components-pause-visible[b-g09cr0iflv],
.components-resume-failed-visible[b-g09cr0iflv],
.components-rejoining-animation[b-g09cr0iflv] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-retrying[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-failed[b-g09cr0iflv],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-g09cr0iflv] {
    display: block;
}

#components-reconnect-modal[b-g09cr0iflv] {
    background-color: var(--hs-surface-raised);
    color: var(--hs-text-primary);
    width: 20rem;
    max-width: calc(100vw - 2rem);
    margin: 20vh auto;
    padding: 1.5rem;
    border: 1px solid var(--hs-border-default);
    border-radius: var(--hs-radius-panel);
    box-shadow: var(--hs-shadow-overlay);
    opacity: 0;
    animation: components-reconnect-modal-fade-out-b-g09cr0iflv 0.3s both;
}

    #components-reconnect-modal[open][b-g09cr0iflv] {
        animation: components-reconnect-modal-fade-in-b-g09cr0iflv 0.25s ease-out both;
    }

#components-reconnect-modal[b-g09cr0iflv]::backdrop {
    background-color: color-mix(in srgb, var(--hs-text-primary) 40%, transparent);
}

#components-reconnect-modal p[b-g09cr0iflv] {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--hs-text-secondary);
}

#components-reconnect-modal .components-reconnect-title[b-g09cr0iflv] {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hs-text-primary);
}

#components-reconnect-modal button[b-g09cr0iflv] {
    margin-top: 0.75rem;
    min-height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid var(--hs-border-control);
    border-radius: var(--hs-radius-control, 0.5rem);
    background-color: transparent;
    color: var(--hs-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-g09cr0iflv] {
    background-color: var(--hs-surface);
    color: var(--hs-text-primary);
}

#components-reconnect-modal button:focus-visible[b-g09cr0iflv] {
    outline: 2px solid var(--hs-focus-ring);
    outline-offset: 2px;
}

/* Static rejoining indicator: two quiet dots; the text carries the state. */
.components-rejoining-animation div[b-g09cr0iflv] {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.3rem;
    border-radius: 9999px;
    background-color: var(--hs-accent);
    animation: components-reconnect-dot-b-g09cr0iflv 1s ease-in-out infinite alternate;
}

@keyframes components-reconnect-modal-fade-in-b-g09cr0iflv {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fade-out-b-g09cr0iflv {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes components-reconnect-dot-b-g09cr0iflv {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 1;
    }
}

/* Reduced motion: no continuous animation; the state stays fully understandable from the copy. */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-g09cr0iflv],
    #components-reconnect-modal[open][b-g09cr0iflv],
    #components-reconnect-modal[b-g09cr0iflv]::backdrop,
    .components-rejoining-animation div[b-g09cr0iflv] {
        animation: none;
        transition: none;
    }

    #components-reconnect-modal[b-g09cr0iflv] {
        opacity: 1;
    }
}
/* /Components/Library/DocumentDetailsSheet.razor.rz.scp.css */
/* Modal bottom sheet for the mobile document dossier. Native <dialog> semantics; only the sheet
   presentation is styled here (tokens only, both themes). */
.hs-sheet[b-l5l21y2z0q] {
    margin: auto auto 0;
    width: 100%;
    max-width: 34rem;
    max-height: min(85dvh, 42rem);
    padding: 0;
    border: 1px solid var(--hs-border-default);
    border-bottom: none;
    border-radius: var(--hs-radius-panel) var(--hs-radius-panel) 0 0;
    background-color: var(--hs-surface-overlay);
    color: var(--hs-text-primary);
    box-shadow: var(--hs-shadow-overlay);
}

.hs-sheet[b-l5l21y2z0q]::backdrop {
    background-color: rgb(20 18 16 / 0.52);
}

.hs-sheet-head[b-l5l21y2z0q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--hs-border-subtle);
}

.hs-sheet-close[b-l5l21y2z0q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--hs-border-control);
    border-radius: var(--hs-radius-control);
    background-color: transparent;
    color: var(--hs-text-secondary);
}

.hs-sheet-close:hover[b-l5l21y2z0q] {
    background-color: var(--hs-surface-raised);
    color: var(--hs-text-primary);
}

.hs-sheet-body[b-l5l21y2z0q] {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(min(85dvh, 42rem) - 3.6rem);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}
