/* Lock-screen styles recovered from the owner homepage; see lockscreen-provenance.json. */
        .auth-shell {
            position: fixed;
            inset: 0;
            z-index: 60;
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(4, 9, 21, 0.04), rgba(4, 9, 21, 0.18)),
                transparent;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 360ms ease, visibility 360ms ease;
            touch-action: none;
            --lock-shell-height: 100vh;
        }

        body.is-auth-pending .auth-shell,
        body.is-auth-locked .auth-shell {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .auth-shell.is-auth-complete {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .auth-shell.is-dragging .lock-viewport,
        .auth-shell.is-dragging .lock-stage,
        .auth-shell.is-dragging .pin-panel {
            transition: none !important;
        }

        .lock-viewport {
            position: absolute;
            inset: 0;
            overflow: hidden;
            transform: translate3d(0, 0, 0);
            transition: transform 820ms cubic-bezier(0.16, 0.84, 0.22, 1);
            will-change: transform;
        }

        .auth-shell.is-unlocking .lock-viewport {
            transform: translate3d(0, -100%, 0);
        }

        .lock-stage {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: calc(var(--lock-shell-height) * 2);
            transform: translate3d(0, 0, 0);
            transition: transform 560ms cubic-bezier(0.22, 0.86, 0.24, 1);
            will-change: transform;
        }

        .lockscreen-panel,
        .pin-panel {
            position: relative;
            height: var(--lock-shell-height);
            padding:
                calc(34px + env(safe-area-inset-top, 0px))
                28px
                calc(30px + env(safe-area-inset-bottom, 0px));
            display: flex;
            flex-direction: column;
        }

        .lockscreen-panel {
            justify-content: space-between;
            background:
                radial-gradient(circle at 78% 22%, rgba(255, 235, 251, 0.18), transparent 28%),
                radial-gradient(circle at 18% 76%, rgba(124, 133, 255, 0.18), transparent 26%),
                linear-gradient(180deg, rgba(4, 7, 18, 0.18), rgba(4, 7, 18, 0.42));
        }

        .lockscreen-meta {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .lockscreen-brand {
            font-size: 0.9rem;
            letter-spacing: 0.14em;
            color: rgba(237, 243, 255, 0.72);
        }

        .lockscreen-clock {
            font-size: clamp(4rem, 15vw, 6.6rem);
            line-height: 0.94;
            font-weight: 200;
            letter-spacing: -0.05em;
            color: rgba(255, 255, 255, 0.96);
            text-shadow: 0 18px 40px rgba(4, 8, 20, 0.2);
        }

        .lockscreen-date {
            font-size: clamp(1.02rem, 3.8vw, 1.28rem);
            color: rgba(230, 237, 248, 0.82);
            letter-spacing: 0.04em;
        }

        .lockscreen-title {
            font-size: clamp(1.34rem, 4vw, 1.84rem);
            color: rgba(255, 255, 255, 0.9);
            letter-spacing: 0.08em;
        }

        .lockscreen-unlock {
            align-self: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            background: none;
            color: transparent;
            font-size: 0;
            line-height: 0;
            cursor: pointer;
            transition: opacity 240ms ease, transform 240ms ease;
        }

        .auth-shell.is-half-open .lockscreen-unlock {
            opacity: 0;
            transform: translateY(-16px);
            pointer-events: none;
        }

        .lockscreen-unlock::before {
            content: "";
            width: 20px;
            height: 20px;
            border-left: 2px solid rgba(255, 255, 255, 0.72);
            border-top: 2px solid rgba(255, 255, 255, 0.72);
            transform: rotate(45deg);
            margin-bottom: -6px;
            animation: lockscreenArrow 1.8s ease-in-out infinite;
        }

        .lockscreen-switch {
            position: absolute;
            top: calc(18px + env(safe-area-inset-top, 0px));
            right: calc(18px + env(safe-area-inset-right, 0px));
            padding: 4px 8px;
            border: 0;
            background: transparent;
            color: rgba(244, 248, 255, 0.5);
            font-size: 0.74rem;
            letter-spacing: 0.12em;
            cursor: pointer;
            opacity: 0.82;
            transition: color 160ms ease, opacity 160ms ease;
        }

        .lockscreen-switch:hover {
            color: rgba(255, 255, 255, 0.82);
            opacity: 1;
        }

        @keyframes lockscreenArrow {
            0%, 100% {
                transform: translateY(0) rotate(45deg);
                opacity: 0.7;
            }
            50% {
                transform: translateY(-8px) rotate(45deg);
                opacity: 1;
            }
        }

        .pin-panel {
            justify-content: flex-start;
            align-items: center;
            padding-top: calc(16px + env(safe-area-inset-top, 0px));
            background:
                linear-gradient(180deg, rgba(5, 7, 17, 0.94), rgba(3, 5, 12, 0.98));
            pointer-events: none;
            transition: opacity 260ms ease;
        }

        .auth-shell.mode-auth .pin-panel {
            pointer-events: auto;
        }

        .auth-shell.mode-soft .pin-panel {
            opacity: 0;
        }

        .pin-surface {
            width: min(360px, 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-top: 0;
        }

        .pin-header {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: rgba(242, 246, 255, 0.88);
            min-height: 28px;
        }

        .pin-back {
            border: 0;
            background: none;
            color: rgba(242, 246, 255, 0.88);
            font-size: 0.92rem;
            letter-spacing: 0.08em;
            cursor: pointer;
        }

        .pin-title {
            font-size: 0.92rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: rgba(245, 248, 255, 0.78);
        }

        .pin-display {
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: center;
            min-height: 16px;
        }

        .pin-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.38);
            background: rgba(255, 255, 255, 0.08);
            transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
        }

        .pin-dot.is-filled {
            background: rgba(245, 248, 255, 0.96);
            border-color: rgba(245, 248, 255, 0.96);
            transform: scale(1.06);
        }

        .pin-status {
            min-height: 18px;
            font-size: 0.84rem;
            color: rgba(244, 186, 186, 0.92);
            text-align: center;
        }

        .pin-keypad {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 0;
        }

        .pin-key {
            height: clamp(58px, 8vh, 76px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
                rgba(0, 0, 0, 0.52);
            color: rgba(248, 250, 255, 0.96);
            font-size: 1.6rem;
            font-weight: 300;
            cursor: pointer;
            transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
        }

        .pin-key:hover {
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, 0.22);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
                rgba(0, 0, 0, 0.58);
        }

        .pin-key:active {
            transform: scale(0.98);
        }

        .pin-key--ghost {
            border-color: transparent;
            background: transparent;
            cursor: default;
        }

        .pin-key--ghost:hover,
        .pin-key--ghost:active {
            transform: none;
            background: transparent;
            border-color: transparent;
        }

        .pin-key--action {
            font-size: 0.88rem;
            letter-spacing: 0.08em;
        }

        .pin-panel.is-shaking .pin-surface {
            animation: pinShake 420ms ease;
        }

        @keyframes pinShake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-10px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(4px); }
        }


