@layer components {
.app-notifications {
  background: transparent;
  border: 0;
  display: grid;
  gap: 8px;
  inset: 14px auto auto 50%;
  margin: 0;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  z-index: 3000;
}

.app-notifications[popover]:not(:popover-open) { display: none; }

.app-notification-announcement {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.app-notification {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left-width: 4px;
  border-radius: 8px;
  border-right-width: 4px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: auto;
  position: relative;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-notification.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.app-notification-success {
  background: #dcfce7;
  border-color: #86efac;
  border-left-color: #16a34a;
  border-right-color: #16a34a;
  color: #14532d;
}

.app-notification-error {
  background: #fee2e2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  border-right-color: #dc2626;
  color: #7f1d1d;
}

.app-notification-warning {
  background: #fef3c7;
  border-color: #fde68a;
  border-left-color: #d97706;
  border-right-color: #d97706;
  color: #78350f;
}

.app-notification-info {
  background: #dbeafe;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  border-right-color: #2563eb;
  color: #1e3a8a;
}

.app-notification-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}
}
