/* Shared auth popup – login/signup in-place on any page */
.sitemap-icon { display: inline-block; margin-right: 8px; }
#auth-popup-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 72px);
    bottom: var(--footer-height, 80px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
    isolation: isolate;
    background: transparent;
}
/* No darkness behind auth popup – transparent so page stays visible */
#auth-popup-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 0;
    z-index: -1;
    pointer-events: none;
}
#auth-popup-overlay.open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: authOverlayFadeIn 0.3s ease;
}

/* Auth gate boot: core content (placards) hidden until we finish checking; header stays visible during "Checking records" */
html.gate-boot .container,
html.gate-boot .site-shell-content,
html.gate-boot main.page-content,
html.gate-boot .page-content,
html.gate-boot .container.page-content {
    display: none !important;
}
html.gate-boot #site-footer-placeholder {
    display: none !important;
}
html.auth-gate-boot .site-shell-content,
html.auth-gate-boot main.page-content,
html.auth-gate-boot .page-content,
html.auth-gate-boot .container.page-content {
    display: none !important;
}
html.auth-gate-boot #site-footer-placeholder {
    display: none !important;
}
html.auth-gate-boot #auth-popup-overlay,
html.auth-gate-boot #auth-popup-overlay *,
html.auth-gate-boot #checking-records-overlay,
html.auth-gate-boot #checking-records-overlay * {
    visibility: visible !important;
}
/* Enter Your Email / Let's Get Started banner – hidden (removed per request) */
#auth-please-login-banner { display: none !important; }
#auth-popup-overlay {
    position: relative; /* Container for absolute positioning */
}
#auth-popup {
    position: relative; /* Reference for banner positioning */
}
#auth-please-login-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    position: fixed;
    /* Position banner 15px ABOVE the auth popup card */
    /* Auth popup is at top: 50%, transform: translate(-50%, -50%) */
    /* Popup is ~360px tall, so popup top is at calc(50vh - 180px) */
    /* Banner should be 15px above popup top = calc(50vh - 180px - 15px - banner height ~50px) */
    top: calc(50vh - 245px); /* 15px above popup top */
    left: 50%;
    transform: translate(-50%, -100%); /* Center horizontally, position above */
    margin-bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    animation: pleaseLoginBannerIn 0.5s ease-out;
    white-space: nowrap;
    z-index: calc(var(--z-modal) + 1); /* Above auth popup */
}
#auth-please-login-banner.show { display: flex !important; }
/* Always show banner when auth popup is open */
#auth-popup-overlay.open #auth-please-login-banner {
    display: flex !important;
}
/* Mobile: adjust banner position when modal is moved down 50px */
@media (max-width: 767px) {
    #auth-popup-overlay.open #auth-please-login-banner {
        top: calc(50vh + 50px - 245px); /* Account for modal being moved down 50px */
    }
}
#auth-please-login-banner .star {
    display: inline-block;
    animation: starTwinkle 1.2s ease-in-out infinite;
}
#auth-please-login-banner .star:nth-child(1) { animation-delay: 0s; }
#auth-please-login-banner .star:nth-child(2) { animation-delay: 0.2s; }
#auth-please-login-banner .star:nth-child(4) { animation-delay: 0.4s; }
#auth-please-login-banner .star:nth-child(5) { animation-delay: 0.6s; }
@keyframes pleaseLoginBannerIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
@keyframes bannerShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
#auth-please-login-banner.shake { animation: bannerShake 0.5s ease-in-out; }
/* When user engages (focus/type), banner dismisses with a fun "you got this" animation */
@keyframes bannerEngagedOut {
    0% { opacity: 1; transform: translate(-50%, -100%); }
    35% { transform: translate(-50%, -100%) scale(1.08); }
    100% { opacity: 0; transform: translate(-50%, -100%) translateY(-18px) scale(1.05); visibility: hidden; }
}
#auth-please-login-banner.engaged {
    animation: bannerEngagedOut 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    pointer-events: none;
}
#auth-please-login-banner { cursor: pointer; }
@keyframes authOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#auth-popup-overlay.open #auth-popup {
    animation: authPopupPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authPopupPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92) translateY(-8px); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); }
}
/* Auth gate: show REAL starfield behind the email card (no forced dark + no gray tint) */
body.auth-gate-mode #auth-popup-overlay {
    top: var(--header-height, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--footer-height, 80px) !important;
    z-index: var(--z-modal) !important;
    background: transparent;
}
body.auth-gate-mode #auth-popup-overlay::before {
    background: rgba(255,255,255,0.002);
}
body.night-mode.auth-gate-mode #auth-popup-overlay::before { background: rgba(0,0,0,0.002); }
body.auth-gate-mode #auth-popup-overlay.open { display: flex; }
body.auth-gate-mode #auth-popup-close { display: none; }
body.auth-gate-mode #notion-container { display: none !important; }
/* Starfield stays visible behind popup – overlay uses light blur so it shows through */
/* Gate: keep header/footer visible + clickable; only hide account surfaces while guest */
body.auth-gate-mode .header-account #user-info,
body.auth-gate-mode .btn-account,
body.auth-gate-mode .btn-mobile-account { display: none !important; }
body.auth-gate-mode .top-header { z-index: var(--z-header) !important; }
body.auth-gate-mode .mobile-top-actions { z-index: var(--z-header) !important; }
body.auth-gate-mode .activity-feed { z-index: var(--z-popover) !important; }
body.auth-gate-mode .footer-wrapper,
body.auth-gate-mode #site-footer-placeholder { z-index: var(--z-header) !important; visibility: visible !important; display: flex !important; opacity: 1 !important; }
body.auth-gate-mode #site-footer-placeholder { display: block !important; min-height: 80px !important; }

