/* Final compact reader chrome; chapter drawer unchanged. */
body[data-reader-review=yes][data-reader-stage="2"]:not(:has(#header[hidden])) .reader-bar{top:calc(var(--reader-header-bottom,var(--header)) + 10px);margin-top:10px}
body[data-reader-review=yes][data-reader-stage="1"] .reader-bar,body[data-reader-review=yes]:has(#header[hidden]) .reader-bar{top:8px}
body[data-reader-review=yes] .reader-bar{box-sizing:border-box;width:min(100%,var(--reader-fit-bar,var(--reading-width,100%)));max-width:100%;margin-inline:auto}
@media(min-width:701px){
body[data-reader-review=yes] .reader-bar{min-height:54px;padding:6px 9px;gap:7px}
body[data-reader-review=yes] :is(.reader-bar,.reader-controls) .reader-tool{width:32px;min-width:32px;height:32px;padding:5px}
body[data-reader-review=yes] :is(.reader-bar,.reader-controls) .reader-tool .ic{width:18px;height:18px}
body[data-reader-review=yes] .reader-work-title b{font-size:14px}
body[data-reader-review=yes] .reader-work-title small{font-size:11px}
body[data-reader-review=yes] .reader-top-cover{width:28px;height:38px;flex-basis:28px}
body[data-reader-review=yes] .reader-title-row{gap:6px}
body[data-reader-review=yes] .reader-bar .reader-chapter-link,body[data-reader-review=yes] .reader-current-chapter{font-size:12px;min-height:32px;padding:5px 9px}
body[data-reader-review=yes] .reader-controls{min-height:44px;padding:5px 8px;gap:6px}
body[data-reader-review=yes] .reader-controls .reader-page-count{font-size:12px;min-height:29px}
body[data-reader-review=yes] .reader-zoom-value{font-size:12px}
body[data-reader-review=yes] .reader-bar.reader-fit-narrow{grid-template-columns:minmax(0,1fr) auto;gap:5px}
body[data-reader-review=yes] .reader-fit-narrow .reader-title-row{grid-column:1;grid-row:1}
body[data-reader-review=yes] .reader-fit-narrow .reader-bar-actions{grid-column:2;grid-row:1}
body[data-reader-review=yes] .reader-fit-narrow .reader-chapter-nav{grid-column:1/-1;grid-row:2;justify-content:center}
}
@media(max-width:700px){body[data-reader-review=yes][data-reader-stage="2"]:not(:has(#header[hidden])) .reader-bar{top:calc(var(--reader-header-bottom,var(--header)) + 7px);margin-top:7px}}

/* Keep the initial flow and sticky offset in agreement. */
body[data-reader-review=yes]:not(.focus) #app{padding-top:5px!important}
body[data-reader-review=yes][data-reader-stage="2"]:not(:has(#header[hidden])) .reader-bar{margin-top:0}
@media(max-width:700px){body[data-reader-review=yes]:not(.focus) #app{padding-top:2px!important}}

/* Mobile: reserve physical space and use the untransformed header layout. */
@media(max-width:700px){
 body[data-reader-review=yes]:not(.focus)[data-reader-stage="2"]:not(:has(#header[hidden])) #app{padding-top:7px!important}
 body[data-reader-review=yes][data-reader-stage="2"]:not(:has(#header[hidden])) .reader-bar{top:var(--reader-mobile-sticky-top,76px);margin-top:0!important}
}
