:root{--w4m-font-scale:1;--w4m-bg:#fff;--w4m-text:#17202a;--w4m-muted:#68727d;--w4m-line:#dfe4e8;--w4m-accent:#1261a0}
body.w4m-dark{--w4m-bg:#111820;--w4m-text:#e8edf2;--w4m-muted:#aeb8c2;--w4m-line:#34404b;--w4m-accent:#79bfff;background:var(--w4m-bg);color:var(--w4m-text)}
.w4m-reader-shell{background:var(--w4m-bg);color:var(--w4m-text);padding:3rem 1rem 5rem;min-height:70vh}
.w4m-reader{max-width:820px;margin:0 auto;font-size:calc(1.08rem * var(--w4m-font-scale));line-height:1.75}
.w4m-reader h1{font-size:clamp(2.2rem,6vw,4.4rem);line-height:1.05;letter-spacing:-.035em;margin:.2em 0 .35em}.w4m-reader h2{margin-top:2.2em}.w4m-reader h3{margin-top:1.8em}.w4m-reader img{max-width:100%;height:auto;border-radius:4px}.w4m-reader a{color:var(--w4m-accent)}
.w4m-kicker,.w4m-chapter-number,.w4m-book-link,.w4m-meta{color:var(--w4m-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.78em;font-weight:700}.w4m-meta{display:flex;gap:1rem;margin-bottom:1.5rem}.w4m-book-link{text-decoration:none}.w4m-book-cover{width:100%;max-height:520px;object-fit:cover}
.w4m-chapter-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;border-top:1px solid var(--w4m-line);padding-top:1.2rem;margin-top:3rem}.w4m-chapter-nav-top{border-top:0;border-bottom:1px solid var(--w4m-line);padding:0 0 1.2rem;margin:0 0 2.5rem}.w4m-chapter-nav a{text-decoration:none}.w4m-chapter-nav a:last-child{text-align:right}
.w4m-reader-toolbar{position:fixed;right:1rem;bottom:1rem;z-index:20;display:flex;gap:.35rem;background:var(--w4m-bg);border:1px solid var(--w4m-line);padding:.45rem;border-radius:999px;box-shadow:0 8px 30px rgba(0,0,0,.12)}.w4m-reader-toolbar button{border:0;background:transparent;color:var(--w4m-text);padding:.5rem .7rem;cursor:pointer}
.w4m-progress{margin:2rem 0}.w4m-progress-label{display:flex;justify-content:space-between}.w4m-progress-track{height:10px;background:var(--w4m-line);border-radius:99px;overflow:hidden}.w4m-progress-track span{display:block;height:100%;background:var(--w4m-accent)}
.w4m-toc ol{padding-left:1.8rem}.w4m-toc li{padding:.4rem 0;border-bottom:1px solid var(--w4m-line)}.w4m-toc a{text-decoration:none}
.w4m-search{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin:2rem 0}.w4m-search input{width:100%;padding:.8rem;border:1px solid var(--w4m-line);background:var(--w4m-bg);color:var(--w4m-text)}.w4m-search button{padding:.8rem 1rem}.w4m-search-results{grid-column:1/-1}.w4m-search-results article{padding:1rem 0;border-bottom:1px solid var(--w4m-line)}.w4m-search-results h3{margin:0}
.w4m-library{margin-top:3rem;border-top:2px solid var(--w4m-line)}.w4m-library dt{font-weight:700;margin-top:1rem}.w4m-library dd{margin-left:0}.w4m-library li{margin-bottom:1rem}
@media(max-width:640px){.w4m-reader-shell{padding-top:2rem}.w4m-chapter-nav{grid-template-columns:1fr 1fr}.w4m-chapter-nav a:nth-child(2){display:none}.w4m-search{grid-template-columns:1fr}.w4m-reader-toolbar{right:.5rem;bottom:.5rem}}
.w4m-embedded-book{max-width:100%;color:var(--w4m-text)}.w4m-embedded-book-title a{color:inherit;text-decoration:none}
.w4m-books-grid,.w4m-chapters-grid{display:grid;gap:1.5rem;margin:1.5rem 0}.w4m-columns-1{grid-template-columns:1fr}.w4m-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.w4m-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.w4m-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.w4m-book-card,.w4m-chapter-card{border:1px solid var(--w4m-line);background:var(--w4m-bg);border-radius:8px;overflow:hidden}.w4m-book-card-image,.w4m-chapter-card-image{display:block}.w4m-book-card-image img,.w4m-chapter-card-image img{display:block;width:100%;height:220px;object-fit:cover}.w4m-book-card-body,.w4m-chapter-card-body{padding:1.25rem}.w4m-book-card h2,.w4m-chapter-card h2{margin:.25rem 0 .8rem;font-size:1.35rem;line-height:1.25}.w4m-book-card h2 a,.w4m-chapter-card h2 a{text-decoration:none;color:var(--w4m-text)}
.w4m-card-part,.w4m-card-number{color:var(--w4m-muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700}.w4m-card-number{display:block;margin-bottom:.3rem}.w4m-button{display:inline-block;text-decoration:none;padding:.65rem .9rem;border:1px solid var(--w4m-accent);border-radius:4px}.w4m-latest-chapters article{padding:1rem 0;border-bottom:1px solid var(--w4m-line)}.w4m-latest-chapters h3{margin:0 0 .25rem}.w4m-latest-chapters time{color:var(--w4m-muted);font-size:.85rem}.w4m-empty{color:var(--w4m-muted)}
@media(max-width:900px){.w4m-columns-3,.w4m-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.w4m-columns-2,.w4m-columns-3,.w4m-columns-4{grid-template-columns:1fr}}
.w4m-chapter-title-image{margin:1.25rem 0 2rem}.w4m-chapter-title-image img{display:block;width:100%;max-height:560px;object-fit:cover;border-radius:6px}
.w4m-chapter-list{display:grid;gap:0;margin:1.5rem 0;border-top:1px solid var(--w4m-line)}
.w4m-chapter-list-item{display:grid;grid-template-columns:minmax(120px,24%) 1fr;gap:1.25rem;padding:1rem 0;border-bottom:1px solid var(--w4m-line);align-items:start}
.w4m-chapter-list-image{display:block;height:var(--w4m-chapter-thumb-height,100px);overflow:hidden;border-radius:5px;background:var(--w4m-line)}
.w4m-chapter-list-image img{display:block;width:100%;height:100%;object-fit:cover}
.w4m-chapter-image-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--w4m-line),transparent)}
.w4m-chapter-list-body h2{margin:0 0 .3rem;font-size:1.25rem;line-height:1.25}.w4m-chapter-list-body h2 a{text-decoration:none;color:var(--w4m-text)}
.w4m-chapter-list-date{display:block;color:var(--w4m-muted);font-size:.84rem;margin-bottom:.45rem}.w4m-chapter-list-abstract{margin:0;line-height:1.55;color:var(--w4m-text)}
@media(max-width:640px){.w4m-chapter-list-item{grid-template-columns:110px 1fr;gap:.85rem}.w4m-chapter-list-body h2{font-size:1.05rem}}

.w4m-speech{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;margin:1.25rem auto;padding:.8rem 1rem;max-width:820px;border:1px solid var(--w4m-line);border-radius:8px;background:var(--w4m-bg);color:var(--w4m-text)}
.w4m-speech-title{font-weight:700}.w4m-speech-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}.w4m-speech button,.w4m-speech select{padding:.5rem .7rem;border:1px solid var(--w4m-line);border-radius:4px;background:var(--w4m-bg);color:var(--w4m-text);cursor:pointer}.w4m-speech button:disabled,.w4m-speech select:disabled{opacity:.5;cursor:not-allowed}.w4m-speech-status{color:var(--w4m-muted);font-size:.88rem}.w4m-speech[data-state="playing"]{border-color:var(--w4m-accent)}
.w4m-search-meta{margin:.25rem 0;color:var(--w4m-muted);font-size:.82rem}.w4m-content-search{max-width:900px}
@media(max-width:640px){.w4m-speech{align-items:flex-start}.w4m-speech-title{width:100%}}