/* Browser companion integration; original transition curves are retained. */
#lockscreen { position: fixed; inset: 0; z-index: 1000; }
#lockscreen[hidden], .auth-shell[hidden] { display: none !important; }
.auth-shell { --lock-shell-height: 100dvh; background: #060914; }
.auth-shell *, .auth-shell *::before, .auth-shell *::after { box-sizing: border-box; }
.auth-shell button { font-family: inherit; }
.auth-shell button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.lockscreen-unlock { min-width: 64px; min-height: 64px; }
.pin-back, .lockscreen-switch { min-height: 44px; min-width: 44px; }
.pin-status { max-width: 100%; overflow-wrap: anywhere; }
.pin-key:disabled { opacity: .55; cursor: wait; }
.pin-key { text-align: center; height: clamp(44px, 7vh, 64px); }
.pin-key--ghost { pointer-events: none; }
.auth-shell [hidden] { display: none !important; }
.fireworks-login {
 width: 100%; min-height: 54px; padding: 12px 18px; margin-top: 18px;
 border: 1px solid rgba(255, 255, 255, .24); border-radius: 14px;
 background: rgba(255, 255, 255, .1); color: rgba(248, 250, 255, .96);
 font-size: 1rem; cursor: pointer;
}
.fireworks-login:hover { background: rgba(255, 255, 255, .16); }
.fireworks-login:disabled { opacity: .55; cursor: wait; }
.login-description { margin: 0; color: rgba(230, 237, 248, .72); font-size: .84rem; text-align: center; }
.login-secondary { min-height: 44px; padding: 4px 10px; border: 0; background: none; color: rgba(230, 237, 248, .72); font-size: .84rem; cursor: pointer; }
.login-secondary:disabled { opacity: .55; cursor: wait; }
.lockscreen-status { max-width: 420px; color: rgba(244, 186, 186, .92); font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 768px) {
 .lockscreen-panel { padding: calc(52px + env(safe-area-inset-top, 0px)) 22px calc(34px + env(safe-area-inset-bottom, 0px)); }
 .lockscreen-meta { gap: 8px; }
 .lockscreen-clock { font-size: clamp(4.5rem, 21vw, 6.4rem); }
 .pin-panel { padding: calc(8px + env(safe-area-inset-top, 0px)) 22px 12px; }
 .pin-surface { width: min(320px, 100%); gap: 10px; }
 .pin-key { height: clamp(44px, 7vh, 56px); font-size: 1.42rem; border-radius: 12px; }
}
@media (max-height: 700px) { .pin-surface { gap: 8px; } .pin-key { height: 48px; } }
@media (prefers-reduced-motion: reduce) {
 .auth-shell, .lock-viewport, .lock-stage, .pin-panel, .pin-key, .pin-dot { transition: none !important; }
 .lockscreen-unlock::before, .pin-panel.is-shaking .pin-surface { animation: none !important; }
}
