@font-face{font-family:Vazirmatn;src:url('/vendor/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#101412;--surface:#171d19;--raised:#1e2620;--line:#303c33;--text:#edf3eb;--muted:#a8b7aa;--lime:#c4f580;--gain:#6ed7bc;--loss:#f19689;--amber:#efc781;--radius:14px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.8 Vazirmatn,sans-serif;font-variant-numeric:tabular-nums}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime)}::selection{background:var(--lime);color:var(--bg)}input{caret-color:var(--lime)}a{text-decoration:none;text-underline-offset:4px}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.6;font-weight:750;letter-spacing:-.025em;text-wrap:balance}h2{font-size:17px;font-weight:650}h3{font-size:15px;font-weight:650}p{max-width:75ch}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}small,.fine{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.error{color:var(--loss);padding-block:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.skip{position:fixed;top:-60px;right:20px;background:var(--lime);color:var(--bg);z-index:100;padding:10px}.skip:focus{top:10px}
button.primary,.primary,.secondary,.stop,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:9px 16px;border-radius:9px;font-weight:600;border:1px solid transparent;white-space:nowrap}.primary{background:var(--lime);color:#182112}.primary:hover{background:#d2ff94;text-decoration:none}.secondary{background:var(--raised);border-color:var(--line);color:var(--text)}.secondary:hover{background:#2a352d;text-decoration:none}.stop{background:#3a2725;color:#ffc0b4;border-color:#73483d}.stop:hover{background:#4c302c}.quiet{background:transparent;color:var(--muted);justify-content:flex-start;padding-inline:0}.text-button{border:0;background:transparent;color:var(--lime);font-size:12px;padding:5px 8px}.text-button:hover{text-decoration:underline}input,select{min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:8px 12px;min-width:0}input::placeholder{color:#a0b1a4}label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.brand{display:flex;align-items:center;gap:13px}.brand:hover{text-decoration:none}.brand-symbol{font:750 42px/1 Vazirmatn,sans-serif;letter-spacing:-.05em;color:var(--text);direction:ltr}.brand-symbol span{color:var(--lime);font-weight:450}.brand>span:last-child{font-weight:650;font-size:14px}.brand small{display:block;font:12px/1.5 Vazirmatn,sans-serif;color:var(--muted);margin-top:3px;direction:ltr;text-align:right}
.app-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100vh}.sidebar{padding:30px 20px 20px;border-left:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:#121814}.sidebar nav{display:grid;gap:8px;margin-top:46px}.sidebar nav a{display:flex;align-items:center;gap:12px;min-height:46px;padding:9px 12px;border-radius:9px;color:var(--muted)}.sidebar nav a:hover{background:var(--raised);text-decoration:none}.sidebar nav a.active{background:#293922;color:var(--lime)}.sidebar nav a>span{margin-right:auto;font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:35px}.sidebar-bottom p{font-size:12px;color:var(--muted);margin:12px 0 18px}.mode-mark{display:flex;align-items:center;gap:8px;font-size:12px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gain);flex-shrink:0}.status-dot.offline{background:var(--amber)}.workspace{min-width:0}.topbar{height:64px;border-bottom:1px solid var(--line);padding-inline:30px;display:flex;align-items:center;justify-content:space-between;gap:14px}.connection,.top-meta{display:flex;align-items:center;gap:10px}.connection{font-size:12px}.top-meta{font-size:12px;color:var(--muted)}.top-meta span+span{border-right:1px solid var(--line);padding-right:14px}main{padding:28px 30px 50px;max-width:1780px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-title p{font-size:12px;color:var(--muted);margin-top:4px}.actions{display:flex;gap:10px}.notice{padding:12px 16px;background:#34301f;color:#f5dba8;border:1px solid #675a37;border-radius:10px;margin-bottom:20px}.account-strip{display:grid;grid-template-columns:repeat(4,1fr) 1.1fr;padding:22px 0 25px;margin-bottom:27px;border-block:1px solid var(--line);gap:16px}.account-strip>div{display:grid;gap:4px;border-left:1px solid var(--line);padding-left:14px}.account-strip>div:last-child{border:0}.account-strip span{font-size:12px;color:var(--muted)}.account-strip strong{font-size:22px;font-weight:600;direction:ltr;text-align:right;line-height:1.6}.account-strip .account-identity strong{font-size:14px;line-height:2.3}.gain{color:var(--gain)}.loss{color:var(--loss)}
.pipeline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:30px;padding:0 0 5px}.pipeline>div{display:flex;align-items:center;gap:10px;min-width:0}.pipeline strong{font-size:12px;display:block}.pipeline small{display:block;font-size:12px;white-space:nowrap}.pipeline>i{height:1px;background:var(--line);flex:1;min-width:12px}.pipe-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--raised);border-radius:10px;color:var(--muted)}.pipeline .ready .pipe-icon{background:#26382d;color:var(--gain)}.pipeline .armed .pipe-icon{background:#35452a;color:var(--lime)}.market-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}.chart-section,.watch-section{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.chart-section>.section-top,.watch-section>.section-top{padding:16px 18px 0;margin-bottom:10px}.chart-section>.section-top h2{font-size:20px;direction:ltr;text-align:right}.chart-section>.section-top span{font-size:12px}.chart-section select{font-size:12px;min-height:36px;padding-block:3px;direction:ltr}.timeframes{display:flex;gap:3px;direction:ltr;padding:0 18px 10px}.timeframes button{border:0;background:transparent;border-radius:6px;padding:4px 10px;min-height:33px;color:var(--muted);font-size:12px}.timeframes button.active{background:#34442a;color:var(--lime)}.chart-wrap{height:360px;position:relative}#price-chart{height:100%;width:100%}.chart-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;background:var(--surface)}.chart-empty svg{width:36px;height:36px;color:var(--muted);margin-bottom:15px}.chart-empty p{font-size:12px;color:var(--muted);max-width:40ch;margin:8px 0 18px}.chart-empty h3{font-size:15px}.chart-context{padding:13px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.chart-loading{position:absolute;top:12px;right:18px;background:var(--raised);padding:5px 12px;border-radius:6px;font-size:12px}.watch-section{padding-bottom:12px}.count-badge{font-size:12px;background:var(--raised);border-radius:5px;padding:3px 7px;color:var(--muted)}.watch-section input{width:calc(100% - 32px);margin:4px 16px 10px;font-size:12px}.watch-header{display:flex;justify-content:space-between;padding:0 18px 8px;font-size:12px;color:var(--muted)}.watchlist{height:361px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.watch-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;width:100%;padding:7px 18px;background:transparent;border:0;border-top:1px solid #29352d;text-align:right}.watch-row:hover,.watch-row.active{background:#243127}.watch-row strong{direction:ltr;font-size:12px;font-weight:550;display:block}.watch-row small{font-size:12px}.watch-row .quote{font-size:12px;direction:ltr;text-align:left;color:var(--muted)}.watch-section>.fine{padding:8px 18px 0;font-size:12px}
.table-section{margin-top:30px}.table-section .section-top a{font-size:12px;color:var(--lime)}.table-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{color:var(--muted);font-weight:400;font-size:12px;padding:12px 10px;text-align:right;border-bottom:1px solid var(--line)}td{padding:14px 10px;border-bottom:1px solid #29352d}td strong{font-weight:550}td small{display:block}td .secondary{font-size:12px;min-height:32px;padding:4px 9px}.empty-state{padding:40px 20px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px}.empty-state strong{display:block;color:var(--text);font-size:14px;font-weight:550;margin-bottom:6px}.section-note{color:var(--muted);font-size:12px;margin:0 0 24px}.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:20px}.pagination span{font-size:12px;color:var(--muted)}.pagination button{font-size:12px}.ai-display{display:flex;align-items:flex-start;gap:15px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:26px}.ai-display>svg{color:var(--lime);margin-top:3px}.ai-display p{font-size:12px;color:var(--muted);margin-top:5px}.ai-display>span{margin-right:auto;white-space:nowrap;font-size:12px;color:var(--amber);padding:3px 8px;background:#3e3524;border-radius:6px}.signal-row{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);align-items:center}.signal-row p{font-size:12px;color:var(--muted)}.decision{font-size:12px;display:inline-block}.decision.approved{color:var(--gain)}.decision.rejected{color:var(--amber)}.signal-row button{font-size:12px}.stage-strip{display:flex;gap:4px;direction:ltr}.stage-strip span{width:22px;height:6px;border-radius:3px;background:var(--line)}.stage-strip span.filled{background:var(--lime)}
.equity-legend{display:flex;gap:24px;font-size:12px;align-items:center;margin-bottom:15px}.equity-legend span:before{content:'';display:inline-block;width:18px;height:3px;vertical-align:middle;margin-left:7px}.legend-equity:before{background:var(--gain)}.legend-balance:before{background:#9bafc6}.account-curve{height:300px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;direction:ltr}.account-curve svg{width:100%;height:100%;stroke-linejoin:round;overflow:visible}.account-curve text{fill:var(--muted);stroke:none;font:11px Vazirmatn,sans-serif}.stats-layout{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:35px}.stats-layout .fine{margin:8px 0 20px}.stat-row{display:grid;grid-template-columns:65px minmax(0,1fr) 75px;gap:15px;align-items:center;margin:14px 0;font-size:12px}.stat-row strong{font-weight:550}.stat-track{height:7px;background:var(--raised);border-radius:4px;overflow:hidden}.stat-track i{display:block;height:100%;background:var(--gain);border-radius:4px}.stat-row>span:last-child{direction:ltr;text-align:left;color:var(--muted)}.audit-row{display:flex;gap:25px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.audit-row time{color:var(--muted);width:130px;flex-shrink:0}
.setup-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:45px}.setup-main>.section-note{margin-top:10px}.setup-step{display:flex;gap:18px;padding:25px 0;border-bottom:1px solid var(--line)}.step-number{display:flex;justify-content:center;align-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid #536d42;color:var(--lime);border-radius:8px;font-size:15px}.setup-step p{font-size:12px;color:var(--muted);margin:8px 0 15px;max-width:65ch}.setup-step .fine{margin-top:10px}.settings-box{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:20px}.settings-box h2{margin-bottom:20px;font-size:15px}.settings-box label{margin-top:16px}.settings-box input,.settings-box select,.settings-box button{width:100%}.settings-box .fine{margin-top:10px}.settings-box p{font-size:12px;color:var(--muted)}.settings-box button{margin-top:20px}.settings-box dl{margin:0;font-size:12px}.settings-box dt{color:var(--muted);float:right;clear:both}.settings-box dd{margin:0 0 10px;text-align:left}#probe-result{background:var(--raised);padding:15px;margin:15px 0;border-radius:8px;line-height:2;font-size:12px}#bind-terminal{margin-top:8px}.toast{position:fixed;bottom:26px;left:30px;z-index:30;background:#273c2e;color:var(--text);border:1px solid #5e8269;border-radius:12px;max-width:min(480px,calc(100vw - 40px));padding:14px 20px;font-size:12px}footer{margin:10px 30px 0;padding:16px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;gap:20px}footer span:last-child{margin-right:auto}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-story{display:flex;flex-direction:column;justify-content:space-between;padding:50px 65px;background:#17231a;border-left:1px solid #344c39}.auth-story h1{font-size:52px;line-height:1.65;letter-spacing:-.025em}.auth-story>div p{color:#b7cbb9;margin-top:22px;font-size:15px}.auth-route{display:flex;align-items:center;gap:12px;margin-top:40px;color:var(--lime);font-size:12px}.auth-route i{height:1px;width:30px;background:#68854f}.auth-form{display:flex;justify-content:center;align-items:center;padding:45px}.auth-form form{width:min(360px,100%)}.small-brand{font-size:30px;direction:ltr;text-align:right;color:var(--lime);margin-bottom:25px;display:none}.auth-form h2{font-size:24px}.auth-form .muted{font-size:12px;margin:8px 0 30px}.auth-form input,.auth-form button{width:100%}.auth-form label{margin-top:20px}.auth-form button{margin-top:26px}.auth-form .fine{margin-top:20px;font-size:12px}
@media(min-width:1650px){.chart-wrap{height:450px}.watchlist{height:451px}.market-layout{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1200px){.app-shell{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding-inline:12px}main{padding-inline:22px}.topbar{padding-inline:22px}.market-layout{grid-template-columns:minmax(0,1fr) 245px;gap:15px}.pipeline{gap:7px}.pipeline small{font-size:12px}.pipeline .pipe-icon{width:30px;height:30px}.pipeline>div{gap:7px}.account-strip strong{font-size:19px}.account-strip{gap:10px}.setup-layout{grid-template-columns:minmax(0,1fr) 280px;gap:25px}.auth-story{padding:45px}.auth-story h1{font-size:44px}}
@media(max-width:1000px){.sidebar{position:static;height:auto;grid-column:1/-1;display:block;padding:12px 20px;border-left:0;border-bottom:1px solid var(--line)}.app-shell{display:block}.sidebar .brand{display:none}.sidebar nav{display:flex;margin:0;gap:8px;overflow:auto}.sidebar nav a{white-space:nowrap;min-height:40px;font-size:12px;padding:7px 12px}.sidebar-bottom{display:none}.market-layout{grid-template-columns:minmax(0,1fr) 260px}.topbar{height:52px}.setup-layout{grid-template-columns:minmax(0,1fr) 300px}.auth-story{padding:35px}.auth-story h1{font-size:38px}}
@media(max-width:760px){main{padding:20px 16px 35px}.topbar{padding-inline:16px}.top-meta #user-label{display:none}.connection .text-button{display:none}.page-title{align-items:flex-start;flex-direction:column;gap:17px}.page-title h1{font-size:24px}.actions{width:100%}.actions button{flex:1;font-size:12px}.account-strip{grid-template-columns:1fr 1fr;row-gap:20px}.account-strip>div:nth-child(2n){border-left:0}.account-strip .account-identity{grid-column:1/-1}.pipeline{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pipeline>i{display:none}.pipeline small{font-size:12px}.market-layout{grid-template-columns:1fr}.watchlist{height:260px}.watch-section{order:2}.chart-wrap{height:350px}.chart-section .section-top{gap:8px}.timeframes{padding-inline:10px;justify-content:space-between;gap:0}.timeframes button{padding-inline:8px}.section-top h2{font-size:15px}.stats-layout,.setup-layout{grid-template-columns:1fr;gap:30px}.signal-row{grid-template-columns:1fr auto;gap:12px}.signal-row>div:nth-child(3){grid-column:1/-1}.ai-display{padding:16px;gap:10px}.ai-display p{font-size:12px}.pagination{gap:10px}.account-curve{height:230px}.auth-shell{display:block}.auth-story{display:none}.auth-form{min-height:100vh;padding:30px}.small-brand{display:block}footer{margin-inline:16px;gap:12px}.audit-row{gap:10px}.audit-row time{width:100px;font-size:12px}.sidebar nav{margin-inline:-10px}.sidebar nav a{gap:7px;padding-inline:9px}.sidebar nav svg{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

.drawdown-curve{height:170px;margin-top:12px}.drawdown-heading{margin-top:26px}#audit-list{max-height:320px;overflow:auto}.account-curve text{font-size:12px}

/* Keep every native open position in the overview; only the viewport is bounded. */
#overview-positions{max-block-size:min(65vh,680px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
