.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 36px));
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    transform: translateY(-8px);
    opacity: 0;
    animation: toast-in 180ms ease-out forwards;
}

.toast__message {
    margin: 0;
    line-height: 1.35;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.toast__close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 8px;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
}

.toast__close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

.toast--success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(240, 253, 244, 0.98);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(254, 242, 242, 0.98);
}

.toast--warning {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(255, 251, 235, 0.98);
}

.toast--info {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(239, 246, 255, 0.98);
}

.toast.is-leaving {
    animation: toast-out 140ms ease-in forwards;
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(-6px);
        opacity: 0;
    }
}

