#trias-toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification,
.trias-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 320px;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--ui-border-color);
  background: var(--ui-surface-elevated);
  color: var(--ui-text-1);
  box-shadow: var(--ui-shadow-md);
  pointer-events: auto;
}

.trias-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.trias-toast.success,
.notification.success,
.notification.notification-success {
  border-color: #a9d8bd;
  border-left: 4px solid #237354;
  background: #edf8f1;
  color: #174a36;
}

.trias-toast.error,
.notification.error,
.notification.notification-error {
  border-color: #efb5b5;
  border-left: 4px solid #a63d3d;
  background: #fff0f0;
  color: #7d2929;
}

.trias-toast.warning,
.notification.warning,
.notification.notification-warning {
  border-color: #ecd39a;
  border-left: 4px solid #9a5b12;
  background: #fff8e8;
  color: #71420d;
}

.trias-toast.info,
.notification.info,
.notification.notification-info {
  border-color: #aecce6;
  border-left: 4px solid #315c85;
  background: #eef5fb;
  color: #254b70;
}

.trias-toast__close,
.notification button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.72;
}

.trias-toast__close:hover,
.notification button:hover {
  background: transparent;
  color: currentColor;
  opacity: 1;
}

body.dark-mode .trias-toast.success,
body.dark-mode .notification.success,
body.dark-mode .notification.notification-success {
  border-color: #2d7655;
  background: #143b2b;
  color: #d6f3e1;
}

body.dark-mode .trias-toast.error,
body.dark-mode .notification.error,
body.dark-mode .notification.notification-error {
  border-color: #8c3f3f;
  background: #461f24;
  color: #ffe0e0;
}

body.dark-mode .trias-toast.warning,
body.dark-mode .notification.warning,
body.dark-mode .notification.notification-warning {
  border-color: #886528;
  background: #463716;
  color: #ffefc5;
}

body.dark-mode .trias-toast.info,
body.dark-mode .notification.info,
body.dark-mode .notification.notification-info {
  border-color: #3e6f99;
  background: #18364f;
  color: #d8edff;
}
