.reader-preview-body {
  height: 100dvh;
  overflow: hidden;
  background: #f4f6f3;
}
.reader-preview-header {
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.reader-preview-header .brand span {
  font-size: 19px;
}
.reader-preview-header .brand em {
  font-size: 18px;
}
.reader-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid #315b4825;
  border-radius: 9px;
  background: #fcfdf9c0;
  color: #315b48;
  font-size: 11px;
}
.reader-home-link:hover {
  background: #e8efe7;
}
.reader-preview-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #e4ece2 0, #f4f6f3 65%);
}
.reader-device-slot {
  position: relative;
  flex-shrink: 0;
  width: 410px;
  height: 888.333333px;
}
.reader-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 410px;
  height: 888.333333px;
  padding: 26px 10px 18.333333px;
  box-sizing: border-box;
  border-radius: 45px;
  background: #253c33;
  box-shadow:
    0 0 0 1px #152a22,
    inset 0 0 0 3px #476052,
    0 20px 55px #253c332a,
    0 5px 14px #253c3318;
  transform-origin: top left;
  transform: scale(var(--reader-scale, 1));
}
.reader-device-screen {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 30px;
  background: #fcfdf9;
}
#reader-screen {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  background: #fcfdf9;
}
#reader-screen[hidden] {
  display: none;
}
.reader-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 61px;
  height: 10px;
  border-radius: 12px;
  background: #14271f;
  box-shadow: inset 0 1px 2px #0006;
}
.reader-camera span {
  position: absolute;
  right: 5px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #253f38;
}
.reader-side-button,
.reader-power-button {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #253c33;
}
.reader-side-button {
  left: -3px;
}
.reader-side-button-short {
  top: 112px;
  height: 30px;
}
.reader-side-button-long {
  top: 161px;
  height: 62px;
}
.reader-power-button {
  right: -3px;
  top: 166px;
  height: 59px;
}
.reader-home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 93px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: #d8e2d27d;
  pointer-events: none;
}
.reader-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  color: #647569;
  font-size: 14px;
  line-height: 2;
}
.reader-loading[hidden] {
  display: none;
}
.reader-preview-caption {
  position: absolute;
  bottom: 19px;
  left: 20px;
  right: 20px;
  text-align: center;
  color: #647569;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.reader-preview-caption span {
  margin-inline: 5px;
}
@media (max-width: 650px) {
  .reader-preview-header {
    top: 15px;
    left: 19px;
    right: 19px;
  }
  .reader-preview-header .brand img {
    width: 27px;
    height: 27px;
  }
  .reader-preview-header .brand span {
    font-size: 16px;
  }
  .reader-preview-header .brand em {
    font-size: 15px;
  }
  .reader-home-link {
    font-size: 10px;
    padding: 8px 11px;
  }
  .reader-preview-caption {
    bottom: 16px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reader-home-link {
    transition: none;
  }
}

.reader-preview-header .site-language {
  margin-left: auto;
}
.reader-home-link {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .reader-preview-header {
    gap: 8px;
  }
  .reader-preview-header .brand span {
    font-size: 0;
  }
  .reader-preview-header .brand em {
    font-size: 15px;
  }
  .reader-preview-header .brand {
    gap: 6px;
  }
  .reader-home-link {
    padding-inline: 8px;
  }
}
