/* Private reading surfaces only. No global, checkout or Academy selectors. */
.ast-bookshelf-v2,.ast-reader-v2{--room-bg:#121316;--room-panel:#1c1e23;--room-fg:#f3f0e9;--room-muted:#bfbfc7;--room-line:#3d3d45;--room-gold:#f0ca88;color:var(--room-fg);font:16px/1.6 system-ui,sans-serif;min-width:0;box-sizing:border-box}
.ast-bookshelf-v2 *, .ast-reader-v2 *{box-sizing:border-box}
.ast-bookshelf-v2 .ast-bookshelf-intro{font-size:18px;color:var(--room-muted);margin:0 0 20px}
.ast-bookshelf-v2 .ast-library-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 24px;padding:14px;border:1px solid var(--room-line);border-radius:10px;background:var(--room-bg)}
.ast-bookshelf-v2 .ast-library-filter label{display:grid;gap:5px;flex:1 1 190px;font-size:16px}
.ast-bookshelf-v2 .ast-library-filter :is(input,select,button){min-height:44px;font-size:16px;max-width:100%;width:100%;min-width:0}
.ast-bookshelf-v2 .ast-library-filter button{width:auto;padding-inline:20px}
.ast-bookshelf-v2 .ast-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px;align-items:stretch}
body .ast-bookshelf-v2 .ast-library-card{display:grid;grid-template-columns:minmax(88px,30%) minmax(0,1fr);align-items:start;gap:16px;padding:16px;border:1px solid var(--room-line);border-radius:12px;background:var(--room-panel);box-shadow:none;min-width:0}
.ast-bookshelf-v2 .ast-book-cover{aspect-ratio:2/3;min-height:0;height:auto;border-radius:4px;background:linear-gradient(155deg,#25243b,#101219);box-shadow:4px 5px 12px #0005}
.ast-bookshelf-v2 .ast-book-cover img{object-fit:contain;inset:0;width:100%;height:100%;position:absolute}
.ast-bookshelf-v2 .ast-book-cover span{position:absolute;inset:auto 4px 4px auto;font-size:14px;letter-spacing:0;padding:4px 7px;background:#0d0e15e8;color:#fff}
.ast-bookshelf-v2 .ast-bookshelf-info{min-width:0;overflow-wrap:anywhere}
.ast-bookshelf-v2 .ast-bookshelf-info h2{font:600 19px/1.35 Georgia,serif;color:var(--room-fg);margin:6px 0 10px}
.ast-bookshelf-v2 .ast-eyebrow{font-size:14px;text-transform:none;letter-spacing:.03em;color:var(--room-gold);margin:0}
.ast-bookshelf-v2 .ast-bookshelf-filename{font-size:14px;color:var(--room-muted);margin:0 0 10px}
.ast-bookshelf-v2 progress,.ast-reader-v2 progress{accent-color:var(--room-gold);width:100%;height:10px;display:block}
.ast-bookshelf-v2 .ast-button,.ast-reader-v2 :is(button,a,summary){min-height:44px}
.ast-bookshelf-v2 .ast-bookshelf-empty{grid-column:1/-1;border:1px solid var(--room-line);padding:24px;border-radius:12px}
body .ast-reader-shell.ast-reader-v2{width:100%;max-width:1160px;margin:20px auto;padding:clamp(12px,2.4vw,30px);background:#121316;border:1px solid #3d3d45;border-radius:14px;box-shadow:none;--pub-bg:#1a1b1f;--pub-fg:#eeeae2;--pub-accent:#edc888;--pub-size:20px;--pub-line:1.8;--pub-width:760px}
body .ast-reader-shell.ast-reader-v2[data-pub-theme="light"]{--pub-bg:#fff;--pub-fg:#222;--pub-accent:#765020}
body .ast-reader-shell.ast-reader-v2[data-pub-theme="sepia"]{--pub-bg:#f3e8d2;--pub-fg:#342a20;--pub-accent:#775122}
.ast-reader-v2 .ast-reader-topline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--room-line);padding-bottom:10px}
.ast-reader-v2 .ast-reader-topline .ast-reader-back{display:inline-flex;align-items:center;color:var(--room-gold);font-weight:600;text-decoration:none}
.ast-reader-v2 .ast-reader-format{color:var(--room-muted);font-size:14px;margin-inline-start:auto}
.ast-reader-v2 [data-reader-focus][hidden]{display:none!important}
.ast-reader-v2 .ast-reader-heading{padding:18px 0 10px;margin:0}
.ast-reader-v2 .ast-reader-heading .ast-eyebrow{font:600 14px/1.5 system-ui,sans-serif;color:var(--room-gold);letter-spacing:.08em;margin:0 0 9px}
.ast-reader-v2 .ast-reader-heading h2{font:400 clamp(25px,3vw,40px)/1.2 Georgia,serif;letter-spacing:-.02em;color:var(--room-fg);margin:0 0 16px;overflow-wrap:anywhere}
.ast-reader-v2 .ast-reader-meter{display:flex;align-items:center;gap:14px;max-width:600px;color:var(--room-muted);font-size:14px}
.ast-reader-v2 .ast-reader-meter progress{flex:1;min-width:60px}
.ast-reader-v2 .ast-reader-meter span{white-space:nowrap}
.ast-reader-v2 .ast-reader-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 14px;padding:0}
.ast-reader-v2 .ast-reader-toolbar label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:0;color:var(--room-muted);font-size:16px}
.ast-reader-v2 .ast-reader-toolbar input[type=number]{width:100px}
.ast-reader-v2 :is(.ast-reader-toolbar,.ast-reader-end,.ast-publication-controls,.ast-reader-topline) :is(button,select,input:not([type=range]),a){min-height:44px;max-width:100%;padding:8px 12px;font:500 16px/1.4 system-ui,sans-serif;border:1px solid #51515a;border-radius:6px;color:var(--room-fg);background:#212228;text-decoration:none;box-shadow:none;overflow-wrap:anywhere}
.ast-reader-v2 .ast-reader-topline .ast-reader-back{padding:0;background:transparent;border:0;color:var(--room-gold)}
.ast-reader-v2 .ast-reader-toolbar a,.ast-reader-v2 .ast-reader-end a{display:inline-flex;align-items:center;justify-content:center}
.ast-reader-v2 :is(.ast-reader-primary,.ast-reader-end) :is([data-epub-next],.ast-reader-next){color:#15110c;background:var(--room-gold);border-color:var(--room-gold);font-weight:650}
.ast-reader-v2 :is(button,a,summary):focus-visible,.ast-bookshelf-v2 :focus-visible{outline:3px solid #6ce7ef;outline-offset:3px}
.ast-reader-v2 .ast-reader-drawer{margin:8px 0;border:1px solid var(--room-line);border-radius:7px;background:#191a1f;padding:0 14px}
.ast-reader-v2 .ast-reader-drawer summary{display:list-item;padding:10px 0;font:500 16px/1.5 system-ui,sans-serif;color:var(--room-fg);cursor:pointer}
.ast-reader-v2 .ast-reader-drawer[open] summary{border-bottom:1px solid var(--room-line)}
.ast-reader-v2 .ast-publication-controls{padding:12px 0;margin:0;border:0;background:transparent;gap:12px}
.ast-reader-v2 .ast-publication-controls label{font-size:14px;min-width:0;flex:1 1 135px}
.ast-reader-v2 .ast-publication-controls output{color:var(--room-gold)}
.ast-reader-v2 .ast-reader-note{font-size:16px;color:var(--room-muted);margin:0 0 12px}
body .ast-reader-v2 .ast-publication-page{margin:24px auto!important;border-radius:7px;padding:clamp(20px,4vw,54px)!important;box-shadow:0 12px 42px #0004}
.ast-reader-v2 .ast-publication-page .ast-eyebrow{font:500 14px/1.5 system-ui,sans-serif;letter-spacing:.07em;margin-bottom:24px}
.ast-reader-v2 .ast-publication-page :is(figcaption,pre){font-size:max(14px,.85em);opacity:1}
.ast-reader-v2[data-pub-mode="comic"] .ast-publication-page{padding:clamp(6px,1vw,16px)!important;max-width:100%}
.ast-reader-v2 .ast-reader-end{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;max-width:760px;margin:20px auto 28px}
.ast-reader-v2 .ast-reader-end .ast-reader-next{margin-inline-start:auto}
.ast-reader-v2 .ast-reader-footer{border-color:var(--room-line);font-size:16px;color:var(--room-muted)}
.ast-reader-v2 .ast-reader-footer a{display:inline-flex;align-items:center;color:var(--room-gold)}
.ast-reader-v2 .ast-pdf-frame{width:100%;height:78vh;min-height:440px;border-radius:6px;border:1px solid var(--room-line)}
body .ast-reader-shell.ast-reader-v2:fullscreen{max-width:none;max-height:none;width:100%;height:100%;margin:0;border:0;border-radius:0;padding:clamp(12px,2vw,28px);overflow:auto;background:#111215}
@media(max-width:600px){body .ast-reader-shell.ast-reader-v2{padding:12px;border-radius:8px}.ast-reader-v2 .ast-reader-format{margin-inline-start:0}.ast-reader-v2 .ast-reader-toolbar label{width:auto;flex:1 1 150px;justify-content:flex-start}.ast-reader-v2 .ast-reader-toolbar select{max-width:100%;min-width:0}.ast-reader-v2 .ast-reader-toolbar input[type=search]{width:100%;min-width:0}.ast-reader-v2 .ast-reader-end>*{flex:1 1 130px}.ast-reader-v2 .ast-reader-heading h2{font-size:27px}.ast-reader-v2 .ast-reader-drawer{padding:0 10px}body .ast-reader-v2 .ast-publication-page{padding:18px!important;margin:16px auto!important}.ast-reader-v2 .ast-pdf-frame{height:65vh;min-height:330px}}
@media(prefers-reduced-motion:reduce){.ast-reader-v2 *, .ast-bookshelf-v2 *{scroll-behavior:auto!important;transition:none!important}}
/* Keep the text above the fold: appearance and find are compact on first load. */
.ast-reader-v2 .ast-reader-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.ast-reader-v2 .ast-reader-tools .ast-reader-drawer{margin:0}
.ast-reader-v2 .ast-reader-tools:has(details[open]){grid-template-columns:1fr}
.ast-reader-v2 .ast-reader-heading{padding:14px 0 6px}
.ast-reader-v2 .ast-reader-heading h2{margin-bottom:12px}
.ast-reader-v2 .ast-reader-toolbar{margin:8px 0 10px}
.ast-reader-v2 .ast-reader-inline-status{font-size:14px;line-height:1.45;color:var(--room-muted);margin:7px 0 0}
.ast-reader-v2 .ast-reader-inline-status:empty{margin:0}
body .ast-reader-v2 .ast-publication-page{margin:16px auto!important}
.ast-reader-v2 .ast-publication-page .ast-eyebrow{margin-bottom:14px}
.ast-reader-v2 .ast-publication-page .ast-eyebrow+:is(h1,h2,h3){margin-top:0}
@media(max-width:600px){.ast-reader-v2 .ast-reader-topline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.ast-reader-v2 .ast-reader-topline .ast-reader-format{grid-row:2;grid-column:1/-1}.ast-reader-v2 .ast-reader-topline [data-reader-focus]{grid-row:1;grid-column:2}.ast-reader-v2 .ast-reader-heading .ast-eyebrow{letter-spacing:.04em}.ast-reader-v2 .ast-reader-tools .ast-reader-drawer summary{font-size:16px}.ast-reader-v2 .ast-reader-tools .ast-reader-drawer{padding-inline:9px}}
@media(max-width:355px){.ast-reader-v2 .ast-reader-tools{grid-template-columns:1fr}}


/* RC9 editorial chrome; preserve all publication theme, text, zoom, ad and fullscreen preferences. */
.ast-bookshelf-v2,.ast-reader-v2{--room-bg:#101116;--room-panel:#191b22;--room-fg:#f2f3f5;--room-muted:#b6bdc9;--room-line:#353943;--room-gold:#e5c28b;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
body .ast-reader-shell.ast-reader-v2{background:#15171d;border-color:#353943;border-radius:14px;box-shadow:none}
.ast-bookshelf-v2 .ast-bookshelf-info h2,.ast-reader-v2 .ast-reader-heading h2{font:650 20px/1.35 system-ui,sans-serif;letter-spacing:-.02em;text-shadow:none}
.ast-bookshelf-v2 .ast-bookshelf-intro{font-size:16px;line-height:1.6}
.ast-bookshelf-v2 .ast-library-card:hover{transform:none;box-shadow:none}
.ast-reader-v2 :is(.ast-reader-primary,.ast-reader-tools,.ast-reader-toolbar,.ast-reader-drawer,.ast-reader-end){border-color:#353943;box-shadow:none}
.ast-reader-v2 :is(.ast-reader-toolbar,.ast-reader-end,.ast-reader-drawer) :is(button,summary,a),.ast-bookshelf-v2 .ast-button{border-radius:8px;letter-spacing:0;text-transform:none;text-shadow:none}
