:root{color-scheme:light}
.theme-control{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:14px;color:var(--ink)}
.theme-control select{font:inherit;color:var(--ink);background:var(--paper);border:1px solid #9eafb9;border-radius:6px;padding:8px;min-height:42px;cursor:pointer}
.theme-control select:focus-visible{outline:3px solid #b26332;outline-offset:3px}
.topbar{height:auto;min-height:79px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
@media screen{
 html[data-theme="dark"]{color-scheme:dark;--ink:#e5edf3;--muted:#b2c1cd;--line:#3a4d5b;--green:#8ad9b9;--orange:#f2b184;--nav:#111e29;--paper:#14232e;--soft:#20333f}
 html[data-theme="dark"] :is(.card,details,.builder-panel,.search-trigger,.guide-button,.skip){background:var(--paper);border-color:var(--line)}
 html[data-theme="dark"] :is(.lede,.meta,.chapter-label,.toc>p,.toc nav a,.source-note,.source-note a,.card p,.card small,.step p,.definition dd,.section-source,.section-source a,.nextpage small,.flow span,footer,.topbar>a){color:var(--muted)}
 html[data-theme="dark"] :is(.source-note strong,.section-tag){color:var(--ink)}
 html[data-theme="dark"] :is(.codeblock,.codehead,th,.flow div,code){background:var(--soft);color:var(--ink);border-color:var(--line)}
 html[data-theme="dark"] pre code{background:none;color:inherit}
 html[data-theme="dark"] :is(.copy,.edit-code,.linkgrid a){color:var(--ink);border-color:#78909f}
 html[data-theme="dark"] :is(.copy:hover,.edit-code:hover,.guide-button:hover,.search-trigger:hover){background:var(--soft)}
 html[data-theme="dark"] :is(.callout,.builder-entry,.pill,.card .icon){background:#193a32;border-color:#4d8a73;color:#b2ecd0}
 html[data-theme="dark"] :is(.callout strong,.card .top-tag){color:#b2ecd0}
 html[data-theme="dark"] :is(.callout.note,.troubleshooting-context){background:#3b3025;border-color:#b58b62}
 html[data-theme="dark"] :is(.callout.note strong,.troubleshooting-context .section-tag){color:#f4c698}
 html[data-theme="dark"] .step{border-color:var(--line)}
 html[data-theme="dark"] .step:before{background:#193a32;color:#b2ecd0;border-color:#4d8a73}
 html[data-theme="dark"] :is(.builder-panel input,.builder-panel select,.builder-panel textarea,#example-editor,#search-input){background:#101d27;color:var(--ink);border-color:#78909f}
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a5b6c3;opacity:1}
 html[data-theme="dark"] .builder-panel select:disabled{background:var(--soft);color:var(--muted)}
 html[data-theme="dark"] .builder-primary{background:#8ad9b9;color:#14232e;border-color:#8ad9b9}
 html[data-theme="dark"] .builder-primary:hover{background:#b2ecd0;color:#14232e}
 html[data-theme="dark"] :is(button,a,summary,input,textarea,select):focus-visible{outline-color:#f2b184}
 html[data-theme="dark"] .terminal .term-label{color:#a6cbb7}
 html[data-theme="dark"] ::selection{background:#8ad9b9;color:#14232e}
}
@media(max-width:760px){.theme-control{margin-left:auto}.topbar{min-height:65px}}
@media print{html{color-scheme:light}}
