.theme-toggle{flex-shrink:0;font-size:18px;line-height:1;width:35px;height:35px}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--paper:#111813;--white:#19231d;--ink:#e0e8df;--muted:#a6b4a1;--line:#354335}
[data-theme="dark"] ::selection{background:#465f3b;color:#fff}
[data-theme="dark"] .topbar{background:#111813}
[data-theme="dark"] .breadcrumb strong,[data-theme="dark"] .icon-button{color:#dce7d4}
[data-theme="dark"] .breadcrumb,[data-theme="dark"] .eyebrow,[data-theme="dark"] .revision-label,[data-theme="dark"] .search-trigger,[data-theme="dark"] .official-link,[data-theme="dark"] .card-code,[data-theme="dark"] .card-footer,[data-theme="dark"] .page-meta,[data-theme="dark"] .progress-count,[data-theme="dark"] .site-footer,[data-theme="dark"] .result-book{color:#a8b7a0}
[data-theme="dark"] .search-trigger,[data-theme="dark"] .icon-button{border-color:#41513c}
[data-theme="dark"] .search-trigger kbd{border-color:#41513c;color:#becbb5}
[data-theme="dark"] .hero{border:1px solid #36553e}
[data-theme="dark"] .hero .eyebrow.light{color:#b3c3a9}
[data-theme="dark"] .hero h1{color:#f4f1e5}
[data-theme="dark"] .hero p{color:#c2d0b9}
[data-theme="dark"] .reading-banner{background:#223021;border-color:#43573a}
[data-theme="dark"] .reading-banner .badge-icon{background:#33472c;color:#d2dfc4}
[data-theme="dark"] .reading-banner p,[data-theme="dark"] .section-heading p,[data-theme="dark"] .dept-card p,[data-theme="dark"] .division-row small,[data-theme="dark"] .reference-box p,[data-theme="dark"] .page-header p,[data-theme="dark"] .step p,[data-theme="dark"] .progress-panel p,[data-theme="dark"] .path-card p,[data-theme="dark"] .article-top>p,[data-theme="dark"] .article-section p,[data-theme="dark"] .article-section li,[data-theme="dark"] .article-bottom p,[data-theme="dark"] .application-heading p,[data-theme="dark"] .application-columns p,[data-theme="dark"] .search-result p{color:#b0bea7}
[data-theme="dark"] .dept-icon{background:#2b3c28;border-color:#42533a;color:#d1dfc2}
[data-theme="dark"] .dept-card:hover{border-color:#91a57a}
[data-theme="dark"] .card-footer,[data-theme="dark"] .article-section p.source-line{border-color:#354335}
[data-theme="dark"] .card-footer .arrow,[data-theme="dark"] .row-arrow,[data-theme="dark"] .division-row .row-icon{color:#bed1aa}
[data-theme="dark"] .reference-box,[data-theme="dark"] .application-note{background:#1e2b21;border-color:#3a4a34}
[data-theme="dark"] .reference-box a,[data-theme="dark"] .text-link,[data-theme="dark"] .path-card a,[data-theme="dark"] .application-note a,[data-theme="dark"] .site-footer a,[data-theme="dark"] .article-section a{color:#c0d6a7}
[data-theme="dark"] .article-section a{text-decoration-color:#60784e}
[data-theme="dark"] .button.primary{background:#a5bf88;color:#13210f}
[data-theme="dark"] .button.primary:hover{background:#bdd5a2}
[data-theme="dark"] .button.outline{border-color:#536446;color:#d5e3c7}
[data-theme="dark"] .button.outline:hover{background:#2a3c26}
[data-theme="dark"] .source-chip{background:#1b291e;border-color:#405238;color:#c3d8ad}
[data-theme="dark"] .source-chip:hover{border-color:#9bb581}
[data-theme="dark"] .path-links a{border-color:#46593b}
[data-theme="dark"] .pill{background:#243421;border-color:#4d643f;color:#c8dcb2}
[data-theme="dark"] .step-number{background:#263720;border-color:#526b40;color:#d0e2bb}
[data-theme="dark"] .step:not(:last-child):after{background:#405237}
[data-theme="dark"] .check-toggle{color:#acbd9d}
[data-theme="dark"] .check-toggle.done{color:#d1e3b9}
[data-theme="dark"] .check-box{border-color:#6f845a}
[data-theme="dark"] .progress-track{background:#35442e}
[data-theme="dark"] .progress-track span{background:#a8c18a}
[data-theme="dark"] .callout{background:#253420;border-color:#8cae68;color:#c2d6ad}
[data-theme="dark"] .callout strong,[data-theme="dark"] .article-section h3{color:#deebd2}
[data-theme="dark"] .article-section p.source-line{color:#a2b497}
[data-theme="dark"] .article-toc strong,[data-theme="dark"] .article-toc a{color:#a8bb9a}
[data-theme="dark"] .article-toc a{border-color:#3b4e30}
[data-theme="dark"] .article-toc a:hover,[data-theme="dark"] .article-toc a.current{color:#d6e7c1;border-color:#adc98c}
[data-theme="dark"] .proposed-label{background:#3d3422;border-color:#7d6b3b;color:#e8d29e}
[data-theme="dark"] .application-tabs{background:#1b291e;border-color:#3b4e31}
[data-theme="dark"] .application-tabs a,[data-theme="dark"] .application-tabs a>span{color:#adbd9c}
[data-theme="dark"] .application-tabs a:hover{background:#2d3f26}
[data-theme="dark"] .application-tabs a[aria-selected="true"]{background:#3d5832;color:#f1f5e9}
[data-theme="dark"] .application-tabs a[aria-selected="true"]>span{color:#d4d8a5}
[data-theme="dark"] dialog{border-color:#516142;box-shadow:0 25px 100px #0008}
[data-theme="dark"] dialog::backdrop{background:#040a07b3}
[data-theme="dark"] .search-top,[data-theme="dark"] .search-input-wrap,[data-theme="dark"] .search-foot{border-color:#3d4e33}
[data-theme="dark"] .search-input-wrap input::placeholder{color:#a1b293;opacity:1}
[data-theme="dark"] .search-input-wrap>span,[data-theme="dark"] .search-foot,[data-theme="dark"] .empty-state{color:#aabd98}
[data-theme="dark"] .search-result:hover{background:#2b3e24}
[data-theme="dark"] .search-result mark{background:#526c39;color:#fff}
[data-theme="dark"] .toast{background:#d5e3c4;color:#203017}
@media print{html[data-theme="dark"]{color-scheme:light;--paper:#fff;--white:#fff;--ink:#111;--line:#bbb}[data-theme="dark"] .article-section p,[data-theme="dark"] .article-section li,[data-theme="dark"] .article-section h3,[data-theme="dark"] .article-section a{color:#111}.theme-toggle{display:none!important}}
