/* BADTXT 6.2 — monochrome, text first. No external fonts or image dependencies. */
:root {
  --bg: #f7f7f7; --paper: #fcfcfc; --ink: #202020; --muted: #666666;
  --faint: #eeeeee; --line: #d8d8d8; --line-strong: #b8b8b8;
  --page-width: 1280px; --text-width: 860px;
  --serif: 'Noto Serif CJK SC','Source Han Serif SC','Songti SC','STSong','SimSun',Georgia,serif;
  --sans: -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --reader-font: var(--serif); --reader-size: 20px; --reader-line: 1.95;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.65 var(--sans); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
button,input,textarea,select { font: inherit; color: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { background: none; border: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
h1,h2,h3,h4 { font-family: var(--serif); color: inherit; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
h1 { margin: 0 0 24px; font-size: 32px; }
h2 { margin: 0 0 20px; font-size: 22px; }
h3 { margin: 0; font-size: 16px; }
p { margin: 0 0 18px; }
ul,ol { margin: 0; padding: 0; }
.bt-container { width: calc(100% - 96px); max-width: var(--page-width); margin-inline: auto; }
.bt-icon { display: inline-block; width: 19px; height: 19px; vertical-align: -.16em; }
.bt-muted,.bt-small-note { color: var(--muted); }
.bt-small-note { font-size: 13px; line-height: 1.8; }
.screen-reader-text,.bt-skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bt-skip-link:focus { z-index: 200; position: fixed; top: 8px; left: 8px; padding: 10px 18px; background: #fff; border: 2px solid #222; }
/* Header: a single search entrance, not a search bar. */
.bt-site-header { flex-shrink: 0; }
.bt-header-inner { min-height: 84px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line-strong); }
.bt-brand { font: 700 34px/1.1 Georgia,'Times New Roman',serif; letter-spacing: .025em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bt-brand .bt-site-icon { display: inline-block; width: 32px; height: 32px; max-width: none; margin-inline-end: 10px; vertical-align: middle; object-fit: contain; }
a.bt-brand:hover { text-decoration: none; }
.bt-desktop-nav { flex-shrink: 0; display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; }
.bt-desktop-nav a { display: inline-block; position: relative; padding: 10px 0; }
.bt-desktop-nav a[aria-current=page],.bt-desktop-nav .current-menu-item>a { text-decoration: underline; text-underline-offset: 8px; }
.bt-nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.bt-header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.bt-search-trigger { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; font-size: 14px; }
.bt-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 8px; border-radius: 3px; }
.bt-icon-button:hover,.bt-text-button:hover { background: var(--faint); text-decoration: none; }
.bt-menu-button { display: none; }
/* Home: three content modules; optional native bookmarks appear below them. */
.bt-home { padding-block: 36px 56px; }
.bt-home-grid { display: grid; grid-template-columns: minmax(0,1.52fr) minmax(0,1fr) minmax(0,.7fr); align-items: start; }
.bt-home-grid>section { min-width: 0; }
.bt-updates { padding-right: 30px; }
.bt-home-ranking { padding-inline: 30px; border-left: 1px solid var(--line); }
.bt-home-categories { padding-left: 28px; border-left: 1px solid var(--line); }
.bt-section-heading { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; min-height: 35px; }
.bt-section-heading h2 { margin: 0; font-size: 22px; letter-spacing: .015em; }
.bt-more { color: var(--muted); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }
.bt-more .bt-icon { width: 14px; height: 14px; }
.bt-update-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto; align-items: baseline; gap: 12px; min-height: 46px; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
.bt-update-row:last-child { border-bottom: 0; }
.bt-update-row h3 { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.bt-update-row h3 a,.bt-update-detail { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-update-detail { min-width: 0; font-family: var(--serif); font-size: 12px; color: var(--muted); }
.bt-update-row time { color: var(--muted); white-space: nowrap; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.bt-rank-list { list-style: none; }
.bt-rank-list li { min-height: 46px; display: grid; grid-template-columns: 19px minmax(0,1fr) auto; gap: 10px; align-items: baseline; padding: 12px 0; line-height: 1.5; }
.bt-rank-list li>a { font: 15px/1.5 var(--serif); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.bt-rank-num { font: 13px/1.5 Georgia,serif; text-align: center; }
.bt-rank-num.top { font-weight: 700; }
.bt-rank-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.bt-category-list { list-style: none; }
.bt-category-list li { min-height: 46px; display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; gap: 12px; }
.bt-category-list a { font: 15px/1.5 var(--serif); }
.bt-category-list span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bt-empty-inline { color: var(--muted); font-size: 14px; padding: 28px 0; }
.bt-home-links { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.bt-home-links h2 { margin: 0 0 12px; font: 500 14px/1.6 var(--sans); }
.bt-home-links ul { display: flex; flex-wrap: wrap; list-style: none; gap: 8px 24px; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.bt-home-links li { min-width: 0; overflow-wrap: anywhere; }
/* Footer: visible privacy policy, no promotional strips. */
.bt-site-footer { flex-shrink: 0; }
.bt-footer-inner { border-top: 1px solid var(--line-strong); display: flex; gap: 16px; align-items: baseline; padding-block: 22px 26px; min-height: 74px; font-size: 12px; color: var(--muted); }
.bt-footer-brand { font: 700 13px Georgia,serif; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.bt-footer-note { font-size: 12px; }
.bt-footer-copy { font-size: 11px; }
.bt-footer-inner nav { margin-left: auto; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.bt-footer-inner ul { display: flex; list-style: none; gap: 18px; }
/* Library / category / author / search: same simple rows, no portrait or cover. */
.bt-list-page { padding-block: 40px 70px; }
.bt-page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.bt-page-heading h1 { margin: 0; font-size: 30px; }
.bt-page-heading>span { color: var(--muted); font-size: 13px; }
.bt-sort-nav,.bt-segmented { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 12px 0 0; overflow-x: auto; }
.bt-sort-nav a,.bt-segmented a { white-space: nowrap; padding: 10px 0; font-size: 14px; }
.bt-sort-nav .active,.bt-segmented .active { border-bottom: 2px solid var(--ink); }
.bt-story-row { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }

.bt-story-heading { display: block; margin-bottom: 10px; line-height: 1.8; }
.bt-story-heading h2 { display: inline; font-size: 21px; margin: 0; font-weight: 600; line-height: 1.75; }
.bt-story-heading time { display: inline-block; margin-left: 16px; vertical-align: baseline; }
.bt-story-row .bt-story-excerpt { display: block; width: 100%; color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 12px; overflow-wrap: anywhere; }
.bt-story-row time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bt-story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.bt-tag { padding: 1px 6px; background: var(--faint); border-radius: 2px; }
.bt-tax-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 38px; }
.bt-tax-item { display: flex; align-items: baseline; gap: 12px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.bt-tax-item span { font: 18px/1.6 var(--serif); }
.bt-tax-item small { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 12px; }
.bt-tax-item .bt-icon { align-self: center; width: 14px; height: 14px; }
.bt-term-description { color: var(--muted); }

.bt-ranking-page .bt-rank-list { margin-top: 16px; }
.bt-ranking-page .bt-rank-list li { border-bottom: 1px solid var(--line); min-height: 62px; gap: 22px; align-items: center; }
.bt-ranking-page .bt-rank-list a { font-size: 19px; }
.bt-ranking-page .bt-small-note { margin-top: 18px; }
.bt-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 30px 0 0; font-size: 13px; }
.bt-pagination>span { color: var(--muted); }
.bt-empty { text-align: center; padding: 60px 20px; }
.bt-empty>.bt-icon { display: none; }
.bt-empty p { color: var(--muted); font-size: 14px; }
.bt-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.bt-plain-page { padding-block: 48px 90px; }
.bt-plain-page h1 { margin-bottom: 36px; }
/* Buttons & search */
.bt-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 13px; min-height: 40px; }
.bt-button:hover { text-decoration: none; filter: brightness(.9); }
.bt-button.ghost { background: transparent; color: inherit; border-color: var(--line-strong); }
.bt-text-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; min-width: 40px; gap: 7px; padding: 8px 10px; font-size: 13px; border-radius: 3px; }
.bt-search-form { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 3px; min-height: 46px; margin: 8px 0 28px; background: var(--paper); }
.bt-search-form input { border: 0; background: none; width: 100%; min-width: 0; padding: 12px 15px; font-size: 15px; outline-offset: 0; }
.bt-search-form button { width: 50px; flex-shrink: 0; }
.bt-search-form button:hover { background: var(--faint); }
/* One viewport-anchored progress bar: deliberately outside all page containers. */
#bt-viewport-progress { position: fixed; inset: 0 0 auto; height: 3px; width: 100%; z-index: 2147483646; pointer-events: none; background: transparent; }
#bt-viewport-progress>span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
/* One toolbar DOM for both desktop and mobile. No repeated bottom controls. */
.bt-reading-layout { padding-block: 24px 48px; }
.bt-reader-toolbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; padding: 10px 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
/* Transform keeps the toolbar's layout space; progress geometry never jumps. */
.bt-reader-toolbar.is-scroll-hidden { transform: translateY(calc(-100% - var(--toolbar-hide-offset,0px) - 2px)); visibility: hidden; pointer-events: none; }
.admin-bar .bt-reader-toolbar { top: 32px; }
.bt-reader-location { min-width: 0; flex: 1; }
.bt-reader-location>a { display: flex; align-items: center; gap: 7px; min-height: 44px; width: fit-content; max-width: 100%; font: 13px/1.5 var(--sans); color: var(--muted); }
.bt-reader-location span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bt-reader-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; align-items: center; flex: 0 1 auto; }
.bt-reader-tools .bt-icon-button,.bt-reader-tools .bt-text-button { height: 42px; min-width: 42px; }
.bt-reader-tools .bt-save[aria-pressed=true] .bt-icon { fill: currentColor; }
.bt-reader { padding: 32px clamp(32px,6vw,88px) 40px; background: var(--paper); }
.bt-reading-heading { margin-bottom: 36px; }
.bt-reader-kind { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.bt-reader-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.bt-reader-title-row h1 { margin: 0; font-size: clamp(28px,2.5vw,36px); font-weight: 600; line-height: 1.5; }
.bt-title-progress { font: 12px/1.7 var(--sans); color: var(--muted); overflow-wrap: anywhere; max-width: 100%; }
.bt-reader-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font: 13px/1.6 var(--sans); color: var(--muted); }
.bt-finish { color: var(--muted); text-align: center; font: 12px/1.8 var(--sans); letter-spacing: .18em; margin: 38px 0 6px; }
/* Neighbouring titles form a separate region, not a footer action bar. */
.bt-next-stories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.bt-neighbor { background: var(--paper); min-width: 0; padding: 20px 26px; border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; gap: 7px; }
.bt-neighbor>span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bt-neighbor strong { display: block; font: 600 17px/1.7 var(--serif); overflow-wrap: anywhere; }
.bt-neighbor .bt-icon { width: 14px; height: 14px; }
.bt-neighbor.is-next { text-align: right; }.bt-neighbor.is-next>span { justify-content: flex-end; }
.bt-neighbor.is-empty { color: var(--muted); border-color: transparent; }
.bt-neighbor.is-empty strong { font-size: 14px; font-weight: 400; }
.bt-neighbor:hover:not(.is-empty) { border-color: var(--ink); text-decoration: none; }
#chapters { scroll-margin-top: 90px; }
body[data-reader-theme=gray].bt-reading { --paper: #ededed; --bg: #e5e5e5; --line: #cccccc; --faint: #e1e1e1; }
body[data-reader-theme=night].bt-reading { --bg: #202020; --paper: #262626; --ink: #e8e8e8; --muted: #b4b4b4; --faint: #333333; --line: #454545; --line-strong: #646464; color-scheme: dark; }
.bt-prose { font-family: var(--reader-font); font-size: var(--reader-size); line-height: var(--reader-line); color: inherit; overflow-wrap: anywhere; }
.bt-prose p { margin: 0 0 1.05em; text-indent: 2em; }
.bt-prose h2,.bt-prose h3,.bt-prose h4 { margin: 1.7em 0 .8em; }
.bt-prose h2 { font-size: 1.25em; }.bt-prose h3 { font-size: 1.12em; }
.bt-prose a { text-decoration: underline; text-underline-offset: 4px; }
.bt-prose ul,.bt-prose ol { padding-left: 1.5em; margin: 1em 0; }
.bt-prose blockquote { border-left: 2px solid var(--line-strong); margin: 1.5em 0; padding: .5em 1em; color: inherit; }
.bt-prose blockquote p { text-indent: 0; }
.bt-prose pre { padding: 15px; font-size: .8em; background: var(--faint); white-space: pre-wrap; }
.bt-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .85em; }
.bt-prose td,.bt-prose th { border: 1px solid var(--line); padding: .5em; }
.bt-prose iframe,.bt-prose video { max-width: 100%; }
.bt-prose .post-password-form p { text-indent: 0; }
.bt-prose input[type=password] { max-width: 100%; padding: 8px; border: 1px solid var(--line-strong); }
.bt-prose input[type=submit] { border: 1px solid var(--line-strong); background: var(--faint); padding: 8px 14px; font-size: 14px; }
.bt-toc-root { font: 700 19px/1.55 var(--serif); display: block; margin-bottom: 18px; overflow-wrap: anywhere; }
.bt-toc-location { margin: 0 0 16px; }
.bt-toc-location>a { font-size: 12px; display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.bt-toc-location p { font-size: 13px; margin: 0; color: var(--muted); }
.bt-toc-location small { font-size: 11px; color: var(--muted); }
.bt-toc-list { list-style: none; }
.bt-toc-list li { display: flex; gap: 4px; align-items: center; border-radius: 2px; margin: 3px 0; }
.bt-toc-list li>a:first-child { flex: 1; display: flex; min-width: 0; padding: 12px 10px; gap: 8px; font: 16px/1.65 var(--serif); }
.bt-toc-list li.active { background: var(--faint); }
.bt-toc-list li.active>a:first-child { font-weight: 700; }
.bt-toc-expand { display: inline-flex; width: 34px; min-height: 36px; align-items: center; justify-content: center; }
.bt-toc-paging { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; border-top: 1px solid var(--line); padding: 16px 0; margin-top: 15px; }
.bt-toc-paging span { color: var(--muted); }
.bt-chapter-index { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 26px; }
.bt-chapter-index .bt-toc-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; }
.bt-native-pages { font: 14px/2 var(--sans); padding-block: 16px; }
/* Dialogs & preferences */
.bt-dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 5px; padding: 26px; width: min(510px,calc(100% - 36px)); max-height: 85vh; overflow-y: auto; box-shadow: 0 12px 48px rgba(0,0,0,.12); }
.bt-dialog::backdrop { background: rgba(0,0,0,.3); }
.bt-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.bt-dialog-title h2 { font-size: 22px; margin: 0; }
.bt-dialog-title .bt-brand { font-size: 27px; }
.bt-menu-dialog nav { display: flex; flex-direction: column; }
.bt-menu-dialog nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bt-toc-dialog { max-width: 460px; }
.modal-open { overflow: hidden; }
.bt-setting-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin: 20px 0 10px; }
.bt-dialog input[type=range] { width: 100%; accent-color: #333; min-height: 32px; }
.bt-dialog select { display: block; width: 100%; min-height: 42px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; }
.bt-theme-choices { display: flex; gap: 12px; }
.bt-theme-choices button { flex: 1; padding: 12px; border: 1px solid var(--line-strong); border-radius: 3px; }
.bt-theme-choices button[aria-pressed=true] { outline: 1px solid var(--ink); outline-offset: -3px; font-weight: 700; }
.bt-setting-actions { margin-top: 28px; }
.bt-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 120; max-width: min(90vw,540px); padding: 12px 20px; color: #fff; background: #2b2b2b; border: 1px solid #555; border-radius: 4px; font: 13px/1.65 var(--sans); text-align: center; }
/* Local bookshelf: the title is the only reading link; no bottom borders. */
.bt-shelf-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 18px; }
.bt-shelf-card { min-width: 0; padding: 22px 26px; background: var(--paper); border: 0; border-radius: 3px; }
.bt-shelf-card-title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.bt-shelf-card h3 { font-size: 21px; }
.bt-shelf-card-title .bt-text-button { flex-shrink: 0; color: var(--muted); min-width: 44px; }
.bt-shelf-card p { margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.bt-shelf-card small { font-size: 12px; }
.bt-mini-progress { height: 2px; background: var(--line); margin-block: 14px 8px; }
.bt-mini-progress span { display: block; height: 100%; background: var(--ink); }
.bt-recent-section { margin-top: 46px; }
/* Native comments retain moderation, reply links and paging. */
.bt-comments { padding: 30px clamp(24px,6vw,88px) 34px; margin-top: 24px; background: var(--paper); font: 14px/1.8 var(--sans); overflow-wrap: anywhere; }
.bt-comments .bt-section-heading>span { color: var(--muted); font-size: 12px; }
.bt-comments h2 { font-size: 23px; }.bt-comments h3 { font-size: 19px; margin: 26px 0 12px; }
.bt-comment-list,.bt-comment-list .children { list-style: none; }
.bt-comment-list .children { padding-left: 24px; border-left: 1px solid var(--line); }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bt-comment-meta { display: flex; gap: 10px 20px; align-items: baseline; flex-wrap: wrap; }
.bt-comment-meta time { font-size: 12px; color: var(--muted); }
.comment-content { margin: 12px 0; }.comment-content p:last-child { margin-bottom: 0; }
.comment-content ul,.comment-content ol { padding-left: 1.5em; }
.reply { font-size: 12px; color: var(--muted); }
.comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.comment-form>p { grid-column: 1/-1; margin-bottom: 16px; }
.comment-form .comment-form-author,.comment-form .comment-form-email { grid-column: auto; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; }
.comment-form textarea,.comment-form input:not([type=checkbox]):not([type=submit]):not([type=radio]) { width: 100%; max-width: 100%; padding: 12px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 3px; font-size: 16px; }
.comment-form textarea { resize: vertical; min-height: 116px; }
.comment-form .submit { padding: 10px 22px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 3px; cursor: pointer; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { font-size: 12px; color: var(--muted); }
.comment-reply-title small { margin-left: 14px; font: 12px/1.7 var(--sans); }
.comments-pagination { margin-top: 20px; font-size: 13px; }.comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Shared outer grid, readable inner measure. */
.bt-reading-heading,.bt-reader>.bt-prose,.bt-reader>.bt-chapter-index,.bt-reader>.bt-finish,.bt-reader>.bt-native-pages { width: 100%; max-width: var(--text-width); margin-inline: auto; }
.bt-plain-page>.bt-prose,.bt-plain-page>h1 { max-width: var(--text-width); margin-inline: auto; }
.bt-comments>h2,.bt-comments>.comment-respond,.bt-comments>.bt-comment-list,.bt-comments>.comments-pagination,.bt-comments>.bt-muted { max-width: var(--text-width); margin-inline: auto; }
.bt-reader-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Five-star scores: monochrome and intentionally independent of the book hierarchy. */
.bt-rating-summary { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font: 12px/1.6 var(--sans); }
.bt-stars { display: inline-flex; gap: 3px; white-space: nowrap; font: 17px/1.4 var(--sans); }
.bt-rating-star { color: var(--line-strong); }
.bt-rating-star.is-full { color: var(--ink); }
.bt-rating-star.is-half { background: linear-gradient(to right,var(--ink) 50%,var(--line-strong) 50%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.bt-comment-rating { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.bt-rating-field { grid-column: 1 / -1; border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.bt-rating-field legend { font-size: 14px; margin-bottom: 5px; padding: 0; }
.bt-rating-field small { font-size: 12px; color: var(--muted); margin-left: 8px; }
.bt-rating-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; }
.comment-form .bt-rating-choices label { cursor: pointer; margin: 0; min-width: 42px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 28px; color: var(--line-strong); }
.comment-form .bt-rating-choices label.is-selected { color: var(--ink); }
.comment-form .bt-rating-choices label.bt-rating-clear { font-size: 12px; color: var(--muted); padding: 0 12px; margin-left: 8px; }
.bt-rating-choices input:focus-visible+label { outline: 2px solid var(--ink); outline-offset: -2px; }
.bt-rating-choices input:checked+label { color: var(--ink); }
.bt-rating-hint { display: block; font-size: 12px; margin-top: 4px; }
.bt-rating-reply-note { font-size: 13px; }
/* Real, crawlable pagination with one viewport-observed automatic append sentinel. */
.bt-page-link { min-width: 38px; min-height: 38px; display: inline-flex; justify-content: center; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; }
.bt-page-link[aria-current=page] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.bt-page-link:hover { background: var(--faint); text-decoration: none; }
.bt-list-sentinel { height: 1px; width: 100%; }
.bt-list-status button { padding: 4px 10px; text-decoration: underline; text-underline-offset: 3px; }
.bt-list-status { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.bt-list-status a { text-decoration: underline; }
.bt-ajax-listing[aria-busy=true] .bt-pagination { opacity: .6; }
/* Basic authored blocks use this external stylesheet after optional core CSS cleanup. */
.bt-prose .aligncenter { display: block; margin-inline: auto; text-align: center; }
.bt-prose .alignleft { float: left; margin: 0 1em 1em 0; }.bt-prose .alignright { float: right; margin: 0 0 1em 1em; }
.bt-prose:after { content: ''; display: table; clear: both; }
.bt-prose .has-text-align-center { text-align: center; }.bt-prose .has-text-align-right { text-align: right; }
.bt-prose figure { max-width: 100%; margin: 1.5em 0; }.bt-prose figcaption { text-align: center; font-size: .75em; color: var(--muted); }
.bt-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }.bt-prose .wp-block-button__link { display: inline-block; border: 1px solid var(--line-strong); padding: .5em 1em; text-indent: 0; }

@media(max-width:1100px) {
  .bt-container { width: calc(100% - 64px); }
  .bt-updates { padding-right: 22px; }.bt-home-ranking { padding-inline: 22px; }.bt-home-categories { padding-left: 22px; }
  .bt-update-row { padding: 9px 0; }

  .bt-rank-list li { min-height: 58px; }
}
@media(max-width:800px) {
  .bt-container { width: calc(100% - 48px); }.bt-header-inner { min-height: 74px; gap: 22px; }
  .bt-brand { font-size: 30px; }.bt-desktop-nav { gap: 22px; }
  .bt-home-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .bt-home-ranking { padding-right: 0; }.bt-home-categories { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 28px; }
  .bt-category-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 28px; }
  .bt-tax-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  
  .bt-reading-layout { padding: 0 0 32px; }
  .bt-reader-toolbar { padding: 8px 18px; min-height: 60px; gap: 8px; }
  .admin-bar .bt-reader-toolbar { top: 46px; }
  .bt-reader { padding: 28px 24px 32px; }
  .bt-reader-title-row h1 { font-size: 30px; }.bt-reader-byline { font-size: 12px; }
  .bt-next-stories { margin-top: 20px; }.bt-neighbor { padding: 18px 22px; }
  .bt-comments { padding: 28px 24px; }
}
@media(max-width:560px) {
  .bt-container { width: calc(100% - 36px); }
  .bt-header-inner { min-height: 66px; gap: 12px; }.bt-brand { font-size: 28px; }.bt-desktop-nav { display: none; }
  .bt-header-actions { margin-left: auto; gap: 2px; }.bt-menu-button { display: inline-flex; }.bt-search-trigger { min-width: 40px; justify-content: center; }.bt-search-trigger span { display: none; }
  .bt-home { padding-block: 24px 38px; }.bt-home-grid { display: block; }
  .bt-updates,.bt-home-ranking,.bt-home-categories { border-left: 0; padding: 0; margin: 0; }
  .bt-home-ranking,.bt-home-categories { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
  .bt-section-heading { min-height: 34px; margin-bottom: 12px; }.bt-section-heading h2 { font-size: 21px; }
  .bt-more { font-size: 12px; }.bt-update-row { min-height: 47px; gap: 8px; padding: 12px 0; }
  .bt-update-detail { font-size: 11px; }.bt-update-row time { font-size: 10px; }.bt-update-row h3 { font-size: 14px; }
  .bt-home .bt-update-row:nth-child(n+7),.bt-home .bt-rank-list li:nth-child(n+6) { display: none; }
  .bt-rank-list li { min-height: 44px; gap: 12px; }.bt-rank-list li>a { font-size: 14px; }.bt-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }.bt-category-list a { font-size: 14px; }
  .bt-footer-inner { flex-wrap: wrap; gap: 10px; padding-block: 18px 24px; }.bt-footer-inner nav { gap: 12px; }.bt-footer-note { order: 4; flex-basis: 100%; }
  .bt-reader-toolbar { padding: 7px 6px; gap: 6px; flex-wrap: wrap; }
  .bt-reader-tools { gap: 0; }.bt-reader-tools .bt-icon-button,.bt-reader-tools .bt-text-button { min-width: 36px; width: 36px; padding: 8px; }
  .bt-reader-location>a { font-size: 12px; gap: 2px; }.bt-reader-location .bt-icon { width: 16px; }
  .bt-reader { padding: 24px 14px 30px; }.bt-reading-heading { margin-bottom: 28px; }.bt-reader-title-row { gap: 8px 12px; }.bt-reader-title-row h1 { font-size: 28px; }
  .bt-title-progress { font-size: 11px; }.bt-reader-byline { gap: 7px 14px; font-size: 11px; }.bt-reader-kind { font-size: 11px; margin-bottom: 10px; }
  .bt-prose p { margin-bottom: 1.15em; }.bt-chapter-index .bt-toc-list { grid-template-columns: 1fr; }.bt-chapter-index .bt-toc-list a { font-size: 15px; }
  .bt-next-stories { margin-top: 16px; gap: 10px; }.bt-neighbor { padding: 15px 16px; }.bt-neighbor strong { font-size: 15px; }.bt-neighbor>span { font-size: 11px; }
  .bt-comments { padding: 26px 14px; margin-top: 18px; }.comment-form { grid-template-columns: 1fr; }.comment-form>p { grid-column: 1; }.bt-comment-list .children { padding-left: 16px; }
  .bt-list-page,.bt-plain-page { padding-block: 28px 48px; }.bt-page-heading { flex-wrap: wrap; gap: 10px; }.bt-page-heading h1 { font-size: 28px; }.bt-page-heading>span { font-size: 12px; }
  .bt-story-row { gap: 12px; padding: 22px 0; }.bt-story-row h2 { font-size: 21px; }.bt-story-row p { font-size: 13px; }.bt-story-meta { font-size: 11px; gap: 6px 12px; }
  .bt-tax-grid { grid-template-columns: 1fr; }.bt-shelf-list { grid-template-columns: 1fr; gap: 14px; }.bt-shelf-card { padding: 20px; }.bt-shelf-card h3 { font-size: 20px; }.bt-recent-section { margin-top: 32px; }
  .bt-dialog { padding: 20px; max-height: 84svh; }.bt-dialog-title h2 { font-size: 21px; }.bt-search-form input { font-size: 16px; }.bt-pagination { font-size: 12px; gap: 12px; }.bt-pagination .bt-button { padding: 8px 12px; }
}
@media(max-width:360px) { .bt-container { width: calc(100% - 30px); }.bt-reader { padding-inline: 10px; }.bt-update-row { gap: 5px; }.bt-update-row h3 { font-size: 13px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }
@media print { body { background: #fff!important; color: #000!important; }.bt-site-header,.bt-site-footer,.bt-reader-toolbar,.bt-next-stories,.bt-comments,.bt-toast,dialog,#bt-viewport-progress { display: none!important; }.bt-reading-layout { width: 100%; max-width: none; padding: 0; }.bt-reader { padding: 0; background: #fff!important; color: #000!important; }.bt-prose { font-size: 12pt; line-height: 1.8; }.bt-prose p { orphans: 3; widows: 3; } }
