/* ubs-contrast.css — 2026-11-15
   Text that was hard or impossible to read, found by an automatic check that
   opened every customer page in LIGHT and DARK and measured text against its
   background (target: 4.5:1, the usual readability minimum).
   Loaded last on customer pages, so it only corrects colours; nothing else.
   Dark mode passed the check; every rule here is light-mode only. */
@media (prefers-color-scheme: light) {

  /* Section titles and small print were #8790a6 on #f6f7fb (2.99:1).
     loans / borrow / loan detail / services / bill pay / KYC details */
  .sec-title, .disc, .protected, .sec h2 { color: #5b6478 !important; }

  /* Transfer: the "Search a UBS ID or scan a QR" line used a dark-mode-only
     colour — white at 28% on white, i.e. invisible. */
  .empty-card span { color: #5b6478 !important; }

  /* Crypto trade: the selected time chip turns light, but its "+85%" stayed
     white (1.1:1). Green figures were #10b981 on white (2.5:1). */
  .durs button .dur-po { color: #5b6478 !important; }
  .durs button.on .dur-po { color: #047857 !important; }
  #payoutTxt, #returnTxt, .v.pos, .pos, .dv.good { color: #047857 !important; }

  /* Red messages on light/pink backgrounds (1.7–2.9:1). */
  .dv.bad, .qr-fail { color: #b91c1c !important; }
  .err, .warn { color: #b91c1c !important; }

  /* Support: "10 options" / "Optional" labels (2.6:1). */
  .panel .label em, label em { color: #5b6478 !important; }

  /* Expired account page footnote (2.6:1). */
  p.note { color: rgba(7, 17, 38, .66) !important; }
}

/* Receive: the QR sits on a white panel in BOTH themes, so its error line
   needs a dark red in dark mode too (was #f87171 on white, 2.8:1). */
.qr-wrap .qr-fail, .qr-fail { color: #b91c1c !important; }
