.book-reader[data-font='sans'] .book-line {
  font-family: 'Noto Sans', sans-serif;
}
.book-reader[data-font='serif'] .book-line {
  font-family: 'Noto Serif', serif;
}
.book-reader .book-line {
  font-size: var(--book-font-size, 18px);
}
.book-settings {
  max-height: min(80dvh, 700px);
  overflow-y: auto;
}
.book-settings-head {
  position: sticky;
  top: calc(-1 * var(--s-3));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-3)) 0;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3);
  background: var(--glass-strong);
  border-bottom: 1px solid var(--border);
}
.book-settings-head h2 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
}
.book-settings-head .icon-btn {
  --icon-control-size: 44px;
}
.book-settings-actions {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.book-settings-actions .btn {
  min-height: 44px;
  justify-content: center;
  padding-inline: var(--s-3);
}
.book-settings-actions .book-delete {
  justify-self: stretch;
  background: color-mix(in srgb, var(--danger) 7%, transparent);
}
.book-reader .book-line-tr,
.book-reader .book-line-card-text {
  font-size: var(--book-translation-font-size, 15px);
}
.book-size-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-2);
}
.book-size-value {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.book-size-slider {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  min-height: 44px;
  background: transparent;
  cursor: pointer;
}
.book-size-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--accent) var(--range-progress),
    var(--surface-2) var(--range-progress)
  );
}
.book-size-slider::-moz-range-track {
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--accent) var(--range-progress),
    var(--surface-2) var(--range-progress)
  );
}
.book-size-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 3px solid var(--surface);
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: var(--glass-edge), var(--shadow-1);
}
.book-size-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--surface);
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: var(--glass-edge), var(--shadow-1);
}
.book-size-slider:focus-visible {
  outline: none;
}
.book-size-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}
.book-size-slider:focus-visible::-moz-range-thumb {
  box-shadow: var(--ring);
}
