/* Theme: toggle button + dark palette. Generated by tools/build-theme.mjs */
.theme-toggle{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--rule);background:transparent;color:var(--ink);font:650 .84rem system-ui,sans-serif;cursor:pointer}
.theme-toggle:hover{background:var(--tint)}
.legal-table{width:100%;border-collapse:collapse;margin:14px 0;font-size:.9rem}
.legal-table th,.legal-table td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.legal-table th{background:var(--tint)}
.legal-table code{overflow-wrap:anywhere}
.footer-legal{width:100%;margin:6px 0 0;font-size:.82rem}
.prose ul{padding-left:1.35rem}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]){color-scheme:dark;--ink:#e6eadc;--muted:#aab2a0;--paper:#121610;--white:#1a2017;--line:#394233;--purple:#a8d08d;--purple-dark:#c3e3a6;--tint:#27311f;--acid:#d8ed9b;--rule:#4a5543}
:root:not([data-theme="light"]) .skip{background:#1a2017;color:var(--ink)}
:root:not([data-theme="light"]) .editor{box-shadow:3px 3px 0 #090c07}
:root:not([data-theme="light"]) .tool-shelf{background:#171c14}
:root:not([data-theme="light"]) .tool-group button:hover{background:#28301f}
:root:not([data-theme="light"]) .tool-group button[aria-pressed="true"]{color:#1b211b}
:root:not([data-theme="light"]) .shelf-heading{background:#0d110a;color:#e6eadc}
:root:not([data-theme="light"]) .editor-toolbar{background:#0d110a;color:#e6eadc}
:root:not([data-theme="light"]) .bench-heading p{color:#aab2a0}
:root:not([data-theme="light"]) .editor-toolbar .text-button{color:#e6eadc;border-color:#5b6853}
:root:not([data-theme="light"]) .editor-toolbar .text-button:hover:not(:disabled){background:var(--acid);color:#1b211b}
:root:not([data-theme="light"]) .toolbar-more select{background:var(--acid);color:#1b211b}
:root:not([data-theme="light"]) .tool-controls select,:root:not([data-theme="light"]) .tool-controls input[type="text"]{border-color:#4a5543}
:root:not([data-theme="light"]) .tool-settings{background:#171c14}
:root:not([data-theme="light"]) .pane{background:#151a12}
:root:not([data-theme="light"]) .pane-output{background:#1b2117}
:root:not([data-theme="light"]) .pane-header{background:#20281b}
:root:not([data-theme="light"]) .pane textarea::placeholder{color:#7f8975}
:root:not([data-theme="light"]) .live-label{color:#aab2a0}
:root:not([data-theme="light"]) .live-label span{background:#7fb36b}
:root:not([data-theme="light"]) .button.primary{color:#10150d}
:root:not([data-theme="light"]) .button.primary:hover:not(:disabled){background:#c1df73;color:#10150d}
:root:not([data-theme="light"]) .button.secondary{background:#1a2017;color:var(--ink);border-color:#4a5543}
:root:not([data-theme="light"]) .button.secondary:hover:not(:disabled){background:var(--tint)}
:root:not([data-theme="light"]) .button:disabled,:root:not([data-theme="light"]) .button.primary:disabled{background:#1d2319;border-color:var(--line);color:#7f8975}
:root:not([data-theme="light"]) :focus-visible{outline-color:#a8d08d}
:root:not([data-theme="light"]) .review,:root:not([data-theme="light"]) .diff-result{background:#1b2117}
:root:not([data-theme="light"]) .review code{background:#28301f}
:root:not([data-theme="light"]) .diff-added,:root:not([data-theme="light"]) .diff-guide ins,:root:not([data-theme="light"]) .diff-inline ins{background:#23401d;color:#cfeab8}
:root:not([data-theme="light"]) .diff-removed,:root:not([data-theme="light"]) .diff-guide del,:root:not([data-theme="light"]) .diff-inline del{background:#4a2520;color:#f3c9c0}
:root:not([data-theme="light"]) .issue{border-left-color:#c98466;color:#e0b49f}
:root:not([data-theme="light"]) .examples pre,:root:not([data-theme="light"]) .metrics div{background:#1b2117}
:root:not([data-theme="light"]) .guide-body pre,:root:not([data-theme="light"]) .guide-path{background:#1b2117}
:root:not([data-theme="light"]) .guide-body .tool-link{background:#27311f}
:root:not([data-theme="light"]) .replace-preview mark{background:#6b5410;color:#fff3cf;border-bottom-color:#c9a63a}
:root:not([data-theme="light"]) .replace-preview .deleted-mark{background:#4a2520;color:#f3c9c0;border-color:#a75b4d}
:root:not([data-theme="light"]) .review-jump{background:#27311f;border-color:#6a7b57;color:#cfe6b4}
:root:not([data-theme="light"]) .tool-switcher summary{border-color:#5b6853;color:#e6eadc}
:root:not([data-theme="light"]) .tool-switcher summary:hover{background:#2a3326}
:root:not([data-theme="light"]) .analytics-actions button:hover{color:#1b211b}
}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e6eadc;--muted:#aab2a0;--paper:#121610;--white:#1a2017;--line:#394233;--purple:#a8d08d;--purple-dark:#c3e3a6;--tint:#27311f;--acid:#d8ed9b;--rule:#4a5543}
:root[data-theme="dark"] .skip{background:#1a2017;color:var(--ink)}
:root[data-theme="dark"] .editor{box-shadow:3px 3px 0 #090c07}
:root[data-theme="dark"] .tool-shelf{background:#171c14}
:root[data-theme="dark"] .tool-group button:hover{background:#28301f}
:root[data-theme="dark"] .tool-group button[aria-pressed="true"]{color:#1b211b}
:root[data-theme="dark"] .shelf-heading{background:#0d110a;color:#e6eadc}
:root[data-theme="dark"] .editor-toolbar{background:#0d110a;color:#e6eadc}
:root[data-theme="dark"] .bench-heading p{color:#aab2a0}
:root[data-theme="dark"] .editor-toolbar .text-button{color:#e6eadc;border-color:#5b6853}
:root[data-theme="dark"] .editor-toolbar .text-button:hover:not(:disabled){background:var(--acid);color:#1b211b}
:root[data-theme="dark"] .toolbar-more select{background:var(--acid);color:#1b211b}
:root[data-theme="dark"] .tool-controls select,:root[data-theme="dark"] .tool-controls input[type="text"]{border-color:#4a5543}
:root[data-theme="dark"] .tool-settings{background:#171c14}
:root[data-theme="dark"] .pane{background:#151a12}
:root[data-theme="dark"] .pane-output{background:#1b2117}
:root[data-theme="dark"] .pane-header{background:#20281b}
:root[data-theme="dark"] .pane textarea::placeholder{color:#7f8975}
:root[data-theme="dark"] .live-label{color:#aab2a0}
:root[data-theme="dark"] .live-label span{background:#7fb36b}
:root[data-theme="dark"] .button.primary{color:#10150d}
:root[data-theme="dark"] .button.primary:hover:not(:disabled){background:#c1df73;color:#10150d}
:root[data-theme="dark"] .button.secondary{background:#1a2017;color:var(--ink);border-color:#4a5543}
:root[data-theme="dark"] .button.secondary:hover:not(:disabled){background:var(--tint)}
:root[data-theme="dark"] .button:disabled,:root[data-theme="dark"] .button.primary:disabled{background:#1d2319;border-color:var(--line);color:#7f8975}
:root[data-theme="dark"] :focus-visible{outline-color:#a8d08d}
:root[data-theme="dark"] .review,:root[data-theme="dark"] .diff-result{background:#1b2117}
:root[data-theme="dark"] .review code{background:#28301f}
:root[data-theme="dark"] .diff-added,:root[data-theme="dark"] .diff-guide ins,:root[data-theme="dark"] .diff-inline ins{background:#23401d;color:#cfeab8}
:root[data-theme="dark"] .diff-removed,:root[data-theme="dark"] .diff-guide del,:root[data-theme="dark"] .diff-inline del{background:#4a2520;color:#f3c9c0}
:root[data-theme="dark"] .issue{border-left-color:#c98466;color:#e0b49f}
:root[data-theme="dark"] .examples pre,:root[data-theme="dark"] .metrics div{background:#1b2117}
:root[data-theme="dark"] .guide-body pre,:root[data-theme="dark"] .guide-path{background:#1b2117}
:root[data-theme="dark"] .guide-body .tool-link{background:#27311f}
:root[data-theme="dark"] .replace-preview mark{background:#6b5410;color:#fff3cf;border-bottom-color:#c9a63a}
:root[data-theme="dark"] .replace-preview .deleted-mark{background:#4a2520;color:#f3c9c0;border-color:#a75b4d}
:root[data-theme="dark"] .review-jump{background:#27311f;border-color:#6a7b57;color:#cfe6b4}
:root[data-theme="dark"] .tool-switcher summary{border-color:#5b6853;color:#e6eadc}
:root[data-theme="dark"] .tool-switcher summary:hover{background:#2a3326}
:root[data-theme="dark"] .analytics-actions button:hover{color:#1b211b}
