/* Async feedback keeps labels, layout and native disabled/permission state intact. */
button.sgo-action-busy,
input.sgo-action-busy {
  position: relative;
  cursor: progress;
  outline-offset: 3px;
}
button.sgo-action-busy::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin: -.575rem 0 0 -.575rem;
  border: 3px solid rgba(25, 25, 25, .2);
  border-top-color: #111;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7);
  pointer-events: none;
  animation: sgo-action-spin .75s linear infinite;
  z-index: 2;
}
.work-entry-body button.sgo-action-busy::after {
  border-top-color: #d29c00;
}
input.sgo-action-busy { background-image: linear-gradient(90deg, transparent, #f4b40055, transparent); }
.sgo-action-status {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes sgo-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button.sgo-action-busy::after { animation: none; border-top-color: #d29c00; }
}
@media print { button.sgo-action-busy::after, .sgo-action-status { display: none !important; } }
