.gt-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid var(--line,#394556);border-radius:10px;padding:8px 12px;background:var(--panel2,var(--panel,#242c38));color:var(--text,#f3f4f6);font:600 13px system-ui,sans-serif;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.gt-theme-toggle[data-theme-compact]{width:36px;min-width:36px;padding:0;font-size:20px}
.gt-theme-toggle:focus-visible{outline:3px solid #ad7900;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark}
html[data-theme=light]{color-scheme:light;--bg:#f3f6fb;--panel:#fff;--panel2:#edf2f7;--line:#c5d0de;--text:#18253b;--dim:#4f6178;--faint:#5d6e84;--muted:#4f6178;--accent:#936000;--accent-ink:#1a1c22;--good:#167444;--bad:#b02c35;--yellow:#936000;--blue:#1c5fa8;--green:#126b4b;--purple:#7142a8;color:var(--text);background:var(--bg)}
html[data-theme=light] body{background:var(--bg);color:var(--text)}
html[data-theme=light] .gt-theme-toggle{background:#fff;color:#263d58;border-color:#b7c6d9}
html[data-theme=light] .gt-theme-toggle:hover{background:#e9f0f8}
html[data-theme=light] .gt-brand .logo,html[data-theme=light] .brand .logo,html[data-theme=light] .logo{background:#f5b301;color:#18202b}
html[data-theme=light] .primary,html[data-theme=light] .btn.primary,html[data-theme=light] .gm-btn.active,html[data-theme=light] .gt-iconbtn.active,html[data-theme=light] .ul-item.active .ul-num{background:#f5b301;color:#1d1b10;border-color:#c99200}
html[data-theme=light] .primary:hover:enabled{background:#ffca36}
html[data-theme=light] .quiet:hover:enabled{background:#e8eff7}
html[data-theme=light] .toolbar,html[data-theme=light] .custom-summary{background:#f9fbfe}
html[data-theme=light] .segmented{background:#e9eff7}
html[data-theme=light] .segmented button[aria-pressed=true]{background:#fff;color:#20334e;box-shadow:0 1px 4px #16294320}
html[data-theme=light] select{background:#fff;color:var(--text);border-color:#b9c8da}
html[data-theme=light] .avatar{background:#eef4fb}
html[data-theme=light] .player input{border-color:#9aafc8}
html[data-theme=light] .prompt-area,html[data-theme=light] .editor-preview,html[data-theme=light] .saved-text{background:#f7f9fd;border-color:#c7d3e3}
html[data-theme=light] .target{color:#18253b}
html[data-theme=light] .target .current{background:#e1ebf9}
html[data-theme=light] .next-word b{color:#405774}
html[data-theme=light] .progress-track{background:#dce5f0}
html[data-theme=light] .key{background:#edf2f8;color:#21344f;border-color:#b8c8dc;border-bottom-color:#aebed2}
html[data-theme=light] .key.next-key{background:#deebfb;color:var(--color);border-color:var(--color)}
html[data-theme=light] .key.hit{background:#16774c;color:#fff}
html[data-theme=light] .key.miss{background:#ae2f3e;color:#fff}
html[data-theme=light] .key.active{background:#cbdcf1}
html[data-theme=light] .key.space{color:#405774}
html[data-theme=light] .key.space.hit,html[data-theme=light] .key.space.miss{color:#fff}
html[data-theme=light] footer b{color:#354b68}
html[data-theme=light] dialog{background:#fff;border-color:#c2cee0;box-shadow:0 20px 80px #243b5b30}
html[data-theme=light] dialog::backdrop{background:#233d5d42}
html[data-theme=light] .editor-name,html[data-theme=light] #custom-text,html[data-theme=light] #lesson-code{background:#fff;color:#18253b;border-color:#a9bdd6}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#5d7089}
html[data-theme=light] .editor-errors,html[data-theme=light] #code-errors{color:#a22230}
html[data-theme=light] .clock.urgent strong{color:#b02c35}
html[data-theme=light] .touch-pad{background:#eaf1fb;color:#203b60;border-color:#8097b6}
html[data-theme=light] .touch-pad.down{background:#d6f2e5;color:#115b3c;border-color:#19774f}
html[data-theme=light] .gt-overlay{background:#20375445}
html[data-theme=light] .ov-card{box-shadow:0 20px 80px #243b5b30}
html[data-theme=light] .ul-item.active{background:#fff4ce}
html[data-theme=light] .kb-key{border-bottom-color:#aebed2}
html[data-theme=light] .kb-key.kb-hit .kb-ar,html[data-theme=light] .kb-key.kb-miss .kb-ar{color:#fff}
html[data-theme=light] .kb-popup{box-shadow:0 10px 28px #243b5b35}
html[data-theme=light] .gl,html[data-theme=light] .gw{border-bottom-color:#aebed2;box-shadow:0 4px 14px #243b5b20}
html[data-theme=light] .toast{background:#d6f2e5;color:#115b3c}
html[data-theme=light] nav[aria-label="Sinf mashqlari"] a:first-child{background:#fff2c9!important;color:#6d4b00!important;border-color:#dac076!important}
html[data-theme=light] nav[aria-label="Sinf mashqlari"] a:nth-child(2){color:#36567c!important}
.top{flex-wrap:wrap;gap:12px}

html[data-theme=light] .player input:disabled{border-color:transparent}html[data-theme=light] .gt-iconbtn.authed{background:#167444;color:#fff;border-color:#167444}html[data-theme=light] .players.waiting .prompt-area{opacity:1}html[data-theme=light] .no-print{opacity:1!important;color:#56667c}

html[data-theme=light] #custom-text::placeholder,html[data-theme=light] #lesson-code::placeholder{color:#5d7089;opacity:1}
