:root{--bg:#f5f6f8;--paper:#fff;--ink:#242731;--muted:#858a99;--line:#e9ebf1;--accent:#5964d8;--accent-soft:#eff0fd;--green:#469278;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,[role=button]:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a9aff3;outline-offset:3px}button{transition:background .16s,box-shadow .16s}input,select{width:100%;min-width:0;border:1px solid #e2e5ee;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink)}input::placeholder{color:#a4a8b4}select{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:222px;flex-shrink:0;background:#fcfcfd;border-right:1px solid var(--line);padding:34px 20px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:12px;margin:0 12px 50px;font-size:23px;font-weight:700;letter-spacing:2px}.brand-icon{display:grid;place-items:center;background:var(--accent);color:#fff;width:40px;height:44px;border-radius:10px;font-size:23px;box-shadow:0 5px 12px #5964d824;transform:rotate(-4deg)}.brand small{display:block;font-size:8px;letter-spacing:1.6px;color:#9195a6;margin-top:5px;font-weight:500}.nav-label{font-size:10px;letter-spacing:2px;color:#999dab;margin:0 16px 15px}.tool-button{width:100%;border:0;border-radius:8px;display:flex;align-items:center;gap:11px;padding:13px 14px;background:transparent;text-align:left;margin:6px 0;color:#9397a5}.tool-button.active{background:#ededfb;color:#525dcb;font-weight:600}.tool-button .tool-icon{font-size:19px;line-height:1}.tool-button .coming{font-size:9px;padding:3px 4px;color:#a6a9b5;background:#f0f1f5;border-radius:3px;margin-left:auto;font-weight:400}.tool-button:disabled{opacity:1;cursor:default}.sidebar-note{margin: auto 10px 23px;padding-top:80px}.note-icon{color:#9ca3cf;font-size:30px;display:block;margin-bottom:12px}.sidebar-note strong{font-size:12px;font-weight:500;color:#6d7385}.sidebar-note p{font-size:11px;line-height:1.95;color:#a0a4b2}.version{display:inline-block;font-size:10px;color:#9499ac;border:1px solid #e8eaf0;padding:5px 9px;border-radius:4px;margin-top:6px}.privacy{font-size:10px;color:#8b91a1;border-top:1px solid var(--line);padding:18px 0 0 8px;white-space:nowrap}.green-dot{width:6px;height:6px;border-radius:50%;background:#6cab91;display:inline-block;margin-right:6px}main{margin-left:222px;flex:1;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 42px;background:#fafbfc}.breadcrumb{font-size:12px;color:#8c91a0}.breadcrumb span{margin:0 15px;color:#c4c7d0}.breadcrumb strong{font-weight:500;color:#515767}.text-button{border:0;background:none;padding:5px 0;font-size:12px;color:#777e91}.text-button span{margin-left:8px}.text-button:hover{color:var(--accent)}.text-button.accent{color:var(--accent)}.workspace{max-width:1450px;margin:0 auto;padding:38px 42px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.eyebrow{font-size:9px;letter-spacing:2.3px;color:#969cb2;font-weight:600;margin-bottom:12px}h1{font-size:29px;font-weight:650;letter-spacing:.5px;margin:0 0 12px;line-height:1.5}h1 span{color:var(--accent)}.page-heading p{font-size:12px;color:#8a90a1;margin:0}.local-badge{flex-shrink:0;display:flex;align-items:center;gap:6px;border:1px solid #dee7e4;background:#f3f8f6;color:#6a9582;font-size:10px;padding:8px 10px;border-radius:20px}.local-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6}.steps{display:flex;align-items:center;gap:17px;margin-bottom:24px}.step{font-size:11px;color:#a2a6b3;display:flex;align-items:center;gap:8px}.step b{font-size:9px;border:1px solid #e1e4ec;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-weight:500;color:#9298ac}.step.active{color:#606ad0}.step.active b{background:var(--accent);border-color:var(--accent);color:#fff}.steps i{width:56px;height:1px;background:#dde0eb}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:23px;align-items:start}.main-column{display:flex;flex-direction:column;gap:20px;min-width:0}.card{background:var(--paper);border:1px solid #e5e7ee;border-radius:12px;box-shadow:0 2px 3px #20253802;padding:23px}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:10px}.card-heading h2{font-size:14px;margin:0;display:flex;align-items:center;gap:10px;font-weight:600}.section-number{font-size:10px;color:#a4aac2;font-weight:500;letter-spacing:1px}.tiny-label{font-size:9px;color:#a5a9b8;letter-spacing:.5px}.dropzone{background:#fafaff;border:1px dashed #cbd0ed;border-radius:9px;text-align:center;padding:26px 12px;cursor:pointer;transition:background .16s,border-color .16s}.dropzone:hover,.dropzone.dragging{background:#f0f1ff;border-color:var(--accent)}.upload-icon{width:47px;height:52px;margin:0 auto 10px;background:#f0f1fc;border-radius:11px;display:grid;place-items:center}.upload-icon svg{height:32px;width:32px;fill:none;stroke:#7c86d8;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.dropzone h3{font-size:15px;font-weight:500;margin:10px 0 9px;overflow-wrap:anywhere}.dropzone p{font-size:12px;color:#8d93a7;margin:0 0 16px}.upload-limit{font-size:10px;color:#a3a8b8}.import-footer{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:10px}.import-footer>span{font-size:10px;color:#a0a5b5;overflow-wrap:anywhere}.rule-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}label{font-size:11px;color:#646b7f;display:block}label input,label select{margin-top:8px;font-size:12px}.rule-fields select{padding:10px 11px}.rule-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:17px}.rule-bottom p{font-size:10px;line-height:1.8;color:#999fb1;margin:0}.rule-bottom p span{font-size:14px;color:#979ed6;margin-right:5px}.secondary-button{white-space:nowrap;font-size:11px;color:#6670ce;background:#f5f5fd;border:1px solid #e1e4f6;border-radius:6px;padding:9px 11px}.secondary-button:hover:not(:disabled){background:#e9ebfc}.secondary-button span{margin-left:7px}#custom-wrap{margin-top:15px}.field-hint{font-size:10px;color:#959bad;line-height:1.8;margin:8px 0 0}.status-pill{color:#a1a7b7;font-size:9px;background:#f5f6f9;padding:5px 8px;border-radius:4px}.status-pill.ready{color:#5b957a;background:#eff7f1}.empty-preview{min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a7adbc}.empty-lines{width:44px;height:45px;border:1px solid #e4e6ef;border-radius:5px;transform:rotate(-5deg);padding:11px 9px;background:#fafbfe}.empty-lines span{height:2px;width:100%;background:#dfe3ef;display:block;margin:4px 0}.empty-lines span:last-child{width:60%}.empty-preview h3{font-size:13px;font-weight:400;margin:19px 0 7px}.empty-preview p{font-size:10px;color:#a8aebd;margin:0;text-align:center;line-height:1.8}.export-column{display:flex;flex-direction:column;gap:18px;position:sticky;top:22px}.export-card .card-heading{margin-bottom:9px}.export-icon{font-size:17px;color:#a3a9c7}.card-description{font-size:10px;color:#969cad;margin:0 0 22px;line-height:1.7}.format-picker{border:0;margin:0;padding:0;display:grid;gap:10px}.format-option{display:flex;align-items:center;gap:10px;position:relative;border:1px solid #e7e9f0;border-radius:8px;padding:15px 10px;cursor:pointer}.format-option:has(input:checked){border-color:#8c96e5;background:#f7f7ff;box-shadow:0 0 0 1px #8c96e517}.format-option input{position:absolute;opacity:0;width:1px;height:1px}.format-option:focus-within{outline:2px solid #a9aff3;outline-offset:2px}.format-option strong{font-size:12px;font-weight:500;display:block;color:#535a71}.format-option small{font-size:9px;color:#9a9fb1;display:block;margin-top:6px}.format-icon{width:31px;height:35px;border-radius:5px;background:#eaecfc;color:#7883d7;font-size:23px;display:grid;place-items:center;flex-shrink:0}.txt-icon{background:#f0f2f5;color:#8c95aa;font-size:21px;display:flex;justify-content:center;align-items:center}.txt-icon span{font-size:11px;align-self:flex-end;margin-bottom:5px}.radio-dot{height:13px;width:13px;border:1px solid #d8dce6;display:block;flex-shrink:0;margin-left:auto;border-radius:50%}.format-option input:checked~.radio-dot{border:4px solid var(--accent)}.export-fields{display:grid;gap:17px;margin:23px 0}.optional{color:#aeb3c0;font-size:9px;margin-left:5px}.export-fields input{font-size:12px;padding:11px 10px}.export-summary{border-top:1px solid #eef0f5;padding-top:17px;font-size:10px;color:#979eaf;margin-bottom:15px;line-height:1.8}.primary-button{width:100%;border:0;background:var(--accent);color:#fff;padding:13px 10px;border-radius:7px;font-size:12px;box-shadow:0 4px 8px #5964d81a}.primary-button:hover:not(:disabled){background:#4954c3;box-shadow:0 4px 12px #5964d83a}.primary-button span{margin-right:8px;font-size:16px}.primary-button:disabled{background:#adb3e8;opacity:.7}.export-tip{text-align:center;font-size:9px;color:#a4aabc;margin:13px 0 0;line-height:1.8}.info-card{display:flex;gap:10px;padding:2px 8px}.info-mark{width:15px;height:15px;border:1px solid #a6adbc;border-radius:50%;font-size:10px;text-align:center;color:#929aaf;flex-shrink:0}.info-card strong{font-size:10px;color:#7c8599;font-weight:500}.info-card p{font-size:10px;line-height:1.9;color:#a0a7b6;margin:7px 0 0}.future-card{border:1px solid #e3e6f0;background:linear-gradient(130deg,#eef0f9,#f6f6fa);border-radius:9px;padding:19px 20px}.future-card>span{font-size:8px;letter-spacing:2px;color:#969fbe}.future-card h3{font-size:13px;font-weight:500;margin:10px 0;color:#747e9d}.future-card p{font-size:10px;line-height:1.9;color:#9aA2b6}.future-tags{display:flex;gap:7px;margin-top:12px}.future-tags span{font-size:9px;border:1px solid #dfe3ee;padding:4px 7px;border-radius:4px;color:#a1a8bb}.footer{display:flex;justify-content:space-between;gap:10px;padding:28px 0 24px;font-size:9px;color:#a9aebb}.footer i{margin:0 8px;font-style:normal}.stats{display:flex;gap:30px;padding:0 0 20px}.stats>div{display:flex;flex-direction:column;gap:5px}.stats strong{font-size:23px;font-weight:600;letter-spacing:-.5px;color:#555f9d;font-variant-numeric:tabular-nums}.stats span{font-size:10px;color:#a0a6b5}.book-preview{display:grid;grid-template-columns:210px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}.chapter-pane{background:#fafbfd;border-right:1px solid var(--line);min-width:0;display:flex;flex-direction:column}.search-box{display:flex;align-items:center;margin:11px;border:1px solid var(--line);background:white;border-radius:5px;padding:0 7px;color:#939ab1}.search-box input{border:0;font-size:11px;padding:9px 5px;outline-offset:0;width:100%}.search-box span{font-size:19px}.chapter-list{height:390px;overflow:auto;padding:0 6px}.chapter-item{width:100%;display:block;border:0;background:transparent;text-align:left;border-radius:5px;margin:2px 0;padding:10px 9px;color:#777f94;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-item:hover{background:#f0f1fa}.chapter-item.selected{color:#535ed0;background:#eceefa}.chapter-item .chapter-index{display:inline-block;min-width:25px;font-size:9px;color:#a4abc1;margin-right:6px}.pagination{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8e97aa;border-top:1px solid var(--line);padding:7px 10px;gap:5px;margin-top:auto}.pagination button{background:transparent;border:0;color:#6b75b3;font-size:14px;padding:3px 7px}.reading-pane{padding:19px 22px;min-width:0;max-height:500px;overflow:auto;background:#fffefa}.reading-label{font-size:9px;letter-spacing:1px;color:#aaa99f;display:flex;justify-content:space-between;gap:8px;margin-bottom:22px}.reading-label span{letter-spacing:0;white-space:nowrap}.title-edit-label{font-size:9px;color:#999caa}.title-edit-label span{font-size:8px;margin-left:7px;color:#b7b9c2}.chapter-title{background:transparent;border:0;border-bottom:1px solid #ebe9e0;border-radius:0;padding:10px 0 14px;font-family:serif;font-size:18px;margin:3px 0 15px;color:#3d4050}.chapter-body{font-family:Georgia,"Songti SC","SimSun",serif;font-size:14px;line-height:2.2;white-space:pre-wrap;overflow-wrap:anywhere;color:#656661}.chapter-body p{margin:.7em 0}.warnings{border:1px solid #ece2c9;border-radius:6px;background:#fffcf4;padding:11px 12px;margin-bottom:17px;font-size:11px;color:#9b8350}.warnings summary{cursor:pointer}.warnings ul{padding-left:16px;line-height:1.9;max-height:160px;overflow:auto}.warnings button{background:transparent;border:0;color:#997f43;text-align:left;font-size:10px;padding:3px}.check-field{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.7}.check-field input{width:14px;height:14px;margin:0;accent-color:var(--accent)}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#30364c;color:#fff;font-size:12px;padding:13px 22px;border-radius:9px;box-shadow:0 5px 30px #1a21452b;max-width:min(90vw,600px);z-index:100;line-height:1.7}.toast.error{background:#8f4949}dialog{border:1px solid var(--line);border-radius:14px;max-width:530px;width:calc(100vw - 40px);padding:28px;color:var(--ink);box-shadow:0 30px 80px #22284430}dialog::backdrop{background:#242a4366;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:19px;margin:0}.dialog-heading button{border:0;background:#f3f4f8;border-radius:50%;width:28px;height:28px;font-size:20px;color:#8a91a5}.help-list{padding-left:20px;margin-top:25px}.help-list li{padding-left:7px;margin:18px 0;color:#5964d8}.help-list strong{font-size:13px}.help-list p,.help-note{color:#8d94a6;font-size:12px;line-height:1.9}.help-note{font-size:11px;border-top:1px solid var(--line);padding-top:16px}.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}.busy .dropzone{opacity:.6;pointer-events:none}
@media(min-width:1500px){.workspace{padding-top:45px}.dropzone{padding:34px 12px}.book-preview{grid-template-columns:245px minmax(0,1fr)}}
@media(max-width:1200px){.sidebar{width:190px;padding:28px 14px 18px}.brand{margin-left:8px}.brand small{font-size:7px}main{margin-left:190px}.workspace{padding:30px 25px 0}.topbar{padding:0 25px}.work-grid{grid-template-columns:minmax(0,1fr) 268px;gap:17px}.card{padding:19px}.book-preview{grid-template-columns:165px minmax(0,1fr)}h1{font-size:25px}.tiny-label{font-size:8px}.rule-bottom{align-items:flex-start}.rule-bottom p{max-width:240px}.stats{gap:25px}}
@media(max-width:1000px){.sidebar{width:170px;padding-left:10px;padding-right:10px}main{margin-left:170px}.brand{font-size:21px;gap:8px;margin-bottom:35px}.brand small{letter-spacing:1px}.nav-label{font-size:9px}.tool-button{padding:12px 9px;gap:8px;font-size:12px}.privacy{font-size:9px;padding-left:1px}.sidebar-note{margin-left:6px;margin-right:6px}.work-grid{grid-template-columns:minmax(0,1fr)}.export-column{position:static;display:grid;grid-template-columns:1fr 1fr}.export-card{grid-row:span 2}.info-card{padding:10px 3px}.future-card{align-self:end}.local-badge{font-size:9px}.book-preview{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:680px){.shell{display:block}.sidebar{position:static;width:100%;padding:17px 18px 12px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{font-size:21px;margin:0 0 15px}.brand-icon{height:35px;width:33px;font-size:20px}.brand small{font-size:7px;display:inline;margin-left:10px;letter-spacing:1px}.nav-label,.sidebar-note,.privacy{display:none}#tool-nav{display:flex;gap:7px;overflow:auto}.tool-button{width:auto;flex-shrink:0;margin:0;padding:9px 11px;font-size:11px}.tool-button .tool-icon{font-size:14px}.tool-button .coming{font-size:8px}.topbar{height:50px;padding:0 18px}.breadcrumb{font-size:10px}.text-button{font-size:11px}main{margin:0}.workspace{padding:26px 16px 0}.page-heading{gap:10px;margin-bottom:22px}.eyebrow{font-size:7px;letter-spacing:1.3px}h1{font-size:23px;letter-spacing:0;margin-bottom:9px}.page-heading p{font-size:10px;line-height:1.8}.local-badge{display:none}.steps{gap:10px;margin-bottom:19px}.step{font-size:10px;gap:6px}.steps i{width:25px}.work-grid{gap:18px}.card{padding:17px;border-radius:10px}.tiny-label{font-size:8px}.dropzone{padding:24px 8px}.upload-limit{font-size:9px}.rule-fields{gap:10px}.rule-bottom{gap:10px}.rule-bottom p{font-size:9px;max-width:220px}.secondary-button{font-size:10px;padding:9px}.export-column{display:flex}.future-card{width:100%}.info-card{padding:4px 8px}.export-card{order:-1}.stats{gap:28px}.stats strong{font-size:22px}.stats span{font-size:8px}.book-preview{grid-template-columns:minmax(0,1fr)}.chapter-pane{border-right:0;border-bottom:1px solid var(--line)}.chapter-list{height:170px}.reading-pane{max-height:420px;padding:20px 16px}.empty-preview{min-height:190px}.empty-preview p{font-size:9px}.footer{font-size:8px;padding-top:25px}.footer>span:last-child{display:none}.card-heading h2{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Let English labels wrap within the existing cards and responsive layout. */
.brand{font-size:16px;letter-spacing:0;gap:8px;margin-left:2px;margin-right:0}
.brand-icon{width:32px;flex-shrink:0}
.brand>span:last-child{min-width:0}
.brand small{display:block;font-size:7px;letter-spacing:.5px;line-height:1.5;margin-left:0}
.tool-name{min-width:0;overflow-wrap:anywhere}
.tool-icon,.coming{flex-shrink:0}
.privacy{white-space:normal;line-height:1.7;padding-left:0}
.card-heading,.import-footer,.rule-bottom{flex-wrap:wrap}
.card-heading h2{min-width:0}
.tiny-label{margin-left:auto}
.status-pill{max-width:100%;overflow-wrap:anywhere}
.import-footer .text-button{flex-shrink:0}
.rule-fields{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.rule-bottom p{flex:1;min-width:160px}
.rule-bottom .secondary-button{flex-shrink:0}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stats strong,.stats span{overflow-wrap:anywhere}
.format-option>span:not(.format-icon):not(.radio-dot){min-width:0;overflow-wrap:anywhere}
.future-tags{flex-wrap:wrap}
.export-column{min-width:0}
.export-fields .field-hint{display:block}
.dialog-heading button{flex-shrink:0}
@media(max-width:680px){
 .steps{gap:7px;justify-content:space-between}
 .step{min-width:0;gap:5px;line-height:1.5}
 .step b{flex-shrink:0}
 .steps i{width:12px;flex-shrink:0}
 .breadcrumb span{margin:0 7px}
 .topbar{gap:10px}
 .topbar .text-button{flex-shrink:0}
 .rule-fields{grid-template-columns:minmax(0,1fr)}
 .rule-bottom p{max-width:none}
 .stats{gap:10px}
 .stats strong{font-size:20px}
}
/* Static reading content follows the converter in the document and layout. */
.page-heading>div:first-child{min-width:0}
.page-heading p{max-width:76ch;line-height:1.8}
.page-guide{display:grid;gap:20px;margin-top:32px;min-width:0}
.guide-card{color:#646b7f;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.guide-card h2{margin:0 0 16px;color:var(--ink);font-size:20px;line-height:1.4;font-weight:600}
.guide-card h3{margin:22px 0 10px;color:#535a71;font-size:14px;font-weight:600}
.guide-card p,.guide-card ol,.guide-card ul{max-width:80ch;margin:12px 0}
.guide-card ol,.guide-card ul{padding-left:23px}
.guide-card li{padding-left:4px;margin:7px 0}
.guide-card p:last-child,.guide-card ul:last-child{margin-bottom:0}
.guide-card pre{max-width:80ch;margin:10px 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:7px;background:#fafaff;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.guide-card code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}
.guide-card .guide-note{border-left:3px solid #cbd0ed;padding-left:13px;color:#777e91;font-size:13px}
.faq-card details{border-top:1px solid var(--line);padding:15px 0}
.faq-card details:last-child{padding-bottom:0}
.faq-card summary{color:#535a71;font-weight:500;cursor:pointer;line-height:1.7}
.faq-card summary::marker{color:var(--accent)}
.faq-card summary:focus-visible{outline:3px solid #a9aff3;outline-offset:3px;border-radius:3px}
@media(max-width:680px){
 .page-guide{margin-top:24px;gap:18px}
 .guide-card{font-size:13px}
 .guide-card h2{font-size:18px}
 .guide-card pre{padding:12px}
}
.not-found{width:calc(100% - 32px);max-width:640px;margin:12vh auto;padding:32px;line-height:1.8}
.not-found .primary-button{display:inline-block;width:auto;margin-top:12px}
