/* VITI Portal Toast Stack — bottom-right floating notifications. */
.viti-toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100200;
    pointer-events: none;
    max-width: 420px;
}
.viti-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2271b1;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    min-width: 280px;
    max-width: 420px;
    font-size: 13.5px;
    color: #0f172a;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(.2,.8,.2,1), opacity 0.18s;
}
.viti-toast.is-visible { transform: translateX(0); opacity: 1; }
.viti-toast-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700;
    color: #fff;
    background: #2271b1;
}
.viti-toast-msg { flex: 1; min-width: 0; line-height: 1.45; }
.viti-toast-action {
    background: transparent;
    border: 1px solid currentColor;
    color: #2271b1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.viti-toast-action:hover { background: rgba(34,113,177,0.08); }
.viti-toast-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.viti-toast-close:hover { background: #f1f5f9; color: #0f172a; }

/* Variants. */
.viti-toast-success            { border-left-color: #16a34a; }
.viti-toast-success .viti-toast-icon { background: #16a34a; }
.viti-toast-error              { border-left-color: #dc2626; }
.viti-toast-error .viti-toast-icon { background: #dc2626; }
.viti-toast-error .viti-toast-action { color: #dc2626; }
.viti-toast-info               { border-left-color: #0ea5e9; }
.viti-toast-info .viti-toast-icon { background: #0ea5e9; }
.viti-toast-action             { /* inherits from variant accent */ }
.viti-toast-action.is-visible  { /* placeholder */ }

@media (max-width: 600px) {
    .viti-toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .viti-toast { min-width: 0; }
}
