/* Final dark-surface pass for tabs that still had older blue-black internals. */
body:not(.light-theme) #content-browser .browser-redesign-shell {
  --browser-bg0: var(--bg, #000000);
  --browser-bg1: var(--surface, #050506);
  --browser-bg2: var(--surface2, #101114);
  --browser-bg3: color-mix(in srgb, var(--surface2, #101114) 88%, #ffffff 12%);
  --browser-border0: var(--border, rgba(255, 255, 255, 0.075));
  --browser-border1: color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.075)) 78%, #ffffff 22%);
  --browser-border2: color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.075)) 58%, #ffffff 42%);
}

body:not(.light-theme) #content-notes .notes-workspace,
body:not(.light-theme) #content-notes #notes-editor-shell {
  background: var(--surface, #050506) !important;
}

body:not(.light-theme) #content-notes #notes-sidebar {
  background: var(--bg, #000000) !important;
  border-color: var(--border, rgba(255, 255, 255, 0.075)) !important;
}

body:not(.light-theme) #content-notes #tb-font,
body:not(.light-theme) #content-notes #tb-size,
body:not(.light-theme) #content-notes .notes-size-input,
body:not(.light-theme) #content-notes .notes-color-input,
body:not(.light-theme) #content-notes .notes-search-wrap,
body:not(.light-theme) #content-notes .samples-search-frame.single-outline-field {
  background-color: var(--surface2, #101114) !important;
  background: var(--surface2, #101114) !important;
  border-color: var(--border, rgba(255, 255, 255, 0.075)) !important;
}

body:not(.light-theme) #content-system .system-section-card,
body:not(.light-theme) #content-system .sys-config-card,
body:not(.light-theme) #content-system #sys-console-render,
body:not(.light-theme) #content-system .sys-asset-row {
  background: var(--surface, #050506) !important;
  border-color: var(--border, rgba(255, 255, 255, 0.075)) !important;
}

body:not(.light-theme) #content-system .system-section-card .theme-btn:not(#sys-storage-clean-btn):not(#sys-install-all-btn):not(#sys-install-modal-proceed) {
  background: var(--surface2, #101114) !important;
  border-color: var(--border, rgba(255, 255, 255, 0.075)) !important;
}

/* Final App Users menu pass: one compact outline, no inner focus ring. */
#topbar-user-menu.topbar-user-menu {
  width: 348px !important;
  max-width: min(94vw, 348px) !important;
  padding: 12px !important;
}

#topbar-user-menu .topbar-user-add-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 88px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#topbar-user-menu .topbar-user-add-grid .topbar-user-field {
  min-height: 36px !important;
  padding: 9px 10px 5px !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.075)) !important;
  border-radius: 9px !important;
  background: var(--surface2, #101114) !important;
  box-shadow: none !important;
}

#topbar-user-menu .topbar-user-add-grid .topbar-user-field:hover,
#topbar-user-menu .topbar-user-add-grid .topbar-user-field:focus-within {
  border-color: var(--border2, rgba(255, 255, 255, 0.14)) !important;
  background: var(--surface2, #101114) !important;
  box-shadow: none !important;
}

#topbar-user-menu .topbar-user-add-grid .topbar-user-field > .field-label {
  top: -7px !important;
  color: var(--text-muted, #8b949e) !important;
  background: var(--surface, #050506) !important;
}

#topbar-user-menu .topbar-user-add-grid .topbar-user-field:focus-within > .field-label {
  color: var(--text-muted, #8b949e) !important;
}

#topbar-user-first,
#topbar-user-last,
#topbar-user-first:hover,
#topbar-user-last:hover,
#topbar-user-first:focus,
#topbar-user-last:focus,
#topbar-user-first:focus-visible,
#topbar-user-last:focus-visible,
#topbar-user-first:active,
#topbar-user-last:active {
  all: unset !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text, #e6edf3) !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  outline: 0 solid transparent !important;
  outline-color: transparent !important;
  outline-offset: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  caret-color: var(--text, #e6edf3) !important;
}

#topbar-user-menu .topbar-user-add-btn {
  min-width: 88px !important;
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
}

body.light-theme #topbar-user-menu .topbar-user-add-grid .topbar-user-field {
  border-color: #cfd6e4 !important;
  background: #f8f9fc !important;
}

