/* ==========================================================================
   Norhart "clean" layer (v78). Loaded LAST on every page.
   Visual only: calm neutral surfaces, 1px borders, one accent colour, no glow,
   no gradient text, quiet strips. Change the accent in ONE place: --nh-accent*.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root{
  /* accent (light) — refined Norhart blue */
  --nh-accent:#1D5BD6;        /* links, active nav, key highlights */
  --nh-accent-fill:#1D5BD6;   /* primary button background */
  --nh-accent-hover:#174BB4;
  --nh-accent-soft:rgba(29,91,214,.08);
  --nh-accent-line:rgba(29,91,214,.32);
  --nh-on-accent:#FFFFFF;
  /* neutrals (light) */
  --c-bg:#F6F7F9; --c-surface:#FFFFFF; --c-surface-2:#F2F4F7; --c-surface-3:#EAECF0;
  --c-border:#E4E7EC; --c-border-strong:#D0D5DD;
  --c-text:#101828; --c-text-2:#344054; --c-muted:#667085; --c-faint:#98A2B3;
  --c-up:#067647; --c-down:#B42318;
  /* spacing + shape */
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:32px; --sp-5:40px;
  --r-sm:8px; --r-md:12px; --r-lg:14px;
  --c-shadow:0 1px 2px rgba(16,24,40,.04);
  --c-shadow-pop:0 12px 32px -12px rgba(16,24,40,.18);
}
html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]), html:root[data-alive="trading"]:not([data-mode="light"]){
  --nh-accent:#7AA2F7;
  --nh-accent-fill:#2F63D6;
  --nh-accent-hover:#3A6FE0;
  --nh-accent-soft:rgba(122,162,247,.10);
  --nh-accent-line:rgba(122,162,247,.38);
  --nh-on-accent:#FFFFFF;
  --c-bg:#0F1012; --c-surface:#17191C; --c-surface-2:#1D1F23; --c-surface-3:#24272C;
  --c-border:#2A2D32; --c-border-strong:#383C42;
  --c-text:#ECEEF1; --c-text-2:#C5C9CF; --c-muted:#8E949C; --c-faint:#6B7079;
  --c-up:#34C38F; --c-down:#F0616D;
  --c-shadow:none;
  --c-shadow-pop:0 16px 40px -12px rgba(0,0,0,.6);
}

