.mk-media-column > .mk-finish:first-child { margin:0 0 .8rem }
.pv-actions { display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .65rem;margin-block:.85rem .2rem }
.pv-actions button,.pv-dialog button {
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;
  border:1px solid #cbd7d0;border-radius:.65rem;background:white;color:#1c493b;
  padding:.4rem .8rem;font:inherit;font-size:.9rem;line-height:1.45;
}
.pv-actions button:hover,.pv-dialog button:hover { background:#edf3ef }
.pv-actions svg,.pv-dialog button svg { width:19px;height:19px;flex:none }
.pv-actions .pv-message { margin:0;font-size:.85rem;color:#345b49 }
.pv-message:empty,.pv-actions [hidden],.pv-dialog [hidden] { display:none }
.pv-actions input { min-width:0;width:100%;font:inherit;padding:.5rem;border:1px solid #738a7d;border-radius:.4rem }
.pv-dialog {
  width:min(52rem,calc(100% - 2rem));max-width:none;max-height:calc(100dvh - 2rem);padding:0;
  border:0;border-radius:1rem;background:#fff;color:#153b31;overflow:auto;overscroll-behavior:contain;
}
.pv-dialog::backdrop { background:rgb(13 25 20 / 78%) }
.pv-shell { display:grid;grid-template-rows:auto minmax(0,1fr) auto }
.pv-shell header,.pv-footer { display:flex;align-items:center;gap:.6rem;padding:.65rem 1rem }
.pv-shell header { justify-content:space-between }
.pv-shell h2 { font-size:1.15rem;line-height:1.5;margin:0 }
.pv-shell header button,.pv-step button { width:44px;padding:0;flex-shrink:0 }
.pv-viewport { direction:ltr;height:min(calc(100vh - 13rem),45rem);height:min(calc(100dvh - 13rem),45rem);min-height:10rem;overflow:auto;overscroll-behavior:contain;background:#f5f5f1 }
.pv-viewport:focus-visible { outline:2px solid #285a46;outline-offset:-3px }
.pv-board { width:100%;height:100%;display:grid;place-items:center;container-type:size }
.pv-board.pv-double { width:200%;height:200% }
.pv-dialog .pv-board .pv-frame {
  width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:none;max-height:none;
  margin:0;border:0;border-radius:0;box-shadow:none;
}
.pv-dialog :is(.sg-stage,.mk-original-stage)>img { display:block;width:100%;height:100%;object-fit:contain;max-height:none }
.pv-footer { flex-wrap:wrap }
.pv-step { display:flex;gap:.35rem }
.pv-dialog .pv-step button:disabled { opacity:.35;background:#fff;cursor:default }
.pv-caption { flex:1;min-width:5rem;font-size:.9rem;line-height:1.45 }
@media(max-width:510px) {
  .pv-dialog { width:100%;height:100%;max-height:100dvh;max-width:100%;border-radius:0;margin:0 }
  .pv-shell { height:100%;padding-block:env(safe-area-inset-top) env(safe-area-inset-bottom) }
  .pv-shell header,.pv-footer { padding:.55rem .7rem }
  .pv-viewport { height:100%;min-height:0 }
}
.mk-media-column:has(.sg-zoom) .pv-actions>button:first-child{display:none}
.mk-media-column:has([data-mk-gallery-slot][hidden], [data-mk-original-stage]:not([hidden])) .pv-actions>button:first-child{display:inline-flex}
