/* Books preview: same neutral palette and type scale as Archives and Say. */
body.srb-books {
  --bg:#f5f5f5; --ink:#1d1e20; --soft:#777; --muted:#777;
  --line:#e5e5e5; --line-strong:#d6d6d6; --panel:#ededed; --tag:#d6d6d6;
  --green:#1d1e20; --blue:#777; --purple:#606064; --red:#777;
  --shadow:rgb(0 0 0 / 8%);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  --mono:var(--font);
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:18px;line-height:1.65;
}
html[data-theme="dark"] body.srb-books {
  --bg:#1d1e20;--ink:#dadadb;--soft:#a0a0a0;--muted:#a0a0a0;
  --line:#333436;--line-strong:#494a4d;--panel:#292a2c;--tag:#353638;
  --green:#dadadb;--blue:#a0a0a0;--purple:#b5b5b7;--red:#a0a0a0;
}
body.srb-books *,body.srb-books *::before,body.srb-books *::after{box-sizing:border-box}
body.srb-books a{color:inherit}
body.srb-books button,body.srb-books input{font:inherit}
body.srb-books a:focus-visible,body.srb-books button:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
body.srb-books [hidden],body.srb-books .is-hidden{display:none!important}
body.srb-books .srbb-main{width:100%;max-width:768px;margin:auto;padding:44px 24px 60px}
body.srb-books .srb-books-title{margin:12px 0 28px;font-size:40px;line-height:1.25;font-weight:700;letter-spacing:-.5px}
body.srb-books .srbb-books{display:flex;flex-direction:column;gap:0;padding:0}
body.srb-books .srbb-books>section{margin:0 0 44px}
body.srb-books .srbb-books h2{margin:0 0 20px;color:var(--ink);font-size:24px;font-weight:700;line-height:1.4;text-align:left;letter-spacing:0}
body.srb-books .srbb-books-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;border:0;padding:0;margin:0 0 40px}
body.srb-books .srbb-books-filters>div span{font:400 14px/1.5 var(--font);letter-spacing:0;text-transform:none;color:var(--muted)}
body.srb-books .srbb-books-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0}
body.srb-books .srbb-books-tabs a,body.srb-books .srbb-books-calendar button,body.srb-books .srbb-books-year-card{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;margin:0;padding:5px 12px;
  border:0;border-radius:6px;background:var(--panel);color:var(--ink);font:400 14px/1.5 var(--font);text-decoration:none;box-shadow:none;cursor:pointer;
}
body.srb-books .srbb-books-tabs a.is-active,body.srb-books .srbb-books-calendar button.is-active,body.srb-books .srbb-books-year-card.is-active{background:var(--tag);color:var(--ink);font-weight:600}
body.srb-books .srbb-books-tabs a:hover,body.srb-books .srbb-books-calendar button:hover,body.srb-books .srbb-books-year-card:hover{background:var(--tag);color:var(--ink)}
body.srb-books .srbb-books-tabs a i{display:none}
body.srb-books .srbb-books-tabs small,body.srb-books .srbb-books-calendar button small{font-size:12px;color:var(--muted)}
body.srb-books .srbb-books-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.srb-books .srbb-books-reading-grid[data-reading-count="1"]{grid-template-columns:1fr;max-width:440px}
body.srb-books .srbb-books-current{grid-template-columns:88px minmax(0,1fr);gap:20px;padding:0;border:0;border-radius:0;background:transparent}
body.srb-books .srbb-books-current-cover{width:88px;height:124px;min-height:0;border:0;border-radius:3px;background:var(--tag);box-shadow:0 2px 6px var(--shadow)}
body.srb-books .srbb-books-current-cover img{width:100%;height:100%;object-fit:cover}
body.srb-books .srbb-books-current-body>span{font:400 13px/1.5 var(--font);color:var(--muted)}
body.srb-books .srbb-books-current-body h3{margin:4px 0 7px;font-size:20px;font-weight:400;line-height:1.5}
body.srb-books .srbb-books-current-body p{font-size:14px;line-height:1.65;color:var(--muted)}
body.srb-books .srbb-reading-progress{margin-top:12px}
body.srb-books .srbb-reading-progress-meta{display:flex;justify-content:space-between;margin-bottom:6px;color:var(--muted);font-size:12px;line-height:1.5}
body.srb-books .srbb-reading-progress-value{font-weight:400}
body.srb-books .srbb-reading-progress-track{height:4px;border-radius:3px;background:var(--tag);overflow:hidden}
body.srb-books .srbb-reading-progress-fill{display:block;height:100%;border-radius:inherit;background:var(--ink)}
body.srb-books .srbb-books-calendar-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
body.srb-books .srbb-books-calendar-head h2{margin:0}
body.srb-books .srbb-books-calendar-controls{display:grid;gap:10px;max-width:100%}
body.srb-books .srbb-books-calendar-years,body.srb-books .srbb-books-calendar-months{gap:8px}
body.srb-books .srbb-books-calendar button{min-height:30px;padding:4px 10px;font-size:13px;white-space:nowrap}
body.srb-books .srbb-books-calendar-panel{grid-template-columns:104px minmax(0,1fr);gap:28px;padding:24px 0;border-bottom:1px solid var(--line)}
body.srb-books .srbb-books-calendar-month{display:block}
body.srb-books .srbb-books-calendar-month strong{color:var(--ink);font:700 24px/1.4 var(--font)}
body.srb-books .srbb-books-calendar-month span{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted)}
body.srb-books .srbb-books-calendar-book{grid-template-columns:32px 36px minmax(0,1fr) auto;gap:12px;min-height:78px;padding:10px 0;border-color:var(--line)}
body.srb-books .srbb-books-calendar-date strong{font-size:16px;font-weight:400;line-height:1.4}
body.srb-books .srbb-books-calendar-date small{margin-top:3px;font-size:10px;letter-spacing:0;line-height:1.4}
body.srb-books .srbb-books-calendar-cover{width:36px;height:50px;border:0;border-radius:2px;background:var(--tag);box-shadow:0 2px 5px var(--shadow)}
body.srb-books .srbb-books-calendar-copy h3{font-size:18px;font-weight:400;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
body.srb-books .srbb-books-calendar-copy p{font-size:13px;line-height:1.5;white-space:normal;margin:3px 0 0}
body.srb-books .srbb-books-calendar-full-date{font-size:12px;color:var(--muted)}
body.srb-books .srbb-books-calendar-book:hover h3{text-decoration:underline;text-underline-offset:4px}
body.srb-books .srbb-books-years{padding:0;border:0}
body.srb-books .srbb-books-year-list{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body.srb-books .srbb-books-year-label{margin-right:8px;color:var(--muted);font-size:14px;white-space:normal}
body.srb-books .srbb-books-year-card span{font-size:14px}
body.srb-books .srbb-books-year-card sup{margin:0;align-self:auto;color:var(--muted);font-size:11px;line-height:1}
body.srb-books .srbb-book-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px;max-width:none}
body.srb-books .srbb-book-showcase-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:18px;padding:0 0 20px;border-bottom:1px solid var(--line)}
body.srb-books .srbb-book-cover-stage{width:72px;height:104px;min-height:0;overflow:visible;background:transparent;border:0;border-radius:0}
body.srb-books .srbb-book-cover-stage::before,body.srb-books .srbb-book-object::after{display:none}
body.srb-books .srbb-book-object,body.srb-books .srbb-book-showcase-card:hover .srbb-book-object{width:72px;height:104px;aspect-ratio:auto;border:0;border-radius:2px;background:var(--tag);transform:none;box-shadow:0 2px 5px var(--shadow)}
body.srb-books .srbb-book-object img{border:0;border-radius:2px;background:var(--tag);object-fit:cover}
body.srb-books .srbb-book-object span{padding:10px;border:0;border-radius:2px;background:var(--tag);color:var(--ink);font-size:12px;font-weight:400;overflow-wrap:anywhere}
body.srb-books .srbb-book-showcase-body h3{font-size:18px;font-weight:400;line-height:1.5}
body.srb-books .srbb-book-showcase-body h3 a:hover{text-decoration:underline;text-underline-offset:4px}
body.srb-books .srbb-book-showcase-body p{font-size:13px;line-height:1.5;margin:5px 0 0}
body.srb-books .srbb-book-showcase-stars{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.5}
body.srb-books .srbb-book-showcase-status{position:static;width:fit-content;background:var(--tag);color:var(--ink);padding:2px 6px;font-size:11px}
body.srb-books .srbb-books-showcase-more{margin:24px 0 0}
body.srb-books .srbb-books-showcase-toggle{min-width:0;padding:8px 16px;border:0;border-radius:6px;background:var(--tag);color:var(--ink);box-shadow:none;font-size:14px;font-weight:400;line-height:1.5}
body.srb-books .srbb-books-showcase-toggle:hover{transform:none;background:var(--panel);border:0}
body.srb-books .srbb-books-stacks-plot{padding:24px 24px 20px;border:0;background:var(--panel);box-shadow:none}
body.srb-books .srbb-books-stacks-grid{inset:24px 24px 54px}
body.srb-books .srbb-books-stacks-gridline span{display:none}
body.srb-books .srbb-books-stack-columns{min-width:540px;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
body.srb-books .srbb-books-stack{min-height:0;align-content:end}
body.srb-books .srbb-books-stack-meta{gap:0;font-size:12px;min-height:0;margin-bottom:12px;white-space:normal}
body.srb-books .srbb-books-stack-meta strong{font-weight:400}
body.srb-books .srbb-books-stack-meta i,body.srb-books .srbb-books-stack-meta em{display:none}
body.srb-books .srbb-books-stack-spines{max-width:100px;filter:none}
body.srb-books .srbb-books-stack-spine{height:16px;min-height:3px;margin-top:1px;box-shadow:none}
body.srb-books .srbb-books-stack.srbb-stack-is-compact .srbb-books-stack-spine{height:var(--srbb-compact-spine-height)!important}
body.srb-books .srbb-books-stack-year{font-size:16px;font-weight:400;margin-top:16px}
body.srb-books .srbb-books-stack.is-active .srbb-books-stack-year{text-decoration:underline;text-underline-offset:4px}
body.srb-books .srb-books-footer{text-align:center;color:var(--muted);font-size:13px;padding:16px 24px 32px}
@media(max-width:680px){
 body.srb-books .srbb-main{padding-top:28px}
 body.srb-books .srb-books-title{font-size:34px}
 body.srb-books .srbb-books h2{font-size:22px}
 body.srb-books .srbb-books-reading-grid{grid-template-columns:1fr}
 body.srb-books .srbb-books-calendar-head{display:block}
 body.srb-books .srbb-books-calendar-controls{margin-top:16px}
 body.srb-books .srbb-books-calendar-panel{grid-template-columns:1fr;gap:10px;padding:20px 0}
 body.srb-books .srbb-books-calendar-month{display:flex;gap:10px;align-items:baseline}
 body.srb-books .srbb-books-calendar-month span{margin:0}
 body.srb-books .srbb-books-calendar-full-date{display:none}
 body.srb-books .srbb-books-calendar-book{grid-template-columns:28px 36px minmax(0,1fr);gap:10px}
 body.srb-books .srbb-book-showcase-grid{grid-template-columns:1fr;gap:20px}
}

body.srb-books .srbb-books-tabs a[data-books-filter]{background:var(--panel);color:var(--ink)}
body.srb-books .srbb-books-tabs a[data-books-filter].is-active{background:var(--tag);color:var(--ink)}
body.srb-books .srbb-books-year-label{font-weight:400}

/* The original theme prints reading-progress styles in the footer. */
body.srb-books .srbb-reading-progress{width:100%!important;max-width:100%!important}
body.srb-books .srbb-reading-progress-meta{font-weight:400;letter-spacing:0;gap:8px}
body.srb-books .srbb-reading-progress-value{font-size:12px;letter-spacing:0}
body.srb-books .srbb-reading-progress-track{box-shadow:none}
body.srb-books .srbb-books-reading-grid[data-reading-count]{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.srb-books .srbb-books-reading-grid[data-reading-count="1"]{grid-template-columns:1fr}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-books-current{grid-template-columns:88px minmax(0,1fr);gap:20px;padding:0;border-radius:0}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-books-current-cover{min-height:0}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-books-current-body h3{margin:4px 0 7px;font-size:20px;line-height:1.5}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-books-current-body p{display:block;line-height:1.65;font-size:14px}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-reading-progress{margin-top:12px;max-width:100%!important}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-reading-progress-meta{font-size:12px}
body.srb-books .srbb-books-reading-grid[data-reading-count] .srbb-reading-progress-track{height:4px}
body.srb-books .srbb-footer{max-width:768px;margin:auto;padding:16px 24px 32px;border:0;background:transparent;color:var(--muted);font-family:var(--font);font-size:13px}
@media(max-width:680px){body.srb-books .srbb-books-reading-grid[data-reading-count]{grid-template-columns:1fr}}

body.srb-books .srb-books-title{display:none}
