html[data-theme="dark-gold"]{
  --bg1:#0a0a0c;--bg2:#111114;--panel:rgba(20,20,22,.94);--panel-2:rgba(27,27,31,.96);
  --border:rgba(212,175,55,.18);--border-strong:rgba(212,175,55,.34);--border-soft:rgba(255,244,209,.07);
  --text:#f8f3e8;--muted:#b9ae90;--muted2:#8f846b;--accent:#d4af37;--accent-2:#f0d889;
  --danger:#ff8d96;--warn:#f0c76a;--ok:#64d2b0;--blue:#8fb8ff;--trx:#d8b86a;--usdt:#f3e3b2;--trx-badge:#d8b86a;
  --in-bg:rgba(100,210,176,.10);--in-border:rgba(100,210,176,.30);--in-text:#7ee1c2;
  --internal-bg:rgba(212,175,55,.11);--internal-border:rgba(212,175,55,.30);--internal-text:#e4c66f;
  --out-bg:rgba(255,141,150,.10);--out-border:rgba(255,141,150,.30);--out-text:#ff9aa2;
  --gold-text:#f0d889;--cream:#f7e9bd;--line:rgba(255,244,209,.07);--gold:rgba(212,175,55,.26);--gold-soft:rgba(212,175,55,.10);
  --theme-body-glow-a:rgba(212,175,55,.10);--theme-body-glow-b:rgba(212,175,55,.06);
  --theme-panel-bg:linear-gradient(180deg,rgba(24,24,27,.96),rgba(16,16,18,.98));
  --theme-header-bg:linear-gradient(180deg,rgba(32,32,36,.98),rgba(22,22,25,.96));
  --theme-surface-bg:linear-gradient(180deg,rgba(25,25,29,.96),rgba(16,16,19,.98));
}

html[data-theme="dark-emerald"]{
  --bg1:#06110f;--bg2:#0d1b18;--panel:rgba(14,28,25,.94);--panel-2:rgba(18,36,32,.96);
  --border:rgba(90,205,168,.22);--border-strong:rgba(90,205,168,.38);--border-soft:rgba(213,255,240,.09);
  --text:#effaf4;--muted:#abc8bd;--muted2:#7f9c92;--accent:#42c99a;--accent-2:#a6efd0;
  --danger:#ff7e91;--warn:#e5c76d;--ok:#6ee2b5;--blue:#8fc7ff;--trx:#80d6bf;--usdt:#d8fff0;--trx-badge:#7bd2b8;
  --in-bg:rgba(72,213,160,.13);--in-border:rgba(72,213,160,.35);--in-text:#8cf0c5;
  --internal-bg:rgba(229,199,109,.12);--internal-border:rgba(229,199,109,.30);--internal-text:#f2d884;
  --out-bg:rgba(255,126,145,.11);--out-border:rgba(255,126,145,.30);--out-text:#ff9dae;
  --gold-text:#a6efd0;--cream:#d8fff0;--line:rgba(213,255,240,.08);--gold:rgba(90,205,168,.28);--gold-soft:rgba(90,205,168,.11);
  --theme-body-glow-a:rgba(72,213,160,.12);--theme-body-glow-b:rgba(99,173,255,.06);
  --theme-panel-bg:linear-gradient(180deg,rgba(13,31,27,.97),rgba(6,17,15,.99));
  --theme-header-bg:linear-gradient(180deg,rgba(18,43,38,.98),rgba(9,25,22,.97));
  --theme-surface-bg:linear-gradient(180deg,rgba(15,35,31,.96),rgba(8,21,19,.98));
}