/* ---------- map the older layers' variables onto the tokens ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]){
  --primary:var(--nh-accent-fill); --primary-deep:var(--c-text);
  --bg:var(--c-bg); --card:var(--c-surface); --ink:var(--c-text); --muted:var(--c-muted);
  --line:var(--c-border); --line-strong:var(--c-border-strong);
  --positive:var(--c-up); --danger:var(--c-down); --shadow:var(--c-shadow);
  --bg-soft:var(--c-bg); --ink-2:var(--c-text-2); --surface:var(--c-surface); --border:var(--c-border);
  --al-bg:var(--c-bg); --al-bg2:var(--c-bg); --al-card:var(--c-surface); --al-patch:var(--c-surface-2);
  --al-edge:var(--c-border); --al-edge-hi:var(--c-border-strong);
  --al-shadow:var(--c-shadow); --al-shadow-hi:var(--c-shadow);
  --al-blue:var(--nh-accent);
  --al-run:linear-gradient(90deg,transparent,var(--nh-accent-line),transparent);
  --al-strip-a:.5;
  --blue:var(--nh-accent-fill); --shadow-lg:var(--c-shadow); --shadow-md:var(--c-shadow);
  background:var(--c-bg)!important;
}
html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]){
  --nh-bg:var(--c-bg); --nh-bg2:var(--c-bg); --nh-card:var(--c-surface); --nh-card2:var(--c-surface-2);
  --nh-patch:var(--c-surface-2); --nh-patch2:var(--c-surface-3);
  --nh-line:var(--c-border); --nh-line2:var(--c-border-strong);
  --nh-ink:var(--c-text); --nh-ink2:var(--c-text-2); --nh-mute:var(--c-muted);
  --nh-blue:var(--nh-accent-fill); --nh-blue-l:var(--nh-accent); --nh-blue-ll:var(--nh-accent);
  --nh-glow:transparent; --nh-green:var(--c-up); --nh-red:var(--c-down);
  --bg-warm:var(--c-surface-2); --line-soft:var(--c-border); --line-warm:var(--c-border-strong); --muted-soft:var(--c-muted); --whisper:var(--c-faint);
  --primary-deep:var(--c-text);
}

/* ---------- page atmosphere off: plain background, no glow frame ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode])::before{background:none!important;animation:none!important;display:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode])::after{box-shadow:none!important;animation:none!important;display:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) body{background:var(--c-bg)!important;color:var(--c-text)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-orb,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-orbs,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .grid-bg,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .watermark{display:none!important}

/* ---------- light strips: one hairline at the top, slowed right down, no glow ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) body::before{height:1px!important;box-shadow:none!important;opacity:.55!important;
  background:linear-gradient(90deg,transparent,var(--nh-accent-line),transparent) -45% 0/38% 100% no-repeat!important;
  animation-duration:48s!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) body::after{display:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) nav.site-nav::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) header.auth-header::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .mobile-header::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) nav.nav::after,
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .auth-card::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .widget::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-stats>.glass::after,
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #view-dashboard .balance-grid>.glass::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) main>.grid>.glass:first-child::after,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar::after{display:none!important}

/* ---------- type: hierarchy by size / weight / contrast ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h1,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h2,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h3,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h4{color:var(--c-text)!important;letter-spacing:-.02em}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-white,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-50,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-100{color:var(--c-text)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-200,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-300{color:var(--c-text-2)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gray-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gray-500{color:var(--c-muted)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-slate-600{color:var(--c-faint)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-brand-300,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-brand-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-brand-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-blue-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-blue-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-purple-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-purple-300,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-indigo-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-cyan-400{color:var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-emerald-300,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-emerald-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-emerald-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-green-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-green-500{color:var(--c-up)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-red-300,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-red-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-red-500{color:var(--c-down)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) a:not([class]){color:var(--nh-accent)}
/* no gradient text anywhere */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gradient,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gradient-emerald,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .grad,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h1 .grad,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-title .grad,
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #bal-avail,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-balance,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-clip-text{
  background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;
  -webkit-text-fill-color:currentColor!important;text-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gradient,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .grad,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) h1 .grad,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-title .grad{color:var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .text-gradient-emerald{color:var(--c-text)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #bal-avail,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-balance{color:var(--c-text)!important}
/* numbers are the hero: tabular, clear */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .font-mono,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [id^="bal-"],html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [id^="stat-"],html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #pl-val,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .stat-num,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) td{font-variant-numeric:tabular-nums}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .font-mono{font-family:"Source Sans 3",Inter,system-ui,sans-serif!important;letter-spacing:-.01em}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) *{text-shadow:none!important}

/* ---------- surfaces: solid, 1px border, small radius, little shadow ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .glass,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .modal-shell,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .card,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .auth-card,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .app-prompt,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .reassure,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .widget,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .toast{
  background:var(--c-surface)!important;border:1px solid var(--c-border)!important;
  box-shadow:var(--c-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  border-radius:var(--r-lg)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .toast,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .modal-shell,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .app-prompt{box-shadow:var(--c-shadow-pop)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .card-hover:hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .glass:hover{border-color:var(--c-border-strong)!important;box-shadow:var(--c-shadow)!important;transform:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-800,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-800\/60,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-800\/50,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-900,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-900\/50,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-900\/60,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-700,
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-950\/40,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-950\/50,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-slate-950\/60,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-white\/5,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-white\/\[\.03\]{background-color:var(--c-surface-2)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .border-white\/5,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .border-white\/10,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .border-white\/\[\.06\],html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .border-slate-700,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .border-slate-800{border-color:var(--c-border)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .shadow-2xl,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .shadow-xl,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .shadow-lg{box-shadow:var(--c-shadow-pop)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [style*="drop-shadow"]{filter:none!important}

/* nav chrome */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) nav.site-nav,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) header.auth-header,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) header.site-header,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .mobile-header,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) nav.nav,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) header.nav{
  background:color-mix(in srgb,var(--c-surface) 94%,transparent)!important;color:var(--c-text)!important;
  border-color:var(--c-border)!important;box-shadow:0 1px 0 var(--c-border)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) footer{background:var(--c-surface)!important;border-color:var(--c-border)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) aside.sidebar{background:var(--c-surface)!important;border-right:1px solid var(--c-border)!important;box-shadow:none!important;backdrop-filter:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nav-link{color:var(--c-text-2)!important;border-radius:var(--r-sm)!important;box-shadow:none!important;font-weight:500}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nav-link svg{stroke-width:1.75}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nav-link:hover{background:var(--c-surface-2)!important;color:var(--c-text)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nav-link.active{background:var(--nh-accent-soft)!important;color:var(--nh-accent)!important;box-shadow:inset 2px 0 0 var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nav-section{color:var(--c-faint)!important}
/* bottom nav: colours only, position/safe-area untouched */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar{background:var(--c-surface)!important;border-top:1px solid var(--c-border)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar>a,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar>button{color:var(--c-muted)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar>a.text-brand-400,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar>a.active,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar>button.active,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-bar .tab-btn-active{color:var(--nh-accent)!important;box-shadow:none!important;background:transparent!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .tab-btn-active svg{color:var(--nh-accent)!important;filter:none!important}

/* ---------- buttons ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-primary,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) button.btn:not(.btn-ghost):not(.btn-emerald):not(.btn-red),html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn:not(.btn-ghost):not(.btn-emerald):not(.btn-red),html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-cta:not(.w-cta-secondary):not(:disabled){
  background:var(--nh-accent-fill)!important;color:var(--nh-on-accent)!important;border:1px solid transparent!important;
  box-shadow:none!important;border-radius:var(--r-md)!important;font-weight:500!important;animation:none!important;transform:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-primary:hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn:not(.btn-ghost):not(.btn-emerald):not(.btn-red):hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-cta:hover:not(:disabled):not(.w-cta-secondary){
  background:var(--nh-accent-hover)!important;box-shadow:none!important;transform:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-ghost,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-cta-secondary{background:var(--c-surface)!important;border:1px solid var(--c-border-strong)!important;color:var(--c-text)!important;box-shadow:none!important;border-radius:var(--r-md)!important;font-weight:500!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-ghost:hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-cta-secondary:hover{background:var(--c-surface-2)!important;border-color:var(--c-border-strong)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-ghost.active{border-color:var(--nh-accent)!important;color:var(--nh-accent)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-emerald{background:var(--c-up)!important;color:#fff!important;box-shadow:none!important;background-image:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-red{background:var(--c-down)!important;color:#fff!important;box-shadow:none!important;background-image:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-primary:focus-visible,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .btn-ghost:focus-visible,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) button:focus-visible,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) a:focus-visible{outline:2px solid var(--nh-accent)!important;outline-offset:2px;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-brand-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-brand-600,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-blue-600,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-blue-500{background-color:var(--nh-accent-fill)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-brand-400{background-color:var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [class*="bg-gradient-to-"]{background-image:none!important;background-color:var(--c-surface-2)}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-gradient-to-r.from-brand-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-gradient-to-br.from-brand-500,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [class*="from-blue-"],html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [class*="from-brand-"]{background-color:var(--nh-accent-fill)!important;color:#fff}

/* inputs: calm focus ring */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input-shell,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .field input,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) select.input,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) textarea{
  background:var(--c-surface)!important;border-color:var(--c-border-strong)!important;color:var(--c-text)!important;box-shadow:none!important}
html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) .input,html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) .input-shell,html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) .field input,html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) select.input,html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) textarea{background:var(--c-surface-2)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input-shell input,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input-shell .input{border:0!important;background:transparent!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input:focus,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .input-shell:focus-within,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .field input:focus,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pin-grid input:focus,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .otp-grid input:focus,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) textarea:focus{
  border-color:var(--nh-accent)!important;box-shadow:0 0 0 3px var(--nh-accent-soft)!important;outline:none}

/* ---------- quiet badges / pills ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pl-chip,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-tag,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .ga-badge,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .feature-pill,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-pill,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-new,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-rate-pill,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .chip{
  background:transparent!important;border:1px solid var(--c-border)!important;color:var(--c-muted)!important;box-shadow:none!important;border-radius:999px!important;font-weight:500!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill-brand{color:var(--nh-accent)!important;border-color:var(--nh-accent-line)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill-emerald{color:var(--c-up)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill-red{color:var(--c-down)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill-amber{color:#B54708!important}
html:root[data-theme="theme2"][data-mode="dark"]:is([data-theme],[data-mode]) .pill-amber{color:#F5B54A!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill-purple{color:var(--c-muted)!important}
/* small coloured dot that tells categories apart */
.nh-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:middle;flex:none}
/* line icons */
.nh-ico{width:18px;height:18px;display:inline-block;flex:none;vertical-align:-3px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.nh-ico-tile{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--c-surface-2);border:1px solid var(--c-border);color:var(--c-text-2);margin-bottom:var(--sp-2)}
.nh-ico-tile .nh-ico{width:20px;height:20px}

