/* Text contrast fixes across all 9 themes (Claude Code 2026-11-09; owner: "EVALUATE 10/10 COVER ALL THEME UI TEXT").
   Found with a contrast audit of Home, Voice Studio, Recorder, Live Meeting, Settings, a word page and Writing on all 9 themes
   (WCAG AA: 4.5:1 for normal text, 3:1 for large text). Loaded last; remove the <link> to undo. */

/* ---- Meeting Recorder: secondary text was 3.3–3.8:1 on the dark themes */
#v-recorder :is(.rc-state, .rc-hint, .rc-meta, .rc-ptime, .rc-field, .rc-note, .rc-item-t small, .rc-empty) {
  color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)) !important;
}
/* summary section labels: gold was 3.2–4.1:1 on the light themes → the theme's dark accent */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #v-recorder .rc-summary h4 {
  color: var(--vt-acc-hi) !important;
}

/* ---- Live Meeting: field labels 3.2–3.7:1 on the dark themes; white "Join" on mint green 2.1:1 */
html:not([data-theme="champagne-ivory"]):not([data-theme="pearl-gold"]):not([data-theme="silver-platinum"]):not([data-theme="lavender-platinum"]):not([data-theme="sapphire-silver"]) #v-meet .mt-field > span {
  color: #CDD6E8 !important;
}
#v-meet .mt-btn.mt-emerald { color: #04291B !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .35) !important; }
#v-meet .mt-btn.mt-emerald .ic { color: #04291B !important; }

/* ---- Settings: the "Upgrade" pill text was 2.7–3.6:1 on the light themes */
html[data-theme="champagne-ivory"] #v-settings .up-pill, html[data-theme="pearl-gold"] #v-settings .up-pill { color: #6B4E14 !important; border-color: #9C7A33 !important; }
html[data-theme="silver-platinum"] #v-settings .up-pill { color: #3B4759 !important; border-color: #6B778A !important; }
html[data-theme="lavender-platinum"] #v-settings .up-pill { color: #4B3478 !important; border-color: #7A62A8 !important; }
html[data-theme="sapphire-silver"] #v-settings .up-pill { color: #1F3A6B !important; border-color: #4E6C9E !important; }

/* ---- Word page (light cards on every theme): small gold / green labels were 2.2–3.7:1 */
.reg-row.b2 .k { color: #047857 !important; }
#sec-structure .st-n, #sec-structure .st-plus { color: #85661D !important; }
#sec-structure .st-type { color: #735618 !important; }
#sec-structure .st-ghead, #sec-structure .st-ghead h3 { color: #6B511C !important; }
#sec-structure .st-ielts-src { color: #5B6272 !important; }
#sec-structure .lvl-badge.lvl-essential { color: #0B4A30 !important; }   /* not the header CEFR badge (white on green) */

/* ---- Writing: the gold "&" in "Sentence Paraphrases & Rewriting" was 3.2–3.7:1 */
.wr-para-amp { color: #7E5A1A !important; }

/* ---- Word page video links: grey caption 2.7:1 on the light themes */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) .ww-item .ww-c { color: #565F72 !important; }
/* ---- Settings back key on Silver Platinum (2.9:1) */
html[data-theme="silver-platinum"] #v-settings :is(.st-back, .back-pill, a[href="#/"]) { color: #3B4759 !important; }

/* ---- header language pill never covers the logo (owner screenshot 2026-11-09) */
#brandHeader #langPick { max-width: 42vw; }
#brandHeader #langPick .lp-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- word page group counts (4.3:1) */
.rel-count { color: #6B511C !important; }

/* ================= 2026-11-09 round 2 (owner "TRY IT": the last points before 10/10) ================= */
/* Settings back key "‹" on every light theme: the theme's dark accent (was 2.9:1 on Silver Platinum) */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #setBack,
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #setBack .set-back-ar {
  color: var(--vt-acc-hi) !important;
}

/* Bottom bar on the 5 light themes: pearl glass in the theme's tint (dark themes keep the navy glass) */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), color-mix(in srgb, var(--vt-base) 55%, rgba(255, 255, 255, .9))) !important;
  border: 1px solid color-mix(in srgb, var(--vt-line) 60%, transparent) !important;
  border-top: 1px solid var(--vt-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 -6px 22px rgba(40, 40, 70, .12) !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a,
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a .ic {
  color: var(--vt-ink-2) !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a[aria-current="page"],
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a[aria-current="page"] .ic,
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a[aria-current="page"] span {
  color: var(--vt-acc-hi) !important; text-shadow: none !important; filter: none !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #bottomNav.bottom-nav a[aria-current="page"]::after {
  background: linear-gradient(90deg, transparent, var(--vt-acc), transparent) !important; box-shadow: none !important;
}
/* the name ribbon on light themes: ivory pill, gold rim, dark-accent letters */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) .name-ribbon {
  background: linear-gradient(180deg, #FFFFFF, color-mix(in srgb, var(--vt-base) 45%, #FFFFFF)) !important;
  border-color: var(--vt-acc) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 4px 12px -4px rgba(40, 40, 70, .3) !important;
  color: var(--vt-acc-hi) !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) .name-ribbon .nr-name {
  background: none !important; -webkit-text-fill-color: var(--vt-acc-hi) !important; color: var(--vt-acc-hi) !important;
}
