body.is-ai-viewer {
  --ai-blue: #123c7c;
  --ai-blue-soft: #e9f0fb;
  --ai-frame: 5px;
  --ai-frame-gap: 5px;
  background: #b8b8b8;
}

body.is-ai-viewer .main {
  position: relative;
  background: #f7faff;
}

body.is-ai-viewer .main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: min(calc(100% - (var(--ai-frame-gap) * 2)), 980px);
  border: var(--ai-frame) solid var(--ai-blue);
  pointer-events: none;
  transform: translateX(-50%);
}

body.is-ai-viewer .appHeader {
  background: linear-gradient(90deg, #0d326d, var(--ai-blue), #1d5aa5);
  color: #fff;
  box-shadow: none;
}

body.is-ai-viewer .brandMark {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0px 0px 20px 0px rgba(255, 255, 255, 0.22),
    0px 4px 15px 7px rgba(255, 255, 255, 0.5);
}

body.is-ai-viewer .brandMark__aiBadge {
  position: absolute;
  right: -9px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 21px;
  padding: 0px 2px 2px;
  border: 1px solid #123c7c;
  border-radius: 3px;
  background: #335d9c;
}

body.is-ai-viewer .brandMark__aiBadge img {
  display: block;
  width: 31px;
  height: auto;
}

body.is-ai-viewer .headTitle {
  color: #fff;
}

body.is-ai-viewer .dot {
  background: rgba(255, 255, 255, 0.45);
}

body.is-ai-viewer .dot.is-active {
  background: #fff;
}

body.is-ai-viewer .menuBtn__icon i {
  background: rgba(255, 255, 255, 0.9);
}

body.is-ai-viewer .menuBtn__label,
body.is-ai-viewer .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.aiPaper {
  border: 0;
  padding: 0;
}

.aiPage {
  padding: 28px 24px;
  border: 0;
  line-height: 1.85;
}

body.is-ai-viewer .navArrow {
  position: fixed;
  top: 50vh;
  z-index: 75;
  transform: translateY(-50%);
}

body.is-ai-viewer .navArrow--left {
  left: max(-6px, calc((100vw - 980px) / 2 - 22px));
}

body.is-ai-viewer .navArrow--right {
  right: max(-6px, calc((100vw - 980px) / 2 - 22px));
}

.viewerModeSwitch--normalBoard {
  border: 2px solid var(--ai-blue);
  background: #9bafcd;
  color: #fff;
  box-shadow: 7px 9px 0 rgba(0, 0, 0, 0.28);
}

.aiPage h1,
.aiPage h2,
.aiPage h3 {
  line-height: 1.45;
}

.aiPage mark {
  background: #fff176;
  padding: 0 2px;
}

.aiMissingPage {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
  padding: 28px;
  line-height: 1.8;
  text-align: center;
}

.aiMissingPage__text {
  position: fixed;
  top: 50vh;
  left: 50%;
  z-index: 62;
  width: min(80vw, 24em);
  transform: translate(-50%, -50%);
}

.aiModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
}

.aiModal[hidden] {
  display: none;
}

.aiModal__panel {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.aiModal__panel h2 {
  margin: 0 0 12px;
  color: var(--ai-blue);
}

.aiModal__panel p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.aiModal__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 14px;
}

.aiModal__button {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ai-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
}