body.light-theme #topbar-user-menu .topbar-user-add-grid .topbar-user-field:hover,
body.light-theme #topbar-user-menu .topbar-user-add-grid .topbar-user-field:focus-within {
  border-color: #b0b8cc !important;
  background: #f8f9fc !important;
}

body.light-theme #topbar-user-menu .topbar-user-add-grid .topbar-user-field > .field-label {
  background: #ffffff !important;
  color: #667085 !important;
}

/* App Users final compact fields. These are intentionally independent from report inputs. */
#topbar-user-menu .topbar-user-add-grid {
  grid-template-columns: 102px 102px 82px !important;
  gap: 8px !important;
  margin-top: 18px !important;
}

#topbar-user-menu .topbar-user-field {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 9px 4px !important;
  overflow: visible !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.075)) !important;
  border-radius: 8px !important;
  background: var(--surface2, #101114) !important;
  box-shadow: none !important;
}

#topbar-user-menu .topbar-user-field:hover,
#topbar-user-menu .topbar-user-field:focus-within {
  border-color: var(--border2, rgba(255, 255, 255, 0.14)) !important;
  background: var(--surface2, #101114) !important;
  box-shadow: none !important;
}

#topbar-user-menu .topbar-user-label {
  position: absolute !important;
  top: -8px !important;
  left: 9px !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 5px !important;
  background: var(--surface, #050506) !important;
  color: var(--text-muted, #8b949e) !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

#topbar-user-menu .topbar-user-field:focus-within .topbar-user-label {
  color: var(--accent-blue, #58a6ff) !important;
}

#topbar-user-menu input#topbar-user-first.topbar-user-input,
#topbar-user-menu input#topbar-user-last.topbar-user-input,
#topbar-user-menu input#topbar-user-first.topbar-user-input:hover,
#topbar-user-menu input#topbar-user-last.topbar-user-input:hover,
#topbar-user-menu input#topbar-user-first.topbar-user-input:focus,
#topbar-user-menu input#topbar-user-last.topbar-user-input:focus,
#topbar-user-menu input#topbar-user-first.topbar-user-input:focus-visible,
#topbar-user-menu input#topbar-user-last.topbar-user-input:focus-visible,
#topbar-user-menu input#topbar-user-first.topbar-user-input:active,
#topbar-user-menu input#topbar-user-last.topbar-user-input:active,
#topbar-user-menu input#topbar-user-first.topbar-user-input:-webkit-autofill,
#topbar-user-menu input#topbar-user-last.topbar-user-input:-webkit-autofill {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: var(--surface2, #101114) !important;
  background-color: var(--surface2, #101114) !important;
  background-image: none !important;
  color: var(--text, #e6edf3) !important;
  -webkit-text-fill-color: var(--text, #e6edf3) !important;
  box-shadow: 0 0 0 1000px var(--surface2, #101114) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface2, #101114) inset !important;
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: var(--font-sans, sans-serif) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  caret-color: var(--text, #e6edf3) !important;
}

#topbar-user-menu .topbar-user-add-btn {
  min-width: 82px !important;
  width: 82px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
}

body.light-theme #topbar-user-menu .topbar-user-field {
  border-color: #cfd6e4 !important;
  background: #f8f9fc !important;
}

body.light-theme #topbar-user-menu .topbar-user-label {
  background: #ffffff !important;
  color: #667085 !important;
}

body.light-theme #topbar-user-menu .topbar-user-field:focus-within .topbar-user-label {
  color: #1f6feb !important;
}

body.light-theme #topbar-user-menu input#topbar-user-first.topbar-user-input,
body.light-theme #topbar-user-menu input#topbar-user-last.topbar-user-input {
  background: #f8f9fc !important;
  background-color: #f8f9fc !important;
  color: #182032 !important;
  -webkit-text-fill-color: #182032 !important;
  box-shadow: 0 0 0 1000px #f8f9fc inset !important;
  -webkit-box-shadow: 0 0 0 1000px #f8f9fc inset !important;
}

#topbar-user-menu .topbar-user-row-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 26px !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

#topbar-user-menu .topbar-user-row-wrap .topbar-user-row {
  min-width: 0 !important;
  width: 100% !important;
}

