[hidden]{display:none!important}
:root{--ink:#14223b;--muted:#67758b;--green:#087f67;--red:#d03f52;--line:#dfe5ee;--paper:#f3f5f9;--blue:#285de5;--navy:#111c35}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,article:focus-visible{outline:3px solid #7a9dff;outline-offset:3px}aside{background:var(--navy);color:white;display:flex;align-items:center;gap:40px;padding:0 30px;height:68px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;white-space:nowrap}.brand-icon{display:grid;place-items:center;background:var(--blue);width:34px;height:34px;border-radius:9px;color:#fff;font-weight:800;font-size:12px;letter-spacing:-1px}.brand b{font-size:16px;font-weight:650;letter-spacing:-.4px}nav{display:flex;align-self:stretch;gap:4px}.nav{border:0;background:transparent;color:#a4b3ce;padding:0 15px;display:flex;align-items:center;gap:8px;position:relative;white-space:nowrap;font-size:12px}.nav:hover{color:#fff;background:#ffffff09}.nav.active{color:#fff;background:#ffffff08}.nav.active:after{content:"";position:absolute;bottom:0;left:15px;right:15px;height:3px;background:#7295ff}.nav i{font-style:normal;font-size:10px;background:#ffffff15;padding:3px 6px;border-radius:4px}.sidebar-bottom{display:flex;align-items:center;margin-left:auto;gap:8px;color:#a4b3ce;white-space:nowrap;font-size:10px}.server-dot{width:6px;height:6px;border-radius:50%;background:#39dba2}.sidebar-bottom .text-button{color:#a4b3ce;margin-left:14px;font-size:11px}main{margin:0}header{background:#fff;border-bottom:1px solid var(--line);height:49px;padding:0 32px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{margin:0 12px}.breadcrumb b{font-weight:550;color:var(--ink)}.header-right{display:flex;align-items:center;gap:18px;font-size:10px}.avatar{background:#edf1f9;border:1px solid var(--line);padding:6px;border-radius:6px;font-size:10px;font-weight:650}.page{max-width:1600px;margin:auto;padding:24px 32px}.mode-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 14px;border:1px solid #cedaff;background:#eaf0ff;color:#325294;border-radius:5px;font-size:10px}.mode-banner b{font-size:10px;letter-spacing:.4px}.mode-banner.live{color:#ad233b;background:#fff0f3;border-color:#f3c2ce}.connection-banner,.warning-note{border:1px solid #efc3ce;background:#fff0f3;padding:13px;color:var(--red);font-size:12px;border-radius:5px;margin-top:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:26px 0 24px;gap:16px}.eyebrow{font-size:9px;letter-spacing:1.4px;font-weight:700;color:var(--muted);margin:0 0 9px}h1{font-size:28px;font-weight:700;letter-spacing:-.9px;margin:0 0 7px}h2{font-size:15px;font-weight:650;letter-spacing:-.2px;margin:0}h3{font-size:13px;font-weight:650;margin:0;letter-spacing:-.15px}p{line-height:1.6}.page-heading p{margin-bottom:0;font-size:12px}.muted{color:var(--muted)}.heading-actions{display:flex;gap:8px}.primary,.button{display:inline-block;text-decoration:none;border-radius:5px;padding:10px 14px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:11px;font-weight:600;white-space:nowrap;min-height:36px}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#194acc}.button:hover{background:#edf2fb;border-color:#bfcde6}.text-button{border:0;background:none;color:var(--blue);padding:7px 0;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:7px;margin-bottom:25px;overflow:hidden}.stat{padding:19px 23px;min-width:0;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat:first-child{background:#f8faff;border-top:3px solid var(--blue);padding-top:16px}.stat-label{font-size:11px;color:var(--muted)}.stat-value{font-size:29px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin:12px 0 8px;font-variant-numeric:tabular-nums}.stat-value .muted{font-size:20px}.stat-note{font-size:10px;color:var(--muted)}.positive{color:var(--green)}.negative{color:var(--red)}.overview-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.overview-book,.overview-rail{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 12px}.overview-book>.section-heading:first-child{margin-top:0}.section-heading small{font-size:10px;color:var(--muted)}.strategy-list{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden}.strategy-list-head,.strategy-card{display:grid;grid-template-columns:minmax(200px,2.4fr) 1.1fr .9fr .9fr 1.1fr 1.1fr;gap:16px;align-items:center;padding:16px 18px}.strategy-list-head{background:#f8f9fc;font-size:9px;color:var(--muted);padding-top:12px;padding-bottom:12px;border-bottom:1px solid var(--line);letter-spacing:.2px}.strategy-card{border-bottom:1px solid var(--line);cursor:pointer;position:relative;min-width:0}.strategy-card:last-child{border-bottom:0}.strategy-card:hover{background:#f7faff}.strategy-identity{display:flex;align-items:center;gap:12px;min-width:0}.strategy-identity>div{min-width:0}.strategy-symbol{display:grid;place-items:center;background:#eef2fb;color:#4165a4;border:1px solid #dce5f4;border-radius:5px;width:34px;height:38px;font-size:11px;font-weight:700;flex-shrink:0}.card-top{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.card-top h3{line-height:1.4;overflow-wrap:anywhere}.card-meta{font-size:9px;color:var(--muted);margin:6px 0 0}.badge{font-size:8px;font-weight:650;letter-spacing:.4px;border-radius:3px;background:#e9f5ef;color:#178361;padding:4px 5px;white-space:nowrap}.badge.paused{background:#fff2dc;color:#a46d15}.badge.closed,.badge.archived{background:#edf0f5;color:#748094}.badge.exit_in_progress{background:#fff0f3;color:var(--red)}.row-metric{display:flex;flex-direction:column;gap:4px;min-width:0;font-variant-numeric:tabular-nums}.row-metric strong{font-size:16px;font-weight:700;white-space:nowrap}.row-metric b{font-size:12px;font-weight:600;white-space:nowrap}.row-metric small{display:none;color:var(--muted);font-size:9px}.row-metric span,.row-monitor small{color:var(--muted);font-size:9px}.row-monitor{display:flex;flex-direction:column;gap:7px}.monitor-pill{font-size:9px;color:#32609d;background:#edf3ff;border-radius:4px;padding:5px 7px;width:max-content}.monitor-pill.off{background:#eff1f5;color:#748094}.row-arrow{color:var(--blue);margin-left:4px}.row-rules{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:10px;display:flex;gap:18px;font-size:9px;color:var(--muted);padding-left:46px}.quick-card,.monitor-card{border:1px solid var(--line);border-radius:6px;background:#fff;padding:20px}.quick-card{background:var(--navy);border-color:var(--navy);color:#fff;margin-bottom:16px}.quick-card .eyebrow{color:#93ace2}.quick-card h3{font-size:18px;letter-spacing:-.4px}.quick-card p{font-size:11px;color:#a6b6d1;line-height:1.7;margin:12px 0 17px}.quick-card .primary{width:100%;text-align:center}.monitor-card>div{display:flex;justify-content:space-between;gap:8px;font-size:10px;border-bottom:1px solid #edf0f5;padding:13px 0}.monitor-card>div:last-child{border:0;padding-bottom:0}.monitor-card span{color:var(--muted)}.monitor-card b{font-weight:550}.table-wrap{background:white;overflow:auto;border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-variant-numeric:tabular-nums}th{font-size:9px;font-weight:550;color:var(--muted);text-align:left;background:#f8f9fc;padding:12px 14px;border-bottom:1px solid var(--line)}td{padding:14px;font-size:11px;border-bottom:1px solid #edf0f5}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}td b{font-weight:600}td small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.side{display:inline-block;font-size:8px;letter-spacing:.3px;font-weight:650;padding:4px 6px;background:#edf3ff;border:1px solid #d5e2ff;color:#3564b5;border-radius:3px}.side.sell{color:#bc7131;background:#fff5e9;border-color:#f0dcc3}.empty{background:#fff;border:1px dashed #c9d4e5;border-radius:6px;padding:34px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink)}.empty p{font-size:11px;max-width:420px;margin:8px auto}.selection-bar{display:flex;align-items:center;gap:10px;background:#eaf0ff;border:1px solid #d3dfff;padding:12px;border-radius:5px;margin:14px 0;font-size:11px;flex-wrap:wrap}.activity-list{border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.event{display:flex;gap:18px;padding:15px 18px;border-bottom:1px solid var(--line);font-size:11px}.event:last-child{border:0}.event time{color:var(--muted);font-size:9px;min-width:115px}.event b{font-weight:600}.event p{font-size:10px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.overview-rail .event{display:block;padding:15px}.overview-rail .event time{display:block;margin-bottom:7px}.overview-rail .event p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.panel{background:#fff;border:1px solid var(--line);border-radius:6px;padding:22px;margin:20px 0}.panel p{font-size:11px;color:var(--muted);max-width:850px}.detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 22px}.detail-actions [data-action=exit]{background:#d03f52;border-color:#d03f52}.detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.detail-summary div{padding:18px 12px;border-bottom:1px solid #edf0f5;font-size:10px;color:var(--muted)}.detail-summary b{display:block;color:var(--ink);font-size:17px;font-weight:600;margin-top:8px;overflow-wrap:anywhere}.rule{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;font-size:12px}.rule small{display:block;font-size:10px;color:var(--muted);margin-top:7px}footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted);border-top:1px solid var(--line);padding:20px 0 6px;margin-top:30px}dialog{border:1px solid var(--line);border-radius:8px;padding:26px;width:540px;max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #13254625}dialog::backdrop{background:#111c3577}.dialog-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:20px}.dialog-heading h2{font-size:18px}.icon-button{background:transparent;border:0;color:var(--muted);font-size:25px;padding:0 7px}label{display:block;font-size:11px;font-weight:550;margin:15px 0}input,select,textarea{display:block;width:100%;margin-top:7px;padding:10px 12px;background:#fbfcfe;border:1px solid #d3dce9;border-radius:4px;color:var(--ink);font-weight:400}input:focus,select:focus,textarea:focus{outline:2px solid #8cacff;outline-offset:1px}input[type=checkbox]{display:inline-block;width:15px;height:15px;margin:0 9px 0 0;accent-color:var(--blue)}.check-label{display:flex;align-items:center;line-height:1.6}.form-row{display:flex;gap:16px}.form-row label{flex:1;min-width:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}#position-choices{background:#f5f8fd;border:1px solid var(--line);padding:0 12px;margin:12px 0;border-radius:4px}.login{display:grid;place-items:center;min-height:100vh;background:var(--navy);padding:20px;background-image:linear-gradient(135deg,#111c35 50%,#172b50 50%)}.login-card{padding:38px;width:410px;max-width:100%;border-radius:9px;background:#fff}.brand-mark{font-size:20px;font-weight:800;letter-spacing:-1px;color:var(--blue);margin-bottom:38px}.brand-mark span{color:#a4b8e8}.login-card h1{font-size:36px;line-height:1.1;letter-spacing:-1.5px}.login-card p{font-size:12px}.login-card .primary{width:100%;margin:12px 0 15px;padding:13px}.login-card small{color:var(--muted);font-size:10px}#toast{position:fixed;bottom:22px;right:22px;background:var(--navy);color:#fff;padding:15px 22px;border-left:4px solid #7295ff;border-radius:5px;font-size:12px;max-width:90vw;z-index:99}
@media(max-width:1250px){aside{gap:20px;padding:0 24px}.sidebar-bottom>span{display:none}.nav{padding:0 12px}.overview-layout{grid-template-columns:minmax(0,1fr) 245px;gap:16px}.overview-book .strategy-list-head,.overview-book .strategy-card{grid-template-columns:minmax(170px,2fr) 1fr 1fr 1fr;gap:10px}.overview-book .strategy-list-head span:nth-child(3),.overview-book .strategy-list-head span:nth-child(4),.overview-book .row-metric.secondary{display:none}.stat{padding:18px}.stat-value{font-size:26px}}@media(max-width:950px){aside{gap:18px}.brand b{display:none}.sidebar-bottom{display:none}nav{flex:1;justify-content:space-between}.overview-layout{grid-template-columns:1fr}.overview-rail{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quick-card{margin:0}.overview-rail .section-heading,.overview-rail .activity-list{grid-column:1/-1}.overview-rail .section-heading{margin:2px 0 -4px}.overview-rail .event{display:flex}.strategy-list-head,.strategy-card{grid-template-columns:minmax(180px,2fr) 1fr 1fr 1fr;gap:12px}.strategy-list-head span:nth-child(3),.strategy-list-head span:nth-child(4),.row-metric.secondary{display:none}.page{padding:22px}.stat{padding:15px}.stat-value{font-size:23px}.stat-note{font-size:9px}.page-heading{margin:23px 0}header{padding:0 22px}}@media(max-width:600px){aside{height:auto;padding:14px 16px 0;display:block;position:static}.brand{margin-bottom:13px}.brand b{display:block}.brand-icon{height:30px;width:30px}nav{overflow:auto;justify-content:flex-start;margin:0 -16px;padding:0 7px;scrollbar-width:none}.nav{font-size:11px;padding:14px 10px;min-height:45px}.nav i{font-size:9px;padding:2px 4px}.nav.active:after{left:10px;right:10px}header{padding:0 16px;height:43px}.header-right{gap:10px;font-size:9px}.page{padding:16px}.page-heading{align-items:flex-start;flex-direction:column;margin:22px 0}.page-heading h1{font-size:26px}.heading-actions{width:100%}.heading-actions .primary{margin-left:auto}.mode-banner{font-size:9px;align-items:flex-start;line-height:1.5}.mode-banner b{font-size:9px;min-width:105px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:6px}.stat{padding:16px;border-bottom:1px solid var(--line)}.stat:nth-child(2){border-right:0}.stat:nth-child(n+3){border-bottom:0}.stat:first-child{padding-top:13px}.stat-value{font-size:25px}.stat-note{font-size:9px;line-height:1.5}.strategy-list-head{display:none}.strategy-card,.overview-book .strategy-card{grid-template-columns:1fr 1fr;gap:15px;padding:18px}.strategy-identity{grid-column:1/-1}.row-metric small{display:block}.row-metric strong{font-size:22px}.row-metric b{font-size:16px}.row-metric.secondary{display:none}.row-monitor{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;border-top:1px solid #edf0f5;padding-top:12px}.row-rules{padding-left:0;line-height:1.5;flex-wrap:wrap}.overview-rail{grid-template-columns:1fr}.overview-rail .event{display:block}.section-heading small{max-width:160px;text-align:right;line-height:1.5}.detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-summary div{padding:14px 7px}.detail-summary b{font-size:15px}.detail-actions{gap:7px}.detail-actions .button,.detail-actions .primary{font-size:10px;padding:9px 10px}.event{display:block;padding:15px}.event time{display:block;margin-bottom:7px}.form-row{gap:10px}dialog{padding:20px}.login-card{padding:30px}.login-card h1{font-size:34px}footer{line-height:1.5;flex-direction:column}.selection-bar .button,.selection-bar .primary{font-size:10px}.quick-card,.monitor-card{padding:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.more-actions{position:relative}.more-actions summary{cursor:pointer;list-style:none}.more-actions summary::-webkit-details-marker{display:none}.actions-menu{position:absolute;top:42px;right:0;width:190px;background:white;border:1px solid var(--line);border-radius:5px;padding:7px;box-shadow:0 8px 24px #14223b18;z-index:8}.actions-menu .text-button{display:block;width:100%;text-align:left;padding:11px;color:var(--ink)}.actions-menu .text-button:hover{background:#edf3ff;border-radius:3px}.header-right #logout{font-size:10px}@media(max-width:600px){.header-right{gap:8px}.header-right .avatar{display:none}}

.workspace-top{position:sticky;top:0;z-index:10;box-shadow:0 2px 5px #14223b08}.workspace-top aside{position:static}.index-toolbar{display:flex;align-items:center;gap:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 32px;min-height:67px}.index-quote{display:grid;grid-template-columns:auto auto;column-gap:10px;row-gap:5px;border-right:1px solid var(--line);padding:0 24px;min-width:215px;font-variant-numeric:tabular-nums}.index-quote:first-child{padding-left:0}.index-name{font-size:10px;font-weight:600;color:var(--muted);align-self:center}.index-quote>b{font-size:13px;font-weight:700;text-align:right}.index-change{grid-column:1/-1;font-size:10px;font-weight:550}.index-change span{margin-left:4px}.index-status{margin-left:auto;display:flex;flex-direction:column;gap:5px;font-size:9px;color:var(--muted);text-align:right}.index-status b{font-weight:600;color:var(--ink)}.index-quote.stale>b{color:var(--muted)}@media(max-width:950px){.index-toolbar{padding:12px 22px}.index-quote{padding:0 18px;min-width:190px}.index-status{font-size:8px}}@media(max-width:700px){.index-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:11px 12px 7px;gap:0}.index-quote{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:0 9px}.index-quote:first-child{padding-left:3px}.index-quote:nth-child(3){border-right:0}.index-name{align-self:flex-start;font-size:9px}.index-quote>b{font-size:12px}.index-change{font-size:8px;white-space:nowrap}.index-change span{margin-left:0}.index-status{grid-column:1/-1;flex-direction:row;justify-content:space-between;margin:8px 3px 0;padding-top:6px;border-top:1px solid #edf0f5;font-size:8px;text-align:left}.workspace-top{position:sticky}.workspace-top aside{padding-top:10px}.workspace-top .brand{margin-bottom:7px}.workspace-top .nav{padding-top:10px;padding-bottom:10px;min-height:37px}}
.mtm-panel{margin:20px 0}.mtm-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.mtm-heading h2{margin:0}.mtm-heading p{margin:6px 0;color:#64748b;font-size:13px}.mtm-heading>div:last-child{text-align:right}.mtm-heading strong{font-size:24px}.mtm-heading small{display:block;color:#64748b}.mtm-chart{display:block;width:100%;height:auto;min-height:180px;margin:14px 0}.mtm-grid{stroke:#e7edf3;stroke-width:1}.mtm-zero{stroke:#64748b;stroke-width:1.5;stroke-dasharray:5 5}.mtm-line{fill:none;stroke:#2563eb;stroke-width:2.4;stroke-linejoin:round;vector-effect:non-scaling-stroke}.mtm-point{fill:#2563eb}.mtm-axis{fill:#64748b;font-size:12px}.mtm-summary{display:flex;flex-wrap:wrap;gap:12px 28px;color:#64748b;font-size:13px}.mtm-summary b{margin-left:5px}.mtm-footnote{font-size:12px!important;color:#64748b;margin-bottom:0}@media(max-width:600px){.mtm-heading{flex-wrap:wrap}.mtm-chart{min-height:130px}.mtm-axis{font-size:15px}}

.mtm-line.mtm-profit{stroke:#16805b}.mtm-line.mtm-loss{stroke:#d43c47}.mtm-point.mtm-profit{fill:#16805b}.mtm-point.mtm-loss{fill:#d43c47}

/* Comfortable phone typography and touch targets. */
@media(max-width:700px){
body{font-size:16px}
h2{font-size:18px}h3{font-size:16px}
.breadcrumb,.header-right,.header-right #logout,.avatar{font-size:12px}
header{height:auto;min-height:49px;gap:12px;padding-top:8px;padding-bottom:8px}
.nav{font-size:14px}.nav i{font-size:11px}.workspace-top .nav{min-height:44px}
.mode-banner,.mode-banner b{font-size:12px}.mode-banner{flex-wrap:wrap}
.eyebrow{font-size:11px}.page-heading p{font-size:15px}
.primary,.button,.detail-actions .button,.detail-actions .primary,.selection-bar .button,.selection-bar .primary{font-size:14px;min-height:44px;padding:11px 13px}
.text-button,.actions-menu .text-button{font-size:14px;min-height:44px}
.actions-menu{top:50px;width:220px}
.stat-label{font-size:14px}.stat-note{font-size:12px}.stat-value{font-size:26px;overflow-wrap:anywhere}
.section-heading small,.card-meta,.row-metric small,.row-metric span,.row-monitor small,.row-rules,.monitor-pill{font-size:12px}
.badge,.side{font-size:11px}.strategy-symbol{font-size:13px}
.row-metric b{font-size:18px}.row-monitor{gap:12px;flex-wrap:wrap}
.quick-card p,.monitor-card>div,.empty p,.selection-bar{font-size:14px}
th{font-size:12px}td{font-size:14px}td small{font-size:12px}
.event{font-size:14px}.event time,.event p{font-size:12px}
.panel p{font-size:14px}.detail-summary div{font-size:13px}.detail-summary b{font-size:18px}
.rule{font-size:15px;flex-wrap:wrap}.rule small{font-size:13px}
label{font-size:14px}input,select,textarea{font-size:16px;min-height:44px}
input[type=checkbox]{min-height:0;width:19px;height:19px;flex-shrink:0}
.check-label{overflow-wrap:anywhere}.dialog-actions{flex-wrap:wrap}
.login-card p{font-size:15px}.login-card small,footer{font-size:12px}#toast{font-size:14px}
.index-name{font-size:11px}.index-quote>b{font-size:15px}.index-change{font-size:12px}
.index-change span{display:block;margin-left:0}.index-status{font-size:11px;flex-wrap:wrap;gap:6px 12px}
.mtm-heading p,.mtm-summary{font-size:14px}.mtm-heading small{font-size:13px}.mtm-footnote{font-size:13px!important}
}
