.site-tools .site-tools__reader { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 2px; flex: 0 0 28px; }
.site-tools .site-tools__reader[hidden], .capitol-reader[hidden], .capitol-reader [hidden] { display: none !important; }
.site-tools__reader[aria-expanded="true"], .site-tools__reader[data-reading="true"] { color: var(--capitol-red); }
.capitol-reader { position: fixed; z-index: 1100; top: 90px; right: 24px; width: 360px; max-width: calc(100% - 24px); max-height: calc(100dvh - 112px); overflow-y: auto; padding: 20px; background: #fff; color: #000; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 8px 28px #0002; font-size: calc(14px * var(--capitol-font-scale, 1)); line-height: 1.45; text-transform: none; }
body.admin-bar .capitol-reader { top: 122px; max-height: calc(100dvh - 144px); }
.capitol-reader__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.capitol-reader__heading h2 { margin: 0; font-size: calc(20px * var(--capitol-font-scale, 1)); line-height: 1.2; }
.capitol-reader button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; padding: 8px; border: 1px solid #aaa; border-radius: 2px; color: inherit; background: transparent; cursor: pointer; transition: background-color 180ms ease; }
.capitol-reader button:hover:not(:disabled) { background: #eee; }
.capitol-reader button:disabled { opacity: .4; cursor: default; }
.capitol-reader button::before, .capitol-reader button::after { content: none; }
.capitol-reader :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.capitol-reader label { display: block; margin-bottom: 6px; font-weight: 600; }
.capitol-reader select { display: block; width: 100%; min-width: 0; height: 40px; border: 1px solid #aaa; border-radius: 0; background: inherit; color: inherit; padding: 5px 8px; font: inherit; }
.capitol-reader__status { margin: 12px 0 8px; font-size: .92em; min-height: 1.45em; }
.capitol-reader__preview { margin: 0 0 16px; color: #555; font-size: .92em; overflow-wrap: anywhere; max-height: 5.8em; overflow-y: auto; }
.capitol-reader__controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.capitol-reader__controls [data-reader-action="play"], .capitol-reader__controls [data-reader-action="pause"] { border-color: currentColor; }
.capitol-reader__rate { display: flex; justify-content: space-between; }
.capitol-reader input[type="range"] { display: block; width: 100%; margin: 0 0 16px; accent-color: var(--capitol-red); }
.capitol-reader .capitol-reader__remote { display: flex; align-items: flex-start; gap: 8px; font-size: .85em; font-weight: 400; margin: 12px 0 0; }
.capitol-reader__remote input { margin-top: 4px; accent-color: var(--capitol-red); }
.capitol-reader-current { outline: 2px solid #777; outline-offset: 5px; }
body.a11y-contrast .capitol-reader { background: #000; color: #fff; border-color: #fff; }
body.a11y-contrast .capitol-reader__preview { color: #fff; }
body.a11y-contrast .capitol-reader button:hover:not(:disabled) { background: #333; }
body.a11y-contrast .capitol-reader-current { outline-color: #fff; }
@media (max-width: 760px) {
  .site-tools .site-tools__reader { width: 24px; height: 28px; flex-basis: 24px; }
  .capitol-reader { top: 76px; right: 12px; max-height: calc(100dvh - 88px); padding: 16px; }
  body.admin-bar .capitol-reader { top: 122px; max-height: calc(100dvh - 134px); }
}
@media (prefers-reduced-motion: reduce) { .capitol-reader button { transition: none; } }