#topbar-user-menu .topbar-user-delete-btn {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--accent-red, #e05252) 34%, var(--border, rgba(255, 255, 255, 0.075)) 66%) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--accent-red, #e05252) 10%, var(--surface2, #101114) 90%) !important;
  color: color-mix(in srgb, var(--accent-red, #e05252) 78%, #ffffff 22%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
}

#topbar-user-menu .topbar-user-delete-btn:hover,
#topbar-user-menu .topbar-user-delete-btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent-red, #e05252) 68%, var(--border, rgba(255, 255, 255, 0.075)) 32%) !important;
  background: color-mix(in srgb, var(--accent-red, #e05252) 18%, var(--surface2, #101114) 82%) !important;
  color: #ffd7d7 !important;
}

#topbar-user-menu .topbar-user-delete-icon,
#topbar-user-menu .topbar-user-delete-btn .material-symbols-rounded {
  font-size: 16px !important;
  line-height: 1 !important;
}

body.light-theme #topbar-user-menu .topbar-user-delete-btn {
  background: #fff3f3 !important;
  border-color: #f3b8b8 !important;
  color: #c43b3b !important;
}

/* Light theme recovery layer.
   The dark redesign added some late hardcoded black surfaces and Python inline
   dark styles. Keep dark mode untouched, but force light mode back to variables. */
