:root{color-scheme:light;--bg:#f5f4ef;--panel:#fbfaf7;--ink:#242e2c;--muted:#7b827c;--line:#e2e4db;--accent:#476451;--soft:#e7ece2;--white:#fff;--shadow:0 22px 60px #283c2520;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91ae96;outline-offset:3px}button{border:0;background:none}button, a{touch-action:manipulation}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(34px,3.3vw,49px);letter-spacing:-1.8px;line-height:1.16;margin-bottom:14px}h2{font-size:20px;letter-spacing:-.5px;font-weight:600}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted);margin-bottom:17px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;padding:14px 19px;min-height:46px;font-weight:500}.primary{background:var(--accent);color:#fff}.primary:hover{filter:brightness(1.08)}.secondary{border:1px solid var(--line);background:var(--panel)}.compact{font-size:13px;padding:10px 15px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:25px}.icon-button:hover{background:var(--soft)}.sidebar{width:224px;position:fixed;inset:0 auto 0 0;padding:40px 23px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.brand{display:grid;grid-template-columns:32px auto;grid-template-rows:30px 16px;align-items:center;font-family:Georgia,serif;font-size:33px;letter-spacing:-1.5px;width:max-content}.brand svg{grid-row:1/3;width:27px;height:35px;color:var(--accent)}.brand span{font-family:inherit;font-size:12px;letter-spacing:1px;color:var(--muted)}.nav-caption{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:65px 12px 16px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px 12px;border-radius:8px;margin:5px 0;font-size:13px;min-height:48px;color:var(--muted)}.nav-item.active{color:var(--accent);background:var(--soft);font-weight:600}.nav-item span{margin-left:auto;font-size:11px}.sidebar-bottom{margin-top:auto;font-size:11px;color:var(--muted);padding:10px}.sidebar-bottom p{font-size:10px;margin:11px 0 0}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#789074;margin-right:7px}main{margin-left:224px;margin-right:286px;min-height:100vh;padding:0 44px}.topbar{height:99px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 9px;color:#bcc0b8}.breadcrumb b{font-weight:400;color:var(--ink)}.view{padding:40px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.page-heading .muted{font-size:13px}.count-label{font-size:11px;color:var(--muted);white-space:nowrap}.continue-card{display:flex;align-items:center;gap:28px;background:var(--soft);border:1px solid #dce3d5;border-radius:12px;padding:27px 30px;margin:24px 0 38px}.continue-card .cover{width:112px;height:152px;flex-shrink:0;box-shadow:0 8px 15px #26392a20;border-radius:4px}.continue-info{flex:1;min-width:0}.continue-info h2{font-family:Georgia,serif;font-size:27px;font-weight:400;margin-bottom:7px}.continue-info .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:10px}.continue-info .muted{font-size:12px;margin-bottom:10px}.continue-info .primary{margin-top:15px;padding:10px 16px;font-size:12px;min-height:42px}.progress-line{height:3px;background:#ccd6c8;border-radius:5px;margin:14px 0 8px;overflow:hidden}.progress-line span{display:block;height:100%;background:var(--accent)}.progress-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;gap:10px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.section-row h2{margin:0;white-space:nowrap}.section-row h2 span{font-size:12px;color:var(--muted);margin-left:7px}.search{display:flex;align-items:center;gap:7px;color:var(--muted);max-width:240px}.search svg{width:16px}.search input{background:none;border:0;width:100%;font-size:12px;min-height:44px;padding:0;color:var(--ink)}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.filters button{font-size:11px;padding:9px 13px;border:1px solid transparent;border-radius:6px;min-height:38px;color:var(--muted)}.filters .selected{border-color:var(--line);background:var(--panel);color:var(--ink)}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}.book-card{min-width:0}.book-open{padding:0;width:100%;text-align:left}.book-art{background:#eaece4;border-radius:7px;padding:20px 25px;position:relative;display:flex;justify-content:center;align-items:center;min-height:204px;transition:background .2s}.book-open:hover .book-art{background:#e0e5d9}.cover{position:relative;overflow:hidden;aspect-ratio:3/4;background:#385247;color:#e8e6ce;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px;isolation:isolate}.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}.cover .cover-author{font-size:9px;letter-spacing:1px;text-transform:uppercase;line-height:1.5}.cover .cover-name{font-family:Georgia,serif;font-size:20px;line-height:1.15;margin:13px 0;overflow-wrap:anywhere}.cover .cover-flower{font-family:Georgia,serif;font-size:50px;line-height:1;color:#b7c2a1}.cover:after{content:'';position:absolute;inset:8px;border:1px solid #cbd0ac55;z-index:-1}.cover.variant{background:#bba68a;color:#302f29}.book-art .cover{width:100%;max-width:133px;border-radius:2px;box-shadow:5px 9px 12px #28332629}.book-card h3{font-size:14px;font-weight:600;margin:14px 0 5px;line-height:1.3}.book-author{font-size:11px;color:var(--muted);margin-bottom:10px}.book-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.book-meta .icon-button{width:36px;height:36px}.book-meta svg{width:16px;height:16px}.download-badge{position:absolute;right:8px;top:8px;background:var(--panel);padding:5px;border-radius:50%;display:flex}.download-badge svg{width:13px;height:13px}.library-footer{margin:45px 0 10px;padding-top:23px;border-top:1px solid var(--line);text-align:center;font-size:10px;color:var(--muted)}.now-panel{position:fixed;right:0;top:0;bottom:0;width:286px;border-left:1px solid var(--line);background:var(--panel);padding:43px 28px;text-align:center;overflow:auto}.now-panel>.eyebrow{font-size:9px;margin:4px 0 49px}.now-panel .cover{width:155px;margin:0 auto 25px;box-shadow:8px 12px 22px #28332622;border-radius:3px}.now-panel h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin-bottom:8px}.now-panel .muted{font-size:11px}.now-panel .primary{margin:15px 0;width:100%;font-size:12px}.side-info{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0;font-size:11px;color:var(--muted)}.side-info b{font-weight:400;color:var(--ink)}.quiet-note{margin-top:38px;color:var(--muted);font-family:Georgia,serif;font-style:italic;font-size:13px}.quiet-note>span{font-size:30px;color:#a1ad93}.quiet-note p{margin:10px 0}.mini-player{position:fixed;bottom:20px;left:calc(224px + 30px);right:calc(286px + 30px);background:var(--ink);color:var(--bg);border-radius:12px;box-shadow:var(--shadow);z-index:4;padding:9px 15px;display:flex;align-items:center;justify-content:space-between}.mini-title{flex:1;text-align:left;font-size:13px;min-height:44px}.mini-title small{display:block;font-size:10px;opacity:.65;margin-top:4px}.mobile-nav{display:none}.empty{grid-column:1/-1;padding:45px 18px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px}.empty h2{color:var(--ink)}dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow);max-height:90dvh;overflow:auto}dialog::backdrop{background:#162b2380;backdrop-filter:blur(5px)}.player-dialog{width:440px;text-align:center;padding:18px 32px 25px}.player-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.player-top .eyebrow{margin:0;font-size:9px}.player-dialog .cover{width:185px;margin:0 auto 23px;border-radius:4px;box-shadow:8px 12px 22px #28332622}.player-dialog .cover-name{font-size:28px}.player-dialog h2{font-family:Georgia,serif;font-weight:400;font-size:29px;margin-bottom:8px}.player-dialog #player-author{font-size:13px;margin-bottom:15px}.text-button{font-size:12px;color:var(--muted);min-height:38px}.player-dialog input[type=range]{width:100%;padding:0;height:30px;accent-color:var(--accent);border:0;background:none}.time-row{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.transport{display:flex;align-items:center;justify-content:center;gap:32px;margin:26px 0}.transport>button{position:relative;width:48px;height:48px;display:grid;place-items:center}.transport>button>svg{width:34px;height:34px}.transport>button>span{position:absolute;top:18px;font-size:10px}.transport .play-large{width:68px;height:68px;border-radius:50%;background:var(--accent);color:white}.transport .play-large svg{width:31px;height:31px;stroke-width:2.2}.flip{transform:scaleX(-1)}.player-tools{display:flex;justify-content:space-around;margin-bottom:25px}.player-tools button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-height:55px;min-width:70px;font-size:18px}.player-tools small{font-size:10px;color:var(--muted)}.chapter-button{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;width:100%;padding:15px 0;font-size:12px}.chapter-button span{margin-left:auto}.player-dialog #total-progress{margin:18px 0 0}.player-dialog #player-state{margin:5px 0 0;font-size:10px}.sheet{width:500px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}.dialog-head h2{margin:0}.sheet-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 7px;min-height:50px;width:100%;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.sheet-row.active{color:var(--accent);background:var(--soft)}.sheet-row small{color:var(--muted);white-space:nowrap}.sheet-group{font-size:10px;letter-spacing:1px;color:var(--muted);margin:25px 0 8px}.setting-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:24px;margin:20px 0}.setting-card h2{font-size:16px}.setting-card p{font-size:13px}label{display:block;font-size:12px;margin:16px 0}input:not([type=range]):not([type=file]),select{display:block;width:100%;padding:13px;border:1px solid var(--line);border-radius:7px;margin-top:8px;background:var(--panel);color:var(--ink);font-size:16px}select{max-width:270px}.search input:not([type=range]){border:0;background:transparent;font-size:12px;margin:0;padding:0}.file-drop{border:1px dashed #acb9a6;background:var(--soft);border-radius:10px;padding:25px;position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center}.file-drop input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.file-drop span{font-size:11px;color:var(--muted)}#file-order{max-height:210px;overflow:auto;margin-bottom:18px}.file-row{display:flex;align-items:center;font-size:11px;gap:6px;border-bottom:1px solid var(--line);padding:4px}.file-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-row button{min-width:36px;min-height:36px;border:1px solid var(--line);border-radius:5px}progress{width:100%;height:6px;accent-color:var(--accent)}.notice{background:var(--soft);padding:20px;border-radius:9px;font-size:12px;line-height:1.7;color:var(--muted);margin-top:25px}.download-row{display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:24px 0}.download-row .cover{width:60px;flex-shrink:0;padding:5px}.download-row .cover-name{font-size:12px}.download-row .cover-author,.download-row .cover-flower{display:none}.download-row>div:nth-child(2){flex:1;min-width:0}.download-row h3{font-size:15px;margin-bottom:6px}.download-row p{font-size:11px;color:var(--muted);margin:0}.download-row button{font-size:12px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);border:1px solid var(--line);padding:15px 22px;border-radius:10px;z-index:100;box-shadow:var(--shadow);font-size:13px;max-width:90vw;width:max-content}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top left,#dde5d5,transparent 65%)}.auth-card{width:100%;max-width:430px}.auth-card .brand{margin-bottom:65px}.auth-card h1{font-size:43px}.auth-card .primary{width:100%;justify-content:space-between;margin:10px 0 20px}.error{color:#b34838;font-size:12px}.auth-card .small{text-align:center}html[data-theme=dark]{color-scheme:dark;--bg:#1c211f;--panel:#232925;--ink:#e2e8dd;--muted:#a2ac9f;--line:#374137;--accent:#63816a;--soft:#2d3a2f;--white:#232925}.auth-screen:has(~ #app[hidden]){}.book-art{color:var(--ink)}html[data-theme=dark] .book-art{background:#30392f}html[data-theme=dark] .continue-card{border-color:var(--line)}
@media(min-width:1600px){main{padding:0 65px}.book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.book-art{min-height:240px}}
@media(max-width:1250px){.now-panel{display:none}main{margin-right:0}.mini-player{right:30px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{width:180px;padding:30px 15px}main{margin-left:180px;padding:0 25px}.mini-player{left:205px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.count-label{display:none}.continue-card{padding:23px 20px;gap:20px}.continue-card .cover{width:85px;height:125px}.section-row{display:block}.search{margin-top:12px;max-width:none}}
@media(max-width:600px){.sidebar{display:none}main{margin:0;padding:0 22px 130px}.topbar{height:79px}.breadcrumb{font-size:10px}.breadcrumb span,.breadcrumb b{display:none}.topbar .primary{font-size:11px;padding:9px 12px;min-height:40px}.topbar svg{width:16px}.view{padding-top:29px}.eyebrow{font-size:9px;letter-spacing:1.7px}h1{font-size:36px;letter-spacing:-1.3px}.page-heading .muted{font-size:12px}.continue-card{margin-top:20px;margin-bottom:30px;padding:21px 17px;gap:18px}.continue-info h2{font-size:24px}.continue-card .cover{width:85px;height:128px}.continue-info .primary{min-height:39px;margin-top:12px;font-size:11px}.continue-info .eyebrow{font-size:8px}.continue-info .muted{font-size:11px}.section-row h2{font-size:19px}.book-grid{gap:22px 15px}.book-art{padding:18px 20px;min-height:185px}.book-art .cover{max-width:110px}.cover .cover-name{font-size:18px}.cover .cover-flower{font-size:36px}.cover .cover-author{font-size:7px}.filters{gap:2px;margin-bottom:18px}.filters button{padding:8px 11px;font-size:10px}.book-card h3{font-size:14px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:var(--panel);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:8px 15px calc(7px + env(safe-area-inset-bottom));z-index:5}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:74px;min-height:45px;color:var(--muted);font-size:9px}.mobile-nav .active{color:var(--accent)}.mobile-nav svg{width:21px;height:21px}.mini-player{left:10px;right:10px;bottom:calc(69px + env(safe-area-inset-bottom));padding:7px 13px}.mini-title{font-size:12px}.toast{bottom:calc(145px + env(safe-area-inset-bottom));font-size:12px}.player-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 30px calc(20px + env(safe-area-inset-bottom));margin:0}.player-dialog .cover{width:min(53vw,205px);margin-top:13px;margin-bottom:25px}.player-dialog .cover-name{font-size:29px}.player-dialog .cover-author{font-size:11px}.player-dialog .cover-flower{font-size:70px}.player-dialog h2{font-size:30px}.player-top{margin-bottom:10px}.transport{margin:24px 0}.sheet{max-width:100vw;width:100%;max-height:85dvh;margin:auto 0 0;border-radius:20px 20px 0 0;padding:22px 22px calc(25px + env(safe-area-inset-bottom))}.auth-card .brand{margin-bottom:50px}.auth-card h1{font-size:38px}.setting-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
