/* Loaded last: user and role dialogs always have readable light-mode cards.
   Scoped to Fleet access UI, not the application shell. */
:root[data-theme="light"] .fleet-user-account-card,
:root[data-theme="light"] .fleet-user-role-card,
:root[data-theme="light"] .fleet-role-card,
:root:not([data-theme="dark"]) .fleet-user-account-card,
:root:not([data-theme="dark"]) .fleet-user-role-card,
:root:not([data-theme="dark"]) .fleet-role-card {
  background-color:#f4f8fc!important;
  background-image:none!important;
  color:#13283c!important;
  border:1px solid #bdcfdf!important;
  box-shadow:0 1px 3px rgba(18,41,61,.07)!important;
}
:root[data-theme="light"] :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(h2,h3,b,p,label,small,span,strong),
:root:not([data-theme="dark"]) :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(h2,h3,b,p,label,small,span,strong){
  color:#162b3e!important;
}
:root:not([data-theme="dark"]) :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(.muted,small) {
  color:#445a6d!important;
}
:root:not([data-theme="dark"]) :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(input:not([type=checkbox]),select) {
  background:#fff!important;color:#142a3d!important;border:1px solid #a9bacb!important;
}
:root:not([data-theme="dark"]) :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(button,.btn) {
  background:#fff!important;color:#172a3e!important;border:1px solid #9fb5ca!important;
  font-weight:750!important;
}
:root:not([data-theme="dark"]) .fleet-role-card p {font-size:14px!important;line-height:1.5!important}
:root:not([data-theme="dark"]) .fleet-role-card .badge {
  background:#e7eff7!important;color:#203b55!important;border:1px solid #b8cadc!important
}
/* In dark mode keep dark surfaces paired with light foreground colors. */
:root[data-theme="dark"] :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) {
  background:#172532!important;color:#f5f9fd!important;border:1px solid #43596b!important;
}
:root[data-theme="dark"] :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(h2,h3,b,p,label,small,span,strong) {
  color:#f0f7fd!important;
}
:root[data-theme="dark"] :is(.fleet-user-account-card,.fleet-user-role-card,.fleet-role-card) :is(.muted,small){
  color:#c9d8e7!important;
}
