/* Preview colors only. The default/light composition is untouched. */
.theme-preview-toggle{position:fixed;right:12px;bottom:12px;z-index:100;display:flex;align-items:center;gap:6px;min-width:57px;min-height:30px;padding:7px 9px;background:var(--paper);color:var(--ink);border:1px solid #849177;border-radius:3px;font:9px/1 Rubik,Arial,sans-serif;box-shadow:0 2px 8px #11111112;cursor:pointer}.theme-preview-toggle[hidden]{display:none}.theme-preview-toggle svg{width:12px;height:12px}.theme-preview-toggle:focus-visible{outline:2px solid #8fabd4;outline-offset:3px}
html[data-preview-theme=dark]{color-scheme:dark;--paper:#151b18;--ink:#e7e6dc;--blue:#a8c2e8;--lightblue:#a9c2e3;--rule:#48574a;--night:#101820;--sage:#a8b99b;--stone:#c0bca6;--stone-paper:#292b23;--forest:#d0dbc5;background:#151b18}
html[data-preview-theme=dark] body{background:#151b18;color:#e7e6dc}
html[data-preview-theme=dark] :is(h1,h2,h3,h4,p,li,dt,dd,blockquote,label){color:inherit}
html[data-preview-theme=dark] .grid{color:#a8c2e8}
html[data-preview-theme=dark] :is(.mono,.chapter-art>.mono,.context-heading>.mono,.context-footnote,.context-entry .mono,.record-index dt,.home-journal-list .mono,.footer-column>.mono,.footer-intro>.mono,.evaluation-note,.editorial-note,.article-reading aside a,.form-explanation,.draft-output>p){color:#b5c1a9}
html[data-preview-theme=dark] :is(.context-link,.text-link,.journal-read,.breadcrumb,.journal-row h2 a:hover,.home-journal-list h3 a:hover){color:#acc7ed}
html[data-preview-theme=dark] :is(.product-dropdown,.system-browser,.context-sheet,.small-paper,.plan-paper,.review-paper,.signal-slip,.evidence-ledger,.context-example,.home-outcome-record,.contact-draft,.truth-note,.source-window,.evidence-window,.environment-record,.world-overlay,.article-review-note,.company-world-caption,.not-found-world-caption){background:#253027;color:#e5e6da;border-color:#64765b;box-shadow:none}
html[data-preview-theme=dark] :is(.product-dropdown a:hover,.context-sheet-title,.plan-title,.ledger-title,.draft-title){background:#354131;color:#dce5d3}
html[data-preview-theme=dark] :is(.company-principles,.workflow-branches,.role-product,.role-engineering,.change-section,.persistent-section,.connection-lifecycle,.participation-sequence,.contradiction-section){background:#202c23;color:#e3e8dc}
html[data-preview-theme=dark] :is(.role-leadership,.sylvie-hero,.ouroboros-hero,.mobius-flow-section,.truthful-reply,.paths-section,.evidence-section){color:#e0e7dd}
html[data-preview-theme=dark] :is(.hub-network,.network-node,.network-source,.network-outcome,.objective-anchor,.continuity-record,.case-origin,.operation-fold,.insight-chain,.intent-ledger,.verification-ledger){color:#e1e6d9}
html[data-preview-theme=dark] :is(.network-node,.objective-anchor,.case-origin,.operation-fold){background:#263528}
html[data-preview-theme=dark] :is(.network-node p,.flow-label,.flow-label small,.signal-slip p,.context-sheet dt,.context-sheet dd,.fold-name,.environment-state,.review-state,.review-paper .mono){color:#d1dfc5}
html[data-preview-theme=dark] :is(input,textarea,select){background:#19221c!important;color:#e7e6dc!important;border-color:#75866a!important}
html[data-preview-theme=dark] :is(.draft-submit,.journal-filters button[aria-pressed=true]){background:#b9c8aa;color:#152117}
html[data-preview-theme=dark] .product-subnav{background:#151b18}
html[data-preview-theme=dark] .product-subnav a[aria-current=page]{color:#acc7ed}
html[data-preview-theme=dark] .theme-preview-toggle{background:#1c251e;color:#e8e8df;border-color:#788b6c}
html[data-preview-theme=dark] .paper-atmosphere{mix-blend-mode:screen;opacity:.012}
@media(max-width:760px){.theme-preview-toggle{right:8px;bottom:8px;min-height:36px;padding:9px}}
html[data-preview-theme=dark] :is(.p-principle,.hub-network,.network-source,.network-outcome,.reproduction-window,.engineering-window,.contrary-slip,.work-carriage){background:#263328;color:#e3e7db}
html[data-preview-theme=dark] :is(.window-title,.engineering-window .window-title){background:#354433;color:#dfe7d6}
html[data-preview-theme=dark] :is(.fold-3,.fold-4){background:#2d3a2d!important;color:#e4e7da}
html[data-preview-theme=dark] .p-icon{color:#b1c8df}
html[data-preview-theme=dark] .page-ouroboros .grid{color:#b7cca4}
html[data-preview-theme=dark] .page-mobius .grid{color:#d0c7af}
html[data-preview-theme=dark] .source-nav button[aria-pressed=true] .source-icon{background:#c3d1b6;color:#17231a}
