:root{--workspace:#f5f7f4;--ink:#303a34;--muted:#8a948e;--line:#dde2dc;--olive:#4b6555;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--serif:"Songti SC","Noto Serif CJK SC","STSong",serif;font:13px var(--sans);color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--workspace)}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button{background:transparent;border:0;padding:0}button:disabled{opacity:.3;cursor:default}button,a,input,select,textarea{outline-offset:5px}button:focus-visible,a:focus-visible{outline:1px solid var(--olive)}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:1px solid var(--olive)}svg{display:block;flex-shrink:0}button svg{width:18px;height:18px}a{color:inherit}::selection{background:#dce7dc}input,textarea{border-radius:0}.loading{display:grid;place-items:center;height:100vh;font:20px var(--serif)}
.topbar{height:81px;margin:0 43px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:relative;z-index:10}.brand{font:26px var(--serif);letter-spacing:4px}.brand-wrapper{display:flex;align-items:center}.book-menu{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:13px;align-items:center;font:16px var(--serif);letter-spacing:2px;max-width:38%}.book-menu>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-menu svg{width:12px;height:12px;color:#818e84}.top-actions{display:flex;align-items:center;gap:25px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 0;font-size:13px;letter-spacing:1px;color:#5e6e62}.text-button:hover,.book-menu:hover{color:#283e30}.outline-button{border:1px solid #9bab9d;border-radius:4px;padding:6px 18px;letter-spacing:1px;color:#536a59;background:#ffffff24}.outline-button:hover{background:#eaf0e9}.primary-button{background:var(--olive);color:white;padding:9px 23px;border-radius:3px;letter-spacing:1px}.primary-button:hover{background:#3a5544}.icon-button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:3px;color:#819082}.icon-button:hover:not(:disabled){background:#e8ede6}.mobile-menu{display:none}.workspace{height:calc(100dvh - 161px);display:grid;grid-template-columns:250px minmax(0,1fr);min-height:360px}.sidebar{padding:57px 26px 24px 49px;min-height:0;display:flex;flex-direction:column}.contents-label{font:15px var(--serif);letter-spacing:2px;margin-bottom:22px;color:#657167}.chapter-list{overflow:auto;scrollbar-width:thin;scrollbar-color:#d5dcd3 transparent;flex:0 1 auto}.chapter-item{position:relative}.chapter-row{font:15px/1.7 var(--serif);display:flex;align-items:center;gap:15px;position:relative;text-align:left;width:100%;min-height:45px;color:#7b857d;padding:11px 12px 11px 16px;letter-spacing:.5px}.chapter-row.selected{color:#344a3b}.chapter-row.selected:before{content:"";position:absolute;left:0;top:21px;width:5px;height:5px;background:#4f7058;border-radius:1px}.chapter-row:hover{color:#314a38}.chapter-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapter-number{font:12px Georgia,serif;color:#9aa297;min-width:16px}.selected .chapter-number{color:#627b65}.cover-row{padding-left:16px;margin-bottom:0}.chapter-more{position:absolute;right:0;top:13px;opacity:0;background:var(--workspace);width:25px;height:27px}.chapter-item:hover .chapter-more,.chapter-more:focus-visible{opacity:1}.chapter-item:hover .chapter-row{padding-right:26px}.add-chapter{margin:14px 0 0 9px;flex-shrink:0}.add-chapter svg{width:17px;height:17px}.desk{min-width:0;min-height:0}.page-stage{height:100%;display:flex;justify-content:center;align-items:flex-start;padding:37px 96px 70px 7px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d8e0d5 transparent}.page-sizer{position:relative;flex-shrink:0;margin-block:auto}.page-spread{position:absolute;top:0;left:0;display:flex;transform-origin:top left;box-shadow:0 18px 27px -19px #263f3057,0 5px 10px #243b2c0c}.book-page{width:559.37px;height:793.7px;position:relative;flex-shrink:0;background:var(--paper,#fff);color:#303a34;font-family:var(--serif);overflow:hidden}.page-spread:before,.page-spread:after{content:"";position:absolute;bottom:-3px;left:2px;right:2px;height:3px;border-bottom:1px solid #dfe4dd;background:#fff;z-index:-1}.page-spread:after{bottom:-5px;left:5px;right:5px;background:#f8faf7}.page-spread.is-spread .book-page:first-child:after,.page-spread.is-spread .book-page:nth-child(2):after{content:"";position:absolute;inset:0 0 0 auto;width:25px;background:linear-gradient(90deg,transparent,#26413005 60%,#2641300a);pointer-events:none}.page-spread.is-spread .book-page:nth-child(2):after{inset:0 auto 0 0;width:24px;background:linear-gradient(90deg,#2641300c,transparent)}.page-spread.is-spread .book-page:nth-child(2){border-left:1px solid #e9ede7}.running-head{position:absolute;top:45px;left:64px;right:64px;text-align:left;font:11px/1.5 var(--serif);letter-spacing:6px;color:#8b938b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-heading{position:absolute;top:193px;left:calc(var(--book-margin) + 20px);right:calc(var(--book-margin) - 20px)}.chapter-heading>span{font:15px var(--serif);color:#707e70}.chapter-heading h2{margin:27px 0 0;font:var(--chapter-title-size,32px)/1.5 var(--serif);font-weight:400;letter-spacing:3px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.page-body{position:absolute;top:351px;bottom:94px;left:calc(var(--book-margin) + 20px);right:calc(var(--book-margin) - 20px);font-size:var(--book-size);line-height:var(--book-leading);letter-spacing:.1px;line-break:strict;overflow-wrap:anywhere;white-space:pre-wrap}.page-body.continuation{top:118px}.page-body p{margin:0 0 .8em;text-indent:0;white-space:pre-wrap;min-height:1em}.page-body p:last-child{margin-bottom:0}.folio{position:absolute;bottom:38px;left:0;right:0;text-align:center;font:12px Georgia,serif;color:#8b958c}.fragment-page .chapter-heading{top:184px}.fragment-page .page-body.opening{top:338px;bottom:130px}.fragment-page .page-body p{line-height:2.25}.letter-page .chapter-heading{top:135px}.letter-page .page-body.opening{top:293px}.letter-page .page-body p{margin-bottom:1em}.book-page [contenteditable]{outline:none;caret-color:#668467;cursor:text;min-width:1ch}.book-page [contenteditable]:empty:before{content:attr(data-placeholder);color:#bec7bc;pointer-events:none}.book-page .page-body:has(p:only-child:empty):before{content:attr(data-placeholder);position:absolute;color:#b7c2b4;pointer-events:none}.page-title:focus,.cover-title:focus{overflow:visible;-webkit-line-clamp:unset}.cover-rule{position:absolute;left:50%;top:130px;height:32px;width:1px;background:#9daa9a}.cover-content{position:absolute;top:237px;left:68px;right:68px;text-align:center}.cover-title{font:42px/1.6 var(--serif);letter-spacing:5px;overflow-wrap:anywhere}.cover-subtitle{margin-top:42px;font:14px/1.9 var(--serif);letter-spacing:1px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:28px}.cover-author{margin-top:83px;font:15px/1.8 var(--serif);letter-spacing:3px;overflow-wrap:anywhere}.author-name{display:inline-block;min-width:2em}.author-suffix{color:#8a9486}.cover-imprint{position:absolute;bottom:83px;left:0;right:0;text-align:center;font:12px var(--serif);letter-spacing:4px;color:#97a18f}.book-illustration{position:absolute;inset:35px 40px 110px;margin:0;display:flex;flex-direction:column;gap:14px}.book-illustration img{width:100%;height:100%;min-height:0;flex:1;object-fit:contain;mix-blend-mode:multiply;transform:scale(1.08)}.book-illustration figcaption{text-align:center;font:12px/1.8 var(--serif);letter-spacing:2px;color:#879380;min-height:22px;overflow-wrap:anywhere}.book-illustration.full-bleed{inset:0 0 75px}.book-illustration.full-bleed img{object-fit:cover;mix-blend-mode:normal;transform:none}.book-illustration.full-bleed figcaption{display:none}.image-edit{position:absolute;top:23px;right:23px;display:flex;align-items:center;gap:8px;padding:9px 13px;font:12px var(--sans);color:#62775d;background:#f2f5efeb;border-radius:3px;opacity:0}.illustration-page:hover .image-edit,.image-edit:focus-visible{opacity:1}.image-edit svg{width:15px;height:15px}.typebar{position:absolute;left:25%;transform:translateX(-50%);top:calc(100% + 24px);height:30px;padding:3px 16px;border:1px solid #cbd6c8;border-radius:10px;display:flex;align-items:center;gap:13px;color:#8c9989;font-size:11px;white-space:nowrap}.typebar select{appearance:none;border:0;background:transparent;color:#71846e;padding:4px 2px}.typebar button{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:11px}.typebar svg{width:10px;height:10px}.typebar-dot{color:#b3bfb0}.desk-footer{height:80px;position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 46px;font-size:11px;color:#8a9689}.save-status{display:inline-flex;align-items:center;gap:7px;max-width:35%;line-height:1.6}.save-status svg{width:14px;height:14px}.save-status[data-state=warning],.save-status[data-state=error]{color:#9d7050}.save-status[data-state=saving]{opacity:.7}.page-navigation{position:absolute;left:calc(50% + 108px);transform:translateX(-50%);display:flex;align-items:center;gap:20px;font:12px Georgia,var(--serif);letter-spacing:.5px}.page-navigation svg{width:13px;height:13px}.immersion-button{font-size:11px}.immersion-button svg{width:15px;height:15px}.pagination-measure{position:fixed;left:-10000px;top:0;visibility:hidden;pointer-events:none}.immersive .sidebar{display:none}.immersive .workspace{grid-template-columns:1fr}.immersive .topbar{visibility:hidden}.immersive .page-navigation{left:50%}.immersive .typebar{opacity:0}.immersive .page-stage{padding-left:50px;padding-right:50px}.immersive .save-status{opacity:0}
dialog{background:#f9f8f3;color:var(--ink);border:1px solid #d6d5cb;border-radius:4px;box-shadow:0 18px 100px #23251c26;padding:0;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#25281e30;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 28px 15px}.dialog-heading h2{font:25px var(--serif);margin:0}.dialog-content{padding:4px 29px 29px}.dialog-description{font:13px/1.9 var(--sans);color:#858779;margin:0 0 20px}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:23px 0 12px}.field-label output{font:12px Georgia,serif;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--olive)}.setting-options{display:flex;gap:8px}.setting-options button{flex:1;border:1px solid #d8d8cd;padding:10px;border-radius:2px}.setting-options button[aria-pressed=true]{border-color:var(--olive);background:#e9ebdf}.dialog-note{font:12px/1.8 var(--serif);color:#8a8c7e;margin:24px 0 0}.dialog-rule{border-top:1px solid var(--line);margin-top:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.form-field{width:100%;padding:11px 12px;border:1px solid #d7d8cc;background:#fffef9;font-size:13px;line-height:1.6;border-radius:2px}.upload-zone{border:1px dashed #bcbfac;background:#f0f0e7;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:22px;gap:10px;cursor:pointer;min-height:129px;font-size:13px}.upload-zone svg{width:25px;height:25px;stroke-width:1}.upload-zone small{font-size:10px;color:#959886}.upload-zone img{height:120px;max-width:100%;object-fit:contain}.upload-input{position:absolute;width:1px;height:1px;opacity:0}.upload-zone:focus-within{outline:2px solid var(--olive)}.sample-image-button{font-size:11px;color:#818672;margin:11px 0 0;text-decoration:underline;text-underline-offset:4px}.export-row{display:flex;gap:16px;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:20px 3px;align-items:center}.export-row:hover{background:#eeeee5}.export-row svg{width:23px;height:23px;stroke-width:1.2;color:#7f856d}.export-row strong{display:block;font:17px/1.8 var(--serif)}.export-row small{font:11px/1.8 var(--sans);color:#8d9081}.settings-links{display:flex;flex-direction:column}.settings-links button,.settings-links a{font-size:13px;text-align:left;text-decoration:none;padding:13px 0;border-bottom:1px solid var(--line)}.settings-links a{color:#858879}.form-error{font-size:12px;color:#9a664a;margin:12px 0}.danger{color:#9a664a}.chapter-actions{display:flex;gap:10px;margin-top:18px}.chapter-actions button{border:1px solid var(--line);padding:8px 14px;font-size:12px}.quiet-caption{font-size:11px;color:#8d9081}.mobile-scrim{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,16px);opacity:0;pointer-events:none;background:#393d33;color:#fafaf3;padding:12px 23px;font-size:12px;border-radius:3px;z-index:100;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center;line-height:1.8}#toast.visible{opacity:1;transform:translate(-50%,0)}#print-root{display:none}
dialog{background:#fafcf9;border-color:#dce3d8}.form-field{background:#fff}.setting-options button[aria-pressed=true]{background:#edf2e9}.dialog-description,.dialog-note{color:#7e8c7b}.upload-zone{background:#f1f5ed}#toast button{color:white;text-decoration:underline;margin-left:18px;pointer-events:auto}.chapter-actions{flex-wrap:wrap}
.view-controls{display:flex;align-items:center;gap:22px}.page-layout-select{font:11px var(--sans);color:#73836f;background:transparent;border:1px solid #cbd6c8;border-radius:4px;padding:6px 8px;min-width:65px}.page-layout-select:hover{border-color:#91a48c}.single-page .typebar{left:50%}
.account-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:42px 24px 28px;overflow:auto}.account-brand{font:29px var(--serif);letter-spacing:5px;align-self:flex-start;margin-left:22px}.account-sheet{width:min(420px,100%);margin:auto;padding:50px 0 32px}.account-eyebrow{font:12px var(--serif);letter-spacing:2px;color:var(--muted);margin-bottom:22px}.account-sheet h1{font:32px/1.6 var(--serif);font-weight:400;margin:0 0 15px}.account-sheet .form-field{padding:13px 12px;background:#ffffff85;border-color:#cfd8ce}.account-submit{width:100%;margin-top:12px;padding:13px}.account-links{display:flex;justify-content:space-between;margin-top:24px}.account-links button{font-size:12px}.account-footnote{font:12px/1.8 var(--serif);letter-spacing:2px;color:var(--muted);margin:35px 0 0}.account-error{font-size:12px;line-height:1.8;color:#9d7050;min-height:20px}.recovery-code{font:15px/2 monospace;overflow-wrap:anywhere;background:#eaf0e7;padding:20px}.save-status[role=button]{cursor:pointer}.save-status[role=button]:focus-visible{outline:1px solid var(--olive);outline-offset:5px}@media(max-width:560px){.account-brand{margin-left:0}.account-sheet h1{font-size:27px}}
@media(max-width:1200px) and (min-width:901px){.workspace{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:31px;padding-right:12px}.page-stage{padding-left:20px;padding-right:35px}.topbar{margin:0 32px}.desk-footer{margin:0 32px}.page-navigation{left:calc(50% + 85px)}}
@media(max-width:900px){.topbar{height:65px;margin:0 21px}.brand{font-size:22px;letter-spacing:2px}.mobile-menu{display:inline-flex;margin-left:-8px;margin-right:7px}.top-actions{gap:16px}.book-menu{max-width:34%;font-size:14px;gap:7px}.workspace{height:calc(100dvh - 135px);grid-template-columns:1fr;min-height:330px}.sidebar{display:none}.page-stage{padding:22px 26px 54px}.desk-footer{height:70px;margin:0 24px}.page-navigation{left:50%;gap:7px}.save-status{max-width:25%;font-size:10px}.save-status svg{display:none}.immersion-button{font-size:10px;gap:5px}.sidebar-open .sidebar{display:flex;position:fixed;z-index:30;top:65px;bottom:0;left:0;width:235px;background:#f5f7f4;padding:38px 28px;box-shadow:10px 0 40px #243b2314}.sidebar-open .mobile-scrim{display:block;position:fixed;inset:65px 0 0 235px;background:#334e3829;z-index:29}.typebar{top:calc(100% + 20px);left:50%}.image-edit{opacity:1}.immersive .page-stage{padding:22px 26px 54px}}
@media(max-width:560px){.topbar{margin:0 17px;height:63px}.brand{font-size:21px}.top-actions{gap:15px}.top-actions .text-button span{display:none}.top-actions .text-button svg{width:17px;height:17px}.outline-button{font-size:11px;padding:5px 10px}.book-menu{position:static;transform:none;margin-left:auto;margin-right:auto;max-width:27%;font-size:13px;letter-spacing:0}.book-menu svg{width:9px;height:9px}.mobile-menu{margin-right:4px;width:26px}.workspace{height:calc(100dvh - 133px)}.page-stage{padding-left:16px;padding-right:16px}.sidebar-open .sidebar{top:63px}.sidebar-open .mobile-scrim{top:63px}.desk-footer{margin:0 17px}.page-navigation{gap:1px}.save-status{font-size:9px;max-width:24%}.immersion-button{letter-spacing:0;font-size:10px}.immersion-button svg{width:12px;height:12px}.immersive .page-stage{padding-left:16px;padding-right:16px}.image-edit{font-size:13px}.typebar{font-size:10px;gap:12px}}
@media(max-width:900px){.view-controls{gap:10px}.page-layout-select{font-size:10px;min-width:58px;padding:5px 5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@page{size:A5 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}#app,#toast,dialog,.pagination-measure{display:none!important}#print-root{display:block}.book-page{box-shadow:none!important;width:148mm;height:210mm;break-after:page;page-break-after:always;margin:0;overflow:hidden}.book-page:last-child{break-after:auto;page-break-after:auto}}
.shelf-intro{display:flex;justify-content:space-between;gap:12px}.shelf-intro>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.shelf-list{border-top:1px solid var(--line)}.shelf-row{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:14px;min-height:91px}.shelf-book{display:flex;align-items:center;gap:19px;text-align:left;flex:1;min-width:0;padding:19px 0}.shelf-number{font:12px Georgia,serif;color:#98a38f;min-width:19px}.shelf-copy{display:block;min-width:0}.shelf-copy strong{display:block;font:22px/1.5 var(--serif);overflow-wrap:anywhere;font-weight:400}.shelf-copy small{display:block;margin-top:5px;color:#8b9785;font-size:11px;line-height:1.8}.shelf-row.current .shelf-copy strong{color:#4b6555}.shelf-row.current .shelf-number{color:#536e52}.shelf-book:hover strong{color:#5e7c58}.shelf-archive{color:#93a08c;font-size:11px;padding:9px 0 9px 9px;flex-shrink:0}.shelf-archive:hover:not(:disabled){color:#785f4a}.shelf-limit{font:12px/1.9 var(--sans);color:#8b9785;margin:20px 0 12px}.shelf-actions{display:flex;gap:28px}.shelf-actions .text-button{font-size:12px;letter-spacing:0}.shelf-actions svg{width:14px;height:14px}.shelf-footer{margin-top:27px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px;color:#91a08a}.shelf-footer .text-button,.shelf-footer a{font-size:11px;letter-spacing:0;text-decoration:none}.shelf-footer a{white-space:nowrap}
