.serverspot-toast-stack,
.toast-container-dynamic {
    display: grid;
    gap: 10px;
    position: fixed;
    right: 20px;
    top: 80px;
    width: min(400px, calc(100vw - 32px));
    z-index: 9999;
    pointer-events: none;
}

.serverspot-toast {
    --toast-accent: #6576ff;
    --toast-surface: #f5f7ff;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-left: 4px solid var(--toast-accent);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    color: #334155;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    width: 100%;
}

.serverspot-toast:hover {
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.serverspot-toast:not(.show) {
    opacity: 0;
    transform: translateX(24px);
}

.serverspot-toast-inner {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    padding: 14px 14px 14px 12px;
}

.serverspot-toast-icon {
    align-items: center;
    background: var(--toast-surface);
    border-radius: 8px;
    color: var(--toast-accent);
    display: inline-flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.serverspot-toast-icon .icon {
    font-size: 1.15rem;
    line-height: 1;
}

.serverspot-toast-content {
    min-width: 0;
    flex: 1;
}

.serverspot-toast-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2px;
}

.serverspot-toast-message {
    color: #526173;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.serverspot-toast-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.serverspot-toast-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.serverspot-toast-success {
    --toast-accent: #16a34a;
    --toast-surface: #ecfdf5;
}

.serverspot-toast-error,
.serverspot-toast-danger {
    --toast-accent: #dc2626;
    --toast-surface: #fef2f2;
}

.serverspot-toast-warning {
    --toast-accent: #d97706;
    --toast-surface: #fffbeb;
}

.serverspot-toast-info {
    --toast-accent: #0284c7;
    --toast-surface: #f0f9ff;
}

.dark-mode .serverspot-toast {
    background: #101924;
    border-color: #263547;
    border-left-color: var(--toast-accent);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    color: #d8e1f0;
}

.dark-mode .serverspot-toast-icon {
    background: rgba(255, 255, 255, 0.06);
}

.dark-mode .serverspot-toast-title {
    color: #e2e8f0;
}

.dark-mode .serverspot-toast-message {
    color: #9fb0c8;
}

.dark-mode .serverspot-toast-close {
    color: #9fb0c8;
}

.dark-mode .serverspot-toast-close:hover {
    background: #182335;
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .serverspot-toast-stack,
    .toast-container-dynamic {
        left: 16px;
        right: 16px;
        top: 72px;
        width: auto;
    }
}
