/* The library (apps/sharh/library.py): shelves, books, and the reader — paper pages one under another. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.library { padding-top: 12px; padding-bottom: 48px; }
.library__head { margin: 8px 0 22px; }
.library__head h1 { margin: 0 0 6px; font-family: var(--font-book); font-size: 32px; line-height: 1.5; }
.library__head > p { max-width: 760px; }
.library__author { margin: 0 0 4px; font-weight: 700; }
.library__kind { margin: 0; font-size: 13px; }
.library__citation { font-size: 13px; }
.library__empty { padding: 28px; border: 1px dashed #D3CCC2; border-radius: 14px; text-align: center; color: var(--ink-soft); }
.library__filter input { width: 100%; max-width: 440px; min-height: 44px; margin-top: 6px; padding: 0 14px; border: 1px solid #D3CCC2; border-radius: 10px; background: var(--paper); font: inherit; font-size: 15px; }
.library__group h2 { font-size: 18px; margin: 26px 0 10px; }
.library__books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.library__books a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.library__books a:hover { border-color: var(--hero); text-decoration: none; }
.library__cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 138 / 200; margin-bottom: 6px; border-radius: 6px; overflow: hidden; background: var(--hero-chip); box-shadow: 0 2px 8px rgba(36, 19, 10, 0.12); }
.library__cover img { width: 100%; height: 100%; object-fit: cover; }
.library__cover span { padding: 10px; font-family: var(--font-book); text-align: center; color: #5B3E22; }
.library__title { font-weight: 700; line-height: 1.7; }
.library__books .library__title { font-size: 14px; }
.library__books .muted { font-size: 13px; }
.library__pub { font-size: 12px !important; }
.library__head--book { display: flex; gap: 22px; align-items: flex-start; }
.library__bookcover { flex: none; width: 140px; height: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(36, 19, 10, 0.15); }
.library__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.library__actions a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.library__toc-title { font-size: 18px; margin: 8px 0 10px; }
.library__toc { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.library__toc li + li { border-top: 1px solid var(--line); }
.library__toc a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 44px; align-items: center; }
.library__toc .muted { flex: none; font-size: 13px; }
.library__more { font-size: 14px; }

/* the shelves on /library/ */
.shelf-card { margin-bottom: 16px; }
.shelf-card__link { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: inherit; }
.shelf-card__link:hover { border-color: var(--hero); text-decoration: none; }
.shelf-card__text { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.shelf-card__title { font-family: var(--font-book); font-size: 28px; font-weight: 700; line-height: 1.4; }
.shelf-card__desc { font-size: 14px; color: var(--ink-soft); }
.shelf-card__covers { display: flex; flex: none; }
.shelf-card__covers .library__cover { width: 76px; margin: 0 0 0 -18px; border: 2px solid var(--paper); }
.shelf-card__covers .library__cover:first-child { margin-left: 0; }
.shelf-card__covers .library__cover span { font-size: 11px; padding: 4px; }

/* the catalogue: shelves of the site's own works (divans, masnavis, tazkiras, prose) */
.lib-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.lib-shelves a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; font-size: 15px; }
.lib-shelves a:hover { border-color: var(--hero); text-decoration: none; }
.lib-shelves a[aria-current="page"] { background: #5B3E22; border-color: #5B3E22; color: #fff; }
.lib-shelves .muted { font-size: 13px; }
.lib-row { margin: 30px 0 8px; }
.lib-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lib-row__head h2 { margin: 0; font-family: var(--font-book); font-size: 26px; line-height: 1.5; }
.lib-row__head h2 a { color: inherit; }
.lib-row__head h2 .muted { font-family: var(--font-ui, inherit); font-size: 15px; }
.lib-row__all { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.lib-row__lead { margin: 0 0 12px; font-size: 14px; }
/* the bookcase: the catalogue's books standing on wooden shelves. Every book takes the same height, so the
   shelves are one repeating board drawn under each row of the wrapped list (background, period = --row). */
/* painted grey, to sit with the site's grey ground: a pale frame and boards, a dark back */
.bookcase, .case-head { --case: #A9AEB4; --case-hi: #BFC3C8; --case-lo: #8C9197; --back: #2F3337; --back-mid: #393E43; }
.bookcase { --h: 210px; --w: calc(var(--h) * 0.69); --board: 16px; --gap: 14px; --row: calc(var(--h) + 18px + var(--board));
  list-style: none; margin: 0; padding: 0 18px; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: var(--gap); row-gap: 0;
  --board-hi: #C9CDD1; --board-top: #B2B7BC; --board-lo: #8F949A; --board-edge: #6E7378;
  border: 9px solid var(--case); border-bottom-width: 12px; border-radius: 6px;
  border-color: var(--case-hi) var(--case) var(--case-lo) var(--case);
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - var(--board)),
      var(--board-hi) calc(var(--row) - var(--board)), var(--board-top) calc(var(--row) - var(--board) + 4px),
      var(--board-lo) calc(var(--row) - 3px), var(--board-edge) var(--row)) 0 0 / 100% var(--row) local,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 40px) local,
    linear-gradient(90deg, var(--back), var(--back-mid) 50%, var(--back));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 10px 24px -14px rgba(20, 22, 26, 0.55); }
