/* LVL 1.53.4 — GLOBAL THEME CONTRACT
   One semantic palette for the whole product, loaded after legacy styles.
   New UI should use the --lvl-color-* tokens or data-lvl-theme-* attributes below.
*/

:root,
html.lvl-theme-dark-1199bi{
  --lvl-color-canvas:#07080d;
  --lvl-color-canvas-soft:#0b0d14;
  --lvl-color-surface:#10131c;
  --lvl-color-surface-raised:#151925;
  --lvl-color-surface-soft:#1a1f2c;
  --lvl-color-surface-accent:#191326;
  --lvl-color-text:#f7f8fc;
  --lvl-color-text-strong:#ffffff;
  --lvl-color-text-muted:#aab2c1;
  --lvl-color-text-subtle:#8f98aa;
  --lvl-color-border:#293142;
  --lvl-color-border-strong:#3a4458;
  --lvl-color-accent:#9a52ff;
  --lvl-color-accent-strong:#b172ff;
  --lvl-color-accent-soft:rgba(154,82,255,.14);
  --lvl-color-blue:#72a9ff;
  --lvl-color-green:#45c990;
  --lvl-color-amber:#e5b657;
  --lvl-color-danger:#ff7286;
  --lvl-color-focus:#b47aff;
  --lvl-shadow-surface:0 16px 38px rgba(0,0,0,.22);
  --lvl-theme-control-height:42px;
  color-scheme:dark;
}

html.lvl-theme-light-1199bi{
  --lvl-color-canvas:#f5f2f8;
  --lvl-color-canvas-soft:#eee9f3;
  --lvl-color-surface:#fffefe;
  --lvl-color-surface-raised:#ffffff;
  --lvl-color-surface-soft:#f2edf6;
  --lvl-color-surface-accent:#f1e8fa;
  --lvl-color-text:#251e2d;
  --lvl-color-text-strong:#18121f;
  --lvl-color-text-muted:#625a6c;
  --lvl-color-text-subtle:#746b7f;
  --lvl-color-border:#d8d0e0;
  --lvl-color-border-strong:#c4b8d0;
  --lvl-color-accent:#6530b5;
  --lvl-color-accent-strong:#532199;
  --lvl-color-accent-soft:#eee3f8;
  --lvl-color-blue:#245e9f;
  --lvl-color-green:#176f4c;
  --lvl-color-amber:#80520a;
  --lvl-color-danger:#ad2940;
  --lvl-color-focus:#6430b5;
  --lvl-shadow-surface:0 12px 32px rgba(59,39,70,.08);

  /* Legacy aliases: old and new components now share the same source of truth. */
  --bg:var(--lvl-color-canvas);
  --bg-soft:var(--lvl-color-canvas-soft);
  --panel:var(--lvl-color-surface);
  --panel-2:var(--lvl-color-surface-raised);
  --panel-3:var(--lvl-color-surface-soft);
  --text:var(--lvl-color-text);
  --muted:var(--lvl-color-text-muted);
  --line:var(--lvl-color-border);
  --purple:var(--lvl-color-accent);
  --purple-2:var(--lvl-color-accent-strong);
  --blue:var(--lvl-color-blue);
  --green:var(--lvl-color-green);
  --yellow:var(--lvl-color-amber);
  --danger:var(--lvl-color-danger);
  --shadow:var(--lvl-shadow-surface);
  color-scheme:light!important;
}

/* Public contract for every component added from this release onward. */
html body [data-lvl-theme-surface="base"]{background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important;border-color:var(--lvl-color-border)!important}
html body [data-lvl-theme-surface="raised"]{background:var(--lvl-color-surface-raised)!important;color:var(--lvl-color-text)!important;border-color:var(--lvl-color-border)!important;box-shadow:var(--lvl-shadow-surface)!important}
html body [data-lvl-theme-surface="soft"]{background:var(--lvl-color-surface-soft)!important;color:var(--lvl-color-text)!important;border-color:var(--lvl-color-border)!important}
html body [data-lvl-theme-text="strong"]{color:var(--lvl-color-text-strong)!important}
html body [data-lvl-theme-text="muted"]{color:var(--lvl-color-text-muted)!important}
html body [data-lvl-theme-text="accent"]{color:var(--lvl-color-accent)!important}

