#notify-root {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(340px, 42vw);
    pointer-events: none;
}

.rl-toast {
    --tone: var(--v-accent-hi);
    --tone-rgb: var(--v-accent-hi-rgb);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 13px 15px;
    overflow: hidden;
    background: var(--v-panel);
    border: 1px solid var(--v-line-2);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-family: var(--font);
    animation: rl-toast-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.rl-toast::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--tone);
}

.rl-toast-success { --tone: var(--v-green); --tone-rgb: 52, 211, 153; }
.rl-toast-warning { --tone: var(--v-amber); --tone-rgb: 251, 191, 36; }
.rl-toast-error { --tone: var(--v-red); --tone-rgb: 248, 113, 113; }

.rl-toast.rl-toast-out {
    animation: rl-toast-out 0.22s ease forwards;
}

.rl-toast-icon {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--tone-rgb), 0.14);
    color: var(--tone);
}

.rl-toast-icon .vg-icon {
    width: 18px;
    height: 18px;
}

.rl-toast-body {
    flex: 1;
    min-width: 0;
}

.rl-toast-body strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.rl-toast-body p {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-soft);
    white-space: pre-line;
    word-break: break-word;
}

.rl-toast-bar {
    position: absolute;
    left: 3px;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--tone);
    opacity: 0.75;
    transform-origin: left;
    animation-name: rl-toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes rl-toast-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rl-toast-out {
    to { opacity: 0; transform: translateX(-14px); }
}

@keyframes rl-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
