:root{--bg:#f5f7f6;--surface:#fff;--ink:#18251f;--muted:#7c8982;--line:#e6ebe8;--green:#178558;--green-soft:#e9f5ee;--red:#c75258;--sidebar:#111a16;--amber:#b18227;--mono:'IBM Plex Mono',monospace;--font:Manrope,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--bg);color:var(--ink);font:14px var(--font);letter-spacing:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:4px}button{border:0}svg{width:18px;height:18px;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.3;font-weight:800}h2{font-size:15px;font-weight:800}.muted{color:var(--muted)}.small{font-size:11px}.eyebrow{font-size:10px;letter-spacing:0;font-weight:800;color:var(--muted)}.workspace{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);position:sticky;top:0;height:100vh;padding:30px 18px 0;color:#c4d0c8;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:20px;padding:0 10px 44px}.brand-light{color:#84968a;font-weight:500}.sidebar-label{font-size:9px;color:#6f8376;margin:0 13px 16px;font-weight:700}.sidebar nav{display:grid;gap:7px}.nav-link{display:flex;gap:12px;align-items:center;padding:13px;border-radius:5px;font-size:12px;font-weight:600;min-height:44px}.nav-link svg{width:17px;height:17px;stroke-width:1.6}.nav-link:hover{background:#1b2921}.nav-link.active{background:#243c2f;color:#a8e2bd}.count{margin-left:auto;background:#34483a;font:10px var(--mono);padding:2px 5px;border-radius:3px}.sidebar-bottom{margin-top:auto}.demo-notice{padding:20px 12px;display:flex;align-items:center;gap:8px;font:9px var(--mono);color:#91a397}.status-dot{width:6px;height:6px;background:#55b57d;border-radius:50%;display:inline-block;flex-shrink:0}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #2b362e;padding:22px 0;min-width:0}.avatar{background:#314436;color:#bcddc5;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font-size:10px;flex-shrink:0}.profile strong{display:block;font-size:11px;color:#f0f4f1}.profile span{font-size:9px;color:#85938b;white-space:nowrap}.profile form{margin-left:auto}.profile button{color:#9aa99e;background:transparent}.main{padding:0 36px;min-width:0;max-width:1740px;width:100%;margin:auto}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{display:flex;align-items:center;gap:13px;font-size:11px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:600}.breadcrumb span{color:#bcc7bf}.top-actions{display:flex;align-items:center;gap:18px}.connection{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700}.connection.offline{color:var(--red)}.connection.offline .status-dot{background:var(--red)}.icon-button{width:32px;height:32px;display:grid;place-items:center;background:transparent;color:var(--muted);border-radius:4px;flex-shrink:0}.icon-button:hover{background:#e9efeb;color:var(--ink)}.icon-button svg{width:16px;height:16px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:30px 0 25px}.page-heading .eyebrow{display:block;margin-bottom:9px}.page-heading p{font-size:11px;margin-top:8px}.demo-badge{font:9px var(--mono);color:var(--green);background:var(--green-soft);border:1px solid #cce6d7;vertical-align:middle;padding:4px 6px;border-radius:3px;margin-left:13px}.separator{margin:0 8px;color:#bdc7c0}.updated{font-size:10px;text-align:right;flex-shrink:0}.updated span{color:var(--muted);display:block;margin-bottom:5px}.updated strong{font:11px var(--mono);font-weight:400}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:28px}.metric{background:var(--surface);border:1px solid var(--line);padding:19px 20px 18px;border-radius:6px;min-height:135px;min-width:0}.metric-label{font-size:11px;color:#6e7c74;font-weight:600;display:flex;align-items:center;gap:7px;min-height:20px}.metric-label>svg{margin-left:auto;width:15px;height:15px;color:#93a099}.metric>strong{font:24px var(--mono);display:block;margin:13px 0 7px;overflow-wrap:anywhere}.metric-note{font-size:9px;color:var(--muted)}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.tiny-tag{display:inline-flex;align-items:center;background:#f1f4f2;border:1px solid #e4eae6;color:#75837a;font:9px var(--mono);padding:3px 5px;border-radius:3px;white-space:nowrap}.performance-section,.market-section,.strategy-section,.trades-section{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.performance-section{padding:22px 24px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:35px}.section-heading h2{margin-bottom:4px}.segmented{display:flex;border:1px solid var(--line);padding:3px;border-radius:5px;gap:2px;flex-shrink:0}.segmented button{font:10px var(--mono);padding:6px 10px;color:var(--muted);background:transparent;border-radius:3px;min-width:35px}.segmented button.selected{color:var(--green);background:var(--green-soft)}.performance-summary{display:flex;align-items:center;gap:12px;margin-top:20px;min-height:33px}.performance-summary>strong{font:23px var(--mono)}.change-badge{font:10px var(--mono);padding:4px 6px;background:var(--green-soft);border-radius:3px}.chart-legend{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:9px;color:var(--muted)}.chart-legend b{display:inline-block;width:15px;height:2px;background:var(--green);margin-left:12px}.chart-legend b.balance-legend{background:#a8b3ac}.equity-chart-wrap{position:relative;height:225px;width:100%;margin-top:14px}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;font-size:11px;color:var(--muted);pointer-events:none}.chart-empty[hidden]{display:none}.performance-foot{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;padding:12px 0;color:var(--muted);font-size:9px}.performance-foot>span:first-child{display:flex;align-items:center;gap:7px}.performance-foot svg{width:12px;height:12px}.market-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;margin-top:28px;align-items:start}.market-section{padding:20px 0 0;min-width:0}.market-section>.section-heading{padding:0 20px}.instrument{display:flex;align-items:center;gap:10px}.currency-mark{width:35px;height:35px;border-radius:50%;background:#edf1ed;display:grid;place-items:center;font:bold 12px var(--mono);color:#566d5b}.instrument h2{font-family:var(--mono);font-size:13px}.market-price{text-align:right}.market-price strong{display:block;font:19px var(--mono);margin-bottom:3px}.market-price span{font-size:9px}.market-toolbar{display:flex;align-items:center;gap:12px;padding:12px 20px 8px}.market-toolbar .icon-button{margin-left:auto;width:25px;height:25px}.price-chart{height:300px;width:100%;position:relative;overflow:hidden}.market-foot{display:flex;justify-content:space-between;color:var(--muted);padding:12px 20px;border-top:1px solid var(--line);font:9px var(--mono)}.strategy-section{padding:20px}.strategy-section>.section-heading svg{color:#7c9685;width:17px}.signal-block{padding:18px 0;border-bottom:1px solid var(--line)}.signal-block>.eyebrow{font-size:8px}.signal-block>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}.signal-block strong{font:26px var(--mono);color:var(--amber)}.signal-description{font-size:9px;color:var(--muted)}.risk-list{margin:15px 0}.risk-list>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;font-size:10px}.risk-list dt{color:var(--muted)}.risk-list dd{margin:0;font:10px var(--mono);text-align:right}.status-list{border-top:1px solid var(--line);padding-top:9px}.status-list>div{display:flex;justify-content:space-between;gap:8px;font-size:9px;padding:7px 0;color:var(--muted)}.status-list>div>span:last-child{color:var(--green);font-weight:600}.trades-section{margin-top:28px}.trades-heading{border-bottom:1px solid var(--line);padding:0 20px;min-height:59px;gap:12px}.trade-tabs{display:flex;gap:22px;align-self:stretch;min-width:0}.trade-tabs button{padding:18px 0 15px;color:var(--muted);font-size:11px;white-space:nowrap;background:transparent;border-bottom:2px solid transparent;display:flex;align-items:center;gap:7px}.trade-tabs button.selected{color:var(--ink);border-bottom-color:var(--green);font-weight:800}.trade-tabs span{font:9px var(--mono);background:#edf2ef;padding:2px 5px;border-radius:3px}.table-actions{display:flex;align-items:center;gap:8px}.table-actions select{background:transparent;border:1px solid var(--line);padding:7px 8px;border-radius:4px;font-size:10px;color:#6b7c70;max-width:180px}.table-scroll{overflow-x:auto;min-height:190px}table{width:100%;border-collapse:collapse;text-align:left;font-size:10px;white-space:nowrap}th{color:var(--muted);background:#fbfcfb;font-size:9px;font-weight:500;padding:13px 18px;border-bottom:1px solid var(--line)}td{padding:14px 18px;border-bottom:1px solid #f0f3f1;font-family:var(--mono)}td .trade-side{font-size:9px;padding:4px 6px;border-radius:3px;background:var(--green-soft);color:var(--green)}td .trade-side.sell{color:var(--red);background:#faeeee}.trade-source{font-family:var(--font);font-size:9px;color:var(--muted)}.table-empty{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--muted);font-size:11px}.table-empty[hidden]{display:none}.table-empty>svg{width:25px;height:25px;color:#a9b7ae;margin-bottom:2px}.table-empty strong{color:#5d7064;font-weight:600;font-size:12px}.table-empty span{font-size:10px}.table-footer{border-top:1px solid var(--line);padding:12px 20px;font-size:9px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:78px;font-size:9px;color:var(--muted)}.page-footer>span{display:flex;align-items:center;gap:7px}.footer-divider{color:#b8c3bc;margin:0 3px}.notice{background:#fff5df;color:#8c661c;border:1px solid #efdfb9;border-radius:4px;padding:12px 16px;margin-bottom:20px;font-size:11px;line-height:1.7}.notice[hidden]{display:none}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff;position:relative}.auth-brand{position:absolute;top:35px;left:44px;display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800}.auth-form{width:100%;max-width:440px;align-self:center;justify-self:center;padding:130px 38px 70px}.auth-form h1{font-size:29px;margin:12px 0}.auth-form>p{font-size:12px;line-height:1.7}.auth-form form{margin-top:30px;display:grid;gap:9px}.auth-form label{font-size:11px;font-weight:600;margin-top:8px}.auth-form input:not([type=hidden]){width:100%;height:44px;border:1px solid #d9e3dc;border-radius:4px;padding:8px 12px}.primary{background:var(--green);color:white;border-radius:4px;height:44px;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:12px}.auth-submit{margin-top:15px}.auth-footer{display:flex;align-items:center;gap:8px;color:var(--muted);font:9px var(--mono);margin-top:35px}.auth-footer svg{width:16px}.auth-graphic{background-color:var(--sidebar);background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:55px 55px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.auth-ticker{position:absolute;top:45px;left:40px;font:12px var(--mono);color:#718a78}.auth-caption{position:absolute;bottom:45px;left:40px;font-size:18px;color:#90a89a}.candle-art{display:flex;align-items:center;gap:18px;transform:rotate(-9deg);padding:60px}.candle-art b{position:relative;background:#6ead85;width:19px;height:90px;display:block;flex-shrink:0}.candle-art b:before{content:'';position:absolute;top:-30px;bottom:-30px;width:1px;background:inherit;left:9px}.candle-art b:nth-child(3n){background:#aa665f;height:50px;top:40px}.candle-art b:nth-child(4n){height:130px;top:-30px}.candle-art b:nth-child(5n){height:60px;top:-50px}.form-error{color:var(--red);background:#faeeee;padding:10px;font-size:11px;margin-top:15px}canvas{max-width:100%}@media(min-width:1500px){.main{padding:0 48px}.metric>strong{font-size:28px}.price-chart{height:330px}.equity-chart-wrap{height:245px}.market-grid{grid-template-columns:minmax(0,1fr) 330px}.risk-list>div{padding:10px 0}}@media(max-width:1100px){.workspace{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.main{padding:0 23px}.metrics{gap:9px}.metric{padding:15px 13px}.metric>strong{font-size:20px}.market-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.strategy-section{padding:17px}.section-heading h2{font-size:13px}.trade-tabs{gap:15px}}@media(max-width:850px){.workspace{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:23px 8px 0;align-items:center}.brand{padding:0 0 34px}.brand>span,.sidebar-label,.nav-link>span,.demo-notice,.profile>div:not(.avatar),.profile form{display:none}.sidebar nav{gap:10px}.nav-link{padding:13px}.sidebar-bottom{width:100%}.profile{justify-content:center}.main{padding:0 22px}.market-grid{grid-template-columns:minmax(0,1fr)}.strategy-section{padding:20px}.risk-list{display:grid;grid-template-columns:1fr 1fr;column-gap:30px}.signal-block>div{justify-content:flex-start;gap:20px}.status-list{display:flex;gap:25px;flex-wrap:wrap}.status-list>div{gap:10px}.page-footer{flex-wrap:wrap;padding:20px 0;min-height:70px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric>strong{font-size:25px}.auth-layout{grid-template-columns:minmax(0,1fr) 35%}.auth-graphic{overflow:hidden}.auth-caption{font-size:13px;left:20px;right:15px}.candle-art{gap:12px}}@media(max-width:550px){.workspace{display:block}.sidebar{position:relative;height:62px;width:100%;flex-direction:row;padding:10px 16px;justify-content:space-between}.brand{padding:0}.brand img{width:28px;height:28px}.brand>span{display:block;font-size:16px}.sidebar nav{display:flex;gap:6px}.nav-link{padding:9px;min-height:32px}.nav-link svg{width:16px}.sidebar-bottom{display:none}.main{padding:0 15px}.topbar{height:50px}.top-actions{gap:8px}.breadcrumb{font-size:10px;gap:7px}.connection{font-size:9px}.page-heading{padding:25px 0 20px;align-items:flex-start}.page-heading .eyebrow{font-size:8px}.page-heading h1{font-size:22px;max-width:230px}.demo-badge{font-size:8px;margin-left:7px}.page-heading p{font-size:10px}.updated{font-size:8px;padding-top:3px}.updated strong{font-size:9px;max-width:82px;line-height:1.7;display:block}.metric{padding:15px 13px;min-height:122px}.metric-label{font-size:10px}.metric>strong{font-size:21px;margin-top:13px}.metric-note{font-size:8px}.metric-label .tiny-tag{font-size:7px;padding:2px}.metrics{gap:10px;margin-bottom:22px}.performance-section{padding:17px 12px 0}.section-heading{gap:9px}.section-heading .small{font-size:8px}.segmented{gap:0;padding:2px}.segmented button{font-size:8px;min-width:26px;padding:5px 7px}.performance-summary{gap:8px;flex-wrap:wrap}.performance-summary>strong{font-size:21px}.change-badge{font-size:9px}.chart-legend{font-size:8px;gap:4px}.chart-legend b{width:10px;margin-left:5px}.performance-foot{font-size:8px;flex-direction:column;align-items:flex-start;gap:6px}.equity-chart-wrap{height:190px}.market-grid{margin-top:22px;gap:22px}.price-chart{height:275px}.risk-list{column-gap:20px}.risk-list>div{font-size:9px;gap:8px}.risk-list dd{font-size:9px}.risk-list dt{max-width:120px}.status-list{gap:8px 20px}.trades-section{margin-top:22px}.trades-heading{padding:0 12px;flex-wrap:wrap;gap:0}.trade-tabs{min-height:52px;gap:18px}.table-actions{width:100%;border-top:1px solid var(--line);justify-content:space-between;padding:7px 0}.table-actions select{max-width:none;flex:1}.table-footer{font-size:8px;padding:10px 12px;flex-wrap:wrap}.page-footer{font-size:8px;gap:12px}.page-footer>span:last-child{display:block;line-height:1.7}.auth-layout{display:block;min-height:100vh}.auth-brand{top:25px;left:25px;font-size:19px}.auth-form{margin:auto;padding:150px 28px 50px;max-width:420px}.auth-form h1{font-size:26px}.auth-graphic{display:none}}@media(prefers-reduced-motion:no-preference){.metric{animation:appear .4s ease both}.metric:nth-child(2){animation-delay:.04s}.metric:nth-child(3){animation-delay:.08s}.metric:nth-child(4){animation-delay:.12s}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}