@charset "UTF-8";
:root{color-scheme:light;--paper:#f6f5f0;--white:#fffefa;--ink:#243b33;--green:#214e3e;--green-dark:#153d2f;--green-light:#e8eee7;--muted:#7a8178;--line:#e3e5dc;--gold:#b6a475;--danger:#a94c3c;--serif:"Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #599274}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,h4,p{margin:0}input,textarea,select{display:block;width:100%;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--white);padding:11px 12px;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{outline:none;border-color:#779982;box-shadow:0 0 0 3px #46674e0d}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#a0a49a}label{display:block;font-size:13px;font-weight:550;line-height:1.5}label>input,label>textarea,label>select{margin-top:8px;font-weight:400}label+label{margin-top:19px}.btn{border:1px solid var(--line);border-radius:8px;background:var(--white);display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:10px 17px;font-size:13px;line-height:1.4;font-weight:550;transition:background .15s,border-color .15s,transform .15s;white-space:nowrap}.btn:hover:not(:disabled){background:#f0f1e9;border-color:#ccd2c5}.btn.primary{background:var(--green);color:#fffdf4;border-color:var(--green);box-shadow:0 3px 8px #254b2f0b}.btn.primary:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}.btn.quiet{background:transparent;border-color:transparent;box-shadow:none}.btn.quiet:hover:not(:disabled){background:#e9eee5;border-color:transparent}.btn.small{min-height:33px;padding:7px 11px;font-size:12px}.wide{width:100%}.plus{font-size:23px;font-weight:300;line-height:15px}.icon-button{border:0;background:transparent;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;font-size:21px;flex-shrink:0}.icon-button:hover{background:#e9eee4}.text-button{font-size:12px;padding:4px 0;background:transparent;border:0;color:#65806d}.text-button:hover{color:var(--green-dark)}.muted{color:var(--muted);font-size:14px;line-height:1.9}.subtle{color:var(--muted);font-size:11px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:600;color:#798a75;line-height:1.5}.count{display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:22px;background:#e9ece4;border-radius:5px;padding:0 6px;font:11px/1 sans-serif;color:#7a8572;margin-left:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.boot{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px}.boot p{font-size:13px;color:var(--muted)}.brand{display:flex;align-items:center;gap:11px;font-family:var(--serif);font-weight:bold;font-size:22px;letter-spacing:3px}.brand-mark{display:flex;align-items:center;justify-content:center;width:37px;height:41px;background:var(--green);color:#fff8e6;border-radius:9px 9px 9px 2px;font:23px var(--serif);letter-spacing:0;box-shadow:inset 0 0 0 1px #ffffff13}.brand small{display:block;font:7px/1.6 sans-serif;letter-spacing:1.5px;color:#859080;margin-top:1px}.brand-button{background:transparent;border:0;padding:0;text-align:left}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 4.2%;gap:60px;background:var(--white)}.topbar .brand{font-size:21px}.top-nav{display:flex;align-self:stretch;gap:32px}.nav-link{border:0;background:transparent;font-size:13px;color:#7c8778;position:relative;padding:0 1px}.nav-link.active{color:var(--green);font-weight:600}.nav-link.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--green)}.account-wrap{margin-left:auto;position:relative}.avatar{height:34px;width:34px;border-radius:50%;border:1px solid #d5ddcd;background:#e8ede1;color:#637659;font-size:12px}.account-menu{position:absolute;right:0;top:46px;background:var(--white);padding:8px;min-width:200px;border:1px solid var(--line);box-shadow:0 14px 38px #233c3015;border-radius:10px;z-index:20}.account-menu span{display:block;color:var(--muted);padding:9px;font-size:12px;max-width:280px;overflow:hidden;text-overflow:ellipsis}.account-menu button{display:block;width:100%;text-align:left;padding:10px;border:0;border-radius:5px;background:transparent;font-size:13px}.account-menu button:hover{background:var(--green-light)}
.library-view{max-width:1320px;margin:0 auto;padding:64px 54px 0;min-height:calc(100vh - 83px);display:flex;flex-direction:column}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:55px}.library-heading h1{font-family:var(--serif);font-size:34px;font-weight:600;line-height:1.5;margin:15px 0 10px;letter-spacing:1.2px}.title-dot{color:#87986a}.library-heading .btn{padding:13px 22px}.library-section-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:25px}.library-section-head>div{display:flex;align-items:center}.library-section-head h2{font-size:14px;font-weight:600;letter-spacing:1px}.novel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.novel-card{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:transform .2s,box-shadow .2s;position:relative}.novel-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px #20352408}.novel-card-main{display:block;width:100%;text-align:left;border:0;background:transparent;padding:26px 24px 22px}.novel-card-cover{height:108px;display:flex;align-items:center;margin-bottom:22px;background:#e9eddf;border:1px solid #e0e5d6;border-radius:4px;position:relative;overflow:hidden}.novel-card-cover:before,.novel-card-cover:after{content:"";width:180px;height:180px;position:absolute;border:1px solid #cad4bd;border-radius:50%;right:-18px;bottom:-134px;transform:rotate(-25deg)}.novel-card-cover:after{right:-60px;bottom:-84px}.novel-card-cover span{font:25px var(--serif);letter-spacing:6px;margin-left:23px;color:#7b8f6b;writing-mode:vertical-rl;max-height:82px;overflow:hidden}.novel-card:nth-child(3n+2) .novel-card-cover{background:#efeadf;border-color:#e6decc}.novel-card:nth-child(3n+2) .novel-card-cover span{color:#9b8769}.novel-card:nth-child(3n) .novel-card-cover{background:#e3eae9;border-color:#d9e2df}.novel-card h3{font-family:var(--serif);font-size:22px;font-weight:600;line-height:1.4;margin:9px 0 12px;overflow-wrap:anywhere}.novel-genre{font-size:10px;color:#7a886f;background:#f0f3e9;border-radius:3px;padding:4px 7px}.novel-card p{font-size:12px;color:var(--muted);line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:45px}.novel-card-footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 24px;padding:14px 0}.novel-card-footer .text-button{font-size:11px}.library-empty{text-align:center;background:#fffefa80;border:1px dashed #d8dfcf;border-radius:12px;min-height:385px;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:32px;margin-bottom:40px}.empty-illustration{width:72px;height:82px;border:1px solid #c8d1b9;background:#edf0e4;transform:rotate(-7deg);margin-bottom:27px;position:relative;border-radius:3px 8px 8px 3px;box-shadow:3px 3px 0 #fffefa,4px 4px 0 #d6ddca}.empty-illustration:before{content:"";position:absolute;top:0;bottom:0;left:8px;border-left:1px solid #ccd6bd}.empty-illustration span{font:28px var(--serif);color:#8d9e77;position:relative;top:16px}.empty-illustration i{display:block;border-top:1px solid #bcc9a7;width:21px;position:absolute;left:27px;bottom:17px}.library-empty h2{font-family:var(--serif);font-weight:500;letter-spacing:1px;font-size:24px}.library-empty p{font-size:12px;line-height:1.9;color:var(--muted);margin:13px 0 24px}.library-footer{display:flex;justify-content:space-between;padding:30px 0 23px;margin-top:auto;color:#a0a797;font-size:10px;letter-spacing:.5px;gap:20px}.library-footer span:last-child{font-size:8px;letter-spacing:1.7px}
.login-view{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-story{padding:44px 10%;background:#e9eee1;position:relative;overflow:hidden;display:flex;flex-direction:column}.login-story:after{content:"";width:640px;height:640px;border:1px solid #d8e0cb;border-radius:50%;position:absolute;bottom:-420px;left:-100px;pointer-events:none}.login-hero{margin:auto 0;padding:60px 0 32px;position:relative}.login-hero>.eyebrow{font-size:10px;letter-spacing:3px}.login-hero h1{font-family:var(--serif);font-size:clamp(38px,4.1vw,60px);font-weight:500;line-height:1.5;letter-spacing:6px;margin:28px 0 20px}.login-hero p{font-size:13px;line-height:2.2;color:#7a8770;letter-spacing:.5px}.login-foot{font-size:10px;letter-spacing:1px;color:#94a084}.book-art{position:relative;width:180px;height:220px;margin:42px 0 18px auto;transform:rotate(-12deg)}.book-cover{position:absolute;inset:0;background:#365742;border:1px solid #49684b;border-radius:2px 5px 5px 2px;box-shadow:9px 10px 0 #d7dec9,10px 11px 0 #aab79a,19px 20px 28px #40563318;color:#e9e8c8}.book-cover:after{position:absolute;content:"";inset:10px;border:1px solid #85936a66}.book-cover>span{writing-mode:vertical-rl;font:26px var(--serif);letter-spacing:8px;position:absolute;right:30px;top:27px}.book-cover>small{position:absolute;left:22px;bottom:22px;max-width:90px;font-size:7px;letter-spacing:2px;line-height:1.9}.book-spine{position:absolute;left:-8px;top:0;bottom:0;width:13px;background:#203d2b;border-radius:2px}.book-cover>i{position:absolute;bottom:41px;left:29px;width:53px;height:53px;border:1px solid #c1c8a35c;border-radius:50%}.login-form-wrap{display:flex;align-items:center;justify-content:center;background:var(--white);padding:48px}.login-form{max-width:360px;width:100%}.login-form h2{font-family:var(--serif);font-size:30px;letter-spacing:1px;font-weight:600;margin:18px 0 12px}.login-form>.muted{margin-bottom:40px;font-size:12px}.login-form input{padding:13px}.login-form .primary{margin-top:20px;justify-content:space-between;padding:14px 18px}.login-form label{font-size:12px}.login-note{margin-top:26px;text-align:center;font-size:10px;letter-spacing:1px;color:#a3a99a}.form-error{color:var(--danger);font-size:12px;line-height:1.8;margin-top:12px}.form-error:empty{display:none}
.editor-view{height:calc(100vh - 83px);display:flex;flex-direction:column}.editor-toolbar{height:59px;min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:0 25px;background:var(--white)}.editor-breadcrumb{display:flex;align-items:center;gap:11px;font-size:12px;min-width:0}.editor-breadcrumb>span:not(.breadcrumb-sep){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.editor-breadcrumb .muted{font-size:11px}.breadcrumb-sep{color:#c1c6b9}.editor-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.save-state{font-size:10px;color:#889580;margin-right:15px;white-space:nowrap}.save-state:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#90a381;margin-right:6px;vertical-align:middle}.save-state.error{color:var(--danger)}.save-state.error:before{background:var(--danger)}.save-state.saving:before{background:#bea36b}.writing-layout{display:grid;grid-template-columns:220px minmax(300px,1fr) 320px;flex:1;min-height:0}.chapters-panel{border-right:1px solid var(--line);background:#f2f3eb;display:flex;flex-direction:column;min-height:0;padding:16px 13px}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 16px}.panel-heading h2{font-size:12px;font-weight:600}.panel-heading .count{font-size:9px;min-width:18px;height:18px;margin-left:5px}.chapter-list{overflow:auto;flex:1;margin:0 -2px;padding:0 2px;scrollbar-width:thin}.chapter-item{display:flex;align-items:flex-start;gap:10px;text-align:left;line-height:1.6;width:100%;border:1px solid transparent;border-radius:7px;padding:12px 10px;background:transparent;margin:0 0 5px}.chapter-item:hover{background:#e9ede1}.chapter-item.active{background:#e4ebdc;border-color:#dce5d1}.chapter-index{font:10px/20px Georgia,serif;color:#96a089;min-width:17px}.chapter-item.active .chapter-index{color:#537248}.chapter-item strong{display:block;font-size:12px;font-weight:500;word-break:break-word}.chapter-item small{display:block;font-size:9px;color:#94a087;margin-top:5px}.chapter-panel-bottom{padding-top:14px;border-top:1px solid var(--line);text-align:center}.chapter-panel-bottom .btn{font-size:11px}.chapter-panel-bottom>span{display:block;margin-top:14px;font-size:9px}.manuscript-panel{background:var(--white);overflow:auto;min-width:0}.manuscript{padding:39px clamp(25px,4.2vw,74px) 20px;min-height:100%;display:flex;flex-direction:column}.manuscript-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.manuscript-meta .eyebrow{font-size:8px;letter-spacing:1.8px}.manuscript-meta .subtle{font-size:10px}.chapter-title{font:600 26px/1.5 var(--serif);padding:0;border:0;border-radius:0;background:transparent;margin-bottom:20px}.chapter-title:focus{box-shadow:none}.chapter-outline{background:#f5f6f0;border:1px solid #e9ebdf;border-radius:6px;font-size:11px;margin-bottom:24px}.chapter-outline summary{padding:11px 12px;color:#7d8c70;cursor:pointer}.chapter-outline summary span{font-size:10px;margin-left:9px;color:#a4ac9a}.chapter-outline textarea{border:0;background:transparent;font-size:12px;padding:0 13px 13px}.chapter-outline textarea:focus{box-shadow:none}.chapter-content{border:0;background:transparent;padding:0;font:16px/2.15 var(--serif);letter-spacing:.45px;min-height:390px;resize:vertical;flex:1;border-radius:0}.chapter-content:focus{box-shadow:none}.chapter-content::placeholder{font-size:14px;color:#b0b5a8;line-height:2.2}.manuscript-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:25px;padding-top:16px;gap:10px;font-size:9px;color:#abb29f}.manuscript-footer .text-button{font-size:9px}.chapter-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:100%;padding:50px;text-align:center}.chapter-empty h2{font:25px var(--serif)}.chapter-empty .muted{font-size:12px}.assistant-panel{background:#f9f9f4;border-left:1px solid var(--line);overflow:auto;scrollbar-width:thin}.assistant-tabs{display:flex;height:58px;border-bottom:1px solid var(--line);padding:0 18px;gap:22px}.assistant-tabs button{background:none;border:0;padding:0;font-size:12px;color:#8e9884;position:relative;white-space:nowrap}.assistant-tabs button.active{color:var(--green);font-weight:600}.assistant-tabs button.active:after{content:"";height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--green)}.assistant-tabs span{font-size:9px;color:#8d9c7d;margin-left:2px}.ai-panel,.memory-panel{padding:22px 21px}.assistant-intro{padding:0 0 24px}.assistant-symbol{color:#778f60;font-size:29px;display:block;margin-bottom:12px;line-height:1}.assistant-intro h2{font:18px/1.6 var(--serif);margin-bottom:7px}.assistant-intro p{font-size:10px;color:#939d88;line-height:1.8}.segmented{display:flex;border:1px solid #e1e5d8;background:#ecefe5;border-radius:6px;padding:3px;gap:3px}.segmented button{flex:1;background:transparent;border:0;border-radius:4px;padding:8px 5px;font-size:11px;color:#8d9981}.segmented button.active{background:var(--white);color:var(--green);box-shadow:0 1px 4px #253b2310}.selection-info{font-size:10px;color:#8a987d;margin:14px 0 24px;line-height:1.8}.instruction-label{font-size:11px;color:#5d7153;margin-bottom:9px}.ai-instruction{font-size:12px;line-height:1.9;background:var(--white);padding:12px;min-height:130px}.ai-instruction::placeholder{font-size:11px;color:#a0aa93}.prompt-chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 21px}.prompt-chips button{border:1px solid #e0e6d6;border-radius:4px;padding:5px 8px;background:transparent;color:#859576;font-size:9px}.prompt-chips button:hover{background:#e9efdf}.ai-panel>.primary{font-size:12px;min-height:41px}.assistant-note{text-align:center;font-size:9px;line-height:1.9;color:#a0a994;margin:13px 0 28px}.task-section{border-top:1px solid var(--line);padding-top:19px}.mini-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.mini-heading h3{font-size:11px;font-weight:500;color:#758768}.mini-heading .text-button{font-size:10px}.job-list>.subtle{font-size:10px;line-height:1.9}.job-card{border:1px solid var(--line);background:var(--white);border-radius:7px;padding:12px;margin-bottom:9px}.job-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.job-status{font-size:9px;color:#919c85}.job-status.completed{color:#5e8454}.job-status.failed{color:var(--danger)}.job-card>p{font-size:10px;color:#97a08d;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.job-card-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:9px}.job-card-actions .text-button{font-size:10px}.memory-intro h2{font:18px var(--serif);margin-bottom:10px}.memory-intro p{color:#929e87;font-size:11px;line-height:1.8}.memory-actions{display:flex;gap:5px;margin:20px 0 15px;justify-content:space-between}.memory-actions .btn{padding:7px;font-size:10px}.memory-panel>select{font-size:11px;padding:8px;margin-bottom:17px}.memory-card{border:1px solid var(--line);background:var(--white);border-radius:7px;padding:14px;margin-bottom:11px}.memory-card.candidate{border-color:#d5dfc4}.memory-card.stale{border-color:#e4d7b6;background:#fffdf6}.memory-card-meta{display:flex;justify-content:space-between;color:#849372;font-size:9px;margin-bottom:9px;gap:10px}.memory-card h3{font-size:12px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.memory-card p{font-size:11px;line-height:1.9;color:#839077;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.memory-card-actions{display:flex;gap:12px;margin-top:12px;justify-content:flex-end}.memory-card-actions .text-button{font-size:10px}.conflict-banner{background:#fff2d8;border:1px solid #e8d4a9;border-radius:7px;padding:13px;margin-bottom:22px;font-size:12px;line-height:1.8;color:#927440}.conflict-banner>div{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}.mobile-panels{display:none}
.modal{padding:0;border:1px solid #dce1d3;border-radius:13px;background:var(--white);color:var(--ink);width:min(610px,calc(100vw - 32px));max-height:90vh;box-shadow:0 22px 80px #152c2430;overflow:auto}.modal::backdrop{background:#1d322875;backdrop-filter:blur(3px)}.modal.compact{width:min(470px,calc(100vw - 32px))}.modal.wide-modal{width:min(1080px,calc(100vw - 32px))}.modal-heading{padding:25px 28px 22px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3;background:var(--white)}.modal-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.modal-heading h2{font:22px/1.6 var(--serif);margin-top:6px}.modal-heading>h2{margin-top:0}.modal-heading .icon-button{color:#9aa48c;font-size:23px}.modal-body{padding:25px 28px}.modal-body>.muted{margin-bottom:23px;font-size:12px}.modal label{font-size:12px}.modal label>input,.modal label>textarea,.modal label>select{font-size:13px}.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;padding:18px 28px;background:var(--white);position:sticky;bottom:0;z-index:2}.modal-footer.split{justify-content:space-between}.modal-footer>div{display:flex;gap:9px}.field-hint{display:block;font-size:10px;line-height:1.8;font-weight:400;color:#919c84;margin-top:7px}.form-row{display:flex;gap:19px;margin-top:19px}.form-row>label{width:50%;margin:0}.file-drop{padding:30px 22px;border:1px dashed #cbd6bd;background:#f1f5e9;border-radius:7px;text-align:center;color:#718564}.file-drop input{border:0;font-size:11px!important;background:transparent;padding:10px 0 0}.test-result{font-size:12px;line-height:1.8;color:#648158;margin-top:15px}.test-result.error{color:var(--danger)}.versions-layout{display:grid;grid-template-columns:170px 1fr;min-height:430px}.version-list{padding:15px 10px;border-right:1px solid var(--line);background:#f6f7f0;max-height:65vh;overflow:auto}.version-item{display:block;width:100%;border:0;border-radius:6px;text-align:left;padding:12px;background:transparent;margin-bottom:5px}.version-item.active{background:#e7eedd}.version-item strong{display:block;font-size:12px;font-weight:500}.version-item small{display:block;font-size:9px;color:#8a987b;line-height:1.7;margin-top:5px}.version-preview{padding:23px 22px;min-width:0}.comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}.comparison>section{min-width:0;background:#f6f7f0;border:1px solid #e4e9da;border-radius:7px;padding:17px}.comparison>section:last-child{background:#f0f5ea;border-color:#dfe9d3}.comparison h3{font-size:10px;letter-spacing:1px;color:#8c9a7f;font-weight:500;padding-bottom:13px;border-bottom:1px solid #e3e8da}.comparison h4{font:600 15px/1.7 var(--serif);margin-top:16px;overflow-wrap:anywhere}.comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/2 var(--serif);max-height:46vh;min-height:100px;overflow:auto;margin:14px 0 0;scrollbar-width:thin}.result-warning{border:1px solid #e7d7ae;background:#fff6dc;color:#a08049;font-size:12px;line-height:1.8;padding:12px;border-radius:7px}.toast-region{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:10px;max-width:calc(100vw - 32px);pointer-events:none;width:max-content}.toast{padding:13px 18px;background:#244633;color:#fffcf0;border:1px solid #446247;border-radius:9px;box-shadow:0 5px 22px #243a2b1a;font-size:12px;line-height:1.6;max-width:520px;animation:toast-in .2s ease}.toast.error{background:#805747;border-color:#946a54}@keyframes toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.writing-layout{grid-template-columns:245px minmax(300px,1fr) 350px}.manuscript{max-width:1000px;margin:0 auto;padding-left:90px;padding-right:90px}.ai-panel,.memory-panel{padding:27px}}
@media(max-width:1190px){.writing-layout{grid-template-columns:185px minmax(280px,1fr) 285px}.manuscript{padding:30px 30px 20px}.ai-panel,.memory-panel{padding:19px 17px}.editor-toolbar{padding:0 16px}.editor-actions{gap:0}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:145px}.editor-breadcrumb #editor-chapter-label{display:none}.editor-breadcrumb .breadcrumb-sep{display:none}.library-view{padding:48px 35px 0}.novel-grid{gap:17px}.novel-card-main{padding:20px}.novel-card-footer{margin:0 20px}}
@media(max-width:950px){.topbar{height:70px;gap:38px}.editor-view{height:calc(100vh - 70px)}.writing-layout{grid-template-columns:165px minmax(250px,1fr) 255px}.assistant-tabs{padding:0 13px;gap:16px}.assistant-tabs button{font-size:11px}.ai-panel,.memory-panel{padding:19px 13px}.assistant-intro p{font-size:9px}.prompt-chips{gap:4px}.prompt-chips button{padding:5px;font-size:8px}.manuscript{padding:28px 24px 20px}.chapter-title{font-size:23px}.chapter-content{font-size:15px}.chapter-outline summary span{display:none}.chapters-panel{padding:14px 8px}.chapter-item{padding:10px 7px;gap:5px}.chapter-item strong{font-size:11px}.panel-heading{padding-left:4px;padding-right:0}.chapter-panel-bottom .btn{font-size:10px;padding:10px 5px}.save-state{margin-right:8px}.editor-actions .btn{font-size:10px;padding:6px 8px}.novel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-heading h1{font-size:29px}.login-story{padding:35px 11%}.book-art{width:145px;height:190px;margin-top:45px}.login-form-wrap{padding:40px}.login-hero h1{font-size:40px;letter-spacing:3px}}
@media(max-width:760px){.topbar{height:66px;padding:0 20px;gap:30px}.topbar .brand{font-size:18px}.brand-mark{width:32px;height:36px;font-size:21px}.brand small{font-size:6px;letter-spacing:1px}.top-nav{gap:22px}.nav-link{font-size:11px}.library-view{padding:35px 22px 0;min-height:calc(100vh - 66px)}.library-heading{margin-bottom:32px;align-items:flex-start}.library-heading h1{font-size:26px;letter-spacing:0}.library-heading .muted{font-size:11px}.library-heading .eyebrow{font-size:8px}.library-heading .btn{font-size:11px;padding:10px 12px;min-height:37px;margin-top:34px}.library-section-head>.subtle{display:none}.library-empty{min-height:370px}.library-empty h2{font-size:23px}.library-empty p{font-size:11px}.library-footer span:last-child{display:none}.editor-view{height:calc(100dvh - 66px)}.editor-toolbar{padding:0 10px;height:52px;min-height:52px}.editor-breadcrumb{gap:3px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:135px;font-size:11px}.editor-actions .save-state{font-size:8px;position:absolute;top:135px;right:15px;z-index:5;margin-right:0}.editor-actions .save-state:before{width:4px;height:4px}.mobile-panels{display:flex;height:36px;min-height:36px;border-bottom:1px solid var(--line);background:#f4f6ed;padding:0 16px;gap:24px}.mobile-panels button{background:transparent;border:0;color:#7b8c6b;font-size:10px;padding:0}.mobile-panels button.active{color:var(--green);font-weight:600}.writing-layout{display:block;position:relative;overflow:hidden}.manuscript-panel{height:100%}.chapters-panel,.assistant-panel{display:none;position:absolute;top:0;bottom:0;z-index:8;box-shadow:10px 0 30px #1931241a}.chapters-panel.mobile-open{display:flex;left:0;width:240px}.assistant-panel.mobile-open{display:block;right:0;width:320px;max-width:90vw;box-shadow:-10px 0 30px #1931241a}.chapters-panel{padding:18px 12px}.chapter-item strong{font-size:12px}.assistant-tabs{padding:0 20px;gap:30px}.ai-panel,.memory-panel{padding:22px}.prompt-chips button{font-size:10px;padding:5px 8px}.manuscript{padding:27px 28px 20px}.chapter-title{font-size:25px}.chapter-content{font-size:16px;min-height:350px}.manuscript-footer{font-size:8px}.chapter-empty{padding:30px 20px}.chapter-empty h2{font-size:22px}.login-view{display:flex;flex-direction:column;min-height:100dvh}.login-story{padding:24px;background:#e9eee1;min-height:185px}.login-story .brand{font-size:20px}.login-hero{padding:22px 0 0;margin:0}.login-hero>.eyebrow,.login-hero p,.login-foot,.book-art{display:none}.login-hero h1{font-size:29px;line-height:1.5;letter-spacing:3px;margin:0}.login-hero h1 br{display:none}.login-story:after{bottom:-560px}.login-form-wrap{padding:38px 28px;flex:1}.login-form{max-width:400px}.login-form h2{font-size:25px;margin-top:11px}.login-form>.muted{margin-bottom:30px}.modal-heading{padding:20px}.modal-body{padding:20px}.modal-footer{padding:15px 20px}.modal-heading h2{font-size:21px}.versions-layout{grid-template-columns:125px 1fr;min-height:380px}.version-preview{padding:17px 14px}.comparison{grid-template-columns:1fr;gap:13px}.comparison pre{max-height:30vh;font-size:13px}.version-item{padding:10px 7px}.version-item strong{font-size:10px}.version-item small{font-size:8px}.modal-footer .btn{font-size:11px;padding:9px 11px}.modal-footer>div{gap:3px}.form-row{gap:12px}}
@media(max-width:440px){.topbar{gap:23px;padding:0 16px}.top-nav{gap:19px}.brand{gap:8px}.brand small{font-size:5px;letter-spacing:.6px}.library-view{padding:29px 18px 0}.library-heading{display:block}.library-heading h1{font-size:26px}.library-heading .btn{margin-top:22px}.novel-grid{grid-template-columns:1fr}.novel-card-cover{height:93px;margin-bottom:18px}.library-section-head{margin-bottom:20px}.editor-actions .btn{font-size:9px;padding:5px 6px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:96px}.editor-toolbar{gap:2px}.manuscript{padding:25px 22px 20px}.chapter-outline summary{font-size:10px}.manuscript-footer>span{max-width:120px;line-height:1.8}.form-row{display:block}.form-row>label{width:100%;margin-top:19px}.modal-footer.split{gap:6px}.modal-footer .btn{font-size:10px;padding:9px}.modal-footer{padding:13px 16px}.versions-layout{grid-template-columns:105px 1fr}.version-list{padding:12px 6px}.version-preview{padding:13px 9px}.version-preview .comparison>section{padding:12px}.login-form-wrap{align-items:flex-start}.library-empty{padding:28px 13px}.library-empty p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.library-primary-actions,.empty-actions{display:flex;gap:11px;align-items:center}.library-primary-actions .btn:not(.primary){background:transparent}.empty-actions{flex-direction:column;gap:7px}.empty-actions .quiet{font-size:11px;min-height:32px}.batch-entry{color:var(--green);background:#edf2e7;border-color:#d9e4cf}.romance-profile{margin:23px 0;border:1px solid #dce5d2;border-radius:8px;padding:18px;background:#f4f7ef}.romance-profile legend{padding:0 7px;font-size:13px;font-weight:600;color:#526d42}.romance-profile>.field-hint{margin:0 0 16px}.romance-profile .form-row{margin-bottom:19px}.novel-file-drop{margin-top:22px}.checkbox-label{display:flex;align-items:flex-start;gap:10px;margin-top:23px!important;font-size:12px;cursor:pointer}.checkbox-label input{width:16px;height:16px;margin:1px 0 0;accent-color:var(--green);flex-shrink:0}.checkbox-label small{display:block;color:#909c82;font-weight:400;font-size:10px;line-height:1.8;margin-top:4px}.batch-modal{width:min(1120px,calc(100vw - 32px))}.batch-body{padding:24px 28px}.batch-body>.muted,.batch-body section>.muted{font-size:12px}.batch-setup-grid{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.15fr);gap:28px;margin-top:25px}.batch-chapter-select{padding:17px;border:1px solid var(--line);border-radius:8px;background:#f7f8f1}.batch-chapter-select .mini-heading{margin-bottom:12px}.batch-chapter-select .mini-heading h3{font-size:12px}.batch-chapter-select .text-button{font-size:10px}.batch-checkboxes{max-height:310px;overflow:auto;scrollbar-width:thin;padding-right:5px}.batch-checkbox-label{display:flex;align-items:flex-start;gap:9px;padding:9px 2px;margin:0!important;font-size:11px;font-weight:400;cursor:pointer;line-height:1.7}.batch-checkbox-label input{width:15px;height:15px;margin:2px 0 0;accent-color:var(--green);flex-shrink:0}.batch-checkbox-label span{overflow-wrap:anywhere}.batch-instructions textarea{min-height:190px;font-size:12px}.batch-prompt-chips{margin-top:11px;margin-bottom:15px}.batch-setup-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.batch-history{background:#eff3e7;border:1px solid #dce6cf;border-radius:8px;padding:16px 18px;margin-top:20px}.batch-history>h3{font-size:12px;font-weight:500;margin-bottom:10px}.batch-history-list-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #e0e7d6}.batch-history-list-item:first-child{border-top:0;padding-top:0}.batch-history-list-item:last-child{padding-bottom:0}.batch-history-list-item p{font-size:11px;line-height:1.7;color:#6d815d}.batch-history-list-item small{font-size:10px;color:#99a48a}.batch-history-list-item .btn{font-size:10px;min-height:30px}.batch-progress-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.batch-progress-header h3{font:21px/1.5 var(--serif)}.batch-progress-header .field-hint{margin-top:5px}.batch-progress-header .btn{font-size:11px}.batch-body progress{display:block;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;appearance:none;background:#e5ebdc;margin:19px 0}.batch-body progress::-webkit-progress-bar{background:#e5ebdc;border-radius:5px}.batch-body progress::-webkit-progress-value{background:#789765;border-radius:5px}.batch-body progress::-moz-progress-bar{background:#789765;border-radius:5px}.batch-saved-instruction{font-size:11px;margin-bottom:20px;color:#89987b}.batch-saved-instruction summary{cursor:pointer;line-height:1.8}.batch-saved-instruction p{background:#f5f7ef;padding:13px 16px;border:1px solid #e3e8d9;border-radius:6px;margin-top:10px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#718364;max-height:150px;overflow:auto}.batch-progress-grid{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;min-height:340px}.batch-items{border-right:1px solid var(--line);padding-right:14px;max-height:52vh;overflow:auto;scrollbar-width:thin}.batch-item{padding:12px 10px;border-radius:6px;margin-bottom:5px;border:1px solid transparent}.batch-item.current{background:#edf3e4;border-color:#dce7ce}.batch-item-title{font-size:11px;line-height:1.8;overflow-wrap:anywhere}.batch-item-meta{font-size:9px;margin-top:6px;color:#97a289}.batch-item.applied .batch-item-meta{color:#698858}.batch-item.failed .batch-item-meta{color:#ae7960}.batch-current{min-width:0}.batch-current-heading .eyebrow{font-size:8px}.batch-current-heading h3{font:19px/1.7 var(--serif);margin:6px 0}.batch-current-heading .muted{font-size:11px}.batch-current .result-warning{margin-top:16px;font-size:11px}.batch-current .comparison{margin-top:18px;gap:15px}.batch-current .comparison>section{padding:14px}.batch-current .comparison pre{max-height:35vh;font-size:13px}.batch-finish{text-align:center;padding:38px 18px}.batch-finish>span{display:flex;align-items:center;justify-content:center;width:49px;height:49px;background:#e7efdc;border:1px solid #dbe7ca;border-radius:50%;margin:0 auto 20px;color:#789860;font-size:22px}.batch-finish h3{font:23px var(--serif);margin-bottom:13px}.batch-finish .muted{font-size:12px}.batch-action-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.batch-action-footer>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.batch-action-footer .btn{font-size:11px;min-height:36px;padding:9px 12px}
.batch-attempt-links{display:flex;gap:4px 10px;flex-wrap:wrap;margin-top:8px}.batch-attempt-links .text-button{font-size:9px;line-height:1.5;text-align:left;padding:3px 0}.attempt-readonly-note{font-size:11px;line-height:1.9;color:#8c9980;margin:-10px 0 18px}
.file-drop{cursor:pointer;transition:background .15s,border-color .15s}.file-drop.is-dragover{background:#e0ebd6;border-color:#648b4c;outline:2px solid #648b4c33;outline-offset:3px}.file-drop:focus-visible{outline:2px solid #648b4c;outline-offset:3px}.import-preview{margin-top:18px;padding:15px;border:1px solid #dce5d2;background:#f5f8ee;border-radius:7px}.import-preview h3{font-size:12px;font-weight:550;line-height:1.8}.import-preview ol{list-style:none;padding:0;margin:12px 0 0;max-height:180px;overflow:auto;scrollbar-width:thin}.import-preview li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e4eadc;font-size:11px;line-height:1.7}.import-preview li:last-child{border-bottom:0}.import-preview li span{overflow-wrap:anywhere}.import-preview li small{white-space:nowrap;font-size:9px;color:#94a184}.import-error{color:var(--danger);font-size:11px;line-height:1.8;margin-top:12px}.import-error:empty{display:none}.promotion-options{border:1px solid #dfe6d4;background:#f3f6ed;border-radius:6px;margin:0 0 18px;padding:11px 12px}.promotion-options>summary{cursor:pointer;font-size:11px;color:#668155;line-height:1.8}.promotion-options>summary span{color:#a0ac94;font-size:9px;margin-left:8px}.promotion-options>.field-hint{margin:10px 0 13px}.promotion-options label{font-size:10px;color:#7c8d6b}.promotion-options input,.promotion-options textarea{font-size:11px;padding:9px;margin-top:6px}.promotion-options label+label{margin-top:13px}.promotion-options input::placeholder,.promotion-options textarea::placeholder{font-size:10px}.promotion-options .limit-exceeded{color:var(--danger)}
.file-drop input[type=file]{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
@media(max-width:950px){.library-primary-actions{flex-direction:column;align-items:stretch;gap:8px}.library-primary-actions .btn{margin-top:0}.batch-setup-grid{gap:19px}.editor-actions .batch-entry{padding:6px}.batch-progress-grid{grid-template-columns:150px minmax(0,1fr);gap:16px}}
@media(max-width:760px){.library-heading{gap:16px}.library-primary-actions{margin-top:20px;flex-shrink:0}.batch-body{padding:20px}.batch-setup-grid{grid-template-columns:1fr;gap:19px}.batch-checkboxes{max-height:180px}.batch-instructions textarea{min-height:140px}.batch-setup-footer{align-items:flex-end;gap:12px}.batch-setup-footer>.field-hint{max-width:180px;font-size:9px}.batch-setup-footer>.btn{font-size:11px;padding:10px 12px}.batch-progress-grid{grid-template-columns:1fr}.batch-items{max-height:115px;border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px;display:flex;gap:7px;overflow-x:auto}.batch-item{min-width:130px;max-width:170px;flex-shrink:0;padding:9px;margin-bottom:0}.batch-current .comparison{grid-template-columns:1fr 1fr;gap:10px}.batch-current .comparison>section{padding:11px}.batch-current .comparison pre{font-size:12px;line-height:1.9;max-height:29vh}.batch-action-footer{align-items:flex-end}.batch-action-footer>div{gap:5px}.batch-action-footer .btn{font-size:10px;padding:8px}.batch-progress-header h3{font-size:19px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:90px}.editor-actions .btn{font-size:9px;padding:5px}.romance-profile{padding:15px}.romance-profile .form-row{display:block}.romance-profile .form-row>label{width:100%;margin-top:15px}}
@media(max-width:440px){.library-primary-actions{flex-direction:row;justify-content:flex-start;margin-top:20px;gap:8px}.library-primary-actions .btn{margin-top:0;font-size:11px;padding:10px 12px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:66px}.editor-breadcrumb .icon-button{width:25px}.editor-actions .btn{font-size:9px;padding:5px 4px}.batch-current .comparison{grid-template-columns:1fr}.batch-current .comparison pre{max-height:24vh}.batch-action-footer{display:block}.batch-action-footer>div{justify-content:flex-start;margin-top:10px}.batch-action-footer>.quiet{padding-left:0}.batch-body{padding:18px}.batch-history{padding:13px}.batch-setup-footer{display:block}.batch-setup-footer>.field-hint{display:block;max-width:none;margin-bottom:13px}.batch-setup-footer>.btn{width:100%}.batch-progress-header .btn{font-size:10px}.batch-progress-header h3{font-size:18px}}

/* 2026 workspace design: light surfaces, generous type, violet actions. */
:root{color-scheme:light;--paper:#f5f6fa;--white:#ffffff;--ink:#222b3c;--green:#7257b7;--green-dark:#60449f;--green-light:#eee9f7;--muted:#728096;--line:#e2e7ef;--gold:#c4ac82;--danger:#b84151;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;background:var(--paper);color:var(--ink)}
*{scrollbar-color:#454b61 transparent}button,input,textarea,select{font-family:inherit}input,textarea,select{background:#f6f7f9;border-color:#d7dbe4;border-radius:10px;padding:12px 14px;font-size:15px;color:var(--ink)}input::placeholder,textarea::placeholder{color:#636d83}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #baa7ff14}label{font-size:14px;line-height:1.65}label+label{margin-top:22px}button:focus-visible,a:focus-visible{outline-color:var(--green)}
.btn{min-height:43px;padding:11px 18px;font-size:14px;border-radius:10px;background:#f3f4f7;border-color:#d8dbe4;color:var(--ink)}.btn:hover:not(:disabled){background:#f0f2f5;border-color:#d9dce3}.btn.primary{background:var(--green);border-color:var(--green);color:#fcfcfd;font-weight:650;box-shadow:0 4px 18px #0a061920}.btn.primary:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}.btn.quiet{color:#414c69}.btn.quiet:hover:not(:disabled){background:#e8e8e80a;border-color:#dedede10}.btn.small{min-height:37px;font-size:13px;padding:8px 12px}.text-button{font-size:13px;color:var(--green)}.text-button:hover{color:#42385b}.icon-button{width:36px;height:36px;color:#4a5874;border-radius:9px}.icon-button:hover{background:#e8e8e80e}.muted{font-size:14px;color:var(--muted)}.subtle{font-size:12px;color:var(--muted)}.eyebrow{display:none}.count{background:#e8e8e808;color:#44536f;border:1px solid #dedede08;border-radius:7px;font-size:11px;height:24px}.form-error,.import-error{font-size:13px;color:var(--danger)}
.brand{font-family:inherit;letter-spacing:.5px;font-size:22px;font-weight:650;gap:12px}.brand-mark{width:39px;height:39px;background:var(--green);color:#fcfcfd;border-radius:12px;font-size:24px;box-shadow:none}.brand small{font-size:10px;color:#535e7b;letter-spacing:1px;margin-top:4px}.topbar{height:76px;padding:0 32px;gap:48px;background:#f6f7f9;border-color:#d7dbe5}.topbar .brand{font-size:22px}.top-nav{align-items:center;gap:8px}.nav-link{font-size:14px;padding:10px 18px;color:#4c5977;border-radius:9px}.nav-link.active{color:#3d3354;background:#f4f2f7}.nav-link.active:after{display:none}.avatar{width:37px;height:37px;background:#f3f1f6;color:#42395c;border-color:#dbd8e4;font-size:13px}.account-menu{background:#f3f4f8;border-color:#d7dbe4;border-radius:12px;box-shadow:0 18px 55px #25344d22}.account-menu button:hover{background:#f2f1f6}.account-menu button{font-size:14px}.account-menu span{font-size:12px;color:var(--muted)}
.library-view{max-width:1440px;min-height:calc(100dvh - 76px);padding:62px 48px 0}.library-heading{gap:30px;margin-bottom:50px}.library-heading h1{font-family:inherit;font-size:36px;line-height:1.35;letter-spacing:-1px;font-weight:600;margin:0 0 16px}.library-heading .muted{font-size:15px}.title-dot{color:var(--green)}.library-heading .btn{font-size:14px;padding:13px 20px;min-height:48px;margin:0}.library-primary-actions{flex-direction:row;gap:12px}.library-primary-actions .btn:not(.primary){background:#f3f4f7}.library-section-head{border:0;margin-bottom:22px;padding-bottom:0}.library-section-head h2{font-size:17px;letter-spacing:0}.novel-grid{gap:24px}.novel-card{border:1px solid #d8dbe4;border-radius:16px;background:#f5f6f9}.novel-card:hover{border-color:#dcd7e5;box-shadow:0 16px 45px #0002}.novel-card-main{padding:22px 22px 18px}.novel-card-cover{height:142px;margin-bottom:24px;background:linear-gradient(125deg,#f2f0f5,#f5f5f7);border-color:#dfd9e3;border-radius:9px}.novel-card-cover span{font-size:27px;writing-mode:horizontal-tb;max-height:none;letter-spacing:5px;color:#513e66;margin-left:24px}.novel-card-cover:before,.novel-card-cover:after{border-color:#dcd7e52e}.novel-card:nth-child(3n+2) .novel-card-cover{background:linear-gradient(125deg,#f2f6f6,#f4f6f8);border-color:#d8e2e4}.novel-card:nth-child(3n+2) .novel-card-cover span{color:#426b5e}.novel-card:nth-child(3n) .novel-card-cover{background:linear-gradient(125deg,#f5f2f0,#f6f5f5);border-color:#e4dbd7}.novel-card:nth-child(3n) .novel-card-cover span{color:#705645}.novel-card h3{font-family:inherit;font-size:21px;line-height:1.5;letter-spacing:-.3px}.novel-genre{background:#f3f1f6;color:#503f66;border:1px solid #dfd8e444;font-size:11px;padding:3px 7px}.novel-card p{font-size:13px;min-height:48px}.novel-card-footer{padding:15px 0;margin:0 22px}.novel-card-footer .text-button{color:#515d7a;font-size:12px}.library-empty{background:radial-gradient(ellipse at 50% 0,#e7e3ed10,transparent 65%),#f6f7f9;border:1px solid #d8dbe4;border-radius:18px;min-height:420px;padding:42px;margin-bottom:30px}.empty-illustration{width:57px;height:69px;border-color:#dfdae2;background:#f4f2f6;box-shadow:4px 4px 0 #262330;margin-bottom:30px}.empty-illustration:before{border-color:#ded9e355}.empty-illustration span{font-size:25px;color:#58426c}.empty-illustration i{border-color:#ded8e455;width:19px;left:22px;bottom:12px}.library-empty h2{font-family:inherit;font-size:23px;font-weight:550;letter-spacing:-.5px}.library-empty p{font-size:14px;margin:16px 0 28px}.empty-actions{flex-direction:row;gap:12px}.empty-actions .quiet{font-size:13px;min-height:42px}.library-footer{font-size:12px;color:#606b85;padding:38px 0 26px}.library-footer span:last-child{display:none}
.editor-view{height:calc(100dvh - 76px)}.editor-toolbar{height:auto;min-height:66px;padding:12px 22px;background:#f6f7f9;gap:16px}.editor-breadcrumb{font-size:14px;gap:10px}.editor-breadcrumb .muted{font-size:13px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:260px}.editor-actions{gap:7px}.save-state{font-size:12px;color:#527069;margin-right:10px}.save-state:before{background:#e3edea;width:6px;height:6px}.save-state.saving:before{background:#ede9e3}.batch-entry{background:#f3f2f6;border-color:#ddd7e5;color:#43395d}.writing-layout{grid-template-columns:240px minmax(320px,1fr) 340px}.chapters-panel{padding:24px 12px 18px;background:#f6f7f9}.panel-heading{padding:0 10px 17px}.panel-heading h2{font-size:14px}.panel-heading .count{font-size:10px;height:22px}.chapter-item{gap:12px;padding:14px 12px;border-radius:9px;margin-bottom:6px}.chapter-item:hover{background:#f4f5f8}.chapter-item.active{background:#f4f3f7;border-color:#dbd7e5}.chapter-index{font-family:inherit;font-size:11px;line-height:22px;color:#576581;min-width:18px}.chapter-item.active .chapter-index{color:#473b61}.chapter-item strong{font-size:13px;line-height:1.65;color:#3c4862}.chapter-item.active strong{color:#403354}.chapter-item small{font-size:11px;color:#52627f}.chapter-panel-bottom .btn{font-size:13px}.chapter-panel-bottom>span{font-size:12px;margin-top:10px}.manuscript-panel{background:#f5f6f9}.manuscript{padding:42px clamp(30px,4vw,76px) 26px;max-width:1080px;margin:0 auto}.manuscript-meta{margin-bottom:24px}.manuscript-meta .eyebrow{display:block;color:#4f5d7a;font-size:12px;letter-spacing:1px}.manuscript-meta .subtle{font-size:12px}.chapter-title{font-family:inherit;font-size:29px;font-weight:600;letter-spacing:-.5px;color:#333b54;margin-bottom:25px}.chapter-title,.chapter-content{background:transparent}.chapter-outline{background:#f3f5f7;border-color:#d7dbe5;border-radius:9px;font-size:13px;margin-bottom:30px}.chapter-outline summary{padding:12px 14px;color:#43506d}.chapter-outline summary span{color:#516181;font-size:11px}.chapter-outline textarea{font-size:14px;color:#3c4862}.chapter-content{font-size:18px;line-height:2.1;color:#39455c;letter-spacing:.2px;min-height:400px}.chapter-content::placeholder{font-size:16px;color:#5d6983}.manuscript-footer{font-size:11px;color:#5b667f;padding-top:18px;margin-top:32px}.manuscript-footer .text-button{font-size:12px}.chapter-empty h2{font-family:inherit;font-size:26px}.chapter-empty .muted{font-size:14px}.assistant-panel{background:#f6f7f9}.assistant-tabs{height:64px;padding:0 23px;gap:24px}.assistant-tabs button{font-size:14px;color:#4a5979}.assistant-tabs button.active{color:#44395d}.assistant-tabs button.active:after{background:var(--green)}.assistant-tabs span{font-size:11px}.ai-panel,.memory-panel{padding:25px 22px}.assistant-intro{padding-bottom:26px}.assistant-symbol{display:none}.assistant-intro h2,.memory-intro h2{font-family:inherit;font-size:19px;line-height:1.5;font-weight:570}.assistant-intro p{font-size:12px;color:#4d5d7a}.segmented{background:#f7f8fa;border-color:#d7dce5;border-radius:10px;padding:4px;gap:4px}.segmented button{font-size:13px;padding:10px 5px;color:#50607e;border-radius:7px}.segmented button.active{background:#f3f2f6;color:#42375a;box-shadow:0 2px 5px #25344d14}.selection-info{font-size:12px;color:#5e4d77;margin:12px 0 24px}.instruction-label{font-size:13px;color:#3e4a65}.ai-instruction{font-size:14px;background:#f5f6f8;min-height:144px}.ai-instruction::placeholder{font-size:13px;color:#586581}.prompt-chips{gap:7px;margin:14px 0 22px}.prompt-chips button{font-size:11px;padding:7px 9px;border-color:#ddd8e4;border-radius:7px;background:#f5f4f8;color:#54416b}.prompt-chips button:hover{background:#f3f1f6}.ai-panel>.primary{font-size:14px;min-height:44px}.assistant-note{font-size:11px;color:#576682;margin:14px 0 28px}.mini-heading h3{font-size:13px;color:#3e4d65}.mini-heading .text-button{font-size:12px}.job-list>.subtle{font-size:12px}.job-card{padding:15px;background:#f5f6f8;border-radius:10px}.job-card-head{font-size:13px}.job-status{font-size:11px;color:#4c5e7b}.job-status.completed{color:#4b7b6c}.job-card>p{font-size:12px;color:#4b5a79}.job-card-actions .text-button{font-size:12px}.memory-intro p{font-size:13px;color:#4b5b7b}.memory-actions .btn{font-size:12px;padding:8px}.memory-panel>select{font-size:13px}.memory-card{background:#f5f6f8;border-radius:10px;padding:16px}.memory-card.candidate{border-color:#ded7e5}.memory-card.stale{border-color:#e5ded7;background:#f8f6f4}.memory-card-meta{font-size:11px;color:#5c4977}.memory-card h3{font-size:14px}.memory-card p{font-size:13px;color:#475874}.memory-card-actions .text-button{font-size:12px}
.modal{width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);border:1px solid #d8dbe4;border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 30px 110px #25344d26}.modal::backdrop{background:#f8f9fbba;backdrop-filter:blur(7px)}.modal.compact{width:min(640px,calc(100vw - 40px))}.modal.wide-modal{width:min(1320px,calc(100vw - 48px))}.modal-heading{padding:25px 30px;background:var(--white);position:sticky;top:0;z-index:3}.modal-heading h2{font-family:inherit;font-size:23px;font-weight:600;letter-spacing:-.4px}.modal-body{padding:28px 30px}.modal-footer{padding:20px 30px;background:var(--white);gap:10px}.field-hint{font-size:12px;color:#4a5a78;line-height:1.8}.form-row{gap:18px;margin-top:20px}.romance-profile{background:#f5f4f8;border-color:#dfd7e4;border-radius:12px;padding:22px;margin:26px 0}.romance-profile legend{font-size:15px;color:#503d64}.romance-profile .form-row{margin-bottom:20px}.checkbox-label{font-size:14px;gap:11px}.checkbox-label input{width:18px;height:18px;margin-top:3px}.checkbox-label small{font-size:12px;color:#4a5e79}.file-drop{border-color:#ddd8e4;border-radius:12px;background:#f5f4f8;padding:34px 24px;color:#4e3d64;position:relative}.file-drop:hover{background:#f4f2f7}.file-drop.is-dragover{background:#f3f0f6;border-color:#dcd7e5;outline-color:#b99de455}.file-drop:focus-visible{outline-color:var(--green)}.import-preview{background:#f6f7f9;border-color:#d7dce5;border-radius:10px;padding:18px;margin-top:20px}.import-preview h3{font-size:14px}.import-preview li{font-size:13px;border-color:#d7dce5;padding:9px 0}.import-preview li small{font-size:11px;color:#4a5a78}.import-preview ol{max-height:220px}.promotion-options{background:#f5f5f8;border-color:#ddd8e3;border-radius:9px;padding:13px 14px;margin-bottom:22px}.promotion-options>summary{font-size:13px;color:#504068}.promotion-options>summary span{font-size:11px;color:#585874}.promotion-options label{font-size:12px;color:#50446f}.promotion-options input,.promotion-options textarea{font-size:13px;padding:10px}.promotion-options input::placeholder,.promotion-options textarea::placeholder{font-size:12px;color:#5e647e}.test-result{font-size:14px;color:#497769}.test-result.error{color:var(--danger)}.conflict-banner,.result-warning{background:#f8f6f4;border-color:#e5ded7;color:#6d5943;font-size:13px;padding:15px;border-radius:10px}
.versions-layout{grid-template-columns:200px 1fr;min-height:440px}.version-list{background:#f6f7f9;padding:16px 12px;max-height:70vh}.version-item{padding:14px 12px;border-radius:9px}.version-item.active{background:#f4f2f7}.version-item strong{font-size:14px}.version-item small{font-size:11px;color:#4c5a76}.version-preview{padding:26px}.comparison{gap:24px;margin-top:24px}.comparison>section{background:#f6f7f9;border-color:#d7dce5;border-radius:12px;padding:22px}.comparison>section:last-child{background:#f5f4f8;border-color:#dfd7e5}.comparison h3{font-size:13px;letter-spacing:0;color:#485975;padding-bottom:16px;border-color:#d7dce5}.comparison>section:last-child h3{color:#544169;border-color:#dfd7e5}.comparison h4{font-size:18px}.comparison pre{font-size:17px;line-height:2.05;color:#3a475e;max-height:55vh;margin-top:18px;padding-right:8px}.attempt-readonly-note{font-size:13px;color:#4a5d79}.batch-modal{width:min(1380px,calc(100vw - 48px))}.batch-body{padding:28px 30px}.batch-body>.muted,.batch-body section>.muted{font-size:14px}.batch-setup-grid{grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr);gap:32px;margin-top:28px}.batch-chapter-select{background:#f6f7f9;border-color:#d7dce5;border-radius:12px;padding:22px}.batch-chapter-select .mini-heading h3{font-size:14px}.batch-chapter-select .text-button{font-size:12px}.batch-checkboxes{max-height:390px}.batch-checkbox-label{font-size:14px;padding:11px 3px;gap:12px}.batch-checkbox-label input{width:17px;height:17px;margin-top:4px}.batch-instructions textarea{font-size:15px;min-height:200px}.batch-instructions .promotion-options textarea{min-height:70px}.batch-setup-footer{padding-top:22px;margin-top:28px}.batch-history{background:#f5f4f8;border-color:#dfd7e5;border-radius:11px;padding:20px}.batch-history>h3{font-size:14px;color:#4f3c62}.batch-history-list-item{border-color:#dfd7e5;padding:12px 0}.batch-history-list-item p{font-size:14px;color:#58426c}.batch-history-list-item small{font-size:12px;color:#635478}.batch-history-list-item .btn{font-size:12px}.batch-progress-header h3{font-family:inherit;font-size:23px;font-weight:560}.batch-progress-header .btn{font-size:13px}.batch-body progress{height:6px;background:#f3f2f5;margin:22px 0}.batch-body progress::-webkit-progress-bar{background:#f3f2f5}.batch-body progress::-webkit-progress-value{background:var(--green)}.batch-body progress::-moz-progress-bar{background:var(--green)}.batch-saved-instruction{font-size:13px;color:#5c5270;margin-bottom:24px}.batch-saved-instruction p{background:#f6f7f9;border-color:#d7dce5;color:#465772;font-size:14px;padding:16px}.batch-progress-grid{grid-template-columns:214px minmax(0,1fr);gap:28px;min-height:360px}.batch-items{max-height:58vh;padding-right:15px}.batch-item{padding:15px 12px;border-radius:10px;margin-bottom:8px}.batch-item.current{background:#f5f3f7;border-color:#ded7e5}.batch-item-title{font-size:14px}.batch-item-meta{font-size:12px;color:#635775}.batch-item.applied .batch-item-meta{color:#4b7a6c}.batch-item.failed .batch-item-meta{color:var(--danger)}.batch-attempt-links .text-button{font-size:11px}.batch-current-heading h3{font-family:inherit;font-size:22px;font-weight:570}.batch-current-heading .muted{font-size:13px}.batch-current .result-warning{font-size:13px}.batch-current .comparison{gap:20px;margin-top:22px}.batch-current .comparison>section{padding:20px}.batch-current .comparison pre{font-size:17px;max-height:47vh}.batch-finish>span{background:#f3f7f6;border-color:#d7e5de;color:#487660;width:58px;height:58px;font-size:27px}.batch-finish h3{font-family:inherit;font-size:25px}.batch-finish .muted{font-size:14px}.batch-action-footer{padding-top:22px;margin-top:26px;gap:18px}.batch-action-footer .btn{font-size:13px;min-height:40px;padding:10px 14px}
.login-story{background:radial-gradient(ellipse at 20% 70%,#f2edf450,transparent 70%),#f6f6f9;border-right:1px solid var(--line)}.login-story:after{border-color:#e0d8e344}.login-hero h1{font-family:inherit;font-size:clamp(38px,4.5vw,64px);font-weight:550;letter-spacing:-1px;line-height:1.45}.login-hero p{font-size:15px;color:#5f4f70;line-height:2}.login-foot{font-size:12px;color:#73697f}.book-cover{background:#f3f0f5;border-color:#e0d7e5;color:#593e65;box-shadow:9px 10px 0 #25232e,10px 11px 0 #665271,19px 20px 28px #0a041940}.book-cover:after{border-color:#e0d7e544}.book-cover>small{display:none}.book-spine{background:#f6f4f8}.login-form-wrap{background:#f7f8fa}.login-form{max-width:390px}.login-form h2{font-family:inherit;font-size:30px;font-weight:570}.login-form>.muted{font-size:14px}.login-form label{font-size:14px}.login-note{font-size:12px;color:#576480}.toast{background:#f3f2f6;border-color:#ded7e5;color:#463556;font-size:14px;border-radius:11px;padding:14px 20px;box-shadow:0 12px 40px #25344d1c}.toast.error{background:#f7f2f4;border-color:#e5d7da;color:#59373c}
@media(min-width:1700px){.writing-layout{grid-template-columns:270px minmax(420px,1fr) 380px}.ai-panel,.memory-panel{padding:30px}.library-view{padding-top:76px}}
@media(max-width:1200px){.topbar{padding:0 24px;gap:32px}.writing-layout{grid-template-columns:195px minmax(290px,1fr) 300px}.manuscript{padding:36px 30px 24px}.ai-panel,.memory-panel{padding:24px 17px}.assistant-tabs{padding:0 17px;gap:20px}.editor-breadcrumb #editor-chapter-label,.editor-breadcrumb .breadcrumb-sep{display:none}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:180px}.editor-actions{gap:3px}.editor-actions .btn{font-size:12px;padding:8px 10px}.editor-toolbar{padding:12px 16px}.library-view{padding:48px 32px 0}.library-primary-actions{flex-wrap:wrap;justify-content:flex-end}.batch-progress-grid{grid-template-columns:180px minmax(0,1fr);gap:20px}}
@media(max-width:1000px){.writing-layout{grid-template-columns:170px minmax(260px,1fr) 280px}.chapters-panel{padding:20px 8px}.chapter-item{padding:12px 8px;gap:7px}.chapter-index{min-width:15px}.chapter-item strong{font-size:12px}.panel-heading{padding:0 4px 12px}.assistant-tabs{gap:16px}.assistant-tabs button{font-size:13px}.manuscript{padding:32px 24px}.chapter-title{font-size:25px}.chapter-content{font-size:17px}.novel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-toolbar{flex-wrap:wrap;gap:6px}.editor-actions{margin-left:auto}.save-state{margin-right:5px}.library-primary-actions{flex-direction:row}}
@media(max-width:800px){.topbar{height:68px;padding:0 20px;gap:24px}.brand{font-size:20px;gap:10px}.brand-mark{width:34px;height:34px;font-size:22px;border-radius:10px}.brand small{font-size:9px}.nav-link{padding:9px 11px;font-size:13px}.library-view{padding:35px 24px 0;min-height:calc(100dvh - 68px)}.library-heading{flex-wrap:wrap;margin-bottom:36px}.library-heading h1{font-size:29px}.library-primary-actions{justify-content:flex-start;margin:0}.library-section-head>.subtle{display:none}.library-empty{padding:36px 24px;min-height:380px}.library-empty p{font-size:13px}.editor-view{height:calc(100dvh - 68px)}.editor-toolbar{padding:9px 12px;gap:8px;height:auto;min-height:90px}.editor-breadcrumb>span:not(.breadcrumb-sep){max-width:260px;font-size:14px}.editor-actions{width:100%;margin:0;justify-content:flex-end;gap:4px;flex-wrap:wrap}.editor-actions .btn{font-size:12px;padding:7px 10px;min-height:34px}.editor-actions .save-state{position:static;margin-right:auto;font-size:11px}.mobile-panels{display:flex;gap:24px;min-height:44px;height:auto;background:#f5f6f8;padding:0 22px}.mobile-panels button{color:#455670;font-size:13px}.mobile-panels button.active{color:var(--green)}.writing-layout{display:block;position:relative;overflow:hidden}.manuscript-panel{height:100%}.chapters-panel,.assistant-panel{display:none;position:absolute;top:0;bottom:0;z-index:8;box-shadow:15px 0 50px #25344d1f}.chapters-panel.mobile-open{display:flex;left:0;width:280px;padding:20px 14px}.assistant-panel.mobile-open{display:block;right:0;width:350px;max-width:92vw;box-shadow:-15px 0 50px #25344d1f}.chapter-item strong{font-size:14px}.ai-panel,.memory-panel{padding:24px}.assistant-tabs{padding:0 24px;gap:24px}.manuscript{padding:30px}.chapter-title{font-size:27px}.chapter-content{font-size:18px}.modal,.modal.compact,.modal.wide-modal,.batch-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 28px);border-radius:14px}.modal-heading{padding:20px}.modal-heading h2{font-size:21px}.modal-body,.batch-body{padding:22px}.modal-footer{padding:17px 20px}.batch-setup-grid{grid-template-columns:1fr;gap:24px}.batch-checkboxes{max-height:220px}.batch-setup-footer{flex-wrap:wrap;gap:16px}.batch-setup-footer>.field-hint{font-size:12px;max-width:none}.batch-progress-grid{grid-template-columns:1fr;gap:22px}.batch-items{display:flex;gap:8px;max-height:150px;overflow-x:auto;padding:0 0 14px;border-right:0;border-bottom:1px solid var(--line)}.batch-item{min-width:160px;max-width:190px;flex-shrink:0;padding:12px;margin:0}.comparison,.batch-current .comparison{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.comparison pre,.batch-current .comparison pre{font-size:16px;max-height:42vh}.batch-action-footer{flex-wrap:wrap}.batch-action-footer>div{justify-content:flex-start}.versions-layout{grid-template-columns:150px minmax(0,1fr)}.version-preview{padding:18px}.version-preview .comparison{grid-template-columns:1fr}.login-view{display:flex;flex-direction:column}.login-story{padding:28px;border-right:0;border-bottom:1px solid var(--line);min-height:230px}.login-hero{margin:0;padding:30px 0 0}.login-hero h1{font-size:34px;margin:0}.login-hero h1 br{display:none}.login-hero p,.login-foot,.book-art{display:none}.login-form-wrap{padding:42px 28px;flex:1}}
@media(max-width:480px){.topbar{gap:15px;padding:0 16px}.top-nav{gap:1px}.nav-link{padding:8px;font-size:12px}.topbar .brand{font-size:18px}.brand small{font-size:8px;letter-spacing:0}.avatar{width:32px;height:32px}.library-view{padding:30px 20px 0}.library-heading h1{font-size:28px}.library-heading .muted{font-size:13px}.library-primary-actions{gap:9px;width:100%;margin-top:22px}.library-primary-actions .btn{font-size:13px;padding:11px 14px}.novel-grid{grid-template-columns:1fr}.library-empty{padding:32px 17px;min-height:390px}.library-empty h2{font-size:22px}.empty-actions{flex-direction:column;gap:9px}.editor-actions{justify-content:flex-start;gap:2px}.editor-actions .save-state{display:none}.editor-actions .btn{padding:7px 8px;font-size:11px}.manuscript{padding:28px 23px}.chapter-title{font-size:25px}.chapter-content{font-size:17px}.manuscript-footer{font-size:10px}.modal-heading,.modal-body,.batch-body{padding:18px}.modal-heading h2{font-size:20px}.modal-footer{padding:15px 18px;flex-wrap:wrap}.modal-footer .btn{font-size:12px;padding:10px 12px}.modal-footer>div{gap:6px;flex-wrap:wrap}.form-row{display:block}.form-row>label{width:100%;margin-top:20px}.romance-profile{padding:17px}.file-drop{padding:28px 18px}.batch-chapter-select{padding:17px}.batch-progress-header h3{font-size:20px}.batch-progress-header .btn{font-size:12px;padding:8px}.batch-current .comparison,.comparison{grid-template-columns:1fr}.comparison>section,.batch-current .comparison>section{padding:18px}.batch-action-footer .btn{font-size:12px;padding:10px 12px}.batch-setup-footer>.btn{width:100%;font-size:13px}.versions-layout{display:block}.version-list{max-height:170px;border-right:0;border-bottom:1px solid var(--line)}.version-item{display:inline-block;width:auto;min-width:140px}}

/* Deliberate accents and readable mobile status. */
.btn.primary,.btn.primary:hover:not(:disabled){color:#fff}.brand-mark{color:#fff;background:#7257b7}.modal::backdrop{background:#2730445c;backdrop-filter:blur(5px)}.modal{box-shadow:0 25px 90px #25344d26}.topbar{background:#fff}.manuscript-panel,.modal,.modal-heading,.modal-footer{background:#fff}.manuscript{max-width:1080px}.chapter-title{color:#273247}.chapter-content{color:#303b4f}.chapter-item.active{background:#eee9f7;border-color:#ded4f0}.chapter-item.active strong,.chapter-item.active .chapter-index{color:#63449f}.segmented button.active{background:#fff;color:#63449f}.assistant-tabs button.active{color:#674aa6}.comparison>section:last-child{background:#f8f5fc;border-color:#e0d7ed}.comparison>section{background:#f7f9fc;border-color:#e1e7f0}.comparison pre{color:#374358}.comparison>section:last-child h3{color:#705699}.file-drop{background:#f8f6fc;border-color:#bdafd5;color:#654e8d}.file-drop:hover,.file-drop.is-dragover{background:#eee8f8;border-color:#9178b8}.batch-item.current{background:#f0ebf8;border-color:#dbd0eb}.batch-item.applied .batch-item-meta,.job-status.completed{color:#33836e}.test-result{color:#33836e}.test-result.error{color:var(--danger)}.toast{background:#fff;color:#3b3450;border-color:#ddd4eb;box-shadow:0 8px 30px #27344d20}.toast.error{background:#fff4f5;border-color:#e5b8c1;color:#944354}.conflict-banner,.result-warning{background:#fff9ed;border-color:#ebd8ad;color:#866236}.batch-finish>span{background:#eaf6f0;color:#398366;border-color:#c6e5d8}.btn.quiet:hover:not(:disabled){background:#f0f2f7}.text-button:hover{color:#50318d}.library-empty{background:radial-gradient(ellipse at 50% 0,#a188d00a,transparent 65%),#fff}.library-primary-actions .btn:not(.primary){background:#fff}.nav-link.active{background:#f0edf7;color:#634895}.nav-link{color:#69788f}.icon-button:hover{background:#eef1f7}.chapter-content::placeholder{color:#9aa4b5}.topbar .brand{font-weight:650}.editor-toolbar{background:#fff}.assistant-panel,.chapters-panel{background:#f6f7fb}.memory-card,.job-card{background:#fff}.ai-instruction{background:#fff}.promotion-options{background:#f7f5fb}.book-cover{background:#78648d;color:#fff}.book-cover:after{border-color:#ffffff33}.book-spine{background:#5a426d}.login-form-wrap{background:#fff}.login-story{background:radial-gradient(ellipse at 20% 70%,#bba3d522,transparent 70%),#f3f0f7}
@media(max-width:480px){.editor-actions .save-state{display:inline-flex;align-items:center;position:static;width:100%;order:2;margin-top:4px;font-size:11px}.editor-actions .save-state:before{width:5px;height:5px}.brand small{display:none}}

/* Shared visual refinements: typography, quiet surfaces, and comfortable controls. */
.chapter-content.is-sized{overflow-y:hidden;resize:none;flex:none}
.novel-card{display:flex;flex-direction:column}.novel-card-main{flex:1}.novel-card-footer{flex-shrink:0}
:root{--paper:#f6f7fa;--ink:#273244;--muted:#707d90;--line:#e3e7ee;--green:#7057ac;--green-dark:#5e4596;--green-light:#f0ecf7;--serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","Microsoft YaHei",serif}
body{-webkit-font-smoothing:antialiased}*{scrollbar-width:thin;scrollbar-color:#c4cad5 transparent}::selection{background:#e5ddf4;color:#31214f}
.ui-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;vertical-align:middle;pointer-events:none;fill:none;stroke:currentColor}
button{touch-action:manipulation}.btn{min-height:44px;font-size:14px;font-weight:550;border-color:#dce1e9;background:#fff;gap:8px;box-shadow:0 1px 2px #1c283d04;transition:background .16s,border-color .16s,box-shadow .16s}
.btn:hover:not(:disabled){border-color:#bbb0d0;background:#faf9fc;box-shadow:0 2px 6px #2a1c4407}.btn.primary{box-shadow:0 2px 4px #48326515;background:var(--green);border-color:var(--green)}.btn.primary:hover:not(:disabled){background:var(--green-dark);box-shadow:0 4px 10px #48326520}.btn.quiet{box-shadow:none;background:transparent;border-color:transparent;color:#566174}.btn.quiet:hover:not(:disabled){background:#eceff5;border-color:transparent}.btn.small{min-height:38px}.icon-button{width:38px;height:38px;color:#6e788a}.icon-button .ui-icon{width:19px;height:19px}.text-button{line-height:1.6;text-underline-offset:4px}.text-button:hover{text-decoration:underline}button:disabled{opacity:.48}.count{background:#eef0f5;color:#717b8d;border:0;border-radius:6px;font-weight:500}
input,textarea,select{background:#fff;border-color:#dce2ea;border-radius:9px;font-size:14px;padding:11px 13px;color:var(--ink);line-height:1.65}input:hover,textarea:hover,select:hover{border-color:#c8cddd}input:focus,textarea:focus,select:focus{border-color:#9681bb;box-shadow:0 0 0 3px #7057ac12}input::placeholder,textarea::placeholder{color:#8d96a6;opacity:1}input[type=checkbox]{accent-color:var(--green)}.subtle,.field-hint{color:var(--muted);font-size:12px;line-height:1.8}
.topbar{height:72px;border-color:var(--line);gap:44px}.brand-mark{background:var(--green);width:37px;height:37px;border-radius:11px;font-size:24px}.topbar .brand{font-size:21px}.brand small{font-size:10px;font-weight:400;color:#8a92a0;letter-spacing:1px}.nav-link{font-size:14px;min-height:40px;padding:10px 17px;border-radius:9px}.nav-link:hover{background:#f5f6fa;color:#4e4265}.nav-link.active{background:#f0ecf7;color:#654c99}.avatar{background:#f5f4f8;color:#766b8b;width:36px;height:36px}.account-menu{background:#fff;border-color:var(--line);box-shadow:0 12px 40px #28354b12}.account-menu button{min-height:42px}
.library-view{max-width:1380px;padding:56px 48px 0;min-height:calc(100dvh - 72px)}.library-heading{margin-bottom:44px}.library-heading h1{font-size:32px;font-weight:600;letter-spacing:-.6px;margin-bottom:12px}.library-heading .muted{font-size:14px}.library-heading .btn{min-height:44px;font-size:14px;padding:11px 18px}.library-section-head{margin-bottom:20px}.library-section-head h2{font-size:16px}.novel-grid{gap:22px}.novel-card{border-color:var(--line);background:#fff;border-radius:14px;box-shadow:0 2px 5px #25314903}.novel-card:hover{transform:translateY(-2px);border-color:#cec4e0;box-shadow:0 9px 24px #2531490a}.novel-card-main{padding:20px 22px 16px}.novel-card-cover{height:150px;background:linear-gradient(125deg,#ece6f2,#f7f4fa);border:0;border-left:4px solid #c9bad9;border-radius:4px 10px 10px 4px;margin-bottom:22px}.novel-card-cover:before,.novel-card-cover:after{border-color:#bdaacf38}.novel-card-cover span{font-family:var(--serif);font-size:27px;color:#685379;letter-spacing:4px;margin-left:24px}.novel-card:nth-child(3n+2) .novel-card-cover{background:linear-gradient(125deg,#e8efef,#f3f7f7);border-left-color:#bdcfce}.novel-card:nth-child(3n) .novel-card-cover{background:linear-gradient(125deg,#f0e9e4,#faf6f2);border-left-color:#d7c5b8}.novel-card h3{font-size:19px;line-height:1.6;letter-spacing:0;margin:10px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.novel-card p{font-size:13px;line-height:1.9;min-height:49px}.novel-genre{font-size:11px;background:#f4f1f8;color:#7a638f;border:0;border-radius:5px;padding:4px 7px}.novel-card-footer{margin:0 22px;padding:13px 0;border-color:#edf0f5}.novel-card-footer .text-button{color:#8c94a2}.novel-card-footer .text-button:hover{color:#645078}.library-footer{color:#8a94a3;font-size:11px;padding-top:36px}
.library-empty{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);column-gap:56px;align-content:center;justify-content:initial;text-align:left;min-height:350px;padding:52px 10%;background:linear-gradient(115deg,#f7f4fb 0,#fff 52%);border:1px solid var(--line);border-radius:16px}.empty-illustration{grid-column:1;grid-row:1/4;justify-self:center;align-self:center;width:100px;height:126px;margin:0;transform:rotate(-9deg);background:#fcfafe;border:1px solid #d5cadf;border-radius:4px 11px 11px 4px;box-shadow:5px 5px 0 #eee8f3,6px 6px 0 #c7b8d5,13px 16px 22px #6151770d}.empty-illustration:before{left:11px;border-color:#dfd4e8}.empty-illustration span{top:27px;font-size:35px;color:#887099;margin-left:30px}.empty-illustration i{width:30px;left:40px;bottom:24px;border-color:#c5b7d2}.library-empty h2,.library-empty p,.library-empty .empty-actions{grid-column:2}.library-empty h2{font-size:24px;font-weight:550;letter-spacing:0;line-height:1.5}.library-empty p{font-size:14px;line-height:1.9;margin:14px 0 23px}.empty-actions{justify-content:flex-start;gap:8px;flex-wrap:wrap}.empty-actions .quiet{font-size:13px}
.editor-view{height:calc(100dvh - 72px)}.editor-toolbar{position:relative;min-height:62px;padding:10px 22px}.editor-actions{gap:3px}.editor-actions .btn{font-size:13px;padding:9px 11px;min-height:38px}.editor-actions .btn .ui-icon{width:16px;height:16px;flex-basis:16px}.editor-breadcrumb{font-size:13px}.editor-breadcrumb .muted{color:#8a94a3;font-size:12px}.batch-entry{background:#f1edf7;border-color:#e1d8ed;color:#725695}.save-state{font-size:12px;color:#7b8c86;margin-right:10px}.save-state:before{background:#64a18a;width:5px;height:5px}.save-state.saving:before{background:#c6a15b}.save-state.error:before{background:var(--danger)}.writing-layout{grid-template-columns:228px minmax(320px,1fr) 332px}.chapters-panel{background:#f8f9fc;padding:24px 12px 18px}.panel-heading h2{font-size:13px}.chapter-item{padding:12px 11px;gap:10px;border-radius:8px;margin-bottom:5px}.chapter-index{color:#a0a8b6;font-size:11px}.chapter-item strong{font-size:13px;font-weight:500;color:#566173}.chapter-item small{font-size:11px;color:#9099a9;margin-top:5px}.chapter-item.active{background:#eee9f6;border-color:#e0d8ec;box-shadow:inset 2px 0 0 #9d88c0}.chapter-item.active strong{color:#664c90}.chapter-item:hover:not(.active){background:#eef1f6}.chapter-panel-bottom>span{color:#8994a4}.manuscript{padding:40px clamp(32px,4vw,70px) 24px;max-width:940px}.manuscript-meta{margin-bottom:20px}.manuscript-meta .eyebrow{font-size:12px;font-weight:400;color:#97a0ae;letter-spacing:1px}.manuscript-meta .subtle{color:#97a0ae}.chapter-title{font-family:inherit;font-size:28px;font-weight:600;letter-spacing:0;line-height:1.6;margin-bottom:23px}.chapter-title:hover,.chapter-content:hover{border-color:transparent}.chapter-outline{background:#f8f9fb;border-color:#edf0f4;border-radius:8px;margin-bottom:28px}.chapter-outline summary{color:#788497;font-size:12px;padding:11px 13px}.chapter-outline summary span{color:#9ba3b0;font-size:11px}.chapter-content{font-family:var(--serif);font-size:18px;line-height:2;letter-spacing:.25px;color:#384355;min-height:390px}.chapter-content::placeholder{font-family:inherit;font-size:17px;color:#a4acb9}.manuscript-footer{font-size:11px;color:#9099a7;margin-top:30px}.manuscript-footer .text-button{font-size:11px;color:#91839f}
.assistant-panel{background:#fafbfc}.assistant-tabs{height:56px;padding:0 22px;gap:22px}.assistant-tabs button{font-size:13px;display:inline-flex;align-items:center;gap:7px;color:#8a94a4}.assistant-tabs .ui-icon{width:16px;height:16px;flex-basis:16px}.assistant-tabs button.active{color:#715695}.assistant-tabs button.active:after{height:2px;bottom:-1px;border-radius:2px}.ai-panel,.memory-panel{padding:22px}.assistant-intro{padding-bottom:18px}.assistant-intro h2{display:none}.assistant-intro p{font-size:12px;color:#8490a0;line-height:1.9}.segmented{background:#f0f2f6;border-color:#e4e8ef;padding:4px;border-radius:10px}.segmented button{font-size:13px;padding:9px 5px}.segmented button.active{box-shadow:0 1px 4px #28334d0c}.selection-info{font-size:11px;color:#8893a2;margin:10px 0 20px}.instruction-label{font-size:13px;color:#536074;margin-bottom:9px}.ai-instruction{min-height:148px;font-size:14px;line-height:1.85;resize:vertical}.ai-instruction::placeholder{font-size:13px;color:#929cab}.prompt-chips{gap:6px;margin:12px 0 20px}.prompt-chips button{font-size:11px;color:#887795;border-color:#e6e1ec;border-radius:6px;background:#fff;padding:6px 8px;line-height:1.6}.prompt-chips button:hover{background:#f2edf7;border-color:#cfbedf}.promotion-options{background:#fff;border-color:#e6e8ee;padding:11px 12px;border-radius:8px;margin-bottom:20px}.promotion-options>summary{font-size:12px;color:#7b7288}.promotion-options>summary span{font-size:11px;color:#a3a4ad}.promotion-options label{font-size:12px;color:#7b7188}.assistant-note{font-size:11px;line-height:1.8;color:#97a0ae;margin:11px 0 24px;text-align:center}.task-section{padding-top:20px}.mini-heading{margin-bottom:14px}.mini-heading h3{font-size:13px;color:#778396}.mini-heading .text-button{font-size:11px;color:#8f7e9f}.job-card{border-color:#e9ecf2;border-radius:9px;padding:13px 14px;box-shadow:0 1px 2px #27344d02}.job-card-head{font-size:12px}.job-status{font-size:10px;border-radius:4px;background:#f1f3f7;padding:2px 6px;color:#8691a0;white-space:nowrap}.job-status.completed{background:#eff7f3;color:#608d77}.job-status.running{background:#f1ecf8;color:#876aaa}.job-status.failed{background:#fcf0f0;color:#ac6870}.job-card>p{font-size:11px;color:#929baa;line-height:1.8}.job-card-actions{margin-top:12px}.job-card-actions .text-button{font-size:11px}.memory-intro h2{font-size:17px}.memory-intro p{font-size:13px;color:#8490a0}
.modal{border-color:#e1e4ec;border-radius:16px;box-shadow:0 24px 80px #17203324;max-height:calc(100dvh - 64px);overscroll-behavior:contain;scroll-padding-top:100px;scroll-padding-bottom:90px}.modal::backdrop{background:#29334644;backdrop-filter:blur(4px)}.modal-heading{align-items:center;padding:23px 28px;border-color:#edf0f5}.modal-heading h2{font-family:inherit;font-size:21px;font-weight:600;margin:0;line-height:1.5;letter-spacing:0}.modal-heading .icon-button{color:#8c95a5}.modal-description{font-size:12px;line-height:1.8;color:#8b95a5;margin-top:5px}.modal-body{padding:26px 28px}.modal-body>.muted{font-size:13px;line-height:1.9;color:#7d899b;margin-bottom:23px}.modal label{font-size:13px;font-weight:550;color:#5c687b}.modal label>input,.modal label>textarea,.modal label>select{font-size:14px;font-weight:400;background:#fff;margin-top:8px}.modal-footer{padding:17px 28px;gap:10px;border-color:#e9edf3;box-shadow:0 -6px 18px #26384a03}.modal-footer .btn{font-size:13px;min-height:42px}.modal.wide-modal{width:min(1180px,calc(100vw - 64px))}.modal.compact{width:min(580px,calc(100vw - 40px))}#novel-dialog{width:min(790px,calc(100vw - 40px))}#novel-form>.modal-body{padding-top:28px;padding-bottom:30px}.form-section{min-width:0;border:1px solid #e8ebf2;border-radius:11px;padding:18px 20px 22px;margin:0 0 26px;background:#fff}.form-section:last-of-type{margin-bottom:0}.form-section-heading{font-size:14px;font-weight:600;color:#645179;padding:0 8px;margin-left:-8px;line-height:1.7}.form-section>.field-hint{margin:0 0 17px;color:#8c96a6}.form-section>.form-row{margin-top:0}.form-section .form-row>label{margin-top:0}.form-section .form-row+label{margin-top:19px}.form-section .form-row{gap:17px}.romance-profile.form-section{background:#fdfcfe}.form-section .writing-target-fields{gap:16px}.form-section label+label{margin-top:20px}.form-section .form-row label+label,.form-section .writing-target-fields label+label{margin-top:0}.form-section .form-row{margin-bottom:0}.form-section .form-row+label{margin-top:20px}.file-drop{border:1px dashed #c7b9db;background:#fbf9fe;border-radius:11px;padding:29px 20px;color:#7b6098;line-height:1.8}.file-drop>.ui-icon{display:block;width:26px;height:26px;margin:0 auto 9px}.file-drop>.field-hint{font-size:12px;color:#9c8aaa;font-weight:400}.file-drop:hover,.file-drop.is-dragover{background:#f2edf8;border-color:#9e83bd}.import-preview{background:#f8f9fc;border-color:#e5e9f0;padding:17px;border-radius:9px}.import-preview h3{font-size:13px;color:#617087}.import-preview li{font-size:13px;border-color:#e9edf3}.import-preview li small{font-size:11px;color:#929cac}.import-preview .field-hint{color:#8b96a7}.checkbox-label{font-size:13px!important;font-weight:500!important}.checkbox-label small{font-size:12px;color:#8c96a6}.reference-upload-actions{position:sticky;bottom:-26px;z-index:2;background:#fff;margin:22px -28px -26px;padding:17px 28px;border-top:1px solid var(--line);box-shadow:0 -8px 20px #fff}.reference-upload-actions .btn{font-size:13px}.reference-intro{color:#8290a3}.comparison>section{background:#f9fafc;border-color:#e5e9f0;border-radius:11px}.comparison>section:last-child{background:#fcfaff;border-color:#e3dced}.comparison pre{font-family:var(--serif);font-size:16px;color:#475469;line-height:1.95;scrollbar-gutter:stable}.comparison h3{font-size:12px;color:#8a94a4;font-weight:500}.comparison>section:last-child h3{color:#8e77a4}.batch-current .comparison pre{font-size:16px}.batch-body{padding:26px 28px}.batch-chapter-select{background:#f9fafc;border-color:#e7ebf2}.batch-checkbox-label:hover{background:#f0edf7;border-radius:6px}.batch-chapter-select .mini-heading h3{font-size:13px}.batch-setup-grid{gap:26px}.batch-item.current{background:#f3eff9}.batch-history{background:#faf8fc;border-color:#e4ddeb}.version-item.active{background:#f1ebf8}.version-item strong{font-size:13px}.version-item small{color:#8d97a8}.toast{font-size:13px;border-radius:10px;line-height:1.7}
@media(min-width:1700px){.writing-layout{grid-template-columns:250px minmax(420px,1fr) 366px}.ai-panel,.memory-panel{padding:26px}.manuscript{padding-left:66px;padding-right:66px}}
@media(max-width:1200px){.writing-layout{grid-template-columns:192px minmax(280px,1fr) 296px}.editor-actions .btn{font-size:12px;padding:8px}.manuscript{padding:32px 30px 24px}.ai-panel,.memory-panel{padding:20px 17px}.library-view{padding-left:32px;padding-right:32px}.library-empty{column-gap:34px;padding:44px 8%}.assistant-tabs{padding:0 18px;gap:19px}}
@media(max-width:1000px){.writing-layout{grid-template-columns:164px minmax(260px,1fr) 276px}.chapter-item{padding:11px 8px;gap:7px}.chapter-item strong{font-size:12px}.manuscript{padding:30px 25px}.library-empty{column-gap:24px;padding:40px 6%}.library-empty h2{font-size:22px}.empty-actions{gap:6px}.empty-actions .btn{font-size:12px;padding:10px 12px}.library-heading h1{font-size:30px}}
@media(max-width:800px){.topbar{height:60px;padding:0 16px;gap:20px}.topbar .brand{font-size:19px;gap:8px}.brand-mark{width:33px;height:33px;font-size:22px;border-radius:10px}.brand small{display:none}.top-nav{gap:2px}.nav-link{font-size:12px;padding:10px 11px;min-height:40px}.avatar{width:34px;height:34px}.library-view{padding:32px 24px 0;min-height:calc(100dvh - 60px)}.library-heading{margin-bottom:32px;gap:18px}.library-heading h1{font-size:28px}.library-heading .muted{font-size:13px}.library-primary-actions{margin-top:0}.library-empty{min-height:360px;padding:34px 24px;column-gap:24px;grid-template-columns:minmax(100px,.6fr) minmax(0,1.4fr)}.empty-illustration{width:74px;height:94px}.empty-illustration span{font-size:29px;top:17px;margin-left:20px}.empty-illustration i{left:29px;width:23px;bottom:17px}.editor-view{height:calc(100dvh - 60px)}.editor-toolbar{padding:6px 12px;gap:2px;min-height:78px;align-items:center}.editor-breadcrumb{width:100%;min-height:34px;padding-right:76px;gap:7px}.editor-breadcrumb>span:not(.breadcrumb-sep){font-size:13px;max-width:100%}.editor-breadcrumb .icon-button{width:30px;height:32px}.editor-actions{justify-content:flex-start;gap:1px;flex-wrap:nowrap;width:100%}.editor-actions .btn{font-size:12px;padding:7px 9px;min-height:38px;gap:6px}.editor-actions .save-state{display:inline-flex;position:absolute;top:15px;right:16px;margin:0;width:auto;order:0;font-size:11px;align-items:center}.editor-actions .save-state:before{width:5px;height:5px}.editor-actions .ui-icon{width:15px;height:15px;flex-basis:15px}.writing-layout{display:block}.mobile-panels{min-height:42px;padding:0 19px;gap:28px;background:#f8f9fc}.mobile-panels button{display:inline-flex;align-items:center;gap:7px;min-height:42px;font-size:12px}.mobile-panels .ui-icon{width:16px;height:16px;flex-basis:16px}.manuscript{padding:28px 27px 24px}.chapter-title{font-size:25px}.chapter-content{font-size:18px;line-height:1.95}.manuscript-meta{margin-bottom:18px}.chapter-outline{margin-bottom:24px}.chapters-panel.mobile-open{background:#fafbfe}.assistant-panel.mobile-open{background:#fafbfc;width:350px;max-width:92vw}.assistant-tabs{padding:0 23px}.ai-panel,.memory-panel{padding:21px 23px}.ai-instruction,.promotion-options input,.promotion-options textarea{font-size:16px}.prompt-chips button{min-height:36px}.modal,.modal.compact,.modal.wide-modal,#novel-dialog,.batch-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.modal-heading{padding:17px 20px;gap:12px}.modal-heading h2{font-size:20px}.modal-heading .icon-button{width:40px;height:40px}.modal-description{font-size:12px}.modal-body,.batch-body{padding:22px 20px}.modal label{font-size:13px}.modal label>input,.modal label>textarea,.modal label>select{font-size:16px}.modal-footer{padding:14px 20px}.modal-footer .btn{min-height:44px;font-size:13px}.form-section{padding:15px 16px 19px;margin-bottom:23px}.form-section-heading{font-size:14px}.reference-upload-actions{margin:20px -20px -22px;bottom:-22px;padding:14px 20px}.reference-upload-actions .btn{min-height:44px}.comparison pre,.batch-current .comparison pre{font-size:16px}.batch-checkbox-label{min-height:44px;font-size:14px}.batch-setup-footer>.btn,.batch-action-footer .btn{min-height:44px;font-size:13px}.library-footer{font-size:11px}}
@media(max-width:700px){.comparison,.batch-current .comparison{grid-template-columns:1fr;gap:18px}.comparison pre,.batch-current .comparison pre{max-height:none;overflow:visible;padding-right:0}.versions-layout{display:block}.version-list{display:flex;gap:8px;max-height:140px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}.version-item{width:160px;min-width:160px;margin:0}.version-preview{padding:20px}.form-row{flex-direction:column;gap:20px}.form-row>label{width:100%;margin-top:0}.form-section .form-row label+label{margin-top:0}.form-section .writing-target-fields{grid-template-columns:1fr;gap:18px}.form-section .writing-target-fields label+label{margin-top:0}}
@media(max-width:480px){.topbar{gap:13px;padding:0 14px}.nav-link{padding:9px 8px}.topbar .brand{font-size:18px}.library-view{padding:28px 20px 0}.library-primary-actions{width:100%;margin-top:20px;gap:8px}.library-primary-actions .btn{font-size:13px;flex:1;padding:10px 12px}.library-heading h1{font-size:27px}.library-empty{display:flex;text-align:center;align-items:center;padding:34px 22px;min-height:376px;background:linear-gradient(160deg,#faf8fd,#fff 65%)}.empty-illustration{margin:0 0 26px}.library-empty h2{font-size:21px}.library-empty p{font-size:13px;margin:13px 0 23px}.empty-actions{flex-direction:column;gap:5px}.empty-actions .btn{min-height:44px;font-size:13px;padding:10px 17px}.novel-card-main{padding:20px}.novel-card-footer{margin:0 20px}.editor-actions .btn{padding:7px 8px;font-size:11px}.editor-breadcrumb>span:not(.breadcrumb-sep){font-size:12px}.manuscript{padding:25px 22px 23px}.chapter-title{font-size:24px}.chapter-content{font-size:17px}.manuscript-footer{font-size:10px;gap:8px}.manuscript-footer .text-button{font-size:10px;white-space:nowrap}.modal-heading,.modal-body,.batch-body{padding-left:17px;padding-right:17px}.modal-heading h2{font-size:19px}.modal-footer{padding:13px 17px;gap:7px}.modal-footer .btn{font-size:12px;padding:10px 12px}.modal-footer>div{gap:6px}.reference-upload-actions{margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px}.modal-description{line-height:1.7}.form-section{padding:14px 14px 18px}.batch-action-footer>div{gap:7px}.comparison>section,.batch-current .comparison>section{padding:17px}.file-drop{padding:24px 16px}.file-drop>.field-hint{font-size:11px}}

/* Maintain comfortable touch targets and stacked form spacing. */
@media(max-width:800px){.modal-heading .icon-button{width:44px;height:44px}.editor-actions .btn{min-height:44px}.mobile-panels,.mobile-panels button{min-height:44px}}
@media(max-width:700px){.form-row{display:flex;flex-direction:column;gap:20px}.form-row>label{width:100%;margin-top:0}}

.reference-upload-actions{bottom:0}
