:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --surface: #fff;
  --surface-soft: #eef1e8;
  --text: #1b241d;
  --muted: #68736a;
  --line: #dfe5dc;
  --green: #47744b;
  --on-green: #fff;
  --green-deep: #345c3c;
  --green-soft: #e1eddf;
  --orange: #d68a58;
  --danger: #a53d46;
  --shadow: 0 18px 50px rgb(33 50 35 / 9%);
  --radius: 20px;
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171a17;
  --surface: #202520;
  --surface-soft: #282e28;
  --text: #eef2ec;
  --muted: #a7b1a7;
  --line: #363f36;
  --green: #96bd94;
  --on-green: #172719;
  --green-deep: #c1e0bb;
  --green-soft: #293d2d;
  --orange: #e3a575;
  --danger: #f19aa1;
  --shadow: 0 18px 50px rgb(0 0 0 / 25%);
}
* { box-sizing: border-box; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.home-guides { margin: 64px 0 24px; }
.guide-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.guide-card h3 { margin: 10px 0; font-family: Georgia, serif; font-size: 1.32rem; line-height: 1.3; }
.guide-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-card p { color: var(--muted); }
.guide-card h2 { margin: 10px 0; font: 500 1.32rem/1.3 Georgia, serif; }
.guide-card h2 a { display: block; }
.guide-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reading-pick { border-top: 4px solid var(--green); }
.guide-card .pick-author { font-size: .85rem; }
.pick-edition { display: inline-block; padding: 4px 9px; border-radius: 8px; background: var(--surface-soft); font-size: .8rem; }
.starter-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin: -32px 0 48px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.starter-callout h2 { margin: 8px 0; font: 500 1.8rem/1.2 Georgia, serif; }
.starter-callout p { max-width: 65ch; color: var(--muted); margin-bottom: 0; }
.starter-callout .button { flex-shrink: 0; }
.book-facts { padding: 22px; margin: 26px 0; background: var(--surface-soft); border-radius: 14px; }
.book-facts h2 { margin-top: 8px; }
.book-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-facts dt { font-size: .78rem; color: var(--muted); }
.book-facts dd { margin: 3px 0 0; }
.book-facts p:last-child { font-size: .85rem; }
.edition-isbn { font-family: ui-monospace, monospace; user-select: all; }
.article-toc { padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.reading-article section { scroll-margin-top: 170px; }
.suggestion.is-active { background: var(--surface-soft); outline: 2px solid var(--green); outline-offset: -3px; }
#recovery-setup-form, #recovery-key-row { display: grid; gap: 10px; }
#recovery-dialog input, #recovery-dialog textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
#recovery-dialog textarea { font: .9rem/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
#recovery-result { margin-top: 18px; }
@media (max-width: 680px) {
  .starter-callout { flex-direction: column; align-items: stretch; padding: 22px; }
  .book-facts dl { grid-template-columns: 1fr; }
}
.reading-article { max-width: 760px; margin: 24px auto 64px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.reading-article h1 { font: 500 clamp(2rem, 5vw, 3.2rem)/1.12 Georgia, serif; margin: 12px 0 22px; }
.reading-article h2 { margin-top: 32px; font-size: 1.35rem; }
.reading-article p { line-height: 1.8; }
.reading-article a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.reading-article ul { padding-left: 22px; }
.reading-article li { margin: 12px 0; }
.reading-article, .reading-article a, .series-subtitle { overflow-wrap: anywhere; }
.article-lede { font-size: 1.12rem; color: var(--muted); }
.article-sources { border-top: 1px solid var(--line); margin-top: 36px; }
.guide-card h3 a { display: block; }
.related-reading { display: flex; flex-wrap: wrap; gap: 10px; }
.correction-form { display: grid; gap: 12px; margin-top: 24px; }
.correction-form input, .correction-form textarea { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.server-card { padding: 18px; }
.server-card h3 { margin: 0; }
.server-card p { color: var(--muted); }
#series-detail > .reading-article { grid-column: 1 / -1; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); transition: background .2s, color .2s; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #4d82d2; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%); background: color-mix(in srgb, var(--bg), transparent 5%); backdrop-filter: blur(18px); }
.header-inner, .footer-inner { display: flex; align-items: center; width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 78px; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 1.16rem; font-weight: 800; letter-spacing: -.045em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--green); color: var(--on-green); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.brand-accent { color: var(--green-deep); }
.primary-nav { display: flex; align-items: center; gap: 7px; flex: 1; }
.primary-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .93rem; transition: background .15s, color .15s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--surface-soft); color: var(--text); }
.primary-nav a[aria-current="page"] { font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 9px; }
.language-select, .filter-bar select, .season-controls select, .full-select { min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); font-size: 1.2rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 650; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); border-color: var(--green); }
.button-small { min-height: 40px; padding: 7px 14px; }
.button-primary { border-color: transparent; background: var(--green); color: var(--on-green); }
.button-primary:hover { background: var(--green-deep); color: var(--on-green); }
.button-light { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 68%); color: #25342a; }
.button-quiet { background: transparent; }
.page-shell { width: min(1200px, calc(100% - 48px)); min-height: 72vh; margin: 0 auto; }
.view { padding: 30px 0 64px; }
.hero { position: relative; display: grid; min-height: 448px; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; overflow: hidden; margin: 20px 0 64px; padding: 50px clamp(28px, 6vw, 74px); border: 1px solid #dce8d8; border-radius: 32px; background: radial-gradient(circle at 82% 12%, rgb(255 255 255 / 78%), transparent 30%), linear-gradient(120deg, #e8f0e3 0%, #f2f2e7 58%, #f6ede2 100%); }
:root[data-theme="dark"] .hero { border-color: var(--line); background: radial-gradient(circle at 82% 12%, rgb(119 152 111 / 19%), transparent 30%), linear-gradient(120deg, #26372b 0%, #2a3028 58%, #3b3026 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--green-deep); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(214 138 88 / 14%); }
.hero h1 { max-width: 650px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.5vw, 4.45rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.hero-description { max-width: 58ch; margin: 20px 0 25px; color: #536255; font-size: 1.04rem; }
:root[data-theme="dark"] .hero-description { color: var(--muted); }
.search-form { position: relative; display: flex; max-width: 620px; align-items: center; gap: 9px; padding: 7px 8px 7px 44px; border: 1px solid rgb(52 92 60 / 18%); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 35px rgb(46 70 45 / 10%); }
.search-icon { position: absolute; left: 16px; top: 50%; color: var(--muted); font-size: 1.4rem; transform: translateY(-54%); }
.search-form input { width: 100%; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; }
.search-form input:focus-visible { outline: 2px solid #4d82d2; outline-offset: 1px; border-radius: 5px; }
.search-submit { min-height: 42px; padding: 8px 17px; border: 0; border-radius: 11px; background: var(--green); color: var(--on-green); font-weight: 700; }
.suggestions { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; left: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.suggestion { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.suggestion:hover, .suggestion:focus-visible { background: var(--surface-soft); }
.suggestion small { color: var(--muted); text-align: right; }
.search-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.quiet-copy { color: #667367; font-size: .78rem; }
:root[data-theme="dark"] .quiet-copy { color: var(--muted); }
.hero-art { position: relative; display: grid; min-height: 320px; place-items: center; }
.orbit { position: absolute; width: 310px; height: 235px; border: 1px solid rgb(78 112 78 / 25%); border-radius: 50%; transform: rotate(-28deg); }
.orbit-two { width: 350px; height: 185px; transform: rotate(30deg); }
.feature-book { position: relative; z-index: 3; display: flex; width: 154px; height: 222px; flex-direction: column; align-items: center; justify-content: center; gap: 30px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 4px 13px 13px 4px; background: linear-gradient(147deg, #698d6b, #355b42 72%); box-shadow: 18px 22px 35px rgb(41 68 45 / 25%), inset 8px 0 rgb(0 0 0 / 9%); color: #fff7e9; transform: rotate(7deg); }
.feature-book::after { position: absolute; inset: 10px; border: 1px solid rgb(255 255 255 / 34%); content: ""; }
.feature-book span { font-family: Georgia, serif; font-size: 2.6rem; }
.feature-book small { font-size: .56rem; letter-spacing: .18em; }
.book-stack { position: absolute; width: 147px; height: 208px; border-radius: 4px 12px 12px 4px; box-shadow: 12px 15px 25px rgb(53 64 48 / 15%); }
.stack-back { background: #d48e60; transform: translate(55px, 12px) rotate(17deg); }
.stack-mid { background: #e7d2ab; transform: translate(-49px, 12px) rotate(-13deg); }
.hero-spark { position: absolute; z-index: 4; color: var(--orange); font-size: 1.55rem; }
.spark-one { top: 15%; right: 16%; }.spark-two { bottom: 12%; left: 16%; font-size: 1.2rem; }
.hero-caption { position: absolute; right: 0; bottom: 4px; color: #6a7a6c; font-size: .61rem; font-weight: 800; letter-spacing: .18em; }
.discovery-section { margin: 0 0 40px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2, .page-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.section-heading .eyebrow { margin-bottom: 4px; }
.text-link { border: 0; background: none; color: var(--green-deep); font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 20px 0 12px; }
.filter-bar label, .season-controls label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.filter-bar select { min-width: 148px; }
.filter-bar .button { min-height: 42px; }
.filter-check { display: flex !important; align-items: center; align-self: center; gap: 8px !important; min-height: 42px; max-width: 230px; line-height: 1.3; }
.filter-check input { width: 18px; height: 18px; accent-color: var(--green); }
.filter-actions { display: flex; align-items: center; gap: 8px; }
.result-count { margin: 0 0 11px auto; color: var(--muted); font-size: .82rem; }
.active-query { margin: -4px 0 12px; padding: 10px 13px; border-left: 3px solid var(--green); border-radius: 8px; background: var(--surface-soft); color: var(--text); font-size: .86rem; scroll-margin-top: 100px; }
.active-query-hero { display: flex; align-items: center; min-height: 38px; max-width: 70ch; margin-top: -8px; font-weight: 650; }
#view-home.has-active-query > .hero { display: block; min-height: 0; margin-bottom: 26px; padding: 20px 28px; }
#view-home.has-active-query > .hero .hero-art,
#view-home.has-active-query > .hero .hero-copy > .eyebrow,
#view-home.has-active-query > .hero .hero-copy > h1,
#view-home.has-active-query > .hero .hero-description { display: none; }
#view-home.has-active-query > .hero .hero-copy { max-width: 760px; }
#view-home.has-active-query .catalog-grid { grid-template-columns: 1fr; gap: 10px; }
#view-home.has-active-query .series-card { display: block; }
#view-home.has-active-query .series-card > a { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
#view-home.has-active-query .series-card .cover-wrap { aspect-ratio: 4 / 3.8; }
#view-home.has-active-query .series-card .card-copy { display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; }
#view-home.has-active-query .series-card .card-meta { justify-content: flex-start; gap: 12px; }
#view-home.has-active-query .series-card.server-card { display: block; padding: 15px; }
#view-home.has-active-query .series-card.server-card > a { display: block; }
#view-home.has-active-query .series-card.server-card h3 { margin: 0 0 4px; }
.active-query:focus { outline: 3px solid #4d82d2; outline-offset: 3px; }
#catalog-grid { scroll-margin-top: 100px; }
.catalog-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 22px; padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--orange), var(--line) 66%); border-radius: 12px; background: color-mix(in srgb, var(--orange), var(--surface) 92%); color: var(--muted); font-size: .79rem; }
.catalog-note a { margin-left: auto; color: var(--green-deep); font-weight: 700; white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.load-more-row { display: flex; justify-content: center; padding: 20px 0 8px; }
.series-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.series-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green), var(--line) 35%); box-shadow: var(--shadow); }
.series-card:focus-within { outline: 3px solid #4d82d2; outline-offset: 2px; }
.cover-wrap { position: relative; aspect-ratio: 4 / 4.5; overflow: hidden; background: var(--surface-soft); }
.cover-placeholder { display: block; width: 100%; height: 100%; background: var(--surface-soft); object-fit: cover; }
.cover-label { position: absolute; z-index: 2; top: 9px; right: 9px; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 44%); border-radius: 999px; background: rgb(25 35 27 / 64%); color: #fff; font-size: .58rem; letter-spacing: .05em; backdrop-filter: blur(8px); }
.cover-credit-overlay { position: absolute; z-index: 2; right: 7px; bottom: 7px; left: 7px; overflow: hidden; padding: 4px 6px; border-radius: 6px; background: rgb(16 22 18 / 78%); color: #fff; font-size: .57rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.card-copy { padding: 12px 13px 14px; }
.card-copy h3 { margin: 0 0 4px; font-size: .91rem; line-height: 1.3; }
.card-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.card-pointer { display: block; margin-top: 7px; color: var(--muted); font-size: .65rem; }
.card-genres { display: block; margin-top: 7px; color: var(--ink); font-size: .68rem; line-height: 1.35; }
.mini-badge, .tier-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .64rem; font-weight: 650; }
.empty-state, .library-empty { display: grid; justify-items: center; padding: 62px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-icon { color: var(--green); font-size: 2.8rem; }
.empty-state h3, .library-empty h2 { margin: 10px 0 3px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.empty-state p, .library-empty p { max-width: 56ch; margin: 5px 0 16px; color: var(--muted); }
.ad-slot[hidden] { display: none; }
.ad-slot { display: flex; min-height: 144px; max-width: 100%; overflow: hidden; contain: layout; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 40px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .82rem; }
.ad-slot .adsbygoogle { display: block; width: min(100%, 728px); min-height: 90px; }
.ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.ad-label { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .61rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.page-heading { max-width: 720px; padding: 44px 0 26px; }
.page-heading p:last-child { max-width: 62ch; margin: 13px 0 0; color: var(--muted); }
.page-heading h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); }
.season-controls { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.season-controls select { min-width: 170px; margin-top: 2px; }
.season-selected { margin: 13px 0 0; color: var(--muted); font-size: .86rem; }
.season-empty { display: grid; justify-items: center; margin-top: 25px; padding: 56px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: center; }
.season-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: var(--green-soft); color: var(--green-deep); font-size: 1.5rem; }
.season-empty h2 { margin: 16px 0 4px; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.season-empty p { max-width: 65ch; margin: 5px 0 18px; color: var(--muted); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; color: var(--muted); }
.library-list { display: grid; gap: 10px; }
.library-row { display: grid; grid-template-columns: 48px 1fr 170px auto auto;  align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.library-row strong, .library-row span { display: block; }.library-row span { color: var(--muted); font-size: .8rem; }
.library-row select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.account-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.danger-link { color: var(--danger); cursor: pointer; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 18px; color: var(--muted); font-size: .88rem; }
.back-link:hover { color: var(--green-deep); }
.series-layout { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: clamp(26px, 5vw, 62px); align-items: start; }
.series-aside { position: sticky; top: 104px; }
.detail-cover { aspect-ratio: 3 / 4; border-radius: 8px 18px 18px 8px; box-shadow: var(--shadow); }
.detail-cover-figure { margin: 0 0 13px; }
.cover-credit { display: grid; gap: 3px; margin: 8px 0 0; color: var(--muted); font-size: .67rem; text-align: center; overflow-wrap: anywhere; }
.cover-credit a { color: var(--green-deep); text-underline-offset: 2px; }
.cover-credit a:hover { text-decoration: underline; }
.detail-cover-note { margin: 10px 0 13px; color: var(--muted); font-size: .7rem; }
.detail-cover-title-card { display: flex; align-items: end; padding: clamp(18px, 5vw, 28px); background: radial-gradient(circle at 72% 22%, rgb(195 214 187 / 18%), transparent 29%), linear-gradient(152deg, #293b32 0%, #17221e 54%, #111916 100%); color: #f3f2e8; }
.detail-cover-title-card::before { position: absolute; inset: 13px; border: 1px solid rgb(236 238 218 / 28%); border-radius: 5px 13px 13px 5px; content: ""; pointer-events: none; }
.detail-cover-copy { position: relative; display: grid; gap: 12px; width: 100%; }
.detail-cover-copy > small { color: #c6d4c5; font-size: .61rem; letter-spacing: .12em; }
.detail-cover-copy h2 { max-width: 15ch; margin: 0; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 500; line-height: 1.13; overflow-wrap: anywhere; }
.detail-cover-copy p, .detail-cover-copy > span { margin: 0; color: #d4ddd1; font-size: .76rem; }
.cover-source-link { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 5px; margin: 10px 0 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--green-deep); font-size: .77rem; font-weight: 700; text-align: center; text-decoration: none; }
.cover-source-link:hover { border-color: var(--green); background: var(--green-soft); }
#editions-title { scroll-margin-top: 96px; }
.save-controls { display: grid; gap: 9px; }
.save-controls, .save-controls select, .series-aside, .series-main { min-width: 0; max-width: 100%; }
.save-controls select { width: 100%; text-overflow: ellipsis; }
.save-controls .button { white-space: normal; overflow-wrap: anywhere; }
.save-controls select { min-height: 43px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.favorite-button { justify-content: center; }
.series-main { min-width: 0; }
.series-main h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; overflow-wrap: anywhere; }
.series-subtitle { margin: 8px 0 15px; color: var(--muted); }
.source-citation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin: -5px 0 17px; font-size: .78rem; }
.source-citation a { color: var(--green-deep); font-weight: 700; }
.source-citation small { color: var(--muted); }
.series-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.series-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.fact { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fact small { display: block; color: var(--muted); font-size: .7rem; }.fact strong { display: block; margin-top: 3px; font-size: .88rem; }
.detail-panel { margin: 14px 0; padding: clamp(17px, 3vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.detail-panel h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.detail-panel p { margin: 5px 0; color: var(--muted); }
.detail-panel .panel-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .75rem; }
.edition-selectors { display: flex; flex-wrap: wrap; gap: 11px; margin: 15px 0; }
.edition-selectors label { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; }.edition-selectors select { min-width: 165px; min-height: 42px; padding: 7px 32px 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.edition-empty { padding: 17px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .84rem; }
.edition-table { width: 100%; border-collapse: collapse; font-size: .83rem; }.edition-table th, .edition-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }.edition-table th { color: var(--muted); font-size: .72rem; font-weight: 650; }.edition-table a { color: var(--green-deep); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.market-match-note { margin: -3px 0 13px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.edition-offer-list { display: grid; gap: 10px; }
.edition-offer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.edition-offer-copy { min-width: 0; }
.edition-offer-badges { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .71rem; }
.edition-offer-badges span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; }
.edition-offer h3 { margin: 9px 0 5px; font-size: .95rem; }
.edition-offer p { margin: 3px 0; color: var(--muted); font-size: .79rem; }
.edition-offer p strong { color: var(--ink); }
.edition-offer-copy > small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.edition-buy { flex: none; min-height: 40px; padding: 8px 12px; font-size: .8rem; text-decoration: none; }
.relation-list { display: grid; gap: 9px; margin-top: 13px; }.relation-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }.relation-mark { display: grid; width: 37px; height: 37px; flex: none; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green-deep); }.relation-card-copy { min-width: 0; flex: 1; }.relation-card strong { display: block; font-size: .87rem; }.relation-card small { display: block; margin-top: 3px; color: var(--muted); }.relation-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.relation-link { display: grid; min-width: min(190px, 100%); max-width: 100%; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); text-decoration: none; }.relation-link:hover { border-color: var(--green); background: var(--green-soft); }.relation-link span { color: var(--muted); font-size: .66rem; }.relation-link strong { color: var(--green-deep); font-size: .76rem; }.relation-link small { overflow-wrap: anywhere; font-size: .67rem; }
.detail-loading { display: flex; min-height: 260px; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.info-copy { max-width: 780px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.info-copy h2 { margin: 25px 0 7px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }.info-copy h2:first-child { margin-top: 0; }.info-copy p, .info-copy li { color: var(--muted); }.info-copy a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }.footer-inner { min-height: 160px; flex-wrap: wrap; gap: 10px 28px; padding: 24px 0; }.footer-inner p { flex: 1; min-width: 200px; color: var(--muted); font-size: .82rem; }.footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px; }.footer-inner nav a, .footer-inner small { color: var(--muted); font-size: .75rem; }.footer-inner small { width: 100%; }.brand-footer { font-size: 1rem; }
.modal { position: fixed; width: min(520px, calc(100% - 28px)); max-height: min(90vh, 800px); overflow: auto; padding: 29px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px rgb(0 0 0 / 24%); }
.modal::backdrop { background: rgb(18 27 20 / 52%); backdrop-filter: blur(3px); }.modal form[method="dialog"] { margin: 0; }.modal-close { position: absolute; top: 13px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 1.4rem; line-height: 1; }
.modal-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 15px; border-radius: 15px; background: var(--green-soft); color: var(--green-deep); font-size: 1.35rem; }.modal h2 { margin: 0; font-family: Georgia, serif; font-size: 1.85rem; font-weight: 500; letter-spacing: -.03em; }.modal-intro { margin: 8px 0 20px; color: var(--muted); font-size: .91rem; }.upload-zone { display: grid; min-height: 140px; place-content: center; justify-items: center; gap: 5px; border: 1px dashed color-mix(in srgb, var(--green), var(--line) 35%); border-radius: 15px; background: var(--surface-soft); color: var(--muted); text-align: center; cursor: pointer; }.upload-zone strong { color: var(--text); }.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }.upload-zone:focus-within { outline: 3px solid #4d82d2; outline-offset: 3px; }.upload-icon { color: var(--green-deep); font-size: 1.65rem; }.ocr-language-label, #ocr-results label, #account-form label { display: block; margin: 16px 0 6px; font-size: .82rem; font-weight: 700; }.full-select { width: 100%; }.privacy-note { display: flex; gap: 8px; margin: 15px 0 0; color: var(--muted); font-size: .74rem; }.privacy-note span:first-child { color: var(--green); }.modal-footnote { margin: 14px 0 0; color: var(--muted); font-size: .72rem; }.progress-track { height: 7px; overflow: hidden; margin-top: 17px; border-radius: 99px; background: var(--surface-soft); }.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s; }.ocr-cancel { margin-top: 8px; }.ocr-progress p { color: var(--muted); font-size: .8rem; }.ocr-results { margin-top: 16px; }.ocr-results textarea, #account-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.ocr-results .button { margin-top: 10px; }.ocr-match { margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }.ocr-match a { color: var(--green-deep); font-weight: 700; }.ocr-match small { display: block; color: var(--muted); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 12px; background: var(--surface-soft); }.auth-switch button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }.auth-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgb(0 0 0 / 8%); font-weight: 700; }
#account-form label { margin-top: 13px; }#account-form small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }.auth-submit { width: 100%; margin-top: 17px; }.form-error { color: var(--danger); font-size: .82rem; }.toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: min(440px, calc(100% - 40px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.consent-banner { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; max-width: min(760px, calc(100% - 36px)); align-items: center; gap: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }.consent-banner p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }.consent-banner > div:last-child { display: flex; flex: none; gap: 7px; }.consent-banner .button { min-height: 38px; padding: 7px 10px; font-size: .75rem; }
@media (max-width: 900px) { .header-inner { gap: 18px; }.primary-nav { gap: 0; }.primary-nav a { padding: 9px; }.hero { grid-template-columns: minmax(0, 1fr) 280px; padding: 40px; }.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.hero-art { transform: scale(.88); } }
@media (max-width: 680px) { .header-inner, .footer-inner, .page-shell { width: min(100% - 30px, 1200px); }.header-inner { min-height: 68px; flex-wrap: wrap; gap: 8px 15px; padding: 9px 0; }.brand { font-size: 1rem; }.brand-mark { width: 31px; height: 31px; }.primary-nav { order: 3; width: 100%; overflow-x: auto; }.primary-nav a { flex: none; padding: 7px 11px; font-size: .82rem; }.header-tools { margin-left: auto; }.language-select { width: 110px; min-height: 38px; padding: 6px 5px; font-size: .74rem; }.icon-button { width: 38px; height: 38px; }.button-small { min-height: 38px; padding: 6px 10px; font-size: .78rem; }.view { padding-top: 15px; }.hero { display: block; min-height: unset; margin: 11px 0 45px; padding: 33px 22px 25px; border-radius: 24px; }.hero h1 { font-size: clamp(2.5rem, 12vw, 3.65rem); }.hero-description { margin: 15px 0 18px; font-size: .94rem; }.search-form { gap: 5px; padding-left: 38px; }.search-form input { font-size: .87rem; }.search-submit { padding: 8px 11px; font-size: .82rem; }.search-icon { left: 12px; }.search-actions { flex-wrap: wrap; gap: 8px; }.search-actions .button { min-height: 40px; font-size: .78rem; }.quiet-copy { width: 100%; }.hero-art { min-height: 215px; margin-top: 6px; transform: scale(.72); }.section-heading { align-items: start; flex-direction: column; gap: 8px; }.section-heading h2 { font-size: 2rem; }.filter-bar { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }.filter-bar select { width: 100%; min-width: 0; }.filter-bar .filter-actions { grid-column: 1 / -1; }.filter-bar .filter-check { grid-column: 1 / -1; max-width: none; }.result-count { grid-column: 1 / -1; align-self: center; margin: 0; text-align: left; }.catalog-note { align-items: start; flex-wrap: wrap; }.catalog-note a { margin-left: 23px; }.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.cover-wrap { aspect-ratio: 4 / 4.7; }.card-copy { padding: 10px; }.card-copy h3 { font-size: .84rem; }.card-meta { align-items: start; flex-direction: column; }.ad-slot { gap: 6px 10px; min-height: 144px; text-align: center; }.page-heading { padding: 32px 0 20px; }.season-controls { gap: 9px; padding: 13px; }.season-controls label { flex: 1; }.season-controls select { width: 100%; min-width: 0; }.season-empty { padding: 36px 17px; }.series-layout { grid-template-columns: 1fr; gap: 20px; }.series-aside { order: 2; position: static; }.series-main { order: 1; }.detail-cover { width: min(240px, 78%); margin: 0 auto; }.detail-cover-note { text-align: center; }.cover-source-link { width: min(240px, 78%); margin-right: auto; margin-left: auto; }.save-controls { grid-template-columns: 1fr auto; }.series-main h1 { font-size: 2.3rem; }.series-facts { gap: 8px; }.edition-table { font-size: .75rem; }.edition-table th, .edition-table td { padding: 9px 4px; }.library-row { grid-template-columns: 1fr auto; gap: 10px; }.library-row select { grid-column: 1; }.library-row .remove-library { grid-column: 2; grid-row: 1 / span 2; }.footer-inner { align-items: start; gap: 9px 15px; }.footer-inner p { flex-basis: calc(100% - 30px); margin: 5px 0; }.footer-inner nav { gap: 9px 13px; }.modal { padding: 24px 18px; }.consent-banner { right: 10px; bottom: 10px; left: 10px; flex-direction: column; align-items: stretch; gap: 12px; max-width: none; }.consent-banner > div:last-child { justify-content: end; } }
@media (max-width: 520px) { .edition-offer { align-items: stretch; flex-direction: column; gap: 12px; padding: 13px; }.edition-buy { justify-content: center; width: 100%; } }
@media (max-width: 680px) { .active-query, #catalog-grid { scroll-margin-top: 170px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Series pages: keep the editorial summary calm and make store choices easy to compare. */
.page-shell { width: min(1160px, calc(100% - 48px)); }
.series-layout { grid-template-columns: minmax(218px, 280px) minmax(0, 1fr); gap: clamp(28px, 4.2vw, 52px); }
.adaptation-panel { border-color: color-mix(in srgb, var(--green), var(--line) 35%); background: var(--surface-soft); }
.adaptation-row { padding: 12px 0; border-top: 1px solid var(--line); }
.adaptation-row h3 { margin: 0 0 5px; font-size: .95rem; }
.adaptation-row p { margin: 5px 0; }
.adaptation-source { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.adaptation-source a { color: var(--green-deep); font-weight: 700; }
.series-main h1 { max-width: 25ch; font-size: clamp(2.1rem, 3.35vw, 3.05rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: normal; }
.series-subtitle { display: grid; gap: 3px; margin: 9px 0 14px; font-size: .94rem; line-height: 1.55; }
.series-subtitle span:first-child { color: var(--muted); }
.series-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 19px 0 15px; }
.fact { min-height: 76px; padding: 13px 14px; border-radius: 14px; }
.fact-genres { grid-column: 1 / -1; }
.genre-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.genre-pills span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-soft); color: var(--muted); font-size: .72rem; line-height: 1.3; }
.reading-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reading-overview > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.reading-overview h2 { font-family: inherit; font-size: .96rem; font-weight: 750; letter-spacing: 0; }
.reading-overview p { font-size: .83rem; line-height: 1.55; }
.edition-panel { border-color: color-mix(in srgb, var(--green), var(--line) 62%); background: linear-gradient(145deg, var(--surface) 15%, color-mix(in srgb, var(--green-soft), var(--surface) 45%) 100%); box-shadow: var(--shadow); }
.edition-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.edition-heading .eyebrow { margin: 0 0 2px; }
.edition-heading h2 { margin: 0; font-size: 1.65rem; }
.edition-trust-mark { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid color-mix(in srgb, var(--green), var(--line) 35%); border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-weight: 800; }
.edition-selectors { margin: 17px 0 10px; }
.edition-selectors label { min-width: min(210px, 100%); gap: 6px; color: var(--text); font-size: .73rem; font-weight: 700; }
.edition-selectors select { min-width: 0; width: 100%; min-height: 45px; background-color: var(--surface); }
.market-match-note { max-width: 72ch; margin: 0 0 13px; font-size: .76rem; }
.edition-market-summary { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; color: var(--green-deep); font-size: .79rem; font-weight: 750; }
.edition-market-summary > span:first-child { color: var(--green); font-size: .63rem; }
.edition-offer-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 11px; align-items: start; }
.edition-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.edition-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft), var(--surface) 44%); font-size: .77rem; }
.edition-group-heading > span { color: var(--muted); }
.edition-group-heading > strong { padding: 4px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green-deep); font-size: .7rem; font-weight: 700; }
.retailer-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 9px; padding: 11px; }
.retailer-option { display: grid; min-width: 0; align-content: start; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.retailer-option:hover { transform: translateY(-1px); border-color: var(--green); background: var(--surface-soft); }
.retailer-kind { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .035em; }
.retailer-brand { overflow-wrap: anywhere; color: var(--text); font-size: .9rem; font-weight: 750; }
.retailer-action { color: var(--green-deep); font-size: .75rem; font-weight: 750; }
.retailer-option > small { overflow-wrap: anywhere; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.retailer-option .retailer-checked { margin-top: 2px; }
.retailer-searches { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.retailer-search-heading h3 { margin: 0; font-size: .9rem; }
.retailer-search-heading p { max-width: 72ch; margin: 4px 0 10px; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.retailer-search-list { display: flex; flex-wrap: wrap; gap: 8px; }
.retailer-search-link { position: relative; display: grid; min-width: min(220px, 100%); grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 11px; background: var(--surface); text-decoration: none; }
.retailer-search-link:hover { border-color: var(--green); background: var(--green-soft); }
.retailer-search-link .retailer-brand { font-size: .82rem; }
.retailer-search-link .retailer-kind { grid-column: 1; grid-row: 2; }
.retailer-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--green-deep); font-weight: 800; }
.edition-empty { border: 1px solid var(--line); background: var(--surface); }
.edition-empty p { margin: 5px 0 0; font-size: .77rem; }
.edition-panel .panel-foot { line-height: 1.5; }
.cover-source-link { justify-content: space-between; min-height: 43px; padding-inline: 14px; }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 36px, 1160px); }
  .series-layout { gap: 28px; }
}
@media (max-width: 680px) {
  .page-shell { width: min(100% - 30px, 1160px); }
  .series-layout { grid-template-columns: 1fr; gap: 16px; }
  .series-aside { display: grid; grid-template-columns: minmax(128px, 190px) minmax(0, 1fr); align-items: start; gap: 0 14px; }
  #detail-cover-frame { grid-row: span 3; }
  .detail-cover { width: 100%; margin: 0; }
  .cover-source-link { width: 100%; margin: 0 0 9px; }
  .save-controls { grid-template-columns: 1fr; }
  .series-main h1 { max-width: 100%; font-size: clamp(1.9rem, 8vw, 2.55rem); }
  .series-facts { grid-template-columns: 1fr 1fr; }
  .edition-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .header-inner { gap: 8px; }
  .header-tools { min-width: 0; flex-wrap: wrap; gap: 6px; }
  .primary-nav { flex: 1 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .primary-nav a { min-width: 0; min-height: 44px; padding: 8px 3px; text-align: center; white-space: normal; line-height: 1.2; }
  .series-aside { min-width: 0; }
  .reading-article { margin-top: 12px; }
  .series-aside { grid-template-columns: 112px minmax(0, 1fr); gap: 0 11px; }
  .detail-cover { border-radius: 7px 14px 14px 7px; }
  .detail-cover-copy h2 { font-size: 1.05rem; }
  .detail-cover-copy { gap: 8px; }
  .detail-cover-copy > small { font-size: .5rem; }
  .detail-cover-title-card { align-items: start; padding: 36px 10px 10px; }
  .detail-cover-copy h2 { font-size: .76rem; line-height: 1.15; }
  .detail-cover-copy p, .detail-cover-copy > span { display: none; }
  .detail-cover-copy > small { font-size: .43rem; letter-spacing: .04em; }
  .detail-cover .cover-label { top: 7px; right: 5px; left: 5px; font-size: .5rem; padding: 3px 4px; }
  .cover-source-link { justify-content: center; padding: 7px; font-size: .7rem; }
  .save-controls select, .save-controls .button { min-height: 40px; padding: 7px; font-size: .73rem; }
  .reading-overview { grid-template-columns: 1fr; gap: 11px; }
  .reading-overview > div + div { padding: 11px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .edition-selectors { grid-template-columns: 1fr; }
  .edition-group-heading { align-items: flex-start; flex-direction: column; }
  .retailer-option-grid { grid-template-columns: 1fr 1fr; }
}

/* Single-filter editorial forms need the full phone width for readable option labels. */
@media (max-width: 680px) {
  .filter-bar[action="/start-here"], .filter-bar[action="/season"] { grid-template-columns: minmax(0, 1fr); }
  .filter-bar[action="/start-here"] label, .filter-bar[action="/season"] label { font-size: .85rem; }
  .filter-bar[action="/start-here"] select, .filter-bar[action="/season"] select { font-size: 1rem; }
  .filter-bar[action="/start-here"] p, .filter-bar[action="/season"] p { margin: 2px 0; }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 8px 18px; padding: 9px 0; }
  .header-tools { margin-left: auto; }
  .language-select { max-width: 160px; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .primary-nav a, .header-tools .button { white-space: nowrap; }
}

.library-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.library-toolbar-actions select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.library-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.library-tab { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font: inherit; font-size: .85rem; }
.library-tab[aria-selected="true"] { border-color: var(--accent, currentColor); font-weight: 700; }
.library-count { color: var(--muted); font-size: .78rem; }
.library-continue h2 { margin: 0 0 8px; font-size: 1.05rem; }
.library-continue-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 18px; }
.continue-card { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; }
.continue-card strong, .continue-card small { display: block; }
.continue-card small { color: var(--muted); }
.library-thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--line); }
.library-row .stepper { display: inline-flex; align-items: center; gap: 6px; }
.library-row .stepper .button { min-height: 36px; min-width: 36px; padding: 0 8px; }
.library-row .stepper output { min-width: 2.2em; text-align: center; font-variant-numeric: tabular-nums; }
.library-row .library-note { grid-column: 2 / -1; }
.library-row .library-note summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.library-row .library-note textarea { display: block; width: 100%; margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: var(--surface); color: inherit; box-sizing: border-box; }
@media (max-width: 680px) { .library-row { grid-template-columns: 48px 1fr auto; }.library-row select, .library-row .stepper { grid-column: 2; }.library-row .remove-library { grid-column: 3; grid-row: 1; }.library-row .library-note { grid-column: 1 / -1; } }
.start-here-line { margin: 0 0 8px; }
.similar-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.similar-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.similar-list a { font-weight: 600; overflow-wrap: anywhere; }
.similar-list span { color: var(--muted); font-size: .88rem; }
.home-popular { margin: 28px 0; }
.release-filters { margin-bottom: 18px; }
#feedback-dialog input, #feedback-dialog select, #feedback-dialog textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
#feedback-dialog label { display: block; margin: 12px 0 4px; font-weight: 600; }
#feedback-dialog .button { margin-top: 14px; }
.feedback-open { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.start-here-line .badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; color: var(--muted, inherit); }

.volume-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.volume-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.volume-table th, .volume-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.volume-table img { display: block; border-radius: 4px; object-fit: cover; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.filter-chip:hover, .filter-chip:focus-visible { border-color: currentColor; }

/* Compact mobile navigation (JS adds .js; without JS the nav stays visible). */
.nav-toggle { display: none; }
@media (max-width: 719px) {
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.open { display: grid; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .js .primary-nav.open a { min-height: 44px; text-align: center; }
}
.share-button { white-space: nowrap; }

.onboarding { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.onboarding p { margin: 0 0 10px; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 8px; }
