.qubits-toast-container {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 100000;
    display: flex;
    width: min(390px, calc(100vw - 2rem));
    flex-direction: column;
    gap: .65rem;
    pointer-events: none;
}

.qubits-toast {
    --toast-color: #2563eb;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    align-items: start;
    gap: .7rem;
    overflow: hidden;
    position: relative;
    padding: .9rem .85rem .95rem;
    border: 1px solid #dbeafe;
    border-left: 4px solid var(--toast-color);
    border-radius: 13px;
    background: rgba(255, 255, 255, .98);
    color: #1e293b;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .2);
    pointer-events: auto;
    animation: qubits-toast-in .22s ease-out both;
}

.qubits-toast.success { --toast-color: #16a34a; border-color: #bbf7d0; }
.qubits-toast.error { --toast-color: #dc2626; border-color: #fecaca; }
.qubits-toast.warning { --toast-color: #d97706; border-color: #fde68a; }
.qubits-toast.info { --toast-color: #2563eb; border-color: #bfdbfe; }
.qubits-toast.removing { animation: qubits-toast-out .18s ease-in both; }

.qubits-toast-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--toast-color) 13%, white);
    color: var(--toast-color);
    font-weight: 800;
}

.qubits-toast-message {
    padding-top: .28rem;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.qubits-toast-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
}

.qubits-toast-close:hover,
.qubits-toast-close:focus-visible { background: #f1f5f9; color: #0f172a; outline: none; }

.qubits-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--toast-color);
    transform-origin: left;
    animation: qubits-toast-progress var(--toast-duration, 4500ms) linear forwards;
}

.qubits-toast:hover .qubits-toast-progress { animation-play-state: paused; }

@keyframes qubits-toast-in {
    from { opacity: 0; transform: translate3d(24px, -6px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes qubits-toast-out {
    to { opacity: 0; transform: translate3d(24px, 0, 0); }
}

@keyframes qubits-toast-progress { to { transform: scaleX(0); } }

@media (max-width: 600px) {
    .qubits-toast-container { top: .75rem; right: .75rem; left: .75rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .qubits-toast, .qubits-toast.removing { animation: none; }
}

.qubits-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
    animation: qubits-confirm-fade-in .16s ease-out both;
}

.qubits-confirm-card {
    width: min(430px, 100%);
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
    animation: qubits-confirm-in .2s ease-out both;
}

.qubits-confirm-body {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .9rem;
    padding: 1.35rem 1.35rem 1rem;
}

.qubits-confirm-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.2rem;
    font-weight: 800;
}

.qubits-confirm-title {
    margin: .05rem 0 .35rem;
    color: #0b2b4a;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

.qubits-confirm-message {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.5;
}

.qubits-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    padding: .95rem 1.35rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.qubits-confirm-button {
    min-width: 96px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: .62rem 1rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
}

.qubits-confirm-button:hover,
.qubits-confirm-button:focus-visible { border-color: #94a3b8; background: #f1f5f9; outline: none; }

.qubits-confirm-button.primary {
    border-color: #0b2b4a;
    background: #0b2b4a;
    color: #fff;
}

.qubits-confirm-button.primary:hover,
.qubits-confirm-button.primary:focus-visible { border-color: #173d60; background: #173d60; }

body.qubits-confirm-open { overflow: hidden; }

@keyframes qubits-confirm-fade-in { from { opacity: 0; } }
@keyframes qubits-confirm-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .qubits-confirm-body { grid-template-columns: 38px minmax(0, 1fr); padding: 1.1rem 1rem .9rem; }
    .qubits-confirm-icon { width: 38px; height: 38px; }
    .qubits-confirm-actions { padding: .85rem 1rem 1rem; }
    .qubits-confirm-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .qubits-confirm-backdrop, .qubits-confirm-card { animation: none; }
}
