.chapter-end-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:18px 12px calc(18px + env(safe-area-inset-bottom,0px));max-width:860px;margin:0 auto;box-sizing:border-box;background:#fff;color:#25483f}
.chapter-end-actions button{min-width:0;min-height:44px;padding:10px 8px;border:1px solid #a5b9b0;border-radius:9px;background:#f5f7f4;color:#25483f;font-family:inherit;font-weight:600;font-size:13px;line-height:1.4;cursor:pointer;white-space:normal;touch-action:manipulation}
.chapter-end-actions .chapter-end-next{background:#254e43;color:#fff;border-color:#254e43}.chapter-end-actions button:disabled{cursor:default;opacity:.45}.chapter-end-actions button:focus-visible{outline:3px solid #c39b52;outline-offset:2px}.chapter-end-actions.chapter-end-book{max-width:none;padding:6px 12px;background:var(--pdf-bg,#282522)}
.reader-chapter-context{display:flex;align-items:center;gap:8px;padding:6px 10px;box-sizing:border-box;flex:0 0 auto;color:#f8f2e5;background:#282c26;border-bottom:1px solid #d2bc892a;font-family:inherit;z-index:2}
.reader-current-chapter{flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.reader-chapter-context nav,.reader-mode-switch{display:flex;gap:4px;align-items:center}
.reader-chapter-context button,.pdf-book-reader .reader-chapter-context button{height:34px;min-height:34px;padding:5px 9px;border:1px solid #92866a65;border-radius:6px;background:#ffffff07;color:#f8f2e5;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.reader-chapter-context button[aria-pressed=true]{background:#eadfc5;color:#28342b}.reader-chapter-context button:disabled{opacity:.35;cursor:default}.reader-chapter-context button:focus-visible{outline:2px solid #d9ad66;outline-offset:1px}
@media(max-width:700px){.reader-chapter-context{flex-wrap:wrap;gap:3px 6px;padding:4px 7px}.reader-current-chapter{flex:1 1 100%;font-size:12px;text-align:center}.reader-chapter-context nav{flex:1}.reader-chapter-context nav button{flex:1}.reader-chapter-context button,.pdf-book-reader .reader-chapter-context button{min-height:36px;height:36px;padding:5px 7px;font-size:11px}.reader-mode-switch{margin-left:auto}.chapter-end-actions{gap:5px}.chapter-end-actions button{font-size:12px}}

/* ASOY 2.0.0: mobile chapter/mode row must reserve its own space. */
@media(max-width:900px){
 .pdf-book-reader.pdf-book-mobile>.reader-chapter-context{position:relative;z-index:15;padding-top:max(5px,env(safe-area-inset-top,0px));background:#282c26f8}
}
