
  
  /* the theme accent as a colour scale (Candle flame by default); Tailwind's sky/cyan/indigo read these */
  :root{--acc-50:253 245 234;--acc-100:255 235 210;--acc-200:255 214 165;--acc-300:255 190 120;--acc-400:255 154 31;
        --acc-500:226 137 29;--acc-600:187 114 26;--acc-700:146 89 23;--acc-800:104 65 21;--acc-900:69 44 20;--acc-950:45 30 18}
  html.accent-light .accent-btn{color:#0B0B0D;text-shadow:none}
  /* candlelight: a warm glow near the logo that flickers softly, like one candle lighting a dark room */
  .candle-light{position:fixed;inset:0;z-index:-1;pointer-events:none;will-change:opacity;
    background:radial-gradient(560px 380px at 58px 26px,rgba(255,154,31,.15),rgba(255,154,31,0) 70%),
               radial-gradient(1500px 1000px at 58px 26px,rgba(255,110,20,.055),rgba(255,110,20,0) 70%);
    animation:wick-room 5.5s ease-in-out infinite}
  @keyframes wick-room{0%,100%{opacity:.86}9%{opacity:1}21%{opacity:.8}34%{opacity:.96}51%{opacity:.78}64%{opacity:1}79%{opacity:.85}}
  @keyframes wick-sway{0%,100%{transform:rotate(-2deg) scale(1,1)}22%{transform:rotate(1.6deg) scale(.97,1.06)}
    46%{transform:rotate(-1deg) scale(1.03,.95)}71%{transform:rotate(2.2deg) scale(.98,1.04)}}
  @keyframes wick-core{0%,100%{opacity:.95;transform:scale(1,1)}33%{opacity:.78;transform:scale(.9,1.08)}63%{opacity:1;transform:scale(1.06,.94)}}
  @keyframes wick-halo{0%,100%{opacity:.55}14%{opacity:.8}29%{opacity:.5}48%{opacity:.72}69%{opacity:.46}86%{opacity:.68}}
  .wick-flame,.flame-flicker{transform-box:fill-box;transform-origin:50% 92%;animation:wick-sway 2.6s ease-in-out infinite}
  .flame-flicker{animation-duration:2.1s}
  .wick-core{transform-box:fill-box;transform-origin:50% 90%;animation:wick-core 1.9s ease-in-out infinite}
  .wick-halo{animation:wick-halo 3.3s ease-in-out infinite;background:radial-gradient(closest-side,rgba(255,154,31,.42),rgba(255,154,31,0))}
  @media (prefers-reduced-motion:reduce){.candle-light,.wick-flame,.wick-core,.wick-halo,.flame-flicker{animation:none}}
  /* small motion (owner, 30 Sep): cards lift, buttons press, links underline, menus open softly, new trades slide
     in, the stat cards rise in on load and the chart's latest point breathes. All of it stops for reduced motion. */
  @keyframes wick-rise{from{opacity:0;transform:translateY(10px)}}
  @keyframes wick-pop{from{opacity:0;transform:translateY(-4px) scale(.97)}}
  @keyframes wick-fade{from{opacity:0}}
  @keyframes wick-arrive{0%{opacity:0;transform:translateY(-8px)}
    30%{opacity:1;transform:none;box-shadow:0 0 0 1.5px rgb(var(--acc-400) / .65),0 0 24px -2px rgb(var(--acc-400) / .35)}
    100%{box-shadow:0 0 0 1.5px rgb(var(--acc-400) / 0),0 0 24px -2px rgb(var(--acc-400) / 0)}}
  @keyframes wick-breathe{0%,100%{transform:scale(.7);opacity:.45}34%{transform:scale(1.25);opacity:.95}
    58%{transform:scale(1);opacity:.7}79%{transform:scale(1.15);opacity:.85}}
  .rise{animation:wick-rise .6s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--i, 0) * 70ms)}
  html .lift{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease}
  @media (hover:hover){html .lift:hover{transform:translateY(-2px);border-color:rgb(var(--acc-400) / .3);
    box-shadow:0 12px 26px -18px rgb(var(--acc-400) / .6),0 0 0 1px rgb(var(--acc-400) / .07)}}
  html button,html a.rounded-lg{transition-property:color,background-color,border-color,box-shadow,transform,filter,opacity;transition-duration:.15s}
  html button:active:not(:disabled),html a.rounded-lg:active{transform:translateY(1px) scale(.97)}
  html button.w-full:active:not(:disabled){transform:translateY(1px)}
  .accent-btn:hover{box-shadow:0 0 0 1px rgb(var(--acc-300) / .35),0 6px 20px -6px rgb(var(--acc-400) / .75)}
  .u-slide{position:relative}
  .u-slide::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:currentColor;
    transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
  .u-slide:hover::after{transform:scaleX(1)}
  #chain-panel{transform-origin:top left}
  #theme-panel,#alerts-panel{transform-origin:top right}
  #chain-panel,#theme-panel,#alerts-panel{animation:wick-pop .18s cubic-bezier(.2,.8,.2,1)}
  #pnl-modal,#settings-modal,#reset-modal{animation:wick-fade .18s ease-out}
  #pnl-modal>div,#settings-modal>div,#reset-modal>div{animation:wick-pop .24s cubic-bezier(.2,.8,.2,1)}
  .arrive{animation:wick-arrive 1.1s cubic-bezier(.2,.7,.2,1)}
  .chart-now{position:absolute;left:0;top:0;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:9999px;pointer-events:none;
    background:radial-gradient(closest-side,rgb(var(--acc-400) / .55),rgb(var(--acc-400) / 0));animation:wick-breathe 2.8s ease-in-out infinite}
  .seg-pill{position:absolute;left:0;top:4px;bottom:4px;width:0;border-radius:.25rem;background:#262628;box-shadow:0 1px 2px rgba(0,0,0,.35);
    pointer-events:none;transition:transform .3s cubic-bezier(.3,.7,.2,1),width .3s cubic-bezier(.3,.7,.2,1)}
  .seg-pill.no-anim{transition:none}
  /* reduced motion (the owner's PC asks for it): nothing moves -- unless the dashboard's own Motion button is on, an
     explicit choice that wins. Colours still fade softly on hover (no movement), so the page doesn't feel stiff. */
  @media (prefers-reduced-motion:reduce){
    .dashboard-host:not([data-candle-motion=on]),.dashboard-host:not([data-candle-motion=on]) *,.dashboard-host:not([data-candle-motion=on]) *::before,.dashboard-host:not([data-candle-motion=on]) *::after{
      animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;
      transition-property:color,background-color,border-color,box-shadow,opacity!important;transition-duration:.16s!important}
    .dashboard-host:not([data-candle-motion=on]) .lift:hover,.dashboard-host:not([data-candle-motion=on]) button:active:not(:disabled),.dashboard-host:not([data-candle-motion=on]) a.rounded-lg:active{transform:none}
  }
  ::-webkit-scrollbar{width:6px;height:6px}
  ::-webkit-scrollbar-track{background:#111113}
  ::-webkit-scrollbar-thumb{background:#252527;border-radius:3px}
  ::-webkit-scrollbar-thumb:hover{background:#333335}
  /* theme: the accent gradient (Theme menu in the header; saved per browser) */
  :root{--accent-from:#FF9A1F;--accent-via:#FF9A1F;--accent-to:#FF9A1F}
  .accent-grad{background-image:linear-gradient(135deg,var(--accent-from),var(--accent-via),var(--accent-to))}
  .accent-text{background-image:linear-gradient(90deg,var(--accent-from),var(--accent-via),var(--accent-to));-webkit-background-clip:text;background-clip:text;color:transparent}
  .accent-btn{background-image:linear-gradient(135deg,var(--accent-from),var(--accent-to));color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.25)}
  .accent-btn:hover{filter:brightness(1.12)}
  .accent-bar{height:2px;background-image:linear-gradient(90deg,var(--accent-from),var(--accent-via),var(--accent-to))}
  /* gradient themes: the whole app tinted by a background gradient; panels turn see-through so it shows */
  html.grad-bg .dashboard-host{background-image:var(--app-bg);background-attachment:fixed;background-size:cover}
  html.grad-bg [class*="bg-[#141416]"],html.grad-bg [class*="bg-[#111113]"]{background-color:rgba(12,12,14,.68)!important;backdrop-filter:blur(8px)}
  html.grad-bg [class*="bg-[#1a1a1c]"],html.grad-bg [class*="bg-[#171719]"],html.grad-bg [class*="bg-[#161618]"]{background-color:rgba(15,15,17,.5)!important}
  html.grad-bg .dashboard-host header{background-color:rgba(10,10,12,.55)!important}


/* UI-only layer. Embedded in PAGE_HTML for a one-file handoff. */
.dashboard-host.candle-workspace{--workspace-canvas:#141310;--workspace-panel:#1c1b17;--workspace-border:#38362f;--workspace-muted:#aaa79e;--workspace-ink:#f1efe8;background:var(--workspace-canvas);color:var(--workspace-ink);font-family:Geist,system-ui,sans-serif;font-size:14px}
.dashboard-host.candle-workspace .candle-light,.dashboard-host.candle-workspace .wick-halo{display:none}
.dashboard-host.candle-workspace .wick-flame,.dashboard-host.candle-workspace .wick-core,.dashboard-host.candle-workspace .flame-flicker,.dashboard-host.candle-workspace .rise{animation:none}
.dashboard-host.candle-workspace .lift:hover{transform:none;box-shadow:none}
.dashboard-host.candle-workspace header{background:#141310f5;backdrop-filter:none;padding:14px 28px;border-color:var(--workspace-border)}
.dashboard-host.candle-workspace header>div:first-child{max-width:1440px;gap:18px}
.dashboard-host.candle-workspace header>div:first-child>div:first-child>span:first-child{background:transparent;border:0;width:24px;border-radius:0}
.workspace-brand{font-size:24px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.workspace-brand-caption{display:block;margin-top:5px;font-family:'Geist Mono',monospace;font-size:8px;font-weight:400;letter-spacing:.08em;color:var(--workspace-muted)}
.dashboard-host.candle-workspace header .accent-bar{display:none}
.dashboard-host.candle-workspace button,.dashboard-host.candle-workspace input:not([type=checkbox]):not([type=radio]),.dashboard-host.candle-workspace select{min-height:40px;border-radius:4px}
.dashboard-host.candle-workspace button{transition:background-color .15s ease,border-color .15s ease}
.dashboard-host.candle-workspace button:active{transform:translateY(1px)}
.dashboard-host.candle-workspace :is(button,a,input,select):focus-visible{outline:2px solid rgb(var(--acc-400));outline-offset:3px}
.dashboard-host.candle-workspace .dashboard-main{max-width:1440px;padding:30px 28px 80px}
.dashboard-host.candle-workspace .dashboard-main>*+*{margin-top:24px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.workspace-kicker{font:10px 'Geist Mono',monospace;letter-spacing:.08em;color:var(--workspace-muted);margin-bottom:9px}
.workspace-heading h1{font-size:clamp(24px,3vw,34px);font-weight:500;letter-spacing:-.04em;line-height:1.2}
.workspace-mode{text-align:right}.workspace-mode>span{display:inline-flex;align-items:center;gap:8px;color:rgb(var(--acc-300));font-size:12px}.workspace-mode>span:before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%}
.workspace-mode p{font-size:11px;color:var(--workspace-muted);margin-top:6px}
.workspace-nav{display:flex;gap:28px;flex-wrap:wrap;border-bottom:1px solid var(--workspace-border);margin-top:18px!important}
.workspace-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--workspace-muted);border-bottom:2px solid transparent;text-decoration:none}
.workspace-nav a:first-child,.workspace-nav a:hover{color:var(--workspace-ink);border-color:rgb(var(--acc-400))}
.workspace-metrics{border:1px solid var(--workspace-border);border-radius:5px;overflow:hidden;background:var(--workspace-panel)}
.workspace-primary{display:grid;grid-template-columns:1.35fr 1fr 1fr}
.workspace-primary .metric-cell{justify-content:flex-start;padding:24px 28px;border:0;border-right:1px solid var(--workspace-border);border-radius:0;box-shadow:none;min-width:0;background:transparent}
.workspace-primary .metric-cell:last-child{border:0}
.workspace-primary .metric-cell>span{font-size:11px;font-weight:500;letter-spacing:.025em;text-transform:none;color:var(--workspace-muted)}
.workspace-primary .metric-cell>div[id]{font-size:clamp(23px,2.8vw,37px);font-weight:500;letter-spacing:-.045em;line-height:1.25;margin-top:14px}
.workspace-primary .metric-equity>div[id]{font-size:clamp(32px,3.8vw,48px);color:var(--workspace-ink)}
.workspace-start{display:flex;gap:12px;align-items:baseline;margin-top:14px;font-size:12px;color:var(--workspace-muted)}
.workspace-start strong{color:rgb(var(--acc-300));font-family:'Geist Mono',monospace;font-size:16px;font-weight:500}
.workspace-secondary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--workspace-border)}
.workspace-secondary .metric-cell{padding:17px 28px;border:0;border-right:1px solid var(--workspace-border);border-radius:0;background:transparent;box-shadow:none;min-width:0}
.workspace-secondary .metric-cell:last-child{border:0}
.workspace-secondary .metric-cell>span{font-size:10px;font-weight:500;letter-spacing:.02em;text-transform:none;color:var(--workspace-muted)}
.workspace-secondary .metric-cell>div[id]{font-size:20px;font-weight:500;letter-spacing:-.035em;margin-top:8px}
.workspace-secondary #s-unr-age{font-size:10px;white-space:normal}
.dashboard-host.candle-workspace .dashboard-main>section:not(.workspace-metrics):not(.workspace-positions){border:1px solid var(--workspace-border);border-radius:5px;background:var(--workspace-panel);box-shadow:none;padding:22px 26px}
.dashboard-host.candle-workspace .dashboard-main :is(h2,h3){font-size:15px;font-weight:500;letter-spacing:-.015em}
.dashboard-host.candle-workspace #chart-svg-wrap{height:280px}
.dashboard-host.candle-workspace .chart-now{box-shadow:none}
.dashboard-host.candle-workspace #perf-strip{border-color:var(--workspace-border);gap:14px;padding-top:18px}
.dashboard-host.candle-workspace .workspace-positions{gap:28px;padding-top:8px}
.dashboard-host.candle-workspace .workspace-positions>div{min-width:0}
.dashboard-host.candle-workspace .workspace-positions>div>div:first-child{flex-wrap:wrap;gap:10px}
.dashboard-host.candle-workspace :is(#pos-list,#tr-list)>div{border-radius:5px;box-shadow:none;background:var(--workspace-panel);border-color:var(--workspace-border)}
.dashboard-host.candle-workspace :is(#pos-empty,#tr-empty){background:var(--workspace-panel);border-radius:5px;border-color:var(--workspace-border);text-align:left;padding:28px;color:var(--workspace-muted)}
.dashboard-host.candle-workspace .workspace-positions :is(#pos-ct,#tr-ct){background:none;border-color:var(--workspace-border);color:var(--workspace-muted);border-radius:4px}
.dashboard-host.candle-workspace #whatif>div:first-child>div:first-child>p{font-size:12px;line-height:1.7;max-width:75ch}
.dashboard-host.candle-workspace :is(#whatif,#chain-board,#qc-card,#x-section){scroll-margin-top:110px}
.dashboard-host.candle-workspace #positions{scroll-margin-top:110px}
.dashboard-host.candle-workspace #status-bar{background:#141310f5;border-color:var(--workspace-border);backdrop-filter:none;padding:8px 28px;box-shadow:none}
.dashboard-host.candle-workspace #status-bar :is(#sb-ping,#sb-fps){font-size:10px}
.dashboard-host.candle-workspace :is(#settings-modal,#reset-modal,#pnl-modal)>div{border-radius:6px;border-color:var(--workspace-border);background:var(--workspace-panel);box-shadow:none}
.dashboard-host.candle-workspace :is(#theme-panel,#alerts-panel,#chain-panel){border-radius:5px;background:#24221d;border-color:var(--workspace-border);box-shadow:0 12px 28px #14131080}
.dashboard-host.candle-workspace .ava{border-radius:4px;box-shadow:none}
.dashboard-host.candle-workspace .text-slate-500{color:#96928a}.dashboard-host.candle-workspace .text-slate-600{color:#88847c}
@media(max-width:1100px){.dashboard-host.candle-workspace header>div:first-child{align-items:flex-start}.dashboard-host.candle-workspace header>div:first-child>div:last-child{gap:8px}.workspace-primary .metric-cell{padding:22px}.workspace-secondary .metric-cell{padding:17px 20px}}
@media(max-width:767px){
 .dashboard-host.candle-workspace header{position:relative;padding:17px 16px}.dashboard-host.candle-workspace header>div:first-child{display:grid;gap:18px}.dashboard-host.candle-workspace header>div:first-child>div:last-child{gap:8px}.dashboard-host.candle-workspace button,.dashboard-host.candle-workspace input:not([type=checkbox]):not([type=radio]),.dashboard-host.candle-workspace select{min-height:44px}
 .dashboard-host.candle-workspace .dashboard-main{padding:26px 16px 95px}.workspace-heading{align-items:flex-start;flex-direction:column;gap:14px}.workspace-mode{text-align:left}.workspace-mode p{margin:4px 0 0}.workspace-nav{gap:0;justify-content:space-between}.workspace-nav a{font-size:11px;padding-right:12px}.workspace-nav a:last-child{padding-right:0}
 .workspace-primary{grid-template-columns:1fr}.workspace-primary .metric-cell{padding:20px;border-right:0;border-bottom:1px solid var(--workspace-border)}.workspace-primary .metric-cell:last-child{border:0}.workspace-primary .metric-cell>div[id]{font-size:30px;margin-top:8px}.workspace-primary .metric-equity>div[id]{font-size:40px}.workspace-start{margin-top:10px}
 .workspace-secondary{grid-template-columns:1fr}.workspace-secondary .metric-cell{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px;padding:13px 20px;border:0;border-bottom:1px solid var(--workspace-border)}.workspace-secondary .metric-cell>span{font-size:12px}.workspace-secondary .metric-cell>div[id]{margin:0;font-size:18px}.workspace-secondary #s-unr-age{flex-basis:100%;font-size:10px}
 .dashboard-host.candle-workspace .dashboard-main>section:not(.workspace-metrics):not(.workspace-positions){padding:20px 16px}.dashboard-host.candle-workspace #chart-svg-wrap{height:230px}.dashboard-host.candle-workspace .workspace-positions{grid-template-columns:1fr;gap:32px}.dashboard-host.candle-workspace #perf-strip{grid-template-columns:1fr;gap:15px}
 .dashboard-host.candle-workspace :is(#theme-panel,#alerts-panel,#chain-panel){max-width:calc(100vw - 32px)}.dashboard-host.candle-workspace #status-bar{padding:8px 12px;white-space:normal;flex-wrap:wrap;gap:8px}.dashboard-host.candle-workspace #sb-prices{flex-wrap:wrap;gap:8px}.dashboard-host.candle-workspace #sb-net{margin-left:auto}.dashboard-host.candle-workspace #chart-range-group button{padding:4px 9px}.dashboard-host.candle-workspace #chart-range-group{max-width:100%}
 .dashboard-host.candle-workspace table{font-size:12px}.dashboard-host.candle-workspace #wi-scope{flex-wrap:wrap}.dashboard-host.candle-workspace #whatif input{max-width:100%}.dashboard-host.candle-workspace .dashboard-main>p:last-child{text-align:left;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){.dashboard-host.candle-workspace:not([data-candle-motion=on]) *,.dashboard-host.candle-workspace:not([data-candle-motion=on]) *::before,.dashboard-host.candle-workspace:not([data-candle-motion=on]) *::after{animation:none!important;scroll-behavior:auto!important}}

.dashboard-host.candle-workspace #set-body section>div{border-radius:4px;background:#24221d;border-color:var(--workspace-border)}
@media(max-width:767px){
 .dashboard-host.candle-workspace #set-body .flex.items-start.justify-between{flex-direction:column;gap:12px}
 .dashboard-host.candle-workspace #set-body .text-sm{font-size:14px}.dashboard-host.candle-workspace #set-body .text-\[11px\]{font-size:12px;line-height:1.55}
 .dashboard-host.candle-workspace #set-body input[type=number]{width:100%}.dashboard-host.candle-workspace #set-body .shrink-0{width:100%}
 .dashboard-host.candle-workspace #set-body .shrink-0>span{display:flex}.dashboard-host.candle-workspace #set-body label{min-height:44px}
}

/* Candle's original financial graphics. Embedded in the dashboard. */
.dashboard-host.candle-workspace{--gfx-positive:#42cba0;--gfx-negative:#eb7b87;--gfx-flat:#8a867d}
.workspace-heading{padding-top:4px}.workspace-kicker{color:rgb(var(--acc-300));letter-spacing:.1em}
.workspace-heading h1{font-weight:600;font-size:clamp(26px,3vw,36px)}
.workspace-mode>span{padding:8px 12px;background:rgb(var(--acc-400)/.065);border:1px solid rgb(var(--acc-400)/.19);border-radius:5px}
.workspace-primary .metric-cell{position:relative;overflow:hidden;min-height:183px}
.workspace-primary .metric-cell>span{position:relative;z-index:1;display:flex;gap:9px;align-items:center;justify-content:space-between}
.gfx-metric-mark{width:21px;height:21px;stroke:rgb(var(--acc-300));flex-shrink:0}
.workspace-primary .metric-equity{background:linear-gradient(115deg,rgb(var(--acc-400)/.065),transparent 65%)}
.workspace-primary .metric-equity:before{content:'';position:absolute;right:18px;top:18px;width:120px;height:60px;background-image:radial-gradient(rgb(var(--acc-300)/.15) .7px,transparent .7px);background-size:8px 8px;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#fff)}
.workspace-primary .metric-equity>div[id]{font-size:clamp(32px,3.5vw,47px)}
.workspace-start{margin-top:12px;position:relative;z-index:1}
.workspace-start strong{font-size:17px}
.gfx-spark{width:100%;height:40px;margin-top:15px;overflow:hidden;color:rgb(var(--acc-300));position:relative}
.gfx-spark svg{display:block;width:100%;height:100%}
#gfx-equity-spark{color:rgb(var(--acc-300));font-size:initial;line-height:normal}
.gfx-spark-caption{display:flex;justify-content:space-between;gap:12px;margin-top:5px;font:9px 'Geist Mono',monospace;color:var(--workspace-muted)}
.gfx-metric-note{font-size:11px;line-height:1.65;margin-top:15px;color:var(--workspace-muted);max-width:27ch}
.workspace-primary .metric-cell:not(.metric-equity){justify-content:center}
.workspace-primary .metric-cell:not(.metric-equity)>span{margin-top:0}
.workspace-primary .metric-cell #s-pnl,.workspace-primary .metric-cell #s-ret{font-size:clamp(25px,2.6vw,36px);font-weight:500;letter-spacing:-.045em}
.workspace-secondary .metric-cell{padding:16px 24px;background:#14131018}
.workspace-secondary .metric-cell>div[id]{font-size:18px}
.workspace-analysis{display:grid;grid-template-columns:minmax(0,1fr) 290px;border:1px solid var(--workspace-border);border-radius:6px;overflow:hidden;background:var(--workspace-panel)}
.dashboard-host.candle-workspace .dashboard-main>.workspace-analysis{padding:0!important;background:var(--workspace-panel)!important}
.workspace-analysis .workspace-chart{padding:24px 26px;border:0;background:transparent;box-shadow:none;min-width:0;border-radius:0}
.dashboard-host.candle-workspace .workspace-analysis #chart-svg-wrap{height:276px}
.workspace-analysis #perf-strip{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}
.workspace-analysis #perf-strip>div{min-width:0}
.workspace-analysis #perf-strip>div>div:first-child{font-size:9px;letter-spacing:.035em}
.workspace-analysis #perf-strip>div>div:nth-child(2){font-size:13px}
.workspace-analysis #perf-strip>div>div:nth-child(3){font-size:9px;white-space:normal}
.gfx-insights{border-left:1px solid var(--workspace-border);background:#14131030;display:flex;flex-direction:column;min-width:0}
.gfx-insights>section{padding:20px 22px;border-bottom:1px solid var(--workspace-border);min-width:0}
.gfx-insights>section:last-child{border:0;flex:1}
.gfx-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.gfx-label{font-size:11px;font-weight:500;color:var(--workspace-ink)}.gfx-icon{width:17px;height:17px;color:var(--workspace-muted)}.gfx-detail{font:9px 'Geist Mono',monospace;color:var(--workspace-muted)}
.gfx-ring-layout{display:flex;align-items:center;gap:19px}
.gfx-ring{position:relative;width:114px;height:114px;flex-shrink:0}.gfx-ring svg{width:100%;height:100%;display:block;overflow:visible}
.gfx-ring-track{fill:none;stroke:#38362f;stroke-width:6}.gfx-ring-value{fill:none;stroke:rgb(var(--acc-300));stroke-width:6;stroke-linecap:round}
.gfx-ring-caption{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.gfx-ring-caption strong{font:500 20px 'Geist Mono',monospace;letter-spacing:-.035em}.gfx-ring-caption span{font-size:10px;color:var(--workspace-muted)}
.gfx-outcome-counts{display:grid;gap:9px;font-size:11px;color:var(--workspace-muted)}.gfx-outcome-counts>span{display:flex;gap:5px;align-items:center}.gfx-outcome-counts strong{font:500 12px 'Geist Mono',monospace;color:var(--workspace-ink)}.gfx-outcome-counts small{font-size:9px;line-height:1.5;margin-top:3px}
.gfx-dot{display:inline-block;width:5px;height:5px;border-radius:50%;flex-shrink:0;margin-right:3px}.gfx-good{background:var(--gfx-positive)}.gfx-bad{background:var(--gfx-negative)}.gfx-neutral{background:var(--gfx-flat)}
.gfx-trade-strip{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;min-height:30px}
.gfx-trade-tile{height:13px;border-radius:2px;opacity:.8}.gfx-trade-tile.gfx-good{background:#42cba050;border:1px solid #42cba060}.gfx-trade-tile.gfx-bad{background:#eb7b8730;border:1px solid #eb7b8750}.gfx-trade-tile.gfx-neutral{background:#8a867d35;border:1px solid #8a867d50}.gfx-trade-tile:hover{opacity:1}
.gfx-quiet{font-size:10px;line-height:1.7;color:var(--workspace-muted);margin-top:11px}.gfx-strip-key{display:flex;gap:14px;font-size:9px;color:var(--workspace-muted);margin-top:10px}.gfx-strip-key>span{display:flex;align-items:center;gap:3px}
.gfx-allocation-label{display:flex;gap:9px;align-items:baseline;margin-bottom:14px}.gfx-allocation-label strong{font:500 23px 'Geist Mono',monospace;letter-spacing:-.03em}.gfx-allocation-label>span{font-size:11px;color:var(--workspace-muted)}
.gfx-allocation-track{height:6px;background:#38362f;border-radius:3px;overflow:hidden}.gfx-allocation-track>span{display:block;width:100%;height:100%;background:rgb(var(--acc-300));transform:scaleX(0);transform-origin:left center;border-radius:3px}
.gfx-capital-values{display:flex;justify-content:space-between;gap:16px;margin-top:14px}.gfx-capital-values>span{display:grid;gap:7px;font-size:10px;color:var(--workspace-muted)}.gfx-capital-values strong{font:500 12px 'Geist Mono',monospace;color:var(--workspace-ink)}
.dashboard-host.candle-workspace .workspace-positions>div>div:first-child{padding:4px 0 13px;border-bottom:1px solid var(--workspace-border);margin-bottom:16px}
.dashboard-host.candle-workspace :is(#pos-list,#tr-list)>div{border-radius:6px;transition:border-color .18s ease,transform .18s ease}
.dashboard-host.candle-workspace .ava{background:linear-gradient(135deg,#353127,#25231e)!important;border-color:#4b4536!important;color:#e9c389!important;border-radius:8px}
.dashboard-host.candle-workspace :is(#pos-list,#tr-list)>div:hover{border-color:rgb(var(--acc-400)/.34)}
.dashboard-host.candle-workspace #pos-empty{position:relative;min-height:170px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:14px;color:var(--workspace-muted)}
.dashboard-host.candle-workspace #pos-empty:before{content:'';display:block;width:44px;height:44px;border:1px solid rgb(var(--acc-300)/.25);border-radius:10px;background:linear-gradient(90deg,transparent 47%,rgb(var(--acc-300)/.35) 47%,rgb(var(--acc-300)/.35) 53%,transparent 53%) center/18px 18px no-repeat,linear-gradient(0deg,transparent 47%,rgb(var(--acc-300)/.35) 47%,rgb(var(--acc-300)/.35) 53%,transparent 53%) center/18px 18px no-repeat,rgb(var(--acc-300)/.025)}
.dashboard-host.candle-workspace #status-bar{font-size:10px}.dashboard-host.candle-workspace #sb-net{border:0!important;background:transparent!important}
.dashboard-host.candle-workspace #btn-motion{background:#24221d;border:1px solid var(--workspace-border);color:var(--workspace-muted);padding:7px 10px;display:inline-flex;gap:7px;align-items:center;font-size:11px}
.dashboard-host.candle-workspace #btn-motion[aria-pressed=true]{color:rgb(var(--acc-300));border-color:rgb(var(--acc-400)/.25)}
.workspace-nav a:first-child{border-color:transparent;color:var(--workspace-muted)}.workspace-nav a[aria-current=location]{color:var(--workspace-ink);border-color:rgb(var(--acc-400))}
.dashboard-host.candle-workspace[data-candle-motion=on]{scroll-behavior:smooth}
@keyframes gfx-flame-motion{0%,100%{transform:rotate(-2deg) scaleY(.98)}50%{transform:rotate(2deg) scaleY(1.05)}}
@keyframes gfx-fresh-pulse{0%,100%{opacity:.65}50%{opacity:1}}
.dashboard-host.candle-workspace[data-candle-motion=on] header .wick-flame{animation:gfx-flame-motion 3s ease-in-out infinite!important;transform-origin:50% 92%}
.dashboard-host.candle-workspace[data-candle-motion=on] .workspace-mode>span:before{animation:gfx-fresh-pulse 3s ease-in-out infinite!important}
.dashboard-host.candle-workspace[data-candle-motion=on] .workspace-positions .lift:hover{transform:translateY(-2px)}
.dashboard-host.candle-workspace[data-candle-motion=off] *{scroll-behavior:auto!important}.dashboard-host.candle-workspace[data-page-hidden=true] *{animation-play-state:paused!important}
@media(max-width:1180px){.workspace-analysis{grid-template-columns:minmax(0,1fr) 260px}.gfx-insights>section{padding:18px}.gfx-ring{width:98px;height:98px}.gfx-ring-layout{gap:12px}.gfx-ring-caption strong{font-size:18px}.workspace-analysis .workspace-chart{padding:22px}.workspace-analysis #perf-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.workspace-analysis{grid-template-columns:1fr}.gfx-insights{border-left:0;border-top:1px solid var(--workspace-border);display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.gfx-insights>section{border-bottom:0;border-right:1px solid var(--workspace-border)}.gfx-ring-layout{gap:10px}.gfx-ring{width:88px;height:88px}.gfx-ring-caption strong{font-size:16px}.workspace-analysis #perf-strip{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){.workspace-primary .metric-cell{min-height:0}.workspace-primary .metric-cell:not(.metric-equity){justify-content:flex-start}.workspace-primary .metric-cell>span{font-size:12px}.workspace-primary .metric-equity>div[id]{font-size:39px}.gfx-spark{height:50px;margin-top:16px}.gfx-metric-note{font-size:12px;max-width:none}.workspace-secondary .metric-cell>div[id]{font-size:18px}.workspace-analysis{grid-template-columns:1fr}.workspace-analysis .workspace-chart{padding:20px 16px}.dashboard-host.candle-workspace .workspace-analysis #chart-svg-wrap{height:230px}.workspace-analysis #perf-strip{grid-template-columns:1fr}.workspace-analysis #perf-strip>div>div:first-child{font-size:11px}.workspace-analysis #perf-strip>div>div:nth-child(2){font-size:17px}.workspace-analysis #perf-strip>div>div:nth-child(3){font-size:11px}.gfx-insights{grid-template-columns:1fr}.gfx-insights>section{border-right:0;border-bottom:1px solid var(--workspace-border);padding:22px}.gfx-ring{width:124px;height:124px}.gfx-ring-layout{gap:25px}.gfx-ring-caption strong{font-size:22px}.gfx-outcome-counts{font-size:13px;gap:13px}.gfx-outcome-counts strong{font-size:14px}.gfx-outcome-counts small{font-size:11px}.gfx-label{font-size:13px}.gfx-detail,.gfx-quiet,.gfx-strip-key,.gfx-capital-values>span{font-size:11px}.gfx-capital-values strong{font-size:14px}.gfx-trade-tile{height:19px}.gfx-trade-strip{gap:5px}.dashboard-host.candle-workspace #btn-motion{font-size:12px}.workspace-primary .metric-cell #s-pnl,.workspace-primary .metric-cell #s-ret{font-size:30px}}

/* Compact history cards, following the owner's original dashboard reference. */
.dashboard-host.candle-workspace #tr-list>.trade-card{padding:20px;border-radius:14px;background:#241e14;border:1px solid #3b3222;box-shadow:none;min-width:0}
.trade-card-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px}
.trade-identity{display:flex;align-items:flex-start;gap:16px;min-width:0;flex:1; margin:0!important}
.trade-identity>*+*{margin-left:0!important}.trade-copy{min-width:0;flex:1}
.trade-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;line-height:20px}.trade-title>*+*{margin-left:0!important}
.trade-title>span:first-child{font-size:16px;font-weight:700;line-height:20px;overflow-wrap:anywhere}.trade-title>span:last-child{font-size:12px;color:#88877d;min-width:0;overflow-wrap:anywhere}
.trade-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;line-height:16px;font-size:11px}.trade-date{font-size:10px;white-space:nowrap;color:#89877c}
.trade-finance{display:flex;align-items:center;gap:18px;flex-shrink:0;border:0;padding:0;margin:0!important}
.trade-finance>*+*{margin-left:0!important}.trade-stats{font:12px/19px 'Geist Mono',monospace;min-width:125px}
.trade-stats>div{display:flex;justify-content:flex-end;gap:7px;white-space:nowrap;font-size:12px;line-height:19px}
.trade-actions{display:flex;align-items:center;gap:7px}.trade-actions>*+*{margin-left:0!important}
.dashboard-host.candle-workspace .trade-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 12px;border-radius:8px;font-size:12px;line-height:18px;background:#212123;border:1px solid #353333;white-space:nowrap}
.dashboard-host.candle-workspace .trade-card .trade-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;padding-top:12px;margin-top:12px;border:0;font:11px/17px 'Geist Mono',monospace;color:#969184}
.trade-footer>span:last-child{min-width:0;max-width:100%}.dashboard-host.candle-workspace .trade-footer .ca-chip{min-height:24px;padding:2px 4px;margin:0;font:11px/17px 'Geist Mono',monospace;color:#969184}
.trade-footer .ca-chip>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.trade-footer .ca-chip .ca-done{flex-shrink:0}
.dashboard-host.candle-workspace .trade-card .ava{width:48px;height:48px;border-radius:14px;box-shadow:none;background-color:#25231c!important;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))!important;border-color:#514333!important;color:#e7e9ef!important}
.chain-logo-wrap{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;vertical-align:middle;line-height:0}.chain-logo{display:block;object-fit:contain;max-width:100%;max-height:100%}
.chain-logo-wrap[data-chain=robinhood]{background:#ccff00;border-radius:50%;padding:2px;box-sizing:content-box}
@media(min-width:1180px){.dashboard-host.candle-workspace .workspace-positions{grid-template-columns:minmax(280px,.8fr) minmax(0,1.7fr);align-items:start}}
@media(min-width:768px) and (max-width:1179px){.dashboard-host.candle-workspace .workspace-positions{grid-template-columns:1fr}}
@media(max-width:767px){.dashboard-host.candle-workspace #tr-list>.trade-card{padding:16px;border-radius:12px}.trade-card-top{flex-direction:column;align-items:stretch;gap:14px}.trade-identity{gap:12px}.trade-title>span:first-child{font-size:15px}.trade-finance{justify-content:space-between;gap:10px}.trade-stats{min-width:0}.trade-stats>div{justify-content:flex-start}.dashboard-host.candle-workspace .trade-actions :is(a,button){min-height:44px;padding:9px 11px}.dashboard-host.candle-workspace .trade-footer .ca-chip{min-height:44px}.trade-footer>span:last-child{margin-left:0}.trade-footer{align-items:flex-start}.trade-meta{gap:5px}}
@media(max-width:767px){.trade-finance{flex-wrap:wrap;row-gap:12px}.trade-footer>span:first-child{white-space:normal}}

.dashboard-host.candle-workspace #pnl-modal>div{max-width:920px;max-height:95dvh;overflow-y:auto;border-color:#514638}
.dashboard-host.candle-workspace #pnl-modal>div>div:first-child{padding:17px 22px;background:#242119;border-color:var(--workspace-border)}
.dashboard-host.candle-workspace #pnl-modal h3{font-size:14px;font-weight:500}.dashboard-host.candle-workspace #pnl-close{width:40px;height:40px;border-radius:4px}
.dashboard-host.candle-workspace #pnl-modal .p-5{padding:22px}.dashboard-host.candle-workspace #pnl-cv{border-radius:5px;border:1px solid var(--workspace-border);background:#141310}
.dashboard-host.candle-workspace #pnl-cv{width:auto;max-width:100%;height:auto;max-height:max(150px,calc(95dvh - 310px));aspect-ratio:16/9;margin-inline:auto;object-fit:contain}
.dashboard-host.candle-workspace #pnl-modal:has(#pnl-video-dl:not([hidden])) #pnl-cv{max-height:max(150px,calc(95dvh - 350px))}
.share-studio-controls{padding:16px 0 18px;border-bottom:1px solid var(--workspace-border);margin-bottom:18px}.share-media-row,.share-edit-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.share-upload{display:inline-flex;gap:8px;align-items:center;position:relative;min-height:42px;padding:9px 13px;border:1px solid var(--workspace-border);border-radius:4px;font-size:12px;background:#24221d;color:var(--workspace-ink);cursor:pointer}.share-upload svg{width:17px;height:17px}.share-upload:focus-within{outline:2px solid rgb(var(--acc-400));outline-offset:3px}
.share-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;min-height:0!important;padding:0!important;margin:0;cursor:pointer;z-index:1}.share-upload:has(input:disabled){opacity:.45;cursor:default}
.dashboard-host.candle-workspace #pnl-media-clear{font-size:12px;color:var(--workspace-muted);border:1px solid var(--workspace-border);padding:9px 12px;background:transparent}.dashboard-host.candle-workspace #pnl-media-clear:disabled{opacity:.35;cursor:default}
.dashboard-host.candle-workspace :is(#pnl-media-play,#pnl-media-sound){font-size:12px;border:1px solid var(--workspace-border);padding:9px 12px;background:#24221d;color:var(--workspace-ink);min-height:42px}.dashboard-host.candle-workspace :is(#pnl-media-play,#pnl-media-sound):disabled{opacity:.45;cursor:default}
#pnl-media-name{font-size:11px;color:var(--workspace-muted);overflow-wrap:anywhere}.share-edit-row{margin-top:15px;justify-content:space-between}.share-edit-row>label{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--workspace-muted)}.share-edit-row input[type=range]{width:125px;min-height:24px!important;accent-color:rgb(var(--acc-400));background:none;padding:0;border:0}.share-edit-row output{font:10px 'Geist Mono',monospace;min-width:28px}.share-local-note{font-size:10px;color:var(--workspace-muted)}.share-media-status{font-size:11px;line-height:1.7;color:var(--workspace-muted)}.share-media-status:not(:empty){margin-top:12px}.share-media-status[data-error=true]{color:#f1a5ae}
.dashboard-host.candle-workspace #pnl-video-dl{font-size:12px;background:#24221d;border:1px solid var(--workspace-border);padding:9px 13px;color:var(--workspace-ink)}.dashboard-host.candle-workspace #pnl-video-dl:disabled{opacity:.45;cursor:default}.share-exports{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:767px){.dashboard-host.candle-workspace #pnl-modal{padding:10px}.dashboard-host.candle-workspace #pnl-modal .p-5{padding:14px}.dashboard-host.candle-workspace #pnl-modal>div>div:first-child{padding:11px 14px}.share-edit-row>label{width:100%;justify-content:space-between;gap:8px}.share-edit-row input[type=range]{flex:1;min-width:50px}.share-upload{font-size:12px;min-height:44px}.share-exports{width:100%}.share-exports>button{flex:1}.dashboard-host.candle-workspace #pnl-note{display:block;font-size:10px;max-width:230px}}

/* ── Polish (7 Oct): one warm palette, header and content edges aligned, values aligned, no holes ── */
/* width: more of a 1920 screen; the header's inner row is the content's width (.dashboard-main's 1600 minus its 2 x 28 px padding) */
.dashboard-host.candle-workspace .dashboard-main{max-width:1600px}
.dashboard-host.candle-workspace header>div:first-child{max-width:1544px}
/* the three headline cells: label and number at the top, the note / sparkline at the bottom, in every cell */
.workspace-primary .metric-cell:not(.metric-equity){justify-content:flex-start}
.workspace-primary .gfx-metric-note{margin-top:auto;padding-top:15px}
.workspace-primary .metric-equity .gfx-spark{margin-top:auto}
@media(min-width:768px){.workspace-secondary .metric-cell{justify-content:flex-start}}
/* phones: "Cash Balance ... $4,336.62" on one line, as intended (the old flex-col class kept stacking them) */
@media(max-width:767px){.workspace-secondary .metric-cell{flex-direction:row}}
/* the old page's cool greys, mapped onto the warm scale (canvas #141310, panel #1c1b17, raised #24221d) */
.dashboard-host.candle-workspace :is(.bg-\[\#0c0c0e\],.bg-\[\#111113\]){background-color:#151410}
.dashboard-host.candle-workspace .bg-\[\#141416\]:not(.metric-cell){background-color:#1c1b17}
.dashboard-host.candle-workspace :is(.bg-\[\#161618\],.bg-\[\#171719\],.bg-\[\#19191b\],.bg-\[\#1a1a1c\],.bg-\[\#1c1c1e\],.bg-\[\#1d1d1f\],.bg-\[\#1f1f21\]){background-color:#24221d}
.dashboard-host.candle-workspace .bg-\[\#1b1b1d\]\/95{background-color:#24221df2}
.dashboard-host.candle-workspace :is(.hover\:bg-\[\#151517\],.hover\:bg-\[\#171719\],.hover\:bg-\[\#1a1a1c\],.hover\:bg-\[\#1e1e20\],.hover\:bg-\[\#1f1f21\],.hover\:bg-\[\#202022\],.hover\:bg-\[\#262628\],.hover\:bg-\[\#272729\]):hover{background-color:#2c2a24}
.dashboard-host.candle-workspace :is(.border-\[\#1d1d1f\],.border-\[\#1f1f21\],.border-\[\#202022\],.border-\[\#212123\],.border-\[\#222224\],.border-\[\#232325\]){border-color:#2f2d27}
.dashboard-host.candle-workspace :is(.border-\[\#272729\],.border-\[\#29292b\],.border-\[\#2a2a2c\],.border-\[\#2b2b2d\],.border-\[\#2e2e30\],.border-\[\#2f2f31\],.border-\[\#333335\]){border-color:#38362f}
.dashboard-host.candle-workspace :is(.hover\:border-\[\#303032\],.hover\:border-\[\#323234\]):hover{border-color:#4a463c}
/* card titles: one style everywhere (they were grey capitals beside white "Equity Curve" / "What-if lab") */
.dashboard-host.candle-workspace .dashboard-main h2.uppercase{text-transform:none;letter-spacing:-.015em;color:var(--workspace-ink)}
/* the 7 range stats: 4 + 3 tiles that fill both rows (a 4-column grid left a hole) */
@media(min-width:768px){
 .workspace-analysis #perf-strip{grid-template-columns:repeat(12,minmax(0,1fr))}
 .workspace-analysis #perf-strip>div{grid-column:span 3}
 .workspace-analysis #perf-strip>div:nth-child(n+5){grid-column:span 4}
}
/* insights rail: the three panels share its height instead of one tall empty one at the bottom */
.gfx-insights>section{flex:1;display:flex;flex-direction:column;justify-content:center}
/* open-position cards match the closed ones; an empty list shows no "+" (nothing to add by hand) */
.dashboard-host.candle-workspace #pos-list>div{background:#241e14;border-color:#3b3222;border-radius:14px}
.dashboard-host.candle-workspace #pos-empty{min-height:120px}.dashboard-host.candle-workspace #pos-empty:before{display:none}
.dashboard-host.candle-workspace .trade-actions :is(a,button){background:#2b2519;border-color:#4a3f2c}
.dashboard-host.candle-workspace .trade-actions :is(a,button):hover{background:#352d1f;border-color:#5c4e37}
/* Motion reads as a normal button, not a disabled one */
.dashboard-host.candle-workspace #btn-motion{color:#cfcbc3;font-size:12px;padding:6px 12px}
/* coin view: click a coin, its chart opens */
.coin-hit{cursor:pointer}.coin-hit:hover .trade-title>span:first-child,.coin-hit:hover .font-bold{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgb(var(--acc-400)/.6)}
.cv-panel{width:100%;max-width:1200px;display:flex;flex-direction:column;background:var(--workspace-panel);border:1px solid var(--workspace-border);border-radius:8px;max-height:94vh;overflow:hidden}
.cv-head{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--workspace-border)}
#cv-sym{font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--workspace-ink)}
#cv-price{font:600 18px 'Geist Mono',monospace;color:var(--workspace-ink)}#cv-change{font:500 13px 'Geist Mono',monospace}#cv-when{font-size:11px;color:var(--workspace-muted)}
.cv-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.dashboard-host.candle-workspace .cv-actions :is(a,button){display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:6px;font-size:12px;background:#24221d;border:1px solid var(--workspace-border);color:var(--workspace-ink)}
.dashboard-host.candle-workspace .cv-actions :is(a,button):hover{background:#2c2a24}.dashboard-host.candle-workspace #cv-close{font-size:16px;padding:6px 11px}
.cv-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 20px}
.cv-tf{display:flex;gap:3px;padding:3px;background:#151410;border:1px solid #2f2d27;border-radius:6px}
.dashboard-host.candle-workspace .cv-tf button{min-height:30px;padding:3px 11px;border-radius:4px;font:500 12px 'Geist Mono',monospace;color:var(--workspace-muted);background:none;border:0}
.dashboard-host.candle-workspace .cv-tf button[aria-pressed=true]{background:#2c2a24;color:rgb(var(--acc-300))}
.cv-big{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--workspace-muted)}
.dashboard-host.candle-workspace .cv-big select{min-height:30px;padding:2px 22px 2px 8px;font-size:12px;background:#151410;border:1px solid #38362f;border-radius:4px;color:var(--workspace-ink)}
.cv-big input{accent-color:rgb(var(--acc-400))}.cv-source{margin-left:auto;font-size:11px;color:var(--workspace-muted)}
.cv-chart{position:relative;height:min(460px,52vh);margin:0 12px;border:1px solid #2f2d27;border-radius:6px;background:#151410;cursor:crosshair;touch-action:pan-y}
/* phones (8 Oct): the charts take pinch and sideways drags; an up-down swipe still scrolls the page */
#chart-svg-wrap{touch-action:pan-y}
.cv-touch-hint{display:none;margin:6px 12px 0;font-size:11px;color:#7d776a}
@media(pointer:coarse){.cv-touch-hint{display:block}}
.cv-chart canvas{position:absolute;inset:0;width:100%;height:100%}
.cv-cross{position:absolute;top:0;bottom:0;width:1px;background-image:linear-gradient(rgba(241,239,232,.28) 50%,transparent 50%);background-size:1px 6px;pointer-events:none}
.cv-hline{position:absolute;left:8px;height:1px;background-image:linear-gradient(90deg,rgba(241,239,232,.28) 50%,transparent 50%);background-size:6px 1px;pointer-events:none}
.cv-ytag,.cv-xtag{position:absolute;z-index:1;pointer-events:none;font:600 10px/18px 'Geist Mono',monospace;color:#101914;background:#d6d2c8;border-radius:4px;white-space:nowrap}
.cv-ytag{right:2px;transform:translateY(-50%);padding:0 6px}.cv-xtag{transform:translateX(-50%);padding:0 7px}
:is(.cv-cross,.cv-hline,.cv-ytag,.cv-xtag,.cv-tip)[hidden]{display:none}
/* dark checkboxes that match (the browser's white box looked out of place) */
:is(.cv-big,.share-toggles) input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin:0;border:1.5px solid #5a5548;border-radius:4px;background:#151410;display:inline-grid;place-content:center;cursor:pointer}
:is(.cv-big,.share-toggles) input[type=checkbox]::after{content:'';width:8px;height:4px;border:2px solid #1a1712;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px);opacity:0}
:is(.cv-big,.share-toggles) input[type=checkbox]:checked{background:rgb(var(--acc-400));border-color:rgb(var(--acc-400))}
:is(.cv-big,.share-toggles) input[type=checkbox]:checked::after{opacity:1}
:is(.cv-big,.share-toggles) input[type=checkbox]:focus-visible{outline:2px solid rgb(var(--acc-400));outline-offset:2px}
.cv-tip{position:absolute;top:8px;z-index:2;min-width:170px;padding:9px 11px;border-radius:6px;background:#24221df2;border:1px solid #38362f;font:11px/1.6 'Geist Mono',monospace;color:var(--workspace-ink);pointer-events:none}
.cv-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--workspace-muted)}
.cv-legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 20px 0;font-size:11px;color:var(--workspace-muted)}
.cv-legend i{display:inline-block;width:14px;height:0;border-top:2px dashed currentColor;vertical-align:middle;margin-right:5px}.cv-legend b{display:inline-block;width:8px;height:8px;border-radius:50%;vertical-align:middle;margin-right:5px}
.cv-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1px;margin:12px 20px 18px;background:#2f2d27;border:1px solid #2f2d27;border-radius:6px;overflow:hidden}
.cv-stats>div{background:var(--workspace-panel);padding:10px 12px;min-width:0}.cv-stats>div:last-child{grid-column:1/-1}.cv-stats>div>span{display:block;font-size:10px;color:var(--workspace-muted);margin-bottom:4px}
.cv-stats>div>strong{display:block;font:500 13px 'Geist Mono',monospace;color:var(--workspace-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:767px){.cv-panel{max-height:none;height:100%;border-radius:0;border:0;overflow-y:auto}.cv-head{flex-wrap:wrap;padding:14px 14px}.cv-actions{width:100%;margin-left:0}.dashboard-host.candle-workspace #cv-close{margin-left:auto}
 .cv-tools{padding:10px 14px}.cv-source{margin-left:0;width:100%}.cv-chart{margin:0 8px;height:46vh}.cv-legend{padding:10px 14px 0}.cv-stats{margin:12px 14px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}}
/* your results in other currencies: the line under Realized PnL and the list it opens */
.dashboard-host.candle-workspace .fx-line{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:10px;padding:2px 0;min-height:0;background:none;border:0;border-radius:0;font:500 14px 'Geist Mono',monospace;letter-spacing:-.02em;color:var(--workspace-muted);cursor:pointer}
.dashboard-host.candle-workspace .fx-line:hover{color:var(--workspace-ink)}.dashboard-host.candle-workspace .fx-line[hidden]{display:none}.fx-line svg{width:12px;height:12px;flex-shrink:0}
.dashboard-host.candle-workspace #fx-modal>div{border-radius:6px;border-color:var(--workspace-border);background:var(--workspace-panel);box-shadow:none}
.fx-row{cursor:pointer;border-top:1px solid #2f2d27}.fx-row:hover,.fx-row:focus-visible{background:#24221d;outline:none}
@media(max-width:767px){#fx-table{font-size:12px!important}#fx-table td{font-size:12px}#fx-table td:first-child{max-width:6rem}#fx-table th{font-size:10px;letter-spacing:.02em}#fx-table td,#fx-table th{padding-right:8px}#fx-table td:last-child,#fx-table th:last-child{padding-right:0}.dashboard-host.candle-workspace #fx-modal .overflow-y-auto{padding-left:12px;padding-right:12px}}
.fx-row.fx-on{background:rgb(var(--acc-400)/.08)}.fx-row.fx-on td:first-child{box-shadow:inset 2px 0 rgb(var(--acc-400));padding-left:10px}.fx-row td:first-child{padding-left:10px}

/* ── Soft & lively (7 Oct: the owner found it stiff and boring) ──────────────────────────────────────────────────
   rounder corners, warm depth, hover glow, the candle-light back, friendlier numbers. Movement only with Motion on. */
.dashboard-host.candle-workspace .candle-light{display:block;animation:none;opacity:1;
  background:radial-gradient(1000px 560px at 8% -10%,rgb(var(--acc-400)/.11),transparent 70%),
             radial-gradient(800px 520px at 100% 6%,rgba(66,203,160,.045),transparent 70%)}
.dashboard-host.candle-workspace .dashboard-main>*+*{margin-top:26px}
.dashboard-host.candle-workspace .dashboard-main>section:not(.workspace-positions){border-radius:18px;border-color:#35332c;
  background:linear-gradient(180deg,#22201b 0%,#1c1b17 55%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 22px 44px -28px rgba(0,0,0,.75)}
.dashboard-host.candle-workspace :is(#books-alert,#pause-alert,#regime-alert,#regime-off-note,#money-note){border-radius:14px}
/* headline numbers: a cleaner, rounder font with even digits (the typewriter font read stiff) */
.workspace-primary .metric-cell>div[id],.workspace-secondary .metric-cell>div[id],.gfx-ring-caption strong,
.gfx-allocation-label strong,#cv-price,.today-tile strong{font-family:Geist,system-ui,sans-serif!important;font-variant-numeric:tabular-nums;font-weight:600!important;letter-spacing:-.035em}
.workspace-primary .metric-equity{box-shadow:inset 0 2px 0 rgb(var(--acc-400)/.6)}
.workspace-primary #s-pnl.text-emerald-400,.workspace-primary #s-ret.text-emerald-400{text-shadow:0 0 28px rgba(52,211,153,.28)}
.workspace-primary #s-pnl.text-rose-500,.workspace-primary #s-ret.text-rose-500{text-shadow:0 0 28px rgba(244,63,94,.25)}
.gfx-spark svg{filter:drop-shadow(0 0 6px rgb(var(--acc-400)/.45))}
/* card titles get a small flame dot */
.dashboard-host.candle-workspace .dashboard-main section h2{display:inline-flex;align-items:center;gap:9px}
.dashboard-host.candle-workspace .dashboard-main section h2::before{content:'';width:7px;height:7px;border-radius:50%;flex-shrink:0;
  background:rgb(var(--acc-400));box-shadow:0 0 10px rgb(var(--acc-400)/.8)}
/* rounder controls everywhere */
.dashboard-host.candle-workspace button,.dashboard-host.candle-workspace input:not([type=checkbox]):not([type=radio]),.dashboard-host.candle-workspace select,
.dashboard-host.candle-workspace header :is(a,div.rounded-lg){border-radius:10px}
.dashboard-host.candle-workspace :is(#chart-range-group,#wi-scope,#tr-order,.cv-tf){border-radius:12px}.dashboard-host.candle-workspace .seg-pill{border-radius:9px}
.dashboard-host.candle-workspace .cv-tf button{border-radius:8px}
.dashboard-host.candle-workspace #perf-strip>div{border-radius:14px}
/* cards: soft corners, and they light up under the mouse */
.dashboard-host.candle-workspace :is(#tr-list,#pos-list)>div{border-radius:18px!important;transition:border-color .2s ease,box-shadow .25s ease,transform .2s ease}
.dashboard-host.candle-workspace :is(#tr-list,#pos-list)>div:hover{border-color:rgb(var(--acc-400)/.45)!important;
  box-shadow:0 14px 34px -20px rgb(var(--acc-400)/.55),inset 0 1px 0 rgba(255,255,255,.04)}
.dashboard-host.candle-workspace #perf-strip>div:hover{border-color:#4a463c}
.dashboard-host.candle-workspace :is(#pos-empty,#tr-empty){border-radius:18px}
.dashboard-host.candle-workspace .trade-card .ava{border-radius:16px}
.dashboard-host.candle-workspace :is(#settings-modal,#reset-modal,#pnl-modal,#fx-modal)>div,.cv-panel{border-radius:18px}
.cv-chart{border-radius:14px}
/* movement, only when the Motion button is on: cards and tiles lift, the today tiles too */
.dashboard-host.candle-workspace[data-candle-motion=on] :is(#tr-list,#pos-list)>div:hover,.dashboard-host.candle-workspace[data-candle-motion=on] .today-tile:hover{transform:translateY(-3px)}
.dashboard-host.candle-workspace[data-candle-motion=on] #perf-strip>div:hover{transform:translateY(-2px)}
/* today at a glance */
.today-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.today-strip[hidden]{display:none}
.today-tile{display:flex;align-items:center;gap:13px;min-width:0;padding:15px 16px;border-radius:16px;border:1px solid #35332c;
  background:linear-gradient(135deg,#24221c,#1b1a16);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:border-color .2s,box-shadow .25s,transform .2s}
.today-tile:hover{border-color:#4a463c}
.today-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;
  background:rgb(var(--acc-400)/.12);color:rgb(var(--acc-300));box-shadow:inset 0 0 0 1px rgb(var(--acc-400)/.25)}
.today-icon svg{width:21px;height:21px}.today-icon .ava{width:42px;height:42px;border-radius:13px}
.today-copy{display:flex;flex-direction:column;min-width:0}
.today-k{font-size:11px;color:var(--workspace-muted)}
.today-tile strong{font-size:19px;color:var(--workspace-ink);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-sub{font-size:11px;color:var(--workspace-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-up strong{color:#34d399;text-shadow:0 0 22px rgba(52,211,153,.3)}.today-down strong{color:#fb7185}
.today-up .today-icon{background:rgba(52,211,153,.12);color:#34d399;box-shadow:inset 0 0 0 1px rgba(52,211,153,.3)}
.today-down .today-icon{background:rgba(251,113,133,.1);color:#fb7185;box-shadow:inset 0 0 0 1px rgba(251,113,133,.28)}
.today-click{cursor:pointer}.today-click:hover{border-color:rgb(var(--acc-400)/.5);box-shadow:0 14px 30px -20px rgb(var(--acc-400)/.6)}
@media(max-width:1000px){.today-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.share-toggles{justify-content:flex-start!important;gap:18px!important}.share-toggles label{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--workspace-muted);cursor:pointer}
.share-toggles input{accent-color:rgb(var(--acc-400));width:15px;height:15px}
/* settings, friendlier: tabs, cards, switches, short help with "More", options tucked under their switch */
.set-tabs{position:sticky;top:-16px;z-index:2;display:flex;gap:4px;padding:4px;margin:-4px 0 4px;border-radius:14px;background:#151410;border:1px solid #2f2d27;overflow-x:auto}
.dashboard-host.candle-workspace .set-tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 12px;border-radius:10px;
  font-size:13px;font-weight:500;white-space:nowrap;color:var(--workspace-muted);background:none;border:0}
.dashboard-host.candle-workspace .set-tabs button:hover{color:var(--workspace-ink)}
.dashboard-host.candle-workspace .set-tabs button[aria-selected=true]{background:#2c2a24;color:var(--workspace-ink);box-shadow:inset 0 0 0 1px #3d3a32}
.set-count{min-width:18px;padding:0 5px;border-radius:9px;font:600 10px/18px 'Geist Mono',monospace;background:rgb(var(--acc-400)/.18);color:rgb(var(--acc-300))}
.set-count[hidden]{display:none}
.set-panel[hidden]{display:none}
.set-intro{font-size:13px;line-height:1.55;color:var(--workspace-muted);margin:6px 2px 12px}
.set-sub{font-size:12px;font-weight:600;color:var(--workspace-ink);margin:16px 2px 8px}
.set-card{border:1px solid #33312a;border-radius:16px;background:linear-gradient(180deg,#22201b,#1d1c18);padding:2px 16px}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #2c2a24}
.set-card>.set-row:last-child,.set-children>.set-row:last-child{border-bottom:0}
.set-row.set-wide{display:block}.set-row.set-wide .set-input{margin-top:10px}
.set-copy{min-width:0;flex:1}
.set-label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--workspace-ink)}
.set-changed{padding:1px 7px;border-radius:8px;font-size:10px;font-weight:600;background:rgb(var(--acc-400)/.14);color:rgb(var(--acc-300));cursor:help}
.set-changed[hidden]{display:none}
.set-help{font-size:12px;line-height:1.5;color:var(--workspace-muted);margin-top:3px}
.set-more{margin-top:4px;font-size:12px;color:var(--workspace-muted)}
.set-more summary{display:inline;cursor:pointer;color:rgb(var(--acc-300));list-style:none}.set-more summary::-webkit-details-marker{display:none}
.set-more summary::after{content:' ›'}.set-more[open] summary::after{content:' ‹'}
.set-more p{margin-top:5px;line-height:1.55}
.set-err{font-size:12px;color:#fb7185;margin-top:4px}
.set-input{flex-shrink:0}
.set-num{display:inline-flex;align-items:center;gap:6px}.set-num i{font-style:normal;font-size:13px;color:var(--workspace-muted)}
.dashboard-host.candle-workspace .set-num input{width:110px;background:#151410;border-color:#38362f;border-radius:10px}
.set-children{margin:0 0 10px 4px;padding:0 0 0 16px;border-left:2px solid rgb(var(--acc-400)/.35)}
.set-children[hidden]{display:none}
.set-switch{position:relative;display:inline-block;width:44px;height:24px;cursor:pointer}
.set-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.set-switch span{position:absolute;inset:0;border-radius:12px;background:#38362f;transition:background-color .2s}
.set-switch span::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#d6d2c8;transition:transform .2s,background-color .2s}
.set-switch input:checked+span{background:rgb(var(--acc-400))}.set-switch input:checked+span::after{transform:translateX(20px);background:#1a1712}
.set-switch input:focus-visible+span{outline:2px solid rgb(var(--acc-400));outline-offset:2px}
.set-switch input:disabled+span{opacity:.5}
@media(max-width:767px){.set-row{flex-wrap:wrap;gap:10px}.set-input{width:100%}.dashboard-host.candle-workspace .set-num input{flex:1;width:auto}.set-num{width:100%}
 .dashboard-host.candle-workspace .set-tabs button{flex:0 0 auto}.set-row .set-switch{margin-left:auto}}
@media(max-width:420px){.today-strip{gap:10px}.today-tile{padding:12px;gap:10px}.today-icon{width:36px;height:36px}.today-tile strong{font-size:16px}}

/* ── Header (owner, 8 Oct: "it looks so cluttered"): nine equal boxes became the chain filter, the update time, one
   icon bar for the small page tools, then the two words that matter (Pause trading, Settings) and Reset as a quiet
   icon. The names stay for screen readers and show on hover. ── */
.dashboard-host.candle-workspace #hdr-tools{position:relative;display:flex;align-items:center;gap:2px;padding:3px;border-radius:12px;background:#1b1a17;border:1px solid var(--workspace-border,#2f2d27)}
.dashboard-host.candle-workspace :is(#hdr-tools>button,#hdr-tools>div>button){position:relative;justify-content:center;width:34px;height:32px;min-height:32px!important;padding:0!important;gap:0;margin:0!important;background:transparent!important;border:0!important;border-radius:9px;color:#a9a397;box-shadow:none}
.dashboard-host.candle-workspace :is(#hdr-tools>button,#hdr-tools>div>button):hover{background:#2a2823!important;color:#f1ece2}
.dashboard-host.candle-workspace :is(#hdr-tools>button,#hdr-tools>div>button):focus-visible{outline:2px solid rgb(var(--acc-400)/.7);outline-offset:-2px}
.dashboard-host.candle-workspace :is(#hdr-tools>button,#hdr-tools>div>button)>*{margin:0!important}
.dashboard-host.candle-workspace #hdr-tools #alerts-dot{position:absolute;top:7px;right:7px}
.dashboard-host.candle-workspace :is(#hdr-tools,#btn-reset) .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dashboard-host.candle-workspace header #btn-reset{position:relative;width:36px;justify-content:center;padding-left:0!important;padding-right:0!important;background:transparent;border-color:rgb(244 63 94/.25)}
.dashboard-host.candle-workspace header #btn-reset:hover{background:rgb(244 63 94/.12)}
.dashboard-host.candle-workspace header #btn-reset>*{margin:0!important}
/* a button's "done" pill (owner, 8 Oct: "when you click refresh a lil gui shows up and says Refreshed!"): under the
   header in the middle, about 1.7 s, then it fades; trade alerts keep their own cards at the bottom right */
#flash{position:fixed;left:50%;top:84px;z-index:320;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 32px);padding:8px 16px 8px 9px;border-radius:999px;background:rgba(29,27,23,.97);border:1px solid #3d382d;color:#f1ece2;font-size:13px;font-weight:600;line-height:1.3;box-shadow:0 12px 32px rgba(0,0,0,.5);opacity:0;transform:translate(-50%,-8px) scale(.97);transition:opacity .18s ease,transform .22s cubic-bezier(.2,.9,.3,1.2);pointer-events:none}
#flash.on{opacity:1;transform:translate(-50%,0) scale(1)}
#flash .fl-ico{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none}
#flash .fl-ico svg{width:13px;height:13px}
#flash[data-tone=ok]{border-color:rgba(52,211,153,.35)}#flash[data-tone=ok] .fl-ico{background:rgba(16,185,129,.16);color:#34d399}
#flash[data-tone=off] .fl-ico{background:rgba(148,163,184,.14);color:#b9b3a8}
#flash[data-tone=warn]{border-color:rgba(251,191,36,.35)}#flash[data-tone=warn] .fl-ico{background:rgba(245,158,11,.16);color:#fbbf24}
#flash[data-tone=err]{border-color:rgba(244,63,94,.4)}#flash[data-tone=err] .fl-ico{background:rgba(244,63,94,.16);color:#fb7185}
#flash .fl-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:767px){#flash{top:auto;bottom:76px;font-size:14px}}   /* phones: above the status bar, near the thumb */

/* ── Special themes (owner, 8 Oct) ── */
/* Chrome: brushed gunmetal, polished-chrome lettering, bevelled metal edges, a chrome trim under the header and a
   slow light sweep across it (Motion on only) */
html[data-fx=chrome]{--chrome-text:linear-gradient(180deg,#ffffff 0%,#e6eaef 28%,#a3abb5 48%,#59616b 52%,#d9dee4 66%,#f7f9fb 82%,#aab2bc 100%)}
html[data-fx=chrome] :is(.workspace-heading h1,.workspace-brand,#s-eq){background-image:var(--chrome-text);-webkit-background-clip:text;background-clip:text;color:transparent!important;filter:drop-shadow(0 1px 0 rgba(0,0,0,.6))}
html[data-fx=chrome] .workspace-brand-caption{-webkit-text-fill-color:#9aa3ad;color:#9aa3ad}
html[data-fx=chrome] .dashboard-main :is(section,.metric-cell,.today-tile,.trade-card,#perf-strip>div){border-color:rgba(206,214,225,.17)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 0 rgba(0,0,0,.45),0 16px 36px -20px rgba(0,0,0,.85)!important}
html[data-fx=chrome] .dashboard-main :is(.workspace-metrics,.today-tile,.trade-card,#perf-strip>div,section:not(.workspace-metrics)){background:linear-gradient(180deg,rgba(42,46,52,.9),rgba(23,26,30,.92))!important}
html[data-fx=chrome] .dashboard-main .workspace-metrics .metric-cell{background:transparent!important}
html[data-fx=chrome] .dashboard-host header{border-bottom-color:transparent!important}
html[data-fx=chrome] .dashboard-host header::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5) 18%,rgba(140,150,162,.35) 42%,rgba(255,255,255,.75) 63%,rgba(150,160,172,.3) 82%,transparent)}
html[data-fx=chrome] .dashboard-host header::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.05) 47%,rgba(255,255,255,.13) 50%,rgba(255,255,255,.05) 53%,transparent 58%) no-repeat;background-size:260% 100%;background-position:160% 0}
html[data-fx=chrome] .dashboard-host[data-candle-motion=on] header::before{animation:chrome-sheen 8s ease-in-out infinite}
@keyframes chrome-sheen{0%,50%{background-position:160% 0}100%{background-position:-60% 0}}
html[data-fx=chrome] .dashboard-host header :is(#hdr-tools,#btn-settings,#chain-trigger){background:linear-gradient(180deg,#3b4149,#23272d 55%,#1c1f24)!important;border-color:rgba(222,229,238,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 1px 2px rgba(0,0,0,.5)}
html[data-fx=chrome] .dashboard-host header :is(#hdr-tools>button,#hdr-tools>div>button){color:#d4dae1}
html[data-fx=chrome] .workspace-mode>span{border-color:rgba(222,229,238,.3)!important;color:#e6eaef!important}
/* Money: deep money green with a faint $ pattern; bills and coins fall behind the dashboard (canvas #money-rain),
   a burst falls in front (#money-burst) */
html[data-fx=money] body{background-size:auto,auto,140px 140px,auto!important}
html[data-fx=money] .dashboard-main{position:relative;z-index:1}
#money-rain,#money-burst{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none}
#money-rain{z-index:0}
#money-burst{z-index:255}
html.money-hover,html.money-hover *{cursor:pointer!important}
/* a grabbed bill: "+$100" floats up from the spot and fades (with no Motion it only fades) */
.money-pop{position:fixed;z-index:330;pointer-events:none;transform:translate(-50%,-50%);font:800 28px/1 Geist,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.01em;color:#d9f99d;text-shadow:0 2px 0 #14532d,0 0 18px rgba(74,222,128,.65);white-space:nowrap}
.money-pop.coin{color:#fde68a;text-shadow:0 2px 0 #854d0e,0 0 16px rgba(250,204,21,.6);font-size:24px}
html[data-fx=money] .workspace-heading h1{background-image:linear-gradient(180deg,#f7fee7,#bbf7d0 35%,#4ade80 62%,#facc15);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-fx=money] #s-eq{color:#d9f99d!important;text-shadow:0 0 30px rgba(74,222,128,.35)}
html[data-fx=money] .dashboard-host header{border-bottom-color:rgba(74,222,128,.28)!important}
html[data-fx=money] .dashboard-main :is(section,.metric-cell,.today-tile,.trade-card){border-color:rgba(74,222,128,.16)!important}
html[data-fx=money] .dashboard-main :is(.workspace-metrics,.today-tile,.trade-card,#perf-strip>div,section:not(.workspace-metrics)){background:linear-gradient(180deg,rgba(13,34,22,.9),rgba(7,19,12,.93))!important}
html[data-fx=money] .dashboard-main .workspace-metrics .metric-cell{background:transparent!important}
html.grad-bg .dashboard-host.candle-workspace header,html.grad-bg .dashboard-host header{background-color:rgba(12,11,10,.94)!important;backdrop-filter:blur(14px)}   /* notices no longer show through */

/* ── Phones (owner, 8 Oct): about half the scrolling. Desktop unchanged: everything below is under 768 px ── */
@media(max-width:767px){
 /* header: the logo, then one swipeable row of buttons (was 4 rows, 293 px) */
 .dashboard-host.candle-workspace header{padding:10px 12px!important}
 .dashboard-host.candle-workspace header>div:first-child{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important}
 .workspace-brand{font-size:19px}.workspace-brand-caption{display:none}
 .dashboard-host.candle-workspace header>div:first-child>div:last-child{flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;padding-bottom:2px;
   scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
 .dashboard-host.candle-workspace header>div:first-child>div:last-child::-webkit-scrollbar{display:none}
 .dashboard-host.candle-workspace header>div:first-child>div:last-child>*{flex-shrink:0}
 .dashboard-host.candle-workspace header>div:first-child>div:last-child :is(button,#upd){white-space:nowrap}
 .dashboard-host.candle-workspace header>div:first-child>div:last-child button{min-height:38px!important;padding:6px 11px!important;font-size:12px}
 /* title: compact, the badge beside it; the section links stay at the top while you scroll */
 .dashboard-host.candle-workspace .dashboard-main{padding-top:16px!important}
 .workspace-kicker,.workspace-mode p{display:none}
 .workspace-heading{flex-direction:row!important;align-items:center!important;justify-content:space-between}
 .workspace-heading h1{font-size:23px!important}
 .workspace-mode>span{padding:5px 9px!important;font-size:11px}
 .workspace-nav{position:sticky;top:0;z-index:30;margin:10px -16px 0!important;padding:0 16px;background:#141310ee;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
 .workspace-nav a{min-height:42px}
 .dashboard-host.candle-workspace .dashboard-main>*+*{margin-top:16px}
 .dashboard-host.candle-workspace :is(#books-alert,#pause-alert,#regime-alert,#regime-off-note,#money-note){font-size:13px;line-height:1.45;padding:10px 12px!important}
 /* headline numbers: equity full width, Realized + Return side by side, the five small ones in two columns */
 .workspace-primary{grid-template-columns:1fr 1fr!important}
 .workspace-primary .metric-equity{grid-column:1/-1;border-bottom:1px solid var(--workspace-border)!important}
 .workspace-primary .metric-cell:not(.metric-equity){padding:14px 16px!important;border-bottom:0!important}
 .workspace-primary .metric-cell:nth-child(2){border-right:1px solid var(--workspace-border)!important}
 .workspace-primary .metric-cell #s-pnl,.workspace-primary .metric-cell #s-ret{font-size:22px!important;margin-top:6px!important}
 .workspace-primary .gfx-metric-note,.workspace-primary .metric-cell:not(.metric-equity) .gfx-metric-mark{display:none}
 .dashboard-host.candle-workspace .fx-line{font-size:12px;margin-top:6px}
 .workspace-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .workspace-secondary .metric-cell{flex-direction:column!important;align-items:flex-start!important;gap:3px!important;padding:12px 16px!important;
   border-bottom:1px solid var(--workspace-border)!important}
 .workspace-secondary .metric-cell:nth-child(odd){border-right:1px solid var(--workspace-border)!important}
 .workspace-secondary .metric-cell:last-child{grid-column:1/-1;border-right:0!important;border-bottom:0!important}
 .workspace-secondary .metric-cell>span{font-size:11px!important}.workspace-secondary .metric-cell>div[id]{font-size:17px!important}
 /* chart area: the 7 range stats in two columns; the insights a little tighter */
 .workspace-analysis #perf-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .workspace-analysis #perf-strip>div{padding:9px 11px!important}.workspace-analysis #perf-strip>div:last-child{grid-column:1/-1}
 .gfx-insights>section{padding:16px 18px!important}
 .gfx-ring{width:100px!important;height:100px!important}
 /* long cards fold to their title row; tap the title to open (remembered) */
 .m-fold-head{cursor:pointer;position:relative;padding-right:26px;margin-bottom:0!important}
 .m-fold-head::after{content:'';position:absolute;right:4px;top:50%;width:8px;height:8px;border-right:2px solid var(--workspace-muted);
   border-bottom:2px solid var(--workspace-muted);transform:translateY(-70%) rotate(45deg);transition:transform .2s}
 .m-fold.m-open .m-fold-head::after{transform:translateY(-30%) rotate(-135deg)}
 .m-fold.m-open .m-fold-head{margin-bottom:12px!important}
 .m-fold:not(.m-open)>*:not(.m-fold-head){display:none!important}
 .m-fold:not(.m-open) .m-fold-head p{display:none}
 .dashboard-host.candle-workspace .dashboard-main>section.m-fold{padding:16px 18px!important}
 /* trade cards: shorter -- entry/exit and the contract are in the coin chart (tap the coin) */
 .dashboard-host.candle-workspace #tr-list>.trade-card{padding:14px!important}
 .dashboard-host.candle-workspace .trade-card .trade-footer{display:none!important}
 .trade-finance{flex-wrap:nowrap!important;align-items:center;gap:10px!important}
 .trade-stats{display:flex!important;gap:14px;min-width:0!important}
 .trade-stats>div{flex-direction:column;align-items:flex-start!important;gap:0!important;line-height:17px!important}
 .trade-stats>div:nth-child(3){display:none!important}
 .dashboard-host.candle-workspace .trade-actions :is(a,button){min-height:38px!important;padding:6px 10px!important}
 .dashboard-host.candle-workspace .trade-card .ava{width:42px!important;height:42px!important;border-radius:13px!important}
}

