#toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20010;
  pointer-events: none;
}
.toast {
  min-width: 260px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: var(--text, #222);
  color: var(--card, #fff);
  font-family: var(--font-family, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { background: var(--ok-2, #1f7a1f); }
.toast.error   { background: var(--danger-hover, #9c1c1c); }
.toast.info    { background: var(--primary, #1c4b9c); }
.toast .title { font-weight: 600; margin-bottom: 4px; }
.toast .actions { margin-top: 8px; display: flex; gap: 8px; }
.toast button {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
}
.toast button:hover { background: rgba(255,255,255,0.2); }

/* Modal */
#confirm-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20015;
}
#confirm-backdrop.show { display: flex; }
#confirm-modal {
  background: var(--card, #fff);
  color: var(--text, #111);
  width: min(520px, 92vw);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 18px;
}
#confirm-modal h3 { margin: 0 0 8px; font-size: 18px; }
#confirm-modal p { margin: 0; color: var(--muted, #555); }
#confirm-modal .footer {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px;
}
#confirm-modal button {
  border: none; border-radius: 10px; padding: 8px 14px; cursor: pointer;
}
#confirm-cancel { background: var(--soft, #eee); color: var(--text, #333); }
#confirm-ok { background: var(--primary, #2563eb); color: var(--on-primary, #fff); }
#confirm-ok.danger { background: var(--danger, #dc2626); }
[data-theme="dark"] #confirm-backdrop{ background: rgba(0,0,0,0.6); }
