[hidden] { display: none !important; }
.landing { min-height: 100vh; background: #f8f6f0; }
.landing-nav { max-width: 1380px; margin: auto; padding: 25px clamp(24px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: #183039; text-decoration: none; font: 700 19px Georgia, serif; white-space: nowrap; }
.landing-brand-mark { color: #bc8c52; font-size: 31px; line-height: 1; }
.landing-nav nav { display: flex; align-items: center; gap: 30px; }
.landing-nav nav a { color: #53686b; text-decoration: none; font-size: 13px; font-weight: 700; }
.landing-nav nav a:hover, .landing-hero-actions a:hover { text-decoration: underline; }
.landing-nav-signin { padding: 11px 19px; color: #1d545a; border: 1px solid #abc5c3; border-radius: 7px; background: #fffefa; font-size: 13px; font-weight: 700; }
.landing-nav-signin:hover { background: #eaf2ee; }
.landing-hero-wrap { max-width: 1380px; min-height: 610px; margin: auto; padding: 60px clamp(24px,5vw,72px) 105px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(30px,5vw,100px); }
.landing-hero { position: relative; z-index: 1; }
.landing-hero .eyebrow, .landing-section-heading .eyebrow, .landing-close .eyebrow { color: #9a6f3f; }
.landing-hero h1 { max-width: 700px; margin: 20px 0 25px; color: #1d3038; font: normal clamp(47px,5.2vw,78px)/1.11 Georgia, serif; letter-spacing: -.045em; }
.landing-hero h1 em { color: #1c6468; font-weight: 400; }
.landing-hero > p { max-width: 530px; margin: 0; color: #53656b; font-size: 17px; line-height: 1.75; }
.landing-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.landing-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px 21px; border: 1px solid #205e64; border-radius: 8px; background: #205e64; color: white; font-size: 14px; font-weight: 700; box-shadow: 0 9px 20px #164d521f; }
.landing-cta:hover { background: #184a50; }
.landing-cta span { font-size: 20px; line-height: .7; }
.landing-hero-actions a { color: #285c60; font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-hero-note { margin-top: 33px; color: #6c7e7c; font-size: 12px; }
.landing-hero-note span { margin-right: 7px; color: #b98b51; }
.landing-showcase { position: relative; height: 470px; display: flex; align-items: center; justify-content: center; }
.landing-showcase::before { content: ''; position: absolute; width: min(100%,570px); aspect-ratio: 1; border-radius: 50%; background: #e8eee8; }
.landing-preview { position: absolute; right: 0; width: min(100%,560px); height: 370px; border: 1px solid #dae2dc; border-radius: 14px; overflow: hidden; background: #fffefa; box-shadow: 0 27px 60px #1a323023; transform: rotate(1.5deg); }
.landing-preview-top { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid #e7ece7; color: #af8752; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.landing-preview-top i { color: #a0b9b6; font-size: 8px; font-style: normal; letter-spacing: .35em; }
.landing-preview-body { display: flex; height: calc(100% - 37px); }
.landing-preview-sidebar { width: 91px; flex: none; padding: 19px 15px; background: #1b3038; }
.landing-preview-sidebar b { display: block; margin-bottom: 32px; color: #d7a766; font-size: 22px; }
.landing-preview-sidebar i { display: block; height: 7px; margin: 16px 0; border-radius: 10px; background: #43616a; }
.landing-preview-sidebar i:nth-child(3) { width: 75%; background: #668d8c; }
.landing-preview-sidebar i:nth-child(4) { width: 87%; }
.landing-preview-sidebar i:nth-child(5) { width: 66%; }
.landing-preview-page { width: 100%; padding: 46px 45px 20px; }
.landing-preview-page small { color: #af8752; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.landing-preview-page h2 { margin: 11px 0 32px; font: normal 23px Georgia, serif; color: #233b42; }
.landing-text-line { height: 6px; width: 84%; margin: 11px 0; border-radius: 5px; background: #dce5e1; }
.landing-text-line.long { width: 100%; }.landing-text-line.medium { width: 69%; }.landing-text-line.short { width: 45%; }.landing-text-space { height: 16px; }
.landing-book { position: absolute; z-index: 2; left: 2%; bottom: 20px; width: 165px; height: 245px; display: flex; flex-direction: column; justify-content: space-between; padding: 29px 18px 20px; overflow: hidden; border-radius: 4px 8px 8px 4px; background: linear-gradient(155deg,#123040 5%,#255467 60%,#102e3f); box-shadow: -6px 17px 34px #16323b55; color: #f6e8ca; text-align: center; transform: rotate(-9deg); }
.landing-book::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: #091e2b77; }
.landing-book::after { content: ''; position: absolute; left: -13%; right: -13%; bottom: 47px; height: 70px; border-top: 1px solid #d8b77c80; border-radius: 50%; transform: rotate(-12deg); }
.landing-book span, .landing-book small { position: relative; z-index: 1; }.landing-book span { font: normal 21px/1.25 Georgia,serif; letter-spacing: .1em; }.landing-book small { font: 700 8px sans-serif; letter-spacing: .18em; }
.landing-book-moon { position: absolute; right: 20px; top: 18px; width: 42px; height: 42px; border-radius: 50%; background: #d8c39a; box-shadow: 0 0 40px #d8c39a80; }.landing-book-lines { position: absolute; inset: auto -30px 38px; height: 65px; background: repeating-linear-gradient(170deg,transparent 0 16px,#d0ad7340 17px 18px); }
.landing-showcase-caption { position: absolute; bottom: -20px; right: 0; color: #7e8d8b; font: italic 13px Georgia,serif; }
.landing-features { padding: 75px clamp(24px,5vw,72px) 100px; background: #eef1eb; }
.landing-features > * { max-width: 1236px; margin-left: auto; margin-right: auto; }
.landing-section-heading { text-align: center; }.landing-section-heading h2, .landing-close h2 { margin: 14px 0; color: #243840; font: normal clamp(31px,3vw,43px) Georgia,serif; }.landing-section-heading p { margin: 0; color: #63767a; font-size: 15px; line-height: 1.6; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 45px; }
.landing-feature-grid article { padding: 31px; min-height: 224px; border: 1px solid #e2e8e1; border-radius: 11px; background: #fffefa; box-shadow: 0 10px 24px #1b31300c; }
.landing-feature-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: #eaf2ed; color: #25666a; font: 21px Georgia,serif; }.landing-feature-grid h3 { margin: 23px 0 10px; color: #253d43; font: normal 20px Georgia,serif; }.landing-feature-grid p { margin: 0; color: #64777b; font-size: 13px; line-height: 1.7; }
.landing-close { padding: 93px 24px 100px; text-align: center; }.landing-close h2 { margin: 15px 0 28px; }.landing-footer { padding: 25px clamp(24px,5vw,72px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-top: 1px solid #e1e5dd; color: #71817f; font-size: 12px; }.landing-footer span:first-child { color: #24414a; font: 700 15px Georgia,serif; }
#auth-dialog { width: min(860px,calc(100vw - 32px)); max-width: none; max-height: min(760px,calc(100vh - 32px)); padding: 0; overflow: hidden; border: 1px solid #c9d4cf; border-radius: 14px; background: #fffefa; box-shadow: 0 35px 100px #09232c69; }
#auth-dialog::backdrop { background: #102930ad; }
.auth-book { display: grid; grid-template-columns: minmax(250px,310px) minmax(0,1fr); min-height: 550px; }
.auth-book-cover { position: relative; display: flex; flex-direction: column; padding: 42px 28px 28px 39px; overflow: hidden; background: radial-gradient(circle at 80% 0%,#386777 0,#1d414b 38%,#132d37 84%); color: #f6efe0; box-shadow: inset 8px 0 12px #091d2670, inset -5px 0 12px #06192038; }
.auth-book-cover::before { content: ''; position: absolute; inset: 0 auto 0 18px; width: 1px; background: #c4975b55; box-shadow: 2px 0 9px #deb77f50; }
.auth-book-cover::after { content: ''; position: absolute; width: 230px; height: 230px; border: 1px solid #a9c2b537; border-radius: 50%; right: -110px; top: -125px; pointer-events: none; }
.auth-book-mark { color: #d6a565; font: 33px Georgia,serif; line-height: 1; }
.auth-book-cover .eyebrow { display: block; margin-top: 20px; color: #e1b477; letter-spacing: .2em; font-size: 10px; }
.auth-book-cover h2 { margin: 24px 0 10px; max-width: 220px; font: normal 31px/1.16 Georgia,serif; letter-spacing: -.025em; }
.auth-book-cover p { margin: 0 0 30px; max-width: 220px; color: #b7d0cf; font-size: 13px; line-height: 1.6; }
.auth-chapters { display: grid; gap: 7px; margin: 0 -10px 20px -13px; }
.auth-chapters button { display: grid; grid-template-columns: 31px minmax(0,1fr) 16px; align-items: center; gap: 7px; width: 100%; padding: 12px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #d5e4de; text-align: left; font-size: 13px; cursor: pointer; }
.auth-chapters button span:first-child { color: #d1a16b; font: 14px Georgia,serif; }
.auth-chapters button span:last-child { color: #b1d1c8; opacity: 0; transition: opacity .2s; }
.auth-chapters button:hover, .auth-chapters button.active { border-color: #88aba344; background: #e5f4e511; color: #fff; }
.auth-chapters button:hover span:last-child, .auth-chapters button.active span:last-child { opacity: 1; }
.auth-chapters button.active { border-left: 2px solid #d6aa70; }
.auth-cover-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid #bbd6c133; color: #89aba8; font-size: 9px; letter-spacing: .16em; }
.auth-book-page { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 37px 43px 23px; background: linear-gradient(90deg,#e7e9df 0,#fffefa 13px,#fffefa 100%); }
.auth-book-page::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(90deg,#0c252b29,transparent); pointer-events: none; }
.auth-close { position: absolute; top: 22px; right: 25px; color: #627579; z-index: 2; }
.auth-page-top { display: flex; justify-content: space-between; align-items: center; margin-right: 32px; padding-bottom: 16px; border-bottom: 1px solid #e6e9e1; color: #b38956; }
.auth-page-top .eyebrow { color: #9b7248; font-size: 10px; letter-spacing: .17em; }
.auth-page-body { flex: 1; padding-top: 31px; }
.auth-page-body h1 { margin: 0 0 10px; color: #1d323b; font: normal 36px/1.2 Georgia,serif; letter-spacing: -.025em; }
.auth-page-body > p { margin: 0 0 25px; color: #607276; font-size: 14px; line-height: 1.6; }
.auth-book-page .field { margin: 18px 0; }
.auth-book-page label { display: block; margin-bottom: 8px; color: #587078; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-book-page input { width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #cfdad6; border-radius: 7px; background: #fff; padding: 10px 12px; color: #1c3038; font-size: 14px; }
.auth-book-page input:focus { outline: 2px solid #8eb8b4; outline-offset: 1px; }
.auth-book-page .primary-button { width: 100%; min-height: 44px; margin-top: 14px; }
#auth-error { min-height: 1.5em; margin: 13px 0 0; color: #a33535; font-size: 13px; line-height: 1.5; }
#auth-error[data-state="success"] { color: #23645d; }
.auth-page-footer { display: flex; justify-content: space-between; align-items: center; min-height: 37px; padding-top: 14px; border-top: 1px solid #e6e9e1; color: #a08868; font: 12px Georgia,serif; }
.auth-page-footer button { padding: 4px 0; border: 0; background: none; color: #245f62; font: 700 12px sans-serif; cursor: pointer; }
.auth-page-footer button:hover { text-decoration: underline; }
.auth-page-footer button[hidden] + span { margin-left: auto; }
.auth-chapters button:focus-visible, .auth-page-footer button:focus-visible, .auth-close:focus-visible { outline: 2px solid #e1b477; outline-offset: 2px; }
.auth-book-page::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg,#e1e2d9 0,#fffefa 4%,#fffefa 96%,#e1e2d9 100%); transform: scaleX(0); }
.auth-book-page.auth-turn-out-forward::after { transform-origin: right center; animation: authCoverPage .16s ease-in both; will-change: transform; }
.auth-book-page.auth-turn-in-forward::after { transform-origin: left center; animation: authRevealPage .16s ease-out both; will-change: transform; }
.auth-book-page.auth-turn-out-back::after { transform-origin: left center; animation: authCoverPage .16s ease-in both; will-change: transform; }
.auth-book-page.auth-turn-in-back::after { transform-origin: right center; animation: authRevealPage .16s ease-out both; will-change: transform; }
@keyframes authCoverPage { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes authRevealPage { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 650px) { #auth-dialog { max-height: calc(100vh - 20px); overflow-y: auto; }.auth-book { grid-template-columns: 1fr; }.auth-book-cover { padding: 23px 25px 20px 34px; }.auth-book-cover .eyebrow { margin-top: 8px; }.auth-book-cover h2 { max-width: none; margin: 12px 0 4px; font-size: 23px; }.auth-book-cover p, .auth-cover-foot { display: none; }.auth-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 13px 0 0; gap: 5px; }.auth-chapters button { grid-template-columns: 25px minmax(0,1fr); padding: 8px; font-size: 11px; }.auth-chapters button span:last-child { display: none; }.auth-book-page { min-height: 390px; padding: 24px 26px 20px; }.auth-page-body { padding-top: 23px; }.auth-page-body h1 { font-size: 31px; } }
@media (prefers-reduced-motion: reduce) { .auth-book-page.auth-turn-out-forward::after, .auth-book-page.auth-turn-in-forward::after, .auth-book-page.auth-turn-out-back::after, .auth-book-page.auth-turn-in-back::after { animation: none; }.auth-chapters button span:last-child { transition: none; } }
@media (max-width: 900px) { .landing-hero-wrap { grid-template-columns: 1fr; padding-top: 45px; }.landing-hero { max-width: 650px; }.landing-showcase { width: min(100%,650px); margin: 0 auto; }.landing-feature-grid { grid-template-columns: 1fr; max-width: 580px; }.landing-feature-grid article { min-height: 0; } }
@media (max-width: 600px) { .landing-nav { padding-top: 19px; padding-bottom: 10px; }.landing-nav nav { gap: 13px; }.landing-nav nav a { display: none; }.landing-hero-wrap { padding-top: 46px; padding-bottom: 72px; }.landing-hero h1 { font-size: clamp(43px,11vw,58px); }.landing-hero > p { font-size: 15px; }.landing-showcase { height: 310px; }.landing-preview { height: 275px; }.landing-preview-sidebar { width: 65px; }.landing-preview-page { padding: 28px 23px; }.landing-preview-page h2 { font-size: 17px; margin-bottom: 22px; }.landing-book { width: 105px; height: 157px; padding: 18px 10px 12px; bottom: 4px; }.landing-book span { font-size: 14px; }.landing-book small { font-size: 6px; }.landing-book-moon { width: 27px; height: 27px; }.landing-showcase-caption { display: none; }.landing-features { padding-top: 60px; padding-bottom: 65px; }.landing-feature-grid { margin-top: 30px; }.landing-close { padding: 70px 24px; } }
.side-library-button { margin: 8px 0 15px; padding: 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #d6e1e0; text-align: left; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; }
.side-library-button:hover, .side-library-button.active { background: #2e4850; border-color: #42616a; color: #fff; }
.series-heading { margin-top: 8px; }
#series-select { width: 100%; background: var(--side-2); color: #fff; border: 1px solid #355059; border-radius: 8px; padding: 12px; outline: 0; margin-bottom: 7px; }
.book-sidebar { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.book-sidebar #import-book { margin-top: 12px; }
.book-sidebar .chapter-list { flex: 1; }
.sidebar-footer { flex-wrap: wrap; margin-top: auto; }
.sidebar-footer #settings-open, .sidebar-footer #sign-out, .sidebar-footer a.side-action { width: 100%; text-align: left; }
.sidebar-footer a.side-action { display: block; text-decoration: none; }
.landing-footer a { color: #285c60; font-weight: 700; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
.auth-page-body .auth-legal-note { margin: 15px 0 0; color: #6f8080; font-size: 12px; line-height: 1.5; }
.auth-legal-note a { color: #205e64; }
@media (max-width: 600px) { .landing-nav nav a[href="/about"] { display: inline; } }
#settings-dialog .settings-panel { padding: 25px; }
#settings-dialog .dialog-head { margin-bottom: 8px; }
#settings-dialog .dialog-head .icon-button { color: #627579; }
#settings-dialog p { margin: 0 0 20px; color: #617077; font-size: 13px; line-height: 1.5; }
.ai-account-control { display: grid; gap: 10px; }
.settings-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid #dbe3df; border-radius: 9px; cursor: pointer; }
.settings-toggle strong { display: block; font-size: 14px; color: #1e353b; }
.settings-toggle small { display: block; margin-top: 5px; color: #617077; font-size: 12px; line-height: 1.4; }
.settings-toggle input { width: 18px; height: 18px; flex: none; accent-color: #205e64; }
.series-editor { max-width: 1150px; }
.series-editor-head { display: flex; gap: 24px; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.series-editor h2 { font: normal 30px Georgia, serif; margin: 7px 0; }
.series-editor h3 { font: normal 21px Georgia, serif; margin: 0 0 7px; }
.series-editor p { color: #617077; line-height: 1.5; }
.series-actions, .series-book-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.series-book-list { display: grid; gap: 12px; margin-bottom: 22px; }
.series-book-card { display: grid; grid-template-columns: 30px 100px minmax(0, 1fr); gap: 14px 18px; align-items: start; padding: 22px; border: 1px solid #e0e2dd; border-radius: 12px; background: #fff; }
.series-cover-button { width: 100px; aspect-ratio: 2 / 3; padding: 0; border: 1px solid #d8ded8; border-radius: 5px; overflow: hidden; background: #e9edea; box-shadow: 0 6px 14px #17262d24; }
.series-cover-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.series-cover-button:hover { outline: 2px solid #6a9a94; outline-offset: 2px; }
.series-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #68807e; font: 13px Georgia, serif; text-align: center; }
.series-title-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.series-title-button:hover { color: var(--teal); text-decoration: underline; }
.series-book-info { min-width: 0; }
.series-book-card p { margin: 0 0 8px; }
.series-book-number { color: #b67535; font: normal 24px Georgia, serif; padding-top: 6px; }
.series-book-actions { grid-column: 3; justify-content: start; }
.series-subnav { display: flex; gap: 8px; margin: -5px 0 24px; border-bottom: 1px solid #dfe3dc; }
.series-subnav button { padding: 11px 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: #6b8084; font-weight: 700; cursor: pointer; }
.series-subnav button.active { border-bottom-color: #205e64; color: #205e64; }
.series-editor > .section-head { margin-bottom: 20px; }
.record-scope-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 13px; }
.record-scope-heading h3 { margin: 0; font: normal 20px Georgia, serif; }
.record-scope-heading + .record-grid { margin-top: 0; }
.chapter-character-add { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.chapter-character-add label { flex-basis: 100%; color: #547078; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chapter-character-add select { min-width: min(320px,100%); padding: 10px; border: 1px solid #d4ddd9; border-radius: 6px; background: #fff; color: #1e353b; }
.chapter-character-tile { min-width: 0; }
.chapter-character-tile .record-card { width: 100%; text-align: left; }
.chapter-character-remove { margin-top: 7px; width: 100%; }
.chapter-match-evidence { margin-top: 10px; color: #58787d; font-size: 11px; }
@media (max-width: 1100px) { .series-book-card { grid-template-columns: 30px 90px minmax(0,1fr); } .series-cover-button { width: 90px; } .series-book-actions { grid-column: 3; justify-content: start; } }
@media (max-width: 700px) { .series-editor-head { display: block; } .series-actions { margin-top: 16px; } .series-book-card { grid-template-columns: 22px 70px minmax(0,1fr); gap: 12px; padding: 15px; } .series-cover-button { width: 70px; } .series-book-actions { grid-column: 2 / 4; } }
@media (max-width: 700px) { .sidebar-footer { display: flex; } }
.reviewer-workspace{max-width:1250px}.reviewer-invite-form{display:flex;align-items:end;gap:12px;max-width:900px;margin:25px 0 10px}.reviewer-invite-form label{flex:1;display:grid;gap:7px;font-size:12px;font-weight:bold;text-transform:uppercase;color:#577076}.reviewer-invite-form input,.reviewer-invite-form select,#reviewer-link-input{padding:11px;border:1px solid #cbd5d3;border-radius:7px;background:#fff;width:100%;font:inherit}.reviewer-help{font-size:13px;color:#72858a;max-width:750px;line-height:1.5}#reviewer-link{max-width:850px;margin:20px 0}#reviewer-link strong{display:block;margin-bottom:8px}#reviewer-link button{margin-top:8px}.reviewer-columns{display:grid;grid-template-columns:minmax(250px,1fr) minmax(400px,2fr);gap:24px;margin-top:25px}.reviewer-columns>section{background:#fffefa;border:1px solid #e2e2de;border-radius:12px;padding:20px}.reviewer-columns h3{font:22px Georgia,serif;font-weight:400}.reviewer-columns h3 small{font:12px Arial,sans-serif;color:#75878a}.reviewer-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e3;padding:9px 0;gap:8px}.reviewer-row small{display:block;color:#72858a;font-size:12px;margin-top:4px}.reviewer-note{border-top:1px solid #e8e8e3;padding:16px 0}.reviewer-note blockquote{font:italic 16px Georgia,serif;border-left:3px solid #ca9c6f;padding-left:12px;margin:10px 0}.reviewer-note p{line-height:1.5}.reviewer-note button{margin-right:7px}.reviewer-note small{display:block;color:#79898d;margin-top:7px}@media(max-width:800px){.reviewer-columns{display:block}.reviewer-columns>section{margin-bottom:16px}.reviewer-invite-form{display:grid}}