/* Keep the black separator lines crisp (night mode flips to white) */
body.auth-gate-mode .top-header { border-bottom: 2px solid #000 !important; }
body.auth-gate-mode .footer-toggle-bar,
body.auth-gate-mode .footer-main-row { border-top: 2px solid #000 !important; }
body.auth-gate-mode.night-mode .top-header { border-bottom-color: #fff !important; }
body.auth-gate-mode.night-mode .footer-toggle-bar,
body.auth-gate-mode.night-mode .footer-main-row { border-top-color: #fff !important; }
/* Home page: non-gate popup tweak only (keep gate layout consistent) */
body.page-3d:not(.auth-gate-mode) #auth-popup-overlay {
    top: var(--header-height, 72px) !important;
    bottom: var(--footer-height, 80px) !important;
}
body.page-3d:not(.auth-gate-mode) #auth-popup-overlay::before {
    background: transparent;
}
/* Passphrase overlay – real modal: full viewport, blur, centered, high z-index */
#passphrase-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#passphrase-overlay.open,
#passphrase-overlay[style*="flex"] { display: flex !important; }
#passphrase-overlay .auth-popup {
    width: min(520px, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 14px;
    padding: 22px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
#passphrase-overlay .btn-cancel {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #000;
    cursor: pointer;
    margin-right: 10px;
}
#passphrase-overlay .btn-cancel:hover { background: #f0f0f0; }
body.night-mode #passphrase-overlay .btn-cancel { background: #222; color: #fff; border-color: #fff; }
body.night-mode #passphrase-overlay .btn-cancel:hover { background: #333; }
#passphrase-overlay .passphrase-forgot-link {
    background: none;
    border: none;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
#passphrase-overlay .passphrase-forgot-link:hover { background: #000; color: #fff; }
body.night-mode #passphrase-overlay .auth-popup {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.night-mode #passphrase-overlay .passphrase-forgot-link { color: #fff; }
body.night-mode #passphrase-overlay .passphrase-forgot-link:hover { background: #333; color: #fff; }

#forgot-passphrase-confirm-overlay {
    position: fixed;
    top: var(--header-height, 72px);
    left: 0;
    right: 0;
    bottom: var(--footer-height, 80px);
    background: transparent;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
#forgot-passphrase-confirm-overlay.open,
#forgot-passphrase-confirm-overlay[style*="flex"] { display: flex !important; }
.forgot-passphrase-confirm-popup {
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    border: 2px solid #000;
}
.forgot-passphrase-confirm-popup h3 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 700; color: #000; padding-right: 32px; }
.forgot-confirm-message { color: #000; font-size: 14px; margin-bottom: 12px; line-height: 1.4; }
.forgot-confirm-warning {
    color: #000;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #f5f5f5;
    border: 2px solid #000;
    border-radius: 8px;
}
.forgot-confirm-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.forgot-confirm-cancel {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.forgot-confirm-cancel:hover { background: #000; color: #fff; }
.forgot-passphrase-confirm-popup .btn-submit { width: auto; margin-top: 0; padding: 10px 20px; background: #000; color: #fff; border: 2px solid #000; }
.forgot-passphrase-confirm-popup .btn-submit:hover { background: #333; color: #fff; border-color: #333; }
.auth-popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.auth-popup-close-btn:hover { color: #000; }
/* Center popup in overlay band (flex child so it sits between header and footer, zoom-proof) */
#auth-popup-overlay.open #auth-popup {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 auto !important;
}
#auth-popup {
    background: #fff;
    color: #000;
    border-radius: 8px;
    /* width + height that respect header/footer + zoom */
    width: min(360px, calc(100vw - 40px));
    max-height: calc(100dvh - var(--header-height, 72px) - var(--footer-height, 80px) - 40px);
    overflow: auto;
    padding: clamp(16px, 3vw, 28px);
    position: relative;
    border: 2px solid #000 !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Safety: ensure no other stylesheet can push auth overlay off the dynamic header/footer band */
#auth-popup-overlay {
    top: var(--header-height, 72px) !important;
    bottom: var(--footer-height, 80px) !important;
}
#auth-popup * { color: inherit; }

/* Night mode: invert auth popup (site-wide, overrides inline styles) */
body.night-mode #auth-popup {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 4px 0 rgba(255,255,255,0.08), 0 10px 28px rgba(0,0,0,0.6) !important;
}
body.night-mode #auth-popup h3 { color: #fff !important; }
body.night-mode #auth-popup p,
body.night-mode #auth-popup label,
body.night-mode #auth-popup .auth-step > p:first-of-type {
    color: rgba(255,255,255,0.82) !important;
}
body.night-mode #auth-popup .auth-what-you-get {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.35) !important;
    color: #fff !important;
}
body.night-mode #auth-popup input {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.night-mode #auth-popup input::placeholder { color: rgba(255,255,255,0.55) !important; }
body.night-mode #auth-popup input:focus { border-color: #fff !important; box-shadow: 0 0 0 3px rgba(255,255,255,0.14) !important; }
body.night-mode #auth-popup .btn-submit {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.night-mode #auth-popup .btn-submit:hover { background: #111 !important; border-color: #fff !important; }
body.night-mode #auth-popup-close,
body.night-mode .auth-popup-close-btn { color: rgba(255,255,255,0.75) !important; }
body.night-mode #auth-popup-close:hover,
body.night-mode .auth-popup-close-btn:hover { color: #fff !important; }
body.night-mode #auth-popup-error { color: #ff6b6b !important; }

/* Night mode: header controls (landing + shared header) */
body.night-mode .btn-sfx-mute,
body.night-mode #sfx-mute-btn,
body.night-mode .header-theme-toggle,
body.night-mode #theme-toggle-btn {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.night-mode .btn-sfx-mute:hover,
body.night-mode #sfx-mute-btn:hover,
body.night-mode .header-theme-toggle:hover,
body.night-mode #theme-toggle-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}
#auth-popup h3 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; }
#auth-popup .auth-step > p:first-of-type { margin-bottom: 16px; line-height: 1.45; }
/* Reusable “What you get” info box – blue info-box styling */
.auth-what-you-get {
    line-height: 1.4;
    background: #e8f4fd;
    border: 1px solid #b8d9f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #111;
}
/* Code step: Resend (disabled) and Change email buttons – aligned row */
.auth-resend-btn {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 2px solid #999;
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-resend-btn:not(:disabled) {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: pointer;
}
.auth-resend-btn:not(:disabled):hover { background: #e8e8e8; border-color: #000; }
.auth-btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-btn-secondary:hover { background: #e8e8e8; }
.auth-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}
body.night-mode .auth-btn-secondary {
    background: #000;
    color: #fff;
    border-color: #fff;
}
body.night-mode .auth-btn-secondary:hover { background: #333; color: #fff; border-color: #fff; }
body.night-mode .auth-resend-btn:not(:disabled) { background: #000; color: #fff; border-color: #fff; }
body.night-mode .auth-resend-btn:not(:disabled):hover { background: #333; color: #fff; border-color: #fff; }
#auth-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
#auth-popup-close:hover { color: #000; }
#auth-popup input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#auth-popup input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}
#auth-popup .btn-submit {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, border-color 0.2s;
}
#auth-popup .btn-submit:hover { background: #e8e8e8; border-color: #000; }
.auth-forgot-passphrase-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-forgot-passphrase-link:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000;
}
body.night-mode .auth-forgot-passphrase-link {
    background: #000;
    color: #fff;
    border-color: #fff;
}
body.night-mode .auth-forgot-passphrase-link:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff;
}
.btn-link-style {
    background: none;
    border: none;
    color: #666;
}
body.night-mode .btn-link-style {
    color: #fff !important;
}
.auth-context-imp-exp-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.auth-context-imp-exp-btn:hover { background: #000; color: #fff; }
.auth-step { display: block; }
#auth-captcha-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}
.auth-captcha-btn {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    padding: 0;
    font-size: 2.25rem;
    line-height: 1;
    border: 2px solid #000;
    border-radius: 10px;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-captcha-btn:hover { background: #f0f0f0; border-color: #333; }
.auth-captcha-btn.captcha-selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
.auth-captcha-btn.captcha-selected:hover { background: #333 !important; border-color: #333 !important; }
.auth-captcha-btn { position: relative; }
.auth-captcha-btn.captcha-order-1::after,
.auth-captcha-btn.captcha-order-2::after,
.auth-captcha-btn.captcha-order-3::after {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffd700;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-captcha-btn.captcha-order-1::after { content: '1'; }
.auth-captcha-btn.captcha-order-2::after { content: '2'; }
.auth-captcha-btn.captcha-order-3::after { content: '3'; }
#auth-captcha-selected {
    font-size: 1.5rem;
    margin-bottom: 14px;
    min-height: 36px;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .auth-captcha-btn { width: 72px; height: 72px; min-width: 72px; min-height: 72px; font-size: 2rem; }
    #auth-captcha-selected { font-size: 1.25rem; }
}
@media (max-width: 767px) {
    /* Mobile: use the SAME header/footer band as desktop – no full-screen or magic numbers */
    #auth-popup-overlay {
        top: var(--header-height, 72px) !important;
        bottom: var(--footer-height, 80px) !important;
        left: 0 !important;
        right: 0 !important;
    }
    #forgot-passphrase-confirm-overlay {
        top: var(--header-height, 72px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: var(--footer-height, 80px) !important;
    }
    #auth-popup-overlay.open { display: flex !important; opacity: 1 !important; }
    #auth-popup-overlay.open #auth-popup { transform: none !important; }

    /* Auth gate on mobile: still same band; no 156px / 110px offsets */
    body.auth-gate-mode #auth-popup-overlay {
        top: var(--header-height, 72px) !important;
        bottom: var(--footer-height, 80px) !important;
        left: 0 !important;
        right: 0 !important;
        z-index: var(--z-modal) !important;
        background: transparent;
    }
    body.auth-gate-mode #auth-popup-overlay::before {
        background: rgba(255,255,255,0.002);
    }
    body.auth-gate-mode #auth-popup-overlay.open { display: flex !important; opacity: 1 !important; }
    body.auth-gate-mode #auth-popup { max-height: 80vh !important; overflow-y: auto !important; }
    /* No vertical nudge – flex centering keeps "Enter Your Email" aligned with "Checking records" band */
    body.auth-gate-mode #auth-popup-overlay.open #auth-popup {
        transform: none !important;
    }
    body.auth-gate-mode #checking-records-overlay:not(.hidden) { z-index: var(--z-toast) !important; display: flex !important; }
}

/* Checking records – topmost layer; square placard in front of starfield. Shown first before "Enter email" or content. */
#checking-records-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    min-width: 240px;
    min-height: 240px;
    max-width: 320px;
    padding: 24px 32px;
    margin: 0;
    right: auto;
    bottom: auto;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: opacity 0.35s ease;
}
#checking-records-overlay.hiding { opacity: 0; pointer-events: none; }
#checking-records-overlay.hidden { display: none !important; }
#checking-records-overlay .checking-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: checkingSpin 0.8s linear infinite;
}
body.night-mode #checking-records-overlay {
    background: #000 !important;
    color: #fff !important;
}
body.night-mode #checking-records-overlay .checking-spinner {
    border-color: rgba(255,255,255,0.2) !important;
    border-top-color: #fff !important;
}
@keyframes checkingSpin {
    to { transform: rotate(360deg); }
}
