html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] body { background:#101925; color:#e2eaf6; }
html[data-theme="dark"] body>header,html[data-theme="dark"] body>footer { background:#182332; color:#c0cfe3; border-color:#34455c; }
html[data-theme="dark"] body a,html[data-theme="dark"] body .brand { color:#9ec7ff; }
html[data-theme="dark"] body .cta { background:#9ec7ff; color:#102b50; }
html[data-theme="dark"] details { border-color:#34455c; }
html[data-theme="light"] { --color-bg:#f5f7fb;--color-surface:#fff;--color-border:#c5d1e2;--color-border-subtle:#dce4ef;--color-text-primary:#102b50;--color-text-secondary:#3f5674;--color-text-muted:#52677f;--color-link:#0665d4;--color-link-hover:#084d9d; }
.public-theme-select { display:inline-flex; align-items:center; flex-wrap:wrap; gap:10px; font:inherit; }
.public-theme-select select { font:inherit; color:inherit; background:transparent; border:1px solid #7b8da5; border-radius:6px; min-height:40px; padding:6px 10px; }
.public-theme-select option { color:#102b50; background:#fff; }
html[data-theme="dark"] .public-theme-select option { color:#e2eaf6; background:#182332; }
@media print { .public-theme-select{display:none}html[data-theme] body{background:#fff;color:#102b50} }

body>header { flex-wrap:wrap; }
body>header .public-theme-select { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 40px; width:40px; height:40px; padding:0; margin-left:12px; border:1px solid #7b8da5; border-radius:10px; background:#edf4ff; color:#102b50; }
body>header .public-theme-select select { position:absolute; inset:0; width:100%; height:100%; min-height:0; opacity:0; padding:0; cursor:pointer; }
.public-theme-select:focus-within { outline:2px solid #438ae7; outline-offset:3px; }
html[data-theme="dark"] .public-theme-select { background:#25334a; color:#e2eaf6; }

html[data-theme="light"] body>header { background:#fff; color:#102b50; border-color:#dce4ef; }
html[data-theme="light"] .legal-brand { color:#102b50; }
html[data-theme="light"] .legal-brand .sketch { color:#0665d4; }
html[data-theme="light"] body a { color:#0759b5; }
html[data-theme="light"] .legal-nav-links a { color:#52677f; }
html[data-theme="light"] .legal-footer { color:#52677f; }
html[data-theme="light"] body .cta { color:#fff; background:#0869d3; }