html[data-theme="dark-ruby"]{
  --bg1:#15090d;--bg2:#211016;--panel:rgba(33,18,23,.94);--panel-2:rgba(45,23,30,.96);
  --border:rgba(255,135,157,.22);--border-strong:rgba(255,135,157,.40);--border-soft:rgba(255,226,232,.08);
  --text:#fff4f6;--muted:#d5aeb8;--muted2:#a8808a;--accent:#ff6f95;--accent-2:#ffc2d2;
  --danger:#ff9aa8;--warn:#f0ca72;--ok:#74d8b6;--blue:#a7c6ff;--trx:#f0b0c0;--usdt:#ffe1e8;--trx-badge:#f0a8bb;
  --in-bg:rgba(116,216,182,.12);--in-border:rgba(116,216,182,.32);--in-text:#9bf0d3;
  --internal-bg:rgba(240,202,114,.13);--internal-border:rgba(240,202,114,.32);--internal-text:#f6d986;
  --out-bg:rgba(255,111,149,.13);--out-border:rgba(255,111,149,.34);--out-text:#ffadc0;
  --gold-text:#ffc2d2;--cream:#ffe1e8;--line:rgba(255,226,232,.08);--gold:rgba(255,135,157,.28);--gold-soft:rgba(255,135,157,.11);
  --theme-body-glow-a:rgba(255,111,149,.12);--theme-body-glow-b:rgba(240,202,114,.05);
  --theme-panel-bg:linear-gradient(180deg,rgba(39,20,27,.97),rgba(20,8,13,.99));
  --theme-header-bg:linear-gradient(180deg,rgba(52,25,34,.98),rgba(30,12,18,.97));
  --theme-surface-bg:linear-gradient(180deg,rgba(42,21,28,.96),rgba(23,10,15,.98));
}

html[data-theme="dark-ocean"]{
  --bg1:#07111f;--bg2:#0c1b2d;--panel:rgba(14,29,47,.94);--panel-2:rgba(18,39,62,.96);
  --border:rgba(111,174,255,.24);--border-strong:rgba(111,174,255,.40);--border-soft:rgba(223,239,255,.08);
  --text:#f0f7ff;--muted:#aebfd3;--muted2:#8195ad;--accent:#6faeff;--accent-2:#b7d7ff;
  --danger:#ff8d96;--warn:#f0c76a;--ok:#66d6bd;--blue:#8fb8ff;--trx:#9bc8ff;--usdt:#dbeeff;--trx-badge:#9bc8ff;
  --in-bg:rgba(102,214,189,.12);--in-border:rgba(102,214,189,.32);--in-text:#8debd6;
  --internal-bg:rgba(240,199,106,.12);--internal-border:rgba(240,199,106,.30);--internal-text:#f2d480;
  --out-bg:rgba(255,141,150,.11);--out-border:rgba(255,141,150,.30);--out-text:#ffabb2;
  --gold-text:#b7d7ff;--cream:#dbeeff;--line:rgba(223,239,255,.08);--gold:rgba(111,174,255,.28);--gold-soft:rgba(111,174,255,.11);
  --theme-body-glow-a:rgba(111,174,255,.12);--theme-body-glow-b:rgba(102,214,189,.06);
  --theme-panel-bg:linear-gradient(180deg,rgba(13,31,52,.97),rgba(6,15,27,.99));
  --theme-header-bg:linear-gradient(180deg,rgba(20,45,73,.98),rgba(10,26,45,.97));
  --theme-surface-bg:linear-gradient(180deg,rgba(15,35,58,.96),rgba(8,20,34,.98));
}

html[data-theme="light-gold"]{
  --bg1:#f5f0e4;--bg2:#fffaf0;--panel:rgba(255,255,252,.94);--panel-2:rgba(255,252,245,.96);
  --border:rgba(166,125,34,.24);--border-strong:rgba(166,125,34,.42);--border-soft:rgba(99,73,20,.10);
  --text:#241f17;--muted:#6e6047;--muted2:#8b7a5c;--accent:#b99022;--accent-2:#e5c868;
  --danger:#b94350;--warn:#ae7c16;--ok:#258a66;--blue:#286ebd;--trx:#9f771e;--usdt:#5f4712;--trx-badge:#9f771e;
  --in-bg:rgba(37,138,102,.10);--in-border:rgba(37,138,102,.30);--in-text:#176e50;
  --internal-bg:rgba(185,144,34,.12);--internal-border:rgba(185,144,34,.35);--internal-text:#806115;
  --out-bg:rgba(185,67,80,.10);--out-border:rgba(185,67,80,.30);--out-text:#a23844;
  --gold-text:#876414;--cream:#3b2b0c;--line:rgba(99,73,20,.10);--gold:rgba(166,125,34,.26);--gold-soft:rgba(166,125,34,.10);
  --theme-body-glow-a:rgba(185,144,34,.14);--theme-body-glow-b:rgba(37,138,102,.06);
  --theme-panel-bg:linear-gradient(180deg,rgba(255,255,252,.96),rgba(247,241,226,.98));
  --theme-header-bg:linear-gradient(180deg,rgba(255,252,243,.98),rgba(245,236,214,.96));
  --theme-surface-bg:linear-gradient(180deg,rgba(255,255,252,.96),rgba(247,241,226,.98));
}

