/*
 * Shared notice, alert, and toast feedback styles.
 *
 * Load order:
 * - Loaded immediately after styles.css in every direct styles.css consumer.
 * - Page-specific and late unified styles continue to load afterward.
 */

html body .notice,
html body .alert {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-left: 4px solid #2563eb;
  border-radius: 14px;
  background: #f8fbff;
  color: #334155;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  font-size: 14px;
  line-height: 1.65;
}

html body .notice > :first-child,
html body .alert > :first-child {
  margin-top: 0;
}

html body .notice > :last-child,
html body .alert > :last-child {
  margin-bottom: 0;
}

html body .notice.info,
html body .alert.info {
  border-color: rgba(37, 99, 235, 0.18);
  border-left-color: #2563eb;
  background: #f8fbff;
  color: #1e3a8a;
}

html body .notice.success,
html body .alert.success {
  border-color: rgba(22, 163, 74, 0.22);
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

html body .notice.warning,
html body .alert.warning {
  border-color: rgba(245, 158, 11, 0.28);
  border-left-color: #f59e0b;
  background: #fff7ed;
  color: #92400e;
}

html body .notice.danger,
html body .notice.danger-soft,
html body .alert.danger,
html body .alert.error {
  border-color: rgba(220, 38, 38, 0.22);
  border-left-color: #dc2626;
  background: #fff7f7;
  color: #991b1b;
}

html body .toast {
  position: fixed;
  top: 22px;
  right: 22px;
  left: auto;
  z-index: 10000;
  width: auto;
  min-width: 240px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-left: 4px solid #60a5fa;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.20);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  transform: translateY(0);
  opacity: 1;
  transition: opacity .18s ease, transform .18s ease;
}

html body .toast.success-toast {
  border-color: rgba(22, 163, 74, 0.22);
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

html body .toast.hide,
html body .toast.success-toast.hide,
html body .success-toast.hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

@media (max-width: 640px) {
  html body .toast {
    top: 12px;
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: none;
  }
}
