/* v307: first page free, My shelf, mixed library grid, Find my book. All classes start with bk8-. */
.bk8-pn{margin:10px 0 0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:13.5px;line-height:1.45}
.bk8-pv{margin:14px 0;padding:16px;border-radius:14px;border:1px solid var(--acc);background:linear-gradient(180deg,color-mix(in srgb,var(--acc) 16%,transparent),transparent 70%);box-shadow:0 -10px 24px color-mix(in srgb,var(--acc) 22%,transparent) inset}
.bk8-pv b{display:block;font-size:16px;margin:0 0 6px}.bk8-pv p{margin:0 0 10px;line-height:1.5}
.bk2-tr.bk8-lk{opacity:.6}









.bk8-msl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bk8-msl .bk8-ms:last-child:nth-child(odd){grid-column:1/-1}
.bk8-ms{display:block;width:100%;min-width:0;box-sizing:border-box;text-align:left;padding:12px 12px;border-radius:22px;border:1px solid var(--co);color:var(--ct);background:linear-gradient(135deg,var(--c1),var(--c2));min-height:0}
.bk8-ms.bk8-off{margin-left:0}
.bk8-ms b{display:block;font-size:14px;margin:2px 0;overflow-wrap:anywhere}.bk8-msk{display:block;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--cs)}.bk8-msn{display:block;font-size:12px;color:var(--cs)}
.bk8-st{margin:0 0 6px;font-size:11px;letter-spacing:.26em;text-transform:uppercase;opacity:.75}
.bk8-frame{padding:8px;border-radius:10px;background:#e9eef0}
.bk8-niche{padding:22px 16px 20px;border-radius:4px;color:#fff;background:radial-gradient(70% 45% at 50% 0%,rgba(255,255,255,.4),transparent 70%),linear-gradient(#0f8f93,#0a6a70);box-shadow:inset 0 8px 16px rgba(0,0,0,.35)}
.bk8-niche p{margin:8px 0 0;font-size:15px;line-height:1.5}
.bk8-nk{display:block;font-size:19px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.bk8-pv>b{margin:0 0 6px!important;padding:0!important;text-indent:0}

/* v309 CUBBY SHELF LOOK (my pick 2026-10-25: rounded cream and charcoal boxes with books standing inside). Each book is a box with a thick rim, a recessed back and a row of spines. Same in dark and light; colours come from variables. */
.bk2-cvl .bk2-cv{--rim:#ece1cd;border:7px solid var(--rim);border-radius:30px;box-shadow:inset 0 16px 26px rgba(0,0,0,.42),inset 0 -2px 0 rgba(0,0,0,.25),0 6px 14px rgba(0,0,0,.28)}
.bk2-cvl .bk2-cv:nth-child(even){--rim:#34363b}
html[data-mode="light"] .bk2-cvl .bk2-cv{--rim:#e6d8bf;box-shadow:inset 0 12px 20px rgba(0,0,0,.16),inset 0 -2px 0 rgba(0,0,0,.12),0 6px 14px rgba(0,0,0,.14)}
html[data-mode="light"] .bk2-cvl .bk2-cv:nth-child(even){--rim:#555860}
.bk9-sp{position:absolute;right:14px;bottom:14px;display:flex;align-items:flex-end;gap:3px;height:62px;padding:0 4px 2px;border-bottom:3px solid var(--rim);box-sizing:content-box}
.bk9-sp i{display:block;width:6px;border-radius:1.5px 1.5px 0 0;background:color-mix(in srgb,var(--ct) 22%,transparent);border:1px solid color-mix(in srgb,var(--ct) 35%,transparent);border-bottom:0}
.bk9-sp i.on{background:var(--ca);border-color:var(--ca);box-shadow:0 0 8px color-mix(in srgb,var(--ca) 60%,transparent)}




.bk8-ms{border:6px solid var(--rim,#ece1cd);border-radius:26px;box-shadow:inset 0 10px 18px rgba(0,0,0,.35)}
.bk8-msl .bk8-ms:nth-child(even){--rim:#34363b}
html[data-mode="light"] .bk8-ms{--rim:#e6d8bf;box-shadow:inset 0 8px 14px rgba(0,0,0,.14)}
html[data-mode="light"] .bk8-msl .bk8-ms:nth-child(even){--rim:#555860}

/* v323 GLASS SHELF LOOK (my choice 2026-10-25, a trial; Settings > Shelf look: Glass or Cubby; html.shl-cubby brings the v309 cubby look back). Frosted glass boxes in each book's own colour, thin glowing edge, no thick rim. */
html:not(.shl-cubby) #bk2 .bk2-cv,html:not(.shl-cubby) #bk2 .bk8-ms{--rim:color-mix(in srgb,var(--ca,#888) 70%,transparent);border:1px solid color-mix(in srgb,var(--ca,#888) 55%,transparent);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0) 42%),linear-gradient(145deg,color-mix(in srgb,var(--c1) 55%,transparent),color-mix(in srgb,var(--c2) 40%,transparent) 85%),color-mix(in srgb,var(--card,#16181d) 62%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 0 18px color-mix(in srgb,var(--ca,#888) 30%,transparent),inset 0 1px 0 rgba(255,255,255,.22)}
html:not(.shl-cubby) #bk2 .bk8-ms{border-radius:22px}
html:not(.shl-cubby) #bk2 .bk2-cvl .bk2-cv:nth-child(even),html:not(.shl-cubby) #bk2 .bk8-msl .bk8-ms:nth-child(even){--rim:color-mix(in srgb,var(--ca,#888) 70%,transparent)}
html[data-mode="light"]:not(.shl-cubby) #bk2 .bk2-cv,html[data-mode="light"]:not(.shl-cubby) #bk2 .bk8-ms{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 45%),linear-gradient(145deg,color-mix(in srgb,var(--c1) 40%,transparent),color-mix(in srgb,var(--c2) 28%,transparent) 85%),color-mix(in srgb,var(--card,#fff) 85%,transparent);box-shadow:0 0 14px color-mix(in srgb,var(--ca,#888) 22%,transparent),0 6px 14px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.7)}

/* v368: NO GLOW AND NO BLUR on the Books tab (my words 2026-10-27: "Remove the fogy or blurry background"; my answers: both the glow and the blurry glass, Books tab only). Cards, the shelf tiles and the book covers lose the outer glow and the backdrop blur; the thin edge light of the glass look stays; the reading highlight (.bk2-cur) and the cubby look are not touched. */
html #bk2 :is(.card,section,.bk2-cv,.bk8-ms,.bk2-cvp,.bk2-hero,.bk2-covh,.bk8-niche):not(.bk2-cur){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html #bk2 .card:not(.bk2-cur),html #bk2 section:not(.bk2-cur):not(.bk-ch),html #bk2 :is(.bk2-cvp,.bk2-hero,.bk2-covh):not(.bk2-cur){box-shadow:none!important}
html:not(.shl-cubby) #bk2 :is(.bk2-cv,.bk8-ms){box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important}
html[data-mode="light"]:not(.shl-cubby) #bk2 :is(.bk2-cv,.bk8-ms){box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important}

/* v369: the Books tab cards a little more solid (my words 2026-10-27: "Make the Books cards a little more solid", after v368). A 40 percent veil of the card colour is laid over the see-through glass inside each card, under the text; the thin edge light stays. Change the 40% to make it more or less solid. */
html #bk2 :is(.card,section):not(.bk2-cur):not(.bk-ch){box-shadow:inset 0 0 0 999px color-mix(in srgb,var(--card,#16181d) 40%,transparent)!important}
html:not(.shl-cubby) #bk2 :is(.bk2-cv,.bk8-ms){box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 999px color-mix(in srgb,var(--card,#16181d) 40%,transparent)!important}
html[data-mode="light"]:not(.shl-cubby) #bk2 :is(.bk2-cv,.bk8-ms){box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 999px color-mix(in srgb,var(--card,#fff) 40%,transparent)!important}

/* v380: My shelf tiles, boxed LEADING ICON style (version A): icon first, the three text lines next to it. */
.bk8-ms{display:flex;align-items:center;gap:10px}
.bk8-mi{flex:0 0 auto;display:inline-flex}.bk8-mi .ic{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bk8-mt{display:block;min-width:0;flex:1 1 auto}

/* v385: my choice 2026-10-27: version A, BOXED leading icon, on the My shelf tiles. Bigger icon; the rest of the Books tab is back as it was. CSS only. */
html #bk2 .bk8-mi .ic{width:32px;height:32px}
html #bk2 .bk8-ms b{font-size:15px}
html #bk2 .bk8-ms .bk8-msn{font-size:13px}

/* v387: my choice 2026-10-27: NO FLOATING in the Books. The chapter header cards (.bk2-hero) and the contents cover cards (.bk2-covh) no longer drift, tilt or slide in (styles a to e of v319 are switched off, including the shine on style e). The cards show at once. To get them back, remove this block. CSS only. */
html body :is(.bk2-hero,.bk2-covh)[class*="bk2-an-"][class*="bk2-"][class]{animation:none!important;will-change:auto!important;transform:none!important}
html body :is(.bk2-hero,.bk2-covh)[class*="bk2-an-"][class]::after{animation:none!important;display:none!important}
