:is(.site-notification, .profile-notification) {
  position: fixed;
  z-index: 1100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: .875rem;
  line-height: 1.4;
  color: #f2f3f5;
  background: #2b2d31;
  border: 1px solid #62666f;
  box-shadow: 0 8px 28px #0006;
}
:is(.site-notification, .profile-notification)[hidden] { display: none; }
:is(.site-notification, .profile-notification) > .bi { flex: none; font-size: 19px; color: #a9b0ff; }
:is(.site-notification, .profile-notification) .notification-copy { flex: 1; min-width: 0; color: #f2f3f5; font-weight: 500; }
:is(.site-notification, .profile-notification)[data-kind="success"] { border-color: #52866a; }
:is(.site-notification, .profile-notification)[data-kind="success"] > .bi { color: #6ce5a4; }
:is(.site-notification, .profile-notification)[data-kind="error"] { border-color: #ad5962; }
:is(.site-notification, .profile-notification)[data-kind="error"] > .bi { color: #ff858b; }
:is(.site-notification, .profile-notification)[data-kind="progress"] > .bi { animation: profile-notification-spin 1s linear infinite; }
:is(.site-notification, .profile-notification) .notification-dismiss {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #c0c4cc;
  cursor: pointer;
}
:is(.site-notification, .profile-notification) .notification-dismiss:hover { background: #404249; color: #fff; }
:is(.site-notification, .profile-notification) .notification-dismiss:focus-visible { outline: 2px solid #a9b0ff; outline-offset: 2px; }
@keyframes profile-notification-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  :is(.site-notification, .profile-notification) { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 4px 10px; gap: 8px; font-size: .8125rem; line-height: 1.35; }
  :is(.site-notification, .profile-notification) > .bi { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.site-notification, .profile-notification), :is(.site-notification, .profile-notification) > .bi { animation: none; }
}

/* Existing passive notices share the same compact spacing. */
.data-loading, .team-cow-toast { gap: 10px; padding: 10px 12px; font-size: .875rem; line-height: 1.4; }
@media (max-width: 760px) {
  .data-loading, .team-cow-toast { box-sizing: border-box; min-height: 44px; gap: 8px; padding: 6px 10px; font-size: .8125rem; line-height: 1.35; max-width: calc(100vw - 24px); }
}
/* Override page-specific status panels while keeping their live-region IDs. */
.site-notification { top: auto !important; left: auto !important; transform: none; margin: 0 !important; background: var(--surface) !important; border-width: 1px !important; border-style: solid; border-radius: 0; text-align: left; }
.site-notification[hidden] { display: none !important; }

body:has(.site-notification[data-kind="progress"]:not([hidden])) .data-loading { display: none; }
.site-notification {
  position: fixed !important; z-index: 1100 !important;
  padding: 10px 12px !important; font-size: .875rem !important;
  border-color: #62666f !important; border-radius: 0 !important;
}
.site-notification[data-kind="success"] { border-color: #52866a !important; }
.site-notification[data-kind="error"] { border-color: #ad5962 !important; }
@media (max-width: 760px) {
  .site-notification { padding: 4px 10px !important; font-size: .8125rem !important; }
}