html[data-theme="light-mint"]{
  --bg1:#eef7f3;--bg2:#fbfffd;--panel:rgba(252,255,253,.95);--panel-2:rgba(242,251,247,.96);
  --border:rgba(48,139,109,.22);--border-strong:rgba(48,139,109,.40);--border-soft:rgba(24,73,58,.10);
  --text:#14231e;--muted:#557166;--muted2:#718b81;--accent:#2d9b74;--accent-2:#8fd8bd;
  --danger:#b3495b;--warn:#a97813;--ok:#248d67;--blue:#246caa;--trx:#2d8c72;--usdt:#155d47;--trx-badge:#2d8c72;
  --in-bg:rgba(36,141,103,.11);--in-border:rgba(36,141,103,.32);--in-text:#176e50;
  --internal-bg:rgba(169,120,19,.11);--internal-border:rgba(169,120,19,.30);--internal-text:#7a5a11;
  --out-bg:rgba(179,73,91,.10);--out-border:rgba(179,73,91,.30);--out-text:#9c3448;
  --gold-text:#2d8c72;--cream:#155d47;--line:rgba(24,73,58,.10);--gold:rgba(48,139,109,.26);--gold-soft:rgba(48,139,109,.10);
  --theme-body-glow-a:rgba(45,155,116,.13);--theme-body-glow-b:rgba(36,108,170,.06);
  --theme-panel-bg:linear-gradient(180deg,rgba(252,255,253,.97),rgba(235,248,242,.98));
  --theme-header-bg:linear-gradient(180deg,rgba(247,255,251,.98),rgba(228,244,237,.96));
  --theme-surface-bg:linear-gradient(180deg,rgba(252,255,253,.96),rgba(235,248,242,.98));
}

html[data-theme="light-rose"]{
  --bg1:#fff1f4;--bg2:#fffafd;--panel:rgba(255,253,253,.95);--panel-2:rgba(255,244,247,.96);
  --border:rgba(194,85,110,.22);--border-strong:rgba(194,85,110,.40);--border-soft:rgba(88,34,48,.10);
  --text:#2a171d;--muted:#76545e;--muted2:#946b76;--accent:#c65478;--accent-2:#f3a8bd;
  --danger:#b94350;--warn:#a97813;--ok:#238a67;--blue:#2f70b5;--trx:#bd617e;--usdt:#7d3048;--trx-badge:#bd617e;
  --in-bg:rgba(35,138,103,.10);--in-border:rgba(35,138,103,.30);--in-text:#177252;
  --internal-bg:rgba(169,120,19,.10);--internal-border:rgba(169,120,19,.30);--internal-text:#7b5b11;
  --out-bg:rgba(198,84,120,.12);--out-border:rgba(198,84,120,.34);--out-text:#a9365e;
  --gold-text:#a9365e;--cream:#7d3048;--line:rgba(88,34,48,.10);--gold:rgba(194,85,110,.26);--gold-soft:rgba(194,85,110,.10);
  --theme-body-glow-a:rgba(198,84,120,.13);--theme-body-glow-b:rgba(35,138,103,.05);
  --theme-panel-bg:linear-gradient(180deg,rgba(255,253,253,.97),rgba(255,238,243,.98));
  --theme-header-bg:linear-gradient(180deg,rgba(255,250,252,.98),rgba(251,229,236,.96));
  --theme-surface-bg:linear-gradient(180deg,rgba(255,253,253,.96),rgba(255,238,243,.98));
}

html[data-theme="light-sky"]{
  --bg1:#eef5ff;--bg2:#fbfdff;--panel:rgba(253,254,255,.95);--panel-2:rgba(241,247,255,.96);
  --border:rgba(55,114,190,.23);--border-strong:rgba(55,114,190,.42);--border-soft:rgba(22,53,91,.10);
  --text:#142033;--muted:#566b86;--muted2:#73869f;--accent:#3b7dcc;--accent-2:#9cc7ff;
  --danger:#b94350;--warn:#a97813;--ok:#248a72;--blue:#286ebd;--trx:#3b7dcc;--usdt:#1f548f;--trx-badge:#3b7dcc;
  --in-bg:rgba(36,138,114,.10);--in-border:rgba(36,138,114,.30);--in-text:#17735e;
  --internal-bg:rgba(169,120,19,.10);--internal-border:rgba(169,120,19,.30);--internal-text:#7b5b11;
  --out-bg:rgba(185,67,80,.10);--out-border:rgba(185,67,80,.30);--out-text:#a23844;
  --gold-text:#286ebd;--cream:#1f548f;--line:rgba(22,53,91,.10);--gold:rgba(55,114,190,.27);--gold-soft:rgba(55,114,190,.10);
  --theme-body-glow-a:rgba(59,125,204,.13);--theme-body-glow-b:rgba(36,138,114,.05);
  --theme-panel-bg:linear-gradient(180deg,rgba(253,254,255,.97),rgba(235,243,255,.98));
  --theme-header-bg:linear-gradient(180deg,rgba(250,253,255,.98),rgba(226,238,255,.96));
  --theme-surface-bg:linear-gradient(180deg,rgba(253,254,255,.96),rgba(235,243,255,.98));
}

