html:not([data-theme=light]){color-scheme:dark;--ink:#e5eee9;--muted:#b5c6c0;--paper:#142326;--line:#40575c;--gold:#e6c47d;--bg:#142326;--panel:#20353a;--soft:#2a4449;--accent:#a5d6b5;--felt:#142e2c;--edge:#4f7060}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.library,.permission,.practice-variation,.journal-notes,.index-group,.practice-print-controls,.journal-editor,.journal-toolbar,.saved-practice,.practice-table thead,.practice-table tbody tr:nth-child(even)){background:#20353a;color:var(--ink)}
html[data-theme=dark] :is(input,textarea,select,button,.filter,.return-control,.card){color:var(--ink);background-color:#20353a;border-color:var(--line)}
html[data-theme=dark] :is(.card .tags,h1 em,.meta,.practice-description,.filter-note){color:#b5d9c7}
html[data-theme=dark] .filter:hover{background:#304b50}
html[data-theme=dark] .filter[aria-pressed=true]{background:#385d62;color:#fff}
html[data-theme=dark] :is(.tree-quote,.collection-link,.practice-link,.finish){background:#29474d;color:#f6f4e8}
.owl-theme{display:flex;align-items:center;gap:.5rem;font-size:.85rem;margin-left:auto}.owl-theme select{font:inherit;padding:.4rem;border-radius:5px}.theme-status{font-size:.8rem}#practice-session{max-width:800px}#practice-session li{margin-block:1rem}
@media print{.owl-theme,.theme-status{display:none}html[data-theme]{--ink:#193d38;--paper:#fff;--muted:#536760;color-scheme:light}html[data-theme=dark] body{background:#fff;color:#193d38}}

/* Keep header controls in their reading order in both palettes. */
header .owl-theme{margin-left:auto;flex-shrink:0;flex-wrap:wrap;max-width:150px}header .tip-jar{margin-left:0;background:#f3f3e8;color:#193d38;border-color:#81968b}header .tip-jar:hover{background:#eee9d4;color:#193d38}header .tip-jar img{filter:none;opacity:1}
#page-help{position:fixed;right:18px;bottom:max(18px,env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:2px solid #235d83;border-radius:50%;background:#a9ddfa;color:#6a4c00;box-shadow:0 3px 12px #0004;cursor:pointer;padding:0}
#page-help span{display:flex;align-items:center;justify-content:center;width:27px;height:32px;border-radius:50%;background:transparent;color:#ffdf36;text-shadow:-1px 0 #705200,1px 0 #705200,0 -1px #705200,0 1px #705200;font:900 28px/1 system-ui}
#page-help:hover{background:#c9edff}#page-help:focus-visible{outline:3px solid #ffdf36;outline-offset:4px}
#page-help-dialog{position:fixed;inset:0;width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid var(--line,#81968b);border-radius:14px;background:var(--paper,#fafbf7);color:var(--ink,#193d38);font:16px/1.65 system-ui}
#page-help-dialog::backdrop{background:#102e29b8}#page-help-dialog h2{font:30px/1.2 Georgia,serif;margin:0 0 18px}#page-help-dialog button{font:inherit;padding:8px 15px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit}#page-help-dialog li{margin:.65rem 0}
body{padding-bottom:68px}
.user-manual{max-width:960px;padding:35px 6%;margin:auto}.user-manual h2{font-size:30px;margin:2rem 0 1rem}.user-manual h3{margin:1.5rem 0 .6rem}.user-manual li{margin:.5rem 0}.manual-toc{margin:0;display:block}.manual-toc ol{columns:2;column-gap:2rem}.manual-feature-table{border-collapse:collapse;width:100%}.manual-feature-table th,.manual-feature-table td{padding:.6rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
@media(max-width:650px){header .brand{flex:1 1 140px;max-width:100%}header .brand .brand-tagline{max-width:145px}header .owl-theme{margin-left:0;display:block;max-width:110px;font-size:12px}header .owl-theme select{display:block;max-width:110px}header [data-account-controls]{flex-basis:100%}.manual-toc ol{columns:1}}
@media print{#page-help,#page-help-dialog{display:none}body{padding-bottom:0}.user-manual{max-width:none;padding:0}.manual-toc ol{columns:2}}

footer .about-william-link{order:99;margin-left:auto;text-align:right;align-self:flex-end}footer .about-william-link a{color:inherit;text-underline-offset:3px}

.user-manual .manual-card{border:1px solid var(--line);border-radius:12px;margin:1rem 0;overflow:hidden}.user-manual .manual-card>summary{cursor:pointer;padding:1rem 1.2rem}.user-manual .manual-card>summary h2{display:inline;font-size:1.2rem;line-height:1.5;margin:0}.user-manual .manual-card-body{padding:0 1.2rem 1rem}.user-manual [data-manual-admin][hidden]{display:none!important}
