/* Modern chrome uses the same tokens as async status. ID-scoped selectors
   also win when the legacy gritter stylesheet is loaded after this sheet. */
body #gritter-notice-wrapper {
  width: min(400px, calc(100vw - 32px)) !important;
  z-index: var(--tt-z-chrome-dialog, 23000) !important;
}
#gritter-notice-wrapper .gritter-item-wrapper {
  --toast-accent: var(--ds-color-indigo-600, #4f46e5);
  padding: 0 !important;
  margin: 0 0 12px !important;
  border: 0 !important;
  border-radius: var(--ds-radius-lg, 12px) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--ds-font-family-sans, sans-serif) !important;
}
#gritter-notice-wrapper .gritter-success { --toast-accent: var(--ds-color-success-700, #15803d); }
#gritter-notice-wrapper .gritter-warning { --toast-accent: var(--ds-color-warning-700, #b45309); }
#gritter-notice-wrapper .gritter-error { --toast-accent: var(--ds-color-danger-700, #b91c1c); }
#gritter-notice-wrapper .gritter-top,
#gritter-notice-wrapper .gritter-bottom,
#gritter-notice-wrapper .gritter-image { display: none !important; }
#gritter-notice-wrapper .gritter-item {
  position: relative;
  box-sizing: border-box;
  min-height: 64px;
  padding: 16px 48px 16px 56px !important;
  border: 1px solid var(--ds-border-subtle, #e5e7eb);
  border-inline-start: 3px solid var(--toast-accent);
  border-radius: var(--ds-radius-lg, 12px);
  background: var(--ds-surface-raised, #fff) !important;
  background-image: none !important;
  box-shadow: var(--ds-shadow-popover, 0 8px 28px #0f172a26);
  color: var(--ds-text-primary, #0f172a);
  font: 14px/1.45 var(--ds-font-family-sans, sans-serif) !important;
}
#gritter-notice-wrapper .gritter-item::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 16px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--toast-accent);
  box-shadow: none;
}
#gritter-notice-wrapper .gritter-item::after {
  content: "i";
  position: absolute;
  inset: 19px auto auto 16px;
  width: 22px;
  height: 20px;
  border: 0;
  background: none;
  color: #fff;
  font: 700 14px/20px var(--ds-font-family-sans, sans-serif);
  text-align: center;
  transform: none;
  box-shadow: none;
}
#gritter-notice-wrapper .gritter-success .gritter-item::after {
  content: "";
  inset: 23px auto auto 22px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
#gritter-notice-wrapper .gritter-warning .gritter-item::after,
#gritter-notice-wrapper .gritter-error .gritter-item::after { content: "!"; }
#gritter-notice-wrapper .gritter-title {
  display: block !important;
  padding: 0 !important;
  margin: 0 0 3px !important;
  color: var(--ds-text-primary, #0f172a);
  font: 600 14px/1.4 var(--ds-font-family-sans, sans-serif) !important;
  text-shadow: none !important;
}
#gritter-notice-wrapper .gritter-item p {
  margin: 0 !important;
  color: var(--ds-text-secondary, #475569);
  font: 13px/1.5 var(--ds-font-family-sans, sans-serif) !important;
  overflow-wrap: anywhere;
}
#gritter-notice-wrapper .gritter-with-image,
#gritter-notice-wrapper .gritter-without-image {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}
#gritter-notice-wrapper .gritter-close {
  display: block !important;
  position: absolute;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px;
  background: none !important;
  color: var(--ds-text-secondary, #475569);
  opacity: 1 !important;
  cursor: pointer;
}
#gritter-notice-wrapper .gritter-close i { display: none; }
#gritter-notice-wrapper .gritter-close::before,
#gritter-notice-wrapper .gritter-close::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 8px;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
#gritter-notice-wrapper .gritter-close::after { transform: rotate(-45deg); }
#gritter-notice-wrapper .gritter-close:hover,
#gritter-notice-wrapper .gritter-close:focus-visible {
  background: var(--ds-border-subtle, #e5e7eb) !important;
  outline: 2px solid var(--toast-accent);
  outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
  #gritter-notice-wrapper * { animation: none !important; transition: none !important; }
}
