/* ======================================================================
   ChartFlow — wygląd 2026-11 („Slate”). Ładowany OSTATNI na każdej stronie.
   • kolory obu motywów: tutaj tokeny + scripts/build_dark_theme.py mapuje starsze arkusze na tę paletę
     (ciemny — skala slate, jasny — chłodne neutralne). Ten plik NIE jest przez niego przetwarzany.
   • powłoka: boczne menu na komputerze (zwijane), górny pasek + szuflada + dolny pasek na telefonie.
   ====================================================================== */
:root{
  --cf-bg:#eef1f6;--cf-bg2:#e6eaf1;--cf-surface:#ffffff;--cf-surface2:#f6f8fb;--cf-hover:rgba(15,23,42,.045);
  --cf-line:rgba(15,23,42,.08);--cf-line2:rgba(15,23,42,.14);
  --cf-text:#111827;--cf-text2:#4b5568;--cf-text3:#8a93a6;
  --cf-acc:#2563eb;--cf-acc2:#0ea5e9;--cf-acc-soft:rgba(37,99,235,.10);--cf-acc-ring:rgba(37,99,235,.28);
  --cf-pos:#15924a;--cf-neg:#e11d48;--cf-warn:#d97706;
  --cf-side:#f8fafc;--cf-side-line:rgba(15,23,42,.07);
  --cf-shadow:0 1px 2px rgba(15,23,42,.05),0 10px 28px -18px rgba(15,23,42,.25);
  --cf-radius:16px;--cf-side-w:252px;--cf-side-mini:72px;
  --cf-grad:linear-gradient(120deg,#3b2fe0 0%,#2563eb 45%,#0ea5e9 85%,#22d3ee 110%);
}
html[data-theme="dark"]{
  --cf-bg:#0b0f17;--cf-bg2:#0e131d;--cf-surface:#141a26;--cf-surface2:#182031;--cf-hover:rgba(148,163,184,.07);
  --cf-line:rgba(148,163,184,.12);--cf-line2:rgba(148,163,184,.2);
  --cf-text:#e6eaf2;--cf-text2:#a3acbe;--cf-text3:#6c768a;
  --cf-acc:#5b8cff;--cf-acc2:#38bdf8;--cf-acc-soft:rgba(91,140,255,.14);--cf-acc-ring:rgba(91,140,255,.35);
  --cf-pos:#34d399;--cf-neg:#fb7185;--cf-warn:#fbbf24;
  --cf-side:#0d121b;--cf-side-line:rgba(148,163,184,.09);
  --cf-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 14px 34px -22px rgba(0,0,0,.8);
}
/* legacy token families -> the new palette (both themes) */
html:not(#_a){
  --u-bg:var(--cf-bg);--u-card:var(--cf-surface);--u-line:var(--cf-line);--u-line2:var(--cf-line2);
  --u-t:var(--cf-text);--u-t2:var(--cf-text2);--u-t3:var(--cf-text3);--u-acc:var(--cf-acc);--u-acc-soft:var(--cf-acc-soft);
  --u-pos:var(--cf-pos);--u-neg:var(--cf-neg);--u-shadow:var(--cf-shadow);--u-r-card:var(--cf-radius);
}

/* ---------- page ---------- */
html body:not(#_a){background:var(--cf-bg)!important;color:var(--cf-text);font-family:Onest,Inter,ui-sans-serif,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
html[data-theme="dark"] body:not(#_a){background:radial-gradient(1200px 600px at 85% -10%,rgba(56,98,255,.08),transparent 60%),var(--cf-bg)!important}
::selection{background:var(--cf-acc-ring)}
*{scrollbar-width:thin;scrollbar-color:var(--cf-line2) transparent}
html body :focus-visible{outline:2px solid var(--cf-acc)!important;outline-offset:2px}

/* ---------- desktop sidebar ---------- */
@media (min-width:901px){
  html.cf-sidenav body:not(#_a):not(#_b){padding-left:var(--cf-side-w)!important;padding-top:0!important}
  html.cf-sidenav.cf-side-mini body:not(#_a):not(#_b){padding-left:var(--cf-side-mini)!important}
  html.cf-sidenav body .cf-side:not(#_a):not(#_b){position:fixed!important;inset:0 auto 0 0!important;z-index:95;display:flex!important;flex-direction:column!important;
    width:var(--cf-side-w)!important;height:100vh!important;height:calc(100vh / var(--cf-zoom,1))!important;padding:14px 12px 12px!important;gap:0!important;border:0!important;border-right:1px solid var(--cf-side-line)!important;border-radius:0!important;
    background:var(--cf-side)!important;box-shadow:none!important;backdrop-filter:none!important;overflow:hidden auto!important;transition:width .18s ease}
  html.cf-sidenav body .cf-side:not(#_a) .cf-ws{display:flex;align-items:center;gap:6px;height:40px;margin:0 0 12px!important;padding:0 2px}
  html.cf-sidenav body .cf-side .cf-ws-btn:not(#_a):not(#_b){flex:1 1 auto;min-width:0;height:40px;padding:0 6px!important;border-radius:12px;background:transparent!important}
  html.cf-sidenav body .cf-side .cf-ws-logo:not(#_a){width:30px!important;height:30px!important}
  html.cf-sidenav body .cf-side:not(#_a) .cf-ws .cf-ic.tiny{display:none}
  html.cf-sidenav body .cf-side:not(#_a) .cf-word{font-size:17px!important;display:inline!important}
  html body .cf-collapse:not(#_a){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:30px;height:30px;padding:0;border:1px solid var(--cf-line);border-radius:9px;background:var(--cf-surface);color:var(--cf-text3);cursor:pointer}
  html body .cf-collapse:hover{color:var(--cf-text);border-color:var(--cf-line2)}
  html.cf-sidenav body .cf-side .cf-search:not(#_a):not(#_b){display:flex!important;height:38px!important;margin:0 0 14px!important;padding:0 11px!important;border:1px solid var(--cf-line)!important;border-radius:11px!important;
    background:var(--cf-surface)!important;color:var(--cf-text3)!important;font-size:13px!important}
  html.cf-sidenav body .cf-side .cf-search:not(#_a):hover{border-color:var(--cf-line2)!important;color:var(--cf-text2)!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b){display:flex!important;flex-direction:column!important;gap:2px!important;flex:1 1 auto!important;overflow:visible!important;padding:0!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button{display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;height:40px!important;padding:0 12px!important;border:0!important;border-radius:11px!important;
    background:transparent!important;box-shadow:none!important;color:var(--cf-text2)!important;font-size:14px!important;font-weight:550!important;justify-content:flex-start!important;position:relative}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button span{display:inline!important;overflow:hidden;text-overflow:ellipsis}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button .cf-ic{width:18px;height:18px;color:var(--cf-text3)!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button:hover{background:var(--cf-hover)!important;color:var(--cf-text)!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button.active{background:var(--cf-acc-soft)!important;color:var(--cf-acc)!important;font-weight:650!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button.active .cf-ic{color:var(--cf-acc)!important}
  html.cf-sidenav body .cf-side .cf-tabs:not(#_a):not(#_b) button.active::before{content:"";position:absolute;left:-12px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--cf-acc)}
  html.cf-sidenav body .cf-side:not(#_a):not(#_b) .cf-sec{display:block!important;width:auto!important;height:auto!important;margin:16px 12px 6px!important;padding:0!important;background:none!important;color:var(--cf-text3)!important;
    font-size:11px!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase}
  html.cf-sidenav body .cf-side-foot:not(#_a):not(#_b){display:grid!important;gap:2px!important;margin:12px 0 0!important;padding-top:12px!important;border-top:1px solid var(--cf-side-line)}
  html.cf-sidenav body .cf-side-foot:not(#_a):not(#_b) button{width:100%!important;height:38px!important;padding:0 12px!important;justify-content:flex-start!important;border-radius:11px!important;color:var(--cf-text2)!important;font-size:13.5px!important}
  html.cf-sidenav body .cf-side-foot:not(#_a):not(#_b) button:hover{background:var(--cf-hover)!important;color:var(--cf-text)!important}
  html.cf-sidenav body .cf-side-foot:not(#_a) .cf-label{display:inline!important}
  html.cf-sidenav body .cf-side-foot:not(#_a) .cf-status{display:flex!important;align-items:center;gap:8px;height:34px;margin:0 0 4px;padding:0 12px!important;border-radius:10px;background:rgba(52,211,153,.08);color:var(--cf-text2)!important;font-size:12.5px}
  html.cf-sidenav body .cf-side-foot:not(#_a) .cf-status.warn{background:rgba(251,191,36,.1)}html.cf-sidenav body .cf-side-foot:not(#_a) .cf-status.bad{background:rgba(251,113,133,.1)}
  html.cf-sidenav body .cf-side-foot:not(#_a) .cf-avatar{display:none!important}
  html.cf-sidenav body .cf-side :is(.cf-burger,.cf-mtitle):not(#_a):not(#_b){display:none!important}
  html.cf-sidenav body .cf-side > .cf-bell-m:not(#_a){display:none!important}
  /* collapsed: icons only */
  html.cf-sidenav.cf-side-mini body .cf-side:not(#_a):not(#_b){width:var(--cf-side-mini)!important;padding:14px 10px 12px!important}
  html.cf-sidenav.cf-side-mini body .cf-side:not(#_a) :is(.cf-word,.cf-search>span,.cf-search kbd,.cf-sec,.cf-label,.cf-status span){display:none!important}
  html.cf-sidenav.cf-side-mini body .cf-side:not(#_a) .cf-ws{flex-direction:column;height:auto;gap:8px}
  html.cf-sidenav.cf-side-mini body .cf-side:not(#_a) .cf-collapse{transform:rotate(180deg)}
  html.cf-sidenav.cf-side-mini body .cf-side .cf-tabs:not(#_a):not(#_b) button{justify-content:center!important;padding:0!important}
  html.cf-sidenav.cf-side-mini body .cf-side .cf-tabs:not(#_a):not(#_b) button span{display:none!important}
  html.cf-sidenav.cf-side-mini body .cf-side :is(.cf-search,.cf-side-foot button):not(#_a):not(#_b){justify-content:center!important;padding:0!important}
  html.cf-sidenav.cf-side-mini body .cf-side-foot:not(#_a) .cf-status{justify-content:center;padding:0!important}
  html.cf-sidenav.cf-side-mini body .cf-side:not(#_a) .cf-sec{display:block!important;height:1px!important;margin:10px 8px!important;background:var(--cf-side-line)!important;font-size:0!important}
  /* page frame next to the sidebar */
  html.cf-sidenav body .wrap:not(#_a):not(#_b),html.cf-sidenav body.journal-wide .wrap:not(#_a):not(#_b){margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:100vh!important}
  html.cf-sidenav body .panel-view:not(#_a):not(#_b){padding:0 28px!important}
  html.cf-sidenav body .panel-view>:is(.panel-heading,.journal-title):not(#_a):not(#_b){position:sticky!important;top:0!important;z-index:30;margin:0 -28px 18px!important;padding:16px 28px!important;min-height:68px!important;
    background:color-mix(in srgb,var(--cf-bg) 82%,transparent)!important;backdrop-filter:blur(14px) saturate(1.3);border-bottom:1px solid var(--cf-line)!important}
  html.cf-sidenav body .panel-view>:is(.panel-heading,.journal-title):not(#_a) :is(h1,h2){font-size:22px!important;font-weight:750!important;letter-spacing:-.025em!important;color:var(--cf-text)!important}
}

/* ---------- phone: top bar, drawer, bottom tab bar ---------- */
@media (max-width:900px){
  html.cf-topnav body .cf-side:not(#_a):not(#_b){background:color-mix(in srgb,var(--cf-surface) 88%,transparent)!important;border-bottom:1px solid var(--cf-line)!important;backdrop-filter:blur(16px) saturate(1.4)}
  html.cf-topnav body .cf-side .cf-burger:not(#_a){background:var(--cf-surface)!important;border-color:var(--cf-line)!important;color:var(--cf-text)!important}
  html.cf-topnav body .cf-side.cf-open .cf-tabs:not(#_a):not(#_b):not(#_c){background:var(--cf-surface)!important;border-bottom:1px solid var(--cf-line)}
  html.cf-topnav body .cf-side .cf-tabs:not(#_a):not(#_b) button.active{background:var(--cf-acc-soft)!important;color:var(--cf-acc)!important}
  html body:not(#_a):not(#_b):has(.cf-bnav){padding-bottom:calc(74px + env(safe-area-inset-bottom))!important}
  .cf-bnav{position:fixed;left:0;right:0;bottom:0;z-index:97;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    background:color-mix(in srgb,var(--cf-surface) 92%,transparent);border-top:1px solid var(--cf-line);backdrop-filter:blur(18px) saturate(1.4)}
  html body .cf-bnav button:not(#_a):not(#_b){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:auto!important;height:54px!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:var(--cf-text3)!important;font-size:10.5px!important;font-weight:600!important;line-height:1.1}
  html body .cf-bnav button:not(#_a):not(#_b) .cf-ic{width:21px;height:21px}
  html body .cf-bnav button.on:not(#_a):not(#_b){color:var(--cf-acc)!important}
  html body .cf-bnav button.on:not(#_a):not(#_b) .cf-ic{filter:drop-shadow(0 4px 10px var(--cf-acc-ring))}
}
@media (min-width:901px){.cf-bnav{display:none}}

/* ---------- surfaces & common components (both themes) ---------- */
html body :is(.card,.cf-card,.cfm-card,.ac-card,.lvb-card,.cfp-card,.chart-option-card,.journal-stat-card,.cf-kpi,.sim-card,.cx-card,.cx-kpi,.notifications-panel,.learning-breakdown):not(.wide):not(.panel-view):not(#_a):not(#_b){
  border-color:var(--cf-line)!important;border-radius:var(--cf-radius)!important;box-shadow:var(--cf-shadow)!important}
html[data-theme="dark"] body :is(.card,.cf-card,.cfm-card,.ac-card,.lvb-card,.cfp-card,.chart-option-card,.journal-stat-card,.cf-kpi,.sim-card,.cx-card,.cx-kpi):not(.wide):not(.panel-view):not(#_a):not(#_b){background:var(--cf-surface)!important}
html body :is(.cf-kpi b,.journal-stat-card strong,.cx-kpi .v){letter-spacing:-.03em}
html body .cf-greet:not(#_a):not(#_b){background:radial-gradient(600px 260px at 92% 0%,rgba(255,255,255,.18),transparent 60%),var(--cf-grad)!important;border-radius:20px!important}
/* buttons */
html body :is(button.primary,.btn.primary,.btn-primary,.cf-primary,.primary-button,.settings-save,.login-btn,.cx-btn.primary):not(#_a):not(#_b):not(#_c){
  background:linear-gradient(135deg,var(--cf-acc2),var(--cf-acc) 70%)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 22px -12px var(--cf-acc-ring)!important}
html body :is(button.primary,.btn.primary,.btn-primary,.cf-primary,.primary-button,.settings-save,.login-btn):not(#_a):hover{filter:brightness(1.07)}
/* inputs */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):not(#_a):not(#_b){border-radius:11px}
html body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(#_a):not(#_b):focus{border-color:var(--cf-acc)!important;box-shadow:0 0 0 3px var(--cf-acc-ring)!important;outline:0!important}
html body input[type=checkbox]:not(#_a),html body input[type=radio]:not(#_a){accent-color:var(--cf-acc)}
/* tables */
html body :is(table) th:not(#_a){letter-spacing:.02em}
html body :is(.journal-table,.macro-table,.cx-table table) tbody tr:hover td:not(#_a){background:var(--cf-hover)!important}
/* numbers */
html body :is(.u-pos,.positive,.pos,.win,.cf-pos,.profit,.up):not(#_a):not(#_b):not(#_c){color:var(--cf-pos)!important}
html body :is(.u-neg,.negative,.neg,.loss,.cf-neg,.dn):not(#_a):not(#_b):not(#_c){color:var(--cf-neg)!important}
/* modals / palette */
html body :is(.cf-palette-box,.settings-modal .settings-dialog,.cx-modal .box,.cfm):not(#_a){border-radius:20px!important}
html[data-theme="dark"] body .cf-palette:not(#_a){background:rgba(3,6,12,.6)!important}

/* ---------- logo word in dark ---------- */
html[data-theme="dark"] body .cf-word:not(#_a):not(#_b),html[data-theme="dark"] body .cf-ws-btn:not(#_a):not(#_b) .cf-word{color:#eef2f8!important}

/* ---------- login ---------- */
.cfl{min-height:100vh;min-height:calc(100vh / var(--cf-zoom,1));display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr)}
.cfl-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:44px 52px;color:#fff;background:var(--cf-grad)}
.cfl-hero::before{content:"";position:absolute;inset:-20% -30% auto auto;width:720px;height:720px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 62%)}
.cfl-hero::after{content:"";position:absolute;right:-60px;bottom:-60px;width:420px;height:420px;background:url(/brand/chartflow-mark.png) center/contain no-repeat;opacity:.16;filter:brightness(3) saturate(0)}
.cfl-brand{position:relative;display:flex;align-items:center;gap:12px;font-size:22px;font-weight:750;letter-spacing:-.02em}
.cfl-brand i{width:40px;height:40px;background:url(/brand/chartflow-mark.png) center/contain no-repeat;filter:brightness(1.6)}
.cfl-pitch{position:relative;max-width:520px}
.cfl-pitch h2{margin:0 0 14px;font-size:40px;line-height:1.08;font-weight:800;letter-spacing:-.035em}
.cfl-pitch p{margin:0;color:rgba(255,255,255,.82);font-size:16px;line-height:1.55}
.cfl-feats{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cfl-feats div{padding:14px 16px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}
.cfl-feats b{display:block;font-size:14px}.cfl-feats small{color:rgba(255,255,255,.75);font-size:12.5px}
.cfl-side{display:flex;align-items:center;justify-content:center;padding:40px 28px;background:var(--cf-bg)}
.cfl-box{width:100%;max-width:400px}
.cfl-box .cfl-logo{display:none;align-items:center;gap:10px;margin:0 0 26px;font-size:20px;font-weight:750}
.cfl-box .cfl-logo i{width:34px;height:34px;background:url(/brand/chartflow-mark.png) center/contain no-repeat}
.cfl-box h1{margin:0 0 6px;color:var(--cf-text);font-size:28px;font-weight:800;letter-spacing:-.03em}
.cfl-box>p{margin:0 0 26px;color:var(--cf-text2);font-size:14.5px}
@media (max-width:900px){.cfl{grid-template-columns:1fr}.cfl-hero{display:none}.cfl-box .cfl-logo{display:flex}.cfl-side{min-height:100vh;align-items:flex-start;padding-top:12vh}}
@media (max-width:900px){html body .cf-collapse:not(#_a):not(#_b){display:none!important}}
/* sidebar popovers (theme, notifications) open next to the sidebar, not clipped by it */
@media (min-width:901px){
  html.cf-sidenav body .cf-side .cf-theme-pop:not(#_a):not(#_b){position:fixed!important;left:calc(var(--cf-side-w) + 10px)!important;right:auto!important;top:auto!important;bottom:16px!important;z-index:130;
    border:1px solid var(--cf-line2)!important;border-radius:16px!important;background:var(--cf-surface)!important;box-shadow:0 24px 60px -20px rgba(0,0,0,.55)!important}
  html.cf-sidenav.cf-side-mini body .cf-side .cf-theme-pop:not(#_a):not(#_b){left:calc(var(--cf-side-mini) + 10px)!important}
  html.cf-sidenav body .cf-side-foot .cf-theme-btn:not(#_a){width:100%}
}
@media (max-width:900px){
  html.cf-topnav body .cf-side:not(#_a):not(#_b):not(#_c){flex-wrap:nowrap!important}
  html.cf-topnav body .cf-side:not(#_a) .cf-mtitle{flex:1 1 0!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.cf-topnav body .cf-side:not(#_a) :is(.cf-burger,.cf-bell-m){flex:0 0 auto!important}
}

/* ======================================================================
   Dwa światy: FOREX (niebieski) i CRYPTO (złoty) — przełącznik na górze menu
   ====================================================================== */
html.cf-world-crypto:not(#_a){--cf-acc:#c27a0e;--cf-acc2:#e9a23b;--cf-acc-soft:rgba(217,140,20,.12);--cf-acc-ring:rgba(217,140,20,.3);
  --u-acc:var(--cf-acc);--u-acc-soft:var(--cf-acc-soft)}
html[data-theme="dark"].cf-world-crypto:not(#_a){--cf-acc:#f5b13d;--cf-acc2:#fcd34d;--cf-acc-soft:rgba(245,177,61,.13);--cf-acc-ring:rgba(245,177,61,.32)}
/* which items belong to which world */
html body .cf-side [data-world="crypto"]:not(#_a):not(#_b):not(#_c),html body .cf-side .cf-cx-root:not(#_a):not(#_b):not(#_c){display:none!important}
html.cf-world-crypto body .cf-side [data-world="crypto"]:not(#_a):not(#_b):not(#_c){display:flex!important}
html.cf-world-crypto body .cf-side .cf-sec[data-world="crypto"]:not(#_a):not(#_b):not(#_c){display:block!important}
html.cf-world-crypto body .cf-side [data-world="forex"]:not(#_a):not(#_b):not(#_c){display:none!important}
/* switcher */
html body .cf-side .cf-world:not(#_a):not(#_b){display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 12px;padding:4px;border:1px solid var(--cf-line);border-radius:13px;background:var(--cf-surface)}
html body .cf-side .cf-world.hidden:not(#_a):not(#_b){display:none!important}
html body .cf-side .cf-world button:not(#_a):not(#_b):not(#_c){display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;height:34px!important;margin:0!important;padding:0 8px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:var(--cf-text3)!important;font-size:13px!important;font-weight:700!important;letter-spacing:.02em}
html body .cf-side .cf-world button:not(#_a):not(#_b):not(#_c) .cf-ic{width:16px;height:16px}
html body .cf-side .cf-world button.on[data-world-btn="forex"]:not(#_a):not(#_b):not(#_c){background:rgba(59,130,246,.16)!important;color:#5b8cff!important;box-shadow:inset 0 0 0 1px rgba(91,140,255,.35)!important}
html body .cf-side .cf-world button.on[data-world-btn="crypto"]:not(#_a):not(#_b):not(#_c){background:rgba(245,177,61,.16)!important;color:#e9a23b!important;box-shadow:inset 0 0 0 1px rgba(245,177,61,.4)!important}
html:not([data-theme="dark"]) body .cf-side .cf-world button.on[data-world-btn="forex"]:not(#_a):not(#_b):not(#_c){color:#2563eb!important}
html:not([data-theme="dark"]) body .cf-side .cf-world button.on[data-world-btn="crypto"]:not(#_a):not(#_b):not(#_c){color:#b06d06!important}
html.cf-sidenav.cf-side-mini body .cf-side .cf-world:not(#_a):not(#_b){grid-template-columns:1fr}
html.cf-sidenav.cf-side-mini body .cf-side .cf-world button:not(#_a):not(#_b):not(#_c) span{display:none}
/* crypto section header + counters */
html.cf-world-crypto body .cf-side .cf-sec[data-world="crypto"]:not(#_a):not(#_b):not(#_c){color:var(--cf-acc)!important;margin-top:4px!important}
.cf-nav-n{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--cf-acc-soft);color:var(--cf-acc);font-size:11px;font-weight:750;line-height:20px;text-align:center}
.cf-nav-n:empty{display:none}
html.cf-sidenav.cf-side-mini .cf-nav-n{display:none}
/* page title says which world */
html.cf-has-crypto body .panel-view:is([data-panel="welcome"],[data-panel="journal"],[data-panel="trading"],[data-panel="charts"],[data-panel="macro"])>:is(.panel-heading,.journal-title) :is(h1,h2)::before,
html.cf-has-crypto body #panelCrypto>.panel-heading h2::before{display:inline-block;margin-right:10px;padding:3px 9px;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.08em;vertical-align:3px}
html.cf-has-crypto body .panel-view:is([data-panel="welcome"],[data-panel="journal"],[data-panel="trading"],[data-panel="charts"],[data-panel="macro"])>:is(.panel-heading,.journal-title) :is(h1,h2)::before{content:"FOREX";background:rgba(91,140,255,.14);color:#5b8cff}
html.cf-has-crypto body #panelCrypto>.panel-heading h2::before{content:"CRYPTO · PAPER";background:rgba(245,177,61,.15);color:#e9a23b}
html:not([data-theme="dark"]).cf-has-crypto body #panelCrypto>.panel-heading h2::before{color:#a96506}
html body #panelCrypto>.panel-heading small{display:none!important}
/* crypto terminal inside the admin panel: no inner tab bar — the sidebar is the navigation */
html body #cryptoRoot.cx-embedded #cxNav:not(#_a){display:none!important}
html body #cryptoRoot.cx-embedded .cx-head:not(#_a){justify-content:flex-end}
html.cf-world-crypto body #cryptoRoot :is(.cx-li.on){box-shadow:inset 3px 0 0 var(--cf-acc)!important}
html.cf-world-crypto body #cryptoRoot .cx-sbar i,html.cf-world-crypto body #cryptoRoot .cx-limit i em{background:var(--cf-acc)!important}
/* phone: bottom bar in the world's colour; switcher at the top of the drawer */
@media (max-width:900px){
  html.cf-topnav body .cf-side.cf-open .cf-world:not(#_a):not(#_b){margin:4px 4px 8px}
  html.cf-world-crypto body .cf-bnav{border-top-color:rgba(245,177,61,.35)}
}
/* bell: Forex / Crypto */
html body .cf-bell-tabs:not(#_a){display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 10px;padding:3px;border-radius:11px;background:var(--cf-hover)}
html body .cf-bell-tabs[hidden]:not(#_a){display:none!important}
html body .cf-bell-tabs button:not(#_a):not(#_b):not(#_c){height:30px!important;min-height:0!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:var(--cf-text3)!important;font-size:12.5px!important;font-weight:700!important}
html body .cf-bell-tabs button.on[data-bt="forex"]:not(#_a):not(#_b):not(#_c){background:rgba(91,140,255,.16)!important;color:#5b8cff!important}
html body .cf-bell-tabs button.on[data-bt="crypto"]:not(#_a):not(#_b):not(#_c){background:rgba(245,177,61,.16)!important;color:#e9a23b!important}
html body .cf-bell-tabs b:not(:empty){margin-left:4px;padding:0 6px;border-radius:8px;background:#f5b13d;color:#1b1406;font-size:10.5px}
.cf-bell-cx{display:grid;gap:2px;max-height:260px;overflow:auto;margin:6px 0 4px}
.cf-bell-cx>div{display:grid;gap:1px;padding:7px 9px;border-radius:9px;font-size:12.5px}
.cf-bell-cx>div.new{background:rgba(245,177,61,.09);box-shadow:inset 3px 0 0 #f5b13d}
.cf-bell-cx>div b{font-weight:650;color:var(--cf-text)}.cf-bell-cx>div span{color:var(--cf-text3);font-size:11.5px}
.cf-bell-cx em{padding:10px;color:var(--cf-text3);font-style:normal;text-align:center}
.cf-bell>button{position:relative}
.cf-bell-n{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#f5b13d;color:#1b1406;font-size:10px;font-weight:800;line-height:16px;text-align:center}
.cf-bell-n:empty{display:none}
html body .cf-bell-pop [data-bell="forex"]:not(#_a){--u-acc:#5b8cff;--cf-acc:#5b8cff;--cf-acc-soft:rgba(91,140,255,.14);--cf-acc-ring:rgba(91,140,255,.3)}
/* Forex | Crypto switcher on the viewer page and the standalone crypto page */
.cf-wsw{display:inline-flex;gap:3px;margin:0 8px;padding:3px;border:1px solid var(--cf-line);border-radius:11px;background:var(--cf-surface);vertical-align:middle}
.cf-wsw.hidden{display:none!important}
html body .cf-wsw a:not(#_a){display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:8px;color:var(--cf-text3)!important;font-size:12.5px;font-weight:750;letter-spacing:.02em;text-decoration:none!important}
html body .cf-wsw a:not(#_a):hover{color:var(--cf-text)!important}
html body .cf-wsw a.on:first-child:not(#_a){background:rgba(91,140,255,.16);color:#5b8cff!important}
html body .cf-wsw a.on:last-child:not(#_a){background:rgba(245,177,61,.16);color:#e9a23b!important}
html.cf-has-crypto body #navCrypto:not(#_a):not(#_b){display:none!important}
@media (max-width:700px){.cf-wsw{margin:0 4px}html body .cf-wsw a:not(#_a){padding:0 9px}}
@media (max-width:700px){html body[data-crypto-standalone] .top .brand small,html body[data-crypto-standalone] .top .brand .cf-word{display:none!important}}

/* Live · OKX — real orders: menu item only for the primary admin; red accents on that view */
html body .cf-side .cf-cx-live:not(#_a):not(#_b):not(#_c):not(#_d){display:none!important}
html.cf-world-crypto.cf-cx-admin body .cf-side .cf-cx-live:not(#_a):not(#_b):not(#_c):not(#_d){display:flex!important}
html body .cf-side .cf-cx-live svg{color:#e11d48!important}
html.cf-has-crypto.cf-cx-onlive body #panelCrypto>.panel-heading h2::before{content:"CRYPTO · LIVE";background:rgba(225,29,72,.13);color:#e11d48}
html:not([data-theme="dark"]).cf-has-crypto.cf-cx-onlive body #panelCrypto>.panel-heading h2::before{color:#be123c}
