/* Afterword 3.5 -- additive styles for reader focus, series detail, and sync. */
#aw35Focus{font:700 11px Inter,Arial,sans-serif;padding:8px 10px;width:auto;white-space:nowrap;color:#dbd3fb;border-radius:7px;background:#39304f}
.reader.aw35Immersive .reader-header,.reader.aw35Immersive .reader-bottom{display:none!important}
.reader.aw35Immersive .reader-body{height:100dvh;min-height:100dvh;max-height:100dvh}
.reader.aw35Immersive .reader-main{height:100%;min-height:0;max-height:100%}
.reader.aw35Immersive .reading-scroll{height:100%;max-height:100%;align-items:center}
.reader.aw35Immersive .chapter-sidebar{display:none!important}
.aw35FocusExit{position:absolute;z-index:16;top:calc(14px + env(safe-area-inset-top));right:14px;background:#201d34db;border:1px solid #8a7cbd88;color:#d6c9fc;padding:11px 15px;font-size:11px;font-weight:700;border-radius:20px;opacity:.65;backdrop-filter:blur(12px)}
.aw35FocusExit:focus,.aw35FocusExit:hover{opacity:1}
.aw35ChapterTools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;margin:0 0 7px;color:#a69cce}
.aw35ChapterLine{display:flex;flex:1;min-width:0;align-items:center;gap:10px;justify-content:space-between}
#aw35ChapterStatus{color:#c7b8f7;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:75%}
#aw35ChapterSelect{height:30px;max-width:180px;min-width:90px;font-size:11px;padding:5px 7px}
#aw35Finish{padding:7px 10px;font-size:11px}
.aw35SeriesDetail{grid-column:1/-1;border:1px solid #514773;background:linear-gradient(110deg,#28223e,#1d1d2e);border-radius:16px;padding:20px;margin:0 0 22px}
.aw35SeriesHero{display:flex;gap:18px;align-items:flex-start}
.aw35SeriesCover{width:106px;min-width:106px;height:150px;display:grid;place-items:center;font:36px Georgia;color:#b4a9e9;border:1px solid #65587e;background:#393151;border-radius:10px;overflow:hidden}
.aw35SeriesCover img{width:100%;height:100%;object-fit:cover}
.aw35SeriesText{flex:1;min-width:0}
.aw35SeriesText small{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#aaa0d9}
.aw35SeriesText h3{font:400 clamp(23px,3vw,31px) Georgia,serif;margin:7px 0;color:#f1eafa}
.aw35SeriesText p{margin:7px 0 13px;font-size:12px;color:#c5bbd9;line-height:1.5}
.aw35SeriesProgress{width:min(100%,430px);height:7px;border-radius:10px;overflow:hidden;background:#47405f}
.aw35SeriesProgress span{display:block;height:100%;background:linear-gradient(90deg,#8777e0,#c8b6ff)}
.aw35SeriesText .btn{margin-top:4px}
.aw35FinishLabel{color:#a9d6c2;font-size:12px}
.aw35GalleryNotice{font-size:11px;color:#cfc7df;display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;padding:9px;border:1px solid #504565;background:#312a48;border-radius:10px;margin:10px 0}
.aw35GalleryNotice .btn{padding:8px 11px;font-size:10px}
.aw35CloudBox{display:grid;gap:9px;padding:11px 0}
.aw35CloudBox progress{width:100%;height:13px;accent-color:#ad9ffd;border-radius:9px}
.aw35CloudBox p{font-size:11px;overflow-wrap:anywhere}
.aw35CloudBox .btn{justify-self:start}
@media(max-width:650px){
 #aw35Focus{padding:6px 6px;font-size:10px}
 .aw35ChapterTools{margin:0 0 4px;gap:4px}
 .aw35ChapterLine{flex-wrap:wrap;gap:4px}
 #aw35ChapterStatus{max-width:100%;flex:1 1 100%;font-size:10px}
 #aw35ChapterSelect{max-width:100%;width:100%;height:27px}
 .aw35SeriesDetail{padding:13px}
 .aw35SeriesHero{gap:12px}
 .aw35SeriesCover{width:74px;min-width:74px;height:110px}
 .aw35SeriesText h3{font-size:21px}
 .aw35SeriesText p{font-size:10px}
 .aw35SeriesText .btn{padding:8px 10px;font-size:10px}
 .aw35FocusExit{font-size:10px;top:calc(6px + env(safe-area-inset-top));padding:7px 10px}
}

/* 3.7 compact immersive exit and centered single page */
.aw35FocusExit{min-width:32px;min-height:32px}
@media(max-width:650px){.reader.aw35Immersive .reading-scroll:has(.reader-canvas-wrap:not([hidden])){justify-content:center;align-items:center}.reader .reading-scroll.aw37Zoomed{justify-content:flex-start!important;align-items:flex-start!important}}
