.ci-review .ci-book{max-width:1200px;margin:auto;padding-bottom:32px!important}.ci-review .bk-chapter-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:24px 0}.ci-review .bk-chapter-form label{flex:1;min-width:180px}.ci-review .bk-chapter-form select{display:block;width:100%;min-height:48px}.ci-review .bk-chapter-form button,.ci-review .ci-book button{min-height:44px;padding:10px 14px}.ci-review .ci-book-turn{background:var(--d-paper);color:var(--d-ink);border:2px solid var(--d-line);box-shadow:0 6px 24px #0004;border-radius:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:650px;gap:12px;align-items:center;padding:8px 12px}.ci-review .ci-book-turn a{display:flex;align-items:center;min-height:48px;padding:10px 16px;border-radius:5px;background:var(--d-blue);color:var(--d-paper);font-weight:bold;white-space:nowrap}.ci-review .ci-book-turn span{font-size:.85rem;text-align:center}.ci-review .ci-reader-controls{position:sticky;top:0;z-index:8;background:var(--d-paper);color:var(--d-ink);padding:10px;border:1px solid var(--d-line);border-top:4px solid var(--d-red);margin:16px 0;align-items:center}.ci-review .ci-reader-controls[hidden]{display:none}.ci-review #ci-book-viewport{height:68vh;height:68dvh;min-height:220px;border:1px solid var(--d-line);background:#e8edf5;scroll-margin-top:150px;touch-action:pan-x pan-y}.ci-review #ci-book-image{display:block;max-width:100%;height:auto;margin:0 auto;background:white}.ci-review .ci-book figure{margin:12px 0}.ci-review .ci-book figcaption{margin-top:12px}.ci-review .ci-book a:focus-visible,.ci-review .ci-book button:focus-visible,.ci-review #ci-book-viewport:focus-visible{outline:3px solid var(--d-red);outline-offset:3px}.ci-review #ci-blank-notice{padding:16px;border-left:4px solid var(--d-red);background:var(--d-soft)}.ci-review #ci-image-status{min-height:1.5em}.ci-review .ci-book-turn a{color:#fff;background:#1947c7}
@media(max-width:500px){.ci-review .ci-book-turn{gap:6px;padding:6px}.ci-review .ci-book-turn a{padding:10px;font-size:.85rem}.ci-review .ci-book-turn span{font-size:.72rem}.ci-review .ci-reader-controls{gap:6px;padding:6px}.ci-review .ci-reader-controls button{font-size:.8rem;padding:8px}.ci-review .bk-chapter-form{display:block}.ci-review .bk-chapter-form button{margin-top:8px}}
.ci-review .ci-book-turn span{color:var(--d-ink)!important}

/* Keep the image and page controls in separate rows of one bounded reader. */
.ci-review .ci-reader-frame{position:relative;display:flex;flex-direction:column;gap:8px;height:calc(100dvh - 32px - env(safe-area-inset-bottom));min-height:320px;max-height:1000px;scroll-margin-top:16px;background:var(--d-paper)}
.ci-review .ci-reader-frame .ci-reader-controls{position:static;flex:none;margin:0}
.ci-review .ci-reader-frame #ci-image-status{flex:none;margin:0;min-height:1.5em}
.ci-review .ci-reader-frame #ci-blank-notice{flex:none;margin:0;padding:8px 12px}
.ci-review .ci-reader-frame #ci-book-viewport{flex:1 1 0;min-height:0;height:auto;scroll-margin-top:16px}
.ci-review .ci-reader-frame .ci-book-turn{position:static;transform:none;flex:none;width:100%;max-width:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;margin:0;padding:8px 12px;box-sizing:border-box;box-shadow:none}
.ci-review .ci-page-position{display:flex;flex-direction:column;align-items:center;min-width:0;gap:2px}
.ci-review .ci-reader-frame .ci-book-turn .ci-reader-contents{min-height:44px;padding:6px 12px;text-decoration:underline}
.ci-review .ci-reader-caption{margin:12px 0}
@media(max-width:500px){.ci-review .ci-reader-frame .ci-book-turn{gap:6px;padding:6px}.ci-review .ci-reader-frame .ci-book-turn>a{padding:8px;font-size:.85rem}.ci-review .ci-page-position span{font-size:.72rem}.ci-review .ci-reader-frame .ci-reader-contents{font-size:.8rem}}
