
/* White legacy settings and user-management surfaces must use dark foreground,
   regardless of the surrounding theme. */
html[data-mp-theme="dark"] .settings-tile,
html[data-mp-theme="dark"] .stat,
html[data-mp-theme="dark"] .admin-card,
html[data-mp-theme="dark"] .perm-card,
html[data-mp-theme="dark"] .admin-panel,
html[data-mp-theme="dark"] .admin-table-wrap,
html[data-mp-theme="dark"] .lic-stat,
html[data-mp-theme="dark"] .lic-monitor-card {color:#202a36!important;background:#fff!important;border-color:#dce2e9!important;color-scheme:light}
html[data-mp-theme="dark"] :is(.settings-tile,.stat,.admin-card,.perm-card,.admin-panel,.admin-table-wrap,.lic-stat,.lic-monitor-card) :is(h1,h2,h3,h4,h5,h6,strong,b,td,span:not(.symbol):not(.chip),label,a) {color:#202a36!important}
html[data-mp-theme="dark"] :is(.settings-tile,.stat,.admin-card,.perm-card,.admin-panel,.admin-table-wrap,.lic-stat,.lic-monitor-card) :is(p,small,.admin-note,.mp-muted) {color:#526274!important}
/* User list lives on a white panel and needs legible cell text, links and actions. */
html[data-mp-theme="dark"] .admin-card :is(table,tbody,tr,td) {color:#202a36!important}
html[data-mp-theme="dark"] .admin-card thead th {background:#29394b!important;color:#fff!important}
html[data-mp-theme="dark"] .admin-card :is(button:not(.primary),input:not([type=checkbox]),select,textarea) {background:#fff!important;color:#202a36!important;border-color:#cfd7e2!important}
html[data-mp-theme="dark"] .admin-card .primary {color:#17202b!important}
/* Buttons in dark surroundings must not render as empty white pills. */
html[data-mp-theme="dark"] :is(.admin-tabs,.admin-toolbar,.admin-actions) button:not(.primary),
html[data-mp-theme="dark"] .secondary {background:#243448!important;color:#f5f7fb!important;border-color:#506176!important}
html[data-mp-theme="dark"] .admin-tabs button.selected {background:#f7e5b9!important;color:#61400b!important}
/* The card titles are dark even if older theme rules use inherited white. */
html[data-mp-theme="dark"] .settings-tile :is(h2,h3,strong,.settings-title),
html[data-mp-theme="dark"] .stat strong {color:#202a36!important}
