.image-operation-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 52px 20px 20px;
  border: 1px solid var(--line, #dce4de);
  border-radius: 20px;
  background: var(--card, #fff);
  color: var(--ink, #18231c);
  text-align: center;
  overflow: auto;
}
.image-operation-dialog::backdrop { background: rgb(10 18 14 / 65%); }
.image-operation-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.image-operation-dialog[aria-busy="true"] { min-height: min(240px, calc(100dvh - 28px)); }
.image-operation-dialog > img { display: block; width: 100%; margin: 0 auto; max-height: calc(100dvh - 190px); object-fit: contain; object-position: center; }
.image-operation-dialog > [hidden] { display: none; }
.image-operation-progress {
  width: 38px;
  height: 38px;
  margin: 36px auto 24px;
  border: 3px solid var(--line, #dce4de);
  border-top-color: var(--ink, #18231c);
  border-radius: 50%;
  animation: image-operation-spin 1s linear infinite;
}
@keyframes image-operation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .image-operation-progress { animation: none; }
}
.image-operation-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 27px; cursor: pointer; background: #edf1ee; color: #000; }
.image-operation-status { margin: 10px 0; font-size: 13px; }
.image-operation-save { min-width: 130px; }
@media (max-width: 600px) {
  .image-operation-dialog { padding: 50px 12px 16px; }
}
