/* Light theme roles. The legacy bridge is scoped so dark theme tokens stay intact. */
html:not([data-theme='dark']):not([data-entry-theme='dark']) {
  --lm-light-canvas: var(--palette-light-canvas);
  --lm-light-surface: var(--palette-light-surface);
  --lm-light-overlay: var(--palette-light-overlay);
  --lm-light-field: var(--palette-light-field);
  --lm-light-header: var(--palette-light-surface);
  --lm-light-sidebar: var(--palette-light-sidebar);
  --lm-light-table-head: var(--palette-light-table-head);
  --lm-light-row: var(--palette-light-surface);
  --lm-light-row-alt: var(--palette-light-row-alt);
  --lm-light-queue: var(--palette-light-surface);
  --lm-light-active: var(--palette-light-surface);
  --lm-light-closed: var(--palette-light-surface);
  --lm-light-time: var(--palette-light-surface);
  --lm-ink: #29343d;
  --lm-muted: #535f67;
  --lm-line: #c7cbc6;
  --lm-canvas: var(--lm-light-canvas);
  --lm-surface: var(--lm-light-surface);
  --ui-sidebar: var(--lm-light-sidebar);
  --ui-text: #303e47;
  --ui-muted: #4e5b62;
  --ui-border: #bdc5c3;
  --ui-hover: #e4e7e2;
  --ui-selected: #c9d7dd;
  --ui-accent: #315a78;
  --entry-bg: var(--lm-light-canvas);
  --entry-surface: var(--lm-light-surface);
  --entry-field: var(--lm-light-field);
  --entry-line: #c7cbc6;
}
/* Local legacy variables on body previously overrode inherited theme values. */
html:not([data-theme='dark']):not([data-entry-theme='dark']) body {
  --lm-canvas: var(--lm-light-canvas);
  --lm-surface: var(--lm-light-surface);
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(body, .lm-operator, .lm-supervisor, .px-content) {
  background: var(--lm-light-canvas) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(
    .sup-card,
    .sup-kpi,
    .panel,
    .op-inbox,
    .chat-header,
    .chat-body-input,
    .op-support,
    .op-results-panel,
    .op-filter-panel,
    .op-settings-panel
  ) {
  background: var(--lm-light-surface) !important;
  border-color: var(--lm-line) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.modal-content, .modal-header, .modal-footer, .lm-dashboard-picker, .lm-account-panel) {
  background: var(--lm-light-overlay) !important;
  border-color: var(--lm-line) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.chat-body-messages, .chat-section, .op-workspace) {
  background: #e4e5de !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  background-color: var(--lm-light-field) !important;
  color: var(--lm-ink);
  border-color: var(--lm-line);
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) select::picker(select) {
  background: var(--lm-light-overlay);
  color: var(--lm-ink);
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) :is(.op-search, .chat-body-input-box) {
  background: var(--lm-light-field) !important;
  border-color: var(--lm-line);
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) :is(.user-list-item, .op-icon) {
  background: var(--lm-light-surface) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  .user-list-item:is(:hover, [aria-selected='true']) {
  background: #dce4e2 !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar {
  background: var(--lm-light-header) !important;
  color: #293b48 !important;
  border-color: #c7cbc6 !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  .lm-topbar
  :is(h1, .lm-account-trigger strong) {
  color: #293b48 !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar .lm-account-trigger {
  color: #293b48;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar .lm-account-trigger small {
  color: #56636c !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  .lm-topbar
  .lm-account-trigger:is(:hover, [aria-expanded='true']) {
  background: #e0e3de;
  border-color: #c1c9c7;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar .op-header-brand {
  border-color: #c1c9c7;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar .op-header-brand img {
  background: transparent;
  border-radius: 6px;
  padding: 0;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar [data-account-dot] {
  border-color: var(--lm-light-header);
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-topbar .lm-sidebar-mobile {
  color: #293b48;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-sidebar {
  background: var(--lm-light-sidebar) !important;
  border-color: var(--ui-border) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .lm-sidebar-item[aria-current='page'] {
  background: #c9d7dd;
  border-color: #aabfc9;
  color: #24475f;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .sup-kpi[data-tone='queue'] {
  background: var(--lm-light-queue) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .sup-kpi[data-tone='active'] {
  background: var(--lm-light-active) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .sup-kpi[data-tone='closed'] {
  background: var(--lm-light-closed) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .sup-kpi[data-tone='time'] {
  background: var(--lm-light-time) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) .sup-kpi :is(span, strong) {
  color: var(--lm-ink) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  [data-dashboard-widget='distribution'] {
  background: var(--palette-light-surface) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark']) [data-dashboard-widget='messages'] {
  background: var(--palette-light-surface) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.lm-record-table, .table)
  thead
  :is(th, td) {
  background: var(--lm-light-table-head) !important;
  color: var(--lm-ink) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.lm-record-table, .table)
  tbody
  tr {
  background: var(--lm-light-row) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.lm-record-table, .table)
  tbody
  tr:nth-child(even) {
  background: var(--lm-light-row-alt) !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.lm-record-table, .table)
  tbody
  tr:hover {
  background: #dce4e2 !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.lm-record-table, .table)
  tbody
  :is(td, th) {
  background: transparent !important;
}
html:not([data-theme='dark']):not([data-entry-theme='dark'])
  :is(.btn-default, .sup-secondary, .lm-account-panel #buttonLogout) {
  background: #dfe4df !important;
  color: #334651 !important;
  border-color: #bdc8c8 !important;
}
.lm-supervisor .lm-subtitle,
.lm-supervisor .sup-kpis small,
.lm-supervisor[data-supervisor-page='dashboard'] .sup-footnote {
  display: none;
}
.lm-supervisor .sup-footnote {
  font-size: 11px;
}
.lm-environment,
.op-test-badge {
  display: none !important;
}
