.onlypdf-processing-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 28, 26, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.onlypdf-processing-modal[hidden] { display: none !important; }
.onlypdf-processing-dialog {
  width: min(420px, 100%);
  padding: 36px 28px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 30, 28, 0.22);
  text-align: center;
  animation: onlypdf-pop 0.28s cubic-bezier(.23,1,.32,1);
}
@keyframes onlypdf-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.onlypdf-processing-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e8f5f2;
  color: #2f8a7e;
  font-size: 22px;
}
.onlypdf-processing-icon.is-spin i {
  animation: onlypdf-spin 0.85s linear infinite;
}
.onlypdf-processing-icon.is-ok { background: #e6f7ef; color: #1f8a5b; }
.onlypdf-processing-icon.is-err { background: #fdecea; color: #c0392b; }
@keyframes onlypdf-spin {
  to { transform: rotate(360deg); }
}
.onlypdf-processing-kicker {
  margin: 0 0 6px;
  color: #5f807a;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.onlypdf-processing-title {
  margin: 0; color: #14211f;
  font-size: 22px; letter-spacing: -0.03em; font-weight: 800;
}
.onlypdf-processing-message {
  min-height: 21px; margin: 10px auto 18px;
  color: #64736f; font-size: 13px; line-height: 1.5;
}
.onlypdf-processing-track {
  height: 8px; overflow: hidden; border-radius: 999px; background: #e7efed;
}
.onlypdf-processing-track span {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #50ab9f, #318b81);
  transition: width 0.35s cubic-bezier(.23,1,.32,1);
  position: relative;
}
.onlypdf-processing-track span::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: onlypdf-shimmer 1.2s ease-in-out infinite;
}
@keyframes onlypdf-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.onlypdf-processing-percent {
  min-height: 16px; margin: 8px 0 0;
  color: #5f807a; font-size: 12px; font-weight: 800;
}
.onlypdf-processing-actions {
  display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.onlypdf-processing-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.onlypdf-processing-download { border: 1px solid #152331; background: #152331; color: #fff; }
.onlypdf-processing-dismiss { border: 1px solid #dce6e3; background: #fff; color: #5b6d69; }
.onlypdf-processing-modal.is-error .onlypdf-processing-download { display: none; }
.onlypdf-download-deferred { display: none !important; }
body.onlypdf-processing-open { overflow: hidden; }
@media (max-width: 480px) {
  .onlypdf-processing-modal { padding: 14px; }
  .onlypdf-processing-dialog { padding: 28px 18px 20px; border-radius: 18px; }
  .onlypdf-processing-title { font-size: 20px; }
  .onlypdf-processing-actions { flex-direction: column; }
  .onlypdf-processing-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .onlypdf-processing-dialog, .onlypdf-processing-track span, .onlypdf-processing-icon.is-spin i, .onlypdf-processing-track span::after {
    animation: none !important; transition: none !important;
  }
}
