.ppr-operation-hub {
  position: fixed;
  z-index: var(--atlas-z-toast, 1400);
  top: 74px;
  right: 18px;
  width: min(380px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.ppr-operation {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--atlas-border, #c9d8dc);
  border-left: 3px solid var(--atlas-brand, #0b8f87);
  border-radius: 10px;
  background: var(--atlas-surface-1, #fff);
  color: var(--atlas-text-1, #102a35);
  box-shadow: var(--atlas-shadow-2, 0 12px 34px rgba(8, 31, 40, .18));
}

.ppr-operation-indicator {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid color-mix(in srgb, var(--atlas-brand, #0b8f87) 24%, transparent);
  border-top-color: var(--atlas-brand, #0b8f87);
  border-radius: 50%;
  animation: ppr-operation-spin .8s linear infinite;
}

.ppr-operation-copy { min-width: 0; display: grid; gap: 3px; }
.ppr-operation-copy strong { font-size: 13px; font-weight: 650; line-height: 1.25; }
.ppr-operation-copy small { color: var(--atlas-text-3, #5a7079); font-size: 12px; line-height: 1.3; }
.ppr-operation-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--atlas-surface-3, #e6edef);
}
.ppr-operation-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ppr-operation-progress, 42%);
  border-radius: inherit;
  background: var(--atlas-brand, #0b8f87);
}
.ppr-operation.is-running:not(.is-determinate) .ppr-operation-track i {
  animation: ppr-operation-indeterminate 1.25s ease-in-out infinite;
}
.ppr-operation.is-success { border-left-color: var(--atlas-success, #087a55); }
.ppr-operation.is-error { border-left-color: var(--atlas-danger, #b4233d); }
.ppr-operation.is-success .ppr-operation-indicator,
.ppr-operation.is-error .ppr-operation-indicator {
  border: 0;
  animation: none;
}
.ppr-operation.is-success .ppr-operation-indicator::before,
.ppr-operation.is-error .ppr-operation-indicator::before {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  content: "✓";
  background: var(--atlas-success, #087a55);
  font-size: 14px;
  font-weight: 800;
}
.ppr-operation.is-error .ppr-operation-indicator::before {
  content: "!";
  background: var(--atlas-danger, #b4233d);
}

form[aria-busy="true"] .is-operation-locked {
  cursor: wait !important;
  opacity: .62;
  pointer-events: none;
}

@keyframes ppr-operation-spin { to { transform: rotate(360deg); } }
@keyframes ppr-operation-indeterminate {
  0% { width: 18%; transform: translateX(-110%); }
  55% { width: 48%; }
  100% { width: 24%; transform: translateX(420%); }
}

@media (max-width: 720px) {
  .ppr-operation-hub { top: 62px; right: 10px; width: calc(100vw - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .ppr-operation-indicator,
  .ppr-operation.is-running:not(.is-determinate) .ppr-operation-track i { animation-duration: 2.4s; }
}
