/* ── LabelCrow unified toast notifications ── */
#lcToastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}

.lc-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  word-break: break-word;
}
.lc-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.lc-toast.hide {
  opacity: 0;
  transform: translateX(40px);
}

/* Icon */
.lc-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

/* Close button */
.lc-toast-close {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #94a3b8;
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.15s;
}
.lc-toast-close:hover { color: #475569; }

/* ── Type variants ── */

/* Error / danger */
.lc-toast.error {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.lc-toast.error .lc-toast-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.lc-toast.error .lc-toast-close { color: #f87171; }
.lc-toast.error .lc-toast-close:hover { color: #991b1b; }

/* Success */
.lc-toast.success {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
}
.lc-toast.success .lc-toast-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.lc-toast.success .lc-toast-close { color: #86efac; }
.lc-toast.success .lc-toast-close:hover { color: #166534; }

/* Warning */
.lc-toast.warning {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}
.lc-toast.warning .lc-toast-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.lc-toast.warning .lc-toast-close { color: #fbbf24; }
.lc-toast.warning .lc-toast-close:hover { color: #92400e; }

/* Info (default) */
.lc-toast.info {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}
.lc-toast.info .lc-toast-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
.lc-toast.info .lc-toast-close { color: #93c5fd; }
.lc-toast.info .lc-toast-close:hover { color: #1e40af; }

/* ── Dark mode ── */
[data-theme="dark"] .lc-toast {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
}
[data-theme="dark"] .lc-toast.error {
  background: #2a1215;
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
[data-theme="dark"] .lc-toast.error .lc-toast-icon { background: rgba(239, 68, 68, 0.18); color: #f87171; }
[data-theme="dark"] .lc-toast.success {
  background: #0f2a1a;
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
[data-theme="dark"] .lc-toast.success .lc-toast-icon { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
[data-theme="dark"] .lc-toast.warning {
  background: #2a2010;
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
[data-theme="dark"] .lc-toast.warning .lc-toast-icon { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
[data-theme="dark"] .lc-toast.info {
  background: #0f1a2e;
  border-color: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
[data-theme="dark"] .lc-toast.info .lc-toast-icon { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
[data-theme="dark"] .lc-toast-close { color: #64748b; }
[data-theme="dark"] .lc-toast-close:hover { color: #cbd5e1; }

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  #lcToastContainer {
    top: 12px;
    right: 8px;
    left: 8px;
    max-width: none;
  }
  .lc-toast { font-size: 12px; padding: 12px 14px; }
}
