#common-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: min(360px, 90vw);
}
.common-toast {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    overflow: hidden;
    padding: 12px 36px 14px 14px;
    font-size: .9em;
    line-height: 1.4;
    border-left: 4px solid #666;
    animation: common-toast-in .25s ease-out;
}
.common-toast.info { border-left-color: #2563eb; }
.common-toast.warning { border-left-color: #d97706; }
.common-toast.error { border-left-color: #dc2626; }

.common-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .6;
}
.common-toast-close:hover { opacity: 1; }

.common-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,.15);
}
.common-toast-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: #666;
    transform-origin: left;
    animation: common-toast-shrink linear forwards;
    animation-duration: var(--duration);
}
.common-toast.paused .common-toast-bar::after { animation-play-state: paused; }

@keyframes common-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes common-toast-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
