.reader-toolbar { background:var(--bs-body-bg,#fff); border-bottom:1px solid var(--bs-border-color,#dee2e6); box-shadow:0 2px 10px rgb(0 0 0 / 5%); }
.reader-toolbar-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:1320px; margin:auto; padding:6px 16px; }
.reader-navigation,.reader-settings,.reader-actions,.reader-font-controls,.reader-auto-scroll { display:flex; align-items:center; gap:2px; }
.reader-settings { gap:4px; }
.reader-tool.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:36px; min-height:36px; padding:7px 9px; border:0; border-radius:7px; color:var(--bs-body-color,#343a40); font-size:13px; line-height:1; white-space:nowrap; }
.reader-tool.btn:hover,.reader-tool.btn:focus-visible { background:var(--bs-tertiary-bg,#f0f2f4); color:var(--bs-emphasis-color,#212529); }
.reader-tool.btn:focus-visible { outline:2px solid var(--bs-primary,#0d6efd); outline-offset:2px; box-shadow:none; }
.reader-tool.btn:disabled { opacity:.3; }
.reader-tool.btn.active,.reader-tool.btn[data-active="true"] { color:var(--bs-primary,#0d6efd); background:var(--bs-primary-bg-subtle,#e7f1ff); }
.reader-speed-toggle.btn { min-width:24px; padding-inline:5px; }
.reader-divider { width:1px; height:19px; margin:0 6px; background:var(--bs-border-color,#dee2e6); }
.reader-current-code { margin-left:7px; font-size:12px; font-weight:600; color:var(--bs-secondary-color,#6c757d); white-space:nowrap; }
.reader-language { font-weight:600; }
.reader-toolbar .dropdown-menu { min-width:175px; font-size:13px; }
body.dark-theme .reader-toolbar { background:#25292e; border-color:#41464d; }
body.dark-theme .reader-toolbar .reader-tool { color:#e9ecef; }
body.dark-theme .reader-toolbar .reader-tool:hover { background:#343a40; }
body.dark-theme .reader-current-code { color:#adb5bd; }
@media (max-width:767px) {
    .reader-toolbar-inner { flex-wrap:wrap; gap:3px 8px; padding:5px 10px; }
    .reader-navigation { flex:1; }
    .reader-actions { margin-left:auto; }
    .reader-settings { order:3; flex-basis:100%; justify-content:center; border-top:1px solid var(--bs-border-color,#dee2e6); padding-top:3px; }
    .reader-list-label { display:none; }
    .reader-tool.btn { min-width:36px; min-height:36px; }
}
@media (max-width:359px) { .reader-current-code { display:none; } }
