#reading {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(480px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: #f5f9fb;
  color: #113d56;
  overflow-y: auto;
}
#reading::backdrop { background: #102c4666; }
#reading h2 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 24px; }
#reading .dialog-top { gap: 12px; align-items: center; }
#reading .close { min-width: 44px; min-height: 44px; flex-shrink: 0; }
#reading .settings-body { display: flex; flex-direction: column; gap: 12px; }
#reading .check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin: 0;
  border: 1px solid #adc6d3;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
}
#reading .check:has(:checked) { background: #e0eff7; border-color: #075e8d; }
#reading input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #075e8d; }
#reading select { width: 100%; min-height: 48px; background: white; border: 1px solid #adc6d3; border-radius: 8px; padding: 8px; }
#reading .small { font-size: .875rem; }
.accessibility-link-highlight a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px solid currentColor; outline-offset: 3px; }
.accessibility-heading-highlight :is(h1,h2,h3,h4) { outline: 2px solid currentColor; outline-offset: 5px; }
.accessibility-text-spacing :is(p,li,blockquote,address,dt,dd) { line-height: 1.9 !important; letter-spacing: .08em !important; word-spacing: .12em !important; }
.accessibility-large-cursor, .accessibility-large-cursor * { cursor: url('/assets/accessibility-cursor.svg') 3 3, auto !important; }
html[data-motion=reduce] *, html[data-motion=reduce] *::before, html[data-motion=reduce] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 480px) { #reading { padding: 20px; } }