body.light-theme,
body.light-theme #root-div,
body.light-theme #app-main,
body.light-theme #page-content,
body.light-theme .content,
body.light-theme .tab-panel,
body.light-theme .dash-application {
  background-color: var(--bg-pattern-base, var(--bg, #f3f7fc)) !important;
  background-image: var(--bg-pattern-image, none) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme .topbar,
body.light-theme .navbar,
body.light-theme #clock-theme-dock {
  background: var(--surface, #ffffff) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #app-sidebar.app-sidebar,
body.light-theme #root-div:not(.sidebar-collapsed) #app-sidebar.app-sidebar {
  background: var(--surface, #ffffff) !important;
  border-right-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  box-shadow:
    14px 0 28px rgba(34, 54, 88, 0.12),
    inset -1px 0 0 color-mix(in srgb, var(--border, rgba(18, 42, 72, 0.18)) 82%, transparent) !important;
}

body.light-theme #app-sidebar.app-sidebar::before {
  background: var(--border, rgba(18, 42, 72, 0.18)) !important;
}

body.light-theme #app-sidebar .sidebar-toggle-control {
  background: transparent !important;
  color: var(--text-muted, #3b4f6a) !important;
}

body.light-theme #app-sidebar .sidebar-toggle-control:hover,
body.light-theme #app-sidebar .sidebar-toggle-control:focus-visible,
body.light-theme #app-sidebar .nav-link:not(.active):hover {
  background: var(--surface2, #edf3fb) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #app-sidebar .sidebar-divider {
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
}

body.light-theme #app-sidebar .sidebar-nav-icon,
body.light-theme #app-sidebar .material-symbols-rounded.sidebar-nav-icon,
body.light-theme #app-sidebar .sidebar-nav-label {
  color: var(--text-muted, #3b4f6a) !important;
}

body.light-theme .main-wrap,
body.light-theme .wide-wrap,
body.light-theme .page-header,
body.light-theme .home-shell,
body.light-theme .upload-box,
body.light-theme .stat-box,
body.light-theme .empty-state,
body.light-theme .rpt-panel,
body.light-theme .report-section-card,
body.light-theme .report-generated-panel,
body.light-theme .report-generated-header,
body.light-theme .report-generated-search-shell,
body.light-theme .report-generated-search-frame,
body.light-theme .report-generated-row,
body.light-theme .report-floating-strip,
body.light-theme .report-config-card,
body.light-theme .report-command-bar,
body.light-theme .job-card-v2,
body.light-theme .jv2-mini,
body.light-theme .jobs-history-details,
body.light-theme .jobs-history-row,
body.light-theme .jobs-history-empty,
body.light-theme .system-section-card,
body.light-theme .sys-config-card,
body.light-theme .sys-asset-row,
body.light-theme #sys-console-render,
body.light-theme #content-notes .notes-workspace,
body.light-theme #content-notes #notes-sidebar,
body.light-theme #content-notes #notes-editor-shell,
body.light-theme #content-browser .browser-redesign-shell {
  background: var(--surface, #ffffff) !important;
  background-color: var(--surface, #ffffff) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme .module-card:not(.selected-teal):not(.selected-blue):not(.selected-pink):not(.selected-amber):not(.selected-purple),
body.light-theme .theme-btn:not(.theme-btn-danger),
body.light-theme .btn-secondary,
body.light-theme .format-tag,
body.light-theme .jv2-log-toggle,
body.light-theme .jobs-history-summary,
body.light-theme .samples-card-icon-btn,
body.light-theme .samples-carousel-btn,
body.light-theme #content-notes #tb-font,
body.light-theme #content-notes #tb-size,
body.light-theme #content-notes .notes-size-input,
body.light-theme #content-notes .notes-color-input,
body.light-theme #content-notes .notes-search-wrap,
body.light-theme #content-notes .samples-search-frame.single-outline-field {
  background: var(--surface2, #edf3fb) !important;
  background-color: var(--surface2, #edf3fb) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.light-theme textarea,
body.light-theme select,
body.light-theme .theme-input,
body.light-theme .path-input,
body.light-theme .rpt-input,
body.light-theme .report-shell-input,
body.light-theme .browser-url-input,
body.light-theme .samples-search-input,
body.light-theme .samples-search-input-v3,
body.light-theme .notes-search-input,
body.light-theme .notes-title-input,
body.light-theme .notes-editor-input,
body.light-theme .single-outline-field,
body.light-theme .report-shell-field,
body.light-theme .field-group {
  background: var(--input-bg, #f7faff) !important;
  background-color: var(--input-bg, #f7faff) !important;
  border-color: var(--input-border, rgba(30, 55, 85, 0.22)) !important;
  color: var(--input-text, #11253f) !important;
}

body.light-theme .single-outline-field > input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.light-theme .report-shell-field > input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.light-theme .field-group > input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.light-theme .single-outline-field > textarea,
body.light-theme .report-shell-field > textarea,
body.light-theme .field-group > textarea {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

body.light-theme code,
body.light-theme pre,
body.light-theme .jv2-log-body,
body.light-theme .sys-console-output,
body.light-theme #sys-console-render {
  background: var(--surface2, #edf3fb) !important;
  background-color: var(--surface2, #edf3fb) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme .jv2-log-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-muted, #3b4f6a) 28%, transparent) !important;
}

/* Catch Python inline dark backgrounds in System and utility cards. */
body.light-theme [style*="#000000"],
body.light-theme [style*="#050506"],
body.light-theme [style*="#101114"],
body.light-theme [style*="#0d1117"] {
  background: var(--surface, #ffffff) !important;
  background-color: var(--surface, #ffffff) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme [style*="borderColor: #1e2229"],
body.light-theme [style*="border-color: #1e2229"],
body.light-theme [style*="#1e2229"] {
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
}

/* Extra light-theme pass for Notes/System.
   Dash inline styles are often serialized by the browser as rgb(...), so the
   hex-only recovery above can miss these rebuilt tabs. */
body.light-theme #content-notes .notes-tab-wrap,
body.light-theme #content-notes .notes-workspace,
body.light-theme #content-notes #notes-editor-shell,
body.light-theme #content-system.main-wrap,
body.light-theme #content-system .main-wrap {
  background: var(--surface, #ffffff) !important;
  background-color: var(--surface, #ffffff) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes #notes-sidebar,
body.light-theme #content-notes #note-list,
body.light-theme #content-notes #editor-body,
body.light-theme #content-notes #empty-state,
body.light-theme #content-system .system-section-card,
body.light-theme #content-system .sys-config-card,
body.light-theme #content-system .sys-asset-row,
body.light-theme #content-system details,
body.light-theme #content-system #sys-console-render {
  background: var(--surface, #ffffff) !important;
  background-color: var(--surface, #ffffff) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes [style*="background: #000000" i],
body.light-theme #content-notes [style*="background-color: #000000" i],
body.light-theme #content-notes [style*="background: rgb(0, 0, 0)" i],
body.light-theme #content-notes [style*="background-color: rgb(0, 0, 0)" i],
body.light-theme #content-system [style*="background: #000000" i],
body.light-theme #content-system [style*="background-color: #000000" i],
body.light-theme #content-system [style*="background: rgb(0, 0, 0)" i],
body.light-theme #content-system [style*="background-color: rgb(0, 0, 0)" i],
body.light-theme #content-system [style*="background: #050506" i],
body.light-theme #content-system [style*="background-color: #050506" i],
body.light-theme #content-system [style*="background: rgb(5, 5, 6)" i],
body.light-theme #content-system [style*="background-color: rgb(5, 5, 6)" i] {
  background: var(--surface, #ffffff) !important;
  background-color: var(--surface, #ffffff) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes [style*="background: #050506" i],
body.light-theme #content-notes [style*="background-color: #050506" i],
body.light-theme #content-notes [style*="background: rgb(5, 5, 6)" i],
body.light-theme #content-notes [style*="background-color: rgb(5, 5, 6)" i],
body.light-theme #content-notes [style*="background: #101114" i],
body.light-theme #content-notes [style*="background-color: #101114" i],
body.light-theme #content-notes [style*="background: rgb(16, 17, 20)" i],
body.light-theme #content-notes [style*="background-color: rgb(16, 17, 20)" i],
body.light-theme #content-system [style*="background: #101114" i],
body.light-theme #content-system [style*="background-color: #101114" i],
body.light-theme #content-system [style*="background: rgb(16, 17, 20)" i],
body.light-theme #content-system [style*="background-color: rgb(16, 17, 20)" i] {
  background: var(--surface2, #edf3fb) !important;
  background-color: var(--surface2, #edf3fb) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes [style*="border: 1px solid rgba(255, 255, 255, 0.075)" i],
body.light-theme #content-notes [style*="border-right: 1px solid rgba(255, 255, 255, 0.075)" i],
body.light-theme #content-notes [style*="border-bottom: 1px solid rgba(255, 255, 255, 0.075)" i],
body.light-theme #content-notes [style*="border-top: 1px solid rgba(255, 255, 255, 0.075)" i],
body.light-theme #content-system [style*="border: 1px solid #1e2229" i],
body.light-theme #content-system [style*="border-color: #1e2229" i],
body.light-theme #content-system [style*="border: 1px solid rgb(30, 34, 41)" i],
body.light-theme #content-system [style*="border-color: rgb(30, 34, 41)" i] {
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
}

body.light-theme #content-notes [style*="color: #e6edf3" i],
body.light-theme #content-notes [style*="color: rgb(230, 237, 243)" i],
body.light-theme #content-system [style*="color: #e6edf3" i],
body.light-theme #content-system [style*="color: rgb(230, 237, 243)" i],
body.light-theme #content-system [style*="color: #c9d1d9" i],
body.light-theme #content-system [style*="color: rgb(201, 209, 217)" i] {
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes [style*="color: #8b949e" i],
body.light-theme #content-notes [style*="color: rgb(139, 148, 158)" i],
body.light-theme #content-notes [style*="color: #6e7681" i],
body.light-theme #content-notes [style*="color: rgb(110, 118, 129)" i],
body.light-theme #content-notes [style*="color: #484f58" i],
body.light-theme #content-notes [style*="color: rgb(72, 79, 88)" i],
body.light-theme #content-system [style*="color: #8b949e" i],
body.light-theme #content-system [style*="color: rgb(139, 148, 158)" i],
body.light-theme #content-system [style*="color: #6e7681" i],
body.light-theme #content-system [style*="color: rgb(110, 118, 129)" i] {
  color: var(--text-muted, #3b4f6a) !important;
}

body.light-theme #content-notes #tb-font,
body.light-theme #content-notes #tb-size,
body.light-theme #content-notes #margin-decrease,
body.light-theme #content-notes #margin-increase,
body.light-theme #content-notes .notes-search-wrap,
body.light-theme #content-notes .samples-search-frame.single-outline-field,
body.light-theme #content-system .theme-btn:not(.theme-btn-danger),
body.light-theme #content-system .single-outline-field,
body.light-theme #content-system .sys-console-command-shell {
  background: var(--surface2, #edf3fb) !important;
  background-color: var(--surface2, #edf3fb) !important;
  border-color: var(--border, rgba(18, 42, 72, 0.18)) !important;
  color: var(--text, #11253f) !important;
}

body.light-theme #content-notes #note-search,
body.light-theme #content-notes #note-title-input,
body.light-theme #content-notes #note-content-textarea,
body.light-theme #content-system .single-outline-field > input,
body.light-theme #content-system .sys-console-command-shell > input {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text, #11253f) !important;
  -webkit-text-fill-color: var(--text, #11253f) !important;
}

body.light-theme #content-notes [style*="background: #1a2d3a" i],
body.light-theme #content-notes [style*="background-color: #1a2d3a" i],
body.light-theme #content-notes [style*="background: rgb(26, 45, 58)" i],
body.light-theme #content-notes [style*="background-color: rgb(26, 45, 58)" i] {
  background: #eaf3ff !important;
  background-color: #eaf3ff !important;
  border-color: #b8d8ff !important;
  color: #1f6feb !important;
}

body.light-theme #content-notes [style*="background: #1a3a2a" i],
body.light-theme #content-notes [style*="background-color: #1a3a2a" i],
body.light-theme #content-notes [style*="background: rgb(26, 58, 42)" i],
body.light-theme #content-notes [style*="background-color: rgb(26, 58, 42)" i] {
  background: #e7f6ed !important;
  background-color: #e7f6ed !important;
  border-color: #b8dfc8 !important;
  color: #187a46 !important;
}

body.light-theme #content-notes [style*="background: #2d1f3a" i],
body.light-theme #content-notes [style*="background-color: #2d1f3a" i],
body.light-theme #content-notes [style*="background: rgb(45, 31, 58)" i],
body.light-theme #content-notes [style*="background-color: rgb(45, 31, 58)" i] {
  background: #f2eaff !important;
  background-color: #f2eaff !important;
  border-color: #d6c2ff !important;
  color: #7b3fd0 !important;
}

body.light-theme #content-notes [style*="background: #2d2a1a" i],
body.light-theme #content-notes [style*="background-color: #2d2a1a" i],
body.light-theme #content-notes [style*="background: rgb(45, 42, 26)" i],
body.light-theme #content-notes [style*="background-color: rgb(45, 42, 26)" i],
body.light-theme #content-system [style*="background: #1c1a10" i],
body.light-theme #content-system [style*="background-color: #1c1a10" i],
body.light-theme #content-system [style*="background: rgb(28, 26, 16)" i],
body.light-theme #content-system [style*="background-color: rgb(28, 26, 16)" i],
body.light-theme #content-system [style*="background: #241b10" i],
body.light-theme #content-system [style*="background-color: #241b10" i],
body.light-theme #content-system [style*="background: rgb(36, 27, 16)" i],
body.light-theme #content-system [style*="background-color: rgb(36, 27, 16)" i],
body.light-theme #content-system [style*="background: #3a2610" i],
body.light-theme #content-system [style*="background-color: #3a2610" i],
body.light-theme #content-system [style*="background: rgb(58, 38, 16)" i],
body.light-theme #content-system [style*="background-color: rgb(58, 38, 16)" i],
body.light-theme #content-system [style*="background: #3a2a0c" i],
body.light-theme #content-system [style*="background-color: #3a2a0c" i],
body.light-theme #content-system [style*="background: rgb(58, 42, 12)" i],
body.light-theme #content-system [style*="background-color: rgb(58, 42, 12)" i] {
  background: #fff7df !important;
  background-color: #fff7df !important;
  border-color: #e4bd61 !important;
  color: #8a5a00 !important;
}

body.light-theme #content-notes [style*="background: #3d1f1f" i],
body.light-theme #content-notes [style*="background-color: #3d1f1f" i],
body.light-theme #content-notes [style*="background: rgb(61, 31, 31)" i],
body.light-theme #content-notes [style*="background-color: rgb(61, 31, 31)" i],
body.light-theme #content-system [style*="background: #351720" i],
body.light-theme #content-system [style*="background-color: #351720" i],
body.light-theme #content-system [style*="background: rgb(53, 23, 32)" i],
body.light-theme #content-system [style*="background-color: rgb(53, 23, 32)" i] {
  background: #fff1f1 !important;
  background-color: #fff1f1 !important;
  border-color: #f3b8b8 !important;
  color: #b42318 !important;
}
