:root{--ac:var(--accent);--ac-ink:var(--accent-ink);--on-ac:#fff}
/* ============================================================================
   MyroPay — "crisp" design layer.
   Loaded LAST (after styles / desktop / signup / login / chat / polish). Pure CSS: no markup, id, handler or JS changes.
   Direction: flat, high-contrast, fintech-clean (think Revolut): solid surfaces instead of glass, no glow / blobs / floating coins /
   3-D gel tiles, one accent, pill buttons, one radius + spacing scale, tabular numbers, and nothing that moves layout while loading.
   ============================================================================ */

/* ── Fallback font metrics: the web font swaps in without reflowing text (kills the "jump" on first paint) ── */
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 104%; ascent-override: 95%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 100%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }

:root {
  /* scale: 4 / 8 / 12 / 16 / 20 / 24 / 32 */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg); --radius-xl: var(--r-xl);
  --gutter: 16px;
  --ctl-h: 52px;                         /* every button / field is the same height */
  --font-body: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  /* surfaces — dark */
  --bg-primary: #0a0a0d;
  --bg-secondary: #111115;
  --bg-card: #151519;
  --bg-card-hover: #1c1c21;
  --bg-input: #1c1c21;
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.16);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,.66);
  --text-tertiary: rgba(255,255,255,.52);
  --glass-bg: #0a0a0d;
  --glass-border: rgba(255,255,255,.07);
  --glass-shadow: none;
  --shadow-card: none; --shadow-pop: 0 12px 40px rgba(0,0,0,.45);
  --shadow-sm: none; --shadow-md: none; --shadow-lg: 0 12px 40px rgba(0,0,0,.45); --shadow-xl: 0 20px 60px rgba(0,0,0,.5);
  --card-gradient: var(--bg-card); --savings-gradient: var(--bg-card);
  --card-border: var(--border); --savings-border: var(--border);
  --accent-glow: color-mix(in srgb, var(--ac) 14%, transparent);
  --brand-glow:  color-mix(in srgb, var(--ac) 14%, transparent);
  --blob1: transparent; --blob2: transparent;
}
[data-theme="light"] {
  --bg-primary: #f3f3f6;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f7fa;
  --bg-input: #f0f0f4;
  --border: rgba(15,15,25,.07);
  --border-strong: rgba(15,15,25,.18);
  --text-primary: #0d0d14;
  --text-secondary: #55556b;
  --text-tertiary: #70708a;
  --glass-bg: #ffffff;
  --glass-border: rgba(15,15,25,.07);
  --shadow-card: none; --shadow-pop: 0 12px 40px rgba(15,15,25,.14);
  --shadow-lg: 0 12px 40px rgba(15,15,25,.14); --shadow-xl: 0 20px 60px rgba(15,15,25,.18);
}

/* ── Base: stable, no layout shift ── */
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-body); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; }
img { height: auto; }
.screen-container, .screen { overscroll-behavior: contain; }
.screen-container { scroll-behavior: auto; overflow-anchor: none; }
/* money / counts never reflow as digits change */
.balance-amount, .amount-display, .txn-amt, .txn-amount, #home-balance, [id$="-balance"], [class*="amount"], [class*="balance"], .stat-value, .kpi-value, .copyable, time {
  font-variant-numeric: tabular-nums; }
/* transitions: animate paint only, never size/position (layout jank) — overrides every `transition: all` below */
button, .btn-p, .btn-s, .btn-outline, .btn-primary, .card, .input-f, .icon-btn, .theme-toggle-btn, .nav-link, .nav-link *, .qa, .qa-icon,
.qa-grid-item, .qa-grid-icon, .setting-row, .txn-item, .badge, .auth-tab, .otp-box, .side-link, .side-link * , .modal-sheet {
  transition-property: background-color, border-color, color, opacity, transform, box-shadow; transition-duration: .16s; transition-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ── Flatten the 3-D "gel" tiles everywhere (tile colours were custom props: neutralise them once) ── */
[data-tile] { --c1: var(--bg-input); --c2: var(--bg-input); --sh: transparent; }
.qa-icon, .qa-grid-icon, .side-link-icon, .logo-mark, .setting-icon {
  background: var(--bg-input) !important; color: var(--text-primary) !important; box-shadow: none !important; border: 0 !important; }
.qa-icon { width: 56px; height: 56px; border-radius: 50%; font-size: 1.1rem; }
.qa-grid-icon { width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; }
.logo-mark { background: var(--ac) !important; color: var(--on-ac) !important; border-radius: 9px; }
.qa[data-tile="purple"] .qa-icon:first-child, .qa:first-child .qa-icon { background: var(--ac) !important; color: var(--on-ac) !important; }   /* Send = the one primary action */
.qa-label, .qa-grid-label { color: var(--text-secondary); font-weight: 600; }

/* ── Header ── */
.header { padding: 12px var(--gutter); min-height: 60px; }
.logo { font-size: 1.1rem; letter-spacing: -.02em; }
.icon-btn, .theme-toggle-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 0; display: grid; place-items: center; box-shadow: none; }
.icon-btn:active, .theme-toggle-btn:active { transform: scale(.94); }
#user-avatar { background: var(--ac) !important; color: var(--on-ac) !important; border: 0 !important; font-weight: 700; }

