.wg-image-save-root[hidden] { display: none !important; }
.wg-image-save-root { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 16px; color: #1c2a3c; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.wg-image-save-root, .wg-image-save-root * { box-sizing: border-box; }
.wg-image-save-mask { position: absolute; inset: 0; background: rgba(11, 22, 38, .68); }
.wg-image-save-dialog { position: relative; display: flex; flex-direction: column; width: min(var(--site-content-max-width, 800px), 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; border: 1px solid #dce4ec; border-radius: 14px; background: #fff; box-shadow: 0 22px 70px rgba(0, 0, 0, .3); }
.wg-image-save-header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #e7edf3; }
.wg-image-save-title { flex: 1; margin: 0; color: #203248; font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.wg-image-save-root button { margin: 0; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wg-image-save-close { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border: 1px solid #dce4ed; border-radius: 8px; color: #46566a; background: #f4f7fa; font-size: 25px; line-height: 1; }
.wg-image-save-body { flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #edf2f7; }
.wg-image-save-status { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #cdddF0; border-radius: 8px; color: #35506e; background: #f6faff; font-size: 13px; line-height: 1.8; }
.wg-image-save-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; border: 0; background: #fff; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.wg-image-save-footer { display: flex; flex: 0 0 auto; gap: 10px; padding: 13px 16px; border-top: 1px solid #e3eaf1; background: #fff; }
.wg-image-save-share, .wg-image-save-done { flex: 1; min-height: 44px; padding: 10px 14px; border: 1px solid #cfdbe8; border-radius: 8px; background: #f3f6fa; color: #30475f; font-size: 15px; font-weight: 600; line-height: 1.5; }
.wg-image-save-share { border-color: #2563eb; color: #fff; background: #2563eb; }
.wg-image-save-share[hidden] { display: none !important; }
.wg-image-save-root button:disabled { opacity: .55; cursor: wait; }
.wg-image-save-root button:focus-visible { outline: 3px solid #93b7f7; outline-offset: 2px; }
@media (max-width: 620px) {
    .wg-image-save-root { padding: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .wg-image-save-dialog { width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom))); border-radius: 10px; }
    .wg-image-save-header { padding: 11px 13px; }
    .wg-image-save-body { padding: 11px; }
    .wg-image-save-footer { padding: 11px; }
}
