/* Linguataal v100 regression recovery.
   Narrow final layer: Modern shell contrast + Verb module text contrast. */

/* Verb page is rendered directly on the Modern shell. Do not allow hardcoded
   legacy dark text to disappear into the slate background. */
html[data-lai-theme="dark"] .lai-module-verbs :is(
  .lv-kicker,.lv-section-head h1,.lv-section-head h2,.lv-section-head h3,
  .lv-story-zone .lv-kicker,.lv-story-zone .lv-section-head h2,
  .lv-story-zone .lv-section-head p,.lv-story-zone>p,.lv-library-head h2,
  .lv-library-head p,.lv-learning-path h2,.lv-learning-path p
){ color:#f5f7fb !important; opacity:1 !important; }
html[data-lai-theme="dark"] .lai-module-verbs :is(
  .lv-section-head p,.lv-story-zone .lv-section-head p,.lv-library-desc,
  .lv-route-desc,.lv-helper,.lv-subtitle
){ color:#cbd3e4 !important; opacity:1 !important; }
html[data-lai-theme="dark"] .lai-module-verbs .lv-story-zone{
  border-top-color:#56617d !important;
}
html[data-lai-theme="dark"] .lai-module-verbs .lv-story-zone mark{
  color:#32296f !important; background:#ece9ff !important;
}

/* The dashboard's legacy inline pilot is intentionally very specific and was
   painted white after external CSS.  This selector covers cached/runtime
   variants that still expose the white rail. */
html[data-lai-theme="dark"] body:has(#linguaai-app.lai-dashboard-v2) aside#linguaai-sidebar.linguaai-sidebar{
  background:linear-gradient(180deg,#2e3650 0%,#323b57 100%) !important;
  border-color:#46516d !important;
}
html[data-lai-theme="dark"] body:has(#linguaai-app.lai-dashboard-v2) aside#linguaai-sidebar.linguaai-sidebar .sidebar-item{
  color:#e3e8f2 !important;
}
html[data-lai-theme="dark"] body:has(#linguaai-app.lai-dashboard-v2) aside#linguaai-sidebar.linguaai-sidebar .sidebar-item.active{
  color:#fff !important; background:rgba(124,92,255,.22) !important;
}
html[data-lai-theme="dark"] body:has(#linguaai-app.lai-dashboard-v2) aside#linguaai-sidebar.linguaai-sidebar .sidebar-logo-img{
  filter:none !important; mix-blend-mode:normal !important;
}

@media(max-width:860px){
  html[data-lai-theme="dark"] .lai-module-verbs :is(.lv-section-head h2,.lv-story-zone .lv-section-head h2){font-size:1.12rem !important;line-height:1.3 !important}
}
