.book-root {
  --book-ink: #17202e;
  --book-muted: #647080;
  --book-paper: #fcfaf5;
  --book-panel: #ffffff;
  --book-line: #dfe3e8;
  --book-navy: #101a2b;
  --book-gold: #b8872f;
  --book-maroon: #7b2d34;
  --book-teal: #2c706c;
  --book-font-scale: 1;
  color: var(--book-ink);
  min-width: 0;
}

.book-root *,
.book-root *::before,
.book-root *::after {
  box-sizing: border-box;
}

.book-root button,
.book-root input {
  font: inherit;
  letter-spacing: 0;
}

.book-root button {
  cursor: pointer;
}

.book-root button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.book-kicker,
.book-panel-label {
  color: var(--book-gold);
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.book-state {
  align-items: center;
  background: var(--book-paper);
  border: 1px solid var(--book-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58vh;
  padding: 48px 24px;
  text-align: center;
}

.book-state strong {
  color: var(--book-navy);
  font-size: 20px;
  margin-top: 14px;
}

.book-state p {
  color: var(--book-muted);
  margin: 7px 0 20px;
  max-width: 520px;
}

.book-state-mark {
  animation: book-pulse 1.2s ease-in-out infinite;
  border: 3px solid #d7bf8d;
  border-top-color: var(--book-navy);
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

@keyframes book-pulse {
  to { transform: rotate(360deg); }
}

.book-command {
  background: transparent;
  border: 1px solid var(--book-line);
  border-radius: 4px;
  color: var(--book-ink);
  min-height: 40px;
  padding: 9px 14px;
}

.book-command--primary {
  background: var(--book-navy);
  border-color: var(--book-navy);
  color: white;
  font-weight: 800;
}

.book-entrance {
  background: #f5f6f8;
  border: 1px solid #d8dde4;
  min-height: calc(100vh - 190px);
}

.book-entrance-head {
  align-items: center;
  background: var(--book-navy);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 25px 28px;
}

.book-entrance-head h2 {
  color: white;
  font-size: 24px;
  letter-spacing: 0;
  margin: 5px 0;
}

.book-entrance-head p {
  color: #c7d0dc;
  margin: 0;
}

.book-source-seal {
  align-items: center;
  border-left: 1px solid #526076;
  display: flex;
  gap: 10px;
  padding-left: 22px;
}

.book-source-seal strong {
  color: #e6c37a;
  font-size: 27px;
}

.book-source-seal span {
  color: #c7d0dc;
  font-size: 10px;
  max-width: 90px;
  text-transform: uppercase;
}

.book-entrance-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  min-height: 650px;
}

.book-route-panel,
.book-next-panel {
  background: white;
  padding: 20px 16px;
}

.book-route-panel {
  border-right: 1px solid var(--book-line);
}

.book-route-panel > strong {
  display: block;
  font-size: 17px;
  margin: 7px 0 10px;
}

.book-progress-track {
  background: #e7eaee;
  border-radius: 3px;
  height: 5px;
  margin-bottom: 22px;
  overflow: hidden;
}

.book-progress-track i {
  background: var(--book-teal);
  display: block;
  height: 100%;
}

.book-volume-list {
  display: grid;
  gap: 7px;
}

.book-volume-list button {
  background: #fff;
  border: 1px solid var(--book-line);
  border-left: 3px solid transparent;
  color: var(--book-ink);
  padding: 11px 10px;
  text-align: left;
}

.book-volume-list button:first-child {
  background: #f7f2e7;
  border-left-color: var(--book-gold);
}

.book-volume-list span,
.book-volume-list small {
  color: var(--book-muted);
  display: block;
  font-size: 9px;
}

.book-volume-list strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin: 4px 0;
}

.book-entry-main {
  background: var(--book-paper);
  min-width: 0;
  padding: 25px 28px 38px;
}

.book-entry-intro {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 17px;
}

.book-entry-intro h3 {
  color: var(--book-navy);
  font-size: 22px;
  margin: 5px 0 0;
}

.book-entry-intro > span {
  color: var(--book-muted);
  font-size: 10px;
}

.book-entry-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.book-entry-card {
  background: white;
  border: 1px solid var(--book-line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 17px;
}

.book-entry-card > span {
  color: var(--book-teal);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.book-entry-card h3 {
  color: var(--book-navy);
  font-size: 17px;
  margin: 9px 0 6px;
}

.book-entry-card p {
  color: var(--book-muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.book-entry-card button {
  background: transparent;
  border: 1px solid #cbd1d9;
  border-radius: 3px;
  color: #3d4857;
  font-size: 10px;
  font-weight: 800;
  margin-top: auto;
  min-height: 36px;
}

.book-entry-card--primary {
  background: var(--book-navy);
  border-color: var(--book-navy);
  color: white;
  box-shadow: 0 12px 25px rgba(16, 26, 43, .16);
}

.book-entry-card--primary > span {
  color: #e6c37a;
}

.book-entry-card--primary h3 {
  color: white;
}

.book-entry-card--primary p {
  color: #cbd3df;
}

.book-entry-card--primary button {
  background: var(--book-gold);
  border-color: var(--book-gold);
  color: var(--book-navy);
}

.book-first-step {
  border-top: 1px solid #ddd8cd;
  margin-top: 25px;
  padding-top: 22px;
}

.book-first-step-copy h3 {
  color: var(--book-navy);
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 6px 0;
}

.book-first-step-copy p {
  color: var(--book-muted);
  font-size: 10px;
  margin: 0;
}

.book-sequence-list {
  background: white;
  border: 1px solid var(--book-line);
  margin-top: 15px;
}

.book-sequence-list > div {
  align-items: center;
  border-bottom: 1px solid #eaecf0;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px 1fr auto;
  min-height: 48px;
  padding: 9px 13px;
}

.book-sequence-list > div:last-child {
  border-bottom: 0;
}

.book-sequence-list span {
  align-items: center;
  border: 1px solid #ccd2da;
  border-radius: 50%;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.book-sequence-list div:first-child span {
  background: var(--book-navy);
  border-color: var(--book-navy);
  color: white;
}

.book-sequence-list strong {
  font-size: 11px;
}

.book-sequence-list small {
  color: var(--book-muted);
  font-size: 9px;
}

.book-next-strip {
  align-items: center;
  background: #f5efe2;
  border-left: 4px solid var(--book-gold);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 13px;
  padding: 13px 14px;
}

.book-next-strip strong,
.book-next-strip span {
  display: block;
}

.book-next-strip strong {
  color: #755717;
  font-size: 10px;
  text-transform: uppercase;
}

.book-next-strip span {
  color: #555c65;
  font-size: 10px;
  margin-top: 3px;
}

.book-next-panel {
  border-left: 1px solid var(--book-line);
}

.book-now-card {
  background: var(--book-navy);
  border-radius: 5px;
  color: white;
  margin: 12px 0 16px;
  padding: 15px;
}

.book-now-card small,
.book-now-card strong,
.book-now-card span {
  display: block;
}

.book-now-card small {
  color: #e6c37a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-now-card strong {
  font-size: 13px;
  line-height: 1.4;
  margin: 7px 0;
}

.book-now-card span {
  color: #cbd3df;
  font-size: 9px;
  line-height: 1.5;
}

.book-next-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-next-panel li {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 24px 1fr;
  margin: 11px 0;
}

.book-next-panel li > span {
  align-items: center;
  border: 1px solid #cbd2da;
  border-radius: 50%;
  display: flex;
  font-size: 8px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.book-next-panel li small,
.book-next-panel li strong {
  display: block;
}

.book-next-panel li small {
  color: var(--book-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.book-next-panel li strong {
  font-size: 9px;
  line-height: 1.4;
}

.book-source-note {
  border-top: 1px solid var(--book-line);
  margin-top: 18px;
  padding-top: 14px;
}

.book-source-note strong {
  font-size: 11px;
}

.book-source-note p {
  color: var(--book-muted);
  font-size: 9px;
  line-height: 1.55;
  margin: 6px 0 0;
}

.book-workspace {
  background: var(--book-paper);
  border: 1px solid #d7dce3;
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(250px, 300px);
  height: calc(100vh - 175px);
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.book-library-pane,
.book-outline-pane {
  background: var(--book-panel);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 15px 13px 24px;
}

.book-library-pane {
  border-right: 1px solid var(--book-line);
}

.book-outline-pane {
  border-left: 1px solid var(--book-line);
}

.book-pane-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.book-pane-head button,
.book-pane-head strong {
  color: var(--book-navy);
  font-size: 12px;
  font-weight: 850;
}

.book-pane-head button {
  background: transparent;
  border: 0;
  padding: 4px 0;
}

.book-pane-head span {
  color: var(--book-muted);
  font-size: 9px;
}

.book-search-launch {
  background: #f6f7f9;
  border: 1px solid #ccd2da;
  border-radius: 4px;
  color: #4c5867;
  font-size: 10px;
  margin-bottom: 13px;
  min-height: 38px;
  text-align: left;
  width: 100%;
}

.book-volume {
  border-bottom: 1px solid #e6e9ed;
}

.book-volume summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 3px;
  position: relative;
}

.book-volume summary::-webkit-details-marker {
  display: none;
}

.book-volume summary span,
.book-volume summary strong {
  display: block;
}

.book-volume summary span {
  color: var(--book-gold);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.book-volume summary strong {
  font-size: 10px;
  line-height: 1.35;
  margin-top: 3px;
  padding-right: 28px;
}

.book-volume summary small {
  color: var(--book-muted);
  font-size: 8px;
  position: absolute;
  right: 4px;
  top: 18px;
}

.book-volume > div {
  display: grid;
  gap: 2px;
  padding-bottom: 9px;
}

.book-volume > div button {
  align-items: start;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: #536071;
  display: grid;
  gap: 7px;
  grid-template-columns: 22px 1fr auto;
  padding: 8px 6px;
  text-align: left;
}

.book-volume > div button.is-active {
  background: #f5efe2;
  border-left-color: var(--book-gold);
  color: var(--book-navy);
}

.book-volume > div button > span,
.book-volume > div button > em {
  font-size: 8px;
}

.book-volume > div button > strong {
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

.book-volume > div button > em {
  color: var(--book-teal);
  font-style: normal;
  font-weight: 800;
}

.book-reader-pane {
  background: var(--book-paper);
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  scroll-padding-top: 82px;
}

.book-reader-toolbar {
  align-items: center;
  background: color-mix(in srgb, var(--book-paper) 94%, transparent);
  border-bottom: 1px solid #dedbd4;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  min-height: 58px;
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 8;
}

.book-reader-toolbar > button,
.book-reader-tools button {
  background: transparent;
  border: 1px solid #ccd1d8;
  border-radius: 3px;
  color: #465261;
  font-size: 9px;
  min-height: 32px;
  padding: 6px 8px;
}

.book-reader-toolbar > div > span,
.book-reader-toolbar > div > strong {
  display: block;
}

.book-reader-toolbar > div > span {
  color: var(--book-teal);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-reader-toolbar > div > strong {
  color: var(--book-navy);
  font-size: 11px;
  margin-top: 2px;
}

.book-reader-tools {
  display: flex;
  gap: 4px;
}

.book-reading-progress {
  background: #ece8df;
  height: 3px;
  position: sticky;
  top: 58px;
  z-index: 8;
}

.book-reading-progress i {
  background: var(--book-gold);
  display: block;
  height: 100%;
}

.book-prose {
  color: var(--book-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(16px * var(--book-font-scale));
  line-height: 1.72;
  margin: 0 auto;
  max-width: 790px;
  overflow-wrap: anywhere;
  padding: 38px 42px 70px;
}

.book-workspace.is-compact .book-prose {
  max-width: 650px;
}

.book-prose h1,
.book-prose h2,
.book-prose h3,
.book-prose h4,
.book-prose h5,
.book-prose h6 {
  color: var(--book-navy);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.24;
  scroll-margin-top: 82px;
}

.book-prose h1 {
  border-bottom: 3px solid var(--book-gold);
  font-size: calc(31px * var(--book-font-scale));
  margin: 0 0 28px;
  padding: 18px 20px 20px;
  background: var(--book-navy);
  color: white;
}

.book-prose h2 {
  font-size: calc(22px * var(--book-font-scale));
  margin: 35px 0 12px;
}

.book-prose h3 {
  color: #285b64;
  font-size: calc(18px * var(--book-font-scale));
  margin: 28px 0 10px;
}

.book-prose p {
  margin: 0 0 15px;
}

.book-prose ul,
.book-prose ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.book-prose li {
  margin: 6px 0;
  padding-left: 4px;
}

.book-prose blockquote {
  background: #f5efe2;
  border-left: 4px solid var(--book-gold);
  margin: 20px 0;
  padding: 13px 16px;
}

.book-prose blockquote p:last-child {
  margin-bottom: 0;
}

.book-prose table {
  border-collapse: collapse;
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: calc(12px * var(--book-font-scale));
  margin: 20px 0 25px;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.book-prose th,
.book-prose td {
  border: 1px solid #d8d4ca;
  min-width: 130px;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.book-prose th {
  background: #f1eadb;
  color: var(--book-navy);
}

.book-prose a {
  color: #24557a;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.book-prose code {
  background: #eef0f3;
  border-radius: 2px;
  font-size: .9em;
  padding: 1px 4px;
}

.book-chapter-footer {
  align-items: center;
  border-top: 1px solid #ddd8cd;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 34px 45px;
  padding-top: 18px;
}

.book-chapter-footer button {
  background: white;
  border: 1px solid #ccd2da;
  border-radius: 4px;
  color: #455161;
  min-height: 40px;
  padding: 8px 11px;
}

.book-chapter-footer button:last-child {
  justify-self: end;
}

.book-chapter-footer .is-complete {
  background: #eef7f4;
  border-color: #b9d8cf;
  color: var(--book-teal);
}

.book-position-stack {
  background: #f7f3ea;
  border-left: 3px solid var(--book-gold);
  margin-bottom: 13px;
  padding: 8px 10px;
}

.book-position-stack > div {
  border-bottom: 1px solid #e2ddd2;
  padding: 7px 0;
}

.book-position-stack > div:last-child {
  border-bottom: 0;
}

.book-position-stack small,
.book-position-stack strong {
  display: block;
}

.book-position-stack small {
  color: var(--book-gold);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.book-position-stack strong {
  font-size: 9px;
  line-height: 1.4;
  margin-top: 3px;
}

.book-outline-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 13px;
}

.book-outline-actions button {
  background: white;
  border: 1px solid #ccd2da;
  border-radius: 3px;
  color: #536071;
  font-size: 8px;
  min-height: 34px;
  padding: 5px;
}

.book-outline-nav {
  display: grid;
  gap: 2px;
}

.book-outline-link {
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  color: #586575;
  line-height: 1.4;
  padding: 7px 5px;
  text-align: left;
}

.book-outline-link:hover,
.book-outline-link:focus-visible {
  background: #f4efe5;
  border-left-color: var(--book-gold);
  color: var(--book-navy);
}

.book-outline-link--2 {
  font-size: 9px;
  font-weight: 750;
}

.book-outline-link--3 {
  font-size: 8px;
  padding-left: 13px;
}

.book-mobile-nav,
.book-drawer-backdrop {
  display: none;
}

.book-search-overlay {
  align-items: start;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 35px;
  position: fixed;
  z-index: 150;
}

.book-search-backdrop {
  background: rgba(8, 14, 24, .72);
  border: 0;
  inset: 0;
  position: absolute;
  width: 100%;
}

.book-search-panel {
  background: var(--book-paper);
  border: 1px solid #d7dce3;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  max-height: calc(100vh - 70px);
  max-width: 850px;
  overflow: auto;
  padding: 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.book-search-panel header {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.book-search-panel h2 {
  color: var(--book-navy);
  font-size: 22px;
  margin: 5px 0 15px;
}

.book-search-panel header button {
  background: transparent;
  border: 1px solid #ccd2da;
  border-radius: 3px;
  color: #4c5867;
  min-height: 34px;
  padding: 6px 10px;
}

.book-search-field span {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.book-search-field input {
  background: white;
  border: 2px solid var(--book-gold);
  border-radius: 4px;
  color: var(--book-ink);
  font-size: 14px;
  min-height: 48px;
  padding: 10px 13px;
  width: 100%;
}

.book-search-status {
  color: var(--book-muted);
  font-size: 10px;
  padding: 10px 2px;
}

.book-search-status.is-error {
  color: var(--book-maroon);
}

.book-search-results {
  display: grid;
  gap: 7px;
}

.book-search-result {
  background: white;
  border: 1px solid #dde1e6;
  border-left: 3px solid transparent;
  color: var(--book-ink);
  padding: 12px 13px;
  text-align: left;
}

.book-search-result:hover,
.book-search-result:focus-visible {
  border-left-color: var(--book-gold);
}

.book-search-result > span,
.book-search-result > strong,
.book-search-result > small,
.book-search-result > p {
  display: block;
}

.book-search-result > span {
  color: var(--book-teal);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-search-result > strong {
  color: var(--book-navy);
  font-size: 12px;
  margin: 4px 0;
}

.book-search-result > small {
  color: var(--book-gold);
  font-size: 8px;
}

.book-search-result > p {
  color: var(--book-muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.book-search-empty {
  border: 1px dashed #ccd2da;
  padding: 25px;
  text-align: center;
}

.book-search-empty strong {
  color: var(--book-navy);
}

.book-search-empty p {
  color: var(--book-muted);
  font-size: 11px;
  margin: 6px 0 0;
}

.book-root[data-book-theme="dark"] {
  --book-ink: #e5e8ed;
  --book-muted: #aeb8c5;
  --book-paper: #151a21;
  --book-panel: #1b222c;
  --book-line: #343e4b;
  --book-navy: #edf1f6;
}

.book-root[data-book-theme="dark"] .book-prose h1,
.book-root[data-book-theme="dark"] .book-entry-card--primary,
.book-root[data-book-theme="dark"] .book-now-card {
  background: #0b111c;
  color: white;
}

.book-root[data-book-theme="dark"] .book-search-result,
.book-root[data-book-theme="dark"] .book-entry-card,
.book-root[data-book-theme="dark"] .book-sequence-list,
.book-root[data-book-theme="dark"] .book-search-field input,
.book-root[data-book-theme="dark"] .book-chapter-footer button {
  background: #1d2530;
  color: #e5e8ed;
}

@media (max-width: 1180px) {
  .book-entrance-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .book-next-panel {
    display: none;
  }

  .book-entry-actions {
    grid-template-columns: 1.2fr 1fr;
  }

  .book-entry-card:last-child {
    grid-column: 1 / -1;
    min-height: 145px;
  }
}

@media (max-width: 980px) {
  .book-workspace {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .book-outline-pane {
    bottom: 0;
    box-shadow: -18px 0 40px rgba(10, 18, 30, .18);
    max-width: 330px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(102%);
    transition: transform .2s ease;
    width: 88vw;
    z-index: 25;
  }

  .book-outline-open .book-outline-pane {
    transform: translateX(0);
  }

  .book-outline-open .book-drawer-backdrop {
    display: block;
  }

  .book-drawer-backdrop {
    background: rgba(8, 14, 24, .42);
    border: 0;
    inset: 0;
    position: absolute;
    z-index: 20;
  }
}

@media (max-width: 800px) {
  .book-entrance-grid {
    display: block;
  }

  .book-route-panel {
    border-bottom: 1px solid var(--book-line);
    border-right: 0;
  }

  .book-volume-list {
    grid-template-columns: 1fr 1fr;
  }

  .book-entry-actions {
    grid-template-columns: 1fr;
  }

  .book-entry-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  body[data-active-tab="books"] .modebar,
  .app-shell[data-active-tab="books"] .modebar {
    display: none;
  }

  .modebar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .modebar__button[data-tab="books"]::before {
    content: "B";
  }

  .modebar__button[data-tab="books"]::after {
    content: "Books";
  }

  .book-entrance,
  .book-workspace {
    border-left: 0;
    border-right: 0;
  }

  .book-entrance-head {
    align-items: flex-start;
    padding: 20px 17px;
  }

  .book-entrance-head h2 {
    font-size: 20px;
  }

  .book-source-seal {
    display: none;
  }

  .book-route-panel {
    padding: 17px;
  }

  .book-volume-list {
    grid-template-columns: 1fr;
  }

  .book-entry-main {
    padding: 21px 16px 34px;
  }

  .book-entry-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .book-first-step-copy h3 {
    font-size: 22px;
  }

  .book-next-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .book-workspace {
    display: block;
    height: calc(100dvh - 124px);
    min-height: 560px;
  }

  .book-library-pane,
  .book-outline-pane {
    bottom: 0;
    box-shadow: 18px 0 40px rgba(10, 18, 30, .2);
    max-width: 330px;
    position: absolute;
    top: 0;
    transition: transform .2s ease;
    width: 88vw;
    z-index: 25;
  }

  .book-library-pane {
    left: 0;
    transform: translateX(-102%);
  }

  .book-outline-pane {
    left: auto;
    right: 0;
    transform: translateX(102%);
  }

  .book-chapters-open .book-library-pane,
  .book-outline-open .book-outline-pane {
    transform: translateX(0);
  }

  .book-chapters-open .book-drawer-backdrop,
  .book-outline-open .book-drawer-backdrop {
    display: block;
  }

  .book-reader-pane {
    height: 100%;
    padding-bottom: 58px;
  }

  .book-reader-toolbar {
    gap: 6px;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    min-height: 54px;
    padding: 7px 9px;
  }

  .book-reader-toolbar > button:last-child {
    display: none;
  }

  .book-reader-toolbar > div > strong {
    font-size: 9px;
  }

  .book-reader-tools button:nth-child(3) {
    display: none;
  }

  .book-reading-progress {
    top: 54px;
  }

  .book-prose {
    font-size: calc(16px * var(--book-font-scale));
    line-height: 1.7;
    padding: 25px 16px 55px;
  }

  .book-prose h1 {
    font-size: calc(25px * var(--book-font-scale));
    margin-left: -16px;
    margin-right: -16px;
    padding: 17px 16px;
  }

  .book-prose h2 {
    font-size: calc(20px * var(--book-font-scale));
  }

  .book-prose h3 {
    font-size: calc(17px * var(--book-font-scale));
  }

  .book-chapter-footer {
    display: block;
    margin: 0 16px 30px;
  }

  .book-chapter-footer button {
    display: block;
    margin: 7px 0;
    width: 100%;
  }

  .book-mobile-nav {
    background: var(--book-panel);
    border-top: 1px solid var(--book-line);
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    left: 0;
    min-height: 53px;
    padding: 6px;
    position: absolute;
    right: 0;
    z-index: 15;
  }

  .book-mobile-nav button {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--book-line);
    color: var(--book-ink);
    font-size: 9px;
    font-weight: 800;
  }

  .book-mobile-nav button:last-child {
    border-right: 0;
  }

  .book-search-overlay {
    padding: 0;
  }

  .book-search-panel {
    border: 0;
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-root *,
  .book-root *::before,
  .book-root *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
