/* ===== One button style for the whole site (replaces the old engraved orange/red word buttons) =====
   Times New Roman capitals; black; the selected one red (no underline); no tile behind the word on hover or
   press (the user, 2026-11-23); keyboard focus draws a thin red ring. Applies to: Date/Theme/Recent, Shelves/All
   together, Continue/Start and Read later, Settings, Sign out, All comments, Mark unread, the collection filters. */
html body #app#app .libsort button,html body #app#app .abview button,html body #app#app .bookp .btns .btn,html body #app#app .prof .btn,html body #app#app .pf-btns .btn,html body #app#app .setr.out,html body #app#app main.home .row.cont .resume .btn.pri,html body #app#app .pf-more,html body #app#app .bookp .chl .unr,html body #app#app main.colp .kseg a,html body #app#app .libseg a{all:unset;position:relative;cursor:pointer;display:inline-flex!important;align-items:center;gap:7px;padding:9px 14px 8px!important;margin:0!important;
  width:auto!important;height:auto!important;font:400 14px/1 "Times New Roman",Times,Tinos,serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;
  color:#1C1B19!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;background:none!important;-webkit-background-clip:border-box!important;
  background-clip:border-box!important;box-shadow:none!important;border:0!important;border-radius:0!important;text-decoration:none!important;transform:none!important;isolation:isolate;filter:none!important}
/* book page: Continue and the shelf button (On Reading/Read later/Add to a shelf), and the Library sort control
   (Date/Theme/Recent) — matched to the chapter-list typography, EB Garamond, not the site's Times New Roman
   word-button style. Upright, not italic (the user, 2026-11-18). No caps, no letter-spacing bump. */
html body #app#app .bookp .btns .btn,html body #app#app main.home .row.cont .resume .btn.pri,html body #app#app .libsort button{
  font:normal 400 24.7px/1.3 "EB Garamond Pkg","EB Garamond",serif!important;text-transform:none!important;letter-spacing:0!important}
