/* QTB · Readability: higher contrast, sharper and larger small text. Loaded last on purpose.
 * Tune here: the text colour tokens and the minimum sizes below. */

/* brighter text colours (the earlier themes set these with !important, so we must too) */
:root, :root:not([data-theme="light"]) {
  --t: #ffffff !important;      /* main text */
  --t2: #e6edf5 !important;     /* secondary text (was #cbd5e1) */
  --t3: #b9c6d3 !important;     /* muted labels (was #94a3b8: too dim on dark) */
  --t4: #93a3b5 !important;     /* faint hints (was #64748b) */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--t);
}

/* minimum readable sizes for the tiny inline sizes used across the app's React code */
[style*="font-size: 7px"], [style*="font-size: 7.5px"], [style*="font-size: 8px"], [style*="font-size: 8.5px"],
[style*="font-size: 9px"], [style*="font-size: 9.5px"] { font-size: 11px !important; }
[style*="font-size: 10px"], [style*="font-size: 10.5px"] { font-size: 12px !important; }
[style*="font-size: 11px"], [style*="font-size: 11.5px"] { font-size: 12.5px !important; }

/* labels, badges and table headers */
th { font-size: 11.5px !important; color: var(--t2) !important; letter-spacing: .04em; }
td { color: var(--t); }
.bdg { font-size: 11px !important; font-weight: 700 !important; }
.tab { font-size: 13px !important; color: #dbe5ef !important; }
.tab.on { color: #04110b !important; }
.pt { font-size: 14px !important; color: #ffffff !important; }      /* panel titles */
.ib, .wb, .eb { font-size: 13px !important; line-height: 1.5 !important; }
input, select, textarea { color: #ffffff !important; font-size: 13px !important; }
::placeholder { color: #9fb0c1 !important; opacity: 1; }

/* classes the themes shrank to 9-10.5px */
td { font-size: 12.5px !important; }
.sec, .rc-sub, .pbl, .cbadge, .tn { font-size: 11.5px !important; }
.hdr-stat, .hdr-nv, .logo-tag { font-size: 11px !important; }

/* small grey helper text that was hard to read */
[style*="color: var(--t3)"] { color: var(--t3) !important; }
[style*="color: var(--t4)"] { color: var(--t3) !important; }
