:root {
    --bg: #f4f7fb; --surface: #ffffff; --ink: #22303f; --muted: #64748b;
    --accent: #33608a; --accent-hover: #244c70; --accent-soft: #e7eff7;
    --line: #e2e8f0; --warm: #b06d3f; --shadow: 0 12px 35px #24405c0f;
    font-family: "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg);
    font-synthesis: none; text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
    --bg: #0f1723; --surface: #172231; --ink: #dce7f4; --muted: #93a5bd;
    --accent: #7cb3e6; --accent-hover: #a6cdef; --accent-soft: #1b2b40;
    --line: #26364b; --warm: #d7a15f; --shadow: 0 12px 35px #0006; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.profile-heading { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-photo { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; }
.profile-reviews-title { margin-top: 40px; }
.copyright-notice { padding: 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 13px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.16; }
h1 { font-size: clamp(36px, 4.4vw, 62px); }
h2 { font-size: 34px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
em { color: var(--accent); font-weight: 400; }
.container { max-width: 1320px; width: calc(100% - 112px); margin: 0 auto; }
.narrow { max-width: 790px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .18em; color: var(--accent); line-height: 1.8; }
.muted, .quiet-note { color: var(--muted); }
.quiet-note { font-size: 12px; margin-top: 20px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.site-header { height: 90px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 56px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 29px Georgia, serif; letter-spacing: -1.1px; white-space: nowrap; }
.brand > svg { color: var(--accent); }
.brand > span { color: var(--warm); font-size: 19px; margin: -14px 0 0 -5px; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 30px; }
.main-nav { font-size: 13px; }
.main-nav [aria-current] { color: var(--accent); }
.header-actions { gap: 20px; font-size: 13px; }
.button { border: 1px solid transparent; background: var(--accent); color: var(--surface); padding: 13px 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 550; min-height: 46px; line-height: 1.4; transition: background .15s, transform .15s; }
.button:hover { background: var(--accent-hover); color: var(--surface); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--accent-soft); }
.button.small { padding: 9px 16px; min-height: 38px; font-size: 12px; }
.button.full { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: 8px; width: 42px; height: 42px; }
.icon-button:hover { background: var(--accent-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.small-link { font-size: 12px; color: var(--muted); }
.hero { min-height: 636px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 72px; padding-top: 66px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 4.35vw, 65px); line-height: 1.14; margin: 25px 0; letter-spacing: -.052em; }
.hero h1 em { display: inline-block; margin-top: 8px; }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 450px; margin-bottom: 32px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.hero-note { font-size: 11px; color: var(--muted); margin: 20px 0 0; display: flex; gap: 7px; align-items: center; }
.hero-art { position: relative; display: grid; place-items: center; padding: 18px 10px; }
.orb { position: absolute; z-index: -1; }
.orb-one { width: 350px; height: 410px; background: #e0eaf3; border-radius: 180px 180px 30px 30px; transform: rotate(-12deg); top: -15px; left: 5px; }
.orb-two { width: 155px; height: 155px; background: #dce7f2; border-radius: 50%; bottom: -10px; right: 0; }
.reading-preview { background: #fbfcff; color: #33404f; width: 365px; padding: 26px 32px 20px; box-shadow: 0 24px 60px #24405c1f, 0 0 0 1px #2f5c8a14; border-radius: 12px; transform: rotate(3deg); }
.preview-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .06em; color: #6b7683; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid #e2e8ef; }
.preview-top span:first-child { display: flex; align-items: center; gap: 7px; }
.reading-preview > .eyebrow { font-size: 8px; }
.reading-preview h2 { font-size: 32px; margin-bottom: 22px; }
.reading-preview > p:not(.eyebrow) { font: 13px/1.9 Georgia, serif; }
.preview-play { display: flex; align-items: center; gap: 14px; border-top: 1px solid #e2e8ef; margin-top: 22px; padding-top: 18px; font-size: 10px; color: #33608a; }
.preview-play > small { margin-left: auto; color: #6b7683; }
.floating-note { position: absolute; bottom: 30px; left: -30px; display: flex; align-items: center; gap: 15px; padding: 15px 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 33px; color: var(--warm); transform: rotate(-5deg); }
.floating-note span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.floating-note strong { font-weight: 600; color: var(--ink); }
.benefits { border-block: 1px solid var(--line); padding: 28px 20px; display: flex; justify-content: space-between; gap: 24px; }
.benefits > div { display: flex; align-items: center; gap: 17px; color: var(--accent); }
.benefits span { display: flex; flex-direction: column; gap: 3px; }
.benefits strong { font-weight: 550; color: var(--ink); font-size: 13px; }
.benefits small { font-size: 11px; color: var(--muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 9px; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.book-card { min-width: 0; }
.cover-link { display: block; position: relative; overflow: hidden; border-radius: 8px; background: var(--accent-soft); }
.book-cover, .generated-cover { width: 100%; aspect-ratio: 8 / 11; height: auto; object-fit: cover; transition: transform .35s; }
.cover-link:hover .book-cover { transform: scale(1.025); }
.cover-read { position: absolute; bottom: 15px; left: 50%; transform: translate(-50%, 10px); opacity: 0; background: #fbfcffed; border-radius: 6px; padding: 8px 15px; color: #244c70; font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: .2s; }
.cover-link:hover .cover-read { opacity: 1; transform: translate(-50%, 0); }
.book-card-body { padding: 18px 1px 0; }
.book-kind { font-size: 8px; letter-spacing: .13em; color: var(--warm); margin-bottom: 7px; }
.book-card h3 { font-family: Georgia, serif; font-size: 20px; font-weight: 400; margin-bottom: 5px; }
.book-card-body > .muted { font-size: 12px; margin-bottom: 12px; }
.book-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.book-meta > span { display: inline-flex; gap: 5px; align-items: center; }
.generated-cover { background: #d7e2ee; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; color: #2c4a63; }
.generated-cover > span { font-size: 9px; letter-spacing: .2em; }
.generated-cover strong { font: 32px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.generated-cover i { font-size: 65px; align-self: center; font-style: normal; }
.generated-cover small { font-size: 12px; }
.card-progress { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 10px; color: var(--accent); }
progress { appearance: none; height: 4px; border: 0; border-radius: 5px; background: var(--line); width: 100%; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 5px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--accent); }
.card-progress span { flex-shrink: 0; }
.upload-banner { background: var(--accent-soft); border-radius: 12px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 70px; position: relative; overflow: hidden; }
.upload-banner h2 { font-size: 35px; }
.upload-banner p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.upload-banner .button { z-index: 1; flex-shrink: 0; }
.banner-symbol { position: absolute; right: -20px; bottom: -105px; font-size: 370px; line-height: 1; opacity: .045; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding: 36px 56px; color: var(--muted); font-size: 11px; }
.site-footer .brand { font-size: 23px; color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer small { width: 100%; font-size: 10px; }
.library-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 54px; padding-top: 48px; padding-bottom: 80px; min-height: 75vh; }
.library-sidebar { border-right: 1px solid var(--line); padding-right: 25px; }
.library-sidebar > h2 { font-size: 27px; margin-bottom: 25px; }
.library-sidebar .eyebrow { font-size: 8px; }
.library-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.library-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.library-sidebar nav a:hover, .library-sidebar nav .active { color: var(--accent); background: var(--accent-soft); }
.library-sidebar nav a:nth-child(8) { margin-top: 18px; }
.sidebar-note { margin-top: 42px; background: var(--accent-soft); padding: 25px 17px; border-radius: 10px; font-size: 12px; }
.sidebar-note > span { color: var(--warm); font-size: 25px; }
.sidebar-note p { margin-top: 10px; }
.sidebar-note a { font-size: 10px; color: var(--accent); }
.library-main .section-heading h1 { font-size: 37px; margin-bottom: 12px; }
.library-main .section-heading p:last-child { font-size: 13px; margin-bottom: 0; }
.search-form { display: flex; gap: 13px; align-items: center; padding: 7px 8px 7px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 35px; color: var(--muted); }
.search-form input { border: 0; background: transparent; padding: 8px 0; width: 100%; min-width: 0; font-size: 13px; color: var(--ink); }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 23px; }
.list-heading h2 { font-size: 24px; margin: 0; }
.list-heading > span { font-size: 11px; }
.library-grid { gap: 25px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; gap: 20px; margin-top: 35px; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 10px; padding: 55px 25px; }
.empty-state > svg { color: var(--accent); margin-bottom: 22px; }
.empty-state h2 { font-size: 29px; }
.empty-state p { color: var(--muted); }
.form-card { background: var(--surface); padding: 36px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 31px; }
.form-card > .muted { font-size: 13px; margin-bottom: 28px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 550; margin-bottom: 18px; }
input:not([type="checkbox"]):not([type="range"]), select, textarea { padding: 11px 13px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; color: var(--ink); width: 100%; min-width: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); font-size: 12px; font-weight: 400; }
.checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; color: var(--muted); font-weight: 400; }
.checkbox input { accent-color: var(--accent); margin-top: 4px; }
.checkbox a { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-foot { text-align: center; font-size: 12px; margin: 25px 0 0; color: var(--muted); }
.form-foot a { color: var(--accent); text-decoration: underline; }
.form-error { border-radius: 7px; padding: 12px; background: #fff0e8; color: #91482e; font-size: 13px; }
.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: 100px; align-items: center; padding-block: 80px; min-height: 76vh; }
.auth-intro h1 { font-size: 46px; }
.auth-intro > p:not(.eyebrow) { color: var(--muted); }
.auth-quote { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 35px; }
.auth-quote > span { font: 65px Georgia, serif; color: var(--warm); height: 55px; display: block; }
.auth-quote blockquote { margin: 0 0 20px; font: 22px/1.6 Georgia, serif; max-width: 440px; }
.auth-quote small { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.avatar { width: 31px; height: 31px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; flex-shrink: 0; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.account-menu > div { position: absolute; right: 0; top: 42px; min-width: 230px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--surface); z-index: 20; box-shadow: var(--shadow); }
.account-menu p { font-size: 12px; overflow-wrap: anywhere; }
.upload-zone { padding: 36px 20px; border: 1px dashed var(--accent); border-radius: 8px; align-items: center; text-align: center; background: var(--accent-soft); gap: 12px; margin-bottom: 28px; }
.upload-zone > span { color: var(--muted); font-size: 11px; }
.upload-zone input { max-width: 360px; font-size: 11px; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.book-detail { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: center; margin-bottom: 64px; }
.detail-cover img, .detail-cover .generated-cover { border-radius: 8px; box-shadow: 8px 12px 25px #0001; height: auto; }
.detail-copy h1 { font-size: 49px; }
.book-author { font-size: 17px; color: var(--muted); }
.description { max-width: 680px; color: var(--muted); font-size: 14px; }
.detail-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 26px 0; color: var(--muted); font-size: 11px; }
.detail-stats span { display: inline-flex; align-items: center; gap: 7px; }
.detail-stats strong { color: var(--ink); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.inline-form label { margin: 0; font-weight: 400; color: var(--muted); }
.inline-form select { width: auto; font-size: 12px; padding: 8px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 1px solid var(--line); padding-top: 48px; }
.detail-columns h2 { font-size: 28px; }
.chapter-list { margin: 20px 0 35px; padding-left: 25px; color: var(--muted); font-size: 12px; }
.chapter-list li { padding-left: 6px; border-bottom: 1px solid var(--line); }
.chapter-list a { display: flex; align-items: center; gap: 12px; padding: 15px 0; color: var(--ink); }
.chapter-list a span { margin-right: auto; }
.chapter-list small { white-space: nowrap; color: var(--muted); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 22px; margin-bottom: 18px; }
.panel summary { font-size: 13px; font-weight: 550; }
.panel[open] summary { margin-bottom: 20px; }
.panel p { font-size: 13px; }
.panel form + form { margin-top: 20px; }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-link { border: 0; background: none; color: #ac5844; font-size: 12px; padding: 5px 0; }
.comment, .review { margin-block: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
.comment > p:first-child { display: flex; gap: 10px; align-items: center; }
.comment small { font-size: 10px; color: var(--muted); }
.comment > details { margin-top: 10px; }
.user-text { overflow-wrap: anywhere; white-space: normal; }
.rating-stars { color: var(--warm); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 10px; padding: 4px 8px; border-radius: 5px; }
.import-list { padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.import-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; }
.import-status { background: var(--accent-soft); padding: 18px; border-radius: 8px; font-size: 13px; }
.import-status p { margin: 8px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 35px 0; }
.stats-grid .panel { display: flex; flex-direction: column; }
.stats-grid strong { font: 40px Georgia, serif; }
.stats-grid span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; margin: 25px 0 45px; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; text-align: left; font-size: 12px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 17px; vertical-align: top; }
th { background: var(--accent-soft); font-weight: 550; }
.quote-page { text-align: center; min-height: 70vh; }
.quote-page blockquote { font: 30px/1.65 Georgia, serif; margin: 0 0 30px; }
.quote-mark { font: 90px Georgia, serif; color: var(--warm); height: 100px; display: block; }
.quote-page .actions { justify-content: center; margin-top: 35px; }
.prose p { line-height: 1.9; color: var(--muted); }
.prose h2 { margin-top: 35px; }
.flash { padding: 14px 30px; background: var(--accent-soft); text-align: center; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 8px; box-shadow: var(--shadow); z-index: 100; font-size: 13px; max-width: calc(100vw - 30px); width: max-content; }
.error-page { max-width: 680px; margin: 10vh auto; padding: 30px; }
.error-page .brand { margin-bottom: 50px; }
.error-page .actions { margin-top: 25px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; background: var(--surface); padding: 10px; z-index: 100; }
@media (max-width: 1100px) {
    .container { width: calc(100% - 64px); }
    .site-header, .site-footer { padding-inline: 32px; }
    .main-nav { gap: 18px; }
    .hero { gap: 30px; }
    .reading-preview { width: 330px; padding-inline: 28px; }
    .floating-note { left: -5px; bottom: 0; }
    .library-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
    .library-sidebar { padding-right: 14px; }
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-layout { gap: 45px; grid-template-columns: 1fr 400px; }
    .auth-intro h1 { font-size: 38px; }
    .detail-columns { gap: 35px; }
}
@media (max-width: 780px) {
    .container { width: calc(100% - 40px); }
    .site-header { height: auto; min-height: 76px; padding: 15px 20px; flex-wrap: wrap; gap: 12px; }
    .brand { font-size: 26px; }
    .main-nav { order: 3; width: 100%; justify-content: center; gap: 35px; padding: 6px 0 2px; font-size: 12px; }
    .header-actions { gap: 10px; }
    .header-actions .button { padding: 8px 12px; }
    .account-name { display: none; }
    .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 50px; }
    .hero h1 { font-size: 49px; }
    .hero-description { font-size: 16px; }
    .hero-art { max-width: 450px; width: 100%; margin: 0 auto; }
    .reading-preview { width: 330px; }
    .orb-one { left: 20px; }
    .floating-note { left: 0; }
    .benefits { flex-direction: column; gap: 25px; padding: 27px; }
    .section { padding-block: 40px; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 28px; }
    .section-heading > .text-link { font-size: 11px; max-width: 110px; flex-shrink: 0; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .book-card h3 { font-size: 19px; }
    .book-meta { gap: 8px; }
    .book-meta span:last-child { display: none; }
    .upload-banner { flex-direction: column; align-items: flex-start; padding: 30px; }
    .upload-banner h2 { font-size: 30px; }
    .site-footer { padding: 30px 20px; gap: 20px; }
    .site-footer nav { margin: 0; width: 100%; }
    .library-layout { display: block; padding-top: 25px; }
    .library-sidebar { border: 0; padding: 0; margin-bottom: 28px; }
    .library-sidebar > .eyebrow, .library-sidebar > h2, .sidebar-note { display: none; }
    .library-sidebar nav { flex-direction: row; overflow-x: auto; gap: 5px; padding-bottom: 6px; }
    .library-sidebar nav a { white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); }
    .library-sidebar nav a:nth-child(8) { margin-top: 0; }
    .library-sidebar nav svg { display: none; }
    .library-main .section-heading { flex-wrap: wrap; }
    .library-main .section-heading h1 { font-size: 33px; }
    .auth-layout { grid-template-columns: 1fr; padding-block: 40px; gap: 30px; }
    .auth-intro { text-align: center; }
    .auth-intro h1 { font-size: 35px; }
    .auth-quote { display: none; }
    .form-card { padding: 25px; }
    .book-detail { grid-template-columns: 1fr; gap: 30px; }
    .detail-cover { max-width: 230px; margin: auto; }
    .detail-copy h1 { font-size: 39px; }
    .detail-columns { grid-template-columns: 1fr; gap: 35px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 420px) {
    .hero h1 { font-size: 41px; }
    .hero-art { transform: scale(.94); }
    .reading-preview { width: 305px; }
    .orb-one { width: 290px; }
    .login-link { display: none; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .book-card h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
