/* Canonical TELEI transient notifications (TS-0023 / TS-0025). */
.flash-messages[data-telei-toast-seed] {
    display: none !important;
}

.telei-toast-stack {
    position: fixed;
    top: 82px;
    right: 24px;
    z-index: 2200;
    display: grid;
    align-content: start;
    gap: 10px;
    width: min(424px, calc(100vw - 24px));
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    overflow-x: hidden;
    /* A transparent shadow gutter prevents the scroll clip looking like a panel. */
    margin: -12px;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    pointer-events: none;
}

.telei-toast {
    --telei-toast-accent: #2f855a;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;
    width: auto;
    min-width: 0;
    min-height: 66px;
    flex-shrink: 0;
    padding: 13px 12px 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--telei-toast-accent);
    border-radius: 14px;
    background: #102f4a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.16);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.telei-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.telei-toast-success { --telei-toast-accent: #48bb78; }
.telei-toast-info { --telei-toast-accent: #63b3ed; }
.telei-toast-warning { --telei-toast-accent: #f6ad55; }
.telei-toast-error { --telei-toast-accent: #fc8181; }

.telei-toast-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--telei-toast-accent);
    color: #102a43;
    font-size: 17px;
    font-weight: 900;
}

.telei-toast-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.telei-toast-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.telei-toast-message {
    min-width: 0;
    color: #f2f7fb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.telei-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d9e2ec;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.telei-toast-close:hover,
.telei-toast-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .telei-toast { transition: none; }
}

@media (max-width: 760px) {
    .telei-toast-stack {
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 92px);
        max-height: calc(100dvh - 92px);
    }

    .telei-toast {
        grid-template-columns: 32px minmax(0, 1fr) 28px;
    }
}

@media (max-width: 600px) {
    .telei-toast-stack {
        top: 138px;
        max-height: calc(100vh - 154px);
        max-height: calc(100dvh - 154px);
    }
}
