/* 保留元素本身：不为字标与人物补白色底板，不改当前业务布局。 */
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.cover-brand,.cover-mobile-brand) { background:transparent!important; box-shadow:none!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .cover-brand-title p { color:var(--app-accent-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.cover-brand-scholar,.cover-wordmark-image) { mix-blend-mode:normal!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.cover-shell,.cover-form-side) { border-color:var(--color-border-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .cover-feature { border-color:var(--feature-border)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .portal-module { border-color:var(--module-border)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .phonetic-hub-card { border-color:var(--phonetic-border)!important; }
/* 顶部控件：账号名、身份徽标、全屏/返回必须使用同一语义配色。 */
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.student-course-header,.student-module-header,.phonetic-pretest-shell>header) :is(button,[role="button"]) {
  background:var(--color-nav-btn-bg)!important; color:var(--color-nav-btn-text)!important; border-color:var(--color-nav-btn-border)!important;
}
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header > :last-child > :first-child {
  background:var(--color-bg-card)!important; color:var(--color-text-primary)!important; border-color:var(--color-border-card)!important;
}
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header > :last-child > :first-child :is(span,strong,svg) { color:var(--color-text-primary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header > :last-child > :first-child span:last-child { background:var(--color-badge-bg)!important; color:var(--color-badge-text)!important; border-color:var(--color-border-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header button :is(span,svg) { color:inherit!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header h1 span { color:var(--color-accent-primary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page :is([class~="text-emerald-700"],[class~="text-cyan-700"],[class~="text-sky-700"],[class~="text-sky-800"]) { color:var(--color-sidebar-text-active)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page :is([class~="bg-emerald-50"],[class~="bg-sky-50"],[class~="bg-cyan-50"]) { background:var(--color-sidebar-item-active)!important; }
/* 对话框置于悬浮角色之上，头像和教材图片保持原像素。 */
html[data-learning-style] .fixed:has(>.learning-settings-light) { z-index:2000!important; }
html[data-learning-style] .learning-settings-light { max-height:calc(100dvh - 32px); }
html[data-learning-style] .learning-settings-body { max-height:calc(100dvh - 210px); }
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.tutu-nameplate,.tutu-entry-surface,#scholar-feedback-button) { background:var(--color-accent-primary)!important; color:var(--app-action-ink)!important; }
/* 原素材不加底：包括深色主题中的透明人物、金色字标与木桌。 */
html:not([data-learning-style="classic_custom"])[data-learning-style] .cover-brand-scholar { background:transparent!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-book button { background:var(--color-sidebar-item-bg)!important; color:var(--app-card-ink)!important; border-color:var(--color-sidebar-item-border)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-book button[aria-pressed="true"] { background:var(--color-sidebar-item-active)!important; color:var(--app-card-active-ink)!important; border-color:var(--color-sidebar-border-active)!important; --tw-ring-color:var(--color-sidebar-border-active); --tw-ring-offset-color:var(--color-bg-card); }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-book button>span:first-child :is(span,strong) { color:inherit!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-unit-card > span:nth-child(2) { background:var(--color-badge-bg)!important; color:var(--color-badge-text)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-units { border-color:var(--color-border-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.student-course-header,.student-module-header,.phonetic-pretest-shell>header,header[data-learning-color="tools"]) button { background:var(--color-nav-btn-bg)!important; color:var(--app-nav-ink)!important; border-color:var(--color-nav-btn-border)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] :is(.student-course-header,.student-module-header,.phonetic-pretest-shell>header,header[data-learning-color="tools"]) button :is(span,svg) { color:inherit!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-header [data-community-tools]>button:first-child>span:last-child,
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-unit-card>span:nth-child(2) { background:var(--color-badge-bg)!important; color:var(--app-badge-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .portal-report-titlebar h2 { color:var(--color-text-primary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center>div>button { background:var(--color-bg-card)!important; color:var(--color-text-primary)!important; border-color:var(--color-border-card)!important; box-shadow:var(--color-shadow-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center>div>button :is(strong,small) { color:var(--color-text-primary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center>div>button>span { border-color:var(--color-border-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center>div>button .bg-white\/80 { background:var(--color-sidebar-bg)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center>div>button span:has(>svg) { background:var(--color-sidebar-bg)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .phonetic-pretest-shell>header { border-color:var(--color-border-card)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-settings-footer button { background:var(--color-accent-primary)!important; color:var(--app-action-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-footer-controls .scrollbar-none { background:var(--color-bottom-dock-bg)!important; border-color:var(--color-bottom-dock-border)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-footer-controls .scrollbar-none button { background:transparent!important; color:var(--color-text-secondary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-footer-controls button[aria-current="step"] { background:var(--color-bottom-tab-active-bg)!important; color:var(--app-dock-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-footer-controls button[aria-disabled="true"] { color:var(--color-text-muted)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-content-surface button svg { }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-directory-scrollbar { background:var(--color-sidebar-bg)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] { --lesson-color-action-ink:var(--app-action-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .learning-footer-controls .scrollbar-none>div { border-color:var(--color-bottom-dock-border)!important; }
/* 装饰光晕超出窄屏不应扩大页面宽度；内容布局不变。 */
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page { overflow-x:clip; }
/* CTA 和报告状态避免被通用 text-white / 浅色背景规则覆盖。 */
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page button.student-course-start { color:var(--app-action-ink)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page button.student-course-start :is(span,svg) { color:inherit!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .student-course-page button.student-course-start:disabled { color:var(--color-text-secondary)!important; }
html:not([data-learning-style="classic_custom"])[data-learning-style] .vocabulary-report-center button>span>span[class~="bg-white/70"] { background:var(--color-badge-bg)!important; color:var(--app-badge-ink)!important; }
