:root {
    --cs-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --cs-bg: #f3f5f4;
    --cs-surface: #ffffff;
    --cs-surface-subtle: #f7f9f8;
    --cs-shell: #0b1110;
    --cs-shell-2: #111918;
    --cs-text: #17201b;
    --cs-muted: #66726b;
    --cs-border: #dce3df;
    --cs-border-strong: #c8d2cc;
    --cs-brand: #69d819;
    --cs-brand-strong: #3f9f0a;
    --cs-live: #0891b2;
    --cs-warning: #d97706;
    --cs-danger: #dc2626;
    --cs-history: #7c3aed;
    --cs-radius: 6px;
    --cs-shadow: 0 14px 36px rgba(13, 24, 18, .08);
}

.ui-theme-toggle {
    min-height: 40px;
    border: 1px solid rgba(105, 216, 25, .46);
    border-radius: 8px;
    padding: 8px 12px;
    color: #dfffc8;
    background: #142019;
    font: 800 12px/1.2 var(--cs-font);
    cursor: pointer;
    box-shadow: none;
}

.ui-theme-toggle:hover {
    border-color: #8bea43;
    color: #fff;
    background: #213326;
    transform: none;
    box-shadow: none;
}

.ui-theme-toggle:focus-visible {
    outline: 3px solid rgba(105, 216, 25, .34);
    outline-offset: 2px;
}

.ui-theme-floating {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 100020;
    max-width: min(230px, calc(100vw - 28px));
    backdrop-filter: blur(10px);
}

html[data-ui-theme="next"] body {
    font-family: var(--cs-font);
    letter-spacing: 0;
}

html[data-ui-theme="next"] .ui-theme-toggle {
    border-color: rgba(255, 255, 255, .20);
    color: #e8eee9;
    background: #1c2722;
}

html[data-ui-theme="next"] .ui-theme-toggle:hover {
    border-color: rgba(105, 216, 25, .72);
    color: #fff;
    background: #26372d;
}

@media (prefers-reduced-motion: reduce) {
    html[data-ui-theme="next"] *,
    html[data-ui-theme="next"] *::before,
    html[data-ui-theme="next"] *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
