@font-face{font-family:Cormorant;src:url('/fonts/cormorant-garamond.ttf')}@font-face{font-family:DM;src:url('/fonts/dm-sans.ttf')}*{box-sizing:border-box}html{color-scheme:dark;scroll-behavior:smooth}body{margin:0;background:#101014;color:#efedf5;font:14px DM,system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}a:hover{color:#e9cb93}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #e8c58a;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Cormorant,Georgia,serif;font-weight:500}h1{font-size:62px;line-height:1.02;letter-spacing:-1.5px}h2{font-size:34px}h3{font-size:24px}p{line-height:1.75}.shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#141419;border-right:1px solid #28272e;padding:35px 24px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:14px;font-size:20px;letter-spacing:5px}.brand small{display:block;font-size:8px;letter-spacing:4px;color:#b29ca2;margin-top:6px}.brand-mark{font:50px Cormorant,Georgia;color:#e7c791;position:relative;letter-spacing:0}.brand-mark>span{font:14px DM;position:absolute;top:8px;right:-4px}.eyebrow{font-size:9px;letter-spacing:2px;color:#b2a5b9;font-weight:500}.sidebar>.eyebrow{margin:38px 0 14px;font-size:8px;letter-spacing:1.5px}.sidebar nav{display:grid;gap:9px}.sidebar nav a{padding:13px 14px;display:flex;gap:12px;color:#b4b0bf;border:1px solid transparent;border-radius:6px;font-size:13px}.sidebar nav a.active{background:#28212f;border-color:#49384e;color:#ecdaec}.sidebar nav a:hover{background:#211d27}.sidebar-bottom{margin-top:auto;padding-top:60px}.sidebar-bottom>p{font-family:Cormorant,Georgia;font-style:italic;color:#93869d;font-size:20px;line-height:1.5}.sidebar-bottom>a{font-size:11px;color:#a49aaf}.account{border-top:1px solid #302833;padding-top:22px;display:flex;gap:10px;align-items:center;margin-top:25px;margin-bottom:15px}.avatar{background:#3a2d41;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#d6b6e2;flex-shrink:0}.account strong{font-weight:500;font-size:11px;display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}.account small{font-size:8px;color:#8c8298;display:block;margin-top:4px}.page{margin-left:250px;width:calc(100% - 250px);min-width:0}.topbar{height:79px;border-bottom:1px solid #27242d;padding:0 48px;display:flex;align-items:center;justify-content:space-between}.top-label{font-size:9px;letter-spacing:2.5px;color:#a193a9}.top-right{font:italic 16px Cormorant,Georgia;color:#9e91a8}.top-right>span{color:#c7a76d;margin-left:18px}.mobile-brand,#mobile-menu{display:none}main{padding:43px 48px 65px;min-height:calc(100vh - 147px)}.breadcrumb{font-size:10px;letter-spacing:1px;color:#877e94;margin-bottom:25px}.hero{position:relative;border:1px solid #3d3049;border-radius:9px;min-height:388px;padding:39px 42px;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:30px;background:radial-gradient(ellipse at 86% 36%,#4b325640,transparent 60%),linear-gradient(110deg,#241c2c,#1c1924);overflow:hidden}.hero:before{content:'✦';position:absolute;right:308px;top:21px;font-size:30px;color:#ccb07e55}.hero .eyebrow{color:#e2c08d;margin-bottom:20px;letter-spacing:2.3px}.hero h1{max-width:570px;margin-bottom:19px}.hero h1 em{color:#e9cb93;font-weight:400}.hero-copy>p{max-width:465px;color:#b6aabd;font-size:12px;line-height:1.9}.hero-book{position:relative;justify-self:center;align-self:center;transform:rotate(7deg);width:171px;box-shadow:8px 16px 36px #0009;border-radius:2px}.hero-book img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:2px}.hero-book:after{content:'';position:absolute;inset:0;box-shadow:inset 4px 0 6px #0008;pointer-events:none}.hero-meta{font-size:10px;letter-spacing:1px;color:#cab8d0;margin-top:16px}.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;background:#e9c992;color:#27202b;border:1px solid #e9c992;border-radius:4px;padding:12px 19px;font-size:11px;font-weight:600}.button:hover{background:#f4dba9;color:#211b25}.secondary{background:transparent;color:#d9cadf;border-color:#4d4057}.secondary:hover{background:#302638;color:#fff}.text-button{background:none;border:none;color:#c7b0d1;font-size:11px;padding:10px 0}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:22px}.stats{display:flex;gap:22px;margin-top:23px;color:#a69bb2;font-size:9px}.stats b{font-weight:500;color:#ddcce6}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-top:40px;margin-bottom:21px;gap:15px}.section-heading h2{font-size:29px;margin-bottom:4px}.section-heading p{color:#978ba1;font-size:11px;margin:0}.search{padding:11px 14px;width:215px;background:#18171e;border:1px solid #38303e;border-radius:5px;color:#ddd0e4}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.book-card{border:1px solid #302936;border-radius:7px;overflow:hidden;background:#18161e;display:flex;flex-direction:column}.card-cover{height:205px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at 50% 50%,#5a3b6366,transparent 75%),#251f2f}.card-cover img{height:176px;width:117px;object-fit:cover;border-radius:2px;box-shadow:7px 10px 20px #0007}.abstract-cover{width:118px;height:176px;border:1px solid #9e7d60;background:linear-gradient(140deg,#4b324e,#191b2c);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px;text-align:center;color:#e7cca8;font:23px Cormorant,Georgia;box-shadow:7px 10px 20px #0007}.abstract-cover>span{font-size:28px;margin-bottom:18px}.badge{font-size:8px;letter-spacing:1px;padding:5px 8px;background:#16131de3;color:#d1b9de;border:1px solid #51415a;border-radius:3px}.card-cover>.badge{position:absolute;left:15px;top:15px}.card-body{padding:19px 19px 15px;flex:1;display:flex;flex-direction:column}.card-body h3{font-size:25px;line-height:1.12;margin:8px 0 7px}.card-author{font-size:9px;color:#b4a2bd;margin-bottom:12px}.card-description{font-size:10px;color:#998da3;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-bottom{border-top:1px solid #322a39;padding-top:13px;margin-top:auto;display:flex;justify-content:space-between;color:#b5a2bf;font-size:9px}.upload-card{border:1px dashed #51415d;border-radius:7px;min-height:365px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#18151e;padding:30px;color:#ab99b6}.upload-card>span{font-size:32px;color:#c7a4d6;margin-bottom:20px}.upload-card h3{color:#e4d6ec;font-size:27px;margin-bottom:9px}.upload-card p{font-size:10px;max-width:190px;margin-bottom:20px}.strip{display:flex;gap:18px;align-items:center;background:#1a1820;border:1px solid #332b3c;border-radius:6px;padding:21px 25px;margin-top:27px}.strip .symbol{font-size:25px;color:#b99ac9}.strip h3{font:15px DM;margin:0 0 4px}.strip p{color:#9989a3;font-size:10px;margin:0}.strip>a{margin-left:auto;font-size:11px;color:#dcc08d;white-space:nowrap}footer{border-top:1px solid #28232f;padding:23px 48px;display:flex;justify-content:space-between;font-size:9px;color:#8f829c}.gold{color:#dfbf87;margin:0 8px}.muted{color:#a494af}.fine{font-size:11px}.empty{text-align:center;padding:50px;border:1px dashed #4a3a55;border-radius:7px}.empty p{max-width:450px;margin:auto auto 20px;color:#a697b2}.page-title{max-width:700px;margin-bottom:30px}.page-title h1{font-size:49px;margin:12px 0}.page-title p{font-size:13px;color:#a99ab5}.panel{background:#19161f;border:1px solid #3a2e44;border-radius:7px;padding:29px;max-width:880px}.field{display:grid;gap:8px;margin-bottom:19px;font-size:12px;color:#c8b6d3}.field input:not([type=color]):not([type=range]),.field select,.field textarea{border:1px solid #4b3c57;border-radius:5px;padding:12px;background:#110f17;color:#eee4f4;width:100%}.field textarea{min-height:95px;resize:vertical}.field input[type=color]{width:100%;height:40px;background:#17131d;border:1px solid #5b486a;border-radius:4px}.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.drop{border:1px dashed #745783;padding:30px;text-align:center;background:#271d3244;border-radius:6px;display:block;margin-bottom:25px}.drop input{max-width:100%;font-size:12px}.drop strong{display:block;font-size:16px;margin-bottom:10px}.drop p{font-size:11px;color:#b7a5c4}.chapter-list{display:grid;gap:7px;list-style:none;padding:0;max-height:430px;overflow:auto}.chapter-list a,.chapter-list button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#211a29;color:#d6c7df;border:1px solid #392d43;border-radius:4px;padding:12px 15px;font-size:12px}.chapter-list a:hover,.chapter-list button:hover{background:#35233f}.chapter-list .num{color:#9c7eaf;font:18px Cormorant;min-width:20px}.chapter-list .current{border-color:#b391c0;background:#33203e}.chapter-row{display:flex;gap:6px;align-items:center}.chapter-row input{flex:1;min-width:0;background:#18121f;color:#e4d5ef;border:1px solid #4a3658;padding:10px}.chapter-row button{padding:8px;background:none;border:1px solid #5c405d;color:#d7b8d8}.preview{border-top:1px solid #46334e;margin-top:25px;padding-top:22px}.preview-content{font:18px/1.9 Cormorant,Georgia;max-height:350px;overflow:auto}.notice{border-left:2px solid #d0a76f;padding:10px 14px;background:#c9a0610b;color:#d9c9b3;font-size:11px;line-height:1.7;margin:18px 0}.detail{display:grid;grid-template-columns:200px 1fr;gap:40px}.detail>img{width:200px;border-radius:3px}.detail h1{font-size:48px;margin:15px 0}.detail .description{white-space:pre-line;font-size:13px;color:#b7a4c4}.toc-section{max-width:850px;margin-top:35px}.reader-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:25px;font-size:11px}.reader-header>a{color:#b8a2c5}.reader-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:30px}.reader-toc{position:sticky;top:25px;align-self:start}.reader-toc h3{font:10px DM;letter-spacing:2px;color:#aa94b8}.reader-toc .chapter-list{max-height:65vh}.reader-toc .chapter-list a{font-size:10px;padding:10px;line-height:1.5}.reading-area{min-width:0}.reading-paper{background:var(--reader-background,#101014);color:var(--reader-text,#efedf5);border-radius:7px;padding:36px clamp(18px,4vw,60px);max-width:calc(var(--reader-width,740px) + 100px);margin:auto;min-height:70vh}.chapter-heading{text-align:center;border-bottom:1px solid #8883;padding-bottom:30px;margin-bottom:36px}.chapter-heading .eyebrow{color:inherit;opacity:.55}.chapter-heading h1{font-size:38px;line-height:1.2;letter-spacing:0;margin:15px 0}.prose{font-family:var(--reader-font,Cormorant,Georgia,serif);font-size:var(--reader-size,20px);line-height:var(--reader-line,1.95);max-width:var(--reader-width,740px);margin:auto;overflow-wrap:anywhere}.prose p{line-height:inherit;margin:0 0 1.1em}.prose h1,.prose h2,.prose h3{font-size:1.4em}.prose .dialogue,.dialogue{color:var(--reader-dialogue,#f7d570)}.prose .thought,.thought{color:var(--reader-thought,#c5a2ed)}.prose blockquote{border-left:2px solid currentColor;margin:1em 0;padding-left:20px;opacity:.8}.prose a{text-decoration:underline}.prose pre{overflow:auto;background:#8881;padding:16px}.reading-nav{display:flex;justify-content:space-between;align-items:center;margin-top:32px;gap:8px}.reading-nav a{font-size:11px;max-width:45%;padding:12px;border:1px solid #493553;border-radius:4px}.reading-nav span{font-size:10px;color:#9f88ae}#reading-progress{position:fixed;bottom:0;left:250px;width:calc(100% - 250px);height:3px;z-index:25;background:linear-gradient(to right,#e7c78e var(--progress,0%),transparent var(--progress,0%));pointer-events:none}.icon-button{border:1px solid #51405d;background:#231a2d;border-radius:5px;width:36px;height:36px;font-size:16px;flex-shrink:0}.reader-tools{display:flex;gap:8px;align-items:center}.reader-tools button{font-size:11px;padding:9px 12px;white-space:nowrap}dialog{background:#1c1624;color:#edddf8;border:1px solid #5b4269;border-radius:9px;padding:28px;width:min(500px,calc(100% - 32px));max-height:90vh;overflow:auto}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px}.dialog-head h2{margin:10px 0 0;font-size:31px}.preset-row{display:flex;gap:8px;margin-bottom:22px}.preset-row button{border:1px solid #6a4d77;padding:10px;border-radius:5px;background:#30213c;font-size:11px;flex:1}#toast{position:fixed;bottom:25px;left:calc(50% + 125px);transform:translateX(-50%);z-index:100;max-width:calc(100% - 30px);background:#392543;border:1px solid #a887b4;color:#f7e8ff;padding:14px 22px;border-radius:7px;box-shadow:0 8px 35px #0007;font-size:12px;line-height:1.7}.profile-card{display:flex;gap:18px;align-items:center;margin-bottom:25px}.profile-card .avatar{width:65px;height:65px;font-size:26px}.profile-card h2{margin:0 0 5px}.profile-card p{margin:0;font-size:12px;color:#aa94b8}.profile-meta{display:flex;gap:15px;margin-bottom:25px;font-size:12px;color:#bca4c9}[hidden]{display:none!important}.loading{padding:50px;text-align:center;color:#b19bbd}.error{color:#f3b0bb}.mobile-toc-toggle{display:none}
@media(min-width:1550px){main{max-width:1400px;margin:auto}.hero{grid-template-columns:1fr 300px}.hero-book{width:190px}.hero h1{font-size:72px}}@media(max-width:1120px){.sidebar{width:215px;padding:30px 18px}.page{margin-left:215px;width:calc(100% - 215px)}main{padding:30px}.topbar{padding:0 30px}.hero{grid-template-columns:1fr 160px;padding:32px 28px;gap:15px}.hero-book{width:140px}h1{font-size:49px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reader-layout{grid-template-columns:155px minmax(0,1fr);gap:15px}.reading-paper{padding:30px 22px}#reading-progress{left:215px;width:calc(100% - 215px)}}@media(max-width:760px){.sidebar{display:none;width:250px;box-shadow:20px 0 50px #0009}.sidebar.open{display:flex;top:64px;padding-top:24px}.sidebar.open .brand{display:none}.sidebar.open>.eyebrow{margin-top:5px}.page{margin:0;width:100%}.topbar{height:64px;padding:0 20px}.mobile-brand,#mobile-menu{display:flex}.mobile-brand{gap:10px;align-items:center;font:24px Cormorant;color:#eac891}.mobile-brand span{font:12px DM;color:#d9c7e2}.top-label,.top-right{display:none}main{padding:24px 18px 40px}.hero{padding:28px 24px;grid-template-columns:1fr 100px;gap:8px;min-height:340px}.hero h1{font-size:39px;letter-spacing:-.7px}.hero-book{width:95px;transform:rotate(5deg)}.hero .eyebrow{font-size:8px;letter-spacing:1.3px;grid-column:1/-1}.hero-copy>p{font-size:10px}.hero .actions{margin-top:17px;gap:10px}.hero .button{font-size:10px;padding:10px 12px}.stats{gap:11px;flex-wrap:wrap;font-size:8px}.hero-meta{font-size:8px;line-height:1.8}.section-heading{margin-top:30px;align-items:start;flex-wrap:wrap}.section-heading h2{font-size:27px}.section-heading p{font-size:10px}.search{width:100%}.book-grid{gap:13px}.card-cover{height:180px}.card-cover img,.abstract-cover{height:150px;width:100px}.card-body{padding:14px}.card-body h3{font-size:23px}.card-description{font-size:9px}.upload-card{min-height:340px;padding:20px}.upload-card h3{font-size:24px}.upload-card p{font-size:9px}.strip{padding:18px;gap:12px;flex-wrap:wrap}.strip h3{font-size:12px}.strip p{font-size:9px}.strip>a{font-size:10px}.strip .symbol{display:none}footer{padding:20px 18px;font-size:8px}.page-title h1{font-size:40px}.panel{padding:20px}.fields-two{gap:12px}.detail{grid-template-columns:95px 1fr;gap:20px}.detail>img{width:95px}.detail h1{font-size:32px;margin:10px 0}.detail .description{font-size:11px;grid-column:1/-1}.reader-header{flex-wrap:wrap;gap:12px}.reader-layout{display:block}.reader-toc{display:none;position:static;margin:0 0 20px}.reader-toc.open{display:block}.mobile-toc-toggle{display:inline-flex}.reader-tools{gap:5px;flex-wrap:wrap}.reader-tools button{font-size:10px;padding:9px}.reading-paper{padding:30px 18px}.chapter-heading h1{font-size:30px}.reading-nav a{padding:9px;font-size:10px}#reading-progress{left:0;width:100%}#toast{left:50%;width:max-content;max-width:calc(100% - 30px)}.profile-meta{flex-wrap:wrap}}
.hero-book{display:block}
.brand{letter-spacing:1px}
.personal-cover{width:168px;height:245px;transform:rotate(6deg);font-size:30px;margin:10px auto 20px;line-height:1.25}
.chapter-editor{width:min(850px,calc(100% - 32px))}.chapter-editor textarea{min-height:45vh;line-height:1.7}
.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
#mobile-menu{padding:0;align-items:center;justify-content:center}
.menu-lines,.menu-lines::before,.menu-lines::after{display:block;width:16px;height:2px;background:currentColor;border-radius:2px}
.menu-lines{position:relative}.menu-lines::before,.menu-lines::after{content:'';position:absolute;left:0}.menu-lines::before{top:-5px}.menu-lines::after{top:5px}
.update-list{display:grid;gap:14px}.update-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,1fr);gap:12px;padding:16px;border:1px solid #4b3658;border-radius:6px}.update-row strong{font-size:13px}.update-row small{display:block;margin-top:6px;font-size:10px;color:#a38ab1;overflow-wrap:anywhere}.update-row select{width:100%;min-width:0;align-self:center;background:#17121e;border:1px solid #5c426d;border-radius:4px;padding:10px;color:#ead9f6;font-size:11px}.update-sample{grid-column:1/-1;min-width:0}.update-sample summary{cursor:pointer;font-size:11px;color:#c5a6d5}.update-sample .prose{margin-top:15px}.update-summary{font-size:12px;margin-top:20px;color:#e0c28d}
.avatar-button{position:relative;border:1px solid #745185;padding:0;cursor:pointer}.avatar-button:disabled{cursor:default;opacity:1}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.profile-card .profile-avatar{width:76px;height:76px;font-size:28px}.avatar-edit{position:absolute;right:-2px;bottom:-2px;width:23px;height:23px;border:2px solid #19161f;border-radius:50%;background:#e9c992;color:#302333;font:13px DM;display:grid;place-items:center}.avatar-preview{width:128px;height:128px;font-size:44px;margin:0 auto 25px;border:1px solid #80658c}.avatar-dialog{width:min(440px,calc(100% - 32px))}.avatar-dialog h2{text-align:center}.avatar-dialog .actions{justify-content:center}
@media(max-width:600px){.update-row{grid-template-columns:minmax(0,1fr)}.update-row select{max-width:100%}}
@media(max-width:760px){.personal-cover{width:95px;height:160px;font-size:20px;padding:10px}.personal-cover>span{font-size:20px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.narration-panel{margin:0 0 20px;padding:20px 24px;border:1px solid #594268;border-radius:8px;background:#211a29;color:#eadff0;font-size:13px}.narration-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.narration-heading strong{font-size:15px;font-weight:500}.narration-panel .actions{margin:0;gap:8px}.narration-panel .button{padding:10px 16px;font-size:12px}.narration-status{font-size:12px;margin:16px 0 8px;color:#cab5d7}.narration-panel progress{display:block;width:100%;height:5px;accent-color:#d9b678;border:0;border-radius:3px}.narration-settings{margin-top:18px}.narration-settings summary{cursor:pointer;color:#e3c58e;padding:4px 0}.narration-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:18px}.narration-fields .field{margin:0}.narration-fields select{width:100%;min-width:0;background:#17121e;color:#ead9f6;border:1px solid #735982;border-radius:4px;padding:10px;font:inherit}.narration-fields input[type=range]{width:100%;accent-color:#d9b678}.narration-follow{display:flex;align-items:center;gap:8px;grid-column:1/-1;color:#d6c3e0}.narration-follow input{accent-color:#d9b678}.narration-hint{margin:0;font-size:12px;line-height:1.7;color:#bfa7cf;grid-column:1/-1}.prose .narration-current{border-radius:3px;outline:1px solid var(--reader-dialogue);outline-offset:8px}.narration-panel button:focus-visible,.narration-settings summary:focus-visible{outline:2px solid #f3d5a1;outline-offset:3px}
@media(max-width:600px){.narration-panel{padding:18px 16px}.narration-fields{grid-template-columns:minmax(0,1fr)}.narration-panel .actions{width:100%}.narration-panel .actions .button{flex:1}}
.reader-feature-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.reader-feature-tools .button{font-size:11px;padding:9px 12px}.offline-notice{font-size:12px;color:#ddc38f;border:1px solid #685238;border-radius:5px;padding:12px 16px;background:#302719}.offline-book{min-width:0}.offline-book .book-card{height:calc(100% - 38px)}.offline-book>.text-button{margin-top:5px}.revision-comparison{margin:18px 0;border:1px solid #594665;border-radius:5px;padding:16px;font-size:13px}.revision-legend{font-size:11px;color:#c3adcF;margin-bottom:14px}.revision-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;max-height:45vh;overflow:auto}.revision-text ins{background:#244c3a;color:#cbf6df;text-decoration:none}.revision-text del{background:#572c39;color:#ffcad8}.search-dialog{width:min(740px,calc(100% - 32px))}.search-dialog>input{width:100%;padding:12px;background:#120f19;border:1px solid #655071;color:#eee1f4;border-radius:5px;margin-bottom:15px}.book-search-results{display:grid;gap:10px;max-height:55vh;overflow:auto;margin-bottom:20px}.book-search-result{display:block;background:#261d30;border:1px solid #493753;padding:14px;border-radius:5px}.book-search-result strong{font-size:13px}.book-search-result p{font-size:12px;color:#bda6c9;margin:8px 0 0}.novel-search-hit{background:#72552d;color:inherit;border-radius:2px}.chapter-editor-host{border:1px solid #655071;border-radius:5px;background:#15101b;overflow:hidden}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:10px;border-bottom:1px solid #4b3558;background:#24192d;position:sticky;top:-28px;z-index:5}.editor-format-button{border:1px solid #584164;border-radius:4px;background:#30213b;padding:7px 9px;font-size:11px}.editor-toolbar .text-button{padding:7px 9px}.chapter-rich-input .tiptap{padding:22px;min-height:42vh;max-height:55vh;overflow:auto;line-height:1.9;font-size:17px;overflow-wrap:anywhere}.chapter-rich-input .tiptap:focus{outline:2px solid #d6b680;outline-offset:-2px}.chapter-rich-input .tiptap p{margin-bottom:1em}.chapter-rich-input .tiptap h2{font-size:27px}.chapter-rich-input .tiptap blockquote{border-left:2px solid #ad87c3;padding-left:14px;margin-left:0}.chapter-rich-input .tiptap a{color:#e7c891;text-decoration:underline}.chapter-rich-input .tiptap pre{white-space:pre-wrap;background:#27212d;padding:12px}.chapter-editor .chapter-raw-input{width:100%;border:0;background:#15101b;color:#eee1f4;padding:20px;min-height:42vh;font:14px/1.8 monospace}.prose p.has-paragraph-comment{position:relative;padding-right:35px}.paragraph-comment-button{position:absolute;right:0;top:5px;min-width:27px;height:25px;padding:0;border:0;background:none;color:var(--reader-text);opacity:.5;z-index:2}.paragraph-comment-button:before{content:'···';display:block;border:1px solid currentColor;border-radius:7px;font:17px/16px DM;height:20px}.paragraph-comment-button:after{content:'';display:block;width:5px;height:5px;border-left:1px solid currentColor;transform:skew(-25deg);margin-left:7px;margin-top:-1px}.paragraph-comment-button:hover,.paragraph-comment-button:focus-visible{opacity:1}.comments-dialog,.notes-list-dialog,.note-dialog{width:min(640px,calc(100% - 32px))}.comment-quote{margin:0 0 18px;padding:12px 16px;border-left:2px solid #bb96cf;background:#2a1e33;font-size:12px;line-height:1.8;color:#cab2d6;max-height:170px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.comment-list,.notes-list{display:grid;gap:14px;margin:20px 0;max-height:42vh;overflow:auto}.paragraph-comment-item,.note-list-item{border-bottom:1px solid #493351;padding:0 0 14px;min-width:0}.paragraph-comment-item>strong{font-size:12px;color:#e5c98f}.comment-body,.note-list-item>p{font-size:13px;line-height:1.8;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.comment-actions{display:flex;gap:18px}.comment-form{display:grid;gap:10px;border-top:1px solid #4e385b;margin-top:20px;padding-top:20px}.comment-form textarea,.paragraph-comment-item textarea,.note-dialog textarea{width:100%;resize:vertical;padding:12px;border:1px solid #655071;border-radius:5px;color:#f1e5f5;background:#140e1b;line-height:1.8}.comment-form .button{justify-self:end}.note-dialog select{width:100%;padding:10px;color:#ecdff2;background:#211529;border:1px solid #655071;border-radius:4px;margin-top:12px}.prose.r6o-annotatable{isolation:isolate}.prose .r6o-span-highlight-layer{mix-blend-mode:normal}
@media(max-width:600px){.reader-feature-tools .button{flex:1;min-width:140px}.chapter-rich-input .tiptap{padding:16px;font-size:16px}.editor-toolbar{top:-28px}.comments-dialog,.note-dialog{padding:22px}.prose p.has-paragraph-comment{padding-right:30px}.paragraph-comment-button{min-width:24px;width:24px}}
.voxcpm-preview{border-top:1px solid #594665;margin-top:18px;padding-top:16px}.voxcpm-preview summary{cursor:pointer;color:#ead5ae;font-size:13px}.voxcpm-preview-body{display:grid;gap:12px;padding-top:14px}.voxcpm-preview-body>p{margin:0;font-size:13px;line-height:1.7}.voxcpm-preview select{width:100%;min-width:0;padding:10px;background:#17121e;color:#ead9f6;border:1px solid #735982;border-radius:4px;font:inherit}.voxcpm-preview blockquote{margin:0;padding:12px 16px;border-left:2px solid #ad87c3;font-size:14px;line-height:1.9;color:#dcc8e9}.voxcpm-preview audio{width:100%;min-width:0}.voxcpm-preview summary:focus-visible{outline:2px solid #f3d5a1;outline-offset:3px}

.r6o-annotatable .r6o-span-highlight-layer{position:absolute;top:0;left:0;width:100%;height:100%;mix-blend-mode:multiply;pointer-events:none;overflow:hidden;user-select:none;-webkit-user-select:none;z-index:1}.r6o-annotatable .r6o-span-highlight-layer.hidden{display:none}.r6o-annotatable .r6o-span-highlight-layer .r6o-annotation{position:absolute;display:block;border-style:solid;border-width:0;box-sizing:content-box}.r6o-annotatable{position:relative;-webkit-tap-highlight-color:transparent}.r6o-annotatable.no-focus-outline{outline:none}.prose::selection{background:#0080ff2e}.prose::-moz-selection{background:#0080ff2e}

.prose .r6o-span-highlight-layer{mix-blend-mode:normal}
.chapter-order-dialog{width:min(760px,calc(100% - 28px))}.chapter-sort-list{list-style:none;padding:0;max-height:56vh;overflow:auto;display:grid;gap:8px;margin:20px 0}.chapter-sort-list>li{display:grid;grid-template-columns:24px 28px minmax(0,1fr) 40px 40px;gap:9px;align-items:center;background:#241b2d;border:1px solid #594368;border-radius:5px;padding:10px}.chapter-sort-title{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.chapter-drag-handle{cursor:grab;touch-action:none;user-select:none;font-size:25px;color:#d6b680}.sort-arrow{width:40px;height:40px;border:1px solid #6b5177;border-radius:4px;background:#34223e;color:#edd6a4}.chapter-sort-list .sortable-ghost{opacity:.35}.story-world-dialog,.story-stats-dialog{width:min(1000px,calc(100% - 28px));max-height:88vh}.world-section{border-top:1px solid #4a3556;padding-top:20px;margin-top:24px}.world-section .section-heading{margin-bottom:14px}.world-section h3,.story-world-dialog h3,.story-stats-dialog h3{font-size:18px;font-weight:500}.world-record{border-bottom:1px solid #46334f;padding:12px 0}.world-record>strong{font-size:14px;color:#e1c48c}.world-record>p,.world-node-info{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;color:#d6c4e0}.world-record .actions{gap:18px;margin:7px 0}.world-record-dialog{width:min(620px,calc(100% - 28px))}.world-record-dialog input,.world-record-dialog textarea,.world-record-dialog select{width:100%;min-width:0;border:1px solid #715582;border-radius:5px;background:#17121e;color:#eadff1;padding:12px;font:14px/1.6 DM,system-ui,sans-serif}.world-record-dialog textarea{resize:vertical}.story-graph{height:360px;width:100%;border:1px solid #5b4567;border-radius:6px;background:#17121e;margin-top:12px}.statistics-chart{height:260px;position:relative;margin:16px 0}.statistics-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:20px 0}.statistics-totals>div{border:1px solid #594368;border-radius:5px;padding:18px;font-size:12px;line-height:1.8;color:#cfb9dd}.statistics-totals strong{display:block;font:32px/1.3 Cormorant,Georgia,serif;color:#edd7aa}.statistics-table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0 25px}.statistics-table th,.statistics-table td{text-align:left;padding:9px;border-bottom:1px solid #493654;overflow-wrap:anywhere}.story-stats-dialog details{margin-bottom:24px}.story-stats-dialog summary{cursor:pointer;color:#dbbf89;font-size:12px}.glossary-term{appearance:none;display:inline;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:none;color:inherit;font:inherit;line-height:inherit;padding:0;margin:0;cursor:help;letter-spacing:inherit;text-transform:none}.glossary-term:focus-visible{outline:2px solid #cdb17d;outline-offset:3px}.glossary-popover{position:absolute;top:0;left:0;z-index:2000;width:min(340px,calc(100vw - 24px));padding:18px;border:1px solid #9d79b3;border-radius:7px;background:#261a31;color:#efdfF7;box-shadow:0 12px 40px #0008;font:13px/1.8 DM,system-ui,sans-serif}.glossary-popover strong{color:#edd4a2;font-size:15px}.glossary-popover p{white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}.glossary-popover button{border:1px solid #745580;border-radius:4px;background:#3c2848;color:#efdcba;padding:5px 12px;font:inherit}.world-node-info{min-height:28px}.story-world-dialog>.fine,.story-stats-dialog>.muted{margin-bottom:18px}
@media(max-width:600px){.chapter-order-dialog,.story-world-dialog,.story-stats-dialog,.world-record-dialog{padding:20px 16px}.chapter-sort-list>li{grid-template-columns:20px 20px minmax(0,1fr) 34px 34px;gap:6px;padding:8px}.sort-arrow{width:34px;height:40px}.story-graph{height:300px}.statistics-chart{height:230px}.statistics-totals{grid-template-columns:1fr 1fr}.statistics-totals>div{padding:12px}.statistics-totals strong{font-size:28px}}
.prose img{display:block;max-width:100%;max-height:85vh;width:auto;height:auto;margin:1.4em auto;border-radius:7px;object-fit:contain}.prose figure{margin:1.4em 0}.prose figcaption{font-size:.8em;line-height:1.6;text-align:center;opacity:.8}
.prose p.has-paragraph-comment{padding-right:24px}.paragraph-comment-button{min-width:22px;width:22px;height:24px;top:3px}.paragraph-comment-button::before{width:16px;height:15px;margin:3px auto 0;border-radius:5px;font-size:13px;line-height:10px}.paragraph-comment-button::after{width:4px;height:4px;margin-left:5px}.paragraph-comment-button[hidden]{display:none}
