.mqp-mount[hidden], .mqp-dialog [hidden] { display: none !important; }
.mqp-mount { display: block; margin: 12px 0 22px; padding: 0; text-align: left; text-indent: 0; }
.mqp-mount.mqp-in-hero { margin: 18px 0 0; }
.mqp-open, .mqp-dialog button, .mqp-dialog .mqp-download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: .55em;
  min-height: 44px;
  margin: 0;
  border: 1px solid #856446;
  border-radius: 8px;
  padding: 8px 14px;
  font: 600 14px/1.45 "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .015em;
  text-align: center;
  text-indent: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mqp-open {
  background: #faf1e4;
  color: #573823;
}
.mqp-open:hover { background: #f2e3cd; color: #432d20; }
.mqp-in-hero .mqp-open {
  background: #2d1c17;
  color: #ffdfa7;
  border-color: #ae865b;
}
.mqp-in-hero .mqp-open:hover { background: #422a20; color: #fff4e5; }
.mqp-open:focus-visible, .mqp-dialog :is(button, a):focus-visible {
  outline: 2px solid #bd874b;
  outline-offset: 3px;
}
.mqp-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 14px;
  background: rgb(12 8 8 / .80);
  overscroll-behavior: contain;
}
.mqp-dialog[hidden] { display: none !important; }
.mqp-dialog *, .mqp-dialog *::before, .mqp-dialog *::after { box-sizing: border-box; }
.mqp-dialog .mqp-panel {
  width: min(100%, 610px);
  min-height: 0;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #745841;
  border-radius: 18px;
  background: #201616;
  color: #fff5e6;
  box-shadow: 0 24px 90px #05030280;
  text-align: left;
  font: 400 15px/1.5 "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
.mqp-dialog .mqp-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
}
.mqp-dialog h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 19px/1.4 "方正悠宋509R", "Songti SC", "Noto Serif CJK SC", serif;
  color: inherit;
}
.mqp-dialog .mqp-close {
  width: 44px;
  padding: 0;
  border-radius: 50%;
  background: #302222;
  border-color: #745841;
  color: #fff5e6;
  font-size: 24px;
  font-weight: 400;
}
.mqp-dialog .mqp-preview {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px 14px;
}
.mqp-dialog .mqp-status {
  margin: 0 0 8px;
  padding: 0;
  color: #dfc8b1;
  font-size: 13px;
  text-align: center;
}
.mqp-dialog .mqp-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 214px);
  max-height: calc(100dvh - 214px);
  flex: none;
  border-radius: 6px;
  margin: 0;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
}
.mqp-dialog .mqp-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px max(13px, env(safe-area-inset-bottom));
  border-top: 1px solid #5f4739;
}
.mqp-dialog .mqp-actions :is(button, a) { color: #f8dbad; background: #2b2020; border-color: #aa835f; }
.mqp-dialog .mqp-actions :is(button, a):hover { background: #432e28; }
.mqp-dialog .mqp-actions :is(.mqp-share, .mqp-retry) { color: #2a1a15; background: #f3cc8e; border-color: #f3cc8e; }
.mqp-dialog .mqp-actions :is(.mqp-share, .mqp-retry):hover { color: #251713; background: #ffdfa5; }
.mqp-dialog button:disabled { opacity: .55; cursor: default; }
@media (max-width: 420px) {
  .mqp-dialog { padding: 8px; }
  .mqp-dialog .mqp-actions { gap: 6px; }
  .mqp-dialog .mqp-actions :is(button, a) { padding-inline: 10px; font-size: 13px; }
}
