/**
 * Monochrome TTMenus marks: white strokes on a black fill (or black ink on clear).
 * Dark chrome → invert so the fill/ink reads white.
 * Light chrome → no invert so the mark stays dark on light plates.
 */
.ttms-logo-mono {
  transition: filter 0.2s ease;
  filter: invert(1);
}

html[data-theme="light"] .ttms-logo-mono {
  filter: none;
}

/* Explicit surface overrides (brand header / loader stay dark even if theme is light) */
.ttms-logo-mono--on-dark {
  filter: invert(1) !important;
}

.ttms-logo-mono--on-light {
  filter: none !important;
}

/* Loader + menu button sit on dark brand plates */
#loader #loaderImage.ttms-logo-mono,
#dashboardBtn .ttms-logo-mono,
#dashboardBtn img.ttms-logo-mono {
  filter: invert(1) !important;
}

/* Wordmark: keep drop-shadow while inverting on dark panels */
#dashboard.dashboard-panel .dashboard-header-logo--wordmark.ttms-logo-mono {
  filter: invert(1) drop-shadow(0 2px 6px color-mix(in srgb, var(--dash-black, #000) 35%, transparent)) !important;
}

/* Light admin chrome only — public brand panels stay inverted via --on-dark */
html[data-theme="light"] #dashboard.dashboard-panel .dashboard-header-logo--wordmark.ttms-logo-mono:not(.ttms-logo-mono--on-dark) {
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--dash-black, #000) 35%, transparent)) !important;
}

html[data-theme="light"] #dashboard.dashboard-panel .dashboard-header-logo--gif.ttms-logo-mono:not(.ttms-logo-mono--on-dark) {
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ttms-logo-mono {
    transition: none;
  }
}
