:root[data-theme]{--bg:#050505;--panel:#171717;--line:#333;--text:#eee;--muted:#a5a5a5;--green:#c6b58e;--accent:#c6b58e;color-scheme:dark}
:root[data-theme=slate]{--bg:#171c22;--panel:#252e38;--line:#394654;--text:#eef3fa;--muted:#a3b2c3;--accent:#92b8d0}
:root[data-theme=paper]{--bg:#f7f7f2;--panel:#fff;--line:#d6d6ce;--text:#202823;--muted:#5c655e;--accent:#32624d;color-scheme:light}
:root[data-theme=sepia]{--bg:#eee4d0;--panel:#f8f0df;--line:#cabc9d;--text:#3f3223;--muted:#76634a;--accent:#765637;color-scheme:light}
:root[data-theme=forest]{--bg:#101e19;--panel:#1c3027;--line:#354f41;--text:#e3efe6;--muted:#a2b6a9;--accent:#98b893}
html[data-theme] body{background:var(--bg);color:var(--text)}html[data-theme] header,html[data-theme] .bottom,html[data-theme] dialog,html[data-theme] footer{background:var(--panel);color:var(--text)}html[data-theme] input,html[data-theme] textarea,html[data-theme] select,html[data-theme] .card,html[data-theme] .secondary,html[data-theme] .chip{background:var(--panel);color:var(--text);border-color:var(--line)}html[data-theme] h1,html[data-theme] h2,html[data-theme] h3,html[data-theme] .book-title,html[data-theme] .profile-menu a{color:var(--text)}html[data-theme] .primary,html[data-theme] .chip.active{background:var(--accent);color:var(--bg)}html[data-text-size=large] body{font-size:18px}.reading-hero{position:relative;isolation:isolate;min-height:360px;border-radius:10px;overflow:hidden;display:flex;align-items:end;padding:36px;margin-bottom:18px;background:#211f1b}.reading-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;z-index:-2}.reading-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000d,#0006),linear-gradient(0deg,#0009,transparent);z-index:-1}.reading-hero h2{font:clamp(30px,5vw,54px)/1.1 Georgia,serif!important;color:white!important;max-width:630px;margin:15px 0}.reading-hero p{color:#e6e1d5;max-width:540px}.reading-hero .eyebrow{color:#dfd3b5}.reading-hero .primary{display:inline-block;margin-top:10px}.home-tools{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:10px 0 22px;border-bottom:1px solid var(--line)}.starter-lists{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.starter-lists button{padding:24px;text-align:left;display:flex;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:6px}.profile-backdrop{height:300px;margin:0 -24px;overflow:hidden;position:relative;background:var(--panel)}.profile-backdrop img{width:100%;height:100%;object-fit:cover}.profile-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,var(--bg))}.profile-identity.with-backdrop{margin-top:-60px;position:relative;z-index:1}.profile-identity.with-backdrop>.avatar{width:110px;height:110px;border:4px solid var(--bg);border-radius:50%}.profile-editor{width:min(720px,96vw);max-height:94dvh}.profile-editor form{display:grid;gap:8px}.profile-editor input,.profile-editor select,.profile-editor textarea{width:100%;padding:15px;border-radius:5px}.profile-editor input[type=checkbox]{width:auto}.profile-editor .row{padding:20px 0;border-bottom:1px solid var(--line)}.profile-editor-banner .profile-backdrop{margin:0;height:180px;border-radius:7px}.preferences-panel{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.highlight-card{padding:28px;margin:20px 0;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:6px;background:var(--panel)}.highlight-card blockquote{font:24px/1.6 Georgia,serif;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.highlight-card small{display:block;margin:10px 0;color:var(--muted)}.highlight-card p{white-space:pre-wrap}.highlight-card button{margin-right:10px}.manual-preview{max-height:180px;max-width:140px;object-fit:contain;margin:16px 0}.edition-info{padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:10px;flex-wrap:wrap;align-items:center}.edition-info p{width:100%;margin:0}.edition-info small{display:block;width:100%}.language-filter{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.language-filter select{min-width:130px}#highlight-search{width:100%;padding:14px}#google-only,#guest-only{width:100%;margin:12px 0;padding:16px}#highlight-form input,#highlight-form select,#highlight-form textarea,#edition-form input{width:100%}
@media(max-width:640px){.reading-hero{min-height:370px;padding:25px;margin-top:0}.reading-hero>img{object-position:32% center}.reading-hero:before{background:linear-gradient(0deg,#000e,#0003)}.starter-lists{grid-template-columns:1fr}.profile-backdrop{height:250px}.home-tools{font-size:12px;gap:12px}.highlight-card{padding:20px}.highlight-card blockquote{font-size:21px}.profile-editor{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.language-filter{width:100%}}
