#ToastContainer {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.Toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    animation: ToastIn .4s cubic-bezier(.16,1,.3,1) forwards;
}

.Toast.removing {
    animation: ToastOut .3s cubic-bezier(.55,0,1,.45) forwards;
}

@keyframes ToastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes ToastOut {
    from { transform: translateX(0);    opacity: 1; max-height: 200px; margin-bottom: 0; }
    to   { transform: translateX(120%); opacity: 0; max-height: 0;    margin-bottom: -10px; }
}

.Toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}

.Toast.Success::before { background: #22c55e; }
.Toast.Error::before   { background: #ef4444; }
.Toast.Warning::before { background: #f59e0b; }
.Toast.Info::before    { background: #3b82f6; }

.Toast-icon {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.Toast.Success .Toast-icon { background: #f0fdf4; color: #16a34a; }
.Toast.Error .Toast-icon   { background: #fef2f2; color: #dc2626; }
.Toast.Warning .Toast-icon { background: #fffbeb; color: #d97706; }
.Toast.Info .Toast-icon    { background: #eff6ff; color: #2563eb; }

.Toast-icon svg { width: 18px; height: 18px; stroke-width: 2.5; }

.Toast-body { flex: 1; min-width: 0; padding-top: 2px; }

.Toast-title {
    font-size: .85rem; font-weight: 700;
    color: #111827; margin-bottom: 2px; line-height: 1.3;
}

.Toast-message {
    font-size: .8rem; color: #6b7280;
    line-height: 1.5; word-break: break-word;
}

.Toast-message:empty { display: none; }

.Toast-close {
    background: none; border: none;
    width: 28px; height: 28px; min-width: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #9ca3af;
    transition: all .15s ease;
    margin: -4px -4px -4px 0; flex-shrink: 0;
}

.Toast-close:hover { background: #f3f4f6; color: #374151; }
.Toast-close svg { width: 14px; height: 14px; }

.Toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 0 14px;
    animation: ToastProg linear forwards;
}

.Toast.Success .Toast-progress { background: #22c55e; }
.Toast.Error .Toast-progress   { background: #ef4444; }
.Toast.Warning .Toast-progress { background: #f59e0b; }
.Toast.Info .Toast-progress    { background: #3b82f6; }

@keyframes ToastProg { from { width: 100%; } to { width: 0%; } }

@media (max-width: 480px) {
    #ToastContainer { top: 10px; right: 10px; max-width: 100%; width: calc(100% - 20px); gap: 8px; }
    .Toast { padding: 12px 14px; gap: 10px; border-radius: 12px; }
    .Toast-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 8px; }
    .Toast-icon svg { width: 16px; height: 16px; }
    .Toast-title { font-size: .82rem; }
    .Toast-message { font-size: .78rem; }
}
