:root {
  --paper: #f1eadc;
  --paper-light: #fbf7ee;
  --paper-deep: #e3d7c4;
  --ink: #173d35;
  --ink-soft: #536961;
  --red: #ad432f;
  --red-soft: #f1d5c8;
  --yellow: #e9b85d;
  --line: rgba(23,61,53,.17);
  --shadow: 0 24px 70px rgba(31,42,35,.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select, input[type="file"] { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.shell { width: min(1480px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; color: white; background: var(--ink); }.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; height: 68px; padding: 0 max(24px, calc((100vw - 1480px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; background: rgba(241,234,220,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }.brand span:last-child { min-width: 0; }.brand strong,.brand small { display: block; }.brand strong { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }.brand small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; letter-spacing: .18em; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }.brand-mark img { width: 100%; height: 100%; }
.page-nav { justify-self: start; display: flex; align-items: stretch; gap: 22px; }.page-nav a { position: relative; min-height: 44px; padding: 0 1px; display: inline-flex; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: 12px; }.page-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: transparent; }.page-nav a[aria-current] { color: var(--ink); font-weight: 800; }.page-nav a[aria-current]::after { background: var(--red); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.readonly-badge { display: none; min-height: 32px; padding: 0 10px; align-items: center; color: var(--ink); background: var(--yellow); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
body.is-read-only .readonly-badge { display: inline-flex; }
body.is-read-only #openAddBook,
body.is-read-only .detail-header-actions,
body.is-read-only .book-tools,
body.is-read-only .record-form { display: none !important; }
.primary-button,.text-button,.link-button,.icon-button,.side-filter,.filter-button,.rail-more,.like-button,.card-like { border: 0; background: none; }
.primary-button { min-height: 44px; padding: 0 17px; color: white; background: var(--ink); border-radius: 3px; font-weight: 700; }.primary-button:hover { background: #0b2e28; }.primary-button:disabled { opacity: .55; cursor: wait; }
.text-button { min-height: 44px; padding: 0 9px; color: var(--ink-soft); font-size: 12px; }.text-button:hover { color: var(--ink); }
.count-badge { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 3px; padding: 0 5px; border-radius: 50%; color: white; background: var(--red); font-size: 10px; }.count-badge.muted { color: var(--ink); background: var(--paper-deep); }

.dashboard { min-height: 250px; padding-block: 40px 30px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 42px; border-bottom: 1px solid var(--line); }.dashboard-copy { min-width: 0; }
.eyebrow { margin: 0 0 9px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.dashboard h1 { margin: 0; font-size: clamp(36px,4vw,58px); line-height: 1.06; letter-spacing: -.035em; }.dashboard h1 em { color: var(--red); font-style: normal; }
.reading-focus { margin-top: 20px; display: flex; align-items: center; gap: 12px; }.reading-focus > span { flex: 0 0 auto; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .12em; }.reading-focus .topic-filters { padding: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }.reading-focus .topic-filters::-webkit-scrollbar { display: none; }.reading-focus .filter-button { min-height: 38px; padding-inline: 11px; background: rgba(251,247,238,.54); white-space: nowrap; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3,auto); gap: 28px; }.dashboard-stats span { max-width: 86px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }.dashboard-stats strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--serif); font-size: 29px; line-height: 1.1; }
.library-layout { padding-block: 14px 80px; display: grid; grid-template-areas: "filter" "books"; gap: 14px; align-items: start; }
.filter-sidebar { grid-area: filter; position: relative; display: grid; grid-template-columns: 140px minmax(280px,1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(251,247,238,.5); border-block: 1px solid var(--line); }.sidebar-heading { display: flex; flex-direction: column; align-items: flex-start; }.sidebar-heading .eyebrow { margin-bottom: 0; }.link-button { min-height: 32px; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.search-box { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0 11px; background: var(--paper-light); border: 1px solid var(--line); }.search-box span { color: var(--ink-soft); font-size: 18px; }.search-box input { width: 100%; min-width: 0; height: 44px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; }.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgba(190,78,53,.13); }
fieldset { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; } legend { margin-bottom: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
fieldset select,.recommend-filters select,.catalog-selects select,.manual-confirm select { width: 100%; height: 44px; padding: 0 30px 0 10px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font-size: 12px; }
.primary-filter { margin: 0; }.primary-filter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }.stacked-filters { display: flex; border: 1px solid var(--line); }.side-filter { min-height: 44px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; color: var(--ink-soft); border-right: 1px solid var(--line); font-size: 12px; }.side-filter:last-child { border-right: 0; }.side-filter small { min-width: 20px; text-align: right; }.side-filter.is-active { color: white; background: var(--ink); font-weight: 800; }
.more-filters { position: relative; }.more-filters summary { min-height: 44px; padding: 0 16px; display: flex; align-items: center; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font-size: 12px; cursor: pointer; list-style: none; }.more-filters summary::-webkit-details-marker { display: none; }.more-filters summary::after { content: "＋"; margin-left: 14px; }.more-filters[open] summary::after { content: "−"; }.filter-fields { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(760px,calc(100vw - 48px)); padding: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }.filter-fields fieldset { margin: 0; }.sidebar-foot { grid-column: 1/-1; }
.sidebar-foot { margin: 0; padding-top: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; }

.library-main { grid-area: books; min-width: 0; }.library-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }.library-heading-copy,.library-controls { display: flex; align-items: center; gap: 12px; }.library-heading h2 { margin: 0; font-size: 31px; }.library-heading-copy > strong { color: var(--red); font-size: 12px; }.library-controls { flex: 0 0 auto; }.liked-quick-filter { min-height: 38px; padding: 0 11px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }.liked-quick-filter span { margin-right: 3px; color: var(--red); }.liked-quick-filter small { margin-left: 4px; }.liked-quick-filter.is-active { color: white; background: var(--red); border-color: var(--red); }.liked-quick-filter.is-active span { color: white; }.sort-control { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; }.sort-control select { min-width: 116px; height: 38px; padding: 0 28px 0 10px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font-size: 11px; }
.topic-filters,.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }.topic-filters { padding: 15px 0 22px; }.filter-button { min-height: 44px; padding: 0 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }.filter-button.is-active { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.book-grid { display: block; }.library-theme-section { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }.library-theme-section:first-child { padding-top: 22px; }.library-theme-section > h3 { margin: 0 0 14px; color: var(--ink); font-size: 20px; }.library-flat-section { border-bottom: 0; }.book-grid-section { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 26px 14px; }.book-card { position: relative; min-width: 0; }.book-card-button { width: 100%; padding: 0; text-align: left; color: inherit; background: none; border: 0; }.book-card h3 { margin: 10px 0 3px; font-family: var(--sans); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.book-card p { margin: 0; color: var(--ink-soft); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover { position: relative; aspect-ratio: 4/5; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--paper-light); border: 1px solid rgba(23,61,53,.1); box-shadow: none; transition: transform .18s ease,border-color .18s ease; }.book-card-button:hover .cover { border-color: rgba(23,61,53,.24); transform: translateY(-2px); }.cover img { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; display: block; object-fit: contain; background: var(--paper-light); }.cover-tone-0 { background: var(--paper-light); }.cover-tone-1 { background: var(--paper-light); }.cover-tone-2 { background: var(--paper-light); }.cover-tone-3 { background: var(--paper-light); }.cover-tone-4 { background: var(--paper-light); }.cover-tone-5 { background: var(--paper-light); }.cover-tone-6 { background: var(--paper-light); }.cover-missing { background: linear-gradient(90deg,rgba(23,61,53,.08) 0 8px,rgba(251,247,238,.7) 8px),var(--paper-deep); }.cover-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--ink-soft); }.cover-placeholder-icon { position: relative; width: 34px; height: 28px; border: 1px solid currentColor; border-radius: 2px 7px 7px 2px; opacity: .5; }.cover-placeholder-icon::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 6px; border-left: 1px solid currentColor; }.cover-placeholder small { font-size: 10px; }
.cover-badge,.point-badge { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 4px 6px; color: white; background: rgba(23,61,53,.9); font-size: 8px; letter-spacing: .05em; }.point-badge { top: auto; bottom: 7px; left: 7px; background: rgba(190,78,53,.92); }.cover-source,.cover-quality { position: absolute; right: 6px; bottom: 6px; padding: 3px 5px; color: white; background: rgba(23,61,53,.72); font-size: 7px; }.cover-quality { bottom: 27px; }.cover-quality.is-hd { background: rgba(23,61,53,.9); }.cover-quality.is-usable { background: rgba(161,108,32,.9); }.cover-quality.is-low { background: rgba(190,78,53,.92); }
.card-like { position: absolute; z-index: 4; top: 7px; right: 7px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: rgba(251,247,238,.72); border-radius: 50%; }.card-like:hover,.card-like:focus-visible { background: var(--paper-light); }.card-like.is-liked { color: white; background: var(--red); }.heart-icon { width: 22px; height: 22px; display: block; fill: transparent; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }.is-liked .heart-icon { fill: currentColor; stroke-width: 1.15; }
.empty-state,.candidate-empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); }.empty-state h3,.candidate-empty h3 { margin: 0 0 6px; font-size: 25px; }.empty-state p,.candidate-empty p { margin: 0; }

.discover-page { padding: 18px 0 90px; }.discover-hero { padding: 38px 42px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); align-items: center; gap: 48px; color: var(--paper-light); background: var(--ink); }.discover-hero .eyebrow { color: var(--yellow); }.discover-hero h1 { margin: 0; font-size: clamp(38px,4vw,56px); line-height: 1.05; }.discover-hero h1 em { color: var(--yellow); font-style: normal; }.discover-intro-copy > p:last-child { max-width: 570px; margin: 16px 0 0; color: rgba(255,255,255,.66); font-family: var(--serif); font-size: 14px; line-height: 1.75; }.featured-recommendation { min-width: 0; }.featured-recommendation-button { width: 100%; padding: 18px; display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 22px; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-align: left; transition: transform .18s ease,background .18s ease,box-shadow .18s ease; }.featured-recommendation-button:hover { background: rgba(255,255,255,.12); box-shadow: 0 15px 32px rgba(0,0,0,.18); transform: translateY(-3px); }.featured-recommendation-button > img { width: 112px; aspect-ratio: 3/4; object-fit: contain; background: white; }.featured-recommendation-copy { min-width: 0; display: block; }.featured-kicker { display: block; margin: 0 0 6px; color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .12em; }.featured-title { display: block; color: white; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.25; }.featured-connection { min-width: 0; margin: 10px 0 0; display: flex; align-items: baseline; gap: 6px; color: var(--yellow); font-size: 10.5px; font-weight: 700; }.featured-connection span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.featured-connection small { flex: 0 0 auto; color: rgba(255,255,255,.48); font-size: 9px; font-weight: 500; }.featured-reason { display: block; margin: 5px 0 0; color: rgba(255,255,255,.76); font-family: var(--serif); font-size: 12px; line-height: 1.6; }.featured-meta { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; }.featured-meta span { padding: 5px 7px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.2); font-size: 9px; }
.discover-content { padding-top: 34px; }.discover-heading { padding-bottom: 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; border-bottom: 1px solid var(--line); }.discover-heading h2 { margin: 0; font-size: 35px; }.discover-heading > p { max-width: 470px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }.view-switch,.add-mode-switch { display: inline-flex; padding: 4px; background: var(--paper-deep); border-radius: 999px; }.view-switch button,.add-mode-switch button { min-height: 44px; padding: 0 15px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; font-size: 11px; }.view-switch button.is-active,.add-mode-switch button.is-active { color: white; background: var(--ink); }
.ranking-intro { padding: 24px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }.ranking-intro h3,.filter-panel-title h3 { margin: 0; font-size: 26px; }.ranking-intro p,.filter-panel-title p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }.recommendation-boards { display: block; }.topic-shelf { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }.topic-shelf > header { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }.topic-shelf h3 { margin: 0; font-size: 25px; }.topic-shelf header p:last-child { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }.topic-book-row { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }.topic-book-card { min-width: 0; }.topic-book-button { width: 100%; padding: 0; color: inherit; background: none; border: 0; text-align: left; }.topic-book-button img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--paper-light); border: 1px solid var(--line); box-shadow: 0 5px 13px rgba(45,52,40,.07); transition: transform .18s ease,box-shadow .18s ease; }.topic-book-button:hover img { box-shadow: 0 10px 20px rgba(45,52,40,.13); transform: translateY(-3px); }.topic-book-title { margin: 10px 0 5px; font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.topic-book-connection { min-width: 0; margin: 0 0 4px; display: flex; gap: 4px; color: var(--red); font-size: 10px; font-weight: 700; }.topic-book-connection span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.topic-book-connection small { display: none; }.topic-book-reason { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.topic-book-age { display: block; margin-top: 7px; color: var(--red); font-size: 9px; }.ranking-empty { color: var(--ink-soft); font-size: 10px; }
.filter-panel { padding-top: 28px; }.filter-panel-title { display: flex; align-items: end; justify-content: space-between; gap: 28px; }.catalog-controls { margin-top: 20px; padding-block: 12px; border-block: 1px solid var(--line); }.catalog-controls .search-box { width: min(560px,100%); }.catalog-selects { width: min(560px,100%); padding: 12px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.catalog-selects label { color: var(--ink-soft); font-size: 11px; }.catalog-selects select { width: 100%; height: 44px; margin-top: 5px; padding: 0 30px 0 10px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font-size: 12px; }.result-line { min-height: 38px; margin: 0; display: flex; align-items: center; color: var(--ink-soft); font-size: 11px; }.reference-catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.reference-card { min-width: 0; }.reference-card-button { width: 100%; padding: 13px; display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: start; gap: 13px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); text-align: left; }.reference-card-button:hover { border-color: rgba(23,61,53,.38); }.reference-card-button > .reference-cover { width: 84px; aspect-ratio: 3/4; object-fit: contain; background: white; border: 1px solid var(--line); }.reference-card-copy { min-width: 0; display: block; }.reference-title { display: block; margin: 9px 0 7px; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; }.reference-labels { display: flex; flex-wrap: wrap; gap: 4px; }.reference-labels span { padding: 4px 6px; color: var(--ink-soft); background: rgba(23,61,53,.07); font-size: 9px; }.reference-connection { min-width: 0; margin: 0 0 4px; display: flex; gap: 5px; color: var(--red); font-size: 10px; font-weight: 700; }.reference-connection span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.reference-connection small { flex: 0 0 auto; color: var(--ink-soft); font-size: 9px; font-weight: 500; }.reference-reason { color: var(--ink-soft); font-family: var(--serif); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.reference-byline { margin: 8px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.load-more { width: 100%; min-height: 46px; margin-top: 18px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font-size: 11px; }

.site-footer { color: rgba(255,255,255,.65); background: #102f29; }.footer-inner { padding-block: 46px 34px; }.footer-contact strong { color: white; font-family: var(--serif); font-size: 17px; }.footer-contact p { margin: 8px 0 0; font-size: 11px; line-height: 1.8; }

dialog { padding: 0; color: var(--ink); background: var(--paper-light); border: 0; box-shadow: var(--shadow); } dialog::backdrop { background: rgba(11,32,28,.66); backdrop-filter: blur(4px); }.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 24px; line-height: 1; }.dialog-close { position: absolute; z-index: 10; top: 16px; right: 16px; background: var(--paper-light); }
.book-dialog { width: min(760px,100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; }.book-dialog .dialog-shell,.book-detail-grid { height: 100%; }.book-dialog .dialog-close { width: 44px; height: 44px; }.book-detail-grid { overflow-y: auto; }.detail-hero { padding: 42px 48px 30px; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 28px; background: var(--paper-deep); }.detail-cover-column .cover { width: 100%; max-width: 150px; margin-inline: auto; }.detail-heading { min-width: 0; padding-top: 4px; }.detail-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 52px 12px 0; }.status-tag { padding: 5px 8px; color: var(--ink-soft); background: rgba(251,247,238,.65); border: 1px solid var(--line); font-size: 10px; }.status-tag.accent { color: var(--red); background: var(--red-soft); border-color: transparent; }.detail-heading h2 { margin: 0; font-size: clamp(28px,4vw,38px); line-height: 1.14; }.detail-byline { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }.detail-header-actions { margin-top: 18px; }.like-button { width: auto; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--red); background: rgba(251,247,238,.72); border: 1px solid rgba(190,78,53,.35); font-weight: 800; }.like-button .heart-icon { width: 20px; height: 20px; }.like-button.is-liked { color: white; background: var(--red); border-color: var(--red); }
.book-tools { margin-top: 12px; }.book-tools summary { min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); font-size: 12px; cursor: pointer; list-style: none; }.book-tools summary::-webkit-details-marker { display: none; }.book-tools summary::after { content: "＋"; margin-left: 8px; }.book-tools[open] summary::after { content: "−"; }.cover-actions { margin-top: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.upload-cover,.metadata-button { min-height: 44px; padding: 9px; text-align: center; border: 1px solid var(--line); background: var(--paper-light); font-size: 11px; }.upload-cover { position: relative; }.upload-cover input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-cover:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }.metadata-button { color: white; background: var(--ink); }.metadata-button:disabled { opacity: .5; }.detail-source { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.detail-content { padding: 32px 48px 60px; }.description-card h3,.detail-section h3,.record-form h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; }.description-card { padding-bottom: 28px; border-bottom: 1px solid var(--line); }.description { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.9; }.description.is-missing { color: var(--ink-soft); font-size: 14px; }.description-card > small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 10px; }
.detail-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }.description-card + .detail-section { margin-top: 0; border-top: 0; }.fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 28px; }.fact-grid div { min-width: 0; }.fact-grid dt { color: var(--ink-soft); font-size: 11px; }.fact-grid dd { margin: 5px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }.fact-grid dd small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 10px; }.fact-grid dd.is-missing { color: var(--red); }.evidence-list,.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }.evidence-list span,.tag-list span { padding: 7px 9px; background: rgba(23,61,53,.07); font-size: 11px; }.preference-evidence { margin-top: 16px; }.preference-evidence p { margin: 0 0 7px; color: var(--ink-soft); font-size: 11px; }.similar-button { margin-top: 12px; }.source-link { color: var(--red); }
.recommendation-detail-hero { color: var(--paper-light); background: var(--ink); }.recommendation-detail-hero .detail-byline { color: rgba(255,255,255,.64); }.recommendation-detail-hero .status-tag { color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }.recommendation-detail-hero .status-tag.accent { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }.recommendation-detail-cover { width: 150px; aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; background: white; box-shadow: 0 12px 28px rgba(0,0,0,.18); }.recommendation-detail-cover img { width: 100%; height: 100%; object-fit: contain; }.recommendation-reason-card { padding: 24px; background: rgba(233,184,93,.18); }.recommendation-reason-card .eyebrow { margin-bottom: 8px; }.recommendation-reason-card > p:last-child { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.8; }.recommendation-tags { margin-top: 22px; padding-top: 0; border-top: 0; }.related-shelf-heading { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }.related-shelf-heading .eyebrow { margin-bottom: 5px; }.related-shelf-heading h3 { margin: 0; font-family: var(--serif); font-size: 23px; letter-spacing: 0; }.related-shelf-heading > small { color: var(--ink-soft); font-size: 10px; }.related-shelf-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.related-shelf-book { min-width: 0; min-height: 82px; padding: 8px 10px 8px 8px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; color: inherit; background: var(--paper); border: 1px solid var(--line); text-align: left; }.related-shelf-book:hover { background: var(--paper-deep); }.related-shelf-cover { width: 48px; aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; background: var(--paper-light); }.related-shelf-cover img { width: 100%; height: 100%; object-fit: contain; }.related-book-placeholder { color: var(--ink-soft); font-family: var(--serif); font-size: 18px; }.related-shelf-copy { min-width: 0; }.related-shelf-copy small,.related-shelf-copy strong { display: block; }.related-shelf-copy small { margin-bottom: 4px; color: var(--red); font-size: 9px; }.related-shelf-copy strong { font-family: var(--serif); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.related-shelf-arrow { color: var(--red); font-size: 17px; }
.record-form { margin-top: 30px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }.record-form-header { display: flex; justify-content: space-between; gap: 10px; }.record-form-header small { color: var(--ink-soft); font-size: 11px; }.signal-grid { margin: 14px 0 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.signal-option input { position: absolute; opacity: 0; }.signal-option span { min-height: 44px; padding: 8px 5px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); background: var(--paper-light); border: 1px solid var(--line); font-size: 11px; }.signal-option input:checked + span { color: white; background: var(--ink); }.signal-option input:focus-visible + span { outline: 3px solid var(--red); }.record-fields { display: grid; grid-template-columns: 145px minmax(0,1fr) auto; align-items: end; gap: 8px; }.record-fields label { min-width: 0; color: var(--ink-soft); font-size: 10px; }.record-fields input { width: 100%; min-width: 0; height: 44px; margin-top: 5px; padding: 0 10px; background: white; border: 1px solid var(--line); font-size: 12px; }.record-fields .primary-button { min-height: 44px; }.history-list { margin: 8px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 11px; }.history-list li { padding: 9px 0; border-top: 1px dashed var(--line); }

.side-dialog { width: min(650px,100%); height: 100%; max-height: 100%; margin: 0 0 0 auto; }.side-dialog-shell { min-height: 100%; padding: 36px; }.side-dialog header { display: flex; justify-content: space-between; align-items: start; }.side-dialog h2,.small-dialog h2 { margin: 0; font-size: 34px; }.dialog-intro { margin: 16px 0 24px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }.bulk-enrich { margin: 24px 0; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--line); }.bulk-enrich strong { font-size: 12px; }.bulk-enrich p { margin: 4px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.candidate-list { display: grid; gap: 12px; }.candidate-card { padding: 17px; background: var(--paper); border: 1px solid var(--line); }.candidate-card header { display: flex; justify-content: space-between; }.candidate-card h3 { margin: 0; font-size: 17px; }.candidate-card header span { color: var(--red); font-size: 9px; }.candidate-fields { display: grid; gap: 5px; font-size: 10px; }.candidate-fields div { display: grid; grid-template-columns: 65px 1fr; gap: 8px; }.candidate-fields dt { color: var(--ink-soft); }.candidate-fields dd { margin: 0; }.candidate-actions { display: flex; gap: 6px; }.candidate-actions button { flex: 1; min-height: 34px; border: 1px solid var(--line); background: white; }.candidate-actions .approve { color: white; background: var(--ink); }

.small-dialog { width: min(560px,calc(100% - 24px)); }.small-dialog-shell { position: relative; padding: 38px; }.small-dialog h2 { margin-bottom: 12px; }.small-dialog p { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }.manual-lookup { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 7px; }.manual-lookup input { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); background: white; }.manual-preview { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: 90px 1fr; gap: 15px; background: var(--paper); border: 1px solid var(--line); }.manual-preview img { width: 90px; aspect-ratio: 3/4; object-fit: cover; }.manual-preview h3 { margin: 0 0 5px; font-size: 20px; }.manual-preview p { margin: 0; font-size: 9px; }.manual-confirm { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }.manual-confirm label { color: var(--ink-soft); font-size: 9px; }
.access-dialog { max-width: calc(100% - 24px); }.access-form { margin-top: 22px; display: grid; gap: 9px; }.access-form label { font-size: 10px; font-weight: 700; }.access-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: white; }.access-form input:focus { outline: 3px solid color-mix(in srgb,var(--red) 24%,transparent); border-color: var(--red); }.access-error { min-height: 19px; margin: 0; color: var(--red) !important; }
.add-mode-switch { margin: 20px 0; }.metadata-entry { margin-top: 24px; }
.file-drop { min-height: 150px; margin: 20px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; background: rgba(255,255,255,.4); border: 1px dashed var(--ink-soft); }.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.file-icon { font-size: 28px; }.file-drop small { color: var(--ink-soft); }.full-button { width: 100%; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; min-width: 220px; max-width: calc(100% - 30px); padding: 11px 16px; opacity: 0; pointer-events: none; color: white; background: var(--ink); text-align: center; font-size: 11px; transform: translate(-50%,14px); transition: .2s ease; box-shadow: var(--shadow); }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }.toast.is-error { background: var(--red); }.loading-grid { grid-column: 1/-1; min-height: 260px; display: grid; place-items: center; color: var(--ink-soft); }

