/* Baakee Update 5 — additional legacy chrome palette adapters.
   Chrome-only. Preserve financial semantic colors, actual card artwork, and Rewind media.
   Based on remaining fixed emerald declarations in U2/U4 stylesheets. */
html[data-baakee-theme] body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) #app .u4p-page,
html[data-baakee-theme] body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) #modal-root .u4p-sheet {
  --u4p-accent:var(--baakee-ink)!important;
  --u4p-mint:var(--baakee-soft)!important;
  --u4p-muted:var(--baakee-secondary)!important;
}
/* People — filters, avatars, call-to-action and neutral surfaces. */
html[data-baakee-theme] #app .u4p-page :is(.u4p-filter button.active,.u4p-shell .u4p-add-top,.u4p-avatar),
html[data-baakee-theme] #modal-root .u4p-sheet :is(.u4p-avatar,.u4p-person-initial,.u4p-record-icon,.u4p-floating .secondary){
  background:var(--baakee-active-fill)!important;
  color:var(--baakee-ink)!important;
  border-color:var(--baakee-glass-border)!important;
}
html[data-baakee-theme] #app .u4p-glass,
html[data-baakee-theme] #modal-root .u4p-sheet :is(.u4p-glass,.u4p-insight,.u4p-segment,.u4p-allocation){
  background:var(--baakee-card-fill)!important;
  border-color:var(--baakee-glass-border)!important;
}
html[data-baakee-theme] #modal-root .u4p-add .u4p-person-option:is(:active,:focus-visible){
  background:var(--baakee-tint-quiet)!important;
}
/* U2 transfer choice and category controls (not financial status). */
html[data-baakee-theme] body :is(.u2-transfer-choice b,.u2-transfer-choice-icon,.u2-transfer-directions button.active,.u2-subcat-group button,.u2universal-head button){
  color:var(--baakee-ink)!important;
  border-color:var(--baakee-glass-border)!important;
}
html[data-baakee-theme] body :is(.u2-transfer-choice-icon,.u2-transfer-directions button.active,.u2-subcat-group button,.u2universal-head button){
  background:var(--baakee-active-fill)!important;
  box-shadow:none!important;
}
/* Subscriptions and Loans — replace the original fixed mint gradients only on
   neutral cards, never debt/risk status chips. */
html[data-baakee-theme] #app .u4sb-page,
html[data-baakee-theme] #modal-root .u4sb-detail-modal {
  --u4sb-mint:var(--baakee-card-fill)!important;
  --u4sb-line:var(--baakee-glass-border)!important;
}
html[data-baakee-theme] #modal-root .modal.u4sb-detail-modal :is(.u4sb-hero,.u4sb-insight,.subscription-health-grid-v75 > div,.u4sb-setup-modern .detail-line.u4sb-setup-tile),
html[data-baakee-theme] #modal-root .modal.u4lo-detail-modal :is(.u4lo-insight,.u4lo-detail-metrics > div),
html[data-baakee-theme] #app .u4sg-page :is(.u4sg-overview,.u4sg-card),
html[data-baakee-theme] #modal-root .modal.u4sg-detail :is(.u4sg-health,.u4sg-history){
  background:var(--baakee-card-fill)!important;
  border-color:var(--baakee-glass-border)!important;
}
/* Wallet and credit-card add flow: inputs and controls, not the displayed card designs. */
html[data-baakee-theme] #app :is(.u2w-focus-header > button,#u2w-aavi-trigger,.u2-display-gear),
html[data-baakee-theme] #modal-root :is(.u2r3-card-add-refined .u2r3-add-card-tab.active,.u2-card-bank-section form > button[type=submit]){
  background:var(--baakee-active-fill)!important;
  color:var(--baakee-ink)!important;
  border-color:var(--baakee-glass-border)!important;
}
html[data-baakee-theme] #app .u2w-thinking-head strong,
html[data-baakee-theme] #modal-root .u2-card-intro-icon {color:var(--baakee-ink)!important;}
/* iPad/phone: neutral inactive dock tabs and status-free filter selections. */
html[data-baakee-theme] body #app .bottom button[data-nav-id].active:not([data-nav-id="rufiyaa"]){
  background:var(--baakee-active-fill)!important;
  color:var(--baakee-ink)!important;
  box-shadow:inset 0 0 0 1px var(--baakee-glass-border)!important;
}
/* Do not apply old literal green to incidental chosen labels in detail dialogs. */
html[data-baakee-theme] body #modal-root .u2-glass-dialog-button.primary{
  background:var(--baakee-action-fill)!important;
  color:var(--baakee-action-text)!important;
  border-color:var(--baakee-glass-border)!important;
}
