.important-toast-stack {
  position: fixed;
  z-index: 3400;
  top: 76px;
  right: 18px;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - 94px);
  overflow: auto;
  display: grid;
  gap: 9px;
  pointer-events: none;
  scrollbar-width: thin;
}

.important-toast {
  --alert-color: #d58b22;
  --alert-soft: #fff8e9;
  min-height: 82px;
  padding: 13px 12px;
  border: 1px solid color-mix(in srgb, var(--alert-color) 36%, #dfe5ee);
  border-left: 4px solid var(--alert-color);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  color: var(--text, #1f2633);
  background: color-mix(in srgb, var(--alert-soft) 92%, var(--surface, #fff));
  box-shadow: 0 16px 42px rgba(24, 32, 52, .2);
  pointer-events: auto;
}

.important-toast.severity-green {
  --alert-color: #2c9a61;
  --alert-soft: #edf9f2;
}

.important-toast.severity-orange {
  --alert-color: #d8891f;
  --alert-soft: #fff7e8;
}

.important-toast.severity-red {
  --alert-color: #d84958;
  --alert-soft: #fff0f2;
}

.important-toast-marker {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--alert-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--alert-color) 14%, transparent);
}

.important-toast > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.important-toast strong {
  font-size: 12.5px;
  line-height: 1.25;
}

.important-toast p {
  margin: 0;
  color: var(--text-secondary, #596275);
  font-size: 11.5px;
  line-height: 1.4;
}

.important-toast time {
  color: var(--text-muted, #8993a5);
  font-size: 10.5px;
}

.important-toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-secondary, #596275);
  background: transparent;
  font: 500 22px/1 system-ui, sans-serif;
  cursor: pointer;
}

.important-toast-close:hover,
.important-toast-close:focus-visible {
  color: var(--text, #1f2633);
  background: rgba(32, 40, 58, .08);
  outline: none;
}

.important-toast[aria-busy="true"] {
  opacity: .65;
}

.notification-item.severity-green > span { color: #2c9a61; background: #edf9f2; }
.notification-item.severity-orange > span { color: #d8891f; background: #fff7e8; }
.notification-item.severity-red > span { color: #d84958; background: #fff0f2; }
.notification-item.is-read { opacity: .7; }
.notification-item:has(.notification-item-close) { grid-template-columns: auto minmax(0, 1fr) 26px; }
.notification-item-close {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-muted, #8993a5);
  background: transparent;
  cursor: pointer;
}
.notification-item-close:hover,
.notification-item-close:focus-visible {
  color: var(--text, #1f2633);
  background: rgba(32, 40, 58, .08);
  outline: none;
}

@media (max-width: 640px) {
  .important-toast-stack {
    top: 68px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 78px);
  }
}
