:root{--bg:#f6f7f8;--panel:#fff;--ink:#20282c;--muted:#7c858b;--line:#e8ecee;--green:#277b5d;--green-dark:#235640;--green-bg:#edf7f1;--red:#bd5656;--mono:"Cascadia Code","Consolas",monospace;--sans:"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green)}[hidden]{display:none!important}a{color:var(--green);text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icons{position:absolute;width:0;height:0;overflow:hidden}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:29px 20px 18px;z-index:10}.brand{display:flex;align-items:center;gap:10px;color:#243a30;font-size:21px;font-weight:650;letter-spacing:-.7px}.brand-mark{display:grid;place-items:center;background:#244e3e;color:#d4eddd;width:34px;height:34px;border-radius:9px}.brand-mark svg{width:21px;height:21px;stroke-width:1.5}.version{font:9px var(--mono);letter-spacing:1px;color:#84928b;background:#f0f4f2;border-radius:4px;padding:3px 5px;margin-left:auto}.sidebar>.brand+.nav-label{margin-top:27px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#99a1a5;font-weight:600;margin:0 11px 11px}.nav-button{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:11px;color:#687278;padding:10px 12px;border-radius:7px;font-size:12px;text-align:left;margin-bottom:4px}.nav-button:hover{background:#f7f9f8;color:#345341}.nav-button.active{background:var(--green-bg);color:#2d6b4f;font-weight:600}.nav-button svg{width:17px;height:17px}.nav-button>span{font:10px var(--mono);margin-left:auto;color:#7d8981}.bots-label{display:flex;justify-content:space-between;align-items:center;margin-top:29px}.bots-label button{border:0;background:none;color:#8a9590;font-size:19px;line-height:15px}.bot-nav{max-height:40vh;overflow:auto}.bot-link{border:0;background:none;display:flex;gap:10px;align-items:center;text-align:left;width:100%;padding:10px;border-radius:7px;margin-bottom:4px}.bot-link.active{background:#eef5f0}.bot-link .ticker-icon{width:29px;height:29px;background:#f0f2f5;color:#65778d;border-radius:7px;display:grid;place-items:center;font:10px var(--mono)}.bot-link strong{display:block;font-size:12px;font-weight:600}.bot-link small{font-size:10px;color:var(--muted)}.bot-link .status-dot{margin-left:auto;width:5px;height:5px;background:#b7bdc0;border-radius:50%}.bot-link .status-dot.running{background:var(--green);box-shadow:0 0 0 3px #eff7f1}.nav-empty{font-size:11px;color:#a2aaad;margin:14px 11px 22px}.new-nav{margin-top:9px}.sidebar-bottom{margin-top:auto}.environment{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:19px 4px 12px;font-size:11px;font-weight:600}.environment small{display:block;font-size:9px;color:var(--muted);font-weight:400;margin-top:2px}.pulse{height:6px;width:6px;border-radius:50%;background:#d5aa65}.pulse.connected{background:#4d9d73}.env-tag{font:8px var(--mono);letter-spacing:.5px;border:1px solid #e5e9e6;border-radius:3px;padding:3px;margin-left:auto;color:#87968a}main{margin-left:242px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 39px;background:#fff}.breadcrumb{font-size:11px;color:#969da1}.breadcrumb span{margin:0 14px;color:#c7cdd0}.breadcrumb strong{font-weight:500;color:#5a666a}.topbar-right{display:flex;align-items:center;gap:24px}.sandbox-badge{border:1px solid #e2eae5;color:#5e7c67;font-size:10px;padding:5px 9px;border-radius:5px;display:flex;align-items:center;gap:6px}.sandbox-badge span{width:5px;height:5px;border-radius:50%;background:#78a984}#clock{color:#99a0a3;font:10px var(--mono)}.avatar{height:29px;width:29px;display:grid;place-items:center;border-radius:50%;background:#edf0ee;font-size:9px;font-weight:600;color:#7d8b83}.content{padding:35px 39px 18px;max-width:1770px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.9px;color:#939da2;margin-bottom:7px}h1{font-size:28px;letter-spacing:-.8px;font-weight:600;margin:0;line-height:1.3}.page-heading p{font-size:12px;color:#929ba0;margin:10px 0 0}h2{font-size:13px;font-weight:600;margin:0;letter-spacing:-.1px}h3{font-size:13px;font-weight:600;margin:0}.steps{display:flex;align-items:center;padding:18px 24px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:25px;gap:21px}.step{display:flex;align-items:center;gap:11px;font-size:11px;color:#9ba4a8;white-space:nowrap}.step span{height:23px;width:23px;border:1px solid #e3e8e5;border-radius:50%;display:grid;place-items:center;font:10px var(--mono);background:#fafbfa}.step.current{color:#3e7255;font-weight:600}.step.current span{background:#e8f4ec;border-color:#dcece1;color:#3e7255}.step.done span{background:#2c7154;border-color:#2c7154;color:#fff}.step-line{height:1px;background:#edf0ee;flex:1;max-width:160px}.builder-layout{display:grid;grid-template-columns:345px minmax(0,1fr);gap:24px;align-items:start}.panel{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 2px 3px #14272202;min-width:0;overflow:hidden}.setup-panel{padding:21px 23px 23px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;gap:12px}.setup-panel .panel-heading{padding:0 0 21px}.subtle{font-size:9px;color:#a2aaae;white-space:nowrap}.panel-heading p{font-size:10px;color:#98a1a6;margin:6px 0 0}.mode-switch{display:flex;background:#f5f7f6;border:1px solid #edf0ee;border-radius:6px;padding:3px;gap:3px}.mode-switch button{border:0;background:none;padding:7px 4px;font-size:10px;color:#929b96;flex:1;border-radius:4px}.mode-switch .selected{background:white;box-shadow:0 1px 3px #0000000b;color:#3b6650;font-weight:600}.field-hint{font-size:10px;color:#a1a9ad;line-height:1.7}label{display:block;font-size:11px;font-weight:500;color:#647079;margin:17px 0 7px}.label-note{float:right;color:#a0a8ad;font-size:9px;font-weight:400}input,select{width:100%;background:#fff;border:1px solid #e4e9e7;border-radius:6px;height:39px;color:#36433b;padding:0 11px;min-width:0}input[type=number]{font-family:var(--mono);font-size:12px;appearance:textfield}input::-webkit-inner-spin-button{appearance:none}select{font-size:11px;padding-right:24px}.input-unit{position:relative}.input-unit input{padding-right:43px}.input-unit>span{position:absolute;right:12px;top:11px;font-size:10px;color:#99a4a0;pointer-events:none}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.instrument-search{display:flex;align-items:center;border:1px solid #e4e9e7;border-radius:6px;overflow:hidden}.instrument-search>span{font-size:22px;color:#a4ada7;padding-left:10px;line-height:1}.instrument-search input{border:0;font-size:11px;padding-left:9px}.instrument-search button{border:0;background:#fff;font-size:10px;color:#52806a;margin-right:10px}.instrument-info{font-size:9px;color:#9aa6a0;margin-top:7px}#instrument-select{margin-top:7px}.form-divider{height:1px;background:var(--line);margin:22px 0 21px}.button{border:1px solid transparent;border-radius:6px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 15px;font-size:11px;font-weight:500;white-space:nowrap;min-height:38px;transition:background .15s}.button svg{width:14px;height:14px}.primary{background:#2d674d;color:#fff;border-color:#2d674d}.primary:hover{background:#24583f}.secondary{border-color:#e0e6e2;background:#fff;color:#6b7770}.secondary:hover{background:#f6f8f6}.danger{border-color:#ebdddd;color:#ab5d5d;background:#fff}.build-button{width:100%;margin-top:17px;justify-content:space-between;padding:12px 14px}.preview-column{display:flex;flex-direction:column;gap:19px}.tag{font:8px var(--mono);letter-spacing:.6px;color:#99a4a0;border:1px solid #e8ede9;padding:4px 7px;border-radius:4px;white-space:nowrap}.tag.ready{background:var(--green-bg);border-color:#e1eee4;color:#528367}.chart{height:330px;padding:0 16px 0 8px;position:relative}.chart svg{width:100%;height:100%;stroke:none;overflow:visible}.empty-chart{padding:0 24px}.empty-chart-grid{position:absolute;inset:10px 25px 20px;background-image:linear-gradient(#f0f3f1 1px,transparent 1px),linear-gradient(90deg,#f4f6f5 1px,transparent 1px);background-size:100% 52px,65px 100%;mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}.chart-empty-message{position:relative;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#728078}.large-grid-icon{display:grid;place-items:center;height:45px;width:45px;border:1px solid #e5ece7;border-radius:11px;background:#fff;box-shadow:0 5px 14px #304c3210;margin-bottom:17px;color:#829e8d}.large-grid-icon svg{width:22px;height:22px}.chart-empty-message h3{font-size:13px;color:#687d70}.chart-empty-message p{text-align:center;font-size:11px;color:#a3ada6;line-height:1.8;margin-top:9px}.chart-legend{display:flex;align-items:center;justify-content:center;gap:22px;font-size:9px;color:#98a39e;padding:14px 20px 23px}.chart-legend>span{display:flex;align-items:center;gap:7px}.chart-legend i{width:13px;height:2px;background:#84b799;display:inline-block}.chart-legend .legend-sell{background:#caad72}.preview-summary{display:grid;grid-template-columns:1fr 1fr 1.25fr;border-top:1px solid var(--line);background:#fcfdfc;padding:20px 24px}.preview-summary>div{border-right:1px solid var(--line);padding-left:19px}.preview-summary>div:first-child{padding-left:0}.preview-summary>div:last-child{border:0}.preview-summary span{display:block;font-size:9px;color:#98a39d;margin-bottom:7px}.preview-summary strong{font:15px var(--mono);color:#576c5e;letter-spacing:-.7px}.strategy-note{display:flex;gap:13px;padding:4px 11px}.strategy-note>span{font-size:24px;line-height:1;color:#9caf9f}.strategy-note strong{font-size:11px;font-weight:500;color:#7c8e81}.strategy-note p{font-size:10px;color:#a0aaa4;line-height:1.8;margin:6px 0 0;max-width:550px}.launch-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 23px;border-color:#d5e7d9;background:#f7fbf8}.launch-panel h3{font-size:12px;color:#477956}.launch-panel p{margin:5px 0 0;font-size:10px;color:#89a08f;line-height:1.6}.notice{padding:11px 13px;border:1px solid #e4e8e5;border-radius:6px;font-size:11px;margin:12px 0;line-height:1.7}.notice.warning{background:#fffbf0;border-color:#f1e8c9;color:#9d8345}.notice.error{background:#fff6f4;border-color:#eddcd6;color:#ae6756}.notice.info{background:#eef5f8;border-color:#dce8ef;color:#6a8595}.notice.success{background:#f0f7f1;border-color:#dfece1;color:#688a6d}.text-button{border:0;background:none;color:#578369;font-size:10px;padding:0;text-align:left}.text-button:hover{text-decoration:underline}.inline-field{display:flex;gap:5px}.square-button{border:1px solid #e5e9e5;background:white;border-radius:5px;min-width:34px;color:#8e9d91}.account-tools{display:flex;justify-content:space-between;gap:12px;margin-top:10px}.page-footer{display:flex;justify-content:space-between;gap:15px;padding-top:32px;margin-top:12px;font-size:9px;color:#a9b0b4}.page-footer>span:first-child{font:8px var(--mono);letter-spacing:1px}.footer-dot{margin:0 7px;color:#c6ccca}.metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:22px}.metric{padding:17px 17px 15px;background:#fff;border:1px solid var(--line);border-radius:8px}.metric-label{font-size:9px;color:#94a19a;display:block;margin-bottom:11px}.metric-value{font:19px var(--mono);letter-spacing:-.8px;white-space:nowrap}.metric-note{display:block;color:#a8b0ab;font-size:9px;margin-top:9px}.positive{color:#428361}.negative{color:#bb6b61}.dashboard-grid{display:grid;grid-template-columns:1.9fr 1fr;gap:22px;margin-bottom:22px}.market-price{font:17px var(--mono);color:#557d64;letter-spacing:-.4px}.result-panel{display:flex;flex-direction:column}.result-panel .panel-heading{padding-bottom:12px}.pnl-total{font:32px var(--mono);padding:2px 23px 0;letter-spacing:-1.3px}.pnl-label{font-size:10px;color:#9da8a1;padding:5px 24px 0}.pnl-chart{height:110px;padding:0 10px}.pnl-chart svg{width:100%;height:100%;stroke:none}.breakdown{padding:5px 24px 18px;margin-top:auto}.breakdown>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f0f3f1;font-size:10px;color:#95a19a}.breakdown>div:last-child{border:0}.breakdown strong{font:11px var(--mono);color:#6b8072}.heading-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.state-badge{display:inline-flex;align-items:center;gap:5px;background:#f0f3f1;border-radius:4px;font-size:10px;color:#85948b;padding:4px 8px}.state-badge.running{background:#edf6f0;color:#508562}.state-badge.paused{background:#fbf6e9;color:#a28a4f}.state-badge.stopping{background:#fff3e8;color:#ac825c}.mode-tag{font:8px var(--mono);padding:3px 5px;border-radius:3px;border:1px solid #e3e9e5;color:#809588;margin-left:9px}.activity-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 21px;gap:15px;border-bottom:1px solid var(--line)}.tabs{display:flex;align-items:center;gap:24px;min-width:0}.tabs button{position:relative;padding:20px 0 18px;background:none;border:0;color:#9ba5a0;font-size:11px;white-space:nowrap}.tabs button.active{color:#456f54;font-weight:600}.tabs button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#528567}.table-actions{display:flex;align-items:center;gap:12px}.table-actions select{border:0;color:#96a09a;font-size:10px;max-width:120px;height:30px}.compact{min-height:30px;padding:5px 10px;font-size:10px}.table-scroll{overflow:auto;max-height:480px}table{border-collapse:collapse;width:100%;font-size:10px;white-space:nowrap;text-align:left}th{position:sticky;top:0;background:#fafcfb;z-index:1;font-weight:400;color:#9ca7a1;font-size:9px;padding:12px 21px;border-bottom:1px solid var(--line)}td{padding:13px 21px;color:#728479;border-bottom:1px solid #f0f3f1;font-family:var(--mono);font-size:10px}td.text{font-family:var(--sans)}tbody tr:last-child td{border-bottom:0}td .status-label{font:9px var(--sans);padding:4px 7px;border-radius:4px;background:#f1f4f2;color:#8d9e91}.status-label.new,.status-label.filled,.status-label.sell{background:#edf7f0;color:#6b9a76}.status-label.pending,.status-label.partial{background:#fcf7e8;color:#b29a60}.status-label.rejected,.status-label.error{background:#fff0ed;color:#b98173}.table-footer{padding:12px 21px;border-top:1px solid var(--line);font-size:9px;color:#abb3ae;display:flex;justify-content:space-between;gap:15px}.empty-table{text-align:center;padding:44px 20px;color:#a3afa6;font-size:11px}.event-message{font-family:var(--sans);white-space:normal;min-width:300px;max-width:750px}.id-cell{font-size:9px;color:#9caaa0}.demo-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 21px;margin-bottom:22px;background:#f8fafb}.demo-controls strong{font-size:11px;font-weight:500;color:#7c8e9a;display:block}.demo-controls>div>span{font-size:10px;color:#a2aeb5;display:block;margin-top:5px}.demo-controls form{display:flex;align-items:center;gap:10px}.demo-controls input{max-width:100px;height:34px}.demo-controls form>span{font-size:11px;color:#9aaaae}.demo-controls .button{min-height:34px;padding:7px 12px}.overview-title{font-size:15px;font-weight:500;margin:28px 0 14px}.bot-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.bot-card{padding:22px;text-align:left;cursor:pointer;width:100%}.bot-card:hover{border-color:#b9cfc1}.bot-card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.bot-card-heading strong{font-size:14px}.bot-card-pnl{font:24px var(--mono)}.bot-card small{display:block;font-size:10px;color:#a2aea6;margin-top:12px}.overview-empty{padding:70px 25px;text-align:center}.overview-empty p{font-size:12px;color:#9ca9a0;margin:10px 0 24px}.overview-caption{font-size:11px;color:#95a29a;margin-bottom:20px}dialog{border:1px solid #e1e9e3;border-radius:13px;width:520px;max-width:calc(100vw - 30px);padding:26px 29px;color:var(--ink);box-shadow:0 16px 70px #18382120}dialog::backdrop{background:#20382b44;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;align-items:center}.dialog-header button{border:0;background:none;font-size:24px;color:#9ca79e}dialog h2{font-size:21px;font-weight:500;letter-spacing:-.4px;margin:15px 0}dialog>p,dialog li{font-size:12px;color:#8b9b90;line-height:1.9}dialog ol{padding-left:20px}dialog li{padding-left:5px;margin:11px 0}code{font:10px var(--mono);background:#f1f5f2;border-radius:3px;padding:2px 4px;overflow-wrap:anywhere}.connection-status{padding:12px;border-radius:6px;background:#f4f8f5;font-size:11px;color:#72947a;margin-top:20px}#toast{position:fixed;bottom:28px;left:calc(50% + 120px);transform:translateX(-50%);background:#294f3c;color:#e9f3eb;padding:13px 22px;border-radius:8px;font-size:12px;box-shadow:0 8px 25px #16362122;z-index:99;max-width:80vw}#toast.error{background:#8c554b}.chart text{font-family:var(--mono);font-size:10px}.chart line,.chart path{vector-effect:non-scaling-stroke} .chart .price-line{stroke:#729bad;stroke-width:1.6;stroke-dasharray:0 5;stroke-linecap:round;fill:none}.chart .buy-line{stroke:#9fc8ad;stroke-width:1;stroke-dasharray:4 5}.chart .sell-line{stroke:#d8bf8c;stroke-width:1;stroke-dasharray:2 6}
@media(min-width:1550px){.builder-layout{grid-template-columns:370px minmax(0,1fr)}.chart{height:370px}.content{padding-top:40px}.setup-panel{padding:25px 27px}.builder-layout{gap:27px}.preview-column{gap:24px}}@media(max-width:1250px){.sidebar{width:210px;padding-left:15px;padding-right:15px}main{margin-left:210px}.content{padding:27px 26px 16px}.topbar{padding:0 26px}.builder-layout{grid-template-columns:310px minmax(0,1fr);gap:17px}.setup-panel{padding:20px}.panel-heading{padding:20px}.metrics-grid{grid-template-columns:repeat(3,1fr)}.tabs{gap:17px}.dashboard-grid{grid-template-columns:1.5fr 1fr}.demo-controls{align-items:start;flex-direction:column}.env-tag{display:none}.step{font-size:10px}.steps{gap:12px}.metric-value{font-size:18px}.preview-summary{padding:19px}.preview-summary strong{font-size:13px}}@media(max-width:1000px){.sidebar{width:182px;padding:25px 13px 15px}.brand{font-size:18px;gap:8px}.version{display:none}main{margin-left:182px}.content{padding:25px 20px 15px}.topbar{padding:0 20px;height:65px}.topbar-right{gap:12px}#clock{display:none}.builder-layout{grid-template-columns:280px minmax(0,1fr);gap:15px}.setup-panel{padding:18px 17px}.panel-heading{padding:18px}.panel-heading .tag{font-size:7px;padding:3px}.grid-preview .panel-heading{align-items:flex-start;flex-direction:column;gap:9px}.preview-summary{grid-template-columns:1fr 1fr;padding:17px;gap:18px}.preview-summary>div{padding-left:0;border:0}.preview-summary>div:last-child{grid-column:1/-1}.preview-summary strong{font-size:15px}.chart-legend{font-size:8px;gap:12px;padding:13px 10px 18px}.chart{height:290px}.launch-panel{align-items:flex-start;flex-direction:column;padding:18px}.steps{padding:14px;gap:10px}.step{gap:6px;font-size:9px}.step span{width:20px;height:20px}.step-line{min-width:6px}.dashboard-grid{grid-template-columns:1fr}.result-panel{display:grid;grid-template-columns:1fr 1fr}.result-panel .panel-heading{grid-column:1/-1}.result-panel .breakdown{grid-column:2;grid-row:2/4}.pnl-total{font-size:27px}.pnl-chart{height:100px}.activity-toolbar{flex-direction:column;align-items:stretch;gap:0;padding:0 17px 10px}.table-actions{justify-content:flex-end}.tabs{gap:25px}.bot-cards{grid-template-columns:1fr 1fr}.page-footer{font-size:8px}#toast{left:calc(50% + 90px)}}@media(max-width:760px){.sidebar{position:relative;width:100%;height:62px;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .nav-label,.sidebar>.nav-button,.sidebar .bot-nav,.sidebar .sidebar-bottom{display:none}.sidebar .new-nav{display:flex;width:auto;padding:7px 12px;margin:0}.sidebar .new-nav:after{content:""}.version{display:inline}main{margin-left:0}.topbar{height:52px;padding:0 18px}.content{padding:25px 18px 16px}.page-heading{margin-bottom:20px;align-items:flex-start;flex-direction:column;gap:15px}h1{font-size:25px}.page-heading p{font-size:11px;line-height:1.7}.builder-layout{grid-template-columns:1fr}.setup-panel{padding:22px}.steps{gap:6px;padding:14px 10px}.step{font-size:8px;gap:5px}.step span{height:18px;width:18px;font-size:8px}.step-line{min-width:5px}.grid-preview .panel-heading{flex-direction:row;align-items:center}.preview-summary{grid-template-columns:1fr 1fr 1fr;padding:18px}.preview-summary>div:last-child{grid-column:auto}.preview-summary strong{font-size:14px}.chart{height:320px}.launch-panel{flex-direction:row;align-items:center}.metrics-grid{grid-template-columns:repeat(2,1fr);gap:10px}.metric-value{font-size:19px}.dashboard-grid{gap:16px}.tabs{gap:19px}.tabs button{font-size:10px}.bot-cards{grid-template-columns:1fr}.breadcrumb{font-size:10px}.topbar-right .avatar{display:none}.sandbox-badge{font-size:9px}.page-footer>span:nth-child(2){display:none}#toast{left:50%}.demo-controls form{flex-wrap:wrap}.result-panel{display:flex}.result-panel .pnl-chart{height:110px}.table-footer{font-size:8px}.page-footer{padding-top:25px}.table-actions{gap:6px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep dense trading data readable on desktop and preserve icon strokes. */
.large-grid-icon svg{stroke:currentColor;stroke-width:1.5}
@media(max-width:760px){.sidebar{height:auto;min-height:62px;flex-wrap:wrap;gap:4px}.sidebar .brand{margin-right:auto}.sidebar #overview-nav{margin-left:0}}
.account-details{white-space:pre-line;overflow-wrap:anywhere;font:11px/1.9 var(--mono);color:#6d8074;margin:16px 0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.delete-link{color:#a6655c}.danger-solid{background:#a45b50;color:white}.danger-solid:hover{background:#8d4d43}@media(max-width:760px){.sidebar #accounts-nav{display:flex;width:auto;font-size:10px;margin:0;padding:7px}.sidebar #accounts-nav svg{display:none}}
.token-help{font-size:11px;color:#84958a;line-height:1.8;margin:18px 0 0}#token-form{margin-top:18px}#token-form .button{margin-top:8px}#sandbox-token{font:13px var(--mono)}
.page-heading p,.field-hint{color:#7d8a83}
.instrument-quote{background:#f1f7f3;border:1px solid #dce9df;border-radius:8px;margin:16px 0;padding:13px 15px;color:#566e60}
.quote-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
.quote-heading .square-button{width:27px;height:27px;background:white}
#instrument-price{display:block;font:600 25px/1.5 var(--mono);color:#2e684c;margin:3px 0 5px}
#instrument-price-time,.quote-status{font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.quote-status{color:#7a8e80;margin-top:4px}.quote-error{color:#a45b50}
.heading-buttons{flex-wrap:wrap;justify-content:flex-end}.state-badge.liquidating{background:#fff5df;color:#aa8440}.state-badge.liquidation_failed{background:#fcf0ee;color:#b9685c}
.grid-buy{--grid-color:#8ca7be}
.grid-live-buy{--grid-color:#0ba264}
.grid-sell{--grid-color:#8ca7be}
.grid-held{--grid-color:#336fee}
.grid-live-sell{--grid-color:#7d2b38}
.grid-outside{--grid-color:#df862b}
.chart .grid-level line{stroke:var(--grid-color)}
.chart .grid-level circle,.chart .grid-level text,.chart .grid-side-title{fill:var(--grid-color)}
.chart .grid-level.grid-outside line{stroke-width:1.6}
.chart .grid-level.grid-held line,.chart .grid-level.grid-live-buy line,.chart .grid-level.grid-live-sell line{stroke-width:2}
.chart-legend i[class^="grid-"]{background:var(--grid-color);flex-shrink:0}
.grid-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.grid-tools:has([hidden]+[hidden]){display:none}.range-caption{font-size:10px;color:#84958a;line-height:1.8}
.launch-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px}.launch-panel{flex-wrap:wrap}.launch-panel>div:first-child{flex:1;min-width:220px}.launch-buttons .button{white-space:normal}.chart-legend{flex-wrap:wrap}.state-badge.waiting{color:#a3752b;background:#fff4df}.status-dot.waiting{background:#d19a46}
.panel-heading p,.instrument-info,.strategy-note p{color:#84958a}
.chart .current-price-line{stroke:#000;stroke-width:2}.chart .current-price-dot,.chart .current-price-label{fill:#000}.chart .current-price-badge{fill:#fff;fill-opacity:.72}.chart .current-price-label{font-weight:600;cursor:default}.chart .grid-level text{cursor:default}.chart .grid-anchor-marker{fill:#627987;font-weight:600}
.preview-price{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.preview-price strong{font:600 18px var(--mono);color:#287db2}.preview-price small{font-size:9px;color:#81939e}.preview-price .tag{align-self:flex-end}
label{color:#55685d;font-size:12px}
.button{font-size:12px}
h2{font-size:14px}
.metric-label{color:#7b8c80;font-size:10px}
.metric-note{color:#89998e}
.table-footer{color:#8b9c90}
th{color:#809587;font-size:10px}
td{color:#5e7867;font-size:11px}
@media(max-width:760px){td{font-size:10px}.tabs button{font-size:10px}}
@media(max-width:760px){.sidebar #overview-nav{display:flex;width:auto;margin:0 5px 0 auto;padding:7px 9px;font-size:10px}.sidebar #overview-nav svg{display:none}.sidebar .brand{font-size:17px}.sidebar .version{display:none}.sidebar .new-nav{font-size:10px}}

.chart.grid-scroll{height:460px;padding:0 8px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#a9b9af #f5f8f6}.chart.grid-scroll>svg{display:block;min-width:100%;max-width:none;flex-shrink:0}.chart.grid-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
@media(max-width:760px){.chart.grid-scroll{height:420px}}

.instrument-search{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:5px;padding:0 9px;min-height:42px;overflow:visible;transition:border-color .15s,box-shadow .15s}.instrument-search:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #277b5d1a}.instrument-search>span{padding:0;font-size:22px;line-height:1;text-align:center}.instrument-search input{width:100%;height:40px;min-width:0;border:0;border-radius:0;padding:0 4px;background:transparent;outline:none!important;box-shadow:none}.instrument-search button{height:30px;margin:0;padding:0 9px;flex-shrink:0;border-radius:4px;white-space:nowrap;font-size:11px}.instrument-search button:hover{background:var(--green-bg)}

.accounts-notice{display:flex;align-items:center;gap:8px}
.accounts-spinner{width:14px;height:14px;flex-shrink:0;border:2px solid #d3e2eb;border-top-color:currentColor;border-radius:50%;animation:accounts-spin .8s linear infinite}
@keyframes accounts-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.accounts-spinner{animation:none}}
#bot-account{overflow-wrap:anywhere}

#accounts-dialog{width:760px}
#accounts-table{max-height:50vh;border:1px solid var(--line);border-radius:6px}
#accounts-table th,#accounts-table td{padding:10px 12px}
#accounts-table td:first-child{white-space:normal;overflow-wrap:anywhere;min-width:9em}
.account-row-id{display:block;font:10px var(--mono);margin-top:4px;color:var(--muted)}
.account-row-actions{display:flex;flex-wrap:wrap;gap:6px}

.login-page{display:grid;min-height:100vh;place-items:center;padding:24px}
.login-panel{margin:0;width:min(100%,410px);padding:28px}
.login-panel>p{color:var(--muted);margin:10px 0 20px}
.login-panel button{width:100%;margin-top:18px}

.chart-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
.grid-invert-button[aria-pressed=true]{background:#eaf2f8;border-color:#8ca7be;color:#315b79}

.account-funds{margin-top:12px}
.account-funds dl{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0}
.account-funds dt{font-size:10px;color:var(--muted)}
.account-funds dd{margin:3px 0 0;font:14px var(--mono);color:var(--ink)}

.grid-summary{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;margin:0;padding:0 20px 18px;font-size:11px}
.grid-summary>div{display:flex;gap:5px}
.grid-summary dt{color:var(--muted)}
.grid-summary dd{margin:0;font-family:var(--mono);font-weight:600}
