.stock-restore-progress {
  box-sizing: border-box;
  max-width: min(24rem, calc(100% - 2rem));
  margin: auto;
  padding: 20px 24px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 42px #0006;
}
.stock-restore-progress::backdrop {
  background: rgba(40, 42, 45, .62);
  backdrop-filter: grayscale(.9);
}
.stock-restore-progress h2 { margin: 0 0 8px; font-size: 1.1rem; }
.stock-restore-progress p { color: var(--muted); margin: 0; }
.stock-restore-track {
  position: relative;
  height: 4px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 4px;
  background: var(--border);
}
.stock-restore-track::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: var(--accent);
  border-radius: inherit;
  animation: stock-restore-wait 1.4s ease-in-out infinite alternate;
}
@keyframes stock-restore-wait { from { transform: translateX(0); } to { transform: translateX(138%); } }
@media (prefers-reduced-motion: reduce) {
  .stock-restore-track::after { animation: none; width: 100%; }
}
.stock-restore-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  max-width: min(25rem, calc(100% - 2rem));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 4px 20px #0003;
}
.stock-restore-notice[data-state="success"] { border-left-color: var(--down); }
.stock-restore-notice[data-state="error"] { border-left-color: var(--danger); }
.stock-restore-notice p { margin: 0 0 8px; overflow-wrap: anywhere; }
.stock-restore-notice > div { display: flex; flex-wrap: wrap; gap: 8px; }