/* Canvas, typography and native controls. */
html.lvl-theme-light-1199bi body{
  background:
    radial-gradient(circle at 88% -4%,rgba(101,48,181,.10),transparent 28%),
    linear-gradient(180deg,#faf8fb 0%,var(--lvl-color-canvas) 100%)!important;
  color:var(--lvl-color-text)!important;
}
html.lvl-theme-light-1199bi body :where(.app-shell,.main-content,.view){color:var(--lvl-color-text)}
html.lvl-theme-light-1199bi body :where(h1,h2,h3,h4,h5,h6){color:var(--lvl-color-text-strong)}
html.lvl-theme-light-1199bi body :where(p,small,.muted,[class$="-muted"],[class*="-muted "]){color:var(--lvl-color-text-muted)}
html.lvl-theme-light-1199bi body :where(input,textarea,select,[contenteditable="true"]){
  border-color:var(--lvl-color-border)!important;
  background:var(--lvl-color-surface-raised)!important;
  color:var(--lvl-color-text)!important;
  caret-color:var(--lvl-color-accent)!important;
}
html.lvl-theme-light-1199bi body :where(input,textarea)::placeholder{color:#786f82!important;opacity:1!important}
html.lvl-theme-light-1199bi body :where(input,textarea,select,button,a,[tabindex]):focus-visible{
  outline:3px solid rgba(101,48,181,.28)!important;
  outline-offset:2px!important;
}

/* Automatic bridge for common future component naming. Decorative media stays untouched. */
html.lvl-theme-light-1199bi body :where(
  [class$="-card"],[class*="-card "],
  [class$="-panel"],[class*="-panel "],
  [class$="-popover"],[class*="-popover "]
):not(.btn):not(button):not([class*="cover"]):not([class*="logo"]):not([class*="icon"]):not([class*="avatar"]):not([data-lvl-theme-preserve]){
  border-color:var(--lvl-color-border)!important;
  background:var(--lvl-color-surface)!important;
  color:var(--lvl-color-text)!important;
  box-shadow:var(--lvl-shadow-surface)!important;
}

/* Shared surfaces that use older or irregular names. */
html.lvl-theme-light-1199bi body :where(
  .panel,.modal-card,.auth-card,.auth-panel,.auth-brand-panel,
  .builder-shell,.builder-rail,.builder-main,.lesson-shell,.lesson-panel,.lesson-block,
  .module-card,.answer-option,.daily-item,.review-card,.stat-card,.kpi-card,.settings-card,
  .profile-menu,.notification-panel,.custom-dropdown-menu,.lvl-social-hub-popover,
  .lvl-exam-review-tabs-1274,.lvl-exam-history-actions,.admin-compact-1502
){
  border-color:var(--lvl-color-border)!important;
  background:var(--lvl-color-surface)!important;
  color:var(--lvl-color-text)!important;
  box-shadow:var(--lvl-shadow-surface)!important;
}

/* Buttons and interactive states must remain unmistakable. */
html.lvl-theme-light-1199bi body :where(.btn.primary,.catalog-tab.active,.filter.active,.lvl-social-tab.active,[aria-selected="true"]){
  border-color:#6530b5!important;
  background:linear-gradient(135deg,#6530b5,#7d43c6)!important;
  color:#fff!important;
}
html.lvl-theme-light-1199bi body :where(.btn.primary,.catalog-tab.active,.filter.active,.lvl-social-tab.active,[aria-selected="true"]) *{color:#fff!important}
html.lvl-theme-light-1199bi body :where(.btn.ghost,.text-btn,.back-btn,.icon-btn,.menu-btn){
  border-color:var(--lvl-color-border)!important;
  background:var(--lvl-color-surface-raised)!important;
  color:var(--lvl-color-accent)!important;
}
html.lvl-theme-light-1199bi body :where(.progress,.mini-progress,.lvl-v-mini-progress){background:#e5deeb!important}
html.lvl-theme-light-1199bi body :where(.progress,.mini-progress,.lvl-v-mini-progress)>span{background:linear-gradient(90deg,#6530b5,#8a4ed2)!important}

/* Home: remove dark islands introduced after the original light stylesheet. */
html.lvl-theme-light-1199bi body #view-home :where(
  .lvl-home-hero,.lvl-home-continue,.lvl-home-mission,.lvl-home-progress-1322,
  .lvl-home-review-stats,.home-kpi-card,.lvl-home-preview-1322,.lvl-home-unlock-1322
){
  border-color:var(--lvl-color-border)!important;
  background:linear-gradient(145deg,#fff,#f7f2fa)!important;
  color:var(--lvl-color-text)!important;
  box-shadow:var(--lvl-shadow-surface)!important;
}
html.lvl-theme-light-1199bi body #view-home .lvl-home-unlock-1322{background:radial-gradient(circle at 86% 18%,rgba(101,48,181,.15),transparent 36%),linear-gradient(145deg,#fff,#f2e9f9)!important}
html.lvl-theme-light-1199bi body #view-home :where(h2,h3,h4,strong,.lvl-home-greeting){color:var(--lvl-color-text-strong)!important;text-shadow:none!important}
html.lvl-theme-light-1199bi body #view-home :where(p,small,.xp-line,#homeXpNext){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-home :where(.eyebrow,.level-rank,.text-btn){color:var(--lvl-color-accent)!important}
html.lvl-theme-light-1199bi body #view-home .course-card{
  border-color:var(--lvl-color-border)!important;
  background:linear-gradient(150deg,#fff,#f8f4fb)!important;
  color:var(--lvl-color-text)!important;
  box-shadow:var(--lvl-shadow-surface)!important;
}
html.lvl-theme-light-1199bi body #view-home .course-card :where(h3,h4,strong){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-home .course-card :where(p,small,span:not(.cover-badge)){color:var(--lvl-color-text-muted)!important}

/* Catalog: current light paint left several headings and progress values white. */
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(
  .catalog-hero-v1199w,.lvl-v-catalog-tabs,.lvl-v-catalog-search,.lvl-v-filter-toggle,
  .lvl-v-featured-card,.lvl-v-course-row,.lvl-v-catalog-filters .filter
){
  border-color:var(--lvl-color-border)!important;
  background:var(--lvl-color-surface)!important;
  color:var(--lvl-color-text)!important;
  box-shadow:var(--lvl-shadow-surface)!important;
}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(h1,h2,h3,h4,strong,b){color:var(--lvl-color-text-strong)!important;text-shadow:none!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(p,small,span){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(.lvl-v-course-copy small,.lvl-v-featured-card small,.eyebrow){color:var(--lvl-color-accent)!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(.lvl-v-course-tail em,.lvl-v-featured-card em){color:var(--lvl-color-green)!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(.lvl-v-list-main-action,.lvl-v-list-open){border-color:#a98bc5!important;background:#fff!important;color:#542199!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(.catalog-tab.active,.filter.active,.btn.primary),
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) :where(.catalog-tab.active,.filter.active,.btn.primary) *{color:#fff!important}

/* Review: tabs and counters were still dark or too pale. */
html.lvl-theme-light-1199bi body #view-review :where(.lvl-exam-review-tabs-1274,.lvl-exam-history-actions,.review-filter-row){
  border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface-soft)!important;color:var(--lvl-color-text)!important;box-shadow:none!important
}
html.lvl-theme-light-1199bi body #view-review :where(h2,h3,h4,strong,b){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-review :where(p,small,em,.lvlReviewHubCopy1337){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-review :where(.fail,.lvl-review-error-count){color:var(--lvl-color-danger)!important}
html.lvl-theme-light-1199bi body #view-review :where(.lvl-exam-open-copy,.lvl-review-type){color:var(--lvl-color-accent)!important}
html.lvl-theme-light-1199bi body #view-review :where(.lvl-review-hub-stats-1337 span,.lvl-review-original-1337,.lvl-correction-context-1337,.lvl-correction-options-1337 button){background:var(--lvl-color-surface-soft)!important;border-color:var(--lvl-color-border)!important;color:var(--lvl-color-text)!important}

/* Community and direct messages. */
html.lvl-theme-light-1199bi body #view-community :where(.community-n-hero,.community-n-section,.community-room-browser,.community-room-stage,.community-room-card,.community-direct-browser,.community-direct-stage,.community-direct-card){
  border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important
}
html.lvl-theme-light-1199bi body #view-community :where(h2,h3,h4,strong){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-community :where(p,small,.community-room-meta,.community-direct-meta,.community-presence-text){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-community .community-room-pill.official{border-color:#bca5d2!important;background:#f0e6f8!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-community .community-n-action.primary,
html.lvl-theme-light-1199bi body #view-community .community-n-action.primary *{color:#fff!important}
html.lvl-theme-light-1199bi body #view-community .community-empty-icon{background:var(--lvl-color-surface-soft)!important;color:var(--lvl-color-accent)!important}

/* Profile, achievements, statistics, support and administration. */
html.lvl-theme-light-1199bi body :where(#view-profile,#view-achievements,#view-stats,#view-support,#view-admin,#view-dutch-chat) :where(h1,h2,h3,h4,strong,b){color:var(--lvl-color-text-strong)!important;text-shadow:none!important}
html.lvl-theme-light-1199bi body :where(#view-profile,#view-achievements,#view-stats,#view-support,#view-admin,#view-dutch-chat) :where(p,small,em){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-admin :where(.admin-compact-1502,.admin-compact-toggle-1502,.course-maintenance-panel,.course-maintenance-item,.support-admin-compact-1502,.admin-user-directory,.admin-directory-section,.admin-directory-row,.builder-studio-shell,.journey-admin-panel,.lvl-ai-admin-shell-1500){
  border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important
}
html.lvl-theme-light-1199bi body #view-admin .admin-compact-toggle-1502{box-shadow:none!important}
html.lvl-theme-light-1199bi body #view-admin .admin-compact-copy-1502 small{color:var(--lvl-color-text-muted)!important}

/* Popovers and tables can be rendered outside their originating view. */
html.lvl-theme-light-1199bi body :where(.profile-menu,.notification-panel,.lvl-social-hub-popover,.modal-card,.admin-dir-modal>section){
  border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface-raised)!important;color:var(--lvl-color-text)!important;box-shadow:0 24px 70px rgba(50,34,61,.18)!important
}
html.lvl-theme-light-1199bi body :where(table,thead,tbody,tr,td,th){border-color:var(--lvl-color-border)!important}
html.lvl-theme-light-1199bi body th{color:var(--lvl-color-text-muted)!important;background:var(--lvl-color-surface-soft)!important}

/* Keep content that is intentionally dark, such as code and media previews. */
html.lvl-theme-light-1199bi body :where(pre,.code-block,.terminal-block,[data-lvl-theme-preserve="dark"]){color-scheme:dark!important;background:#15121b!important;color:#f5f1f8!important;border-color:#342b3d!important}
html.lvl-theme-light-1199bi body :where(pre,.code-block,.terminal-block,[data-lvl-theme-preserve="dark"]) *{color:inherit!important}

/* LVL 1.53.4b — second pass over legacy modules that paint dark colors directly. */

/* Home and catalog accents: keep identity without pale text on white. */
html.lvl-theme-light-1199bi body #view-home .lvl-home-unlock-1322 .eyebrow{color:#6530b5!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) .lvl-v-all-head h3{color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) .lvl-p-section-head{color:#5e2b9e!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) .lvl-v-course-copy span,
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) .lvl-v-course-tail b{color:#5f5868!important}
html.lvl-theme-light-1199bi body :where(#view-courses,#view-catalog) .lvl-v-course-tail em{border-color:#8ab9a2!important;background:#e9f6ef!important;color:#17623f!important}

/* Review controls remain readable even when they are not selected. */
html.lvl-theme-light-1199bi body #view-review :where(button,[role="tab"]):not(.active):not([aria-selected="true"]){color:#574f60!important}
html.lvl-theme-light-1199bi body #view-review :where(.lvl-review-type,.lvl-exam-open-copy){color:#6530b5!important}

/* Achievement collection: locked and unlocked badges are light surfaces, not dark islands. */
html.lvl-theme-light-1199bi body #view-achievements :where(.badge-hero-1371,.achievement-total){border-color:var(--lvl-color-border)!important;background:linear-gradient(145deg,#fff,#f4edf9)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-collection-tabs-1371 button,
html.lvl-theme-light-1199bi body #view-achievements .badge-status-tabs-1371 .filter{border-color:var(--lvl-color-border)!important;background:#fff!important;color:#574f60!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-collection-tabs-1371 button.active,
html.lvl-theme-light-1199bi body #view-achievements .badge-status-tabs-1371 .filter.active{border-color:#6530b5!important;background:#eee2f8!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-collection-tabs-1371 button b{color:#6530b5!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-mini-1371{border-color:#d9cedf!important;background:#fff!important;color:#332d38!important;box-shadow:0 5px 16px rgba(59,39,70,.05)!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-mini-1371.is-unlocked{border-color:#b79aca!important;background:radial-gradient(circle at 50% 12%,rgba(126,62,232,.13),transparent 52%),#fff!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-mini-1371.is-locked{border-color:#ded7e3!important;background:#f3f0f5!important;color:#625b68!important;opacity:.78!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-mini-1371.is-locked .lvl-badge-art-1342{filter:grayscale(1) brightness(.8)!important}
html.lvl-theme-light-1199bi body #view-achievements .badge-mini-1371>span{color:inherit!important}
html.lvl-theme-light-1199bi body .badge-sheet-1371,
html.lvl-theme-light-1199bi body .badge-sheet-mission-1371{border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface-raised)!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body .badge-sheet-close-1371{border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface-soft)!important;color:var(--lvl-color-text)!important}

/* Statistics: calendar intensity uses light tints while preserving its data scale. */
html.lvl-theme-light-1199bi body #view-stats :where(.stats-card,.stat-card,.lvl-stats-consistency-wide-1199ao){border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-stats :where(h2,h3,h4,strong,b){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-stats :where(.metric-label,.stats-label,.lvl-stats-calendar-weekdays-1199ao>span){color:#625a69!important}
html.lvl-theme-light-1199bi body #view-stats .heat-cell.lvl-stats-calendar-cell-1199ao{border:1px solid #ded6e4!important;background:#f0ecf3!important;color:#4f4855!important}
html.lvl-theme-light-1199bi body #view-stats .heat-cell.lvl-stats-calendar-cell-1199ao[data-level="1"]{background:#e6d9f1!important;border-color:#d3bee4!important}
html.lvl-theme-light-1199bi body #view-stats .heat-cell.lvl-stats-calendar-cell-1199ao[data-level="2"]{background:#ceb4e4!important;border-color:#b792d4!important}
html.lvl-theme-light-1199bi body #view-stats .heat-cell.lvl-stats-calendar-cell-1199ao[data-level="3"]{background:#a979ce!important;border-color:#8e5fba!important}
html.lvl-theme-light-1199bi body #view-stats .heat-cell.lvl-stats-calendar-cell-1199ao[data-level="4"]{background:#7140a0!important;border-color:#5c3186!important}
html.lvl-theme-light-1199bi body #view-stats .lvl-stats-calendar-date-1199ao{color:#534b59!important}
html.lvl-theme-light-1199bi body #view-stats .lvl-stats-calendar-cell-1199ao[data-level="3"] .lvl-stats-calendar-date-1199ao,
html.lvl-theme-light-1199bi body #view-stats .lvl-stats-calendar-cell-1199ao[data-level="4"] .lvl-stats-calendar-date-1199ao{color:#fff!important}
html.lvl-theme-light-1199bi body #view-stats .lvl-stats-calendar-today-1199ao .lvl-stats-calendar-date-1199ao{color:#542199!important}
html.lvl-theme-light-1199bi body #view-stats :where(.session-tag,.stats-tag,.lvl-stats-calendar-range-1199ao){border-color:#c9b6da!important;background:#f1e9f7!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-stats :where(.positive,.up,.delta-positive){color:#17623f!important}

/* Support hub: the assistant remains visually distinct without blocking light mode. */
html.lvl-theme-light-1199bi body #view-support .support-hero-1300{border-color:#d6c5e4!important;background:radial-gradient(circle at 88% 10%,rgba(101,48,181,.13),transparent 34%),linear-gradient(145deg,#fff,#f3edf8)!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-support .support-kicker{color:#6530b5!important}
html.lvl-theme-light-1199bi body #view-support .support-status-chip{border-color:#cbb9d9!important;background:#f7f2fa!important;color:#4f4855!important}
html.lvl-theme-light-1199bi body #view-support .support-shell-1300,
html.lvl-theme-light-1199bi body #view-support .support-tabs-1300,
html.lvl-theme-light-1199bi body #view-support .support-ai-side,
html.lvl-theme-light-1199bi body #view-support .support-chat-card,
html.lvl-theme-light-1199bi body #view-support .support-chat-compose{border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body #view-support .support-tabs-1300{background:var(--lvl-color-surface-soft)!important}
html.lvl-theme-light-1199bi body #view-support .support-tab-1300:not(.is-active){color:#574f60!important}
html.lvl-theme-light-1199bi body #view-support .support-tab-1300.is-active{color:#fff!important}
html.lvl-theme-light-1199bi body #view-support .support-quick{border-color:#d2c4de!important;background:#f7f3f9!important;color:#3f3845!important}
html.lvl-theme-light-1199bi body #view-support .support-msg.ai,
html.lvl-theme-light-1199bi body #view-support .support-msg.admin{border-color:#d5c9df!important;background:#f2edf6!important;color:#332d38!important}
html.lvl-theme-light-1199bi body #view-support .support-chat-compose textarea{border-color:var(--lvl-color-border)!important;background:#fff!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body #view-support :where(.support-muted,.support-chat-head small){color:#625a69!important}

/* Treine com IA: all rails, context and composer controls follow the same palette. */
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb :where(.dutch-chat-shell,.dutch-chat-sidebar,.dutch-chat-stage,.dutch-chat-messages){border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .lvl-ai-topic-rail-1199bb>[data-chat-topic]{border-color:#d8cfdf!important;background:#f7f4f9!important;color:#514a57!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .lvl-ai-topic-rail-1199bb>[data-chat-topic]::before{background-color:#ebe5ef!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .lvl-ai-topic-rail-1199bb>[data-chat-topic].active{border-color:#7540ad!important;background:linear-gradient(135deg,#eee2f8,#f7f2fa)!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .lvl-ai-level-trigger-1199bb,
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-rule,
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-context,
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb #dutchFreeText{border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface-raised)!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-context{background:radial-gradient(circle at 91% 22%,rgba(101,48,181,.10),transparent 24%),#fff!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-rule p,
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-context>p{color:#625a69!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-context>strong{color:var(--lvl-color-text-strong)!important}

/* Plans: cards and comparison table receive purposeful light variants. */
html.lvl-theme-light-1199bi body #view-premium .access-plan-card{border-color:#d9cedf!important;background:linear-gradient(165deg,#fff,#f6f1f8)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-premium .access-plan-card.premium{border-color:#8e55ba!important;background:radial-gradient(circle at 50% 0,rgba(126,62,232,.12),transparent 42%),#fff!important}
html.lvl-theme-light-1199bi body #view-premium .access-plan-card :where(h3,h4,strong){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-premium .access-plan-card ul,
html.lvl-theme-light-1199bi body #view-premium .access-plan-card li,
html.lvl-theme-light-1199bi body #view-premium .access-plan-card .access-feature{color:#4f4855!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-grid{border-color:#d9cedf!important;background:#fff!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-row{border-color:#e3dce7!important;color:#3f3845!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-row>*{border-color:#e8e1eb!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-row strong{color:#514a57!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-head{background:linear-gradient(90deg,#eee5f5,#f8f4fa)!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-cell.yes{color:#17623f!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-cell.no{color:#756d7c!important}
html.lvl-theme-light-1199bi body #view-premium .access-compare-cell.text{color:#4f4855!important}

/* Profile chips: pastel fills use dark labels for accessible contrast. */
html.lvl-theme-light-1199bi body #view-profile .lvl-pd-chip{border-color:#b8c6d9!important;background:#edf4fb!important;color:#284765!important}
html.lvl-theme-light-1199bi body #view-profile .lvl-pd-chip.interest{border-color:#c7adda!important;background:#f2e9fa!important;color:#5c288d!important}
html.lvl-theme-light-1199bi body #view-profile .lvl-pd-chip.language{border-color:#acd5c8!important;background:#eaf7f2!important;color:#17623f!important}
html.lvl-theme-light-1199bi body #view-profile .lvl-pd-chip b{color:inherit!important}

/* Administration: maintenance rows and AI tools were authored as dark-only islands. */
html.lvl-theme-light-1199bi body #view-admin label{color:#5f5868!important}
html.lvl-theme-light-1199bi body #view-admin :where(.lvl-ai-1500,.lvl-ai-state,.lvl-ai-summary,.lvl-ai-issue,.lvl-ai-memory,.lvl-ai-signal,.lvl-ai-memory-used,.lvl-ai-memory-hit,.journey-admin-campaign){border-color:var(--lvl-color-border)!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important;box-shadow:none!important}
html.lvl-theme-light-1199bi body #view-admin .lvl-ai-tab{border-color:var(--lvl-color-border)!important;background:#f5f1f7!important;color:#514a57!important}
html.lvl-theme-light-1199bi body #view-admin .lvl-ai-tab.active{border-color:#7540ad!important;background:#eee2f8!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-admin :where(.lvl-ai-note,.lvl-ai-issue p,.lvl-ai-memory small,.lvl-ai-signal small,.lvl-ai-memory p,.lvl-ai-signal p){color:#625a69!important}
html.lvl-theme-light-1199bi body #view-admin .journey-admin-campaign :where(input,select){border-color:var(--lvl-color-border)!important;background:#fff!important;color:var(--lvl-color-text)!important}

/* LVL 1.53.4c — contrast polish found by desktop and mobile visual QA. */

/* Dark promotional heroes remain deliberate, so their copy must stay light. */
html.lvl-theme-light-1199bi body #view-courses .catalog-hero :where(h1,h2,h3,strong){color:#fff!important;text-shadow:none!important}
html.lvl-theme-light-1199bi body #view-courses .catalog-hero :where(p,small){color:#c6cbd7!important}
html.lvl-theme-light-1199bi body #view-courses .catalog-hero :where(.eyebrow,span:first-child){color:#c98aff!important}
html.lvl-theme-light-1199bi body #view-premium .access-sales-hero-copy :where(h1,h2,h3,strong){color:#fff!important;text-shadow:none!important}
html.lvl-theme-light-1199bi body #view-premium .access-sales-hero-copy :where(p,small){color:#c9ced9!important}
html.lvl-theme-light-1199bi body #view-premium .access-sales-hero-copy :where(.eyebrow,.access-sales-kicker){color:#d69aff!important}
html.lvl-theme-light-1199bi body #view-premium .access-current-pill{border-color:#4a5263!important;background:rgba(7,10,18,.72)!important;color:#f3f5f9!important}
html.lvl-theme-light-1199bi body #view-premium .access-current-pill :where(strong,b){color:#fff!important}
html.lvl-theme-light-1199bi body #view-premium .access-current-pill :where(span,small,p){color:#c3c9d4!important}
html.lvl-theme-light-1199bi body #view-premium .access-hero-proof,
html.lvl-theme-light-1199bi body #view-premium .access-hero-proof span{color:#d7dbe4!important}
html.lvl-theme-light-1199bi body #view-premium .access-hero-proof span:nth-child(2){color:#e4a2ff!important}

/* Catalog labels and home course metadata need stronger purple on white. */
html.lvl-theme-light-1199bi body #view-courses.lvl-catalog-premium-1225 .lvl-v-course-copy small,
html.lvl-theme-light-1199bi body #view-courses .lvl-v-course-copy small{color:#6530b5!important}
html.lvl-theme-light-1199bi body #view-courses #lvlCatalogMirrorCount,
html.lvl-theme-light-1199bi body #view-courses .lvl-v-all-head>span{color:#6530b5!important}
html.lvl-theme-light-1199bi body #view-home .course-card .course-meta,
html.lvl-theme-light-1199bi body #view-home .course-card .course-meta span{color:#6530b5!important}
html.lvl-theme-light-1199bi body #view-home .level-rank{border-color:#b89bd0!important;background:#eee4f5!important;color:#542199!important}

/* Statistics labels and historical session names. */
html.lvl-theme-light-1199bi body #view-stats .stat-card>span{color:#5f5868!important}
html.lvl-theme-light-1199bi body #view-stats .session-row strong{color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-stats .lvl-stats-calendar-weekdays-1199ao>span{color:#5f5868!important}
html.lvl-theme-light-1199bi body #view-stats :where(.eyebrow,.stats-eyebrow){color:#6530b5!important}

/* Native-looking custom selects are shared by the AI trainer and Admin. */
html.lvl-theme-light-1199bi body .lvl-custom-select-trigger{border-color:var(--lvl-color-border)!important;background:#fff!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body .lvl-custom-select-trigger :where(strong,b,span){color:inherit!important}
html.lvl-theme-light-1199bi body .lvl-custom-select-menu{border-color:var(--lvl-color-border)!important;background:#fff!important;color:var(--lvl-color-text)!important;box-shadow:0 18px 45px rgba(50,34,61,.16)!important}
html.lvl-theme-light-1199bi body .lvl-custom-select-option{background:#fff!important;color:var(--lvl-color-text)!important}
html.lvl-theme-light-1199bi body .lvl-custom-select-option:hover,
html.lvl-theme-light-1199bi body .lvl-custom-select-option.is-selected{background:#eee3f8!important;color:#542199!important}

/* The actual conversation workspace, not only its surrounding controls. */
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-main{border-color:var(--lvl-color-border)!important;background:linear-gradient(145deg,#fff,#f6f1f8)!important;color:var(--lvl-color-text)!important;box-shadow:var(--lvl-shadow-surface)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-main :where(h2,h3,h4,strong){color:var(--lvl-color-text-strong)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-capture{border-color:var(--lvl-color-border)!important;background:#f2edf6!important;color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-capture :where(small,span,p){color:var(--lvl-color-text-muted)!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-progress{border-color:#bba3ce!important;background:#eee3f8!important;color:#542199!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-chat-progress small{color:#542199!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb :where(.dutch-chat-input,.dutch-chat-composer){border-color:var(--lvl-color-border)!important;background:#fff!important}
html.lvl-theme-light-1199bi body #view-dutch-chat .lvl-ai-1199bb .dutch-free-mic{border-color:#bda8ce!important;background:#eee5f5!important;color:#6530b5!important}

/* Small remaining achievement counter. */
html.lvl-theme-light-1199bi body #view-achievements .achievement-total span{color:#5f5868!important}

@media(prefers-reduced-motion:reduce){
  html body,html body *{scroll-behavior:auto!important}
}

