@charset "UTF-8";
/* Shared palette: the default stays dark; user preference is applied before paint. */
:root{
 color-scheme:dark;--bg:#171422;--surface:#252231;--panel:#211e2d;--elevated:#302c3c;--field:#2b2737;
 --ink:#f2e9df;--muted:#b9afc1;--soft-ink:#d3c6d7;--gold:#d9b77d;--on-accent:#241c23;--accent-hover:#ead0a1;
 --line:rgba(217,183,125,.22);--line-subtle:rgba(217,183,125,.10);--line-strong:rgba(217,183,125,.48);
 --accent-wash:rgba(217,183,125,.10);--accent-wash-hover:rgba(217,183,125,.17);
 --wash:rgba(255,255,255,.035);--wash-hover:rgba(255,255,255,.075);--wash-strong:rgba(255,255,255,.13);
 --user-bg:#353044;--placeholder:#b2a6bd;--disabled-bg:#3b3545;--disabled-ink:#afa3b8;--danger:#efb6bd;
 --glow-amber:rgba(217,183,125,.045);--glow-plum:rgba(149,119,177,.055);--outer-glow:#241f30;
 --backdrop:rgba(16,13,24,.76);--shadow-soft:rgba(0,0,0,.15);--shadow-card:rgba(0,0,0,.27);--shadow-lift:rgba(0,0,0,.34);--shadow-dialog:rgba(0,0,0,.48);
}
:root[data-theme="light"]{
 color-scheme:light;--bg:#f6f1e8;--surface:#fffcf6;--panel:#f8f3ec;--elevated:#fffaf2;--field:#fffdf8;
 --ink:#2b2635;--muted:#685f70;--soft-ink:#554b60;--gold:#866125;--on-accent:#fffaf1;--accent-hover:#76521b;
 --line:rgba(105,78,42,.24);--line-subtle:rgba(105,78,42,.12);--line-strong:rgba(105,78,42,.52);
 --accent-wash:rgba(134,97,37,.09);--accent-wash-hover:rgba(134,97,37,.15);
 --wash:rgba(73,50,79,.035);--wash-hover:rgba(73,50,79,.07);--wash-strong:rgba(73,50,79,.12);
 --user-bg:#ece3ef;--placeholder:#766a7e;--disabled-bg:#e9e2d9;--disabled-ink:#756c79;--danger:#9d323d;
 --glow-amber:rgba(183,142,72,.065);--glow-plum:rgba(133,100,159,.055);--outer-glow:#e9e1eb;
 --backdrop:rgba(50,40,57,.36);--shadow-soft:rgba(63,43,58,.08);--shadow-card:rgba(63,43,58,.16);--shadow-lift:rgba(63,43,58,.22);--shadow-dialog:rgba(63,43,58,.24);
}
.theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:76px;min-width:76px;height:44px;min-height:44px;padding:9px 10px;border:1px solid var(--line-strong);border-radius:999px;background:var(--wash);color:var(--muted);cursor:pointer;isolation:isolate}
.theme-toggle:before{content:"";position:absolute;left:5px;top:5px;width:32px;height:32px;border-radius:50%;background:var(--accent-wash-hover);transform:translateX(32px);transition:transform .2s ease;z-index:-1}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{color:var(--gold)}
[data-theme="light"] .theme-toggle:before{transform:translateX(0)}
[data-theme="light"] .theme-toggle .theme-sun{color:var(--gold)}
[data-theme="light"] .theme-toggle .theme-moon{color:var(--muted)}
.theme-toggle:hover{border-color:var(--gold);background:var(--wash-hover)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.credit-amount{display:inline-flex;align-items:center;gap:.24em;white-space:nowrap;vertical-align:baseline;font-variant-numeric:tabular-nums}
.currency-symbol{font-family:Georgia,"Times New Roman",serif;font-size:1.35em;font-weight:400;line-height:.9}
@media(prefers-reduced-motion:reduce){.theme-toggle:before{transition:none}}
