.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
}

.modal-card {
    background: #1e1e1eee;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 1rem 0 0;
}

.modal-card:has(.short-content) {
    width: 80%;
    height: fit-content;
    border-radius: 1rem;

}

.modal-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0004;
}

.modal-content {
    overflow: scroll;
    padding: 0 1rem;
    max-width: 52rem;
    text-align: left;
}

.modal-content h1 {
    font-size: 1.5rem;
    padding: 1rem 0;
}

.modal-content h2 {
    font-size: 1.2rem;
    padding: 0.5rem 0;
}

.modal-content h3 {
    font-size: 1rem;
    padding: 0.25rem 0;
}

.modal-content p {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    max-width: calc(100vw - 1rem);
    overflow: scroll;
}

.modal-content a {
    color: inherit;
}

.modal-content li {
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.modal-content table {
    border-spacing: 0;
    border-radius: 0.5rem;
    border: solid 1px #e4e4e4;
    overflow: hidden;
}

.modal-content td {
    font-size: 0.8rem;
    border: solid 1px #e4e4e488;
    padding: 0.25rem;
}

.hold-notify {
    color: red;
    font-weight: bold;
    animation: errorShake 1s linear 1;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

@keyframes wo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#waiting-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827AA;
    z-index: 9999;
}

#waiting-overlay .wo-card {
    min-width: 220px;
    max-width: 90vw;
    padding: 20px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px #0004;
    display: flex;
    gap: 14px;
    align-items: center;
}

#waiting-overlay .wo-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: rgba(59, 130, 246, 1);
    animation: wo-spin 1.0s linear infinite;
    flex-shrink: 0;
}

#waiting-overlay .wo-text {
    font: 500 14px/1.3 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji";
    color: #111827;
    animation: blink 1.5s ease-in-out infinite;
}

/* scroller */

::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    #waiting-overlay .wo-spinner {
        animation: none;
        border-top-color: #3b82f6;
    }
}

body:has(#waiting-overlay[aria-live]) {
    overflow: hidden;
}

.invisible,
.hidden {
    display: none!important;
}