:root { color-scheme: light dark; font-family: system-ui, sans-serif; line-height: 1.6; }
body { margin: 0; background: light-dark(#f6f7f9, #17191c); color: light-dark(#202327, #e1e4e8); }
main { max-width: 740px; margin: auto; padding: 24px 18px 40px; }
h1 { font-size: 1.6rem; }
p { overflow-wrap: anywhere; }
label { display: block; font-weight: 600; }
textarea, select, button, input { font: inherit; }
textarea, select { box-sizing: border-box; width: 100%; border: 1px solid #888; border-radius: 6px; padding: 9px; background: light-dark(#fff, #22252a); color: inherit; }
textarea { resize: vertical; margin: 6px 0 12px; }
button { padding: 9px 14px; border: 1px solid #788499; border-radius: 6px; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #548fee; outline-offset: 3px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.options select, .options input { display: block; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.note { font-size: .88rem; color: light-dark(#525b68, #abb4c1); }
audio { width: 100%; margin: 12px 0; }
progress { width: 100%; height: 12px; }
.remember { margin: 16px 0 8px; font-size: .9rem; font-weight: normal; }
.remember input { width: auto; margin-right: 8px; }
#reader-view h2 { font-size: 1.15rem; margin-bottom: 8px; }
#current-source { padding: 10px 12px; border-left: 4px solid #548fee; white-space: pre-wrap; max-height: 9rem; overflow: auto; }
#reader-source { position: relative; max-height: 22rem; overflow: auto; padding: 10px; border: 1px solid #888; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-part { display: inline; border: 0; border-radius: 3px; padding: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; background: transparent; color: inherit; }
.source-part:hover { background: light-dark(#e0e9f8, #293d59); }
.source-part[aria-current="location"] { background: light-dark(#d4e4ff, #304e79); outline: 2px solid #548fee; }
.source-part.pending { outline-style: dashed; }
a { color: light-dark(#155db0, #9bc5ff); }
[hidden] { display: none !important; }
.embedded-reader main { padding: 10px 8px 24px; }
.embedded-reader main > h1, .embedded-reader #audition-intro, .embedded-reader main > nav,
.embedded-reader #storage-controls { display: none; }
.embedded-reader textarea { max-height: 10rem; }
@media (max-width: 460px) { .options { grid-template-columns: 1fr; gap: 12px; } }