html[data-theme] body{
  color:var(--text)!important;
  background:
    radial-gradient(circle at top right,var(--theme-body-glow-a),transparent 28%),
    radial-gradient(circle at bottom left,var(--theme-body-glow-b),transparent 30%),
    linear-gradient(180deg,var(--bg2) 0%,var(--bg1) 100%)!important;
}

html[data-theme] body::before{
  background:
    radial-gradient(circle at 15% 20%,var(--theme-body-glow-b),transparent 22%),
    radial-gradient(circle at 85% 10%,var(--theme-body-glow-a),transparent 24%)!important;
}

html[data-theme] .panel,
html[data-theme] .scan-card{
  background:var(--theme-panel-bg)!important;
  border-color:var(--border)!important;
  box-shadow:var(--shadow)!important;
}

html[data-theme] .header,
html[data-theme] .scan-head{
  background:var(--theme-header-bg)!important;
  border-color:var(--border)!important;
}

html[data-theme] .stat-card,
html[data-theme] .wallet-card,
html[data-theme] .table-card,
html[data-theme] .total-card,
html[data-theme] .tx-card,
html[data-theme] .card,
html[data-theme] .modal,
html[data-theme] .login-card,
html[data-theme] .empty,
html[data-theme] .empty-state,
html[data-theme] .error-state,
html[data-theme] .loading-state-card,
html[data-theme] .filter-bar,
html[data-theme] .scan-card,
html[data-theme] .status-card,
html[data-theme] .info-box,
html[data-theme] .info-card,
html[data-theme] .section-card,
html[data-theme] .address-box,
html[data-theme] .event-row,
html[data-theme] .notice{
  background:var(--theme-surface-bg)!important;
  border-color:var(--border)!important;
}

html[data-theme] .tx-card.incoming{
  background:linear-gradient(180deg,var(--in-bg),var(--panel-2))!important;
  border-color:var(--in-border)!important;
}

html[data-theme] .tx-card.internal{
  background:linear-gradient(180deg,var(--internal-bg),var(--panel-2))!important;
  border-color:var(--internal-border)!important;
}

html[data-theme] .tx-card.outgoing{
  background:linear-gradient(180deg,var(--out-bg),var(--panel-2))!important;
  border-color:var(--out-border)!important;
}

html[data-theme] .total-card.has-wallet-risk,
html[data-theme] .total-card.has-health-warning,
html[data-theme] .total-card.has-health-danger{
  color:#fff!important;
  background:
    radial-gradient(circle at 18% 6%,rgba(255,255,255,.22),transparent 24%),
    radial-gradient(circle at 82% 0%,rgba(255,120,70,.28),transparent 30%),
    linear-gradient(135deg,#ff2849 0%,#cf0b26 38%,#7a0015 72%,#310007 100%)!important;
  border-color:#ff3350!important;
  box-shadow:
    0 24px 54px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -18px 36px rgba(40,0,8,.34),
    0 0 0 2px rgba(255,75,95,.55),
    0 0 34px rgba(255,30,58,.55)!important;
  overflow:hidden!important;
}

html[data-theme] .total-card.has-wallet-risk::before,
html[data-theme] .total-card.has-health-warning::before,
html[data-theme] .total-card.has-health-danger::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  z-index:0!important;
  background:
    repeating-linear-gradient(-35deg,rgba(255,255,255,.13) 0 12px,rgba(255,255,255,0) 12px 26px),
    linear-gradient(90deg,rgba(255,255,255,.16),transparent 34%,rgba(0,0,0,.16))!important;
  mix-blend-mode:screen!important;
  opacity:.58!important;
}

