.ui-action-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20000;
  max-width: min(520px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid #7b8796;
  border-radius: 10px;
  background: #192333;
  color: #fff;
  box-shadow: 0 6px 24px #0005;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ui-action-notice[hidden] { display: none; }
.ui-action-notice button { color: inherit; background: transparent; border: 1px solid #7b8796; border-radius: 6px; padding: 4px 8px; white-space: nowrap; cursor: pointer; }
.ui-action-error { border-color: #ed8a8a; }
.ui-page-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f6f8fc;
  color: #445c78;
  font-size: 13px;
}
.ui-page-loading[hidden] { display: none; }
.ui-page-loading button { color: inherit; background: transparent; border: 1px solid #d7e1ee; border-radius: 6px; padding: 4px 8px; white-space: nowrap; cursor: pointer; }
.ui-page-loading.ui-action-error { border-color: #ed8a8a; }
.ui-action-busy { cursor: progress; }
/* Sidebar tabs use ::after for their static selection marker. */
button.ui-action-busy:not(:where(.tabs button))::after,
a.ui-action-busy:not(:where(.tabs a))::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: ui-action-spin 0.8s linear infinite;
}
@keyframes ui-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button.ui-action-busy:not(:where(.tabs button))::after,
  a.ui-action-busy:not(:where(.tabs a))::after { animation: none; }
}
