:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
.ledger-appearance .ledger-theme-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.ledger-appearance .ledger-theme-current { font-size:14px; color:var(--text); font-weight:600; }
.ledger-appearance .ledger-theme-hint { font-size:12px; line-height:1.7; color:var(--text-secondary); margin:6px 0 0; }
.ledger-theme-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; min-height:44px; padding:10px 16px; flex-shrink:0; }
.ledger-theme-button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ledger-theme-button:hover, .ledger-theme-button:active { transform:none; }
.ledger-sound-row { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:18px; cursor:pointer; font-size:13px; color:var(--text); }
.ledger-sound-row input { width:18px; height:18px; accent-color:var(--primary); }
.ledger-volume { display:flex; align-items:center; gap:12px; margin-top:4px; color:var(--text-secondary); font-size:12px; }
.ledger-volume input { min-width:80px; width:180px; max-width:45vw; min-height:44px; accent-color:var(--primary); }
.ledger-volume output { min-width:34px; font-variant-numeric:tabular-nums; }
.ledger-appearance :is(button,input):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.ledger-appearance ::selection { background:var(--primary-light); color:var(--text); }
.liquid-theme-defs { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.liquid-theme-layer { position:fixed; inset:0; z-index:2147483000; pointer-events:none!important; overflow:clip; background:var(--bg); color:var(--text); isolation:isolate; }
.liquid-theme-layer * { pointer-events:none!important; caret-color:transparent!important; transition:none!important; animation:none!important; }
.liquid-theme-document { min-height:100vh; }
/* Color changes are committed in a single paint after the liquid has covered them. */
html:is([data-liquid-running],[data-liquid-settling]) *,
html:is([data-liquid-running],[data-liquid-settling]) *::before,
html:is([data-liquid-running],[data-liquid-settling]) *::after { transition:none!important; }
@media (prefers-reduced-motion:reduce) {
  .ledger-appearance *, .liquid-theme-layer * { transition:none!important; animation:none!important; }
}
