.save-img-btn {
  cursor: pointer;
}
body.xz-saving-shot .xp-top,body.xz-saving-shot .topbar,body.xz-saving-shot .app-top,body.xz-saving-shot .nav-top,body.xz-saving-shot .tb-sub,body.xz-saving-shot .xp-tabs,body.xz-saving-shot .result-tabs,body.xz-saving-shot .tabs,body.xz-saving-shot .seg[data-seg="rtab"],body.xz-saving-shot .xp-actions,body.xz-saving-shot .result-actions,body.xz-saving-shot .save-actions,body.xz-saving-shot .xz-actions,body.xz-saving-shot .save-img-btn,body.xz-saving-shot .xz-fab,body.xz-saving-shot .xz-toast,body.xz-saving-shot .toast,body.xz-saving-shot .xz-ai-panel,body.xz-saving-shot .xz-ai-fab,body.xz-saving-shot .xzai-fab,body.xz-saving-shot .xz-ai-launch,body.xz-saving-shot .xz-ai-nav,body.xz-saving-shot .xz-imgsave-mask {
  display: none!important;
}
body.xz-saving-shot #app * {
  animation: none!important;
  transition: none!important;
  caret-color: transparent!important;
}
.save-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ui-surface);
}
.save-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ui-text);
  font-size: 14px;
  letter-spacing: .05em;
}
.save-spin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(22,124,128,0.25);
  border-top-color: var(--ui-primary);
  animation: saveSpin .8s linear infinite;
}
@keyframes saveSpin {
  to {
    transform: rotate(360deg);
  }
}
.save-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%) translateY(10px);
  z-index: 100000;
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid rgba(22,124,128,0.4);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: .875rem;
  opacity: 0;
  transition: opacity .3s,transform .3s;
  pointer-events: none;
}
.save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.save-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--ui-surface);
}
.save-preview-box {
  width: min(94vw,720px);
  max-height: 90%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--ui-surface);
  border: 1px solid rgba(22,124,128,0.38);
  box-shadow: var(--ui-shadow);
}
.save-preview-hint {
  text-align: center;
  color: var(--ui-text);
  font-size: .875rem;
}
.save-preview-scroll {
  overflow: auto;
  max-height: 72vh;
  border-radius: 9px;
  background: var(--ui-bg);
  -webkit-overflow-scrolling: touch;
}
.save-preview-scroll img {
  display: block;
  width: 100%;
  height: auto;
}
.save-preview-actions {
  display: flex;
  gap: 10px;
}
.save-preview-actions a,.save-preview-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid rgba(22,124,128,0.45);
  background: transparent;
  color: var(--ui-text);
  text-decoration: none;
  font: inherit;
}
.save-preview-actions a {
  background: var(--ui-primary);
  color: white;
  border-color: var(--ui-primary);
}

/* 与排盘页共享明亮的弹窗表面。 */
.save-overlay, .save-preview-mask { background: rgb(26 48 55 / 28%); backdrop-filter: blur(4px); }
.save-overlay-box { padding: 28px; border: 1px solid var(--ui-border); border-radius: 16px; background: white; box-shadow: var(--ui-shadow-raised); }
.save-toast { background: #28494f; color: white; border: 0; }
.save-preview-box { padding: 20px; background: white; box-shadow: var(--ui-shadow-raised); border-color: var(--ui-border); }
.save-preview-hint { color: var(--ui-muted); font-size: .875rem; }
.save-preview-actions a { background: var(--ui-primary); color: white; }
.save-preview-actions button { background: white; color: var(--ui-text); }
.save-preview-actions a, .save-preview-actions button { min-height: 46px; font-size: .875rem; }
