:root{color-scheme:dark;--bg:#0e1117;--surface:#151a22;--surface-2:#1a202a;--border:#29313d;--text:#edf1f5;--muted:#8b96a7;--accent:#7fe9c6;--accent-dark:#152f29;--orange:#e6b17b;--purple:#baabf2;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,p{margin:0}h1{font-size:32px;letter-spacing:-1.1px;font-weight:600;line-height:1.2}h2{font-size:17px;font-weight:600;letter-spacing:-.25px}.muted{color:var(--muted)}.caption{font-size:12px;color:var(--muted);line-height:1.7}.mono,code{font-family:Consolas,monospace}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted)}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);vertical-align:middle}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:42px;padding:10px 18px;border-radius:8px;font-weight:600;font-size:13px;border:1px solid transparent;transition:background .15s}.primary{background:var(--accent);color:#12241e}.primary:hover:not(:disabled){background:#a1f4d9}.secondary{color:var(--text);background:var(--surface-2);border-color:var(--border)}.secondary:hover:not(:disabled){background:#252e3b}.primary span:last-child{margin-left:auto}.full{width:100%}.icon-button{border:0;background:transparent;color:var(--muted);font-size:23px;line-height:1;padding:8px;border-radius:6px}.icon-button:hover{background:var(--surface-2);color:var(--text)}.badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:var(--accent-dark);border:1px solid #2a5146;color:var(--accent);padding:4px 9px;border-radius:5px;font-size:10px;font-weight:500}.badge.neutral{background:#202630;border-color:#323b49;color:#a6b0bd}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:650;letter-spacing:-1px}.brand img{width:32px;height:32px}.brand-dot{color:var(--accent)}.boot{display:grid;place-content:center;gap:12px;min-height:100vh;text-align:center;font-size:28px}.boot span{font-size:14px;color:var(--muted)}
.workspace{display:flex;min-height:100vh}.sidebar{width:236px;flex:0 0 236px;padding:29px 18px 0;background:#11151c;border-right:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 11px;margin-bottom:50px}.workspace-label{font-size:9px;letter-spacing:1.7px;color:#687486;padding:0 13px;margin-bottom:12px;font-weight:600}.admin-label{margin-top:35px}.nav-item{display:flex;gap:12px;align-items:center;min-height:45px;border-radius:7px;padding:10px 13px;color:#98a4b5;margin-bottom:4px;font-size:12px;font-weight:500}.nav-item>span{font-size:19px;line-height:1;width:20px;text-align:center;color:#708093}.nav-item.active{background:#1a302c;color:var(--accent)}.nav-item.active>span{color:var(--accent)}.nav-item:hover{background:#1b222c}.nav-item small{margin-left:auto;font-size:10px;background:#2b423c;padding:1px 7px;border-radius:4px}.sidebar-bottom{margin-top:auto}.testing-note{display:flex;align-items:flex-start;gap:10px;font-size:11px;padding:17px 12px;border:1px solid #293a34;border-radius:8px;background:#151e1b;margin-bottom:20px}.testing-note .status-dot{margin-top:5px;flex-shrink:0}.testing-note small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.profile{display:flex;align-items:center;gap:10px;padding:19px 3px;border-top:1px solid var(--border)}.avatar{width:33px;height:33px;border-radius:9px;background:#293438;color:#ace5d1;display:grid;place-items:center;font-weight:500}.profile>div{min-width:0;flex:1}.profile strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{display:block;color:var(--muted);font-size:9px}.main{min-width:0;flex:1;display:flex;flex-direction:column}.page{width:100%;flex:1;padding:36px 42px 0;max-width:1570px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:31px}.page-heading .eyebrow{margin-bottom:10px}.page-heading .muted{font-size:12px;margin-top:11px}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#5c6879;border-top:1px solid #222a35;padding:20px 0;margin-top:auto;gap:16px}.page>*:nth-last-child(2){margin-bottom:36px}.panel{border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading>span{font-size:11px}.section-heading h2>span{font-size:11px;color:var(--muted);background:#252d39;border-radius:4px;padding:2px 6px;margin-left:8px}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:10px;background:linear-gradient(110deg,#171e26,#141920);margin-bottom:36px}.overview>div{padding:23px 25px;position:relative}.overview>div+div:before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:1px;background:var(--border)}.overview small{display:block;font-size:9px;font-weight:500;letter-spacing:1px;color:#8a98aa}.overview strong{display:block;font-size:34px;font-weight:500;letter-spacing:-1px;margin:11px 0 4px;line-height:1.1}.overview>div>span{color:#697789;font-size:10px}.overview-mode strong{font-size:29px;margin-top:16px;color:var(--accent)}.overview-mode .status-dot{margin-left:12px;vertical-align:5px;box-shadow:0 0 14px #7fe9c644}.bot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:18px;margin-bottom:24px}.bot-card{border:1px solid var(--border);background:var(--surface);border-radius:11px;overflow:hidden;transition:border-color .15s}.bot-card:hover{border-color:#526c65}.card-top{display:flex;justify-content:space-between;align-items:center;padding:21px 21px 18px}.exchange-mark{display:grid;place-items:center;width:auto;min-width:37px;padding-inline:10px;height:37px;background:#252c39;border:1px solid #3a4556;border-radius:9px;font-size:13px;font-weight:700;flex-shrink:0}.exchange-mark.bybit{color:#e4c184;background:#302b21;border-color:#51432d}.exchange-mark.bingx{color:#9bbafa;background:#222d43;border-color:#364c74}.bot-card h2{padding:0 21px}.bot-meta{padding:5px 21px;color:#8492a4;font-size:10px}.bot-meta span{padding:0 5px;color:#4c5869}.bot-card-data{display:flex;justify-content:space-between;gap:12px;margin:25px 21px}.bot-card-data>div>small{display:block;font-size:8px;color:#7b899c;letter-spacing:.5px;margin-bottom:7px}.bot-card-data strong{font-size:14px;font-weight:500}.bot-card-data strong small{font-size:9px;color:var(--muted)}.strategy-name{font-size:16px;font-weight:600}.light{--strategy:var(--accent)}.med{--strategy:var(--purple)}.high{--strategy:var(--orange)}.strategy-name.light{color:var(--accent)}.strategy-name.med{color:var(--purple)}.strategy-name.high{color:var(--orange)}.card-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding:12px 21px;font-size:9px;color:#7c8b9d}.card-bottom>span:last-child{font-size:17px}.empty-state{border:1px dashed #35404e;background:#121820;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 24px;text-align:center;min-height:310px;margin-bottom:24px}.empty-icon{font-size:30px;border-radius:13px;width:60px;height:60px;background:#1e2f2a;color:var(--accent);display:grid;place-items:center;margin-bottom:20px}.empty-state h2{font-size:21px}.empty-state p{max-width:430px;font-size:12px;color:var(--muted);margin:10px 0 22px}.notice{padding:15px 18px;border:1px solid #3e454d;background:#1d242d;border-radius:8px;font-size:12px;line-height:1.7;color:#b4c0ce;margin-bottom:22px}.notice.subdued{font-size:11px;background:#131a21;color:#8998aa;border-color:#26313e}.notice strong{font-weight:500;color:#c5d0dd}.back-link{font-size:11px;color:var(--muted);display:inline-block;margin-bottom:22px}.back-link:hover{color:var(--accent)}
label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#a5b1c0}input,select,textarea{width:100%;color:var(--text);background:#10151d;border:1px solid #303a48;border-radius:7px;padding:11px 12px;min-height:43px;transition:border-color .15s;min-width:0}input::placeholder,textarea::placeholder{color:#526173}input:focus,select:focus,textarea:focus{border-color:var(--accent)}input[type=checkbox],input[type=radio]{width:16px;min-height:16px;accent-color:var(--accent);margin:0;flex-shrink:0}input[type=number]{appearance:textfield}form>label+label{margin-top:18px}form>.primary{margin-top:22px}textarea{resize:vertical;font-family:Consolas,monospace;line-height:1.7}.creation-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.creation-blocks{display:flex;flex-direction:column;gap:18px;min-width:0}.form-block{padding:24px}.block-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}.block-heading .step{font-family:Consolas,monospace;font-size:10px;border:1px solid #384353;color:#9eacbd;border-radius:6px;width:29px;height:29px;display:grid;place-items:center;margin-top:1px;flex-shrink:0}.block-heading h2{font-size:15px}.block-heading p{font-size:10px;color:var(--muted);margin-top:5px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.choice{position:relative;flex-direction:row;align-items:center;gap:12px;border:1px solid #35404e;border-radius:8px;padding:16px;cursor:pointer;min-width:0}.choice input,.strategy-choice input{position:absolute;opacity:0;width:1px;min-height:1px}.choice:has(input:checked),.strategy-choice:has(input:checked){border-color:var(--accent);background:#182923}.choice:has(input:focus-visible),.strategy-choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.choice strong{font-size:13px;color:var(--text);display:block}.choice small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.choice-check{display:inline-block;width:14px;height:14px;border:1px solid #566171;border-radius:50%;margin-left:auto;flex-shrink:0}.choice input:checked~.choice-check,.strategy-choice input:checked~.choice-check{border:4px solid var(--accent);background:#18352b}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mode{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:8px;border:1px solid #3c4e48;border-radius:8px;background:#182720;padding:15px;color:var(--text)}.mode input{position:absolute;opacity:0;width:1px}.mode strong{display:block;font-size:13px;font-weight:500}.mode strong .status-dot{margin-right:5px}.mode small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.mode.locked{background:#171c25;border-color:#303846;opacity:.5}.mode.locked strong>span{margin-left:8px;color:var(--muted)}.connection-field{margin-top:22px}.text-link{font-size:10px;display:inline-block;color:var(--accent);margin-top:12px}.strategies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px}.strategy-choice{position:relative;border:1px solid #35404e;border-radius:8px;padding:16px;cursor:pointer;gap:4px;min-width:0}.strategy-choice:has(input:checked){border-color:var(--strategy);background:color-mix(in srgb,var(--strategy) 6%,var(--surface))}.strategy-glyph{color:var(--strategy);font-size:22px;height:34px;line-height:1}.strategy-choice strong{font-size:19px;color:var(--strategy);font-weight:500}.strategy-choice small{font-size:9px;color:var(--muted)}.strategy-choice .choice-check{position:absolute;right:12px;top:14px}.strategy-choice input:checked~.choice-check{border-color:var(--strategy)}.input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ticker-preview{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 13px}.ticker-preview span{font-size:9px;background:#222b36;border:1px solid #354152;padding:5px 9px;border-radius:5px;color:#b3c0d0;letter-spacing:.2px}.creation-summary{position:sticky;top:24px;padding:23px}.creation-summary h2{font-size:21px;margin:10px 0 25px}.creation-summary label{font-size:10px}.creation-summary input{font-size:11px}.creation-summary dl{margin:23px 0}.creation-summary dl>div,.detail-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;padding:10px 0}.creation-summary dt,.detail-list dt{color:var(--muted)}dd{margin:0;text-align:right}.creation-summary dd .status-dot{margin-right:5px}.summary-budget{padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.summary-budget>small{font-size:8px;letter-spacing:.7px;color:var(--muted);display:block}.summary-budget strong{display:block;font-size:28px;font-weight:500;letter-spacing:-.8px;margin:9px 0 4px}.summary-budget strong small{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}.summary-budget>span{font-size:10px;color:var(--muted)}.summary-info{font-size:10px;color:#8b9caa;line-height:1.8;margin:19px 0}.creation-summary .primary{font-size:11px}.heading-actions{display:flex;gap:8px;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:22px}.detail-list{margin:5px 0}.detail-list>div{border-bottom:1px solid #232c38;padding:12px 0}.detail-list>div:last-child{border-bottom:0}.control-explanation strong{font-size:12px;display:block;margin:22px 0 6px}.control-explanation p{font-size:11px;color:var(--muted);max-width:400px}.history-panel{margin-bottom:22px}.inline-empty{padding:35px 10px;text-align:center;font-size:12px;color:var(--muted)}.event-list{margin-top:20px}.event-list>div{display:flex;gap:24px;font-size:11px;padding:12px 0;border-top:1px solid var(--border)}.event-list time{color:var(--muted);white-space:nowrap}.table-wrap{padding:0;overflow-x:auto;margin-bottom:24px}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:500;color:var(--muted);letter-spacing:.4px;padding:16px 22px;background:#171e27;border-bottom:1px solid var(--border)}td{padding:20px 22px;font-size:11px;border-bottom:1px solid #252e3a}tr:last-child td{border-bottom:0}td strong{font-weight:500;font-size:12px}td small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.row-actions{text-align:right}.row-actions .secondary{font-size:10px;min-height:32px;padding:5px 12px}.row-actions .icon-button{vertical-align:middle;margin-left:10px}.error-text{color:#e8a3a3;max-width:260px;white-space:normal}.admin-strategies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.strategy-editor h2{font-size:25px}.toggle-label{flex-direction:row;align-items:center;gap:10px;line-height:1.7}.strategy-editor>.toggle-label{margin:20px 0}.strategy-editor details{margin-top:24px;border-top:1px solid var(--border);padding-top:18px}.strategy-editor summary{font-size:11px;cursor:pointer;color:#c1cedd}.settings-fields{margin-top:20px;display:grid;gap:17px}.settings-fields label{font-size:10px}.settings-fields input{font-size:11px}.settings-fields .toggle-label{font-size:10px}.form-actions{display:flex;justify-content:flex-end;margin-top:22px}.ticker-admin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.ticker-admin h2{margin-bottom:12px}.ticker-admin p{font-size:12px;margin-bottom:20px}.ticker-admin textarea{margin-top:5px}.ticker-help{align-self:start}.ticker-help .eyebrow{display:block;margin-bottom:12px}.ticker-help .notice{margin-bottom:0}.ticker-help .ticker-preview{margin-bottom:25px}pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}
dialog{color:var(--text);background:#171e27;border:1px solid #3b495b;border-radius:15px;width:min(470px,calc(100% - 32px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;padding:28px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#05080dbd;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:20px}.dialog-header h2{font-size:23px;margin-top:7px}dialog form>.notice{margin-top:20px}dialog form>.caption{margin-top:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;max-width:min(600px,calc(100% - 32px));padding:15px 20px;background:#1c3d31;border:1px solid #4d866e;color:#d6ffec;border-radius:9px;font-size:12px;box-shadow:0 12px 36px #0007}#toast.error{background:#3c242a;border-color:#88525c;color:#ffd7dc}[hidden]{display:none!important}
.login-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-story{position:relative;overflow:hidden;padding:40px 55px;background:radial-gradient(ellipse at 40% 65%,#193029 0%,#121c1b 30%,#111820 65%);border-right:1px solid var(--border);display:flex;flex-direction:column;justify-content:space-between}.login-story>.brand{margin-bottom:80px}.login-story h1{font-size:clamp(33px,3.7vw,55px);font-weight:500;line-height:1.18;letter-spacing:-2px;margin:18px 0}.login-story h1 span{color:var(--accent)}.login-story p{font-size:13px;line-height:1.9;color:#8faaa1}.login-foot{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:#63776f;gap:15px}.visual-grid{height:260px;position:relative;margin:20px 0 35px;display:grid;place-items:center;background-image:linear-gradient(#7fe9c606 1px,transparent 1px),linear-gradient(90deg,#7fe9c606 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(transparent,#000 15%,#000 80%,transparent)}.orbit{position:absolute;border:1px solid #7fe9c62c;border-radius:50%;transform:rotate(-25deg);width:280px;height:125px}.orbit.two{width:350px;height:195px;transform:rotate(25deg);border-style:dashed;border-color:#7fe9c61c}.orbit.three{width:225px;height:225px;transform:rotate(55deg);border-color:#7fe9c617}.core{width:65px;height:65px;display:grid;place-items:center;border:1px solid #7fe9c67a;border-radius:17px;background:#19362c;color:var(--accent);font-weight:700;font-size:30px;box-shadow:0 0 65px #7fe9c61a}.orbit-label{position:absolute;font-size:8px;letter-spacing:2px;color:#6a9385;border:1px solid #375346;border-radius:4px;background:#17261f;padding:6px 11px}.orbit-label.top{top:28px;right:15%}.orbit-label.bottom{bottom:23px;left:13%}.login-form{display:flex;align-items:center;justify-content:center;padding:60px 45px;position:relative}.login-box{width:100%;max-width:350px}.login-box h2{font-size:28px;margin:26px 0 9px;font-weight:500;letter-spacing:-.7px}.login-box>.muted{font-size:12px;margin-bottom:32px}.login-box form label{font-size:11px}.login-box .primary{margin-top:27px}.login-box>.caption{margin-top:25px;text-align:center;font-size:10px}.login-version{position:absolute;bottom:28px;font-size:10px;color:#586477}
@media(min-width:1600px){.page{padding-top:44px}.overview>div{padding:28px 30px}.sidebar{width:250px;flex-basis:250px}}
@media(max-width:1200px){.page{padding:30px 26px 0}.creation-layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.form-block{padding:20px}.choice{padding:12px;gap:8px}.choice .exchange-mark{width:30px;height:30px}.overview>div{padding:20px 18px}.admin-strategies{grid-template-columns:1fr}.strategy-editor .settings-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-editor>label{max-width:350px}.mode{padding:12px}.mode .badge{font-size:8px;padding:3px 5px}}
@media(max-width:1000px){.sidebar{width:205px;flex-basis:205px;padding:26px 12px 0}.sidebar .brand{font-size:21px}.creation-layout{grid-template-columns:1fr}.creation-summary{position:static}.creation-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.creation-summary .summary-budget{margin-top:12px}.creation-summary label{max-width:400px}.overview{grid-template-columns:repeat(2,minmax(0,1fr))}.overview>div:nth-child(3),.overview>div:nth-child(4){border-top:1px solid var(--border)}.overview>div:nth-child(3):before{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}.page-heading>.primary{white-space:nowrap;font-size:11px}.detail-grid,.ticker-admin{grid-template-columns:1fr}.login-story{padding:35px}.login-story h1{letter-spacing:-1.3px}.heading-actions{justify-content:flex-end}}
@media(max-width:700px){.workspace{flex-direction:column}.sidebar{position:static;width:100%;height:auto;flex-basis:auto;padding:17px 18px 12px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{margin:0 0 15px;padding:0;font-size:21px}.sidebar .brand img{width:28px;height:28px}.workspace-label,.testing-note,.profile,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px;flex-wrap:wrap}.sidebar nav+nav{margin-top:5px}.sidebar nav[aria-label=Администратор]{margin-top:5px}.nav-item{font-size:10px;min-height:35px;padding:8px 10px;gap:7px;margin:0}.nav-item>span{font-size:15px;width:auto}.nav-item small{font-size:8px}.sidebar-bottom .profile{display:flex}.page{padding:25px 18px 0;min-height:0}.page-heading{margin-bottom:24px;gap:15px;flex-wrap:wrap}.page-heading h1{font-size:27px}.page-heading .muted{font-size:11px}.page-heading .eyebrow{font-size:8px}.page-heading>.primary{font-size:11px;min-height:38px}.overview{margin-bottom:25px}.overview>div{padding:18px}.overview small{font-size:8px;letter-spacing:.4px}.overview strong{font-size:29px}.overview-mode strong{font-size:25px}.overview>div>span{font-size:9px}.section-heading>span{font-size:9px}.section-heading h2{font-size:15px}.section-heading{gap:10px}.bot-grid{grid-template-columns:1fr}.empty-state{min-height:280px;padding:35px 20px}.empty-state h2{font-size:19px}.empty-state p{font-size:11px}.form-block{padding:18px}.block-heading{gap:10px}.block-heading h2{font-size:14px}.block-heading p{font-size:9px}.choice-grid,.mode-grid{gap:8px}.choice{padding:11px 9px;gap:8px}.choice small{font-size:8px}.choice strong{font-size:12px}.choice .exchange-mark{width:auto;min-width:26px;padding-inline:6px;height:30px;font-size:11px}.choice-check{width:12px;height:12px}.mode{padding:12px 10px;gap:4px}.mode strong{font-size:12px}.mode small{font-size:8px}.mode .badge{font-size:7px}.strategies{gap:8px}.strategy-choice{padding:13px 11px}.strategy-choice strong{font-size:18px}.strategy-choice .choice-check{right:9px;top:13px}.strategy-choice small{font-size:8px}.strategy-glyph{font-size:19px}.input-grid{gap:12px}.input-grid label{font-size:10px}.input-grid input{font-size:13px}.creation-summary{padding:20px}.detail-grid{gap:18px}.panel{padding:20px}.table-wrap{padding:0}td,th{padding:16px}.heading-actions{justify-content:flex-start}.heading-actions button{font-size:11px;min-height:36px}.event-list>div{flex-direction:column;gap:5px}.page-footer{font-size:8px;padding:18px 0}.login-page{grid-template-columns:1fr;min-height:100dvh}.login-story{padding:24px;border:0;background:linear-gradient(130deg,#172c24,#111820)}.login-story>.brand{margin-bottom:30px}.login-story h1{font-size:32px;margin-top:13px;letter-spacing:-1px}.login-story .eyebrow{font-size:8px}.login-story p,.visual-grid,.login-foot{display:none}.login-form{padding:32px 24px 65px;align-items:flex-start}.login-box{max-width:430px}.login-box h2{font-size:24px;margin-top:19px}.login-box>.muted{margin-bottom:25px}.login-version{bottom:20px}.strategy-editor .settings-fields{grid-template-columns:1fr}.strategy-editor .section-heading h2{font-size:25px}.notice{font-size:11px}dialog{padding:23px}.dialog-header h2{font-size:21px}}
.mobile-logout{display:none;border:0;background:transparent;color:var(--muted);font-size:10px;cursor:pointer;padding:5px}
.report-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.report-links .secondary{font-size:11px}
dialog:has(.log-details-content){width:min(900px,calc(100% - 32px))}dialog:has(.log-details-content) .dialog-header>div{min-width:0}dialog:has(.log-details-content) .eyebrow{overflow-wrap:anywhere}.log-details-content{min-width:0}.log-detail-message{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.log-details-content>.caption{margin-top:14px;overflow-wrap:anywhere}.log-details-content pre{max-width:100%;max-height:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;overflow:visible}
.sidebar:has(.admin-market-controls){overflow-y:auto}.admin-market-controls{padding:18px 0;margin-top:12px;border-top:1px solid var(--border)}.admin-market-controls>.workspace-label{font-size:8px;letter-spacing:1px;margin-bottom:10px}.market-connect{display:flex;width:100%;align-items:center;gap:12px;padding:11px 13px;margin-bottom:7px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);text-align:left}.market-connect{background:#3b202b;border-color:#b65c75;color:#ffe1e9}.market-connect.enabled{background:#86f4c2;border-color:#b4ffdc;color:#092c20;box-shadow:0 0 18px #56e8aa30}.market-button-content{flex:1;min-width:0}.market-button-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.market-switch-state{font-size:8px;font-weight:800;letter-spacing:.3px;border:1px solid currentColor;padding:3px 5px;border-radius:4px;white-space:nowrap}.market-connect.enabled strong{font-weight:800}.market-connect:disabled{opacity:.8}.market-connect strong{display:block;font-size:12px}.market-connect small{display:block;font-size:10px;color:#f3bbca;margin-top:6px;overflow-wrap:anywhere}.market-connect.enabled small{color:#174d38;font-weight:600}.market-indicator{width:9px;height:9px;border-radius:50%;background:#ff829f;flex-shrink:0}.market-connect.enabled .market-indicator{background:#906025}.market-connect.enabled .market-indicator.connected{background:#075b38;box-shadow:0 0 0 3px #075b3820}@media(max-width:700px){.admin-market-controls{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0 0;margin-top:12px}.admin-market-controls>.workspace-label{display:block;width:100%;padding:0;margin:0}.market-connect{flex:1 1 180px;min-width:0;margin:0;padding:9px 11px}}
.admin-log-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:16px}.admin-log-filter>label{flex:1 1 180px;min-width:0;max-width:100%}.admin-log-filter>.primary{margin:0}.log-summary{margin-bottom:20px}.admin-log-table{max-width:100%;margin-bottom:22px}.admin-log-table th,.admin-log-table td{padding:9px 12px;white-space:nowrap;line-height:1.4;vertical-align:middle}.admin-log-table td{font-size:11px}.admin-log-table code{font-size:10px}.log-level.info{color:var(--muted)}.log-level.warning{color:var(--orange)}.log-level.error{color:#e8a3a3}.log-details-button{border:0;background:none;padding:0;margin:0;font:inherit;cursor:pointer;white-space:nowrap}.admin-log-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.strategy-choice .strategy-description{display:block;font-size:11px;font-weight:400;line-height:1.6;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.strategy-settings-panel>h2+label{margin-top:18px}
.strategy-select-bar{display:flex;align-items:flex-end;gap:18px;margin-bottom:22px;flex-wrap:wrap}.strategy-select-bar>label{width:min(420px,100%)}.strategy-select-bar>.caption{margin-bottom:10px}.strategy-select-bar>.badge{margin-left:auto;margin-bottom:9px}.page:has(.strategy-workbench){max-width:none;width:100%}.strategy-workbench{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,25vw,420px);gap:20px;align-items:start}.strategy-live-panel{min-width:0;position:sticky;top:18px;padding:20px;display:flex;flex-direction:column;height:auto}.strategy-live-panel>*{flex-shrink:0}.chart-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.chart-toolbar>label{min-width:0;flex:1 1 140px}.chart-toolbar>.badge{align-self:center;font-size:9px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.chart-toolbar>.secondary{font-size:10px;min-height:40px;padding:8px 10px}.chart-band-legend{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:10px;margin:18px 0 10px;color:#bdacf1}.chart-band-legend span:before{content:'';display:inline-block;height:2px;width:15px;background:currentColor;margin-right:6px;vertical-align:middle}.chart-band-legend span:nth-child(2){color:#afbfce}.chart-band-legend span:nth-child(3){color:#7fe9c6}.strategy-chart-canvas{position:relative;width:100%;min-width:0;min-height:220px;height:max(220px,calc(100vh - 320px));height:max(220px,calc(100dvh - 320px));flex:none;overflow:hidden;border:1px solid #293340;border-radius:8px}.strategy-chart-canvas canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.chart-ohlc{font:10px Consolas,monospace;color:#a4b4c6;min-height:34px;padding:10px 0;overflow-wrap:anywhere}.strategy-live-panel>.notice{margin:18px 0 0;font-size:10px}.strategy-settings-panel{min-width:0;max-height:none;overflow:visible}.strategy-settings-panel>h2{margin-bottom:22px}.strategy-settings-panel>.toggle-label{margin:20px 0}.strategy-settings-panel>details{padding:17px 0;border-top:1px solid var(--border)}.strategy-settings-panel summary{font-size:11px;cursor:pointer;color:#c5d1df}.strategy-settings-panel .settings-fields{grid-template-columns:1fr}.strategy-save-bar{position:static;padding-top:18px;margin-top:10px;border-top:1px solid var(--border)}.strategy-save-bar>.primary{font-size:11px}.strategy-choice{--strategy:var(--accent)}.strategy-choice strong,.bot-card .strategy-name{overflow-wrap:anywhere}.strategy-workbench+.page-footer{margin-top:32px}
.strategy-choice.med{--strategy:var(--purple)}.strategy-choice.high{--strategy:var(--orange)}.creation-blocks .ticker-preview{max-height:180px;overflow:auto;align-content:flex-start}
@media(max-width:1150px){.strategy-workbench{grid-template-columns:1fr}.strategy-live-panel{position:static}.strategy-settings-panel{max-height:none;overflow:visible}.strategy-settings-panel .settings-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-save-bar{position:static}}
@media(max-width:700px){.strategy-settings-panel .settings-fields{grid-template-columns:1fr}.strategy-select-bar{gap:10px}.strategy-select-bar>.badge{margin-left:0}.chart-toolbar{gap:9px}.chart-toolbar>label{min-width:0;flex-basis:120px}.chart-toolbar>.badge{margin-top:5px}.strategy-live-panel{padding:14px}.chart-ohlc{font-size:9px}.strategy-workbench{gap:16px}}
@media(max-width:700px){.mobile-logout{display:block}}
.page>*,.panel,.page-heading>div,.section-heading>*,.settings-fields>label,.login-page>*{min-width:0}.panel{max-width:100%}.page-heading h1,.panel h2,.notice,.bot-meta,.event-list>div>span,.error-text{overflow-wrap:anywhere}.section-heading{flex-wrap:wrap}.detail-list dt,.creation-summary dt{min-width:0;flex:0 1 50%}.detail-list dd,.creation-summary dd{min-width:0;flex:1;overflow-wrap:anywhere}.bot-card h2,.card-bottom>span:first-child{overflow-wrap:anywhere}.bot-card-data>div{min-width:0;flex:1}.table-wrap{width:100%;min-width:0;max-width:100%;overscroll-behavior-x:contain}.dialog-header>div{min-width:0}.dialog-header h2,.dialog-header .eyebrow{overflow-wrap:anywhere}.dialog-header>.icon-button{flex-shrink:0;align-self:flex-start}#toast{overflow-wrap:anywhere;line-height:1.5}.sidebar>.brand,.sidebar nav,.admin-market-controls,.sidebar-bottom{flex-shrink:0}.chart-toolbar>.secondary{max-width:100%;white-space:normal}.strategy-settings-panel summary{overflow-wrap:anywhere}
@media(min-width:701px) and (max-height:700px){.sidebar{position:static;align-self:flex-start;height:auto;min-height:100vh;min-height:100dvh}.sidebar:has(.admin-market-controls){overflow:visible}.creation-summary,.strategy-live-panel{position:static}}
@media(max-width:420px){.choice-grid,.mode-grid,.input-grid,.creation-summary dl{grid-template-columns:minmax(0,1fr)}.overview strong{font-size:24px}.admin-log-filter>label{flex-basis:100%}.chart-toolbar>label{flex-basis:100%}.chart-toolbar>.secondary{flex:1}.admin-log-pagination>.secondary{font-size:10px;padding:8px 10px}}
.strategy-heading-row{flex-wrap:nowrap;align-items:center;gap:16px;margin-bottom:22px}.strategy-heading-row>div:first-child{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.strategy-heading-row .eyebrow{margin:0;font-size:8px;letter-spacing:1px;white-space:nowrap}.strategy-heading-row h1{margin:0;font-size:24px;white-space:nowrap;flex-shrink:0}.strategy-heading-row .muted{margin:0;font-size:11px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strategy-heading-row .strategy-select-bar{flex:0 1 390px;min-width:0;flex-wrap:nowrap;align-items:center;gap:12px;margin:0}.strategy-heading-row .strategy-select-bar>label{width:auto;min-width:0;flex:1;flex-direction:row;align-items:center;gap:10px;white-space:nowrap}.strategy-heading-row #strategy-selector{width:100%;min-width:110px;max-width:220px;min-height:40px;font-size:11px}.strategy-heading-row .strategy-select-bar>.caption{margin:0;font-size:10px;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}.strategy-heading-row>.primary{flex-shrink:0;min-height:40px;padding:9px 12px;font-size:11px}
@media(max-width:700px){.strategy-heading-row{gap:10px;flex-wrap:wrap}.strategy-heading-row>div:first-child{flex-basis:100%}.strategy-heading-row .strategy-select-bar{flex:1 1 240px}.strategy-heading-row .eyebrow{font-size:7px}.strategy-heading-row h1{font-size:22px}.strategy-heading-row .strategy-select-bar>.caption{max-width:110px}}
.projection-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px}.projection-controls>label{flex:1 1 160px;min-width:0}.projection-controls>.secondary{font-size:10px}.strategy-projection-summary{min-width:0;max-width:100%;margin-top:14px}.projection-sides{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:12px 0}.projection-sides>section{min-width:0;border:1px solid var(--border);border-radius:7px;padding:12px}.projection-sides strong{font-size:11px;color:var(--accent)}.projection-sides p{font-size:10px;line-height:1.7;margin-top:7px;overflow-wrap:anywhere}.projection-levels{margin-top:14px;font-size:11px}.projection-levels .table-wrap{margin:12px 0 0}.projection-levels table{white-space:normal}.projection-levels th,.projection-levels td{padding:8px;font-size:10px;overflow-wrap:anywhere}.strategy-live-panel:has(.projection-levels[open]){position:static}.admin-bot-filter{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:20px}.admin-bot-filter>label{flex:1 1 240px;min-width:0}.admin-bot-chart-panel{margin-bottom:24px;min-width:0}.admin-bot-chart-panel .strategy-chart-canvas{margin-top:16px}.history-panel>h2{margin-bottom:16px}.projection-controls>.caption{flex:1 1 140px}
.settings-fields label[data-inactive-note]:not([data-inactive-note=""])::after{content:attr(data-inactive-note);display:block;color:var(--muted);font-size:10px;line-height:1.5;flex-basis:100%}.settings-fields .toggle-label[data-inactive-note]:not([data-inactive-note=""]){flex-wrap:wrap}.settings-fields input:disabled{opacity:.55;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.simulation-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; cursor: pointer; }
.simulation-toggle input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #7de6cd; }
.simulation-settings fieldset { min-width: 0; padding: 0; margin: 0; border: 0; transition: opacity .15s; }
.simulation-settings fieldset:disabled { opacity: .4; }
.simulation-settings { margin-top: 20px; }
.simulation-account { margin-block: 18px; }
.bot-edit-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.overview.bots-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bots-overview strong { font-size: clamp(20px, 3vw, 34px); overflow-wrap: anywhere; }
.bots-overview strong small { display: inline; font-size: 12px; letter-spacing: 0; }
@media (max-width: 480px) {
  .overview.bots-overview > div { padding: 16px 10px; }
  .bots-overview small { font-size: 8px; letter-spacing: 0; }
}
.bot-card-profit { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 21px 22px; }
.bot-card-profit > small { color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.bot-card-profit strong { min-width: 0; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.bot-card-profit strong small { font-size: 11px; color: var(--muted); }
.profit-positive { color: var(--accent); }
.profit-negative { color: #ff829a; }
.profit-neutral { color: var(--muted); }
.chart-scenario-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; font-size: 11px; }
.chart-scenario-legend:empty { display: none; }
.chart-scenario-legend > span { color: var(--scenario-color); }
.chart-scenario-legend > span::before { content: ''; display: inline-block; width: 20px; margin-right: 7px; border-top: 2px dashed currentColor; vertical-align: middle; }
.projection-branch-name, .projection-level-name { color: var(--scenario-color); }
.server-status[data-state="online"] { color: #7fe9c6; border-color: #356655; background: #15271f; }
.server-status[data-state="online"] .status-dot { background: #7fe9c6; }
.server-status[data-state="offline"] { color: #ff829a; border-color: #8a4053; background: #301b24; }
.server-status[data-state="offline"] .status-dot { background: #ff829a; box-shadow: none; }
.server-status[data-state="checking"] { color: #e5c580; border-color: #665531; background: #272318; }
.server-status[data-state="checking"] .status-dot { background: #e5c580; box-shadow: none; }
@media (min-width: 701px) {
  .sidebar nav .nav-item.active, .sidebar .server-status { margin-right: -18px; border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .sidebar nav .nav-item.active, .sidebar .server-status { margin-right: -12px; }
}
.sidebar .server-status { border: 0; }
.sidebar .server-status { align-items: center; gap: 6px; padding: 12px 8px; }
.sidebar .server-status .status-dot { margin-top: 0; }
.server-status [data-server-label] { flex: 1; min-width: 0; }
.server-prices { display: flex; flex-direction: column; flex-shrink: 0; margin-left: auto; text-align: right; font-size: 9px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
#user-bot-grid[hidden], #user-bot-empty[hidden] { display: none; }
.bot-card .card-top { position: relative; isolation: isolate; }
.bot-card-status { display: inline-flex; }
.bot-card-gears { position: absolute; top: 0; right: 0; width: 82px; height: 84px; z-index: -1; pointer-events: none; color: var(--accent); opacity: .28; visibility: hidden; }
.bot-card-gears svg { position: absolute; width: 44px; height: 44px; fill: currentColor; transform-origin: center; animation: bot-gear-spin 12s linear infinite; animation-play-state: paused; }
.bot-card-gears svg:nth-child(1) { right: -3px; top: -3px; }
.bot-card-gears svg:nth-child(2) { width: 40px; height: 40px; left: 7px; top: 2px; animation-direction: reverse; }
.bot-card-gears svg:nth-child(3) { width: 40px; height: 40px; left: 32px; top: 33px; animation-direction: reverse; }
.bot-card-status[data-running="true"] .bot-card-gears { visibility: visible; }
.bot-card-status[data-running="true"] .bot-card-gears svg { animation-play-state: running; }
.bot-card-status[data-running="true"] > .badge { background: #1a302ca6; }
@keyframes bot-gear-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.bot-card .card-bottom { justify-content: space-between; gap: 12px; }

.scenario-upper { --scenario-color: #c6a3ff; }
.scenario-lower { --scenario-color: #64eed2; }

.latest-trade { display: block; }
.latest-trade-heading { margin-bottom: 10px; color: var(--text); font-weight: 600; }
.latest-trade-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.8fr) minmax(110px, .6fr); gap: 8px 20px; align-items: center; padding: 12px 0; text-align: left; }
.latest-trade-row + .latest-trade-row { border-top: 1px solid var(--border); }
.latest-trade-row > * { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.latest-trade-row strong { font-size: 16px; text-align: left; white-space: nowrap; }
.latest-trade-row [data-latest-age] { display: inline-block; }
@media (max-width: 1000px) { .latest-trade-row { grid-template-columns: minmax(0, 1fr) minmax(110px, .6fr); } }
@media (max-width: 480px) { .latest-trade-row { column-gap: 12px; } .latest-trade-row strong { font-size: 14px; } }
.sound-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

.sound-settings-caption { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.sound-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.sound-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 22px; text-align: left; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.sound-choice strong { font-size: 17px; }
.sound-choice-number { color: var(--muted); font-size: 11px; }
.sound-choice-status { margin-top: auto; padding-top: 8px; font-size: 11px; color: var(--muted); }
.sound-choice[aria-pressed="true"] { border-color: var(--accent); background: #15271f; }
.sound-choice[aria-pressed="true"] .sound-choice-status { color: var(--accent); }
.sound-choice:disabled { cursor: wait; opacity: .65; }

.sidebar .brand-wordmark { display: flex; flex-direction: row; align-items: baseline; gap: 4px; white-space: nowrap; }
.sidebar .brand-beta { margin-top: 0; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0; color: var(--text); }

body.user-gear-background { isolation: isolate; }
body.user-gear-background::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  width: max(110vw, 110vh);
  height: max(110vw, 110vh);
  width: max(110vw, 110dvh);
  height: max(110vw, 110dvh);
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22%237fe9c6%22%20fill-rule%3D%22evenodd%22%20d%3D%22M472.000%2C256.000%20L499.248%2C275.144%20L496.996%2C294.170%20L466.032%2C306.424%20L461.428%2C322.748%20L481.427%2C349.375%20L473.406%2C366.774%20L440.170%2C368.860%20L430.748%2C382.962%20L441.539%2C414.465%20L428.534%2C428.534%20L396.281%2C420.248%20L382.962%2C430.748%20L383.490%2C464.044%20L366.774%2C473.406%20L338.660%2C455.558%20L322.748%2C461.428%20L312.961%2C493.258%20L294.170%2C496.996%20L272.947%2C471.334%20L256.000%2C472.000%20L236.856%2C499.248%20L217.830%2C496.996%20L205.576%2C466.032%20L189.252%2C461.428%20L162.625%2C481.427%20L145.226%2C473.406%20L143.140%2C440.170%20L129.038%2C430.748%20L97.535%2C441.539%20L83.466%2C428.534%20L91.752%2C396.281%20L81.252%2C382.962%20L47.956%2C383.490%20L38.594%2C366.774%20L56.442%2C338.660%20L50.572%2C322.748%20L18.742%2C312.961%20L15.004%2C294.170%20L40.666%2C272.947%20L40.000%2C256.000%20L12.752%2C236.856%20L15.004%2C217.830%20L45.968%2C205.576%20L50.572%2C189.252%20L30.573%2C162.625%20L38.594%2C145.226%20L71.830%2C143.140%20L81.252%2C129.038%20L70.461%2C97.535%20L83.466%2C83.466%20L115.719%2C91.752%20L129.038%2C81.252%20L128.510%2C47.956%20L145.226%2C38.594%20L173.340%2C56.442%20L189.252%2C50.572%20L199.039%2C18.742%20L217.830%2C15.004%20L239.053%2C40.666%20L256.000%2C40.000%20L275.144%2C12.752%20L294.170%2C15.004%20L306.424%2C45.968%20L322.748%2C50.572%20L349.375%2C30.573%20L366.774%2C38.594%20L368.860%2C71.830%20L382.962%2C81.252%20L414.465%2C70.461%20L428.534%2C83.466%20L420.248%2C115.719%20L430.748%2C129.038%20L464.044%2C128.510%20L473.406%2C145.226%20L455.558%2C173.340%20L461.428%2C189.252%20L493.258%2C199.039%20L496.996%2C217.830%20L471.334%2C239.053%20Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  animation: user-background-gear-spin 185.185185s linear infinite;
}
@keyframes user-background-gear-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.user-gear-background::before { animation: none; transform: translate(-50%, -50%); }
}

.mobile-server-status { display: none; }
.history-pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:16px; }
@media (max-width:700px) { .mobile-server-status { display:flex; align-items:center; gap:8px; padding:10px 20px; font-size:12px; } }

#demo-mode:not(.active) { background: var(--surface); border-color: var(--border); }
#demo-mode:not(.active) .badge { background: transparent; color: var(--muted); border-color: var(--border); }
#demo-mode:not(.active) .status-dot { background: var(--muted); box-shadow: none; }

body.user-gear-background .strategy-choice.s-e8ad661a-350f-41bd-b24d-da7d2cd6b1b3 { --strategy: #ff657d; }
body.user-gear-background .strategy-name.s-e8ad661a-350f-41bd-b24d-da7d2cd6b1b3 { color: #ff657d; }


.bot-mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bot-mode-grid .mode { cursor: pointer; }
.bot-mode-grid .mode.locked { cursor: not-allowed; }
#simulation-mode:not(.active) { background: var(--surface); border-color: var(--border); }
#simulation-mode:not(.active) .status-dot { background: var(--muted); box-shadow: none; }
@media (max-width: 420px) { .bot-mode-grid { grid-template-columns: minmax(0, 1fr); } }

.simulation-money-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simulation-money-fields > .simulation-balance { grid-column: 1 / -1; }

dialog[data-trade-report] { width: min(1440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.admin-trade-report { min-width: 0; margin-bottom: 24px; }
.admin-trade-chart { position: relative; width: 100%; height: 55vh; height: 55dvh; min-height: 240px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-block: 12px; }
.admin-trade-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.admin-trade-report details { margin-block: 16px; }
.admin-trade-report .detail-list { margin-block: 16px; }

.tp-target-control { display: flex; align-items: stretch; min-width: 0; }
.tp-target-control > input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tp-target-arrows { display: grid; grid-template-rows: 1fr 1fr; width: 30px; flex: 0 0 30px; border: 1px solid #303a48; border-left: 0; border-radius: 0 7px 7px 0; overflow: hidden; }
.tp-target-arrows button { min-height: 0; padding: 0; border: 0; border-radius: 0; background: #1c2530; color: #c5d1df; font-size: 9px; line-height: 1; cursor: pointer; }
.tp-target-arrows button + button { border-top: 1px solid #303a48; }
.tp-target-arrows button:hover:not(:disabled) { background: #2b3b47; color: var(--accent); }
.tp-target-arrows button:disabled { cursor: default; opacity: .4; }

.tp-target-control > input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.tp-target-control > input[type="number"]::-webkit-inner-spin-button, .tp-target-control > input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.sidebar .server-status:has(+ .server-restart) { margin-bottom: 8px; }
.sidebar .server-restart { width: 100%; margin-bottom: 16px; padding: 12px; font-size: 11px; }
.mobile-server-restart { display: none; }
@media (max-width:700px) {
  .mobile-server-restart { display: block; align-self: stretch; margin: 0 20px 10px; padding: 11px; font-size: 12px; }
}

.reinvest-option { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.reinvest-option input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.admin-trades-table { table-layout: fixed; white-space: normal; }
.admin-trades-table th, .admin-trades-table td { padding: 14px 8px; overflow-wrap: anywhere; vertical-align: middle; }
.admin-trades-table th { line-height: 1.5; }
.admin-trades-table td { font-variant-numeric: tabular-nums; }
.admin-trades-table .text-link { margin-top: 0; }
.admin-trades-table [data-admin-trade] { max-width: 100%; min-height: 32px; padding: 6px 0; border: 0; background: transparent; text-align: left; white-space: normal; }
@media (max-width: 1100px) { .admin-trades-table { min-width: 1000px; } }

.notification-panels { display: grid; gap: 24px; min-width: 0; }
.notification-choice:disabled { cursor: not-allowed; opacity: .75; }
.notification-channel-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.notification-channel-icon svg { width: 24px; height: 24px; }
.notification-choice .sound-choice-status { color: var(--muted); }

.strategy-settings-panel .settings-fields > label:has([data-setting="INVERSION"]), .strategy-settings-panel .settings-fields > label:has([data-setting="DETAIL_EVENTS"]) { grid-column: 1 / -1; }

.bot-card { position: relative; }
.bot-card .card-top { isolation: auto; }
.bot-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bot-card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 11px; }
.bot-card-gears { z-index: 0; }
.bot-card-status > button { position: relative; z-index: 2; }
.bot-quick-menu { position: absolute; top: calc(100% - 12px); right: 21px; z-index: 3; display: grid; gap: 4px; width: 156px; max-width: calc(100% - 42px); padding: 6px; background: #1b232d; border: 1px solid #526c65; border-radius: 9px; box-shadow: 0 10px 24px #0006; }
.bot-quick-menu[hidden] { display: none; }
.bot-quick-menu button { border: 0; border-radius: 5px; background: transparent; color: var(--text); text-align: left; padding: 10px 12px; font-size: 13px; }
.bot-quick-menu button:hover:not(:disabled) { background: #2a3e3a; }
.bot-quick-menu [data-bot-quick-action="stop"] { color: #ffa5ad; }
