:root { color-scheme: light; }
.header-actions { display:flex; align-items:center; gap:22px; }
.theme-toggle { width:auto; min-height:42px; padding:8px 12px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:#edf8f4; color:var(--green); font-size:12px; white-space:nowrap; }
.theme-toggle:hover { background:#d9f0e8; }
.theme-toggle[hidden] { display:none; }
.theme-moon,.theme-sun { font-size:21px; line-height:1; }
.theme-sun { display:none; }
:root[data-theme=dark] { color-scheme:dark; --ink:#e5edf4; --muted:#acc0ce; --green:#6fdbc0; --line:#324858; }
:root[data-theme=dark] body { background:#101b26; }
:root[data-theme=dark] header { background:#152431; }
:root[data-theme=dark] .card { background:#192936; box-shadow:0 8px 28px #00000025; }
:root[data-theme=dark] a { color:var(--green); }
:root[data-theme=dark] .brand { color:var(--ink); }
:root[data-theme=dark] .step,
:root[data-theme=dark] fieldset input:checked+span,
:root[data-theme=dark] .badge,
:root[data-theme=dark] .copy-button,
:root[data-theme=dark] .field-help p,
:root[data-theme=dark] .field-help summary:hover,
:root[data-theme=dark] .month-grid a[aria-current=true],
:root[data-theme=dark] .explore-days .selected-day { background:#1b3d3b; border-color:#3b746a; }
:root[data-theme=dark] input:not([type=radio]):not([type=checkbox]),
:root[data-theme=dark] select { background:#10212e; color:var(--ink); border-color:#425b6c; }
:root[data-theme=dark] input::placeholder { color:#97adbc; opacity:1; }
:root[data-theme=dark] button:not(.copy-button):not(.clear-number):not(.theme-toggle),
:root[data-theme=dark] .consulta-modos a[aria-current=page],
:root[data-theme=dark] .year-grid a[aria-current=true],
:root[data-theme=dark] .export-links a { background:#0b7765; color:#fff; }
:root[data-theme=dark] button:not(.copy-button):not(.clear-number):not(.theme-toggle):hover { background:#095f52; }
:root[data-theme=dark] .consulta-modos a { background:#192936; }
:root[data-theme=dark] .document-icon { background:#233c4b; color:#acc9d7; }
:root[data-theme=dark] .empty small { color:var(--muted); }
:root[data-theme=dark] aside { background:#1b303f; }
:root[data-theme=dark] aside strong { color:#cee0e8; }
:root[data-theme=dark] .error { background:#442a25; border-color:#865244; color:#ffc4ae; }
:root[data-theme=dark] .copy-button:hover,
:root[data-theme=dark] .clear-number:hover { background:#28534b; color:var(--green); }
:root[data-theme=dark] .theme-toggle { background:#203a46; color:#e0f4ed; }
:root[data-theme=dark] .theme-toggle:hover { background:#2b4c57; }
:root[data-theme=dark] .theme-moon { display:none; }
:root[data-theme=dark] .theme-sun { display:inline; }
:root[data-theme=dark] .access-overlay { background:#050c16b0; }
:root[data-theme=dark] .converter-results { background:#103f39; }
:root[data-theme=dark] .converter-daily { color:#e6fff5; }
:root[data-theme=dark] .month-future { background:#14232f; color:var(--muted); }
:root[data-theme=dark] .month-future small { color:var(--muted); }
:root[data-theme=dark] .explore-stats>div { background:#1c393b; }
:root[data-theme=dark] .explore-stats span { color:#b5d1cc; }
:root[data-theme=dark] .explore-stats strong { color:#a1eed8; }
:root[data-theme=dark] .exchange-chart line { stroke:var(--line); }
:root[data-theme=dark] .exchange-chart text { fill:var(--muted); }
:root[data-theme=dark] .chart-buy { stroke:#6fdbc0; }
:root[data-theme=dark] .chart-sell { stroke:#ffb563; }
:root[data-theme=dark] .legend-buy:before { background:#6fdbc0; }
:root[data-theme=dark] .legend-sell:before { background:#ffb563; }
@media(max-width:700px) { .header-actions { gap:12px; } .theme-toggle-label { display:none; } .theme-toggle { width:42px; padding:8px; } }
@media(max-width:480px) { .header-actions { width:100%; justify-content:space-between; } }
