@font-face{font-family:Inter;src:url('/inter.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{
  color-scheme:dark;
  --bg:#130a0c;--sidebar:#180e10;--card:#221519;--card2:#352329;--inset:#1b1013;--edge:#dfa4ad38;
  --control-edge:#99747c;--hover:#462d34;--fg:#fcf2ef;--muted:#dbc5c5;--dim:#bd9fa4;
  --brand:#ffbdb2;--brand-bg:#47272b;--brand-edge:#b87473;--brand-ink:#2c1012;
  --green:#90ebbc;--red:#ff9eab;--amber:#f4cf95;--risk:#381b23;--risk-edge:#92535f;
  --warning-bg:#35271d;--warning-edge:#8b6841;--gain-bg:#19382e;--gain-edge:#467460;
  --chart-grid:#513a3c;--chart-label:#cbb0b1;--chart-marker-ring:#221519;
  --chart-gain:#90ebbc;--chart-loss:#ff9eab;--chart-gain-fill:#90ebbc28;--chart-loss-fill:#ff9eab25;
  --surface:linear-gradient(148deg,#2b1b20e0,#1b1215f0);
  --rail:linear-gradient(157deg,#261516eb,#180e10f5 58%,#2a1017f5);
  --accent-fill:linear-gradient(116deg,#ffaca7,#ff927e);
  --selection:linear-gradient(116deg,#694037,#593039);
  --surface-shadow:inset 0 1px 0 #ffccc812,0 9px 30px #08040643;
  --radius:14px;--gap:16px;--goal-fill:linear-gradient(90deg,#a9e3a8,#57c9a5);
}
*{box-sizing:border-box}
html{font-family:Inter,system-ui,sans-serif;background:var(--bg);font-size:14px;color:var(--fg)}
body{margin:0;min-width:300px;line-height:1.5;isolation:isolate}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 66% 50% at 91% 1%,#6b1427 0%,#64142965 44%,transparent 90%),
    radial-gradient(ellipse 69% 51% at 34% 10%,#492023a6 0%,#39181846 50%,transparent 90%),
    radial-gradient(ellipse 73% 48% at 80% 100%,#401019a3 0%,transparent 91%),
    linear-gradient(147deg,#1a0d10 0%,#160d10 55%,#230c14 100%);
}
.ambient-field{
  position:fixed;inset:0 0 auto auto;width:min(850px,100vw);height:min(445px,74vh);
  z-index:-1;overflow:hidden;contain:paint;pointer-events:none;
}
.ambient-field::before,.ambient-field::after{
  content:"";position:absolute;inset:0;transform-origin:79% 22%;
}
.ambient-field::before{
  --grain-drift:-21px;--grain-turn:-7deg;
  background:
    radial-gradient(circle at 11% 35%,#f7786c65 0 0.6px,transparent 1.12px),
    radial-gradient(circle at 19% 52%,#fbae8b56 0 0.55px,transparent 1.07px),
    radial-gradient(circle at 26% 27%,#de515960 0 0.65px,transparent 1.17px),
    radial-gradient(circle at 31% 43%,#e9756d54 0 0.68px,transparent 1.20px),
    radial-gradient(circle at 38% 18%,#f7786c65 0 0.76px,transparent 1.28px),
    radial-gradient(circle at 42% 34%,#fbae8b56 0 0.9px,transparent 1.42px),
    radial-gradient(circle at 47% 25%,#de515960 0 0.62px,transparent 1.14px),
    radial-gradient(circle at 48% 62%,#e9756d54 0 0.58px,transparent 1.10px),
    radial-gradient(circle at 53% 15%,#f7786c65 0 0.9px,transparent 1.42px),
    radial-gradient(circle at 58% 47%,#fbae8b56 0 0.65px,transparent 1.17px),
    radial-gradient(circle at 61% 21%,#de515960 0 0.6px,transparent 1.12px),
    radial-gradient(circle at 62% 65%,#e9756d54 0 0.78px,transparent 1.30px),
    radial-gradient(circle at 66% 10%,#f7786c65 0 0.62px,transparent 1.14px),
    radial-gradient(circle at 67% 54%,#fbae8b56 0 0.72px,transparent 1.24px),
    radial-gradient(circle at 70% 32%,#de515960 0 0.8px,transparent 1.32px),
    radial-gradient(circle at 73% 15%,#e9756d54 0 0.65px,transparent 1.17px),
    radial-gradient(circle at 74% 66%,#f7786c65 0 0.58px,transparent 1.10px),
    radial-gradient(circle at 76% 24%,#fbae8b56 0 0.86px,transparent 1.38px),
    radial-gradient(circle at 79% 46%,#de515960 0 0.8px,transparent 1.32px),
    radial-gradient(circle at 82% 57%,#e9756d54 0 0.6px,transparent 1.12px),
    radial-gradient(circle at 83% 29%,#f7786c65 0 0.68px,transparent 1.20px),
    radial-gradient(circle at 87% 53%,#fbae8b56 0 0.9px,transparent 1.42px),
    radial-gradient(circle at 91% 33%,#de515960 0 0.57px,transparent 1.09px),
    radial-gradient(circle at 92% 62%,#e9756d54 0 0.62px,transparent 1.14px),
    radial-gradient(circle at 95% 47%,#f7786c65 0 0.7px,transparent 1.22px),
    radial-gradient(circle at 97% 25%,#fbae8b56 0 0.64px,transparent 1.16px);
}
.ambient-field::after{
  --grain-drift:23px;--grain-turn:8deg;
  background:
    radial-gradient(circle at 30% 35%,#ffc99f98 0 0.72px,transparent 1.24px),
    radial-gradient(circle at 44% 28%,#ffad91c0 0 0.83px,transparent 1.35px),
    radial-gradient(circle at 51% 21%,#fd877e9a 0 0.64px,transparent 1.16px),
    radial-gradient(circle at 56% 24%,#ffc4a48a 0 0.97px,transparent 1.49px),
    radial-gradient(circle at 60% 16%,#ffc99f98 0 0.8px,transparent 1.32px),
    radial-gradient(circle at 65% 26%,#ffad91c0 0 1.16px,transparent 1.68px),
    radial-gradient(circle at 69% 14%,#fd877e9a 0 0.86px,transparent 1.38px),
    radial-gradient(circle at 70% 41%,#ffc4a48a 0 0.65px,transparent 1.17px),
    radial-gradient(circle at 72% 9%,#ffc99f98 0 0.75px,transparent 1.27px),
    radial-gradient(circle at 73% 21%,#ffad91c0 0 0.66px,transparent 1.18px),
    radial-gradient(circle at 75% 34%,#fd877e9a 0 0.96px,transparent 1.48px),
    radial-gradient(circle at 78% 18%,#ffc4a48a 0 1.15px,transparent 1.67px),
    radial-gradient(circle at 79% 27%,#ffc99f98 0 0.68px,transparent 1.20px),
    radial-gradient(circle at 81% 39%,#ffad91c0 0 1.04px,transparent 1.56px),
    radial-gradient(circle at 83% 12%,#fd877e9a 0 0.66px,transparent 1.18px),
    radial-gradient(circle at 85% 22%,#ffc4a48a 0 0.82px,transparent 1.34px),
    radial-gradient(circle at 86% 32%,#ffc99f98 0 0.72px,transparent 1.24px),
    radial-gradient(circle at 87% 44%,#ffad91c0 0 0.9px,transparent 1.42px),
    radial-gradient(circle at 89% 26%,#fd877e9a 0 0.64px,transparent 1.16px),
    radial-gradient(circle at 90% 20%,#ffc4a48a 0 0.93px,transparent 1.45px),
    radial-gradient(circle at 93% 39%,#ffc99f98 0 0.84px,transparent 1.36px),
    radial-gradient(circle at 94% 32%,#ffad91c0 0 1.04px,transparent 1.56px),
    radial-gradient(circle at 96% 16%,#fd877e9a 0 0.7px,transparent 1.22px),
    radial-gradient(circle at 97% 44%,#ffc4a48a 0 0.68px,transparent 1.20px);
}
/* Gather once on entry. The settled field is a static texture. */
@media(prefers-reduced-motion:no-preference){
  .ambient-field::before{animation:petal-gather 3.7s cubic-bezier(.18,.59,.23,1)}
  .ambient-field::after{animation:petal-gather 4.25s cubic-bezier(.18,.59,.23,1)}
}
@keyframes petal-gather{
  from{opacity:.12;transform:translate3d(var(--grain-drift),-11px,0) rotate(var(--grain-turn)) scale(1.13)}
}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:var(--brand);text-underline-offset:3px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
button:disabled{cursor:default;opacity:.5}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.8rem,3vw,2.3rem);line-height:1.14;letter-spacing:-.043em;font-weight:700}
h2{font-size:1.1rem;line-height:1.3;font-weight:650;letter-spacing:-.02em}
h3{font-size:.94rem;line-height:1.35;font-weight:640}
p,small{color:var(--muted)}
strong,.number,time{font-variant-numeric:tabular-nums}
strong{font-weight:680}
#shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar{border-right:1px solid var(--edge);background:var(--rail),var(--sidebar);position:sticky;top:0;height:100vh;height:100dvh;padding:25px 16px 20px;display:flex;flex-direction:column}
.brand,.mobile-brand{display:flex;align-items:center;gap:9px;font-weight:690;letter-spacing:-.027em;white-space:nowrap}
.brand{padding:2px 8px 30px;font-size:1.04rem}
.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--accent-fill);box-shadow:0 1px 12px #ff9b8845;display:inline-flex;align-items:center;justify-content:center;gap:2px;flex:none}
.brand-mark i{width:3px;display:block;border-radius:2px;background:var(--brand-ink);transform:translateY(2px);height:7px}
.brand-mark i:nth-child(2){height:11px;transform:translateY(0)}
.brand-mark i:nth-child(3){height:15px;transform:translateY(-2px)}
nav{display:grid;gap:4px}
nav button{color:var(--muted);background:none;display:flex;align-items:center;gap:11px;min-height:42px;text-align:left;padding:8px 12px;border:0;border-radius:7px;font-weight:560;white-space:nowrap}
nav button span{width:19px;text-align:center;font-size:1.17rem;line-height:1}
nav button .nav-icon{position:relative;display:block;width:17px;height:17px;flex:0 0 17px}
.nav-icon::before,.nav-icon::after{position:absolute;content:"";box-sizing:border-box}
.nav-icon--overview::before{inset:1px;border:1px solid currentColor;border-radius:3px}
.nav-icon--overview::after{inset:3px;background:linear-gradient(currentColor,currentColor) center/1px 100% no-repeat,linear-gradient(currentColor,currentColor) center/100% 1px no-repeat}
.nav-icon--trades::before{inset:0;background:linear-gradient(currentColor,currentColor) 3px 3px/1px 12px no-repeat,linear-gradient(currentColor,currentColor) 8px 1px/1px 12px no-repeat,linear-gradient(currentColor,currentColor) 13px 4px/1px 12px no-repeat}
.nav-icon--trades::after{left:2px;top:7px;width:3px;height:5px;border-radius:1px;background:currentColor;box-shadow:5px -3px currentColor,10px 1px currentColor}
.nav-icon--review::before{inset:1px 2px;border:1px solid currentColor;border-radius:3px}
.nav-icon--review::after{left:5px;right:5px;top:6px;height:1px;background:currentColor;box-shadow:0 4px currentColor}
.nav-icon--goals::before,.nav-icon--goals::after{border:1px solid currentColor;border-radius:50%}
.nav-icon--goals::before{inset:1px}
.nav-icon--goals::after{inset:5px;background:radial-gradient(circle,currentColor 0 1px,transparent 1.1px)}
nav button:hover{background:var(--hover);color:var(--fg)}
nav button[aria-current="page"]{color:var(--fg);background:var(--selection);box-shadow:inset 0 0 0 1px #f6b9ab4a;font-weight:650}
.account{display:flex;gap:10px;align-items:center;margin-top:auto;padding:15px 5px 2px;border-top:1px solid var(--edge)}
.account strong,.account small{display:block}
.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--card2);color:var(--muted);font-weight:650}
main{min-width:0;padding:0 clamp(22px,3vw,46px);max-width:1500px;width:100%;margin:0 auto}
.top{min-height:60px;display:flex;align-items:center;justify-content:flex-end;gap:11px;border-bottom:1px solid #ffc6b43d}
.mobile-brand{display:none}
.live-status{font-size:.82rem;color:#f9eae5;display:flex;align-items:center;gap:7px}
.live-status:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--amber);flex:none}
.live-status.connected:before{background:var(--green)}
.quiet,.secondary,.primary{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;min-height:38px;padding:7px 12px;border:1px solid var(--control-edge);background:var(--card2);color:var(--fg);text-decoration:none;font-weight:620}
.quiet{background:transparent}
.quiet:hover,.secondary:hover{background:var(--hover);border-color:var(--dim)}
.refresh{width:38px;font-size:1.16rem;padding:0;background:#2515189c;border-color:#ffd0c164}
.primary{background:var(--accent-fill);color:var(--brand-ink);border-color:transparent}
.primary:hover:not(:disabled){filter:brightness(1.08)}
.intro{display:flex;justify-content:space-between;align-items:end;margin:26px 0 20px;gap:var(--gap)}
.intro h1{color:#fff5ef}
@supports (background-clip:text){
  .intro h1{background:linear-gradient(112deg,#fff8f4 16%,#ffe0d5 58%,#ffaf9f 100%);background-clip:text;color:transparent}
}
@media(forced-colors:active){
  body::before,.ambient-field{display:none}
  .intro h1{background:none;color:CanvasText}
}
.intro p{margin-top:4px;font-size:.88rem;color:#f9eae5}
.segments{display:flex;flex-wrap:nowrap;white-space:nowrap;background:var(--inset);border:1px solid var(--edge);padding:3px;border-radius:8px}
.segments button{background:none;border:0;color:var(--muted);border-radius:5px;padding:6px 10px;min-height:34px;font-size:.83rem}
.segments button[aria-pressed="true"]{background:var(--selection);color:var(--fg);font-weight:680}
.card{background:var(--surface);border:1px solid var(--edge);border-radius:var(--radius);box-shadow:var(--surface-shadow);min-width:0}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:var(--gap)}
.metric{padding:13px 15px}
.metric .number{font-size:clamp(1.15rem,2.1vw,1.6rem);display:block;letter-spacing:-.035em;margin:3px 0 1px;font-weight:700;overflow-wrap:anywhere}
.metric-label,.metric-note{display:block;color:var(--muted)}
.metric-label{font-size:.82rem}
.metric-note{font-size:.74rem;color:var(--dim)}
.split{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr);gap:var(--gap);margin-bottom:var(--gap)}
.split.overview-limits,.split.review-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.overview-limits{align-items:start}
.overview-limits .goal-progress{margin-bottom:0}
.overview-results-title{margin:21px 0 9px}
.metrics-summary{gap:0;border:1px solid var(--edge);border-radius:var(--radius);background:var(--surface);box-shadow:var(--surface-shadow)}
.metrics-summary .metric{border:0;border-radius:0;background:transparent;box-shadow:none}
.metrics-summary .metric + .metric{border-left:1px solid var(--edge)}
.performance{margin-bottom:var(--gap)}
.box{padding:17px 18px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:12px}
.card-head p{font-size:.83rem;margin-top:3px}
.open-positions,.closed-positions{margin-bottom:var(--gap)}
.open-account{display:flex;flex-wrap:wrap;gap:10px 28px}
.open-account small,.open-position small,.open-position dt{display:block;color:var(--muted);font-size:.75rem}
.open-account strong,.open-position-heading strong,.open-position dd{font-variant-numeric:tabular-nums}
.open-total{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding:8px 11px;border-radius:7px;background:var(--inset)}
.open-total span{min-width:0;font-size:.82rem;font-weight:650}
.open-total small{margin-left:.3em;color:var(--muted);font-size:.73rem;font-weight:500}
.open-total strong{min-width:0;font-size:1.14rem;text-align:right;overflow-wrap:anywhere}
.open-position{border-top:1px solid var(--edge);padding-top:12px;margin-top:12px}
.open-position-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.open-position-heading strong{font-size:1.18rem;text-align:right}
.open-position-detail{min-height:39px;padding:2px 0;background:none;border:0;color:var(--brand);font-weight:inherit;text-decoration:underline;text-underline-offset:3px}
.open-position dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px;margin:10px 0 0}
.open-position dd{margin:2px 0 0;font-size:.84rem;overflow-wrap:anywhere}
.open-stop-indicator{position:relative;padding:0 1px 4px;border-radius:5px;color:var(--stop-color,var(--muted));background:linear-gradient(115deg,var(--stop-tint,transparent),transparent 92%);transition:color .4s ease}
.open-stop-indicator::after{position:absolute;right:0;bottom:0;left:0;height:2px;border-radius:2px;background:linear-gradient(90deg,currentColor,transparent 92%);content:"";opacity:.62}
.open-stop-indicator:is([data-stop-state="none"],[data-stop-state="stale"])::after{opacity:0}
.open-stop-indicator [data-stop-level]{font-weight:650}
@media(prefers-reduced-motion:reduce){.open-stop-indicator{transition:none}}
.trade-new{flex:none;min-height:44px;padding-inline:10px;white-space:nowrap}
.trade-unavailable{margin:0 0 10px;padding:7px 9px;border:1px solid var(--edge);border-radius:7px;color:var(--muted);font-size:.8rem}
.trade-position-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.trade-position-actions button{min-height:44px;padding-inline:12px;font-size:.8rem;flex:0 1 auto}
.trade-position-actions .trade-close{color:var(--red)}
.trade-position-actions .trade-trailing-active{color:var(--brand);border-color:var(--brand-edge);background:var(--brand-bg)}
.trade-position-actions .trade-trailing-upgrade{color:var(--brand)}
.trade-position-note{margin:7px 0 0;font-size:.78rem}
.trade-trailing-check{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;min-height:22px;margin:6px 0 0;color:var(--muted);font-size:.76rem}
.trade-trailing-check time{color:var(--fg);white-space:nowrap}
.trade-trailing-check [data-trailing-state]{overflow-wrap:anywhere}
.trade-trailing-check:is([data-state="waiting_data"],[data-state="limit_unreachable"],[data-state="paused"]) [data-trailing-state]{color:var(--amber)}
.trade-new:disabled,.trade-position-actions button:disabled,.trade-dialog-actions button:disabled{opacity:.56;cursor:not-allowed}
.open-empty{margin-top:10px;font-size:.82rem}
.chart{height:204px;position:relative}
.chart canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.chart-readout{height:24px;color:var(--muted);font-size:.78rem;text-align:right;font-variant-numeric:tabular-nums}
.green{color:var(--green)}
.red{color:var(--red)}
.flat{color:var(--muted)}
.risk.reached{background:var(--risk);border-color:var(--risk-edge)}
.meter{height:6px;overflow:hidden;background:var(--edge);border-radius:20px;margin:13px 0 12px}
.meter span{height:100%;display:block;background:var(--goal-fill);border-radius:20px}
.data-line{padding:7px 0;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--edge);font-size:.83rem;color:var(--muted)}
.data-line strong{color:var(--fg)}
.risk small{display:block;margin-top:10px;font-size:.75rem}
.risk-plan{--risk-allowance:var(--amber)}
.risk-plan.reached{--risk-allowance:var(--red)}
.risk-plan .risk-allowance{color:var(--risk-allowance)}
.risk-plan .card-head{margin-bottom:4px}
.risk-plan .daily-stop-head{align-items:center}
.daily-goal-dial{--goal-start:#d0bdbc;--goal-end:#ae9091;--goal-track:var(--control-edge);--goal-light:var(--muted);--goal-wash:var(--inset);display:flex;flex:none;align-items:center;gap:6px;padding:2px 3px 2px 8px;border:1px solid var(--goal-track);border-radius:24px;background:var(--goal-wash);color:var(--goal-light)}
.daily-goal-dial[data-goal-state="positive"]{--goal-start:#b0eaa8;--goal-end:#49c8a0;--goal-track:var(--gain-edge);--goal-light:var(--green);--goal-wash:var(--gain-bg)}
.daily-goal-dial[data-goal-state="attention"]{--goal-start:#ebc48e;--goal-end:#d38465;--goal-track:var(--warning-edge);--goal-light:var(--amber);--goal-wash:var(--warning-bg)}
.daily-goal-label{font-size:.68rem;font-weight:600;white-space:nowrap}
.daily-goal-ring{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:conic-gradient(var(--goal-start),var(--goal-end) var(--daily-goal-angle),var(--goal-track) var(--daily-goal-angle));font-size:.63rem;font-weight:750;font-variant-numeric:tabular-nums;line-height:1}
.daily-goal-ring::before{position:absolute;inset:2px;border-radius:50%;background:var(--goal-wash);content:""}
.daily-goal-ring span{position:relative}
.risk-plan .data-line{padding:5px 0}
.risk-plan-note{font-size:.73rem;margin:5px 0}
.stop-summary .live-projection-heading{justify-content:flex-end;margin:0 0 2px}
.stop-summary-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:0}
.stop-summary-values dt{font-size:.76rem;color:var(--muted)}
.stop-summary-values dd{margin:1px 0 0;font-size:1.12rem;font-weight:710;line-height:1.15;overflow-wrap:anywhere}
.stop-summary-values [data-projection-figure="available"]{grid-column:1/-1;border-bottom:1px solid var(--edge);padding-bottom:8px}
.stop-summary-values [data-projection-figure="available"] dd{font-size:clamp(1.45rem,5vw,1.84rem);font-weight:750;letter-spacing:-.035em}
.stop-summary [data-projection-note]{margin-top:5px}
.stop-details summary{cursor:pointer;min-height:40px;padding:9px 0 7px;font-size:.87rem;font-weight:650;color:var(--brand)}
.stop-details-content{border-top:1px solid var(--edge);padding-top:4px}
.live-projection{margin-top:10px;padding:9px 10px;border-radius:7px;background:var(--inset)}
.live-projection-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 7px;margin-bottom:4px}
.live-projection-heading h3{font-size:.83rem;color:var(--fg)}
.live-projection-heading time,.live-projection-status{color:var(--muted);font-size:.73rem}
.live-projection-heading time{font-variant-numeric:tabular-nums;white-space:nowrap}
.live-projection-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin:0}
.live-projection-values dt{color:var(--muted);font-size:.73rem}
.live-projection-values dd.number{margin:1px 0 0;font-size:.86rem;font-weight:680;letter-spacing:normal;overflow-wrap:anywhere}
.live-projection-values + .live-projection-status{margin-top:4px}
.live-stop-remaining{color:var(--fg)}
.live-projection-status.red{color:var(--red)}
.post-trade,.session-radar{padding:9px 0 0;margin:9px 0 0;border-top:1px solid var(--edge)}
.post-trade h3,.session-radar h3{font-size:.79rem;color:var(--muted);margin-bottom:3px}
.post-trade-result{display:flex;align-items:center;justify-content:space-between;gap:8px}
.post-trade-result p{color:var(--fg);font-size:.88rem;min-width:0;overflow-wrap:anywhere}
.post-trade-result small{margin:0}
.post-trade-net{font-size:1.12rem;text-align:right;overflow-wrap:anywhere}
.post-trade-suggestion{font-size:.79rem;margin-top:5px;color:var(--fg)}
.session-radar-caption{font-size:.7rem}
.radar-action{--decision:var(--amber);margin:6px 0 8px;padding:9px 11px;border-left:2px solid var(--decision);border-radius:0 6px 6px 0;background:var(--warning-bg)}
.stop-recommendation{margin:9px 0 0}
.radar-action.watch{--decision:var(--brand);background:var(--brand-bg)}
.radar-action.pause{--decision:var(--red);background:var(--risk)}
.radar-action-title{color:var(--decision);font-size:1.08rem;font-weight:680;line-height:1.2;overflow-wrap:anywhere}
.radar-action-candidate{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;margin-top:4px;font-size:.75rem}
.radar-action-candidate strong{font-size:1.11rem;color:var(--fg);overflow-wrap:anywhere}
.radar-action-reason,.radar-evidence,.radar-entry-check{margin-top:3px;font-size:.76rem}
.radar-action-reason{color:var(--fg)}
.radar-entry-check{margin-top:5px}
.radar-forex{margin-top:6px;padding-top:5px;border-top:1px solid var(--edge);font-size:.71rem}
.radar-forex strong{color:var(--fg);margin-right:.25em}
.session-radar-table{table-layout:fixed;white-space:normal;margin-top:4px}
.session-radar-table th,.session-radar-table td{padding:6px 3px;vertical-align:top;overflow-wrap:anywhere;font-size:.75rem}
.session-radar-table th[scope="row"]{color:var(--fg)}
.session-radar-table tbody tr:last-child th{border-bottom:0}
.session-radar-table small{font-size:.67rem;margin:0;font-weight:400;color:var(--muted)}
.empty{display:grid;place-items:center;min-height:100px;color:var(--muted);text-align:center}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cal-head button{min-height:36px;width:36px;padding:0}
.cal-title{font-size:.9rem;font-weight:650;text-transform:capitalize}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:11px}
.calendar .weekday{color:var(--dim);font-size:.7rem;text-align:center;padding-bottom:3px}
.calendar .day{min-height:46px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:4px 5px;background:var(--inset);border:1px solid transparent;border-radius:5px;color:var(--muted)}
.calendar .day span{font-size:.73rem}
.calendar .day small{color:inherit;line-height:1.15;font-size:clamp(.57rem,.82vw,.69rem);font-weight:680;white-space:nowrap}
.calendar .day.gain{background:var(--gain-bg);color:var(--green)}
.calendar .day.loss{background:var(--risk);color:var(--red)}
.calendar .day.current{border-color:var(--dim)}
.calendar .day:hover{border-color:var(--brand)}
.cal-caption{font-size:.76rem;margin-top:10px}
.insight{padding:12px 0;border-top:1px solid var(--edge)}
.insight:first-of-type{padding-top:1px;border:0}
.insight p{font-size:.85rem;margin-top:4px}
.insight strong{color:var(--fg)}
.table-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.table-tools label{color:var(--muted);font-size:.84rem}
input,select,textarea{background:var(--inset);color:var(--fg);border:1px solid var(--control-edge);border-radius:7px;padding:8px 10px}
input:not([type="radio"]),select{min-height:39px}
select{max-width:100%}
textarea{resize:vertical;min-height:110px;width:100%}
.table-wrap{overflow:auto;border:1px solid var(--edge);border-radius:8px;background:var(--inset)}
table{border-collapse:collapse;width:100%;font-size:.86rem;white-space:nowrap}
td,th{text-align:left;padding:10px 7px;border-bottom:1px solid var(--edge)}
td:last-child,th:last-child{text-align:right}
tr:last-child td{border-bottom:0}
th{font-size:.72rem;color:var(--muted);font-weight:640}
.table-wrap thead th{background:var(--card2);color:var(--muted)}
.table-wrap tbody tr:focus-within{background:var(--hover)}
.opening-robot{display:grid;gap:10px;margin-top:var(--gap)}
.opening-robot-controls{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px}
.opening-robot-controls [aria-disabled="true"]{cursor:progress;opacity:.7}
.opening-robot-state{margin-top:3px;font-size:.84rem;font-weight:650}
.opening-robot-unavailable{color:var(--amber);font-size:.82rem}
.opening-robot-rules{font-size:.88rem}
.opening-robot-meta{font-size:.81rem}
.opening-robot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));align-items:start;gap:10px}
.opening-robot-tile{min-width:0;padding:12px;border:1px solid var(--edge);border-radius:8px;background:var(--inset)}
.opening-robot-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:8px 12px;
  margin:10px 0 0;font-size:.82rem
}
.opening-robot-facts dt{color:var(--muted)}
.opening-robot-facts dd{margin:1px 0 0;overflow-wrap:anywhere;font-weight:650;font-variant-numeric:tabular-nums}
.opening-robot-chart{margin-top:8px;padding-top:3px;border-top:1px solid var(--edge);min-width:0}
.opening-robot-chart summary{min-height:44px;padding:11px 0;color:var(--brand);cursor:pointer;font-size:.85rem;font-weight:650}
.opening-chart-status,.opening-chart-note{margin:3px 0 6px;color:var(--muted);font-size:.76rem}
.opening-robot-chart figure{margin:0}
.opening-chart-canvas{display:block;width:100%;height:clamp(148px,40vw,222px);border:1px solid var(--edge);border-radius:7px;background:var(--inset)}
.opening-chart-legend{display:flex;flex-wrap:wrap;gap:3px 11px;margin-top:6px;color:var(--muted);font-size:.76rem;font-variant-numeric:tabular-nums}
.opening-chart-legend span::before{display:inline-block;width:11px;margin-right:5px;border-top:1px solid var(--amber);vertical-align:middle;content:""}
.opening-chart-legend [data-chart-support]::before{border-top-style:dashed;border-color:#a0bdeb}
.opening-chart-pivot h4{margin:10px 0 4px;color:var(--amber);font-size:.8rem}
.opening-chart-pivot .opening-chart-canvas{height:120px}
.opening-robot-results{margin-bottom:10px}
.opening-robot-detail{margin-top:10px;padding-top:8px;border-top:1px solid var(--edge)}
.opening-robot-detail h4{margin:0;font-size:.85rem}
.opening-robot-detail > p{margin-top:4px}
.opening-robot .notice{margin:0}

/* Nitro's dedicated workspace: quiet surfaces, live state, bounded CSS motion. */
.nav-icon--robot{background:linear-gradient(currentColor,currentColor) center 0/1px 4px no-repeat}
.nav-icon--robot::before{inset:3px 0 1px;border:1px solid currentColor;border-radius:4px}
.nav-icon--robot::after{left:4px;top:8px;width:2px;height:2px;border-radius:50%;background:currentColor;box-shadow:6px 0 currentColor}
.robot-view{
  --robot-accent:#ff9e8d;--robot-line:#c1786b38;--robot-muted:#b7a6a5;--robot-subtle:#887c7c;
  position:relative;display:grid;gap:18px;min-width:0;padding-bottom:8px;
}
.robot-command{
  position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 232px;
  align-items:center;gap:10px 30px;min-height:264px;overflow:hidden;padding:30px 34px;
  border:1px solid #b66c623d;border-radius:20px;
  background:radial-gradient(ellipse 56% 110% at 97% 51%,#4b1b1e70,transparent 73%),
    linear-gradient(116deg,#121113 8%,#1c1316 63%,#160e11);
  box-shadow:inset 0 1px 0 #f6c5b90a,0 20px 48px #09050730;
}
.robot-command::before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.43;
  background:linear-gradient(#d8957d14 1px,transparent 1px) 0 0/35px 35px,
    linear-gradient(90deg,#d8957d14 1px,transparent 1px) 0 0/35px 35px;
  -webkit-mask-image:linear-gradient(90deg,transparent 18%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 18%,#000 100%);
}
.robot-command::after{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(circle at 67% 20%,#ffbd9c75 0 1px,transparent 1.7px),
    radial-gradient(circle at 91% 29%,#ffbd9c75 0 .7px,transparent 1.5px),
    radial-gradient(circle at 73% 76%,#dc7d6e75 0 .8px,transparent 1.5px),
    radial-gradient(circle at 94% 82%,#ffbd9c75 0 1px,transparent 1.7px),
    radial-gradient(circle at 58% 52%,#dc7d6e65 0 .65px,transparent 1.3px);
}
.robot-command__intro{min-width:0;position:relative;z-index:1}
.robot-command__eyebrow{
  display:flex;align-items:center;gap:9px;margin:0 0 13px;color:#dba391;
  font-size:.65rem;font-weight:650;letter-spacing:.18em;text-transform:uppercase;
}
.robot-command__eyebrow::before{content:"";width:24px;height:1px;background:linear-gradient(90deg,#ffab90,#ffab9030)}
.robot-command__intro h2{
  max-width:19ch;color:#fff2e9;font-size:clamp(1.65rem,2.5vw,2.35rem);
  font-weight:640;letter-spacing:-.045em;line-height:1.13;
}
.robot-command__intro p:not(.robot-command__eyebrow){max-width:43ch;margin-top:11px;color:#bdaaa8;font-size:.87rem;line-height:1.65}
.robot-command__intro p.robot-command__mode{
  display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;margin:0 0 11px;
  border:1px solid #ca947443;border-radius:5px;background:#d8916b0d;color:#d9b69f;
  font-size:.65rem;line-height:1.4;font-weight:550;letter-spacing:.025em;
}
.robot-command__intro p.robot-command__contact{margin-top:13px;color:#968480;font-size:.67rem;line-height:1.4;font-variant-numeric:tabular-nums}
.robot-command__intro [role="status"]{color:#f1c0ae}
.robot-core{
  position:relative;width:232px;aspect-ratio:1;justify-self:center;flex:none;contain:paint;
  background:radial-gradient(circle,#e66f5725 0,transparent 62%);
}
.robot-core__ring,.robot-core__node,.robot-core__orbit{position:absolute;display:block;border-radius:50%}
.robot-core__ring{border:1px solid #c27e6854;transform-origin:center}
.robot-core__ring--outer{inset:4%;border-color:#be8b6c36;border-left-color:#ffb2928a}
.robot-core__ring--outer::before{content:"";position:absolute;top:16%;left:13%;width:4px;height:4px;border-radius:50%;background:#ffc39d;box-shadow:0 0 9px #ffad7d6b}
.robot-core__ring--middle{inset:17%;border-style:dashed;border-color:#e6a17f49;border-bottom-color:#f4bd9c9e}
.robot-core__ring--inner{inset:28%;border:2px solid #81504470;border-top-color:#f7b49a;border-right-color:#d08b7473}
.robot-core__ring--inner::after{content:"";position:absolute;inset:8%;border:1px solid #c8806430;border-radius:50%}
.robot-core__node{
  inset:37%;border:1px solid #db9c7c80;
  background:radial-gradient(ellipse at 37% 27%,#70504a70,transparent 67%),linear-gradient(145deg,#3c2725,#1a1418 60%,#4f2728);
  box-shadow:inset 0 1px 0 #ffe4c846,inset 0 -7px 15px #09080b78,0 0 22px #ea7c5c15;
}
.robot-core__node::before{
  content:"";position:absolute;left:20%;right:20%;top:42%;height:7px;border-radius:6px;
  background:linear-gradient(90deg,#bc6d58,#ffdec0 47%,#ffd3ae 60%,#b45d4f);
  box-shadow:0 0 12px #ffad6e8c;
}
.robot-core__node::after{content:"";position:absolute;left:35%;right:35%;bottom:23%;height:1px;background:#d49c796b}
.robot-core__orbit{
  inset:0;background:radial-gradient(circle at 50% 4%,#ffd6ad 0 1.2px,transparent 2px),
    radial-gradient(circle at 84% 83%,#ff9a827c 0 1px,transparent 1.7px);
}
.robot-core__orbit::after{content:"";position:absolute;inset:11%;border:1px solid transparent;border-top-color:#d18d7161;border-radius:50%;transform:rotate(-27deg)}
.robot-view[data-activity="idle"] .robot-core{opacity:.72}
.robot-view[data-activity="paused"] .robot-core{opacity:.5}
.robot-view[data-activity="offline"] .robot-core{opacity:.35;filter:saturate(.25)}
.robot-view[data-activity="paused"] .robot-command__intro [role="status"],
.robot-view[data-activity="offline"] .robot-command__intro [role="status"]{color:var(--robot-muted)}
.robot-telemetry{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:0;margin:0;
  border:1px solid #bb857629;border-radius:13px;background:#130f12b8;overflow:hidden;
}
.robot-command > .robot-telemetry{grid-column:1/-1;position:relative;z-index:1;margin-top:12px}
.robot-telemetry__item{min-width:0;padding:15px 18px;border-left:1px solid #bd8c7724}
.robot-telemetry__item:first-child{border-left:0}
.robot-telemetry dt{margin:0;color:#a79594;font-size:.69rem;font-weight:500;line-height:1.4}
.robot-telemetry dd{margin:5px 0 0;color:#f5dfd4;font-size:1.06rem;font-weight:620;letter-spacing:-.025em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.robot-view .robot-console{
  margin-top:0;min-width:0;padding:23px;gap:16px;border:1px solid #b7806c35;border-radius:17px;
  background:linear-gradient(148deg,#1b1417ed,#120f13f5);box-shadow:inset 0 1px 0 #edc0a60b;
}
.robot-console .opening-robot-controls{align-items:center;gap:14px}
.robot-console .opening-robot-controls h2{color:#f5e3da;font-size:1.08rem;font-weight:620}
.robot-console .opening-robot-rules{max-width:80ch;color:#bca7a4;font-size:.8rem;line-height:1.7}
.robot-console .opening-robot-meta{color:#ac9694;font-size:.76rem}
.robot-console .opening-robot-state{font-size:.8rem;font-weight:550}
.robot-console .opening-robot-controls + .opening-robot-controls{padding-top:13px;border-top:1px solid #bb857621}
.robot-console .secondary{background:#302125a3;border-color:#b88b7b68}
.robot-console .secondary:hover:not(:disabled){background:#422c31;border-color:#e0ae948c}
.robot-station-grid{gap:15px;align-items:start}
.robot-view .robot-station{
  position:relative;min-width:0;padding:19px;border:1px solid #a5786b39;border-top-color:#d2967a59;
  border-radius:13px;background:radial-gradient(ellipse 100% 140px at 50% 0,#542c271f,transparent),#100f12;
}
.robot-view .robot-station[data-activity="active"]{border-top-color:#e2a284a6}
.robot-station__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 11px;min-width:0;margin-bottom:9px}
.robot-station__header > div{display:flex;align-items:center;gap:11px;min-width:0}
.robot-station__header h3{font-size:1.25rem;font-weight:620;letter-spacing:-.035em;color:#f4e3da}
.robot-station__index{
  display:grid;place-items:center;width:31px;height:31px;flex:none;border:1px solid #b47f613f;border-radius:8px;
  background:linear-gradient(145deg,#3a27233d,#251b203b);color:#b88d78;font-size:.62rem;letter-spacing:.05em;font-variant-numeric:tabular-nums;
}
.robot-station__header .robot-station__state{padding:4px 7px;border:1px solid #b9897033;border-radius:5px;background:#b7856909;font-size:.64rem}
.robot-station__state{display:flex;align-items:center;gap:7px;color:#ceb3a7;font-size:.8rem;line-height:1.45}
.robot-station__state::before{content:"";display:block;flex:none;width:5px;height:5px;border-radius:50%;background:#b59b8e}
.robot-station[data-activity="active"] .robot-station__state::before{background:#f7b58f;box-shadow:0 0 7px #ffad7e48}
.robot-station[data-activity="paused"] .robot-station__state,
.robot-station[data-activity="idle"] .robot-station__state{color:#b7a29a}
.robot-station[data-activity="offline"] .robot-station__state{color:#968788}
.robot-station[data-activity="offline"] .robot-station__state::before{background:#807479}
.robot-view .robot-station > .opening-robot-state{color:#dec5b7;font-size:.95rem;font-weight:570;line-height:1.4;margin:13px 0 5px}
.robot-station__schedule{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:12px;color:#a38e84;font-size:.67rem;font-variant-numeric:tabular-nums}
.robot-view .robot-station__facts{gap:14px 12px;margin-top:16px;padding-top:15px;border-top:1px solid #b9897028;font-size:.78rem}
.robot-station__facts dt{font-size:.7rem;color:#9e8c89;line-height:1.4}
.robot-station__facts dd{margin-top:4px;color:#dfc8bd;font-size:.83rem;font-weight:590;line-height:1.5}
.robot-view .robot-station__detail{margin-top:15px;padding-top:13px;border-top:1px solid #b9897028}
.robot-view .robot-station__detail h4{font-size:.75rem;color:#cbb09f;font-weight:600}
.robot-view .robot-station__context,.robot-view .robot-protocol{border-top:1px solid #b9897028;margin-top:13px;padding-top:2px}
.robot-view .robot-station__context summary,.robot-view .robot-protocol summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;
  color:#bda48f;cursor:pointer;font-size:.74rem;font-weight:530;list-style:none;
}
.robot-view .robot-station__context summary::-webkit-details-marker,.robot-view .robot-protocol summary::-webkit-details-marker{display:none}
.robot-view .robot-station__context summary::after,.robot-view .robot-protocol summary::after{content:"+";color:#8e7b72;font-weight:400;font-size:1rem}
.robot-view .robot-station__context[open] summary::after,.robot-view .robot-protocol[open] summary::after{content:"−"}
.robot-view .robot-station__context .opening-robot-facts{margin-top:1px;padding:0 0 10px;font-size:.73rem}
.robot-view .robot-station__context .opening-robot-facts dt{font-size:.67rem;color:#9e8c89}
.robot-view .robot-protocol .opening-robot-rules{margin-bottom:10px}
.robot-view .robot-performance{border-color:#b9897033;background:#130f13}
.robot-view .opening-robot-chart{margin-top:15px;border-top-color:#b9897028}
.robot-view .opening-robot-chart summary{color:#dda98d;font-size:.78rem;font-weight:560}
.robot-view .opening-chart-canvas{border-color:#a4776336;background:#100f12;border-radius:9px}
.robot-view .opening-chart-status,.robot-view .opening-chart-note,.robot-view .opening-chart-legend{color:#a5928c;font-size:.71rem}
.robot-view .robot-signal-monitor{border-color:#b8887038;background:#191316}
.robot-view .opening-robot-results{margin-bottom:0}
.robot-view .opening-robot-results .metric{background:#171115;border-color:#b9897033}
@media(prefers-reduced-motion:no-preference){
  .robot-view[data-activity="active"][data-visible="true"] .robot-core__ring--outer{animation:robot-orbit 38s linear infinite}
  .robot-view[data-activity="active"][data-visible="true"] .robot-core__ring--middle{animation:robot-orbit 29s linear infinite reverse}
  .robot-view[data-activity="active"][data-visible="true"] .robot-core__ring--inner{animation:robot-orbit 17s linear infinite}
  .robot-view[data-activity="active"][data-visible="true"] .robot-core__orbit{animation:robot-orbit 43s linear infinite reverse}
  .robot-view[data-activity="active"][data-visible="true"] .robot-core__node{animation:robot-pulse 4.6s ease-in-out infinite}
}
@keyframes robot-orbit{to{transform:rotate(360deg)}}
@keyframes robot-pulse{0%,100%{opacity:.77}50%{opacity:1}}
@media(max-width:980px){
  .robot-command{grid-template-columns:minmax(0,1fr) 190px;padding:25px;gap:10px 20px}
  .robot-core{width:190px}
}
@media(max-width:780px){
  .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
  .sidebar nav button{font-size:11px;letter-spacing:-.02em;line-height:1.25;min-height:49px}
  .robot-view{gap:13px}
  .robot-command{grid-template-columns:minmax(0,1fr) 126px;min-height:226px;gap:15px 8px;padding:21px 19px 17px;border-radius:17px}
  .robot-command__eyebrow{font-size:.58rem;letter-spacing:.13em;gap:6px;margin-bottom:11px}
  .robot-command__eyebrow::before{width:14px}
  .robot-command__intro h2{font-size:1.58rem;max-width:15ch;letter-spacing:-.043em}
  .robot-command__intro p:not(.robot-command__eyebrow){font-size:.76rem;line-height:1.6;max-width:29ch;margin-top:10px}
  .robot-command__intro p.robot-command__mode{font-size:.61rem;line-height:1.35;margin:0 0 10px}
  .robot-command__intro p.robot-command__contact{font-size:.62rem;line-height:1.4;margin-top:11px}
  .robot-core{width:144px;margin-left:-6px;margin-right:-10px}
  .robot-core__node::before{height:4px}
  .robot-telemetry{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:10px}
  .robot-telemetry__item{padding:12px 14px}
  .robot-telemetry__item:nth-child(odd){border-left:0}
  .robot-telemetry__item:nth-child(n+3){border-top:1px solid #bd8c7724}
  .robot-telemetry dt{font-size:.64rem}
  .robot-telemetry dd{font-size:.97rem;margin-top:4px}
  .robot-command > .robot-telemetry{margin-top:0}
  .robot-view .robot-console{padding:16px 13px;gap:14px;border-radius:15px}
  .robot-console .opening-robot-controls{gap:11px}
  .robot-console .opening-robot-controls h2{font-size:1rem}
  .robot-console .opening-robot-rules{font-size:.76rem}
  .robot-station-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .robot-view .robot-station{padding:16px;border-radius:11px}
  .robot-station__header h3{font-size:1.23rem}
  .robot-view .robot-station__context summary,.robot-view .robot-protocol summary{min-height:44px}
  .robot-view .robot-station__facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
}
@media(max-width:350px){
  .sidebar nav button{font-size:11px}
  .robot-command{grid-template-columns:minmax(0,1fr) 103px;padding:18px 14px 14px;gap:13px 3px}
  .robot-command__intro h2{font-size:1.4rem}
  .robot-command__eyebrow{font-size:.54rem;letter-spacing:.1em}
  .robot-core{width:124px;margin-left:-8px;margin-right:-12px}
  .robot-command__intro p:not(.robot-command__eyebrow){font-size:.72rem}
  .robot-view .robot-console{padding:14px 10px}
  .robot-view .robot-station{padding:13px}
}
@media(prefers-reduced-motion:reduce){
  .robot-view .robot-core__ring,.robot-view .robot-core__orbit,.robot-view .robot-core__node{animation:none!important}
}
@media(forced-colors:active){
  .robot-command,.robot-view .robot-console,.robot-view .robot-station,.robot-telemetry{background:Canvas;border-color:CanvasText}
  .robot-command::before,.robot-command::after{display:none}
  .robot-core__ring,.robot-core__node{border-color:CanvasText}
}
td{color:var(--muted)}
td b{color:var(--fg)}
td button{font:inherit;color:var(--brand);background:transparent;border:0;padding:0;text-decoration:underline;text-underline-offset:3px}
.goal-progress{margin-bottom:var(--gap)}
.goal-progress-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.goal-edit{background:none;border:0;color:var(--brand);padding:6px 0 6px 8px;min-height:36px;font-size:.82rem;font-weight:620;text-decoration:underline;text-underline-offset:3px}
.goal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;max-width:430px;background:var(--inset);border:1px solid var(--edge);border-radius:8px;padding:3px;margin-bottom:10px}
.goal-tabs button{border:0;border-radius:5px;background:none;color:var(--muted);padding:4px 8px;min-height:36px;font-size:.87rem}
.goal-tabs button[aria-selected="true"]{background:var(--selection);color:var(--fg);font-weight:650}
.goal-progress [role="tabpanel"]:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:3px}
.goal-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;margin:0}
.goal-amounts dt,.goal-linked-summary dt{color:var(--muted);font-size:.76rem}
.goal-amounts dd,.goal-linked-summary dd{margin:2px 0 0;font-weight:710;letter-spacing:-.025em;overflow-wrap:anywhere}
.goal-amounts dd{font-size:clamp(.93rem,3.3vw,1.26rem)}
.goal-progress .meter{height:7px;margin:9px 0 4px}
.goal-progress-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;font-size:.78rem}
.goal-progress-meta strong{color:var(--brand)}
.goal-linked-pace{margin-top:11px;padding:10px 0 0;border-top:1px solid var(--edge)}
.goal-linked-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 8px}
.goal-linked-heading h3{font-size:.9rem}
.goal-linked-heading span,.goal-linked-context{color:var(--muted);font-size:.73rem}
.goal-linked-summary{margin:5px 0 0}
.goal-linked-summary dd{font-size:1.15rem}
.goal-linked-context{margin-top:3px}
.goal-progress .live-projection[data-live-projection]{margin:10px 0 0;padding:10px;border-radius:7px;background:linear-gradient(128deg,#3d2429,var(--inset) 89%)}
.goal-progress .live-projection-heading{gap:3px 8px;margin-bottom:7px}
.goal-progress .live-projection-heading h3{font-size:.88rem}
.goal-progress .live-projection-heading time{white-space:normal}
.goal-progress .live-projection-values{gap:7px 9px;padding-top:7px;border-top:1px solid var(--edge)}
.goal-progress .live-projection-values dd.number{font-size:1rem}
.goal-progress .live-projection-values [data-projection-figure="floating"] dd,.goal-progress .live-projection-values [data-projection-figure="today"] dd{font-size:clamp(1.08rem,3.8vw,1.34rem);font-weight:750;line-height:1.14;letter-spacing:-.025em}
.goal-progress .live-projection-values [data-projection-figure="today"] dd{color:var(--brand)}
.forms{display:grid;gap:12px}
.forms label{display:grid;gap:4px;color:var(--muted);font-size:.86rem}
.forms input{width:100%}
.forms .actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.forms .actions .notice{margin:0}
.goals-settings .forms{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.goals-settings .actions{grid-column:1/-1}
.access{margin-top:var(--gap)}
.access p{margin:6px 0 13px}
.access pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--inset);border:1px solid var(--edge);padding:11px;border-radius:6px;margin:9px 0}
.notice{min-height:1em;margin:7px 0;color:var(--brand);font-size:.82rem}
.notice.error{color:var(--red)}
footer{display:flex;justify-content:space-between;margin:20px 0;padding-bottom:12px;color:var(--dim);font-size:.76rem}
.auth{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:20px}
.auth-card{width:min(100%,410px);padding:27px;display:grid;gap:13px;box-shadow:var(--surface-shadow),0 22px 68px #310c16a0}
.auth-card h1{font-size:1.7rem}
.auth-card p{font-size:.88rem}
dialog{border:1px solid var(--control-edge);background:linear-gradient(145deg,#42272f,#211418 74%);color:var(--fg);border-radius:var(--radius);width:min(94%,640px);max-height:90vh;max-height:90dvh;padding:0;box-shadow:0 12px 38px #0007}
dialog::backdrop{background:#10080bd1}
.dialog-inner{padding:18px}
.dialog-inner>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding-bottom:7px;border-bottom:1px solid var(--edge)}
#close-detail{flex:none;min-width:42px}
.trade-hint{margin:0 0 8px;font-size:.83rem;overflow-wrap:anywhere}
.trade-risk-note{color:var(--amber)}
.trade-input{gap:9px}
.trade-input select{width:100%;min-width:0}
.trade-protection-mode,.trade-protection-panel{min-inline-size:0;margin:0;padding:0;border:0}
.trade-protection-mode legend{margin:0 0 4px;padding:0;color:var(--muted);font-size:.86rem}
.trade-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.trade-mode-options label{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 8px;border:1px solid var(--edge);border-radius:7px;background:var(--inset);cursor:pointer}
.trade-mode-options label:has(input:checked){border-color:var(--brand-edge);color:var(--brand);background:var(--brand-bg)}
.trade-mode-options input{width:auto;margin:0;accent-color:var(--brand)}
.trade-protection-panel{display:grid;gap:9px}
.trade-protection-panel .trade-hint{margin:0}
.trade-input .notice{margin:0;min-height:0}
.trade-input .notice:empty{display:none}
.trade-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:8px}
.trade-dialog-actions button{min-height:44px}
.trade-confirm-close{background:var(--red);color:#291519;border-color:transparent}
.trade-review{margin:10px 0;display:grid;gap:0}
.trade-review>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--edge)}
.trade-review dt{color:var(--muted)}
.trade-review dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.trade-result h3{margin-bottom:5px}
.trade-result.executed h3,.trade-result.configured h3,.trade-result.cancelled h3{color:var(--green)}
.trade-result.rejected h3{color:var(--red)}
.trade-result.unknown h3,.trade-result.partial h3{color:var(--amber)}
.detail-summary{padding:10px 0 14px}
.detail-summary .number{font-size:1.52rem;display:block}
.guidance-history{margin-bottom:var(--gap)}
.guidance-meta{font-size:.78rem;margin:3px 0;color:var(--muted)}
.guidance-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:9px;margin-top:10px}
.guidance-group,.guidance-insight{background:var(--inset);border:1px solid var(--edge);border-radius:7px;padding:10px}
.guidance-group,.guidance-group dd,.guidance-event-context{overflow-wrap:anywhere}
.guidance-group h3,.guidance-insight h3,.guidance-trade h3{font-size:.93rem}
.guidance-figures,.guidance-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;margin:7px 0}
.guidance-figures dt,.guidance-levels dt{color:var(--muted);font-size:.73rem}
.guidance-figures dd,.guidance-levels dd{margin:2px 0 0;font-size:.85rem;font-weight:680;overflow-wrap:anywhere}
.guidance-group .secondary{min-height:39px;font-size:.79rem}
.guidance-insight{margin-top:10px;border-left:2px solid var(--brand-edge)}
.guidance-insight p{font-size:.8rem;margin-top:4px}
.guidance-footnote{margin-top:9px}
.guidance-trade,.guidance-raw-fills{margin-top:11px}
.guidance-events{padding:0;margin:7px 0 0;list-style:none}
.guidance-events li{border-left:1px solid var(--control-edge);padding:5px 0 8px 10px}
.guidance-event-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;font-size:.83rem}
.guidance-event-head time{color:var(--muted);font-size:.75rem}
.guidance-event-context{color:var(--muted);font-size:.79rem;margin-top:1px}
.guidance-levels{grid-template-columns:repeat(2,minmax(0,1fr));margin:4px 0}
.guidance-raw-fills summary{padding:7px 0;cursor:pointer;color:var(--brand);font-size:.84rem}
.note-form{display:grid;gap:7px;margin-top:13px}
.note-form .primary{justify-self:start}
@media(max-width:1100px){
  #shell{grid-template-columns:180px minmax(0,1fr)}
  .sidebar{padding-inline:12px}
  main{padding:0 22px}
  .split{grid-template-columns:minmax(0,1.68fr) minmax(235px,1fr)}
  .box{padding:15px}
  .metrics{gap:9px}
  .metric{padding:12px}
  .goals-settings .forms{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:980px){
  .split.overview-limits,.split.review-summary{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:780px){
  body::before{
    background:
      radial-gradient(ellipse 125% 44% at 100% 8%,#70152a,#57132585 53%,transparent 90%),
      radial-gradient(ellipse 110% 38% at 6% 0%,#5526228c,transparent 85%),
      radial-gradient(ellipse 104% 46% at 100% 92%,#42132080,transparent 90%),
      linear-gradient(154deg,#241215,#1a0e12 59%,#240e15 100%);
  }
  :root{--gap:12px}
  #shell{display:block}
  .sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;z-index:4;border-right:0;border-top:1px solid var(--edge);padding:5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:linear-gradient(116deg,#2f1a1f,#281216 90%),var(--sidebar)}
  .sidebar .brand,.sidebar .account{display:none}
  .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
  .sidebar nav button{flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 2px;font-size:11px;min-height:49px}
  .sidebar nav button span{font-size:1rem}
  main{padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) calc(63px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  .mobile-brand{display:flex;margin-right:auto;font-size:.92rem}
  .mobile-brand .brand-mark{width:25px;height:25px}
  .top{min-height:56px;gap:6px}
  .live-status{font-size:.74rem;max-width:106px;line-height:1.2}
  .top .refresh{flex:none;min-height:44px;width:44px}
  .intro{margin:21px 0 14px;align-items:flex-start;flex-direction:column;gap:10px}
  .intro h1{font-size:1.76rem}
  .intro p{margin-top:4px}
  input,select,textarea{font-size:16px}
  input:not([type="radio"]),select,.primary,.secondary{min-height:44px}
  .segments button{min-height:44px;padding-inline:9px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .metrics.metrics-summary{gap:0}
  .metrics-summary .metric:nth-child(odd){border-left:0}
  .metrics-summary .metric:nth-child(n+3){border-top:1px solid var(--edge)}
  .metric .number{font-size:1.25rem}
  .overview-results-title{margin-top:17px}
  .split{grid-template-columns:minmax(0,1fr)}
  .chart{height:170px}
  .box{padding:13px}
  .guidance-group .secondary,.open-position-detail,#close-detail{min-height:44px}
  #close-detail{min-width:44px}
  .trade-position-actions button{flex:1 1 auto;padding-inline:9px}
  .goal-tabs button,.goal-edit{min-height:44px}
  .goal-amounts{gap:5px 8px}
  .stop-details summary{min-height:44px}
  .cal-head button{min-height:44px;width:44px}
  .calendar{gap:4px}
  .calendar .day small{font-size:.64rem;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .calendar .day{min-height:44px;padding-inline:3px}
  .mobile-table{table-layout:fixed}
  .mobile-table th:nth-child(4),.mobile-table td:nth-child(4),
  .mobile-table th:nth-child(5),.mobile-table td:nth-child(5){display:none}
  .mobile-table th:first-child{width:24%}
  .mobile-table th:nth-child(3){width:17%}
  .mobile-table td,.mobile-table th{padding-inline:2px;overflow:hidden;text-overflow:ellipsis}
  .mobile-table td button{min-height:44px}
  .table-tools{gap:7px}
}

/* Shared adaptive risk budget */
.robot-risk-budget{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  grid-template-areas:"heading heading" "summary caption" "summary assets" "note assets" "footer footer";
  gap:11px 30px;min-width:0;padding:24px 28px;
  border:1px solid #b9816e38;border-radius:17px;
  background:radial-gradient(ellipse 85% 140% at 4% 0,#773b3218,transparent 70%),linear-gradient(119deg,#191316,#130f13 74%);
  box-shadow:inset 0 1px 0 #f6c5b909;
}
.robot-risk-budget__header{grid-area:heading;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:2px}
.robot-risk-budget__eyebrow{margin:0 0 5px;color:#af8c7d;font-size:.58rem;font-weight:600;letter-spacing:.13em}
.robot-risk-budget__header h2{margin:0;color:#f2ddd1;font-size:1.08rem;line-height:1.25;letter-spacing:-.025em;font-weight:610}
.robot-risk-budget__policy{display:inline-flex;align-items:center;gap:5px;flex:none;padding:6px 8px;border:1px solid #bb90713d;border-radius:6px;background:#ba805a0a;color:#e6bc9d;font-size:.65rem;line-height:1.3;font-variant-numeric:tabular-nums}
.robot-risk-budget__policy span{color:#ac9182;font-size:.59rem}
.robot-risk-budget__summary{grid-area:summary;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;align-items:center;margin:5px 0 0;min-width:0}
.robot-risk-budget__summary>div{min-width:0}
.robot-risk-budget__summary dt{color:#ae9790;font-size:.73rem;line-height:1.4}
.robot-risk-budget__summary dd{margin:5px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.15}
.robot-risk-budget__free dd{color:#f4c3ab;font-size:clamp(1.5rem,2.1vw,2rem);font-weight:620}
.robot-risk-budget__committed{padding-left:18px;border-left:1px solid #a478622a}
.robot-risk-budget__committed dd{color:#d9b7a8;font-size:1.13rem;font-weight:560}
.robot-risk-budget__reason{grid-area:note;margin:0;color:#a88f85;font-size:.67rem;line-height:1.5;max-width:54ch}
.robot-risk-budget__limit-label{grid-area:caption;align-self:end;margin:5px 0 -4px;color:#b79b8e;font-size:.69rem;line-height:1.45}
.robot-risk-budget__assets{grid-area:assets;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-self:start;min-width:0}
.robot-risk-budget__asset{min-width:0;padding:12px 13px;border:1px solid #b3867130;border-radius:9px;background:linear-gradient(135deg,#f3b69705,#0b090b25)}
.robot-risk-budget__asset h3{margin:0 0 6px;color:#debdac;font-size:.76rem;letter-spacing:.025em;font-weight:600}
.robot-risk-budget__asset>strong{display:block;color:#efcdbb;font-size:1.08rem;font-weight:610;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.robot-risk-budget__asset>p{margin:7px 0 0;color:#a89286;font-size:.63rem;line-height:1.5}
.robot-risk-budget__asset[data-activity="offline"]>p{color:#8f8081}
.robot-risk-budget__footer{grid-area:footer;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:2px 18px;padding-top:10px;border-top:1px solid #b386711c}
.robot-risk-budget__footer>time{color:#8c7973;font-size:.61rem;line-height:1.5;font-variant-numeric:tabular-nums}
.robot-risk-budget__footer>details{flex:1;min-width:0}
.robot-risk-budget__footer>details>summary{display:block;width:max-content;max-width:100%;margin-left:auto;padding:0 0 3px;list-style:none;color:#b99b8a;cursor:pointer;font-size:.63rem;line-height:1.5}
.robot-risk-budget__footer>details>summary::-webkit-details-marker{display:none}
.robot-risk-budget__footer>details>summary::after{content:" +";color:#917d71}
.robot-risk-budget__footer>details[open]>summary::after{content:" −"}
.robot-risk-budget__details{padding-top:9px}
.robot-risk-budget__details>p{margin:0;color:#aa9289;font-size:.67rem;line-height:1.65}
.robot-risk-budget__details>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:11px 0}
.robot-risk-budget__details dt{color:#8e7d78;font-size:.62rem;line-height:1.5}
.robot-risk-budget__details dd{margin:3px 0 0;color:#cbb0a2;font-size:.76rem;font-variant-numeric:tabular-nums;font-weight:550;overflow-wrap:anywhere}
.robot-risk-budget[data-state="stale"] [data-robot-risk-value],
.robot-risk-budget[data-state="unavailable"] [data-robot-risk-value],
.robot-risk-budget[data-state="stale"] [data-robot-risk-entry],
.robot-risk-budget[data-state="unavailable"] [data-robot-risk-entry]{color:#917f7a}
.robot-risk-budget[data-state="stale"] .robot-risk-budget__reason,
.robot-risk-budget[data-state="unavailable"] .robot-risk-budget__reason{color:#cead86}
@media(max-width:760px){
 .robot-risk-budget{display:flex;flex-direction:column;gap:0;padding:18px 17px;border-radius:14px}
 .robot-risk-budget__header{margin-bottom:18px;align-items:flex-start}
 .robot-risk-budget__header h2{font-size:1.01rem}
 .robot-risk-budget__eyebrow{font-size:.54rem}
 .robot-risk-budget__policy{padding:5px 7px;font-size:.62rem;gap:4px}
 .robot-risk-budget__policy span{font-size:.54rem}
 .robot-risk-budget__summary{margin:0;gap:11px}
 .robot-risk-budget__summary dt{font-size:.69rem}
 .robot-risk-budget__free dd{font-size:1.65rem}
 .robot-risk-budget__committed{padding-left:14px}
 .robot-risk-budget__committed dd{font-size:1.05rem}
 .robot-risk-budget__reason{font-size:.64rem;margin-top:9px;max-width:none}
 .robot-risk-budget__limit-label{margin:14px 0 7px;font-size:.67rem}
 .robot-risk-budget__assets{gap:8px}
 .robot-risk-budget__asset{padding:11px 10px;border-radius:8px}
 .robot-risk-budget__asset h3{font-size:.73rem}
 .robot-risk-budget__asset>strong{font-size:1.03rem}
 .robot-risk-budget__asset>p{font-size:.61rem}
 .robot-risk-budget__footer{margin-top:13px;padding-top:9px;gap:4px 10px}
 .robot-risk-budget__footer>time{font-size:.57rem}
 .robot-risk-budget__footer>details>summary{font-size:.61rem;min-height:24px}
 .robot-risk-budget__details>p{font-size:.64rem}
}
@media(max-width:360px){
 .robot-risk-budget{padding:16px 13px}
 .robot-risk-budget__header{gap:7px}
 .robot-risk-budget__header h2{font-size:.93rem}
 .robot-risk-budget__policy{flex-direction:column;align-items:flex-start;gap:1px;padding:4px 6px}
 .robot-risk-budget__policy span{font-size:.51rem}
 .robot-risk-budget__free dd{font-size:1.48rem}
 .robot-risk-budget__committed dd{font-size:.99rem}
 .robot-risk-budget__asset>strong{font-size:.92rem}
 .robot-risk-budget__asset>p{font-size:.58rem}
}
@media(forced-colors:active){
 .robot-risk-budget,.robot-risk-budget__asset,.robot-risk-budget__policy{background:Canvas;border-color:CanvasText}
 .robot-risk-budget__free dd,.robot-risk-budget__committed dd,.robot-risk-budget__asset>strong{color:CanvasText}
}