html[data-theme] .total-card.has-wallet-risk::after,
html[data-theme] .total-card.has-health-warning::after,
html[data-theme] .total-card.has-health-danger::after{
  content:none!important;
}

html[data-theme] .total-card.has-wallet-risk > *,
html[data-theme] .total-card.has-health-warning > *,
html[data-theme] .total-card.has-health-danger > *{
  position:relative!important;
  z-index:1!important;
}

html[data-theme] .total-card.has-wallet-risk .health-dominant-alert,
html[data-theme] .total-card.has-health-warning .health-dominant-alert,
html[data-theme] .total-card.has-health-danger .health-dominant-alert{
  color:#fff!important;
  text-shadow:0 2px 0 rgba(70,0,10,.36),0 0 18px rgba(255,255,255,.28)!important;
}

html[data-theme] .total-card.has-wallet-risk .total-value,
html[data-theme] .total-card.has-wallet-risk .total-value-sm,
html[data-theme] .total-card.has-wallet-risk .amount-dollar,
html[data-theme] .total-card.has-health-warning .total-value,
html[data-theme] .total-card.has-health-warning .total-value-sm,
html[data-theme] .total-card.has-health-warning .amount-dollar,
html[data-theme] .total-card.has-health-danger .total-value,
html[data-theme] .total-card.has-health-danger .total-value-sm,
html[data-theme] .total-card.has-health-danger .amount-dollar{
  color:#fff8d7!important;
  text-shadow:0 2px 0 rgba(70,0,10,.34),0 0 20px rgba(255,255,255,.34)!important;
}

html[data-theme] .total-card.has-wallet-risk .total-label,
html[data-theme] .total-card.has-wallet-risk .total-label-sm,
html[data-theme] .total-card.has-health-warning .total-label,
html[data-theme] .total-card.has-health-warning .total-label-sm,
html[data-theme] .total-card.has-health-danger .total-label,
html[data-theme] .total-card.has-health-danger .total-label-sm{
  color:#fff6c8!important;
}

html[data-theme] .total-card.has-wallet-risk .expand-hint,
html[data-theme] .total-card.has-health-warning .expand-hint,
html[data-theme] .total-card.has-health-danger .expand-hint{
  color:#ffe9b0!important;
  border-top-color:rgba(255,255,255,.24)!important;
}

html[data-theme] .total-card.has-wallet-risk .expand-chevron,
html[data-theme] .total-card.has-health-warning .expand-chevron,
html[data-theme] .total-card.has-health-danger .expand-chevron{
  fill:#ffe9b0!important;
}

html[data-theme] .total-card.has-wallet-risk .health-corner-chip,
html[data-theme] .total-card.has-health-warning .health-corner-chip,
html[data-theme] .total-card.has-health-danger .health-corner-chip{
  top:12px!important;
  left:12px!important;
  right:auto!important;
  max-width:min(72%,360px)!important;
  color:#fff!important;
  background:rgba(80,0,10,.62)!important;
  border-color:rgba(255,255,255,.36)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.25)!important;
}

html[data-theme] .primary,
html[data-theme] .refresh-btn,
html[data-theme] .tx-btn{
  color:#101214!important;
  background:linear-gradient(180deg,var(--accent-2) 0%,var(--accent) 68%,var(--accent) 100%)!important;
  border-color:var(--border-strong)!important;
}

html[data-theme] .secondary,
html[data-theme] .checker-btn,
html[data-theme] .link.secondary,
html[data-theme] .sub-btn{
  color:var(--text)!important;
  background:linear-gradient(180deg,var(--panel),var(--panel-2))!important;
  border-color:var(--border)!important;
}

html[data-theme] .input,
html[data-theme] .select,
html[data-theme] .textarea,
html[data-theme] input,
html[data-theme] textarea{
  color:var(--text)!important;
  border-color:var(--border-soft)!important;
  background:var(--panel-2)!important;
}

html[data-theme^="light"] .status-line,
html[data-theme^="light"] .sub,
html[data-theme^="light"] .stat-sub,
html[data-theme^="light"] .tx-when{
  color:var(--muted)!important;
}

html[data-theme] .page-title,
html[data-theme] .transactions-title,
html[data-theme] .card-title,
html[data-theme] .table-title,
html[data-theme] .section-title,
html[data-theme] .scan-title{
  color:var(--text)!important;
}

