.reading-tools{position:relative;z-index:20;display:flex;justify-content:flex-end;align-items:center;gap:10px;max-width:1240px;margin:auto;padding:10px 24px;font:14px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:var(--ink,#201e1a)}.reading-tools button,.reading-tools summary{min-height:44px;padding:9px 16px;border:1px solid var(--line,#d0c9bc);border-radius:8px;background:var(--bright,#fcfbf8);color:inherit;cursor:pointer;font:inherit}.ambient-tools{position:relative}.ambient-panel{position:absolute;right:0;top:52px;width:min(320px,calc(100vw - 32px));padding:20px;background:var(--bright,#fcfbf8);border:1px solid var(--line,#d0c9bc);border-radius:12px;box-shadow:0 12px 30px #0002}.ambient-panel label{display:block;margin:8px 0}.ambient-panel select,.ambient-panel input{width:100%;max-width:100%;font:inherit}.ambient-panel select{padding:10px;margin-bottom:12px}.ambient-panel p,.ambient-panel a{font-size:13px}.ambient-panel input{accent-color:#668a6c}.reading-tools :focus-visible{outline:3px solid #7eab89;outline-offset:3px}
html[data-reading-theme=dark]{color-scheme:dark;background:#101211;--paper:#101211;--bright:#1a1e1b;--ink:#e8ece7;--soft:#b5beb4;--line:#465047;--moss:#a5c6a6;--ink-muted:#b5beb4;--paper-deep:#1a1e1b;--moss-deep:#d3e7d4;--moss-soft:#25372a;--danger:#ffa6a0}
html[data-reading-theme=dark] body{background:#101211!important;color:#e8ece7!important}
html[data-reading-theme=dark] :is(header,footer,dialog,.ambient-panel,.chapter-card,.learn-task,.learn-unit,.learn-feedback,.note-action,.note-action-body,.note-highlight,.contribution-help,.contributor-fields,.research-map button,.framework-step,.route-group,.community-panel,.comments-panel,.admin-card,.panel,.card,table,thead,tbody,tr,th,td){background-color:#1a1e1b!important;color:#e8ece7!important;border-color:#465047!important}
html[data-reading-theme=dark] :is(h1,h2,h3,h4,strong,b,blockquote,label,legend,summary,.book-title,.learn-prompt){color:#e8ece7!important}
html[data-reading-theme=dark] :is(p,small,.learn-note,.note-caption,.chapter-number,.learn-eyebrow,.note-attribution,.book-author,.book-meta){color:#bfc8bd!important}
html[data-reading-theme=dark] :is(a,.brand){color:#b6d8b5!important}
html[data-reading-theme=dark] :is(input,textarea,select,button,.learn-hint,.learn-tag,.note-deliverable){background-color:#212923!important;color:#e8ece7!important;border-color:#526354!important}
html[data-reading-theme=dark] :is(button[aria-pressed=true],button[aria-selected=true],.primary,.learn-primary){background-color:#b0cfb0!important;color:#132116!important;border-color:#b0cfb0!important}
html[data-reading-theme=dark] button[aria-pressed=true] :is(strong,small,span){color:#132116!important}
html[data-reading-theme=dark] .learning-workspace{--learn-ink:#e8ece7;--learn-line:#465047;--learn-soft:#25372a}
html[data-reading-theme=dark] .reading-nav{background:#101211!important}html[data-reading-theme=dark] #read-overview strong{text-decoration-color:#a5c6a6}html[data-reading-theme=dark] ::placeholder{color:#aebbaa!important}html[data-reading-theme=dark] ::selection{background:#52765b;color:#fff}html[data-reading-theme=dark] dialog::backdrop{background:#000a}
@media(max-width:600px){.reading-tools{padding:8px 16px}.ambient-panel{position:absolute}.reading-tools button,.reading-tools summary{padding:9px 12px}}
