:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,sans-serif;color:#282b26;background:#f6f4ee;font-synthesis:none;font-weight:400;--accent:#456247;--muted:#85877d;--line:#e1e1d6;--paper:#fdfcf8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.4;cursor:not-allowed}button,input,select,a{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent)}input,select{min-width:0}button{transition:background .16s,color .16s,transform .16s}button:not(:disabled):active{transform:translateY(1px)}h1,h2,h3,p{margin:0}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650;letter-spacing:-1px;white-space:nowrap}.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:7px;background:var(--accent);color:#fff;font:italic 30px Georgia;letter-spacing:-7px;padding-right:6px}.brand-icon span{transform:translateY(3px)}.brand-caption{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:2px;margin-left:8px}.eyebrow{text-transform:uppercase;letter-spacing:2.5px;font-size:10px;font-weight:650;color:var(--muted)}.primary{background:var(--accent);color:#fff;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-radius:4px;font-size:13px;font-weight:550}.primary:hover{background:#344e36}.secondary{border:1px solid #b6c1b0;padding:12px 15px;border-radius:4px;color:var(--accent);font-size:12px}.secondary:hover{background:#e9ede3}.text-button{font-size:12px;color:var(--accent);padding:6px}.danger{color:#946459}.error{color:#aa4e3e!important;font-size:12px;line-height:1.6}.muted{color:var(--muted)}.login-page{min-height:100svh;padding:35px 5vw 20px;background:#f4f2e9}.login-main{max-width:1080px;margin:60px auto 40px;display:grid;grid-template-columns:1.2fr 1fr;gap:12vw;align-items:center}.login-intro h1{font-family:Songti SC,SimSun,serif;font-size:clamp(40px,4vw,64px);font-weight:500;line-height:1.35;letter-spacing:2px;margin:18px 0}.login-intro p{font-size:14px;line-height:2;color:#777b70}.book-art{position:relative;height:240px;width:270px;margin:40px auto 0;perspective:700px}.book-face{height:210px;width:150px;background:#d3dcc8;position:absolute;left:55px;top:5px;transform:rotate(-12deg) skewY(3deg);box-shadow:12px 12px #e6e2d5,18px 20px 25px #22222214;border-left:7px solid #adbea3;padding:20px;color:#456247;display:flex;flex-direction:column;justify-content:space-between}.book-face span{font-size:28px;font-weight:650;line-height:1.15;letter-spacing:-1px}.book-face small{font:10px serif;letter-spacing:2px}.sound-lines{position:absolute;right:-20px;bottom:50px;font-size:35px;letter-spacing:5px;color:#64805b;transform:rotate(-12deg)}.login-form{background:var(--paper);padding:40px 34px;border-top:2px solid var(--accent);box-shadow:0 8px 35px #22222206;animation:enter .4s ease}.login-form h2{font-size:25px;font-weight:500;margin:15px 0}.login-form>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:28px;overflow-wrap:anywhere}.login-form label{display:block;font-size:12px}.login-form input{width:100%;padding:14px;margin:10px 0 22px;border:1px solid var(--line);background:transparent;border-radius:3px}.login-form .primary{width:100%}.login-form>small{display:block;font-size:10px;color:var(--muted);margin-top:25px;line-height:1.7}.login-form .text-button{display:block;margin:12px auto}.login-page footer{text-align:center;font-size:10px;letter-spacing:3px;color:#989b8d}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:72px 1fr;min-height:100svh;padding-bottom:90px}.topbar{grid-column:1/-1;display:flex;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);gap:40px;background:#f9f8f3}.node-status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.node-status i{width:5px;height:5px;background:#aaa;border-radius:50%}.node-status.online i{background:#6d8b57}.account{margin-left:auto;display:flex;gap:14px;align-items:center;font-size:11px;color:#8b8e84}.account>span{max-width:180px;overflow:hidden;text-overflow:ellipsis}.shelf{padding:30px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f0f0e8}.shelf-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin-bottom:22px}.shelf-head h2{font-size:13px;font-weight:550}.shelf-head>span{font-size:10px;color:var(--muted)}.upload-button{width:100%;padding:12px;border:1px solid #cdd3c4;border-radius:4px;color:var(--accent);font-size:12px;text-align:left;display:flex;gap:12px;align-items:center;margin-bottom:22px}.upload-button:hover{background:#e6eade}.upload-button>span{font-size:18px}.shelf nav{display:flex;flex-direction:column;gap:5px}.shelf-book{padding:13px 8px;text-align:left;display:flex;gap:10px;border-radius:4px}.shelf-book.active{background:#e2e7d9;color:#344e36}.shelf-book:hover{background:#e9ece2}.book-index{font-size:9px;padding-top:3px;color:var(--muted)}.shelf-book strong{font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500}.shelf-book small{font-size:9px;display:block;margin-top:8px;color:var(--muted)}.shelf-foot{margin-top:auto;padding:40px 8px 10px;font-size:10px;line-height:2;color:#969a8d}.main-workspace{min-width:0;padding:32px 34px}.empty-workspace{max-width:850px;margin:5vh auto;padding:65px 50px;min-height:500px;position:relative;border:1px solid transparent}.empty-workspace.drag{border:1px dashed var(--accent);background:#e9eee0}.empty-workspace h1{font-family:Songti SC,SimSun,serif;font-weight:500;font-size:clamp(32px,4vw,55px);line-height:1.5;letter-spacing:2px;margin:20px 0}.empty-workspace p{font-size:13px;color:var(--muted);line-height:2.1;margin-bottom:32px}.empty-workspace .primary{min-width:190px;width:max-content}.empty-workspace>small{display:block;font-size:10px;color:#9a9d91;margin-top:16px}.empty-lines{position:absolute;right:0;bottom:100px;font-size:65px;letter-spacing:14px;color:#ccd4c2;transform:rotate(-10deg);pointer-events:none}.notice{background:#f2e5d8;border-left:2px solid #ac7552;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:20px}.notice button{font-size:20px}.book-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:28px}.book-heading h1{font-family:Songti SC,SimSun,serif;font-size:27px;font-weight:600;line-height:1.5;margin:10px 0}.book-heading p{font-size:10px;color:var(--muted)}.book-heading p span{padding:0 8px;color:#b7bbae}.reading-layout{display:grid;grid-template-columns:220px minmax(260px,1fr) 250px;border-top:1px solid var(--line);align-items:start}.section-label{display:flex;justify-content:space-between;align-items:center;height:55px;gap:12px}.section-label h2{font-size:12px;font-weight:600;white-space:nowrap}.section-label>span{font-size:10px;color:var(--muted)}.contents{padding-right:20px;min-width:0}.search{width:100%;padding:10px;border:1px solid var(--line);font-size:11px;background:#faf9f4;border-radius:3px}.selection-actions{display:flex;justify-content:space-between;padding:12px 0}.selection-actions button{font-size:10px;color:var(--accent);padding:2px}.chapter-list{height:560px;overflow:auto;scrollbar-width:thin;padding-bottom:20px}.chapter-row{display:flex;align-items:flex-start;padding:10px 6px;gap:8px;border-bottom:1px solid #e9e9df}.chapter-row.current{background:#e8ecdf;border-radius:3px}.chapter-row input{margin:4px 0 0;accent-color:var(--accent);width:12px;height:12px;flex:none}.chapter-row button{text-align:left;padding:0;flex:1}.chapter-row button span{font-size:11px;line-height:1.8;display:block}.chapter-row small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.chapter-ready{font-size:6px;color:var(--accent);padding-top:7px}.reader-column{border-left:1px solid var(--line);border-right:1px solid var(--line);min-width:0;background:#fbfaf6}.reader-column>.section-label{padding:0 25px;border-bottom:1px solid var(--line)}.reader{height:637px;overflow:auto;padding:30px 35px 50px;scrollbar-width:thin;font-family:Songti SC,"Noto Serif SC",SimSun,serif;line-height:2.1}.reader-kicker{font:11px system-ui;letter-spacing:4px;color:#9ca58e}.reader h2{font-size:24px;line-height:1.65;font-weight:500;margin:12px 0 28px}.reader p{font-size:16px;line-height:2.1;margin:0 -8px 18px;padding:2px 8px;border-left:2px solid transparent;transition:background .25s,border-color .25s;overflow-wrap:anywhere}.reader .paragraph-heading{font-size:20px;font-weight:550}.reader .footnote{font-size:12px;color:var(--muted)}.reader .speaking{background:#eaf0dc;border-left-color:var(--accent)}.voice-panel{padding-left:22px}.panel-note{font-size:10px;line-height:1.8;color:var(--muted);margin-bottom:12px}.voices{height:355px;overflow:auto;scrollbar-width:thin}.voice-row{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding:10px 6px}.voice-row.chosen{background:#e9eddf;border-radius:3px}.voice-row label{display:flex;align-items:flex-start;gap:8px;flex:1;cursor:pointer}.voice-row input{width:11px;height:11px;margin:5px 0 0;accent-color:var(--accent)}.voice-row strong{font-size:12px;font-weight:550;display:block}.voice-row strong small{font-size:9px;font-weight:400;color:var(--muted);margin-left:8px}.voice-description{font-size:9px;display:block;color:#747b6a;margin-top:5px}.voice-language{font-size:8px;color:#969c8a;display:block;margin-top:4px}.voice-row>button{border:1px solid #d2d9c7;border-radius:50%;width:26px;height:26px;flex:none;color:var(--accent)}.generation-options{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.generation-options>label{font-size:10px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.generation-options select,.run-panel select{padding:7px 8px;background:#f9f9f3;border:1px solid var(--line);border-radius:3px;font-size:10px;color:#59624d;max-width:100%}.generation-options>.secondary,.generation-options>.primary{width:100%}.selection-summary{display:flex;justify-content:space-between;font-size:10px;margin:20px 0 12px;color:var(--muted)}.selection-summary strong{font-weight:500;color:#59624d}.generation-options>small{font-size:9px;line-height:1.9;display:block;color:var(--muted);margin-top:10px}.run-panel{margin:30px 0;border-top:1px solid var(--line);max-width:100%}.run-summary{font-size:11px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#75806a}.run-jobs{max-height:220px;overflow:auto}.run-jobs>div{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.run-jobs>div>span{flex:1}.run-jobs small{color:var(--muted)}.run-jobs button{color:var(--accent);font-size:11px}.processing{padding:70px 30px}.processing h1{font-family:serif;font-size:30px;max-width:650px;margin:18px 0}.processing p{font-size:13px;color:var(--muted);margin-bottom:25px}.loading-line{height:2px;background:#dde3d4;width:240px;overflow:hidden}.loading-line:after{content:"";display:block;width:80px;height:2px;background:#6a8258;animation:loading 1.5s infinite}.player{position:fixed;bottom:0;left:0;right:0;min-height:83px;display:flex;align-items:center;gap:22px;padding:15px 30px;background:#fdfcf8ef;border-top:1px solid #dce0d3;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);z-index:5}.player-title{width:260px;min-width:0}.player-title>.eyebrow{font-size:8px}.player-title strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px}.player-controls{display:flex;gap:18px;align-items:center}.play{width:39px;height:39px;background:var(--accent);color:#fff;border-radius:50%;padding-left:9px;font-size:13px}.skip{position:relative;font-size:23px;width:22px;padding:0}.skip small{font-size:7px;position:absolute;left:8px;top:10px}.seek{flex:1;display:flex;align-items:center;gap:10px;min-width:90px}.seek span{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums}.seek input{width:100%;accent-color:var(--accent);height:3px}.player select{border:none;background:transparent;font-size:11px}.follow-button{font-size:10px;white-space:nowrap;color:var(--accent)}.player-empty{color:#969c8c}.app-loading{padding:15vh 15vw}.app-loading p{margin-top:30px;color:var(--muted);font-size:13px}.global-error{background:#f4ded1;padding:14px;font-size:12px}.global-error button{margin-left:20px;text-decoration:underline}@keyframes enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes loading{0%{transform:translate(-80px)}to{transform:translate(240px)}}.book-heading,.reader-column,.voice-panel{animation:enter .3s ease}a{color:var(--accent)}@media(min-width:1550px){.main-workspace{padding:35px 50px}.reading-layout{grid-template-columns:260px minmax(300px,1fr) 280px}.reader{padding:40px 60px}}@media(max-width:1180px){.workspace{grid-template-columns:180px 1fr}.main-workspace{padding:25px 20px}.reading-layout{grid-template-columns:190px minmax(220px,1fr)}.voice-panel{grid-column:1/-1;padding:0;border-top:1px solid var(--line);margin-top:20px;display:grid;grid-template-columns:1fr 230px;column-gap:30px}.voice-panel>.section-label,.voice-panel>.panel-note{grid-column:1/-1}.voices{height:250px}.generation-options{margin:0}.reader-column{border-right:0}.book-heading h1{font-size:23px}.brand-caption{display:none}.player-title{width:180px}.reader{padding:25px}.topbar{gap:25px}}@media(max-width:760px){.login-page{padding:25px 22px}.login-main{display:block;margin:40px auto;max-width:420px}.login-intro h1{font-size:37px}.book-art{display:none}.login-form{margin-top:35px;padding:28px}.login-intro p{font-size:12px}.workspace{display:block;padding-bottom:135px}.topbar{height:66px;padding:0 18px;gap:12px}.brand{font-size:21px}.node-status{display:none}.account>span{max-width:115px;font-size:9px}.shelf{padding:16px 18px;border-right:0;border-bottom:1px solid var(--line)}.shelf-head{display:none}.upload-button{width:max-content;margin:0 0 12px;padding:8px 13px;font-size:11px}.shelf nav{flex-direction:row;overflow:auto}.shelf-book{min-width:160px;max-width:210px;flex:none;padding:8px}.shelf-book small{margin-top:3px}.shelf-foot{display:none}.main-workspace{padding:24px 18px}.empty-workspace{padding:45px 5px;margin:0;min-height:440px}.empty-workspace h1{font-size:36px}.empty-lines{font-size:37px;bottom:60px;right:0;opacity:.6}.book-heading{align-items:flex-start}.book-heading h1{font-size:23px}.book-heading .danger{font-size:10px;white-space:nowrap;margin-top:15px}.reading-layout{display:block}.contents{padding:0}.chapter-list{height:auto;max-height:205px;margin-bottom:20px}.chapter-row{padding:8px}.chapter-row small{display:none}.reader-column{border:1px solid var(--line);border-radius:3px}.reader{height:480px;padding:25px 22px}.reader h2{font-size:22px}.reader p{font-size:16px}.voice-panel{display:block;padding-top:8px}.voices{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:5px 10px}.voice-row{padding:10px 4px}.voice-description{font-size:8px}.voice-language{font-size:7px}.generation-options{margin-top:20px}.player{padding:12px 16px;gap:10px;flex-wrap:wrap;min-height:115px}.player-title{width:calc(100% - 140px);order:0}.player-controls{margin-left:auto;gap:14px;order:1}.seek{order:2;flex-basis:calc(100% - 135px)}.player select{order:3}.follow-button{order:4}.player .play{width:34px;height:34px}.run-jobs>div>span{max-width:65%}.processing{padding:35px 5px}.processing h1{font-size:26px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.reader p[role=button]{cursor:pointer}.reader p[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
