:root{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#26302c;background:#f5f2e9;font-synthesis:none;--accent:#d6e26d;--ink:#26302c;--muted:#68746d;--line:#dddcd0;--surface:#fffef9}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,a{touch-action:manipulation}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #637c43;outline-offset:3px}button{border:0}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,4vw,52px);line-height:1.1;letter-spacing:-1.7px}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:18px}p{color:var(--muted)}small{color:var(--muted)}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.6px;text-decoration:none}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--accent);border-radius:12px}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#eeeee2;border-right:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column;gap:32px}.sidebar nav{display:grid;gap:9px}.nav{display:flex;align-items:center;gap:12px;border:0;border-radius:11px;padding:13px 15px;background:transparent;color:#58665c;text-align:left;font-weight:600;min-height:48px}.nav.active{background:#dfe6cc;color:#2b4432}.sidebar-note{margin-top:auto;padding-top:22px;border-top:1px solid #d2d5c8;font-size:12px;line-height:1.7}.sidebar-note strong{color:#334c37;display:block;margin:8px 0}.sidebar-note .icon{color:#5f7a4c}.main{margin-left:238px}.topbar{height:86px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.topbar div{display:flex;gap:18px;align-items:center}.text-button{background:none;padding:8px 0;color:var(--muted)}.content{max-width:1350px;margin:auto;padding:38px 42px 70px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:#6d795a;margin-bottom:16px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}.page-head p{max-width:560px;margin-top:16px;line-height:1.8}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:10px;font-weight:650;font-size:13px;min-height:46px;text-decoration:none}.primary{background:var(--accent);color:#293821;box-shadow:0 2px 0 #bbc764}.primary:hover:not(:disabled){background:#e2eb95}.secondary{background:var(--surface);color:#44554b;border:1px solid var(--line)}.danger{background:#fbefeb;color:#9b443c}.hero{background:#e4e8d7;border:1px solid #d5dbc6;border-radius:22px;padding:32px;display:grid;grid-template-columns:1fr 260px;gap:26px;align-items:center;margin-bottom:34px}.hero h2{font-size:30px;max-width:470px;line-height:1.23;letter-spacing:-1px}.hero p{max-width:540px;margin-top:15px;line-height:1.8;font-size:13px}.hero-steps{display:grid;gap:13px;font-size:12px;color:#576c4d}.hero-steps span{display:flex;align-items:center;gap:10px}.hero-steps b{display:grid;place-items:center;width:28px;height:28px;background:#f7f8ed;border:1px solid #d0d8be;border-radius:9px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 20px}.search{max-width:250px;min-height:44px;padding:11px 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface)}.stats{display:flex;gap:22px;font-size:12px;color:var(--muted);margin:16px 0 30px}.stats strong{font-size:18px;color:var(--ink);margin-right:6px}.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.book{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;text-align:left;display:flex;flex-direction:column;min-width:0}.cover{height:156px;background:#e1e5d5;position:relative;padding:24px;color:#4d6450;display:flex;justify-content:space-between;align-items:center}.cover .icon{width:62px;height:62px;stroke-width:1}.cover>strong{font-family:Georgia,serif;font-size:60px;opacity:.5}.book:nth-child(3n+2) .cover{background:#e9dfcf;color:#806343}.book:nth-child(3n+3) .cover{background:#dce5e7;color:#527076}.cover small{position:absolute;bottom:13px;font-size:10px;letter-spacing:1.3px;color:inherit}.book-body{padding:21px;display:flex;flex:1;flex-direction:column;gap:12px}.book h3{overflow-wrap:anywhere;line-height:1.4}.book-meta{font-size:11px;color:var(--muted)}.book .secondary{margin-top:auto;width:100%}.pill{display:inline-flex;gap:7px;align-items:center;font-size:10px;font-weight:650;background:#efeee6;color:#677261;padding:5px 9px;border-radius:7px;width:max-content;max-width:100%}.pill.ready{background:#e1eddf;color:#386542}.pill.error{background:#fbe9e5;color:#9d4036}.pill.rendering,.pill.queued{background:#f4edcf;color:#7c6c27}progress{height:7px;width:100%;accent-color:#719256;display:block;border:0}.empty{border:1px dashed #c6ceb8;border-radius:18px;padding:42px;text-align:center;background:#f0f1e6;grid-column:1/-1}.empty .icon{width:40px;height:40px;color:#7b8d68;margin-bottom:14px}.empty p{max-width:420px;margin:12px auto 22px}.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:24px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:26px}.card p{font-size:12px;margin-top:10px;line-height:1.7}.field{display:grid;gap:8px;font-size:12px;font-weight:600;margin-bottom:18px}.field input,.field select,.field textarea{width:100%;border:1px solid #d8dbce;border-radius:10px;background:#fffef9;padding:12px;font-weight:400;color:#334536}.field textarea{min-height:350px;line-height:1.85;resize:vertical}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.help{font-size:11px!important;line-height:1.8;color:#7c8376}.notice{background:#f5edce;border:1px solid #e4d8a4;padding:15px 18px;border-radius:12px;color:#796731;font-size:12px;line-height:1.7;margin-bottom:24px}.error-note{background:#faede8;color:#95463c;border:1px solid #ebc4b7;padding:16px;border-radius:12px;font-size:12px;margin:16px 0}.player{background:#e5ebdb;border:1px solid #d2dbc1;border-radius:14px;padding:20px;margin-top:20px}.player strong{display:block;margin:4px 0 13px}.player audio{width:100%;margin-bottom:10px}.parts{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px;max-height:190px;overflow:auto}.parts button{min-height:40px;min-width:40px;border:1px solid #cdd5c1;background:#f9faf1;color:#55684a;border-radius:8px;padding:8px}.parts button.active{background:#4c6846;color:white;border-color:#4c6846}.drop{display:block;text-align:center;border:2px dashed #c7cfb7;background:#f2f4e8;border-radius:15px;padding:26px;cursor:pointer}.drop:hover,.drop.over{border-color:#7b9456;background:#e9efdc}.drop .icon{height:36px;width:36px;margin-bottom:10px;color:#78925b}.drop strong{display:block}.drop small{display:block;margin-top:10px}.drop input{width:100%;margin-top:16px;font-size:12px}.tabs{display:flex;gap:8px;margin:20px 0}.tabs button{border-radius:8px;padding:10px 16px;color:#64725a}.tabs button.active{background:#dfe7cc;color:#34472b}.login{max-width:460px;margin:9vh auto;padding:34px}.login .brand{margin-bottom:42px}.login h1{font-size:34px}.login p{margin:20px 0 28px}.login .primary{width:100%}.login-foot{font-size:11px;margin-top:25px!important}.loading{text-align:center;margin:20vh auto;color:var(--muted)}.hidden{display:none!important}dialog{border:1px solid var(--line);border-radius:20px;background:#fffef9;color:var(--ink);padding:28px;width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#26302c66;backdrop-filter:blur(3px)}dialog h2{margin-bottom:6px}dialog form>.field{margin-top:20px}.close-row{display:flex;justify-content:space-between;align-items:center;gap:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#293b2c;color:#f2f8e9;padding:13px 21px;border-radius:12px;max-width:calc(100% - 28px);z-index:100;box-shadow:0 8px 24px #26302c25;display:none}.mobile-brand{display:none}.back{margin-bottom:25px}footer{color:#8a9186;font-size:11px;margin-top:30px;line-height:1.8}.danger-zone{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}
@media(min-width:1500px){.content{padding-top:52px}.cover{height:184px}}
@media(max-width:1100px){.books{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:30px 25px}.topbar{padding:0 25px}.hero{grid-template-columns:1fr}.hero-steps{display:flex;flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}.sidebar{width:215px}.main{margin-left:215px}}
@media(max-width:720px){.sidebar{inset:auto 0 0;width:100%;height:70px;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);z-index:20;background:#f5f6eaf5;backdrop-filter:blur(10px)}.sidebar>.brand,.sidebar-note{display:none}.sidebar nav{display:flex;justify-content:space-around;gap:16px}.nav{display:flex;justify-content:center;gap:10px;font-size:12px;min-height:46px;flex:1}.nav .icon{width:20px;height:20px}.main{margin:0}.topbar{height:70px;padding:0 18px}.topbar>span{display:none}.mobile-brand{display:flex}.topbar div{gap:12px}.topbar .text-button{font-size:12px}.content{padding:26px 16px 100px}.page-head{display:block;margin-bottom:24px}.page-head .primary{margin-top:20px}.page-head p{font-size:13px}.hero{padding:24px;border-radius:16px;gap:24px}.hero h2{font-size:25px}.hero p{font-size:12px}.hero-steps{display:grid}.books{grid-template-columns:1fr;gap:16px}.book{display:grid;grid-template-columns:90px minmax(0,1fr)}.cover{height:100%;min-height:210px;padding:15px;display:grid;align-content:center}.cover .icon{width:45px;height:45px}.cover>strong{display:none}.cover small{font-size:8px;bottom:18px;left:15px}.book-body{padding:18px}.book h3{font-size:16px}.section-head{flex-wrap:wrap}.section-head .search{max-width:none;width:100%}.stats{gap:15px;flex-wrap:wrap;margin:16px 0 24px}.card{padding:22px 18px}.settings-row{gap:10px}input,select,textarea{font-size:16px!important}.actions>button,.actions>a{flex:1;min-width:130px}.field textarea{min-height:280px}.detail-grid{gap:0}.player{padding:16px}.login{margin:4vh 14px;padding:26px 22px;max-width:none}.login h1{font-size:31px}.login .brand{margin-bottom:32px}#toast{bottom:84px}.drop{padding:22px 14px}.drop input{font-size:13px!important}.page-head h1{font-size:34px}.help{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.provider-note{padding:14px 16px;border:1px solid #dacbb2;background:#f7efdf;border-radius:11px;margin-bottom:18px;color:#7c633e;font-size:12px;line-height:1.7}.provider-note.local{background:#edf2e3;color:#4a683e;border-color:#d8e1ca}.sidebar nav{gap:7px}.settings-key{font-family:ui-monospace,monospace}.connection{display:inline-block;color:#467346;font-size:12px;font-weight:650;padding:7px 10px;background:#e4edda;border-radius:8px}
@media(max-width:720px){.sidebar .nav{gap:5px;font-size:11px;padding:10px 6px}.sidebar nav{gap:5px}.sidebar .nav .icon{width:18px;height:18px}}
.content:has(.book) .hero{display:block;padding:18px 24px;margin-bottom:24px;border-radius:14px}.content:has(.book) .hero>div:first-child{display:none}.content:has(.book) .hero-steps{display:flex;justify-content:space-between;gap:18px}.dirty-note{color:#8c672d!important}
@media(max-width:720px){.content:has(.book) .hero{padding:16px}.content:has(.book) .hero-steps{display:grid;gap:9px}.content:has(.book) .hero-steps b{width:24px;height:24px}.content:has(.book) .hero-steps span{font-size:11px}}
