.xyzmpc-locked {
  overflow: hidden;
}

html.xyzmpc-booting body {
  visibility: hidden;
}

.xyzmpc-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgb(239 107 93 / 16%), transparent 30%),
    radial-gradient(circle at 84% 82%, rgb(85 109 97 / 14%), transparent 34%),
    rgb(250 247 244 / 96%);
  backdrop-filter: blur(14px);
}

.xyzmpc-consent-card {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid rgb(91 70 62 / 16%);
  border-radius: 24px;
  background: #fffdfb;
  color: #2a201d;
  box-shadow: 0 28px 80px rgb(45 30 24 / 16%);
}

.xyzmpc-consent-card {
  width: min(100%, 760px);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
}

.xyzmpc-consent-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.xyzmpc-consent-card h2 {
  font-size: 22px;
}

.xyzmpc-eyebrow {
  margin: 0 0 6px;
  color: #b84d40;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.xyzmpc-muted,
.xyzmpc-consent-card p {
  margin: 0;
  color: #7b6b64;
  font-size: 14px;
  line-height: 1.7;
}

.xyzmpc-primary,
.xyzmpc-secondary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.xyzmpc-primary {
  border: 1px solid #2a201d;
  background: #2a201d;
  color: #fff;
}

.xyzmpc-secondary {
  border: 1px solid rgb(91 70 62 / 22%);
  background: #fff;
  color: #2a201d;
}

.xyzmpc-primary:disabled,
.xyzmpc-secondary:disabled {
  cursor: default;
  opacity: 0.45;
}

.xyzmpc-agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #5f514b;
  font-size: 13px;
  line-height: 1.6;
}

.xyzmpc-agree input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #b84d40;
}

.xyzmpc-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: #b84d40;
  font-size: 13px;
  line-height: 1.55;
}

.xyzmpc-documents {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.xyzmpc-document {
  border: 1px solid rgb(91 70 62 / 14%);
  border-radius: 14px;
  background: #fff;
}

.xyzmpc-document summary {
  padding: 13px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.xyzmpc-document pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 0 16px 16px;
  color: #5f514b;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.xyzmpc-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.xyzmpc-balance {
  width: fit-content;
  margin: 12px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #5f514b;
  font-size: 13px;
  line-height: 1.2;
}

.xyzmpc-balance strong {
  color: #2a201d;
}

.work-delete-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b6b64;
  cursor: pointer;
}

.work-delete-button:hover {
  background: rgb(184 77 64 / 9%);
  color: #b84d40;
}

.work-delete-button:focus-visible {
  outline: 2px solid #b84d40;
  outline-offset: 2px;
}

.post-toolbar .work-delete-button,
.native-nav > .work-delete-button {
  flex: 0 0 44px;
}

.history-work-delete {
  min-height: 32px;
  margin-left: 8px;
  padding: 0 10px;
  border: 1px solid rgb(91 70 62 / 20%);
  border-radius: 999px;
  background: transparent;
  color: #7b6b64;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.history-work-delete:hover {
  border-color: rgb(184 77 64 / 35%);
  color: #b84d40;
}

.video-long-notice {
  margin: 0 0 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgb(184 77 64 / 8%);
  color: #8d4037;
  font-size: 12px;
  line-height: 1.55;
}

.video-long-notice[hidden] {
  display: none;
}

.settings-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 38px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.settings-select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice-note {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.25;
}

.live-button:disabled,
#open-exclusive-models:disabled {
  opacity: .52;
  cursor: not-allowed;
}

/* Keep development-only routing and unfinished settings hidden.
   「设置」入口已开放给客户改密码（2026-11-16）；页内两个未开放的开关仍隐藏。 */
[data-unfinished-setting],
#experience-quota,
#community-notice-dialog,
#image-route-toggle,
#image-route-picker,
#image-route-panel {
  display: none !important;
}

.mode-choice[data-single-image] .mode-choice-check {
  visibility: hidden;
}

.mode-choice[data-single-image].is-selected .mode-choice-check {
  visibility: visible;
}

@media (max-width: 640px) {
  .xyzmpc-gate {
    padding: 12px;
  }

  .xyzmpc-consent-card {
    padding: 20px;
    border-radius: 20px;
  }

  .xyzmpc-consent-card {
    max-height: calc(100vh - 24px);
  }
}
