#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2147483647;
    pointer-events: none;
    align-items: center;
}

/* toast */
.ux-toast {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;

    min-width: 320px;
    max-width: min(92vw, 520px);

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(24,24,27,0.9);
    color: #fff;

    box-shadow: 0 12px 40px rgba(0,0,0,0.25);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    font-size: 14px;

    opacity: 0;
    transform: translateY(16px) scale(0.96);
    animation: toast-in 200ms ease forwards;

    cursor: pointer;
}

/* header */
.ux-toast-header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 6px;
}

.ux-toast-title {
    font-size: 12px;
    opacity: 0.75;
}

.ux-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

/* body */
.ux-toast-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ring */
.ux-toast-ring-wrap {
    width: 34px;
    height: 34px;
    position: relative;
}

.ux-toast-ring {
    width: 34px;
    height: 34px;
    transform: rotate(-90deg);
}

.ux-toast-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 2.6;
}

.ux-toast-ring-progress {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;

    transition: stroke-dashoffset linear;
}

/* colors */
.ux-toast.success .ux-toast-ring-progress { stroke: #4ade80; }
.ux-toast.alert .ux-toast-ring-progress { stroke: #f87171; }
.ux-toast.warning .ux-toast-ring-progress { stroke: #fbbf24; }
.ux-toast.info .ux-toast-ring-progress { stroke: #60a5fa; }

/* message */
.ux-toast-message {
    line-height: 1.4;
}

/* animation */
@keyframes toast-in {
    0% { opacity: 0; transform: translateY(18px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ux-toast.hide {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: 180ms ease;
}

.ux-toast-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.9;
}

.ux-toast.success .ux-toast-header {
    border-bottom: 1px solid rgba(74,222,128,0.35);
}

.ux-toast.alert .ux-toast-header {
    border-bottom: 1px solid rgba(248,113,113,0.35);
}

.ux-toast.warning .ux-toast-header {
    border-bottom: 1px solid rgba(251,191,36,0.35);
}

.ux-toast.info .ux-toast-header {
    border-bottom: 1px solid rgba(96,165,250,0.35);
}