html body #app#app .libsort button::before,html body #app#app .abview button::before,html body #app#app .bookp .btns .btn::before,html body #app#app .prof .btn::before,html body #app#app .pf-btns .btn::before,html body #app#app .setr.out::before,html body #app#app main.home .row.cont .resume .btn.pri::before,html body #app#app .pf-more::before,html body #app#app .bookp .chl .unr::before,html body #app#app main.colp .kseg a::before,html body #app#app .libseg a::before,html body #app#app .libsort button::after,html body #app#app .abview button::after,html body #app#app .bookp .btns .btn::after,html body #app#app .prof .btn::after,html body #app#app .pf-btns .btn::after,html body #app#app .setr.out::after,html body #app#app main.home .row.cont .resume .btn.pri::after,html body #app#app .pf-more::after,html body #app#app .bookp .chl .unr::after,html body #app#app main.colp .kseg a::after,html body #app#app .libseg a::after{content:none!important}
html body #app#app .libsort button :is(svg,.ic),html body #app#app .abview button :is(svg,.ic),html body #app#app .bookp .btns .btn :is(svg,.ic),html body #app#app .prof .btn :is(svg,.ic),html body #app#app .pf-btns .btn :is(svg,.ic),html body #app#app .setr.out :is(svg,.ic),html body #app#app main.home .row.cont .resume .btn.pri :is(svg,.ic),html body #app#app .pf-more :is(svg,.ic),html body #app#app .bookp .chl .unr :is(svg,.ic),html body #app#app main.colp .kseg a :is(svg,.ic),html body #app#app .libseg a :is(svg,.ic){width:15px!important;height:15px!important;display:inline-block!important}
html body #app#app .libsort button[aria-pressed="true"],html body #app#app .abview button[aria-pressed="true"],html body #app#app .bookp .btns .blater.on,html body #app#app main.colp .kseg a.on,html body #app#app .libseg a.on{color:#C4000C!important}
@media (hover:hover){html body #app#app .libsort button:hover,html body #app#app .abview button:hover,html body #app#app .bookp .btns .btn:hover,html body #app#app .prof .btn:hover,html body #app#app .pf-btns .btn:hover,html body #app#app .setr.out:hover,html body #app#app main.home .row.cont .resume .btn.pri:hover,html body #app#app .pf-more:hover,html body #app#app .bookp .chl .unr:hover,html body #app#app main.colp .kseg a:hover,html body #app#app .libseg a:hover{color:#1C1B19!important}html body #app#app .libsort button[aria-pressed="true"]:hover,html body #app#app .abview button[aria-pressed="true"]:hover,html body #app#app .bookp .btns .blater.on:hover,html body #app#app main.colp .kseg a.on:hover,html body #app#app .libseg a.on:hover{color:#C4000C!important}}
html body #app#app .libsort button:focus-visible,html body #app#app .abview button:focus-visible,html body #app#app .bookp .btns .btn:focus-visible,html body #app#app .prof .btn:focus-visible,html body #app#app .pf-btns .btn:focus-visible,html body #app#app .setr.out:focus-visible,html body #app#app main.home .row.cont .resume .btn.pri:focus-visible,html body #app#app .pf-more:focus-visible,html body #app#app .bookp .chl .unr:focus-visible,html body #app#app main.colp .kseg a:focus-visible,html body #app#app .libseg a:focus-visible{outline:1px solid #C4000C!important;outline-offset:2px!important;border-radius:7px!important}
html body #app#app .bookp .chl .unr{font-size:12.5px!important;padding:6px 10px 5px!important}
html.night body #app#app .libsort button,body #app#app .abview button,body #app#app .bookp .btns .btn,body #app#app .prof .btn,body #app#app .pf-btns .btn,body #app#app .setr.out,body #app#app main.home .row.cont .resume .btn.pri,body #app#app .pf-more,body #app#app .bookp .chl .unr,body #app#app main.colp .kseg a{color:#ECE7DD!important}
html.night body #app#app .libsort button[aria-pressed="true"],body #app#app .abview button[aria-pressed="true"],body #app#app .bookp .btns .blater.on,body #app#app main.colp .kseg a.on{color:#E2584F!important}

/* home: when the carousel rests on the book you're reading, its title is set larger with your progress beneath */
.sr-cap .pb{display:none}
html body #app .mast .sr-cap.cont{flex-direction:column!important;align-items:center!important;gap:10px!important;display:flex!important}
html body #app .mast .sr-cap.cont .t{font-size:clamp(26px,2.4vw,36px)!important;line-height:1.1!important;display:block!important}
html body #app .mast .sr-cap.cont .y{display:none!important}
html body #app .mast .sr-cap.cont .pb{display:flex;align-items:center;gap:12px;margin-top:2px}
.sr-cap .pb i{position:relative;display:block;width:clamp(160px,16vw,240px);height:2px;background:color-mix(in srgb,#C4000C 18%,transparent)}
.sr-cap .pb i::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--p,0%);background:#C4000C;transition:width .8s cubic-bezier(.2,.7,.2,1)}
.sr-cap .pb b{font:400 15px/1 var(--text,"EB Garamond",serif);color:var(--ink3);font-variant-numeric:lining-nums;white-space:nowrap}
/* the chapter and percentage sit under the bar, centred */
html body #app .mast .sr-cap.cont .pb{flex-direction:column;gap:9px}

html body #app#app .libseg{display:flex!important;gap:6px!important;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
/* buttons are only as wide as their word plus padding: never stretched by a column */
html body #app#app :is(.libsort button,.abview button,.bookp .btns .btn,.prof .btn,.pf-btns .btn,.setr.out,main.home .row.cont .resume .btn.pri,.pf-more,.bookp .chl .unr,main.colp .kseg a,.libseg a){
  width:max-content!important;max-width:max-content!important;flex:none!important;align-self:flex-start!important;justify-content:center!important;margin-left:0!important}
html body #app#app .bookp .chl .unr{margin-left:0!important;align-self:center!important}
html body #app#app main.home .row.cont .resume .btn.pri{margin-top:-5px!important;font-size:17px!important}
/* breathing room: every row of word buttons keeps at least 22px of clear paper between one button's padded edge and the next. */
html body #app#app :is(.libseg,.libsort,main.colp .kseg,.pf-btns,.bookp .btns,.prof .pbtns,.abview){display:flex!important;flex-wrap:wrap;gap:16px 22px!important;align-items:center!important}
html body #app#app :is(.libseg a,.libsort button,main.colp .kseg a,.pf-btns .btn,.bookp .btns .btn,.prof .btn,.abview button){margin-left:0!important}
html body #app#app :is(.libseg,.libsort,main.colp .kseg,.pf-btns,.bookp .btns){margin-left:-14px!important}
html body #app#app main.home .row.cont .resume .btn.pri{margin-left:-14px!important}
/* the progress under the centred title: clear of the title's descenders, the chapter line close under the bar */
html body #app .mast .sr-cap.cont .pb{margin-top:clamp(14px,1.4vw,20px)!important;gap:11px!important}
/* the progress under the centred title: a muted brick red (the user's swatches), not the bright cover red */
html body #app .mast .sr-cap .pb i{background:color-mix(in srgb,#A8352C 16%,transparent)!important}
html body #app .mast .sr-cap .pb i::before{background:#A8352C!important}
/* reader: "Chapter 4" under the title goes back to the book's contents; looks the same, turns red on hover */
html body #app .ahead a.subt{display:block;width:max-content;color:inherit;text-decoration:none;cursor:pointer;transition:color .2s}
@media (hover:hover){html body #app .ahead a.subt:hover{color:#C4000C!important}}
/* Continue (home and book page): the word simply turns red on hover */
@media (hover:hover){html body #app#app :is(main.home .row.cont .resume .btn.pri,.bookp .btns .btn.pri):hover,
  html body #app#app main.home .row.cont a.resume:hover .btn.pri{color:#C4000C!important}}
html body #app#app :is(main.home .row.cont .resume .btn.pri,.bookp .btns .btn.pri){transition:color .2s ease!important}
/* contents rows: the status column (percentage / Mark unread) is only as wide as what it holds, so a chapter with
   no status gives the whole width to its title instead of wrapping beside an empty 150px gap */
html body #app#app .bookp .chl li>a{grid-template-columns:var(--numw,5.2ch) minmax(0,1fr) auto!important}
html body #app#app .bookp .chl .pc{width:auto!important}
html body #app#app .bookp .chl .pc:empty{display:none!important}
/* contents: one status per chapter, right-aligned on the title's line — "Read", or how far you are ("62%").
   Same type and the same lightness for both; nothing else in that column. */
html body #app#app .bookp .chl .pc{grid-column:3!important;justify-self:end!important;align-self:center!important;opacity:1!important;width:auto!important;
  font:400 17px/1 "EB Garamond",Garamond,serif!important;font-variant-numeric:lining-nums tabular-nums;letter-spacing:.01em!important;
  color:var(--ink3)!important;text-align:right;white-space:nowrap;padding-left:24px}
html body #app#app .bookp .chl .pc.st-none{display:none!important}
html body #app#app .bookp .chl .pp,html body #app#app .bookp .chl .unr{display:none!important}

/* book page: the shelf menu — the word button shows where the book is; it opens a short list cut like the ⌘K button */
html body #app#app .bookp .shpick{position:relative;display:inline-block}
html body #app#app .bookp .shpick .caret{display:inline-block;width:6px;height:6px;margin-left:4px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}
html body #app#app .bookp .shmenu{position:absolute;left:0;top:calc(100% + 8px);z-index:30;min-width:250px;padding:6px;
  background:var(--paper,#F5F3EE) var(--paper-tex);background-blend-mode:multiply;box-shadow:0 0 0 1px var(--line),-10px 14px 30px -14px rgba(30,20,10,.4)}
html body #app#app .bookp .shmenu[hidden]{display:none}
html body #app#app .bookp .shmenu button{all:unset;display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:10px 12px;cursor:pointer;
  font:400 14px/1 "Times New Roman",Times,Tinos,serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
html body #app#app .bookp .shmenu button :is(svg,.ic){width:15px;height:15px;flex:none}
html body #app#app .bookp .shmenu button[aria-checked="true"]{color:#C4000C}
html body #app#app .bookp .shmenu button[aria-checked="true"]::after{content:"";margin-left:auto;width:9px;height:5px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg) translateY(-2px)}
@media (hover:hover){html body #app#app .bookp .shmenu button:hover{background:rgba(28,27,25,.06)}}
html.bk-tint:not(.bk-tint-light) body #app#app .bookp .shmenu{background:var(--tblk) var(--paper-tex)}
@media (hover:hover){html.bk-tint:not(.bk-tint-light) body #app#app .bookp .shmenu button:hover{background:rgba(255,248,236,.09)}}
html.bk-tint:not(.bk-tint-light) body #app#app .bookp .shmenu button[aria-checked="true"]{color:var(--red)}
/* the test bar, smaller and quieter (2026-11-17) */

/* the reader's title block (the user, 2026-11-17: "the spacing for this is fucked"): one rhythm, line boxes trimmed to the
   type so the gaps you see are the gaps set. Book → 16 → title → 12 → chapter → 28 → author/year (tight pair) → 28 → rule → 40 → text */
html body #app main .ahead .kick{display:block!important;line-height:1.15!important;margin:0 0 16px!important}
html body #app main .ahead h1{margin:0!important;line-height:1.06!important}
html body #app main .ahead a.subt{margin:12px 0 0!important;line-height:1.15!important}
html body #app main .ahead .byline{margin-top:16px!important}
html body #app main .ahead .byline b{line-height:1.15!important}
html body #app main .ahead .byline small{line-height:1.15!important;margin-top:4px!important}
html body #app main .ahead{padding-bottom:28px!important;margin-bottom:40px!important}
/* the trial toggles fold away to a small dot at the bottom left */

/* Search (finder) tabs, Passages · Chapters · Books: the same word buttons as everywhere else, not the old textured red ink.
   Times capitals, black, regular weight; the selected tab in cover red; no tile on hover. */
html body #finder .fx-tabs{gap:6px!important;border-bottom:1px solid rgba(28,27,25,.12)!important;padding-bottom:6px}
html body #finder .fx-tab{all:unset;position:relative;cursor:pointer;display:inline-flex!important;align-items:center;padding:9px 14px 8px!important;margin:0!important;
  font:400 14px/1 "Times New Roman",Times,Tinos,serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;
  color:#1C1B19!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;background:none!important;
  -webkit-background-clip:border-box!important;background-clip:border-box!important;box-shadow:none!important;border:0!important;border-radius:0!important;filter:none!important}
html body #finder .fx-tab.on{color:#C4000C!important}
html.night body #finder .fx-tab{color:#ECE8E0!important}html.night body #finder .fx-tab.on{color:#E2584F!important}
html body #finder#finder .fx-tab,html body #finder#finder .fx-tab.on,html body #finder#finder .fx-tab:hover{-webkit-background-clip:border-box!important;background-clip:border-box!important;
  -webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;background-image:none!important;background-color:transparent!important}
html body #finder#finder .fx-tab.on{color:#C4000C!important}

/* the shelf menu's Create, and the name field it becomes (same row as the menu items) */
html body #app#app .bookp .shmenu .shm-create{border-top:1px solid color-mix(in srgb,currentColor 16%,transparent)}
html body #app#app .bookp .shmenu .shm-new{display:flex;align-items:center;gap:14px;padding:10px 14px;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent)}
html body #app#app .bookp .shmenu .shm-new :is(svg,.ic){width:18px;height:18px;flex:none;opacity:.8}
html body #app#app .bookp .shmenu .shm-new input{all:unset;flex:1;min-width:0;font:400 16px/1.2 "Times New Roman",Times,Tinos,serif;letter-spacing:.08em;text-transform:uppercase;color:inherit;border-bottom:1px solid color-mix(in srgb,currentColor 40%,transparent);padding:2px 0 4px}
html body #app#app .bookp .shmenu .shm-new input::placeholder{color:inherit;opacity:.55}

/* the passage card (#kmodal, opened over the page, outside #app): View in book · Share · Remove use the same word buttons */
html body #kmodal#kmodal footer :is(.btn,a.btn,button.btn){all:unset;box-sizing:border-box;position:relative;cursor:pointer;display:inline-flex!important;align-items:center;gap:0;
  padding:10px 14px 9px!important;font:400 14px/1 "Times New Roman",Times,Tinos,serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;
  color:#1C1B19!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;background:none!important;box-shadow:none!important;border:0!important;
  text-shadow:none!important;filter:none!important;isolation:isolate}
html body #kmodal#kmodal footer .btn :is(svg,.ic){display:none!important}
html body #kmodal#kmodal footer .btn::before,html body #kmodal#kmodal footer .btn::after{content:none!important}
html body #kmodal#kmodal footer .btn:focus-visible{outline:2px solid #C4000C;outline-offset:2px}
html.night body #kmodal#kmodal footer .btn{color:#ECE8E0!important}
/* the caption under the strip keeps one height whichever book is in the middle — a book you're reading (title, bar,
   chapter) and one you aren't (title, year) take the same room, so the strip never jumps up and down (the user, 2026-11-18) */
html body #app .mast .sr-cap{height:150px!important;min-height:150px!important;justify-content:flex-start!important;align-items:center!important;overflow:visible}
html body #app .mast .sr-cap:not(.cont){padding-top:6px!important}
/* the fixed-height caption stays centred: a plain book's title + year is a row (centre it across, top of the space);
   a book you're reading is a column (centre it across, from the top) */
html body #app .mast .sr-cap:not(.cont){justify-content:center!important;align-items:flex-start!important;text-align:center!important}
html body #app .mast .sr-cap.cont{justify-content:flex-start!important;align-items:center!important}
/* passage card footer: View in book lines up with the text above; Remove is a small bin */
html body #kmodal#kmodal footer > .btn:first-child{margin-left:-14px!important}
html body #kmodal#kmodal footer [data-act="delmark"]{font-size:0!important;letter-spacing:0!important;padding:8px!important;color:#8a8172!important}
html body #kmodal#kmodal footer [data-act="delmark"] :is(svg,.ic){display:block!important;width:18px!important;height:18px!important}
@media (hover:hover){html body #kmodal#kmodal footer [data-act="delmark"]:hover{color:#C4000C!important}}
/* Copy link has no word of its own either — the symbol is the whole button, same treatment as Remove (the user, 2026-11-18) */
html body #kmodal#kmodal footer [data-act="sharemark"]{font-size:0!important;letter-spacing:0!important;padding:8px!important;color:#8a8172!important}
html body #kmodal#kmodal footer [data-act="sharemark"] :is(svg,.ic){display:block!important;width:18px!important;height:18px!important}
html body #kmodal#kmodal footer [data-act="sharemark"].ok{color:#C4000C!important}
@media (hover:hover){html body #kmodal#kmodal footer [data-act="sharemark"]:not(.ok):hover{color:#C4000C!important}}
html.night body #kmodal#kmodal footer [data-act="sharemark"].ok{color:#EC7F76!important}
/* contents: hovering a chapter you've started swaps its status ("Read" / "62%") for a "Mark unread" button in the same place (the user, 2026-11-19) */
@media (hover:hover){
  html body #app#app .bookp .chl li:has(.unr){position:relative}
  html body #app#app .bookp .chl li:hover .unr{display:inline-block!important;position:absolute;right:48px;top:50%;transform:translateY(-50%)!important;z-index:2;line-height:1!important;
    background:none!important;box-shadow:none!important;border:0!important;padding:4px 0!important;margin:0!important;
    font:400 17px/1 "EB Garamond",Garamond,serif!important;letter-spacing:.01em!important;text-transform:none!important;color:var(--ink3)!important;transition:color .15s ease!important}
  html body #app#app .bookp .chl li:hover .unr::before,html body #app#app .bookp .chl li:hover .unr::after{content:none!important;display:none!important}
  html body #app#app .bookp .chl li .unr:hover{color:#C4000C!important}
  html.night body #app#app .bookp .chl li .unr:hover,html body #app#app .bookp:has(.bk) .chl li .unr:hover{color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px}
  html body #app#app .bookp .chl li:hover:has(.unr) .pc{visibility:hidden!important}
}
/* carousel progress: a thicker bar and a bigger "Chapter 9 · 1%" (the user, 2026-11-21) */
html body #app .mast .sr-cap .pb i{height:3px!important;border-radius:999px!important;overflow:hidden}
html body #app .mast .sr-cap .pb i::before{border-radius:999px!important}
html body #app .mast .sr-cap .pb b{font-size:16.5px!important}
