/* 协议页壳层：不覆盖 Word 正文样式，由 docx-preview 按文档自身样式渲染 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background: #fff;
}

#agreement-content {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#agreement-content.is-docx .docx-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 0;
}

#agreement-content.is-docx .docx-wrapper > section.docx {
  box-shadow: none;
  margin-bottom: 0;
  max-width: 100%;
  height: auto !important;
}

#agreement-content.is-docx .docx span {
  font-synthesis: none;
}

#agreement-content[hidden] {
  display: none;
}

#status {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  background: #fff;
}

#status .loading-icon {
  width: 40px;
  height: 40px;
  display: block;
  position: relative;
  top: -150px;
}

html[data-theme='dark'],
html[data-theme='dark'] body,
html[data-theme='dark'] #status,
html[data-theme='dark'] #agreement-content.is-docx,
html[data-theme='dark'] #agreement-content.is-docx .docx-wrapper,
html[data-theme='dark'] #agreement-content.is-docx section.docx,
html[data-theme='dark'] #agreement-content.is-docx article {
  background: #0d0d12 !important;
  color: #ffffff !important;
}

html[data-theme='dark'] #status a,
html[data-theme='dark'] #agreement-content.is-docx .docx,
html[data-theme='dark'] #agreement-content.is-docx .docx p,
html[data-theme='dark'] #agreement-content.is-docx .docx span,
html[data-theme='dark'] #agreement-content.is-docx .docx a,
html[data-theme='dark'] #agreement-content.is-docx .docx td,
html[data-theme='dark'] #agreement-content.is-docx .docx th,
html[data-theme='dark'] #agreement-content.is-docx .docx li,
html[data-theme='dark'] #agreement-content.is-docx .docx :before {
  color: #ffffff !important;
}
