/* Shared by both the landing page and the document pages. */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-sizing: border-box;
    padding: 20px 52px 20px 24px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    z-index: 2000;
    animation: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}
.toast-error { background: #7f1d1d; color: #fecaca; border: 1px solid #dc2626; }
.toast-success { background: #065f46; color: #a7f3d0; border: 1px solid #059669; }
.toast-info { background: #1e3a8a; color: #bfdbfe; border: 1px solid #3b82f6; }
.toast-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.toast-close:hover, .toast-close:focus-visible { background: rgba(255,255,255,.15); }
