#toast-root {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.cg-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

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

.cg-toast.is-leaving {
    transform: translateX(120%);
    opacity: 0;
}

.cg-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.cg-toast__body {
    flex: 1;
    min-width: 0;
}

.cg-toast__title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #0f172a;
}

.cg-toast__message {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    color: #475569;
}

.cg-toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.cg-toast__close:hover {
    background: #f1f5f9;
    color: #334155;
}

.cg-toast--success { border-left: 4px solid #16a34a; }
.cg-toast--success .cg-toast__icon { color: #16a34a; }
.cg-toast--success .cg-toast__title { color: #15803d; }

.cg-toast--error { border-left: 4px solid #dc2626; }
.cg-toast--error .cg-toast__icon { color: #dc2626; }
.cg-toast--error .cg-toast__title { color: #b91c1c; }

.cg-toast--warning { border-left: 4px solid #f59e0b; }
.cg-toast--warning .cg-toast__icon { color: #f59e0b; }
.cg-toast--warning .cg-toast__title { color: #b45309; }

.cg-toast--info { border-left: 4px solid #2b6fff; }
.cg-toast--info .cg-toast__icon { color: #2b6fff; }
.cg-toast--info .cg-toast__title { color: #1d4ed8; }

@media (max-width: 520px) {
    #toast-root {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