@media (max-width: 1180px) {
  .book-grid-section { grid-template-columns: repeat(5,minmax(0,1fr)); }.discover-hero { grid-template-columns: minmax(0,1fr) 380px; gap: 34px; }.topic-book-row { grid-template-columns: repeat(5,minmax(0,1fr)); }.reference-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 28px,1480px); }.site-header { padding-inline: 14px; }.brand small,.header-actions .text-button { display: none; }.dashboard { grid-template-columns: 1fr; gap: 24px; }.dashboard-stats { justify-content: space-between; }
  .filter-sidebar { grid-template-columns: 1fr; align-items: stretch; }.filter-sidebar .sidebar-heading,.filter-sidebar .search-box,.filter-sidebar .primary-filter,.filter-sidebar .more-filters { grid-column: 1; }.filter-fields { position: static; width: 100%; margin-top: 8px; grid-template-columns: repeat(2,minmax(0,1fr)); box-shadow: none; }.book-grid-section { grid-template-columns: repeat(4,1fr); }
  .discover-hero { grid-template-columns: 1fr; gap: 30px; }.discover-heading { grid-template-columns: 1fr; align-items: start; }.ranking-intro,.filter-panel-title { align-items: start; flex-direction: column; }.topic-book-row { grid-template-columns: repeat(3,minmax(0,1fr)); }.catalog-selects { grid-template-columns: repeat(2,1fr); }.reference-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.detail-hero { padding-inline: 32px; }.detail-content { padding-inline: 32px; }
}
@media (max-width: 600px) {
  .site-header { height: 62px; grid-template-columns: auto 1fr auto; gap: 10px; }.brand span:last-child { display: none; }.brand-mark { width: 34px; height: 34px; }.page-nav { gap: 12px; }.page-nav a { padding-inline: 0; font-size: 11px; }.count-badge { display: none; }.primary-button { padding-inline: 10px; font-size: 11px; }
  .dashboard { min-height: 0; padding-block: 28px 22px; gap: 18px; }.dashboard h1 { font-size: 36px; }.reading-focus { margin-top: 15px; align-items: flex-start; flex-direction: column; gap: 7px; }.reading-focus .topic-filters { width: 100%; }.dashboard-stats { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.dashboard-stats span { min-width: 0; max-width: none; }.dashboard-stats span:nth-child(2) { text-align: center; }.dashboard-stats span:last-child { text-align: right; }.dashboard-stats strong { font-size: 24px; }
  .library-layout { padding-top: 10px; gap: 12px; }.filter-sidebar { padding: 13px; }.sidebar-heading { flex-direction: row; align-items: center; justify-content: space-between; }.filter-fields { grid-template-columns: 1fr; padding: 16px; }.library-theme-section { padding: 22px 0 28px; }.library-theme-section > h3 { font-size: 18px; }.book-grid-section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 10px; }.book-card h3 { font-size: 13px; }.book-card p { display: none; }.library-heading { min-height: 96px; padding-block: 10px; align-items: flex-start; flex-direction: column; gap: 9px; }.library-heading h2 { font-size: 27px; }.library-controls { width: 100%; justify-content: space-between; }.sort-control span { display: none; }.sort-control select { min-width: 108px; }.detail-source,.status-tag,.fact-grid dt,.evidence-list span,.tag-list span,.signal-option span,.history-list { font-size: 11px; }
  .discover-page { padding-top: 10px; }.discover-hero { padding: 30px 20px; }.discover-hero h1 { font-size: 36px; }.featured-recommendation-button { padding: 14px; grid-template-columns: 82px minmax(0,1fr); gap: 14px; }.featured-recommendation-button > img { width: 82px; }.featured-title { font-size: 21px; }.featured-connection small { display: none; }.featured-reason { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }.discover-content { padding-top: 28px; }.discover-heading h2 { font-size: 30px; }.topic-shelf { padding: 25px 0 28px; }.topic-shelf h3 { font-size: 22px; }.topic-book-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }.view-switch { width: 100%; }.view-switch button { flex: 1; }.ranking-intro p,.filter-panel-title p,.result-line { font-size: 11px; line-height: 1.65; }.reference-labels span { font-size: 9px; }.catalog-selects { grid-template-columns: repeat(2,1fr); }.reference-catalog-grid { grid-template-columns: 1fr; }.reference-card-button { grid-template-columns: 78px minmax(0,1fr); }.reference-card-button > .reference-cover { width: 78px; }.reference-title { font-size: 18px; }.footer-inner { padding-block: 36px 30px; }
  .book-dialog { width: 100%; }.detail-hero { padding: 54px 20px 22px; grid-template-columns: 92px minmax(0,1fr); gap: 16px; }.detail-cover-column .cover { max-width: 92px; }.recommendation-detail-cover { width: 92px; }.detail-kicker { margin-right: 32px; }.detail-heading h2 { font-size: 27px; }.detail-byline { font-size: 12px; }.detail-header-actions { margin-top: 14px; }.like-button { width: 100%; padding-inline: 8px; justify-content: center; }.book-tools { margin-top: 6px; }.cover-actions { grid-template-columns: 1fr; }.detail-content { padding: 24px 20px 48px; }.recommendation-reason-card { padding: 18px; }.recommendation-reason-card > p:last-child { font-size: 16px; }.related-shelf-heading { align-items: start; flex-direction: column; gap: 5px; }.related-shelf-list { grid-template-columns: 1fr; }.description { font-size: 16px; }.fact-grid { grid-template-columns: 1fr; gap: 15px; }.record-form { padding: 18px; }.record-form-header { flex-direction: column; }.signal-grid { grid-template-columns: repeat(2,1fr); }.record-fields { grid-template-columns: 1fr; }
  .side-dialog { width: 100%; }.side-dialog-shell,.small-dialog-shell { padding: 28px 20px; }.bulk-enrich { align-items: stretch; flex-direction: column; }.manual-lookup,.manual-confirm { grid-template-columns: 1fr; }.manual-preview { grid-template-columns: 72px 1fr; }.manual-preview img { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

/* 精确主义封面板 */
:root {
  --paper: #ebe9e2;
  --paper-light: #f6f3ea;
  --paper-deep: #d8d3b9;
  --ink: #172e2d;
  --ink-soft: #52605e;
  --red: #a83b1c;
  --red-soft: #e4c4b5;
  --yellow: #c9ba18;
  --line: rgba(23,46,45,.28);
  --shadow: 10px 18px 34px rgba(12,28,27,.2);
  --display: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html { scrollbar-color: var(--red) var(--paper-deep); scrollbar-width: thin; }
body { background: var(--paper); caret-color: var(--red); }
body::selection, body *::selection { color: var(--paper-light); background: var(--red); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--red); border: 3px solid var(--paper-deep); }
.shell { width: min(1544px, calc(100% - 40px)); }

.site-header {
  height: 68px;
  padding: 0 max(20px, calc((100vw - 1544px) / 2));
  gap: 28px;
  background: rgba(235,233,226,.96);
  border-color: var(--ink);
  backdrop-filter: blur(10px);
}
.brand { min-width: 220px; gap: 12px; border-right: 1px solid var(--ink); }
.brand-mark { width: 42px; height: 42px; }
.brand strong { font-family: var(--display); font-size: 17px; font-weight: 400; letter-spacing: .07em; }
.brand small { margin-top: 0; color: #6c6f69; font-size: 9px; letter-spacing: .16em; }
.page-nav { align-self: stretch; gap: 34px; }
.page-nav a { min-height: 68px; color: var(--ink); font-size: 14px; font-weight: 650; }
.page-nav a::after { bottom: 0; height: 4px; }
.page-nav a[aria-current]::after { background: var(--red); }
.header-actions { gap: 10px; }
.readonly-badge { min-height: 32px; color: var(--ink); background: var(--yellow); border-radius: 0; }
.primary-button { min-height: 46px; padding-inline: 18px; border-radius: 0; background: var(--ink); }
.primary-button:hover { background: #24403e; }
#openAddBook { min-width: 162px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.add-book-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.add-book-icon::before,.add-book-icon::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: currentColor; }
.add-book-icon::after { transform: rotate(90deg); }

.dashboard {
  min-height: 584px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(440px, 36%) minmax(0, 64%);
  grid-template-rows: 220px 290px 74px;
  grid-template-areas:
    "copy covers"
    "stats covers"
    "topics topics";
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.dashboard-copy { grid-area: copy; z-index: 3; min-width: 0; padding: 38px 20px 0; }
.dashboard h1 {
  max-width: 540px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px,4.7vw,72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.dashboard-stats {
  grid-area: stats;
  z-index: 3;
  align-self: start;
  padding: 14px 20px 38px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.dashboard-stats span {
  max-width: none;
  min-width: 0;
  padding: 10px 20px 0 0;
  color: var(--ink);
  border-right: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: .04em;
}
.dashboard-stats span + span { padding-left: 28px; }
.dashboard-stats span:last-child { border-right: 0; }
.dashboard-stats strong {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(74px,6vw,98px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: .95;
  letter-spacing: -.02em;
}

.hero-cover-wall {
  grid-area: covers;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ink-soft);
  isolation: isolate;
  animation: cover-wall-arrival .8s cubic-bezier(.16,1,.3,1) both;
}
.hero-cover-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #41504f;
  clip-path: polygon(13% 0,100% 0,100% 100%,0 100%);
}
.hero-cover {
  position: absolute;
  width: 22%;
  aspect-ratio: 1/1.22;
  object-fit: contain;
  background: #f5f2e9;
  border: 1px solid rgba(235,233,226,.6);
  box-shadow: var(--shadow);
}
.hero-cover-lego { z-index: 5; top: 3.5%; left: 17%; width: 23%; height: 59%; }
.hero-cover-festival { z-index: 3; top: 6%; left: 41%; width: 25%; height: 48%; }
.hero-cover-duck { z-index: 4; top: 3%; left: 65%; width: 23%; height: 55%; }
.hero-cover-dots { z-index: 5; top: 7%; left: 87%; width: 17%; height: 49%; }
.hero-cover-race { z-index: 6; top: 54%; left: 40%; width: 29%; height: 43%; }
.hero-cover-hide { z-index: 7; top: 55%; left: 65%; width: 32%; height: 39%; }
.hero-cover-camera { z-index: 2; top: 69%; left: 5%; width: 18%; height: 33%; }
.hero-cover-car { z-index: 3; top: 70%; left: 21%; width: 18%; height: 34%; }
.hero-cover-sing { z-index: 8; top: 79%; left: 56%; width: 17%; height: 27%; }
.hero-cover-kindergarten { z-index: 8; top: 79%; left: 73%; width: 17%; height: 27%; }
.hero-cover-octopus { z-index: 8; top: 79%; left: 90%; width: 17%; height: 27%; }

.reading-focus {
  grid-area: topics;
  z-index: 12;
  min-width: 0;
  margin: 0;
  display: block;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}
.reading-focus .topic-filters {
  width: 100%;
  height: 74px;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.reading-focus .filter-button {
  min-width: 150px;
  min-height: 74px;
  flex: 1 0 150px;
  padding-inline: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.reading-focus .filter-button:nth-child(odd) { color: var(--paper-light); background: #334846; }
.reading-focus .filter-button.is-active { color: var(--paper-light); background: var(--red); }
.reading-focus .filter-button:hover { color: var(--ink); background: var(--yellow); }

.library-layout { padding: 0 0 86px; display: block; }
.library-heading {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(250px,1fr) minmax(640px,1.5fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}
.library-heading h2 { font-family: var(--display); font-size: 36px; font-weight: 400; letter-spacing: .04em; }
.library-controls { min-width: 0; display: grid; grid-template-columns: minmax(240px,1fr) 160px 184px 178px; gap: 14px; }
.library-search { min-width: 0; height: 48px; padding-inline: 14px; background: transparent; border-color: var(--ink); }
.library-search input { height: 46px; }
.search-icon { position: relative; width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -2px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; }

.close-icon { position: relative; width: 18px; height: 18px; display: block; }
.close-icon::before,.close-icon::after { content: ""; position: absolute; top: 8px; left: 1px; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.file-icon { position: relative; width: 28px; height: 28px; display: block; font-size: 0; }
.file-icon::before { content: ""; position: absolute; top: 3px; left: 12px; width: 2px; height: 17px; background: currentColor; }
.file-icon::after { content: ""; position: absolute; top: 3px; left: 7px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
.detail-statuses { margin: 14px 52px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.recommendation-reason-card h3 { margin: 0 0 9px; font-size: 20px; }
.source-label { margin-bottom: 5px !important; color: var(--red) !important; font-weight: 700; }
.related-shelf-arrow { position: relative; width: 17px; height: 12px; display: block; font-size: 0; }
.related-shelf-arrow::before { content: ""; position: absolute; top: 5px; left: 0; width: 16px; height: 2px; background: currentColor; }
.related-shelf-arrow::after { content: ""; position: absolute; top: 2px; right: 0; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.more-filters summary::after,.book-tools summary::after { content: ""; position: relative; width: 12px; height: 12px; flex: 0 0 auto; border-top: 2px solid currentColor; transform: translateY(5px); }
.more-filters summary::before,.book-tools summary::before { content: ""; order: 2; width: 2px; height: 12px; margin-left: -7px; background: currentColor; transition: transform .15s ease; }
.more-filters summary::after { margin-left: 14px; }
.book-tools summary::after { margin-left: 8px; }
.more-filters[open] summary::before,.book-tools[open] summary::before { transform: scaleY(0); }
.more-filters[open] summary::after,.book-tools[open] summary::after { content: ""; }

@media (max-width: 600px) {
  .detail-statuses { margin-right: 32px; }
}
.topic-control select,.sort-control select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 36px 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 14px;
}
.liked-quick-filter {
  min-height: 48px;
  padding-inline: 14px;
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  border-radius: 0;
  font-size: 14px;
}
.liked-quick-filter .heart-icon { width: 17px; height: 17px; margin-right: 6px; fill: var(--red); vertical-align: -3px; }
.liked-quick-filter.is-active .heart-icon { fill: currentColor; }
.liked-quick-filter.is-active { color: var(--paper-light); background: var(--red); border-color: var(--red); }
.sort-control { display: block; }

.library-theme-section { padding: 30px 0 42px; border-color: var(--ink); }
.library-theme-section:first-child { padding-top: 12px; }
.library-theme-section:first-child > h3 { display: none; }
.library-theme-section > h3 { margin-bottom: 18px; font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .06em; }
.book-grid-section { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 30px 16px; }
.book-card { padding: 8px; border: 1px solid var(--ink); background: rgba(246,243,234,.55); }
.book-card .cover { aspect-ratio: 1/1.06; border: 0; background: var(--paper-light); }
.book-card h3 { margin: 11px 0 4px; min-height: 2.8em; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.book-card p { color: var(--ink-soft); font-size: 11px; }
.book-card-button:hover .cover { transform: translateY(-4px); box-shadow: 6px 12px 22px rgba(12,28,27,.16); }
.card-like { top: 14px; right: 14px; border-radius: 0; }
.cover-badge,.point-badge,.status-tag,.count-badge { border-radius: 0; }
.empty-state,.loading-grid { border: 1px solid var(--ink); background: var(--paper-light); }

dialog { border-radius: 0; }
.toast { border-radius: 0; }

body.impeccable-plate-pass .brand,
body.impeccable-plate-pass .page-nav,
body.impeccable-plate-pass .header-actions,
body.impeccable-plate-pass .dashboard-copy,
body.impeccable-plate-pass .dashboard-stats,
body.impeccable-plate-pass .reading-focus,
body.impeccable-plate-pass .library-layout,
body.impeccable-plate-pass .site-footer { visibility: hidden; }

@keyframes cover-wall-arrival {
  from { clip-path: inset(0 0 9% 0); filter: blur(7px); }
  to { clip-path: inset(0); filter: blur(0); }
}

@media (max-width: 1180px) {
  .dashboard { grid-template-columns: minmax(390px,40%) minmax(0,60%); }
  .dashboard h1 { font-size: clamp(58px,4.7vw,72px); }
  .dashboard-stats strong { font-size: clamp(62px,7vw,82px); }
  .library-heading { grid-template-columns: 1fr; padding-block: 20px; gap: 16px; }
  .library-controls { grid-template-columns: minmax(220px,1fr) 150px 170px 160px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 28px,1544px); }
  .site-header { padding-inline: 14px; }
  .brand { min-width: 0; border-right: 0; }
  .dashboard {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 340px 68px;
    grid-template-areas: "copy" "stats" "covers" "topics";
  }
  .dashboard-copy { padding: 28px 8px 22px; }
  .dashboard h1 { max-width: 590px; font-size: clamp(52px,8vw,64px); }
  .dashboard-stats { padding: 0 8px 24px; }
  .dashboard-stats strong { font-size: clamp(58px,10vw,78px); }
  .hero-cover-wall::before { clip-path: none; }
  .reading-focus .topic-filters { height: 68px; }
  .reading-focus .filter-button { min-width: 132px; min-height: 68px; flex-basis: 132px; font-size: 18px; }
  .library-controls { grid-template-columns: minmax(220px,1fr) 150px 170px; }
  .sort-control { grid-column: 3; }
  .book-grid-section { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .site-header { height: 62px; }
  .page-nav { gap: 10px; }
  .page-nav a { min-height: 62px; font-size: 11px; white-space: nowrap; }
  #openAddBook { min-width: 112px; padding-inline: 8px; gap: 6px; font-size: 10px; }
  .add-book-icon { width: 12px; height: 12px; }
  .add-book-icon::before,.add-book-icon::after { inset-block-start: 5px; }
  .dashboard { grid-template-rows: auto auto 300px 64px; }
  .dashboard-copy { padding-top: 24px; }
  .dashboard h1 { font-size: clamp(46px,12.4vw,54px); line-height: 1.04; }
  .dashboard-stats { gap: 0; }
  .dashboard-stats span { padding: 8px 8px 0 0; font-size: 11px; }
  .dashboard-stats span + span { padding-left: 10px; }
  .dashboard-stats strong { margin-bottom: 4px; font-size: clamp(48px,14vw,62px); }
  .hero-cover-lego { left: 3%; width: 39%; height: 62%; }
  .hero-cover-festival { top: 4%; left: 36%; width: 38%; height: 52%; }
  .hero-cover-duck { top: 2%; left: 68%; width: 37%; height: 59%; }
  .hero-cover-dots { display: none; }
  .hero-cover-race { top: 48%; left: 24%; width: 42%; height: 48%; }
  .hero-cover-hide { top: 51%; left: 60%; width: 43%; height: 43%; }
  .hero-cover-camera { top: 55%; left: -9%; width: 36%; height: 43%; }
  .hero-cover-car,.hero-cover-sing,.hero-cover-kindergarten,.hero-cover-octopus { display: none; }
  .reading-focus .topic-filters { height: 64px; }
  .reading-focus .filter-button { min-width: 118px; min-height: 64px; flex-basis: 118px; font-size: 16px; }
  .library-heading { min-height: 0; padding: 22px 0 16px; gap: 14px; }
  .library-heading h2 { font-size: 32px; }
  .library-controls { width: 100%; grid-template-columns: minmax(0,1fr) minmax(132px,.55fr); gap: 8px; }
  .library-search { grid-column: 1/-1; }
  .topic-control { grid-column: 1; }
  .liked-quick-filter { grid-column: 2; }
  .sort-control { grid-column: 1/-1; }
  .book-grid-section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  .book-card { padding: 6px; }
  .book-card h3 { margin-top: 8px; font-size: 13px; }
}

/* 精确主义封面板：完整产品路径 */
.discover-page { padding: 18px 0 100px; }
.discover-hero {
  position: relative;
  min-height: 420px;
  padding: 0;
  grid-template-columns: minmax(390px, .72fr) minmax(560px, 1.28fr);
  gap: 0;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.discover-intro-copy {
  min-width: 0;
  padding: 48px 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(246,243,234,.36);
}
.discover-hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px,4.5vw,68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.discover-hero h1 em { color: var(--yellow); }
.discover-intro-copy > p:last-child {
  max-width: 36ch;
  margin: 24px 0 0;
  color: rgba(246,243,234,.78);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}
.featured-recommendation { min-width: 0; display: grid; background: #334846; }
.featured-recommendation-button {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 36px 42px;
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  color: var(--paper-light);
  background: transparent;
  border: 0;
  text-align: left;
}
.featured-cover-frame {
  width: 100%;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-light);
  border: 10px solid var(--paper-light);
  box-shadow: 10px 18px 34px rgba(12,28,27,.32);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
}
.featured-cover-frame img { width: 100%; height: 100%; object-fit: contain; }
.featured-recommendation-button:hover .featured-cover-frame { box-shadow: 14px 24px 40px rgba(12,28,27,.4); transform: translateY(-4px); }
.featured-recommendation-copy { min-width: 0; }
.featured-title {
  display: block;
  color: var(--paper-light);
  font-family: var(--display);
  font-size: clamp(32px,3.1vw,46px);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}
.featured-connection { margin-top: 18px; color: var(--yellow); font-size: 12px; }
.featured-connection small { color: rgba(246,243,234,.54); }
.featured-reason { margin-top: 10px; color: rgba(246,243,234,.82); font-family: var(--sans); font-size: 14px; line-height: 1.65; }
.featured-meta { margin-top: 22px; gap: 0; }
.featured-meta span { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--paper-light); border: 1px solid rgba(246,243,234,.34); font-size: 10px; }

.discover-content { padding-top: 0; }
.discover-heading {
  min-height: 116px;
  padding: 24px 0;
  grid-template-columns: minmax(0,1fr) minmax(250px,420px) auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--ink);
}
.discover-heading h2 { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: .025em; }
.discover-heading > p { max-width: 38ch; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.view-switch,.add-mode-switch { padding: 0; background: transparent; border: 1px solid var(--ink); border-radius: 0; }
.view-switch button,.add-mode-switch button { min-height: 48px; padding: 0 18px; border-radius: 0; color: var(--ink); font-size: 12px; }
.view-switch button + button,.add-mode-switch button + button { border-left: 1px solid var(--ink); }
.view-switch button.is-active,.add-mode-switch button.is-active { color: var(--paper-light); background: var(--red); }

.recommendation-boards { display: block; }
.topic-shelf {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(210px, .22fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}
.topic-shelf > header {
  min-width: 0;
  margin: 0;
  padding: 32px 28px 36px 0;
  align-items: flex-start;
  border-right: 1px solid var(--ink);
}
.topic-shelf h3 { margin: 0; font-family: var(--display); font-size: 31px; font-weight: 400; line-height: 1.05; letter-spacing: .02em; }
.topic-shelf header p:last-child { margin-top: 14px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.topic-book-row { padding: 32px 0 38px 28px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.topic-book-card { min-width: 0; padding: 7px; background: rgba(246,243,234,.58); border: 1px solid var(--ink); }
.topic-book-button { height: 100%; display: flex; flex-direction: column; }
.topic-cover-frame {
  width: 100%;
  aspect-ratio: 1/1.08;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-light);
}
.topic-cover-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.topic-book-button:hover .topic-cover-frame img { transform: translateY(-4px); }
.topic-book-title { margin: 11px 2px 6px; color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 750; line-height: 1.4; }
.topic-book-connection { margin-inline: 2px; font-size: 10px; }
.topic-book-reason { margin-inline: 2px; color: var(--ink-soft); font-family: var(--sans); font-size: 11px; line-height: 1.55; }
.topic-book-age { margin: auto 2px 2px; padding-top: 10px; color: var(--red); font-size: 10px; }

.filter-panel { padding: 0 0 50px; }
.filter-panel-title {
  min-height: 142px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,520px);
  align-items: center;
  gap: 34px;
  color: var(--paper-light);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.filter-panel-title h3 { margin: 0; color: var(--paper-light); font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1.05; }
.filter-panel-title p { max-width: 52ch; color: rgba(246,243,234,.72); font-size: 12px; line-height: 1.7; }
.catalog-toolbar {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(380px,.8fr);
  align-items: end;
  gap: 14px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-top: 0;
}
.catalog-controls { margin: 0; padding: 0; border: 0; }
.catalog-controls .search-box { width: 100%; height: 50px; padding-inline: 16px; background: var(--paper-light); border-color: var(--ink); border-radius: 0; }
.catalog-controls .search-box input { height: 48px; }
.catalog-selects { width: 100%; padding: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.catalog-selects label { color: var(--ink); font-size: 10px; font-weight: 700; }
.catalog-selects select { height: 50px; margin-top: 5px; color: var(--ink); background: var(--paper-light); border-color: var(--ink); border-radius: 0; font-size: 12px; }
.result-line { min-height: 58px; padding: 0 2px; color: var(--ink); border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.reference-catalog-grid { padding-top: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.filter-panel .candidate-empty {
  grid-column: 1/-1;
  min-height: 220px;
  padding: 42px 24px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--ink-soft);
  background: rgba(246,243,234,.58);
  border: 1px solid var(--ink);
}
.filter-panel .candidate-empty h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 400; }
.reference-card { min-width: 0; }
.reference-card-button {
  min-height: 176px;
  padding: 8px;
  grid-template-columns: 112px minmax(0,1fr);
  gap: 14px;
  color: var(--ink);
  background: rgba(246,243,234,.58);
  border-color: var(--ink);
}
.reference-card-button:hover { background: var(--paper-light); border-color: var(--red); }
.reference-cover-frame { width: 112px; height: 158px; display: grid; place-items: center; overflow: hidden; background: var(--paper-light); }
.reference-cover-frame img { width: 100%; height: 100%; object-fit: contain; }
.reference-card-copy { padding: 5px 5px 5px 0; }
.reference-labels { gap: 0; }
.reference-labels span { min-height: 26px; padding: 0 7px; display: inline-flex; align-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 9px; }
.reference-title { margin: 10px 0 7px; font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.1; }
.reference-connection { margin-bottom: 6px; }
.reference-reason { color: var(--ink-soft); font-family: var(--sans); font-size: 11px; line-height: 1.55; }
.reference-byline { margin-top: 9px; }
.load-more { width: 100%; min-height: 52px; margin-top: 18px; color: var(--paper-light); background: var(--ink); border: 0; border-radius: 0; font-weight: 700; }
.load-more:hover { background: #24403e; }

dialog { background: var(--paper-light); border: 1px solid var(--ink); border-radius: 0; }
dialog::backdrop { background: rgba(23,46,45,.7); backdrop-filter: blur(4px); }
.icon-button { color: var(--ink); background: var(--paper-light); border-color: var(--ink); border-radius: 0; transition: color .16s ease, background .16s ease; }
.icon-button:hover { color: var(--paper-light); background: var(--red); }
.dialog-close { top: 0; right: 0; }
.book-dialog { width: min(900px,100%); border-block: 0; border-right: 0; }
.book-dialog .dialog-shell { height: 100%; border-left: 1px solid var(--ink); }
.book-dialog .dialog-close { width: 50px; height: 50px; }
.detail-hero {
  position: relative;
  min-height: 340px;
  padding: 46px 64px 42px 48px;
  grid-template-columns: 210px minmax(0,1fr);
  align-items: center;
  gap: 38px;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
}
.detail-cover-column { position: relative; z-index: 1; }
.detail-cover-column .cover {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 4/5;
  background: var(--paper-light);
  border: 10px solid var(--paper-light);
  box-shadow: 10px 18px 34px rgba(12,28,27,.22);
}
.detail-heading { position: relative; z-index: 1; padding-top: 0; }
.detail-heading h2 { max-width: 13ch; margin: 0; font-family: var(--display); font-size: clamp(38px,4vw,52px); font-weight: 400; line-height: 1.02; letter-spacing: -.018em; text-wrap: balance; }
.detail-byline { max-width: 58ch; margin-top: 14px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.detail-statuses { margin: 18px 52px 0 0; gap: 0; }
.status-tag { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; color: var(--ink); background: var(--paper-light); border-color: var(--line); font-size: 10px; }
.status-tag + .status-tag { border-left: 0; }
.status-tag.accent { color: var(--paper-light); background: var(--red); border-color: var(--red); }
.detail-header-actions { margin-top: 18px; }
.like-button { min-height: 46px; padding: 0 16px; color: var(--red); background: var(--paper-light); border-color: var(--red); border-radius: 0; }
.like-button.is-liked { color: var(--paper-light); background: var(--red); }
.book-tools { margin-top: 10px; }
.book-tools summary { width: fit-content; min-height: 42px; color: var(--ink-soft); }
.detail-content { padding: 0 48px 68px; }
.description-card { padding: 34px 0 32px; border-bottom: 1px solid var(--ink); }
.description-card h3,.detail-section h3,.record-form h3 { margin: 0 0 14px; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 400; line-height: 1.1; letter-spacing: .04em; }
.description { max-width: 72ch; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
.detail-section { margin: 0; padding: 28px 0 30px; border-top: 0; border-bottom: 1px solid var(--ink); }
.description-card + .detail-section { margin-top: 0; }
.fact-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact-grid div { min-height: 78px; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid dt { color: var(--ink-soft); font-size: 10px; }
.fact-grid dd { margin-top: 7px; color: var(--ink); font-size: 13px; }
.evidence-list,.tag-list { gap: 0; }
.evidence-list span,.tag-list span { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 10px; }
.preference-evidence { margin-top: 20px; }
.similar-button { min-height: 40px; margin-top: 18px; padding-inline: 0; font-size: 12px; font-weight: 700; }
.record-form { margin-top: 30px; padding: 24px; background: var(--paper-deep); border: 1px solid var(--ink); border-radius: 0; }
.signal-option span { background: var(--paper-light); border-color: var(--ink); border-radius: 0; }
.signal-option input:checked + span { color: var(--paper-light); background: var(--red); }
.record-fields input { background: var(--paper-light); border-color: var(--ink); border-radius: 0; }
.history-list li { border-color: var(--line); }

.recommendation-detail-hero { color: var(--paper-light); background: var(--ink); }
.recommendation-detail-cover {
  width: 210px;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-light);
  border: 10px solid var(--paper-light);
  box-shadow: 10px 18px 34px rgba(0,0,0,.28);
}
.recommendation-detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.recommendation-detail-hero .detail-heading h2 { color: var(--paper-light); }
.recommendation-detail-hero .detail-byline { color: rgba(246,243,234,.68); }
.recommendation-detail-hero .status-tag { color: var(--paper-light); background: transparent; border-color: rgba(246,243,234,.34); }
.recommendation-detail-hero .status-tag.accent { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.recommendation-reason-card { margin-top: 34px; padding: 28px; background: rgba(201,186,24,.13); border: 1px solid var(--ink); }
.recommendation-reason-card h3 { margin-bottom: 12px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.recommendation-reason-card > p:last-child { color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
.recommendation-tags { margin-top: 0; }
.related-shelf-heading { margin-bottom: 18px; align-items: end; }
.related-shelf-heading h3 { font-family: var(--display); font-size: 27px; font-weight: 400; line-height: 1.1; }
.related-shelf-list { gap: 10px; }
.related-shelf-book { min-height: 98px; padding: 9px; grid-template-columns: 62px minmax(0,1fr) auto; background: var(--paper); border-color: var(--ink); }
.related-shelf-book:hover { color: var(--paper-light); background: var(--red); }
.related-shelf-book:hover small { color: var(--paper-light); }
.related-shelf-cover { width: 62px; background: var(--paper-light); }
.related-shelf-copy small { color: var(--red); }
.related-shelf-copy strong { font-family: var(--sans); font-size: 13px; }

.small-dialog { width: min(620px,calc(100% - 28px)); max-height: calc(100% - 28px); }
.small-dialog-shell { padding: 46px 44px 42px; overflow-y: auto; }
.small-dialog h2,.side-dialog h2 { max-width: calc(100% - 54px); margin: 0 0 14px; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.05; }
.add-book-dialog h2 span { white-space: nowrap; }
.small-dialog p,.dialog-intro { color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.access-form { margin-top: 26px; gap: 10px; }
.access-form label { font-size: 11px; }
.access-form input,.manual-lookup input { height: 50px; background: white; border-color: var(--ink); border-radius: 0; }
.add-mode-switch { margin: 26px 0; }
.manual-lookup { margin-top: 20px; gap: 8px; }
.manual-preview { padding: 14px; background: var(--paper-deep); border-color: var(--ink); }
.manual-confirm select { min-height: 44px; margin-top: 5px; background: var(--paper-light); border: 1px solid var(--ink); border-radius: 0; }
.file-drop { min-height: 180px; background: var(--paper); border-color: var(--ink); border-radius: 0; }
.metadata-entry { min-height: 40px; margin-top: 28px; }
.side-dialog { width: min(760px,100%); border-block: 0; border-right: 0; }
.side-dialog-shell { min-height: 100%; padding: 42px; border-left: 1px solid var(--ink); }
.side-dialog header { min-height: 74px; padding-bottom: 22px; align-items: flex-start; border-bottom: 1px solid var(--ink); }
.side-dialog header .icon-button { flex: 0 0 auto; }
.bulk-enrich { margin: 26px 0 20px; padding: 18px; background: var(--paper-deep); border-color: var(--ink); }
.bulk-enrich strong { font-family: var(--display); font-size: 20px; font-weight: 400; }
.bulk-enrich p { font-size: 10px; }
.candidate-list { gap: 14px; }
.candidate-card { padding: 18px; background: var(--paper); border-color: var(--ink); }
.candidate-card h3 { font-family: var(--display); font-size: 22px; font-weight: 400; }
.candidate-card header { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.candidate-fields { margin: 14px 0; }
.candidate-actions { gap: 0; }
.candidate-actions button { min-height: 42px; border-color: var(--ink); border-radius: 0; }
.candidate-actions button + button { border-left: 0; }
.candidate-actions .approve { color: var(--paper-light); background: var(--red); }
.toast { border: 1px solid var(--paper-light); border-radius: 0; }

.featured-cover-frame .cover-placeholder,
.topic-cover-frame .cover-placeholder,
.reference-cover-frame .cover-placeholder,
.recommendation-detail-cover .cover-placeholder { color: var(--ink-soft); }

.brand strong,
.dashboard h1,
.library-heading h2,
.library-theme-section > h3,
.discover-hero h1,
.featured-title,
.discover-heading h2,
.topic-shelf h3,
.filter-panel-title h3,
.filter-panel .candidate-empty h3,
.reference-title,
.detail-heading h2,
.description-card h3,
.detail-section h3,
.record-form h3,
.recommendation-reason-card h3,
.related-shelf-heading h3,
.small-dialog h2,
.side-dialog h2,
.bulk-enrich strong,
.candidate-card h3 {
  font-weight: 650;
  letter-spacing: -.025em;
}
.dashboard-stats strong { font-weight: 500; letter-spacing: -.035em; }
.reading-focus .filter-button { font-weight: 600; letter-spacing: 0; }

@media (max-width: 1180px) {
  .discover-hero { grid-template-columns: minmax(340px,.82fr) minmax(0,1.18fr); }
  .discover-intro-copy { padding-inline: 34px; }
  .featured-recommendation-button { padding-inline: 32px; grid-template-columns: 150px minmax(0,1fr); gap: 26px; }
  .topic-book-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .reference-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .discover-hero { min-height: 0; grid-template-columns: 1fr; }
  .discover-intro-copy { min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(246,243,234,.36); }
  .featured-recommendation-button { min-height: 300px; }
  .discover-heading { grid-template-columns: 1fr auto; }
  .discover-heading > p { grid-column: 1; }
  .view-switch { grid-column: 2; grid-row: 1/3; }
  .topic-shelf { grid-template-columns: 180px minmax(0,1fr); }
  .topic-book-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .book-dialog { width: min(780px,100%); }
  .detail-hero { grid-template-columns: 180px minmax(0,1fr); padding-inline: 34px 60px; }
  .detail-cover-column .cover,.recommendation-detail-cover { max-width: 180px; width: 180px; }
  .detail-content { padding-inline: 34px; }
}

@media (max-width: 600px) {
  .discover-page { padding-top: 10px; }
  .discover-hero { width: calc(100% - 28px); }
  .discover-intro-copy { min-height: 272px; padding: 34px 20px 30px; }
  .discover-hero h1 { font-size: clamp(44px,13vw,56px); }
  .discover-intro-copy > p:last-child { margin-top: 18px; font-size: 12px; }
  .featured-recommendation-button { min-height: 242px; padding: 20px; grid-template-columns: 96px minmax(0,1fr); gap: 18px; }
  .featured-cover-frame { border-width: 6px; }
  .featured-title { font-size: 26px; }
  .featured-connection { margin-top: 10px; font-size: 10px; }
  .featured-reason { font-size: 11px; }
  .featured-meta { margin-top: 12px; }
  .discover-heading { min-height: 0; padding: 26px 0 20px; display: flex; align-items: stretch; flex-direction: column; gap: 12px; }
  .discover-heading h2 { font-size: 32px; line-height: 1.05; }
  .discover-heading > p { font-size: 11px; }
  .view-switch { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); }
  .view-switch button { width: 100%; }
  .topic-shelf { grid-template-columns: 1fr; }
  .topic-shelf > header { padding: 24px 0 20px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .topic-shelf h3 { font-size: 28px; }
  .topic-shelf header p:last-child { margin-top: 9px; }
  .topic-book-row { padding: 18px 0 28px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .topic-book-card { padding: 6px; }
  .topic-book-title { font-size: 13px; }
  .filter-panel-title { min-height: 0; padding: 24px 20px; grid-template-columns: 1fr; gap: 12px; }
  .filter-panel-title h3 { font-size: 31px; }
  .catalog-toolbar { padding: 12px; }
  .catalog-selects { grid-template-columns: 1fr; }
  .reference-catalog-grid { grid-template-columns: 1fr; }
  .reference-card-button { grid-template-columns: 92px minmax(0,1fr); min-height: 150px; }
  .reference-cover-frame { width: 92px; height: 132px; }
  .book-dialog { width: 100%; }
  .book-dialog .dialog-shell { border-left: 0; }
  .detail-hero { min-height: 0; padding: 62px 18px 24px; grid-template-columns: 108px minmax(0,1fr); gap: 17px; align-items: start; }
  .detail-cover-column .cover,.recommendation-detail-cover { width: 108px; max-width: 108px; border-width: 6px; }
  .detail-heading h2 { max-width: none; font-size: 29px; line-height: 1.04; }
  .detail-byline { margin-top: 10px; font-size: 11px; }
  .detail-statuses { margin: 14px 0 0; }
  .status-tag { min-height: 27px; padding-inline: 7px; font-size: 9px; }
  .like-button { width: 100%; justify-content: center; }
  .detail-content { padding: 0 18px 48px; }
  .description-card { padding-block: 26px; }
  .description { font-size: 16px; line-height: 1.85; }
  .detail-section { padding-block: 24px; }
  .fact-grid { grid-template-columns: 1fr; }
  .recommendation-reason-card { margin-top: 24px; padding: 20px; }
  .recommendation-reason-card > p:last-child { font-size: 14px; }
  .related-shelf-heading { align-items: flex-start; }
  .related-shelf-heading h3 { font-size: 24px; }
  .related-shelf-list { grid-template-columns: 1fr; }
  .small-dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .small-dialog-shell { padding: 42px 20px 28px; }
  .small-dialog h2,.side-dialog h2 { font-size: 32px; }
  .add-mode-switch { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); }
  .manual-lookup,.manual-confirm { grid-template-columns: 1fr; }
  .side-dialog { width: 100%; }
  .side-dialog-shell { padding: 28px 18px; border-left: 0; }
  .bulk-enrich { align-items: stretch; flex-direction: column; }
}