/* ---------- tables / lists ---------- */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) table th{color:var(--c-muted)!important;font-weight:500!important;border-color:var(--c-border)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) table td{border-color:var(--c-border)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .data-table tr:hover td{background:var(--c-surface-2)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .divide-y>*{border-color:var(--c-border)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) ::selection{background:var(--nh-accent-soft);color:inherit}

/* ---------- brand: keep the lockup + Invest tag, drop the gradient dot ---------- */
.nh-brand-dot{background:var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-brand-pro{color:var(--nh-accent)!important}

/* ---------- motion: subtle ---------- */
@keyframes nhChg{from{background-color:var(--nh-accent-soft)}to{background-color:transparent}}
@keyframes nhUp{from{background-color:rgba(6,118,71,.12)}to{background-color:rgba(6,118,71,0)}}
html.js .nh-rv:not(.nh-in){transform:translateY(6px)}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-tm:hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-tm:focus-visible,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-rl:hover,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-rl:focus-visible{color:var(--nh-accent)!important;border-color:var(--nh-accent-line)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-tm,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .nh-rl{border-color:var(--c-border-strong)!important}

/* ==========================================================================
   Trading desk (standalone page, data-alive="trading"). Dark = charcoal, light = neutral.
   ========================================================================== */
html:root[data-alive="trading"]:is([data-alive],[data-mode]){
  --bg:var(--c-bg); --p1:var(--c-surface); --p2:var(--c-surface-2); --ln:var(--c-border);
  --tx:var(--c-text); --mu:var(--c-muted); --ac:var(--nh-accent-fill); --up:var(--c-up); --dn:var(--c-down);
  --al-run:linear-gradient(90deg,transparent,var(--nh-accent-line),transparent);
  background:var(--c-bg)!important;
}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) body{background:var(--c-bg)!important;color:var(--c-text)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) body::before{height:1px!important;box-shadow:none!important;opacity:.55;background:linear-gradient(90deg,transparent,var(--nh-accent-line),transparent) -45% 0/38% 100% no-repeat!important;animation-duration:48s!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) body::after,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .top::after,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .tk::after,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .hd::after{display:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode])::before,html:root[data-alive="trading"]:is([data-alive],[data-mode])::after{display:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .top,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .wl,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .tk,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .pos,html:root[data-alive="trading"]:is([data-alive],[data-mode]) th{background:var(--c-surface)!important;border-color:var(--c-border)!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .mnav{background:var(--c-surface)!important;border-color:var(--c-border)!important;box-shadow:none!important;backdrop-filter:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .mnav a{color:var(--c-muted)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .mnav a.on{color:var(--nh-accent)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .logo{color:var(--c-text)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .logo em{color:var(--nh-accent)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .row{border-bottom-color:var(--c-border)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .row:hover{background:var(--c-surface-2)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .row.sel{background:var(--nh-accent-soft)!important;box-shadow:inset 2px 0 0 var(--nh-accent)!important;border-left-color:transparent!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) td{border-top-color:var(--c-border)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .tab.on,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .bar span.on,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .pt span.on{background:var(--c-surface-3)!important;color:var(--c-text)!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .pt span.on{background:transparent!important;border-color:var(--nh-accent)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .flt button.on,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .rvg button.on,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .rvt button.on{background:var(--c-text)!important;color:var(--c-surface)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .av{background:var(--c-surface-3)!important;color:var(--c-text)!important;background-image:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .go,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .cbtn{background:var(--nh-accent-fill)!important;background-image:none!important;color:#fff!important;box-shadow:none!important;animation:none!important;font-weight:600!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .go:hover:not(:disabled),html:root[data-alive="trading"]:is([data-alive],[data-mode]) .cbtn:hover{background:var(--nh-accent-hover)!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .go.sig,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .cbtn.sig{background:var(--c-surface)!important;color:var(--c-text)!important;border:1px solid var(--c-border-strong)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .tk.mt-off .go{background:var(--c-surface-2)!important;color:var(--c-muted)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .bs button.on.b{background:var(--c-up)!important;color:#fff!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .bs button.on.s{background:var(--c-down)!important;color:#fff!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .search,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .in,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .pc button{background:var(--c-surface-2)!important;border-color:var(--c-border)!important;color:var(--c-text)!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .search:focus,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .in:focus{border-color:var(--nh-accent)!important;box-shadow:0 0 0 3px var(--nh-accent-soft)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .card,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .a-more,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .t,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .chip{background:var(--c-surface)!important;background-image:none!important;border:1px solid var(--c-border)!important;box-shadow:var(--c-shadow-pop)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .card .ghost,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .mini{background:var(--c-surface-2)!important;color:var(--c-text)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .big{color:var(--c-text)!important;background:none!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .live{background:var(--c-surface-2)!important;box-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .kv b,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .in{color:var(--c-text)!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .ptab tr{background:transparent!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) *{text-shadow:none!important}
html:root[data-alive="trading"]:is([data-alive],[data-mode]) .nh-tm,html:root[data-alive="trading"]:is([data-alive],[data-mode]) .nh-rl{color:var(--c-text-2)!important;border-color:var(--c-border-strong)!important;box-shadow:none!important}

/* white text stays white on filled accent / gain / loss surfaces */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) :is(.bg-brand-500,.bg-brand-600,.bg-blue-500,.bg-blue-600,.bg-emerald-500,.bg-emerald-600,.bg-red-500,.bg-red-600,.btn-primary,.btn-emerald,.btn-red,.w-cta).text-white,
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) :is(.bg-brand-500,.bg-brand-600,.bg-blue-500,.bg-blue-600,.bg-emerald-500,.bg-emerald-600,.bg-red-500,.bg-red-600,.btn-primary,.btn-emerald,.btn-red,.w-cta) .text-white{color:#fff!important}

/* key balance: no glow halo */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #bal-avail,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-balance{filter:none!important}
/* greeting name: plain text, hierarchy by size */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [data-vname]{color:var(--c-text)!important}
/* homepage pieces */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .step-num,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .ga-n{background:var(--c-surface-2)!important;color:var(--c-text)!important;border:1px solid var(--c-border)!important;box-shadow:none!important;font-weight:600!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .ga-ico{background:var(--c-surface-2)!important;color:var(--c-text-2)!important;border:1px solid var(--c-border)!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .ga-vis{background:var(--c-surface-2)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-stats .glass .text-2xl,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-stats .glass .font-mono,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .hero-stats b{color:var(--c-text)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-pill .nh-ico,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .pill .nh-ico{width:14px;height:14px;vertical-align:-2px;margin-right:2px}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #modal-deposit .dp-card{box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .modal-overlay,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-black\/70,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-black\/80,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .bg-black\/90{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* install sheet steps use line icons */
.nh-ins-steps .nh-ico,li>span>.nh-ico{width:18px;height:18px}
/* third-party provider tiles: flat, no coloured glow */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-logo{box-shadow:none!important;background-image:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-logo.moonpay{background-color:#5B2BD9!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .provider-logo.transak{background-color:#1D5BD6!important}
/* leftover blue→purple inline gradient tiles become the solid accent */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [style*="#a855f7"],html:root[data-theme="theme2"]:is([data-theme],[data-mode]) [style*="168,85,247"]{background:var(--nh-accent-fill)!important;box-shadow:none!important;animation:none!important}
/* admin overview stats: neutral numbers, category shown by a small dot */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-users,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-kyc,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-cards,html:root[data-theme="theme2"]:is([data-theme],[data-mode]) #stat-req{color:var(--c-text)!important}
/* buy / sell / swap widget: borderless amount fields, accent tab underline */
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) input.w-amount:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([data-nh-x]){background:transparent!important;border:0!important;box-shadow:none!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-tab.active::after{background:var(--nh-accent)!important}
html:root[data-theme="theme2"]:is([data-theme],[data-mode]) .w-tab.active{border-bottom-color:transparent!important}
