/* Private reader preview: book information, introduction and discussion are
   separate surfaces. Every rule is scoped away from the public reader theme. */
body.wyl-frontend-preview .wyl-book-page {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: 20px 0 56px;
}
body.wyl-frontend-preview .wyl-book-page .wyl-breadcrumb {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--wyl-muted);
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-entity, .wyl-book-summary, .wyl-book-comments) {
  width: 100%;
  max-width: none;
  border: 1px solid var(--wyl-line);
  border-radius: 12px;
  background: var(--wyl-surface);
  box-shadow: 0 3px 14px rgba(24, 30, 40, .035);
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-entity {
  display: block;
  margin: 0;
  padding: 24px;
  overflow: visible;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-main {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px 26px;
  align-items: start;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-cover {
  grid-column: 1;
  grid-row: 1;
  width: 156px;
  height: 218px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 8px;
  background: var(--wyl-surface-soft);
  box-shadow: 0 5px 16px rgba(24, 30, 40, .1);
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-copy {
  display: block;
  min-width: 0;
  max-width: none;
  padding: 0;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px 12px;
  min-width: 0;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-copy h1 {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--wyl-ink);
  font-family: inherit;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.wyl-frontend-preview .wyl-book-page .wyl-edit-book {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin: 2px 0 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--wyl-muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-author {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--wyl-ink-2);
  font-size: 14px;
  line-height: 1.65;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-author > span { color: var(--wyl-muted); font-size: 12px; }
body.wyl-frontend-preview .wyl-book-page .wyl-entity-author a { color: inherit; }
body.wyl-frontend-preview .wyl-book-page .wyl-fact-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  margin: 0;
  color: var(--wyl-muted);
  font-size: 13px;
  line-height: 1.7;
}
body.wyl-frontend-preview .wyl-book-page .wyl-fact-separator { color: var(--wyl-muted); opacity: .65; }
body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
  margin: 18px 0 0;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions > :is(.wyl-book-download, .wyl-book-favorite-inline) {
  height: 46px;
  min-height: 46px;
  max-height: none;
  align-self: auto;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-download {
  order: 0;
  flex: 0 1 auto;
  min-width: 174px;
  max-width: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wyl-preview-action);
  border-radius: 8px;
  background: var(--wyl-preview-action);
  color: var(--wyl-preview-action-ink);
  box-shadow: none;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-download.is-single { grid-template-columns: minmax(0, 1fr); }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px 0 0 7px;
  background: var(--wyl-preview-action);
  color: var(--wyl-preview-action-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-download.is-single .wyl-book-download-main { border-radius: 7px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-main .wyl-icon { width: 18px; height: 18px; flex: 0 0 18px; transform: none; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-main strong { font-size: inherit; font-weight: 600; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--wyl-preview-action-ink) 25%, transparent);
  border-radius: 0 7px 7px 0;
  background: var(--wyl-preview-action);
  color: var(--wyl-preview-action-ink);
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-toggle .wyl-icon { width: 18px; height: 18px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-main:hover,
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-toggle:hover,
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-toggle[aria-expanded="true"] {
  background: color-mix(in srgb, var(--wyl-preview-action) 91%, var(--wyl-ink));
  color: var(--wyl-preview-action-ink);
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline {
  order: 1;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--wyl-line);
  border-radius: 8px;
  background: var(--wyl-surface);
  color: var(--wyl-ink-2);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline .wyl-icon { width: 18px; height: 18px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline:is(:hover, .is-active) { border-color: var(--wyl-jade); color: var(--wyl-jade); background: var(--wyl-surface); }
body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions > .wyl-download-code {
  order: 2;
  flex: 0 0 100%;
  min-height: 30px;
  margin: -3px 0 0;
  padding: 3px 0;
  color: var(--wyl-muted);
  font-size: 12px;
  line-height: 1.5;
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions > .wys-link-feedback {
  order: 3;
  flex: 0 0 100%;
  margin: -3px 0 0;
  padding: 0 !important; /* Reset the public theme's important 14px inset. */
}
body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions .wys-feedback-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--wyl-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
body.wyl-frontend-preview .wyl-book-page .wys-feedback-trigger strong { color: var(--wyl-jade); font-size: inherit; font-weight: 500; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-menu {
  z-index: 30;
  top: calc(100% + 7px);
  left: -1px;
  right: auto;
  width: min(272px, calc(100vw - 56px));
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--wyl-line);
  border-radius: 10px;
  background: var(--wyl-surface-raised);
  box-shadow: 0 12px 30px rgba(20, 24, 32, .15);
  transform-origin: top left;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-menu button { min-height: 48px; padding: 9px 10px; border-radius: 6px; color: var(--wyl-ink-2); font-size: 13px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-menu button strong { font-size: 13px; font-weight: 500; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-menu button small { color: var(--wyl-muted); font-size: 11px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-download-menu button:is(:hover, :focus-visible, [aria-selected="true"]) { background: var(--wyl-surface-soft); color: var(--wyl-jade); }
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: var(--wyl-muted);
  font-size: 12px;
  line-height: 1.6;
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) > strong {
  display: block;
  flex: 0 0 auto;
  min-width: 72px;
  padding-top: 3px;
  color: var(--wyl-muted);
  font-size: 12px;
  font-weight: 400;
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--wyl-surface-soft);
  color: var(--wyl-ink-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary {
  --wyl-summary-collapsed-height: 7.2em;
  display: block;
  grid-column: auto;
  margin: 16px 0 0;
  padding: 20px 24px 14px;
  overflow: hidden;
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-summary-title, .wyl-book-comments-head h2) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--wyl-ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-summary-title, .wyl-book-comments-head h2)::before { content: ""; width: 3px; height: 18px; flex: 0 0 3px; border-radius: 2px; background: var(--wyl-jade); }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-title { margin-bottom: 12px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary > .wyl-book-summary-text {
  display: block;
  max-width: none;
  max-height: var(--wyl-summary-collapsed-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--wyl-ink-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-line-clamp: unset;
  -webkit-mask-image: none;
  mask-image: none;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary.is-expanded > .wyl-book-summary-text { max-height: var(--wyl-summary-full-height, 80em); }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--wyl-line);
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-control[hidden] { display: none; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-control > span[aria-hidden] { display: none; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-toggle { min-height: 44px; padding: 4px 12px; color: var(--wyl-muted); font-size: 13px; font-weight: 400; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-toggle:hover { color: var(--wyl-jade); }
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments {
  margin: 16px 0 0;
  padding: 20px 24px 18px;
  overflow: visible;
  scroll-margin-top: calc(var(--wyl-header-height) + 12px);
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > div { align-items: center; gap: 10px; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > div > span { color: var(--wyl-muted); font-size: 12px; white-space: nowrap; }
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > button {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--wyl-jade) 30%, var(--wyl-line));
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: var(--wyl-jade);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-comments-body, .wyl-comments-inner) { width: 100%; max-width: none; padding: 0; border: 0; }
body.wyl-frontend-preview .wyl-book-page .comment-list { gap: 0; margin: 0; }
body.wyl-frontend-preview .wyl-book-page :is(.comment-list .comment, .wyl-comment-thread-preview-toggle) { scroll-margin-top: calc(var(--wyl-header-height) + 12px); }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-thread-preview-toggle { scroll-margin-bottom: 16px; }
/* A reveal transform must not move the native anchor after it has landed. */
body.wyl-frontend-preview .wyl-book-page .wyl-book-comments:is(:target, :has(.comment:target)) {
  opacity: 1;
  transform: none;
  transition: none;
}
body.wyl-frontend-preview .wyl-book-page .comment-list > .comment { border-bottom: 1px solid var(--wyl-line); }
body.wyl-frontend-preview .wyl-book-page .comment-list > .comment:last-child { border-bottom: 0; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-card { padding: 14px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author { align-items: flex-start; gap: 10px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author > img.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-copy { gap: 3px; padding-top: 0; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-line { gap: 6px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-line > strong { max-width: min(440px, 55vw); font-size: 14px; font-weight: 600; line-height: 1.5; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-copy > a { font-size: 12px; line-height: 1.5; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-content { padding: 6px 0 0 46px; color: var(--wyl-ink-2); font-size: 15px; line-height: 1.8; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-content p { margin-bottom: 6px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-content p:last-child { margin-bottom: 0; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-expand-control { padding-left: 46px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-foot { min-height: 36px; margin-top: 3px; padding-left: 46px; gap: 18px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-foot :is(a, button) { min-height: 36px; padding: 5px 0; color: var(--wyl-muted); font-size: 12px; font-weight: 400; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-foot :is(a, button):is(:hover, .is-active, [aria-expanded="true"]) { color: var(--wyl-jade); }
body.wyl-frontend-preview .wyl-book-page .comment-list .children { margin: 4px 0 12px 46px; padding: 10px 14px; gap: 0; border: 0; border-radius: 8px; background: var(--wyl-surface-soft); }
body.wyl-frontend-preview .wyl-book-page .comment-list .children .wyl-comment-card { padding: 5px 0; }
body.wyl-frontend-preview .wyl-book-page .comment-list .children .wyl-comment-author > img.avatar { width: 30px; height: 30px; flex-basis: 30px; }
body.wyl-frontend-preview .wyl-book-page .comment-list .children :is(.wyl-comment-content, .wyl-comment-foot, .wyl-comment-expand-control) { padding-left: 40px; }
body.wyl-frontend-preview .wyl-book-page .comment-list .children .children { margin: 8px 0 6px 12px; padding: 0 0 0 10px; border-left: 1px solid var(--wyl-line); border-radius: 0; background: transparent; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-thread-preview-toggle { min-height: 40px; margin: 0 0 10px 46px; padding: 4px 0; font-size: 12px; font-weight: 500; }
body.wyl-frontend-preview .wyl-book-page .comment-respond { margin: 12px 0 0; padding: 16px; border: 1px solid var(--wyl-line); border-radius: 8px; background: var(--wyl-surface-soft); box-shadow: none; }
body.wyl-frontend-preview .wyl-book-page .comment-reply-title { font-family: inherit; font-size: 17px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comment-form textarea { min-height: 120px; padding: 12px; border: 1px solid var(--wyl-line); border-radius: 7px; background: var(--wyl-surface); color: var(--wyl-ink-2); font-size: 15px; line-height: 1.8; }
body.wyl-frontend-preview .wyl-book-page :is(.wyl-comment-submit, .wyl-comment-cancel) { min-height: 42px; padding: 8px 16px; border-radius: 7px; font-size: 13px; }
body.wyl-frontend-preview .wyl-book-page .wyl-comments-empty { margin: 10px 0 0; padding: 16px 0; border: 0; background: transparent; }
body.wyl-frontend-preview .wyl-book-page .wyl-comments-empty strong { font-size: 14px; font-weight: 500; }
body.wyl-frontend-preview .wyl-book-page .wyl-comments-empty p { font-size: 13px; }
body.wyl-frontend-preview .wyl-book-page .wyl-related { margin: 24px 0 0; }

@media (max-width: 640px) {
  body.wyl-frontend-preview .wyl-book-page { width: calc(100% - 24px); padding: 14px 0 calc(88px + env(safe-area-inset-bottom)); }
  body.wyl-frontend-preview .wyl-book-page .wyl-breadcrumb { margin-bottom: 10px; font-size: 11px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-entity { padding: 16px; border-radius: 10px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-main { grid-template-columns: 88px minmax(0, 1fr); gap: 12px 16px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-cover { width: 88px; height: 126px; border-radius: 6px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-copy { display: contents; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-heading { grid-column: 2; grid-row: 1; gap: 5px 7px; align-self: start; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-copy h1 { font-size: 22px; line-height: 1.4; }
  body.wyl-frontend-preview .wyl-book-page .wyl-edit-book { min-height: 28px; margin: 1px 0 0; font-size: 10px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-author { font-size: 13px; line-height: 1.6; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-author > span { font-size: 11px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-fact-line { gap: 2px 5px; font-size: 12px; line-height: 1.7; }
  body.wyl-frontend-preview .wyl-book-page .wyl-entity-quick-actions { grid-column: 1 / -1; gap: 5px 8px; margin: 2px 0 0; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-download { flex: 1 1 0; min-width: 0; max-width: none; grid-template-columns: minmax(0, 1fr) 44px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-download-main { gap: 6px; padding-inline: 10px; font-size: 13px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline { flex: 0 1 auto; min-width: 0; gap: 6px; padding-inline: 12px; font-size: 13px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline .wyl-icon { width: 17px; height: 17px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-favorite-inline small { display: none; }
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) { grid-column: 1 / -1; margin: 0; gap: 6px 10px; }
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) > strong { min-width: 72px; }
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-formats, .wyl-feature-row) span { padding-inline: 8px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-summary { --wyl-summary-collapsed-height: 5.4em; margin-top: 12px; padding: 16px 16px 10px; border-radius: 10px; }
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-summary-title, .wyl-book-comments-head h2) { gap: 8px; font-size: 18px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-title { margin-bottom: 10px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-summary > .wyl-book-summary-text { font-size: 15px; line-height: 1.8; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-control { margin-top: 10px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-summary-toggle { min-height: 44px; font-size: 12px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-comments { margin-top: 12px; padding: 14px 16px; border-radius: 10px; }
  /* The mobile document already reserves 70px above native anchor targets. */
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-comments, .comment-list .comment, .wyl-comment-thread-preview-toggle) { scroll-margin-top: 0; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-thread-preview-toggle { scroll-margin-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head { min-height: 42px; margin-bottom: 4px; gap: 8px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > div { gap: 7px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > div > span { font-size: 11px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-book-comments-head > button { min-height: 44px; padding: 4px 8px; font-size: 12px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-card { padding: 12px 0; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-author > img.avatar { width: 34px; height: 34px; flex-basis: 34px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-line > strong { max-width: 48vw; font-size: 13px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-author-copy > a { font-size: 11px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-content { padding-left: 44px; font-size: 14px; line-height: 1.8; }
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-comment-foot, .wyl-comment-expand-control) { padding-left: 44px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-foot { margin-top: 1px; gap: 18px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-foot :is(a, button) { min-height: 40px; font-size: 12px; }
  body.wyl-frontend-preview .wyl-book-page .comment-list .children { margin-left: 32px; padding: 8px 10px; }
  body.wyl-frontend-preview .wyl-book-page .comment-list .children .wyl-comment-author > img.avatar { width: 28px; height: 28px; flex-basis: 28px; }
  body.wyl-frontend-preview .wyl-book-page .comment-list .children :is(.wyl-comment-content, .wyl-comment-foot, .wyl-comment-expand-control) { padding-left: 38px; }
  body.wyl-frontend-preview .wyl-book-page .comment-list .children .children { margin-left: 8px; padding-left: 8px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-comment-thread-preview-toggle { min-height: 44px; margin-left: 44px; }
  body.wyl-frontend-preview .wyl-book-page .wyl-related { margin-top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.wyl-frontend-preview .wyl-book-page :is(.wyl-book-download-main, .wyl-book-download-toggle, .wyl-book-favorite-inline, .wyl-book-comments-head > button) { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
}
