/* The idle screen lock (A009-05). Global, not scoped: the early class sits on <html>,
   before the page's own markup exists. */

/* A page loaded while its screen is locked is not drawn until the lock decides. */
html.screen-locked-early body > *:not(#idle-lock) {
    visibility: hidden;
}

.idle-lock {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.idle-lock[hidden] {
    display: none;
}

.idle-lock-card {
    width: min(380px, 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-3);
}

.idle-lock-form {
    display: grid;
    gap: 10px;
}

.idle-lock-title {
    margin: 0;
    font-size: 1.15rem;
}

.idle-lock-text {
    margin: 0 0 6px;
    color: var(--ink-3);
}

.idle-lock-label {
    font-weight: 500;
}

.idle-lock-error {
    min-height: 1.2em;
    margin: 0;
    color: var(--neg);
}

.idle-lock-signout {
    margin-top: 12px;
    text-align: center;
}

@media print {
    .idle-lock {
        display: none !important;
    }
}
