#mkf-toast-stack {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.mkf-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
    font-size: 0.9rem;
    line-height: 1.45;
    animation: mkf-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.mkf-toast.mkf-toast-out {
    animation: mkf-toast-out 0.22s ease-in forwards;
}

.mkf-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.mkf-toast-body { flex: 1; min-width: 0; }
.mkf-toast-title { font-weight: 700; margin: 0 0 0.15rem; font-size: 0.88rem; }
.mkf-toast-msg { margin: 0; color: #475569; }

.mkf-toast-success .mkf-toast-icon { background: #d1fae5; color: #047857; }
.mkf-toast-error .mkf-toast-icon { background: #fee2e2; color: #b91c1c; }
.mkf-toast-info .mkf-toast-icon { background: #dbeafe; color: #1d4ed8; }
.mkf-toast-warn .mkf-toast-icon { background: #fef3c7; color: #b45309; }

.mkf-toast-success { border-left: 4px solid #059669; }
.mkf-toast-error { border-left: 4px solid #dc2626; }
.mkf-toast-info { border-left: 4px solid #2563eb; }
.mkf-toast-warn { border-left: 4px solid #d97706; }

@keyframes mkf-toast-in {
    from { opacity: 0; transform: translateX(24px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes mkf-toast-out {
    to { opacity: 0; transform: translateX(20px); }
}

#mkf-confirm-root {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}
#mkf-confirm-root.open { display: flex; }

.mkf-confirm-sheet {
    background: #fff;
    border-radius: 18px;
    width: min(440px, 100%);
    padding: 1.35rem 1.4rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: mkf-confirm-in 0.22s ease-out;
}
@keyframes mkf-confirm-in {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mkf-confirm-sheet h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}
.mkf-confirm-detail {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    white-space: pre-line;
}
.mkf-confirm-msg {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
}
.mkf-confirm-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.mkf-confirm-actions button {
    padding: 0.55rem 1.1rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
}
.mkf-btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0 !important;
}
.mkf-btn-cancel:hover { background: #e2e8f0; }
.mkf-btn-ok {
    background: #0f766e;
    color: #fff;
}
.mkf-btn-ok:hover { filter: brightness(1.06); }
.mkf-btn-ok.danger { background: #dc2626; }