html[data-theme] .status-prefix,
html[data-theme] .status-line,
html[data-theme] .total-label-sm,
html[data-theme] .expand-hint,
html[data-theme] .inline-bal-label,
html[data-theme] .info-label,
html[data-theme] .meta{
  color:var(--muted)!important;
}

html[data-theme] .status-date,
html[data-theme] .status-time,
html[data-theme] .inline-wallet-name,
html[data-theme] .inline-bal-value,
html[data-theme] .tx-meta-line strong{
  color:var(--text)!important;
}

html[data-theme] .total-label,
html[data-theme] .loading-text,
html[data-theme] .tx-update-card strong{
  color:var(--gold-text)!important;
}

html[data-theme] .total-value.usdt,
html[data-theme] .inline-bal-box.usdt .inline-bal-value{
  color:var(--usdt)!important;
}

html[data-theme] .total-value.trx,
html[data-theme] .total-value-sm.trx,
html[data-theme] .inline-bal-box.trx .inline-bal-value{
  color:var(--trx)!important;
}

html[data-theme] .health-corner-chip.safe,
html[data-theme] .wallet-status-badge.safe,
html[data-theme] .tx-health-badge.safe{
  color:var(--in-text)!important;
  background:var(--in-bg)!important;
  border-color:var(--in-border)!important;
}

html[data-theme] .health-corner-chip.warning,
html[data-theme] .wallet-status-badge.warning,
html[data-theme] .tx-health-badge.warning{
  color:var(--internal-text)!important;
  background:var(--internal-bg)!important;
  border-color:var(--internal-border)!important;
}

html[data-theme] .health-corner-chip.danger,
html[data-theme] .wallet-status-badge.danger,
html[data-theme] .tx-health-badge.danger{
  color:var(--out-text)!important;
  background:var(--out-bg)!important;
  border-color:var(--out-border)!important;
}

html[data-theme] .tx-type.incoming,
html[data-theme] .filter-btn.incoming{
  color:var(--in-text)!important;
  background:var(--in-bg)!important;
  border-color:var(--in-border)!important;
}

html[data-theme] .tx-type.internal,
html[data-theme] .filter-btn.internal{
  color:var(--internal-text)!important;
  background:var(--internal-bg)!important;
  border-color:var(--internal-border)!important;
}

html[data-theme] .tx-type.outgoing,
html[data-theme] .filter-btn.outgoing{
  color:var(--out-text)!important;
  background:var(--out-bg)!important;
  border-color:var(--out-border)!important;
}

html[data-theme] .filter-btn:not(.active){
  color:var(--muted)!important;
  background:var(--panel-2)!important;
  border-color:var(--border-soft)!important;
}

html[data-theme] .tx-card.has-health-alert .tx-health-badge.warning,
html[data-theme] .tx-card.has-health-alert .tx-health-badge.danger{
  color:#fff2ff!important;
  border-color:rgba(255,61,127,.58)!important;
  background:linear-gradient(135deg,rgba(177,116,255,.26),rgba(255,61,127,.26))!important;
}

html[data-theme] .inline-wallet,
html[data-theme] .inline-bal-box,
html[data-theme] .total-trx-block,
html[data-theme] .tx-notes-box,
html[data-theme] .tx-note-item,
html[data-theme] .password-modal,
html[data-theme] .table-wrap,
html[data-theme] .readonly-panel,
html[data-theme] .admin-strip,
html[data-theme] .check-row,
html[data-theme] .batch-block,
html[data-theme] .user-row{
  background:var(--theme-surface-bg)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}

html[data-theme] .tx-notes-head,
html[data-theme] .tx-note-meta,
html[data-theme] .tx-note-text,
html[data-theme] .password-modal h3,
html[data-theme] .batch-title,
html[data-theme] .readonly-label,
html[data-theme] .readonly-value,
html[data-theme] th,
html[data-theme] td{
  color:var(--text)!important;
}

html[data-theme] .tx-note-meta,
html[data-theme] .date-label,
html[data-theme] .date-placeholder,
html[data-theme] .readonly-label,
html[data-theme] .batch-sub{
  color:var(--muted)!important;
}

html[data-theme] .tx-note-badge,
html[data-theme] .filter-btn.active.notes,
html[data-theme] .tab-btn.active,
html[data-theme] .period-btn.active{
  color:var(--gold-text)!important;
  background:var(--gold-soft)!important;
  border-color:var(--border-strong)!important;
}

