/* 本文件由 tools/build_theme.py 生成，请不要手改：颜色规则改 tools/build_theme.py，版式改 tools/theme_manual.css，然后重新生成。 */
/* ---- 一、由原有样式自动换色 ---- */
body:where(.gc-th:not(.gd-on)){background:var(--bg);color:var(--ink)}
:where(body.gc-th:not(.gd-on)) header{background:var(--card);border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) section{background:var(--card);border:1px solid var(--line);border-radius:20px}
:where(body.gc-th:not(.gd-on)) button,:where(body.gc-th:not(.gd-on)) input,:where(body.gc-th:not(.gd-on)) textarea,:where(body.gc-th:not(.gd-on)) select{border-radius:10px;border:1px solid var(--pri-line)}
:where(body.gc-th:not(.gd-on)) button{background:var(--pri);color:var(--on-pri);border:0}
:where(body.gc-th:not(.gd-on)) button.secondary{background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) button.danger{background:var(--err-l);color:var(--err)}
:where(body.gc-th:not(.gd-on)) input,:where(body.gc-th:not(.gd-on)) textarea,:where(body.gc-th:not(.gd-on)) select{background:var(--card);color:inherit}
:where(body.gc-th:not(.gd-on)) .muted{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .note{border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) #current{background:var(--pri-l);border-radius:14px}
:where(body.gc-th:not(.gd-on)) #msg{color:var(--err)}
:where(body.gc-th:not(.gd-on)) nav{background:var(--bg)}
:where(body.gc-th:not(.gd-on)) button:focus-visible,:where(body.gc-th:not(.gd-on)) input:focus-visible{outline:3px solid var(--pri-m)}
:where(body.gc-th:not(.gd-on)) header{box-shadow:0 1px 0 var(--line)}
:where(body.gc-th:not(.gd-on)) header strong{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) section{box-shadow:var(--shadow);border-color:var(--line)}
:where(body.gc-th:not(.gd-on)) section section{box-shadow:none;background:var(--surface2);border-radius:16px}
:where(body.gc-th:not(.gd-on)) button:hover{background:var(--pri-d)}
:where(body.gc-th:not(.gd-on)) button.secondary{background:var(--pri-l);color:var(--pri-ink);box-shadow:inset 0 0 0 1px var(--pri-line)}
:where(body.gc-th:not(.gd-on)) button.secondary:hover{background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) button.danger{box-shadow:inset 0 0 0 1px var(--err-line)}
:where(body.gc-th:not(.gd-on)) button.danger:hover{background:var(--err-l)}
:where(body.gc-th:not(.gd-on)) button[aria-pressed=true],:where(body.gc-th:not(.gd-on)) button.is-selected{background:var(--pri)!important;color:var(--on-pri)!important;box-shadow:0 2px 8px rgba(80,85,173,.35)!important}
:where(body.gc-th:not(.gd-on)) input:focus-visible,:where(body.gc-th:not(.gd-on)) textarea:focus-visible,:where(body.gc-th:not(.gd-on)) select:focus-visible,:where(body.gc-th:not(.gd-on)) button:focus-visible{outline:3px solid var(--pri-line);outline-offset:2px}
:where(body.gc-th:not(.gd-on)) input:not([type=range]):not([type=checkbox]):focus,:where(body.gc-th:not(.gd-on)) textarea:focus,:where(body.gc-th:not(.gd-on)) select:focus{border-color:var(--pri)}
:where(body.gc-th:not(.gd-on)) label{color:var(--ink)}
:where(body.gc-th:not(.gd-on)) nav{background:rgba(244,245,250,.92)}
:where(body.gc-th:not(.gd-on)) nav button{background:var(--card);color:var(--pri-ink);box-shadow:inset 0 0 0 1px var(--pri-line);border-radius:12px}
:where(body.gc-th:not(.gd-on)) nav button:hover{background:var(--pri-l)}
:where(body.gc-th:not(.gd-on)) nav button[aria-current=page],:where(body.gc-th:not(.gd-on)) nav button[aria-current=page]:hover{background:var(--pri);color:var(--on-pri);box-shadow:0 2px 10px rgba(80,85,173,.35)}
:where(body.gc-th:not(.gd-on)) #msg{border-radius:12px;box-shadow:0 8px 24px rgba(32,36,59,.18);background:var(--ok-l);color:var(--ok)}
:where(body.gc-th:not(.gd-on)) #msg[data-tone=warn]{background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) #msg[data-tone=err]{background:var(--err-l);color:var(--err)}
:where(body.gc-th:not(.gd-on)) .file-pick span{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .chip{border-radius:999px;background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .chip.done{background:var(--ok-l);color:var(--ok)}
:where(body.gc-th:not(.gd-on)) .chip.error{background:var(--err-l);color:var(--err)}
:where(body.gc-th:not(.gd-on)) .chip.processing{background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) button.grade-0{background:var(--err-l);color:var(--err);box-shadow:inset 0 0 0 1px var(--err-line)}
:where(body.gc-th:not(.gd-on)) button.grade-1{background:var(--warn-l);color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn-line)}
:where(body.gc-th:not(.gd-on)) button.grade-2{background:var(--ok-l);color:var(--ok);box-shadow:inset 0 0 0 1px var(--ok-line)}
:where(body.gc-th:not(.gd-on)) input[type=range]{accent-color:var(--pri)}
:where(body.gc-th:not(.gd-on)) input[type=checkbox]{accent-color:var(--pri)}
:where(body.gc-th:not(.gd-on)) #ttsCurrent{background:var(--pri-l);border-radius:14px}
:where(body.gc-th:not(.gd-on)) .counter{color:var(--mute)}
@media(max-width:700px){:where(body.gc-th:not(.gd-on)) section{border-radius:16px}}
:where(body.gc-th:not(.gd-on)) #trackBar{background:var(--card);border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(32,36,59,.12)}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-prog{border-radius:3px;background:var(--pri-l)}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-prog i{border-radius:3px;background:var(--pri)}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-info b{color:var(--ink)}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-info span{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-btns button,:where(body.gc-th:not(.gd-on)) #trackBar .tb-dl{background:var(--pri-l);color:var(--pri-ink);box-shadow:inset 0 0 0 1px var(--pri-line);border-radius:10px;text-decoration:none}
:where(body.gc-th:not(.gd-on)) #trackBar .tb-btns button:nth-child(3){background:var(--pri);color:var(--on-pri)}
body:where(.gc-th:not(.gd-on)){color:var(--ink)}
:where(body.gc-th:not(.gd-on)) article{border:1px solid var(--line);border-radius:12px}
:where(body.gc-th:not(.gd-on)) small{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-brand img{border-radius:8px}
:where(body.gc-th:not(.gd-on)) .gc-brand small{color:var(--mute,var(--mute))}
:where(body.gc-th:not(.gd-on)) .gc-due{background:linear-gradient(135deg,var(--pri),var(--pri-m));color:var(--on-pri);border-radius:20px;box-shadow:0 8px 24px rgba(80,85,173,.25)}
:where(body.gc-th:not(.gd-on)) .gc-due button{background:var(--card);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-due button.ghost{background:rgba(255,255,255,.16);color:var(--on-pri)}
:where(body.gc-th:not(.gd-on)) .gc-stat{background:var(--card);border:1px solid var(--line,var(--line));border-radius:20px}
:where(body.gc-th:not(.gd-on)) .gc-bar{background:var(--pri-l);border-radius:99px}
:where(body.gc-th:not(.gd-on)) .gc-bar i{background:var(--ok-bg);border-radius:99px}
:where(body.gc-th:not(.gd-on)) .gc-heat i{border-radius:3px;background:var(--cell)}
:where(body.gc-th:not(.gd-on)) .gc-heat i[data-l="1"]{background:#c7e9d5}
:where(body.gc-th:not(.gd-on)) .gc-heat i[data-l="2"]{background:#7fcca0}
:where(body.gc-th:not(.gd-on)) .gc-heat i[data-l="3"]{background:#36a36a}
:where(body.gc-th:not(.gd-on)) .gc-heat i[data-l="4"]{background:var(--ok-bg)}
:where(body.gc-th:not(.gd-on)) dialog.gc-dlg{border:0;border-radius:22px;box-shadow:0 24px 70px rgba(32,36,59,.35)}
:where(body.gc-th:not(.gd-on)) dialog.gc-dlg::backdrop{background:rgba(32,36,59,.45)}
:where(body.gc-th:not(.gd-on)) .gc-dlg-h{border-bottom:1px solid var(--line,var(--line));background:var(--card)}
:where(body.gc-th:not(.gd-on)) .gc-x{background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-face{border-radius:20px}
:where(body.gc-th:not(.gd-on)) .gc-front{background:var(--pri-l);color:var(--ink)}
:where(body.gc-th:not(.gd-on)) .gc-back{background:var(--card);border:2px solid var(--pri)}
:where(body.gc-th:not(.gd-on)) .gc-face small{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-g0{background:var(--err-l)!important;color:var(--err)!important}
:where(body.gc-th:not(.gd-on)) .gc-g1{background:var(--warn-l)!important;color:var(--warn)!important}
:where(body.gc-th:not(.gd-on)) .gc-g2{background:var(--ok-l)!important;color:var(--ok)!important}
:where(body.gc-th:not(.gd-on)) .gc-swipe-l{box-shadow:inset 0 0 0 4px var(--err-line)}
:where(body.gc-th:not(.gd-on)) .gc-swipe-r{box-shadow:inset 0 0 0 4px #8fd1ad}
:where(body.gc-th:not(.gd-on)) .gc-pill{border-radius:99px;background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-pro{border-radius:6px;background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-src{border-left:3px solid var(--pri-line);background:var(--surface2);border-radius:0 10px 10px 0}
:where(body.gc-th:not(.gd-on)) .gc-src summary{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-answer{background:var(--surface2);border-radius:14px}
:where(body.gc-th:not(.gd-on)) .gc-tasks{background:var(--warn-l);border:1px solid var(--warn-line);border-radius:14px}
:where(body.gc-th:not(.gd-on)) .gc-q{border:1px solid var(--line,var(--line));border-radius:16px}
:where(body.gc-th:not(.gd-on)) .gc-q.ok{border-color:#8fd1ad;background:var(--ok-l)}
:where(body.gc-th:not(.gd-on)) .gc-q.bad{border-color:var(--err-line);background:var(--err-l)}
:where(body.gc-th:not(.gd-on)) .gc-score{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-rec{background:var(--ink-bg);color:var(--on-pri);border-radius:20px}
:where(body.gc-th:not(.gd-on)) .gc-rec .hold{background:var(--err-bg)}
:where(body.gc-th:not(.gd-on)) .gc-rec .hold i{background:rgba(255,255,255,.3)}
:where(body.gc-th:not(.gd-on)) .gc-dot{border-radius:50%;background:#ff5a5f}
:where(body.gc-th:not(.gd-on)) .gc-plan{border:2px solid var(--line,var(--line));border-radius:18px}
:where(body.gc-th:not(.gd-on)) .gc-plan.hot{border-color:var(--pri)}
:where(body.gc-th:not(.gd-on)) .gc-seg{background:var(--pri-l);border-radius:12px}
:where(body.gc-th:not(.gd-on)) .gc-seg button{background:transparent;color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-seg button[aria-pressed=true]{background:var(--pri);color:var(--on-pri)}
:where(body.gc-th:not(.gd-on)) .gc-sleep{border-radius:99px;background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-confetti i{border-radius:2px}
:where(body.gc-th:not(.gd-on)) .gc-list{border:1px solid var(--line,var(--line));border-radius:14px}
:where(body.gc-th:not(.gd-on)) .gc-wrong{border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) #gcSleep2{background:var(--pri-l);color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) #gcSleep2[aria-pressed=true]{background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-flip.gc-swipe-l{box-shadow:none}
:where(body.gc-th:not(.gd-on)) .gc-flip.gc-swipe-l .gc-face{box-shadow:inset 0 0 0 4px #8fd1ad}
:where(body.gc-th:not(.gd-on)) .gc-flip.gc-swipe-r .gc-face{box-shadow:inset 0 0 0 4px #f2c94c}
:where(body.gc-th:not(.gd-on)) .gc-stamp{border:3px solid;border-radius:10px;background:rgba(255,255,255,.85)}
:where(body.gc-th:not(.gd-on)) .gc-stamp-l{color:var(--ok);border-color:var(--ok-bg)}
:where(body.gc-th:not(.gd-on)) .gc-stamp-r{color:var(--warn);border-color:#d9a400}
:where(body.gc-th:not(.gd-on)) .gc-stamp-u{color:var(--err);border-color:var(--err-bg)}
:where(body.gc-th:not(.gd-on)) .gc-flip.gc-swipe-u .gc-face{box-shadow:inset 0 0 0 4px var(--err-line)}
:where(body.gc-th:not(.gd-on)) .gc-recite-a{color:var(--ok)}
:where(body.gc-th:not(.gd-on)) .gc-talk{color:var(--pri-ink);background:var(--surface2);border-radius:12px}
:where(body.gc-th:not(.gd-on)) .gc-bars i{background:var(--pri);border-radius:4px 4px 0 0}
:where(body.gc-th:not(.gd-on)) .gc-tile{background:var(--surface2);border-radius:14px}
:where(body.gc-th:not(.gd-on)) .gc-tile b{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-tile span{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-plan{border-top:1px dashed var(--line)}
:where(body.gc-th:not(.gd-on)) .gc-count{background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-badge{border-radius:14px;background:var(--cell);color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-badge.got{background:var(--warn-l);color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-pomo{background:var(--ink-bg);color:var(--on-pri);border-radius:99px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
:where(body.gc-th:not(.gd-on)) .gc-word{background:var(--pri-l);color:var(--ink)}
:where(body.gc-th:not(.gd-on)) .gc-chat p{border-radius:12px}
:where(body.gc-th:not(.gd-on)) .gc-chat .me{background:var(--pri-l)}
:where(body.gc-th:not(.gd-on)) .gc-chat .ai{background:var(--ok-l)}
:where(body.gc-th:not(.gd-on)) .gc-board .gc-row{border-radius:10px}
:where(body.gc-th:not(.gd-on)) .gc-board .me,:where(body.gc-th:not(.gd-on)) .gc-class-body .me{background:var(--pri-l)}
:where(body.gc-th:not(.gd-on)) .gc-post{border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) .gc-reply{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-table{border-collapse:collapse}
:where(body.gc-th:not(.gd-on)) .gc-table th,:where(body.gc-th:not(.gd-on)) .gc-table td{border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) .gc-chip{background:var(--card);color:var(--ink);border:2px solid var(--cc,var(--pri-line));border-radius:99px}
:where(body.gc-th:not(.gd-on)) .gc-chip.on{background:var(--cc,var(--pri));color:var(--on-pri);border-color:var(--cc,var(--pri))}
:where(body.gc-th:not(.gd-on)) .gc-chip.gc-add{border-style:dashed;color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-badge-n{background:var(--err-bg);color:var(--on-pri);border-radius:99px}
:where(body.gc-th:not(.gd-on)) .gc-photo{background:var(--surface2);border-radius:10px}
:where(body.gc-th:not(.gd-on)) .gc-photo img{border-radius:6px}
:where(body.gc-th:not(.gd-on)) .gc-photo span{color:var(--pri-ink)}
:where(body.gc-th:not(.gd-on)) .gc-swatch{border-radius:50%;border:3px solid var(--card);box-shadow:0 0 0 1px var(--pri-line)}
:where(body.gc-th:not(.gd-on)) .gc-swatch.on{box-shadow:0 0 0 3px var(--ink-bg)}
:where(body.gc-th:not(.gd-on)) .gc-level{background:var(--pri-l);color:var(--ink)}
:where(body.gc-th:not(.gd-on)) .gc-level.ok{background:var(--ok-l)}
:where(body.gc-th:not(.gd-on)) .gc-level small{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-live{background:var(--warn-l);border:1px solid var(--warn-line);border-radius:16px}
:where(body.gc-th:not(.gd-on)) .gc-live-seg{border-top:1px dashed var(--warn-line)}
:where(body.gc-th:not(.gd-on)) .gc-live-seg small{color:var(--warn)}
:where(body.gc-th:not(.gd-on)) .gc-key{border:1px solid var(--line);border-radius:14px}
:where(body.gc-th:not(.gd-on)) .gc-sched-day{background:var(--surface2);border-radius:10px}
:where(body.gc-th:not(.gd-on)) .gc-sched-item{border-left:4px solid;background:var(--card);border-radius:6px}
:where(body.gc-th:not(.gd-on)) .gc-sched-item small{color:var(--mute)}
:where(body.gc-th:not(.gd-on)) .gc-teambars .gc-tb{border-radius:99px;background:var(--line)}
:where(body.gc-th:not(.gd-on)) .gc-tb i{color:var(--on-pri)}
:where(body.gc-th:not(.gd-on)) .gc-tb .red{background:#d64545}
:where(body.gc-th:not(.gd-on)) .gc-tb .blue{background:#3b6fd6}
:where(body.gc-th:not(.gd-on)) .gc-board .t-red{border-left:4px solid #d64545}
:where(body.gc-th:not(.gd-on)) .gc-board .t-blue{border-left:4px solid #3b6fd6}
:where(body.gc-th:not(.gd-on)) .gc-combo{color:#c2410c}
:where(body.gc-th:not(.gd-on)) .gc-ev{border-radius:8px}
:where(body.gc-th:not(.gd-on)) .gc-ev.ok{background:var(--ok-l)}
:where(body.gc-th:not(.gd-on)) .gc-ev.bad{background:var(--err-l)}
:where(body.gc-th:not(.gd-on)) .gc-red{background:#d64545}
:where(body.gc-th:not(.gd-on)) .gc-blue{background:#3b6fd6}
:where(body.gc-th:not(.gd-on)) .gc-assign{border-bottom:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) #app>nav{background:var(--card);border-top:1px solid var(--line)}
:where(body.gc-th:not(.gd-on)) #app>nav button{background:transparent;box-shadow:none;color:var(--mute);border-radius:12px}
:where(body.gc-th:not(.gd-on)) #app>nav button:hover{background:transparent}
:where(body.gc-th:not(.gd-on)) #app>nav button[aria-current=page],:where(body.gc-th:not(.gd-on)) #app>nav button[aria-current=page]:hover{background:var(--pri-l);color:var(--pri-ink);box-shadow:none}
@media (min-width:760px){:where(body.gc-th:not(.gd-on)) #app>nav{border-radius:18px 18px 0 0;border:1px solid var(--line)}}
:where(body.gc-th:not(.gd-on)) #lectureList>section.gc-lec:not(.open){border:0;background:transparent;box-shadow:none}
:where(body.gc-th:not(.gd-on)) .gc-lec-pill{border:0;border-radius:16px;background:var(--card,var(--card));color:var(--ink,var(--ink));box-shadow:inset 0 0 0 1px var(--line,var(--line))}
:where(body.gc-th:not(.gd-on)) .gc-lec-pill:hover{background:var(--surface2,var(--surface2));color:var(--ink,var(--ink))}
:where(body.gc-th:not(.gd-on)) .gc-lec-m{color:var(--mute,var(--mute))}
:where(body.gc-th:not(.gd-on)) .gc-lec-st{border-radius:99px;background:var(--pri-l,var(--pri-l));color:var(--pri-ink,var(--pri-ink))}
:where(body.gc-th:not(.gd-on)) .gc-lec-st.done{background:var(--ok-l,var(--ok-l));color:var(--ok,var(--ok))}
:where(body.gc-th:not(.gd-on)) .gc-lec-st.error{background:var(--err-l,var(--err-l));color:var(--err,var(--err))}
:where(body.gc-th:not(.gd-on)) .gc-lec-st.processing{background:var(--warn-l,var(--warn-l));color:var(--warn,var(--warn))}
:where(body.gc-th:not(.gd-on)) .gc-lec-go{color:var(--mute,var(--mute))}
:where(body.gc-th:not(.gd-on)) #lectureList>section.gc-lec.open{border:0;border-radius:0;box-shadow:none;background:var(--bg,var(--bg))}
:where(body.gc-th:not(.gd-on)) .gc-lec.open>.gc-lec-bar{background:var(--card,var(--card));border-bottom:1px solid var(--line,var(--line))}
:where(body.gc-th:not(.gd-on)) .gc-pro-min .gc-pro{background:none}
:where(body.gc-th:not(.gd-on)) p.gc-pill{border-radius:12px}
/* ---- 二、版式和按钮分级（写在后面，优先） ---- */
/* ===== V0.9.34 学习模式换肤：方案 B（白天，暖白青墨）+ 方案 C（夜间，深色）=====
 * 只在 body.gc-th 且不在 GO DAILY 时生效。去掉 gc-th 类即回到原样。 */

/* ---- 颜色变量：白天（B）---- */
body.gc-th:not(.gd-on){
  --bg:#F6F2EA;--card:#FFFDF8;--surface2:#FAF6EE;--cell:#EAE4D8;
  --ink:#1F2A2E;--ink-bg:#1F2A2E;--mute:#566165;--line:#E6DFD2;
  --pri:#1F5F6B;--pri-d:#17505A;--pri-m:#3C7F8B;--pri-ink:#17505A;--pri-l:#DDEBEC;--pri-line:#C5DCDF;--on-pri:#FFFFFF;
  --ok:#1F7A4D;--ok-bg:#1F7A4D;--ok-l:#E0F0E6;--ok-line:#BFE3CF;
  --warn:#7A4A00;--warn-l:#FFEFCF;--warn-line:#F0DCA6;
  --err:#8E1F2D;--err-bg:#A32939;--err-l:#FBE4E6;--err-line:#F3C9CF;
  --shadow:0 1px 2px rgba(31,42,46,.05),0 4px 16px rgba(31,42,46,.06);
  background:var(--bg);color:var(--ink);
}
/* ---- 颜色变量：夜间（C）---- */
body.gc-th.gc-dark:not(.gd-on){
  --bg:#12141F;--card:#1C2030;--surface2:#232840;--cell:#262B3F;
  --ink:#ECEEF8;--ink-bg:#0B0D15;--mute:#A6ACC8;--line:#2C3147;
  --pri:#5B62D6;--pri-d:#4A50BE;--pri-m:#7B81E6;--pri-ink:#B4B9FF;--pri-l:#2A2F4A;--pri-line:#3A4066;--on-pri:#FFFFFF;
  --ok:#5CCB8F;--ok-bg:#1F7A4D;--ok-l:#1E3A2C;--ok-line:#2F5A44;
  --warn:#F0C070;--warn-l:#3F3415;--warn-line:#5A4A1E;
  --err:#FF9AA5;--err-bg:#A32939;--err-l:#452028;--err-line:#6A2F3A;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.25);
  color-scheme:dark;
}
body.gc-th:not(.gd-on) .muted{color:var(--mute)}
body.gc-th:not(.gd-on) a{color:var(--pri-ink)}
body.gc-th:not(.gd-on) h1,body.gc-th:not(.gd-on) h2,body.gc-th:not(.gd-on) h3{color:var(--ink)}
body.gc-th:not(.gd-on) input,body.gc-th:not(.gd-on) textarea,body.gc-th:not(.gd-on) select{background:var(--card);color:var(--ink);border-color:var(--line)}
body.gc-th.gc-dark:not(.gd-on) input,body.gc-th.gc-dark:not(.gd-on) textarea,body.gc-th.gc-dark:not(.gd-on) select{background:var(--surface2)}
body.gc-th:not(.gd-on) ::placeholder{color:var(--mute);opacity:.8}
body.gc-th:not(.gd-on) dialog{background:var(--card);color:var(--ink)}
body.gc-th:not(.gd-on) table{color:var(--ink)}

/* ---- 按钮分级（Shawn 定：主次分明）。主按钮 = 实色；次按钮 .secondary = 浅色底；描边 .gc-outline；文字 .gc-text；危险 .danger = 红色描边 ---- */
:where(body.gc-th:not(.gd-on)) button{border-radius:12px;font-weight:600}
:where(body.gc-th:not(.gd-on)) button{border-color:transparent}
body.gc-th:not(.gd-on) button.secondary{background:var(--pri-l);color:var(--pri-ink);box-shadow:none}
body.gc-th:not(.gd-on) button.secondary:hover{background:var(--pri-line);color:var(--pri-ink)}
body.gc-th:not(.gd-on) button.gc-outline{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
body.gc-th:not(.gd-on) button.gc-text{background:transparent;color:var(--pri-ink);box-shadow:none;padding-left:4px;padding-right:4px}
body.gc-th:not(.gd-on) button.danger{background:transparent;color:var(--err);box-shadow:inset 0 0 0 1px var(--err)}
body.gc-th:not(.gd-on) button.danger:hover{background:var(--err-l)}
body.gc-th:not(.gd-on) button:disabled{opacity:1;background:var(--cell)!important;color:var(--mute)!important;box-shadow:none!important}
body.gc-th:not(.gd-on) button:focus-visible,body.gc-th:not(.gd-on) input:focus-visible,body.gc-th:not(.gd-on) select:focus-visible,body.gc-th:not(.gd-on) textarea:focus-visible{outline:3px solid var(--pri-m);outline-offset:2px}

/* ---- 页头、模式切换、底部导航 ---- */
body.gc-th:not(.gd-on) header{background:var(--card);border-bottom-color:var(--line);box-shadow:none}
body.gc-th:not(.gd-on) .gc-brand,body.gc-th:not(.gd-on) .gc-brand b{color:var(--pri-ink)}
body.gc-th:not(.gd-on) #gdMode{background:var(--pri-l)}
body.gc-th:not(.gd-on) #gdMode button{border:0;background:transparent!important;color:var(--mute)!important}
body.gc-th:not(.gd-on) #gdMode button.on{background:var(--card)!important;color:var(--pri-ink)!important}
body.gc-th:not(.gd-on) #app>nav{background:var(--card);border-color:var(--line)}
body.gc-th:not(.gd-on) #app>nav button,body.gc-th:not(.gd-on) #app>nav button:hover{border:0;background:transparent!important;color:var(--mute)!important;box-shadow:none!important}
body.gc-th:not(.gd-on) #app>nav button[aria-current=page],body.gc-th:not(.gd-on) #app>nav button[aria-current=page]:hover{background:var(--pri-l)!important;color:var(--pri-ink)!important}
body.gc-th:not(.gd-on) #msg{background:var(--ink-bg);color:#FFFFFF}
body.gc-th:not(.gd-on) section{border-color:var(--line);box-shadow:none}

/* ---- 首页（设计稿：主区 = 待复习 + 开始复习 + 今日目标圆环；次区 = 三个数字；工具区 = 学习记录和工具）---- */
body.gc-th:not(.gd-on) .gc-dash{align-items:start;gap:12px;margin-bottom:12px}
body.gc-th:not(.gd-on) .gc-due{position:relative;background:var(--pri);box-shadow:none;padding:18px 124px 18px 18px;gap:8px;min-height:0}
body.gc-th.gc-dark:not(.gd-on) .gc-due{background:#3A3FA0}
body.gc-th:not(.gd-on) .gc-due .lbl{font-size:13px;opacity:.85}
body.gc-th:not(.gd-on) .gc-due .big{font-size:42px}
body.gc-th:not(.gd-on) .gc-due .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
body.gc-th:not(.gd-on) .gc-due button{margin:0;min-height:44px;padding:0 14px;background:#FFFFFF!important;color:var(--pri)!important;font-weight:700}
body.gc-th.gc-dark:not(.gd-on) .gc-due button{color:#3A3FA0!important}
body.gc-th:not(.gd-on) .gc-due button.ghost{background:transparent!important;color:#FFFFFF!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
body.gc-th:not(.gd-on) .gc-due button:disabled{background:rgba(255,255,255,.22)!important;color:#FFFFFF!important}
.gc-ring{display:none}
body.gc-th:not(.gd-on) .gc-ring{display:flex;position:absolute;right:18px;top:50%;transform:translateY(-50%);width:88px;height:88px;flex-direction:column;align-items:center;justify-content:center;color:#FFFFFF;pointer-events:none}
body.gc-th:not(.gd-on) .gc-ring svg{position:absolute;inset:0}
body.gc-th:not(.gd-on) .gc-ring b{position:relative;font-size:17px;line-height:1.15;white-space:nowrap}
body.gc-th:not(.gd-on) .gc-ring small{position:relative;font-size:10.5px;white-space:nowrap;color:#FFFFFF!important}
.gc-tiles3{display:none}
body.gc-th:not(.gd-on) .gc-tiles3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;order:2}
body.gc-th:not(.gd-on) .gc-due{order:1}body.gc-th:not(.gd-on) .gc-stat{order:3}
@media (min-width:701px){body.gc-th:not(.gd-on) .gc-dash{grid-template-columns:1.2fr 1fr;grid-template-rows:auto 1fr}body.gc-th:not(.gd-on) .gc-tiles3{align-self:start}body.gc-th:not(.gd-on) .gc-tiles3{grid-column:1;order:3}body.gc-th:not(.gd-on) .gc-stat{grid-column:2;grid-row:1 / span 2;order:2}}
body.gc-th:not(.gd-on) .gc-tiles3>div{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 10px;min-width:0}
body.gc-th:not(.gd-on) .gc-tiles3 b{display:block;font-size:22px;line-height:1.2;white-space:nowrap}
body.gc-th:not(.gd-on) .gc-tiles3 b small{font-size:13px;font-weight:500;margin-left:2px}
body.gc-th:not(.gd-on) .gc-tiles3 span{display:block;font-size:12px;color:var(--mute);white-space:nowrap;overflow:hidden}
body.gc-th:not(.gd-on) .gc-tiles3 .warm b{color:var(--warn)}
body.gc-th:not(.gd-on) .gc-stat{border-radius:16px;padding:14px;gap:8px;border-color:var(--line)}
body.gc-th:not(.gd-on) .gc-stat .streak{font-size:15px;font-weight:700}
/* 今日目标已经在上面的圆环里：这一行和进度条收起来（读屏和脚本仍然读得到） */
body.gc-th:not(.gd-on) .gc-stat>.gc-row:has(#gcGoal),body.gc-th:not(.gd-on) .gc-stat>.gc-bar{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.gc-th:not(.gd-on) .gc-heat{max-width:420px}
body.gc-th:not(.gd-on) .gc-heat i{background:var(--cell)}
body.gc-th:not(.gd-on) #gcPlan .gc-row{gap:8px;flex-wrap:wrap}

/* ---- 翻卡复习（只改样子：交互、按钮文字、滑动方向都不变）---- */
body.gc-th:not(.gd-on) .gc-face{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:22px;justify-content:flex-start;padding:22px 20px}
body.gc-th:not(.gd-on) .gc-face small{align-self:flex-start;font-size:12px;font-weight:600;color:var(--pri-ink);background:var(--pri-l);padding:3px 10px;border-radius:99px}
body.gc-th:not(.gd-on) .gc-back small{color:var(--ok);background:var(--ok-l)}
body.gc-th:not(.gd-on) .gc-face>div{font-weight:600}
body.gc-th:not(.gd-on) .gc-grades{gap:8px}
body.gc-th:not(.gd-on) .gc-grades button{min-height:48px;border-radius:14px;margin:0;padding:10px 3px}
body.gc-th:not(.gd-on) .gc-g2{background:var(--ok-bg)!important;color:#FFFFFF!important}
body.gc-th.gc-dark:not(.gd-on) .gc-g2{background:#5CCB8F!important;color:#0E2A1B!important}
body.gc-th:not(.gd-on) .gc-g0{background:var(--err-l)!important;color:var(--err)!important}
body.gc-th:not(.gd-on) .gc-g1{background:var(--warn-l)!important;color:var(--warn)!important}
body.gc-th:not(.gd-on) .gc-stamp{background:var(--card)}
body.gc-th:not(.gd-on) .gc-talk{background:var(--surface2);color:var(--ink)}

/* ---- 外观设置 ---- */
#gcTheme .gc-seg3{display:flex;gap:8px;padding:4px;border-radius:12px;background:var(--pri-l,#eef0fa);max-width:420px}
#gcTheme .gc-seg3 button{flex:1;min-width:0;margin:0;min-height:40px;padding:0 6px;border-radius:10px;background:transparent!important;color:var(--mute,#676c83)!important;box-shadow:none!important;font-weight:500}
#gcTheme .gc-seg3 button[aria-pressed=true]{background:var(--card,#fff)!important;color:var(--pri-ink,#41468f)!important;font-weight:600}

/* 设备预览入口：只在电脑宽度显示 */
#gcTheme .gc-devlink{display:none;margin:12px 0 0}
@media (min-width:900px){#gcTheme .gc-devlink{display:block}}
#gcTheme .gc-devlink a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;background:var(--pri-l,#eef0fa);color:var(--pri-ink,#41468f);font-weight:600;text-decoration:none}

/* ===== V0.9.36 版式整理（Shawn 审图）：按钮成组、等宽、对齐；放不下的字自动缩小（i18n.js 的 fit）===== */
/* 一组按钮 = 等宽网格，不再一个长一个短地挤成一堆 */
body.gc-th:not(.gd-on) .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;align-items:stretch}
body.gc-th:not(.gd-on) .actions>button,body.gc-th:not(.gd-on) .actions>a{margin:0;width:100%;min-width:0;min-height:46px}
/* 首页「创建学习资料」的工具：两列网格，下拉框和它对应的按钮排在同一行 */
body.gc-th:not(.gd-on) .gc-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 10px}
body.gc-th:not(.gd-on) .gc-tools>button,body.gc-th:not(.gd-on) .gc-tools>select,body.gc-th:not(.gd-on) .gc-tools>input:not([type=file]){margin:0;width:100%;min-width:0;min-height:46px;padding-top:0;padding-bottom:0}
body.gc-th:not(.gd-on) #gcFreeTools{grid-template-columns:minmax(0,96px) minmax(0,1fr)}
body.gc-th:not(.gd-on) #gcTplAdd{grid-column:1 / -1}
body.gc-th:not(.gd-on) #gcAiKind{order:1}body.gc-th:not(.gd-on) #gcAiCards{order:2}body.gc-th:not(.gd-on) #gcTrTarget{order:3}body.gc-th:not(.gd-on) #gcTrBtn{order:4}body.gc-th:not(.gd-on) #gcCamBtn{order:5;grid-column:1 / -1}
body.gc-th:not(.gd-on) #home .actions:has(#save){grid-template-columns:2fr 1fr 1fr}
/* 录音区：勾选项的说明文字占满一行，下拉框排到文字下面；录音按钮分主次 */
body.gc-th:not(.gd-on) .gc-check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:start;margin:10px 0}
body.gc-th:not(.gd-on) .gc-check>input[type=checkbox]{margin-top:2px}
body.gc-th:not(.gd-on) .gc-check>select{grid-column:2;justify-self:start;margin:0;min-height:40px;max-width:100%}
body.gc-th:not(.gd-on) #classroom .actions:has(#recStart){grid-template-columns:repeat(2,minmax(0,1fr))}
body.gc-th:not(.gd-on) #recStart,body.gc-th:not(.gd-on) #recEnd{grid-column:1 / -1}
body.gc-th:not(.gd-on) #classroom .actions:has(#recStart)>button:nth-child(n+5){min-height:40px;font-size:13.5px;background:transparent;color:var(--pri-ink);box-shadow:inset 0 0 0 1px var(--line)}
@media (min-width:701px){body.gc-th:not(.gd-on) #classroom .actions:has(#recStart){grid-template-columns:repeat(4,minmax(0,1fr))}body.gc-th:not(.gd-on) #recStart,body.gc-th:not(.gd-on) #recEnd{grid-column:auto}body.gc-th:not(.gd-on) #classroom .actions:has(#recStart)>button:nth-child(n+5){grid-column:span 2}}
/* 语音训练：播放是主按钮，占一整行 */
body.gc-th:not(.gd-on) #player .actions{grid-template-columns:repeat(2,minmax(0,1fr))}
body.gc-th:not(.gd-on) #play,body.gc-th:not(.gd-on) #trackFromNote{grid-column:1 / -1}
/* 首页主卡：数字一行放完；圆环里的小字不出圈 */
body.gc-th:not(.gd-on) .gc-due .big{white-space:nowrap;overflow:hidden;max-width:100%}
body.gc-th:not(.gd-on) .gc-ring small{display:block;max-width:64px;overflow:hidden;text-align:center}
/* 底部导航：小屏下字再挤也不出格 */
body.gc-th:not(.gd-on) #app>nav button{padding-left:1px;padding-right:1px}
#gcTheme .gc-seg3.gc-1col{flex-direction:column}#gcTheme .gc-seg3.gc-1col button{flex:0 0 auto;min-height:38px}
/* V0.9.40 首页「今天的课」：电脑版放在三格统计正下方（左栏）；卡片本身的样式在 static/app.css */
@media (min-width:701px){body.gc-th:not(.gd-on) .gc-dash:has(#ttToday){grid-template-rows:auto auto 1fr}body.gc-th:not(.gd-on) .gc-dash:has(#ttToday) .gc-stat{grid-row:1 / span 3}body.gc-th:not(.gd-on) .gc-dash .tt-card{grid-column:1;align-self:start;order:4}}
