/* Phase 17: Russian UI first. Learning material retains its own language. */
:root { --most-ink: #090d16; --most-secondary: #33445c; --most-helper: #42536b; }
.workspace .start-dashboard, .workspace .plan-shell { color: var(--most-ink); }
.workspace :where(.workspace-hero, .study-hero, .v2-shell, .notebook-context, .ai-builder) { color: var(--most-ink); }
.workspace :where(h1, h2, h3, strong, .ml-bi-ru),
#sectionTitle > span, .sidebar .nav-item :where(.ml-bi-ru, .start-nav-label > span) {
  font-weight: 800;
  -webkit-text-stroke: .28px currentColor;
}
.sidebar .brand span[lang="ru"] { display: block; color: var(--most-ink); font-size: 11px; font-weight: 800; }
.sidebar .brand [data-brand-secondary] { display: block; color: #4b607b; font-size: 9px; font-weight: 500; }
#sectionTitle > span, #sectionTitle > small, .ui-secondary { display: block; }
#sectionTitle > span { color: var(--most-ink); font-weight: 800; }
#sectionEyebrow > small { display: block; margin-top: 2px; color: #435773; font-size: .78em; font-weight: 500; letter-spacing: .06em; }
#sectionTitle > small, .ui-secondary { margin-top: .15em; color: #435773; font-size: .56em; font-weight: 500; line-height: 1.3; }
.workspace-hero p .ui-secondary { font-size: .83em; }
.notebook-intro small, .notebook-tab small { display: block; color: #435773; font-size: .78em; font-weight: 500; line-height: 1.25; }
.notebook-tabs .notebook-tab { white-space: normal; line-height: 1.18; }
.workspace :where(.notebook-tab, .category-card strong, .v3-category-card strong, .grammar-level-card strong) { color: var(--most-ink); font-weight: 800; }
.sidebar .nav-item .ml-bi-ru, .sidebar .nav-item .start-nav-label > span { color: var(--most-ink); font-weight: 800; }
.sidebar .nav-item .ml-bi-de, .sidebar .nav-item .start-nav-label > small { color: #4b607b; font-size: .82em; font-weight: 500; }
.sidebar .sidebar-progress strong { color: #143a78; font-size: 12px; }
.sidebar .sidebar-progress [data-progress-secondary] { color: #435773; font-size: 10px; }
.workspace .ml-bi-ru, .plan-shell .ml-bi-ru, .start-dashboard .start-primary { color: var(--most-ink); font-weight: 800; opacity: 1; }
.workspace .curriculum-level-card :where(.curriculum-level-stats, .curriculum-level-cta) [lang="ru"] {
  color: var(--most-ink);
  font-weight: 800;
  -webkit-text-stroke: .28px currentColor;
}
.workspace .ml-bi-de, .plan-shell .ml-bi-de { color: #435773; opacity: 1; font-size: .82em; }
.workspace :where(button.primary, button.plan-button, button[data-start-course]) .ml-bi-de,
.workspace :where(button.primary, button.plan-button, button[data-start-course]) [lang="de"],
.workspace :where(button.primary, button.plan-button, button[data-start-course]) [lang="en"] { color: #eaf4ff; opacity: 1; }
.workspace :where(button.primary, button.plan-button, button[data-start-course]) .ml-bi-ru { color: #fff; }
.workspace .start-progress .start-primary { color: #fff; }
.workspace .start-progress :where(h2, h3, strong) { color: #fff; }
.workspace .plan-shell .plan-button .ml-bi-ru { color: #fff; }
.topbar button.primary .ml-bi-de { color: #eaf4ff; opacity: 1; }
.topbar button.primary .ml-bi-ru { color: #fff; }
.start-dashboard .start-primary { display: block; line-height: 1.12; -webkit-text-stroke: .32px currentColor; }
.start-dashboard .start-secondary { display: block; margin-top: .2em; color: #405775; font-size: .48em; font-weight: 550; line-height: 1.28; letter-spacing: normal; }
.start-hero h2 .start-secondary, .start-journey h2 .start-secondary { font-size: .42em; }
.start-hero p .start-secondary, .start-journey p .start-secondary, .start-premium p .start-secondary { font-size: .76em; }
.start-progress .start-primary { color: #fff; }
.start-progress .start-secondary { color: #eaf4ff; font-size: .68em; }
.start-progress-stat strong small { color: #eaf4ff; font-size: 11px; }
.workspace .start-progress,
.workspace .start-progress :where(.start-primary, h2, h3, strong, b),
.workspace .start-progress-head > span,
.workspace .start-streak-core > span { color: #fff !important; }
.workspace .start-progress :where(.start-secondary, .start-ru),
.workspace .start-progress-stat strong small,
.workspace .start-streak-core small { color: #eef7ff !important; opacity: 1; }
.start-plan-label .start-secondary { color: #435773; font-size: 11px; }
.start-course h3 .start-secondary { font-size: .49em; }
.start-course p .start-secondary { font-size: .84em; }
.start-language button small { color: #4b607b; font-size: 10px; }
.start-language button, .start-language button[aria-pressed="true"] { color: var(--most-ink); font-weight: 800; }
.start-language button[aria-pressed="true"] small { color: #355b92; }
.start-course-copy button, .start-premium button { color: #fff; }
.start-dashboard .backup-panel p, .start-history summary { color: #3e526f; }
.grammar-level-card .grammar-level-ru, .grammar-library-subhero .grammar-subtitle-ru,
.grammar-category-bilingual small { color: #40536f; opacity: 1; }
.curriculum-topic-grid .v2-topic-card>span:last-child small[lang="ru"],
.curriculum-topic-search small[lang="ru"] { color: #40536f; opacity: 1; }
@media (max-width: 760px) {
  .sidebar .nav-item .ml-bi-label, .start-page .sidebar .nav-item .start-nav-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 9px; }
  .sidebar .nav-item .ml-bi-ru, .start-page .sidebar .start-nav-label > span { display: block; font-size: 9px; line-height: 1.04; }
  .sidebar .nav-item .ml-bi-de, .start-page .sidebar .start-nav-label > small { display: block; font-size: 7px; line-height: 1.08; color: #405775; overflow-wrap: anywhere; }
  .sidebar .nav-item .nav-asset { flex-basis: 27px; width: 27px; height: 27px; }
  .start-hero .start-secondary { max-width: 100%; }
  .notebook-tabs .notebook-tab { min-width: 0; }
}