html[data-theme] .period-btn,
html[data-theme] .tab-btn,
html[data-theme] .date-field,
html[data-theme] .tx-note-input,
html[data-theme] .password-modal input,
html[data-theme] .tx-note-small-btn,
html[data-theme] .mini-flag,
html[data-theme] .badge{
  color:var(--text)!important;
  background:var(--panel-2)!important;
  border-color:var(--border)!important;
}

html[data-theme] th{
  background:var(--panel-2)!important;
}

html[data-theme] .risk-strip{
  background:var(--theme-surface-bg)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}

html[data-theme] .risk-strip.safe,
html[data-theme] .risk-badge.safe{
  color:var(--in-text)!important;
  background:var(--in-bg)!important;
  border-color:var(--in-border)!important;
}

html[data-theme] .risk-strip.warning,
html[data-theme] .risk-badge.warning{
  color:var(--internal-text)!important;
  background:var(--internal-bg)!important;
  border-color:var(--internal-border)!important;
}

html[data-theme] .risk-strip.danger,
html[data-theme] .risk-badge.danger{
  color:var(--out-text)!important;
  background:var(--out-bg)!important;
  border-color:var(--out-border)!important;
}

html[data-theme] .risk-badge.unknown{
  color:var(--muted)!important;
  background:var(--panel-2)!important;
  border-color:var(--border-soft)!important;
}

html[data-theme] .badge.incoming,
html[data-theme] .badge.private,
html[data-theme] .badge.active{
  color:var(--in-text)!important;
  background:var(--in-bg)!important;
  border-color:var(--in-border)!important;
}

html[data-theme] .badge.outgoing,
html[data-theme] .badge.disabled,
html[data-theme] .badge.deleted{
  color:var(--out-text)!important;
  background:var(--out-bg)!important;
  border-color:var(--out-border)!important;
}

html[data-theme] .badge.public,
html[data-theme] .badge.reserve,
html[data-theme] .badge.internal{
  color:var(--internal-text)!important;
  background:var(--internal-bg)!important;
  border-color:var(--internal-border)!important;
}

html[data-theme] .badge.archived{
  color:var(--blue)!important;
  background:rgba(55,114,190,.10)!important;
  border-color:rgba(55,114,190,.28)!important;
}

html[data-theme^="light"]{
  color-scheme:light;
}

html[data-theme^="light"] .date-field,
html[data-theme^="light"] input,
html[data-theme^="light"] textarea,
html[data-theme^="light"] select{
  color-scheme:light;
}

html[data-theme^="light"] .total-card.has-wallet-risk,
html[data-theme^="light"] .total-card.has-health-warning,
html[data-theme^="light"] .total-card.has-health-danger{
  color:#fff!important;
  background:
    radial-gradient(circle at 18% 6%,rgba(255,255,255,.26),transparent 24%),
    radial-gradient(circle at 82% 0%,rgba(255,140,76,.30),transparent 30%),
    linear-gradient(135deg,#ff334f 0%,#d30b28 38%,#850017 72%,#3a0009 100%)!important;
  border-color:#ff2948!important;
}

html[data-theme^="light"] .total-card.has-wallet-risk .health-dominant-alert,
html[data-theme^="light"] .total-card.has-health-warning .health-dominant-alert,
html[data-theme^="light"] .total-card.has-health-danger .health-dominant-alert,
html[data-theme^="light"] .total-card.has-wallet-risk .total-label,
html[data-theme^="light"] .total-card.has-wallet-risk .total-label-sm,
html[data-theme^="light"] .total-card.has-health-warning .total-label,
html[data-theme^="light"] .total-card.has-health-warning .total-label-sm,
html[data-theme^="light"] .total-card.has-health-danger .total-label,
html[data-theme^="light"] .total-card.has-health-danger .total-label-sm,
html[data-theme^="light"] .total-card.has-wallet-risk .total-value,
html[data-theme^="light"] .total-card.has-wallet-risk .total-value-sm,
html[data-theme^="light"] .total-card.has-health-warning .total-value,
html[data-theme^="light"] .total-card.has-health-warning .total-value-sm,
html[data-theme^="light"] .total-card.has-health-danger .total-value,
html[data-theme^="light"] .total-card.has-health-danger .total-value-sm{
  color:#fff7f8!important;
  text-shadow:0 1px 0 rgba(0,0,0,.18),0 0 18px rgba(255,210,218,.28)!important;
}