/* the shelf's name on a board of the case itself, along its top: a cornice a little proud of the frame */
.case-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -5px; min-height: 48px; padding: 6px 22px; border-radius: 7px 7px 2px 2px;
  background: linear-gradient(to bottom, #CDD1D5, var(--case-hi) 18%, var(--case) 78%, var(--case-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 3px 4px -2px rgba(0, 0, 0, 0.35); }
.case-head h2 { margin: 0; font-family: var(--font-book); font-size: 25px; font-weight: 700; line-height: 1.5; color: #2A2E33;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.case-head h2 a { color: inherit; }
.case-head h2 a:hover { text-decoration: none; }
.case-head__end { display: flex; align-items: center; gap: 14px; }
.case-head__n { font-family: var(--font-ui, inherit); font-size: 17px; font-weight: 700; color: #2A2E33; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.case-head__end .case-head__n { padding-inline-start: 14px; border-inline-start: 1px solid rgba(42, 46, 51, 0.25); }
.case-head__all { flex: none; display: inline-flex; align-items: center; min-height: 40px; color: #2A2E33; font-size: 15px; }
.bookcase--headed { border-top-width: 0; border-radius: 0 0 6px 6px; }
.library__group .case-head { margin-top: 26px; }
.bookcase > li { position: relative; display: flex; align-items: flex-end; height: var(--row); padding: 18px 0 var(--board); }
.bookcase > li[hidden] { display: none; }
/* a book standing face out: its spine on the right, as Persian books bind, and its cover beside it */
.book a { --edge: 24px; position: relative; display: flex; width: calc(var(--w) + var(--edge)); height: var(--h); color: #fff;
  border-radius: 4px 2px 2px 4px; transition: transform 0.2s ease, filter 0.2s; }
.book a:hover, .book a:focus-visible { transform: translateY(-6px); filter: brightness(1.07); text-decoration: none; }
.book a:focus-visible { outline: 3px solid #E8CF96; outline-offset: 3px; }
.book__spine { order: -1; flex: 0 0 var(--edge); position: relative; border-radius: 0 2px 2px 0;
  background-color: #4A3424; background-size: auto 100%; background-position: right center;
  box-shadow: 0 10px 14px -10px rgba(0, 0, 0, 0.9); }
/* the spine of a photographed book: the right edge of its own cover, in shadow, so it takes the cover's colour */
.book__spine::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.4)); }
.book__spine::after { content: ""; position: absolute; inset: 13px 2px; border-top: 1px solid var(--band, rgba(232, 207, 150, 0.55));
  border-bottom: 1px solid var(--band, rgba(232, 207, 150, 0.55)); }
/* a photographed book's spine: the colour of its own cover's edge, rounded by light and shade */
.book__spine:not(.book__spine--cloth) { background-color: var(--spine, #3A2A1E); }
.book__spine:not(.book__spine--cloth)::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.3)); }
/* a light cover (white, cream, pale green): dark lettering on its spine */
.book__spine.book__spine--light { --band: rgba(60, 45, 30, 0.5); }
.book__spine.book__spine--light::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.25) 45%, rgba(0, 0, 0, 0.1)); }
.book__spine--light .book__stext { color: #2B2219; text-shadow: none; }
/* the title and the poet on the spine, read from top to bottom between its two bands (vertical-rl alone runs
   Persian from the bottom up; turned half round it runs from the top down, the head of the letters to the left).
   The letters are drawn out along the line, a fifth longer, as spine lettering is; the box is a fifth shorter to fit. */
.book__stext { position: absolute; inset: calc(20px + 7%) 0; display: flex; align-items: center; justify-content: safe center; gap: 0.7em;
  writing-mode: vertical-rl; transform: rotate(180deg) scaleY(1.18); overflow: hidden; white-space: nowrap; font-family: var(--font-book); font-size: 11.5px; font-weight: 700;
  line-height: 1; color: color-mix(in srgb, var(--band, #E8CF96) 35%, #fff); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.book__stext i { flex: none; font-style: normal; font-weight: 400; opacity: 0.75; }
.book__stext b { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; font-weight: inherit; }
.book__face { position: relative; flex: 1; min-width: 0; display: flex; margin: 0; border-radius: 4px 0 0 4px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28), 0 10px 16px -12px rgba(0, 0, 0, 0.95); }
.book__face img { width: 100%; height: 100%; object-fit: cover; background: #E9DFCF; }
.book__face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(260deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0.4) 3px, rgba(255, 255, 255, 0.07) 6%, rgba(255, 255, 255, 0) 44%, rgba(0, 0, 0, 0.22)); }
/* a cover drawn for a work whose edition (or its cover) is not known: plain cloth with a short gilt rule, the
   title, the poet, and at the foot the editor and the length */
.book__face--cloth { flex-direction: column; padding: 15px 13px 12px; background-color: var(--cloth); font-family: var(--font-book); }
.book__spine--cloth { background-color: var(--cloth); }
.book__face--cloth::before { content: ""; display: block; flex: none; width: 28px; height: 1px; margin-bottom: 11px; background: var(--band); opacity: 0.75; }
.book__ctitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 17px; font-weight: 700; line-height: 1.55;
  color: color-mix(in srgb, var(--band) 30%, #fff); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.book__cpoet { margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
/* eight cloths: walnut, oxblood, aubergine, slate, forest, teal, ochre, ink */
.bk-0 { --cloth: #4D3A1F; --band: #D7B46A; }
.bk-1 { --cloth: #6A2A2E; --band: #E2B48A; }
.bk-2 { --cloth: #4A3450; --band: #CDB2D9; }
.bk-3 { --cloth: #3B4552; --band: #B9C7D6; }
.bk-4 { --cloth: #2F4A3A; --band: #B9D3A8; }
.bk-5 { --cloth: #24494C; --band: #A9D2CF; }
.bk-6 { --cloth: #7A5220; --band: #F0CF8A; }
.bk-7 { --cloth: #2A2F45; --band: #C9C2E8; }
/* the library page: one row of each section, as many whole books as the width holds (the rest wrap out of
   sight), the sections' cases stacked one on another as one bookcase */
.bookcase--row { height: var(--row); overflow: hidden; }
.bookcase--row > li { flex: none; }
.bookcases { margin: 26px 0 8px; }
.lib-case + .lib-case .case-head { border-radius: 2px; }
.lib-case:not(:last-child) .bookcase { border-bottom-width: 0; border-radius: 0; }
.library__none { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .book a { transition: none; } }
@media (max-width: 640px) {
  .library__books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bookcase { --h: 126px; --w: calc(var(--h) * 0.62); --gap: 8px; --board: 12px; padding: 0 8px; border-width: 6px; border-bottom-width: 9px; justify-content: center; }
  .bookcase > li { padding-top: 12px; }
  .bookcase { --row: calc(var(--h) + 12px + var(--board)); }
  .book a { --edge: 15px; }
  .book__spine::after { inset: 9px 1px; }
  .book__stext { inset: calc(14px + 7%) 0; font-size: 9px; gap: 0.6em; }
  .lib-row__head h2 { font-size: 22px; }
  .case-head { margin: 0 -3px; min-height: 42px; padding: 4px 14px; }
  .case-head h2 { font-size: 20px; }
  .book__face--cloth { padding: 10px 8px 8px; }
  .book__face--cloth::before { width: 20px; margin-bottom: 7px; }
  .book__ctitle { font-size: 13px; line-height: 1.5; }
  .book__cpoet { font-size: 11px; margin-top: 2px; }
}
@media (max-width: 359px) { .bookcase { --h: 118px; --gap: 6px; } }

/* ── the reader ── */
body:has(.lib-column) .site-footer { display: none; }
body.lib-complete .site-footer { display: block; }
body.lib-drawer-open { overflow: hidden; }
.lib-bar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.lib-bar__inner { display: flex; align-items: center; gap: 8px; max-width: 900px; margin: 0 auto; padding: 6px 12px; }
.lib-bar__back { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; min-height: 44px; color: var(--ink); }
.lib-bar__back:hover { text-decoration: none; }
.lib-bar__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-book); font-size: 17px; font-weight: 700; }
.lib-bar__where, .lib-bar__btn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border: 1px solid #D3CCC2; border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.lib-bar__where { font-family: var(--font-book); font-size: 16px; }
.lib-bar__where .muted { font-family: var(--font-ui); font-size: 12px; }
.lib-bar__where:hover, .lib-bar__btn:hover { border-color: var(--hero); }
.lib-bar__progress { height: 2px; background: transparent; }
.lib-bar__progress span { display: block; width: 0; height: 100%; margin-right: 0; background: var(--hero); transition: width 0.2s; }

.lib-column { max-width: 900px; margin: 0 auto; padding: 22px 12px 40px; }
.lib-pages { overflow-anchor: none; display: flex; flex-direction: column; gap: 26px; }
.lib-sheet { display: flex; flex-direction: column; min-height: 1180px; padding: 64px 130px 40px; scroll-margin-top: 70px; }
.lib-sheet .running-header { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-text { flex: 1; margin-top: 34px; font-family: var(--font-book); font-size: 19.5px; line-height: 2.05; color: #1F1F1F; }
.lib-text p { margin: 0 0 0.45em; text-align: justify; overflow-wrap: anywhere; }
.lib-text [id], .lib-notes [id] { scroll-margin-top: 80px; }
.lib-h { margin: 1.3em 0 0.7em; text-align: center; font-size: 25px; font-weight: 700; line-height: 1.6; }
.lib-text > .lib-h:first-child { margin-top: 0.2em; }
.lib-h__kicker { display: block; font-size: 16px; font-weight: 400; color: #4A4A4A; }
.lib-entry { margin: 0.9em 0 0.2em; font-size: 20px; font-weight: 700; line-height: 1.8; }
.lib-quote { margin: 0.2em 0 0.5em; }
/* quoted verse: the poem page's couplets (site.css .bayt, stretched by corpus/poem.js), in the page's own size */
.lib-poem { margin: 0.35em 0 0.6em; }
.lib-poem .poem-body { font-size: 1em; line-height: 2; color: #2A1A0E; }
.lib-poem .bayt--one { width: auto; justify-content: center; }
.lib-poem .bayt--one .m { width: auto; text-align: center; text-align-last: center; }
.lib-poem.is-stepped .bayt { margin-bottom: 0.25em; padding-right: 0; width: calc(var(--wem) * 1.25em); }  /* no verse numbers here */
.lib-poem.is-stepped .bayt--one { width: auto; padding: 0; }
.lib-poem.is-stepped .bayt--one .m { align-self: center; }
.lib-cite { display: block; margin-top: -2px; text-align: center; font-family: var(--font-ui); font-size: 12px; color: #8B6B4A; }
.lib-notes { margin-top: 26px; padding-top: 10px; font-family: var(--font-book); font-size: 15.5px; line-height: 1.95; color: #333; position: relative; }
.lib-notes::before { content: ""; position: absolute; top: 0; right: 0; width: 34%; border-top: 1px solid #8A8A8A; }
.lib-notes p { margin: 0 0 0.25em; text-align: justify; overflow-wrap: anywhere; }
.lib-sheet .page-number { margin-top: 30px; }
.lib-text .is-flash, .lib-notes .is-flash, .lib-text :target { animation: lib-flash 2.4s ease-out; border-radius: 6px; }
@keyframes lib-flash { 0%, 40% { background: #F3E2C4; } 100% { background: transparent; } }

.lib-more { display: flex; justify-content: center; padding: 18px 0; }
.lib-more button { min-height: 44px; padding: 0 18px; border: 1px solid #D3CCC2; border-radius: 10px; background: var(--paper); font: inherit; cursor: pointer; }
.lib-spinner { width: 26px; height: 26px; border: 3px solid #E5DCCF; border-top-color: var(--hero); border-radius: 50%; animation: lib-spin 0.9s linear infinite; }
@keyframes lib-spin { to { transform: rotate(360deg); } }
.lib-end { padding: 34px 0 10px; text-align: center; }
.lib-end p { margin: 0 0 12px; font-family: var(--font-book); font-size: 22px; }

/* the drawer: a side panel on computers, a sheet from the bottom on phones */
.lib-drawer { position: fixed; inset: 0; z-index: 60; }
.lib-drawer[hidden] { display: none; }
.lib-drawer__scrim { position: absolute; inset: 0; background: rgba(20, 12, 6, 0.32); }
.lib-drawer__panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18); }
.lib-drawer__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lib-tabs { display: flex; flex: 1; gap: 4px; padding: 4px; border-radius: 12px; background: var(--hero-track); }
.lib-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.lib-tabs button[aria-selected="true"] { background: var(--paper); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.lib-drawer__close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.lib-drawer__body { flex: 1; overflow-y: auto; padding: 14px; overscroll-behavior: contain; }
.lib-input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #D3CCC2; border-radius: 10px; background: var(--paper); font: inherit; font-size: 15px; box-sizing: border-box; }
.lib-toc, .lib-hits { list-style: none; margin: 10px 0 0; padding: 0; }
.lib-toc li + li, .lib-hits li + li { border-top: 1px solid var(--line); }
.lib-toc a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding: 9px 6px; min-height: 44px; align-items: center; color: var(--ink); }
.lib-toc a > span:nth-last-child(2) { flex: 1; min-width: 0; }
.lib-toc .muted { flex: none; font-size: 12.5px; }
.lib-toc__k { flex-basis: 100%; font-size: 12px; color: var(--ink-soft); }
.lib-toc a.is-here { background: var(--hero-chip); border-radius: 8px; font-weight: 700; }
[data-find] { display: flex; gap: 8px; }
[data-find] .btn-primary, .lib-go .btn-primary { flex: none; align-self: stretch; }
.lib-find__count { margin: 10px 0 0; font-size: 13px; }
.lib-hits a { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; color: var(--ink); font-family: var(--font-book); font-size: 16px; line-height: 1.9; }
.lib-hits__w { font-family: var(--font-ui); font-size: 12px; color: #8B6B4A; }
.lib-hits mark { background: #F3E2C4; color: inherit; border-radius: 3px; }
.lib-go { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.lib-go label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.lib-go input { width: 120px; }

@media (max-width: 860px) {
  .lib-sheet { min-height: 0; padding: 48px 76px 30px; }
}
@media (max-width: 720px) {
  .library__head h1 { font-size: 24px; }
  .library__books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .library__head--book { gap: 14px; }
  .library__bookcover { width: 88px; }
  .shelf-card__link { flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; }
  .shelf-card__title { font-size: 24px; }
  .shelf-card__covers .library__cover { width: 62px; }
  .lib-bar__btn span { display: none; }
  .lib-bar__btn { padding: 0 10px; min-width: 44px; justify-content: center; }
  .lib-bar__where { padding: 0 10px; }
  .lib-bar__where .muted { display: none; }
  .lib-bar__title { font-size: 15px; }
  .lib-column { padding: 12px 0 28px; }
  .lib-pages { gap: 14px; }
  .lib-sheet { padding: 26px 32px 20px; border-radius: 0; }
  .lib-sheet .running-header { font-size: 12.5px; }
  .lib-text { margin-top: 18px; font-size: 17.5px; line-height: 2; }
  .lib-h { font-size: 21px; }
  .lib-entry { font-size: 18px; }
  .lib-notes { font-size: 14.5px; }
  .lib-sheet .page-number { margin-top: 18px; }
  .lib-drawer__panel { top: auto; left: 0; width: 100%; height: 82vh; height: 82dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18); }
}