/* ── Home hero: flat, large numerals, no blobs ── */
.home-hero { padding: 8px var(--gutter) 20px; overflow: visible; }
.home-hero .blob, .blob { display: none !important; }
.hero-greeting { color: var(--text-tertiary); font-size: .85rem; margin-bottom: 2px; }
.hero-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 18px; color: var(--text-secondary); }
.balance-label { font-size: .72rem; letter-spacing: .08em; color: var(--text-tertiary); margin-bottom: 6px; }
.balance-amount { font-size: clamp(2.4rem, 11vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; min-height: 1.1em; }
.balance-change { min-height: 1.4em; font-size: .82rem; margin-top: 8px; }
.quick-actions { margin-top: 24px; gap: 4px; }
.qa { gap: 8px; }
.qa-label { font-size: .75rem; color: var(--text-primary); font-weight: 500; }

/* ── Cards & lists ── */
.card { background: var(--bg-card); border: 0; border-radius: var(--r-lg); box-shadow: none; margin: 0 var(--gutter) 12px; padding: 18px; }
.card-dark { border-radius: var(--r-lg); }
.section-h { padding: 20px var(--gutter) 10px; align-items: baseline; }
.section-t { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.section-l { font-size: .85rem; font-weight: 600; color: var(--ac-ink); }
.txn-item { border-radius: var(--r-md); padding: 12px 6px; }
.setting-row { border-bottom: 1px solid var(--border); }
.badge, [class^="badge-"] { border-radius: var(--r-pill); font-weight: 600; }
.kyc-banner { border-radius: var(--r-lg); border: 0; background: var(--bg-card); margin: 0 var(--gutter) 12px; }

/* Quick Access grid: 4 even columns that always fit the screen */
.qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 var(--gutter); box-sizing: border-box; }
.qa-grid .qa-grid-item { background: var(--bg-card); border: 0; border-radius: var(--r-lg); padding: 14px 4px 12px; min-height: 88px; gap: 8px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qa-grid .qa-grid-item:active { background: var(--bg-card-hover); transform: none; }
.qa-more > summary { border: 0; background: var(--bg-card); margin: 0 var(--gutter); }

/* ── Controls: one height, one radius ── */
.btn-p, .btn-primary { min-height: var(--ctl-h); border-radius: var(--r-pill); border: 0; background: var(--ac) !important; color: var(--on-ac) !important; box-shadow: none !important;
  font-weight: 700; font-size: 1rem; letter-spacing: -.005em; }
.btn-p:hover, .btn-primary:hover { filter: none; transform: none; }
.btn-p:active, .btn-primary:active { transform: scale(.985); filter: brightness(.94); }
.btn-p:disabled { opacity: .45; }
.btn-p[style*="var(--red"] { background: var(--red-solid, #d92b49) !important; color: #fff !important; }
.btn-p[style*="var(--green"] { background: var(--green) !important; color: var(--on-green, #03231c) !important; }
.btn-outline, .btn-s { min-height: var(--ctl-h); border-radius: var(--r-pill); border: 0; background: var(--bg-input); color: var(--text-primary); font-weight: 600; box-shadow: none; }
.btn-s { min-height: 40px; padding: 8px 16px; }
.btn-outline:active, .btn-s:active { background: var(--bg-card-hover); transform: scale(.985); }
.input-f, select.input-f, textarea.input-f { min-height: var(--ctl-h); border-radius: var(--r-md); border: 1.5px solid transparent; background-color: var(--bg-input); color: var(--text-primary); box-shadow: none; font-size: 1rem; padding-inline: 16px; }
textarea.input-f { padding-block: 14px; }
.input-f:focus { border-color: var(--ac); box-shadow: none; background-color: var(--bg-input); outline: none; }
.input-f::placeholder { color: var(--text-tertiary); }
.input-label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.input-group { margin-bottom: 16px; }
.otp-box, .otp-inputs input { border-radius: var(--r-md); border: 1.5px solid transparent; background-color: var(--bg-input); }
.otp-box:focus, .otp-inputs input:focus { border-color: var(--ac); box-shadow: none; transform: none; }
:focus-visible { outline: 2px solid var(--ac-ink); outline-offset: 2px; }

/* ── Bottom nav: solid bar, hairline, accent for the active tab (no glass, no pill, no glow) ── */
.bottom-nav { background: var(--bg-primary); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--border); box-shadow: none;
  align-items: center; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); min-height: 60px; }
.nav-link { min-width: 0; flex: 1 1 0; padding: 4px 2px; gap: 2px; }
.nav-link .nav-icon-wrapper { width: 40px; height: 28px; background: none !important; box-shadow: none !important; border-radius: var(--r-pill); }
.nav-link .nav-icon-wrapper i { font-size: 1.1rem; }
.nav-link .nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.nav-link.active .nav-icon-wrapper { background: none !important; color: var(--ac-ink) !important; }
.nav-link.active .nav-icon-wrapper::after { display: none; }
.nav-link.active .nav-label { color: var(--ac-ink); }
.nav-center-wrap { padding-bottom: 0; align-items: center; flex: 1 1 0; }
.nav-link.qr-center { width: 52px; height: 52px; flex: 0 0 52px; margin: 0; border-radius: 50%; background: var(--ac); color: var(--on-ac); box-shadow: none; }
.nav-link.qr-center .nav-icon-wrapper { width: 52px; height: 52px; color: var(--on-ac) !important; }
.nav-link.qr-center:active { transform: scale(.94); }

/* ── Floating assistant button: flat, sits clear of the nav ── */
.chat-fab { width: 48px; height: 48px; background: var(--ac); color: var(--on-ac); box-shadow: 0 6px 20px rgba(0,0,0,.28); right: var(--gutter); bottom: calc(76px + env(safe-area-inset-bottom)); }
.screen { padding-bottom: 8px; }
.screen-container::after { content: ""; display: block; height: 72px; }   /* last row can always scroll clear of the floating button */

/* ── Sheets / modals ── */
.modal-sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--bg-secondary); border: 0; box-shadow: var(--shadow-pop); }
.modal-handle { width: 36px; height: 4px; background: var(--border-strong); border-radius: 2px; }
.modal-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.toast-el:not(.mrp-toast) { border-radius: var(--r-pill); box-shadow: var(--shadow-pop); }

/* ── Splash: flat ── */
.mrp-splash::before { display: none; }
.mrp-splash-badge { background: var(--ac) !important; box-shadow: none !important; border-radius: 22px; animation: none; }
.mrp-splash-dots span { background: var(--ac); }

/* ── Auth (login + sign-up): clean, no blobs / coins / shimmer / stagger-in ── */
#auth-container .lg-bg, #auth-container .lg-coins, #auth-container .auth-bg-glow { display: none !important; }
#auth-container .auth-logo-wrap { padding-top: calc(env(safe-area-inset-top, 0px) + 76px); padding-bottom: 8px; gap: 6px; }
#auth-container .auth-logo-mark { box-shadow: none; animation: none; background: var(--ac); border-radius: 18px; }
#auth-container .auth-logo-mark::after { display: none; }
#auth-container .auth-logo-name { font-size: 1.25rem; letter-spacing: -.02em; }
#auth-container .auth-logo-sub { color: var(--text-tertiary) !important; font-weight: 500; }
#auth-container .auth-logo-name, #auth-container .auth-logo-sub, #auth-container .lg-h, #auth-container .lg-lead,
#auth-container #auth-login > *, #auth-container .lg-alt, #auth-container .auth-tabs { animation: none !important; }
#auth-container .auth-card { padding: 16px 20px calc(var(--lg-sab, 0px) + 32px); }
#auth-container .lg-h { font-size: clamp(1.7rem, 7vw, 2.1rem); letter-spacing: -.03em; font-weight: 700; margin: 8px 0 8px; }
#auth-container .lg-h em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ac-ink); font-style: normal; }
#auth-container .lg-lead { color: var(--text-secondary); margin-bottom: 24px; }
#auth-container .input-f { height: var(--ctl-h); min-height: var(--ctl-h); border: 1.5px solid transparent; background-color: var(--bg-input); border-radius: var(--r-md); }
#auth-container .input-f:focus { border-color: var(--ac); box-shadow: none; background-color: var(--bg-input); }
#auth-container .pw-wrap > i { height: var(--ctl-h); width: 52px; }
#auth-container #login-btn { height: var(--ctl-h); border-radius: var(--r-pill); background: var(--ac); color: var(--on-ac); box-shadow: none; overflow: hidden; }
#auth-container #login-btn::after { display: none; }
#auth-container #bio-login-btn { height: var(--ctl-h); border: 0; background: var(--bg-input); border-radius: var(--r-pill); }
#auth-container .lg-top { border: 0; background: var(--bg-card); border-radius: var(--r-pill); min-height: 40px; padding: 0 14px; }
#auth-container .auth-tab.active { background: var(--ac); color: var(--on-ac); box-shadow: none; }
#auth-container .auth-tabs { border: 0; background: var(--bg-input); border-radius: var(--r-pill); }
#auth-container .auth-tab { border-radius: var(--r-pill); }
#auth-container .auth-err, #auth-container .auth-ok { border-radius: var(--r-md); }
/* error / success banners reserve no space until used, and never shake */
#auth-container .auth-err[style*="block"] { animation: none; }

/* ── Desktop shell ── */
html[data-device="desktop"] .side-nav { background: var(--bg-secondary); border-right: 1px solid var(--border); }
.side-link { border-radius: var(--r-md); }
.side-link.active { background: var(--bg-card); color: var(--ac-ink); }
.side-link.active .side-link-icon { background: var(--ac) !important; color: var(--on-ac) !important; }
.side-nav-section { font-size: .68rem; letter-spacing: .1em; color: var(--text-tertiary); }

/* ── Skeletons already reserve their shape; keep rows a fixed height so the swap to real data does not nudge the page ── */
.skel { background: var(--bg-input); }
.skel-row { min-height: 66px; box-sizing: border-box; }
#recent-txns-container { min-height: 208px; }
#home-va-card:empty { display: none; }

/* ── Small screens ── */
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .qa-icon { width: 50px; height: 50px; }
  .balance-amount { font-size: 2.2rem; }
}

/* Settings / list rows: flat round icon chips, consistent 40px, aligned text */
.setting-icon { width: 40px; height: 40px; border-radius: 50%; font-size: .95rem; }
.setting-row { gap: 14px; padding: 14px 0; min-height: 64px; box-sizing: border-box; }
.setting-title { font-size: .95rem; }
.setting-sub { font-size: .78rem; }

/* A card that sits inside an already-padded wrapper must not add its own side margin again (was double-indented on Wallets & co.) */
[style*="padding:0 16px"] > .card, [style*="padding: 0 16px"] > .card, #wallets-list > .card { margin-left: 0; margin-right: 0; }

/* ── Business dashboard ── */
.dash-hero, [data-theme="light"] .dash-hero { background: transparent; border: 0; padding: 8px var(--gutter) 20px; }
.dash-hero-label { font-size: .72rem; letter-spacing: .08em; color: var(--text-tertiary); text-transform: uppercase; }
#dash-balance, .stat-val { font-family: var(--font-body) !important; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
#dash-balance { font-size: clamp(2.2rem, 10vw, 2.8rem) !important; font-weight: 700 !important; line-height: 1.1; min-height: 1.1em; }
.dash-hero-sub { min-height: 1.3em; }
.dash-hero-btn { border: 0; background: var(--bg-input); border-radius: var(--r-pill); box-shadow: none !important; }
.dash-hero-btn.primary { background: var(--ac); color: var(--on-ac); }
.stat-grid { gap: 8px; padding: 12px var(--gutter) 0; }
.stat-card { border: 0; border-radius: var(--r-lg); box-shadow: none; padding: 16px; min-height: 104px; box-sizing: border-box; }
.stat-label { font-size: .7rem; letter-spacing: .06em; }
.stat-val { font-size: 1.3rem; font-weight: 700; min-height: 1.3em; }
.icon-tile, .stat-icon, .tool-icon { background: var(--bg-input) !important; color: var(--text-primary) !important; box-shadow: none !important; border: 0 !important; border-radius: 50% !important; }
.stat-icon { width: 32px; height: 32px; }
.tool-item { border: 0; border-radius: var(--r-lg); box-shadow: none; padding: 14px 16px; margin: 0 var(--gutter) 8px; min-height: 72px; box-sizing: border-box; }
.tool-item:active { transform: none; background: var(--bg-card-hover); }
.tool-icon { width: 44px; height: 44px; font-size: 1rem; }
.tool-title { font-size: .95rem; }
.tool-desc { font-size: .78rem; }
.bar-chart { height: 112px; gap: 8px; align-items: stretch; }
.bar-group { justify-content: flex-end; gap: 6px; }
.bar { max-height: calc(100% - 22px); border-radius: 6px; min-height: 4px; }
.bar-label { height: 14px; line-height: 14px; }

/* light theme: circles sit on a tinted canvas, so they are white with a hairline (otherwise they vanish) */
[data-theme="light"] .qa-icon:not(:first-child), [data-theme="light"] .qa:not(:first-child) .qa-icon { background: var(--bg-card) !important; box-shadow: inset 0 0 0 1px var(--border) !important; }
[data-theme="light"] .qa-grid-icon, [data-theme="light"] .setting-icon, [data-theme="light"] .tool-icon, [data-theme="light"] .stat-icon, [data-theme="light"] .icon-tile { background: var(--bg-input) !important; }

/* ── POS login (same treatment as the apps' auth screens) ── */
#screen-login .lg-bg, #screen-login .lg-coins { display: none !important; }
#screen-login .login-mark { box-shadow: none; animation: none; background: var(--ac); border-radius: 18px; }
#screen-login .login-mark::after { display: none; }
#screen-login .lg-h em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ac-ink); }
#screen-login .login-logo, #screen-login .lg-h, #screen-login .lg-lead, #screen-login form > *, #screen-login .input-group { animation: none !important; }
#screen-login .input-f, #screen-login input { border-color: transparent; background-color: var(--bg-input); border-radius: var(--r-md); min-height: var(--ctl-h); }
#screen-login .input-f:focus, #screen-login input:focus { border-color: var(--ac); box-shadow: none; }

/* ── Sign-up flow (mascot stays; blobs, floating coins, gradient text and gloss go) ── */
#mrp-signup .bg, #mrp-signup .coins { display: none !important; }
#mrp-signup h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ac-ink); }
#mrp-signup .cta, #mrp-signup .cta.grad { background: var(--ac); color: var(--on-ac); box-shadow: none; border-radius: var(--r-pill); }
#mrp-signup .su-prog span::after { background: var(--ac); }
#mrp-signup .inp { border-radius: var(--r-md); }
#mrp-signup .foot { background: var(--bg); }

/* ── Select fields: the old `background:` shorthand reset background-repeat, so the chevron tiled across the field
      as "wavy lines" (obvious on the light theme). Colour-only backgrounds + an explicit, non-repeating chevron. ── */
select.input-f, select.inp, .input-f select {
  -webkit-appearance: none; appearance: none; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px 8px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  padding-right: 44px; text-overflow: ellipsis; }
[data-theme="light"] select.input-f, [data-theme="light"] select.inp, [data-theme="light"] .input-f select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111128' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
select option { background: var(--bg-secondary); color: var(--text-primary); }

/* ── Transaction icons: soft tinted discs instead of 3-D gel tiles (money in = green, out = neutral, other = accent) ── */
.txn-icon, .tx-icon { width: 40px; height: 40px; border-radius: 50%; font-size: .85rem; box-shadow: none !important; border: 0;
  background: color-mix(in srgb, var(--ac) 14%, transparent) !important; color: var(--ac-ink) !important; }
.txn-icon.in  { background: color-mix(in srgb, var(--green, #00d4aa) 15%, transparent) !important; color: var(--green, #00b894) !important; }
.txn-icon.out { background: var(--bg-input) !important; color: var(--text-secondary) !important; }
[data-theme="light"] .txn-icon.in { color: #0a8a6d !important; }
.tx-icon[data-tile] { background: var(--bg-input) !important; color: var(--text-primary) !important; }
.txn-item { gap: 12px; align-items: center; }

/* ── Settings: grouped cards, quiet labels, Log out on its own at the very bottom ── */
.set-group-label { padding: 18px calc(var(--gutter) + 4px) 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.set-card { padding: 0 16px !important; margin-bottom: 0; overflow: hidden; }
.set-card .setting-row:last-child { border-bottom: 0 !important; }
.set-card .setting-row { padding: 12px 0; }
.set-card-danger .setting-title { color: var(--red) !important; font-weight: 600; }
.set-card-danger .setting-icon { background: color-mix(in srgb, var(--red) 14%, transparent) !important; color: var(--red) !important; }
.setting-row > .fa-chevron-right, .setting-row > i:last-child { color: var(--text-tertiary); font-size: .75rem; }

/* ── No slide-up on every list render (mrp-fx.js re-animated each row on each refresh = visible jumping). Screens fade only. ── */
@keyframes crispFade { from { opacity: 0 } to { opacity: 1 } }
.txn-day, .txn-item, .setting-row, .tool-item { animation: none !important; }
.screen.active { animation: crispFade .16s ease-out both !important; }

/* inline-styled gradient avatar tiles (profile headers) -> flat accent */
div[style*="linear-gradient(135deg"][style*="border-radius:20px"] { background: var(--ac) !important; color: var(--on-ac) !important; box-shadow: none !important; }
