@font-face{font-family:Inter;src:url('fonts/inter-variable.ttf')}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#090909;color:#f5f5f5;font:14px/1.55 Inter,Arial,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit}#workspace{max-width:1040px;margin:auto;padding:30px 32px}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:24px;border-bottom:1px solid #292929}header img{width:118px;height:34px;object-fit:contain}header .market{font-size:10px;letter-spacing:1.8px;color:#999}.muted,small{color:#999}.kicker{font-size:10px;color:#999;letter-spacing:2px;text-transform:uppercase;margin:30px 0 10px}h1{font-weight:550;font-size:clamp(30px,5vw,46px);line-height:1.13;letter-spacing:-1.7px;margin:0 0 18px}h2{font-size:21px;letter-spacing:-.5px;font-weight:550;margin:0 0 12px}h3{font-size:14px;margin:0 0 10px}p{margin:10px 0}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:64px;padding:68px 0 36px;align-items:center}.hero p{max-width:400px;color:#aaa}.art{min-height:280px;border:1px solid #292929;border-radius:28px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#232323 0,#0c0c0c 68%)}.art img{width:110px;height:110px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:24px 0}.primary,.secondary,.text-button{border:0;border-radius:30px;padding:12px 20px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.primary{background:#f5f5f5;color:#111}.secondary{background:#1d1d1d;color:#ddd;border:1px solid #363636}.text-button{background:none;color:#999;padding:8px}.stages{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stage{padding:20px;border-top:1px solid #333}.stage span{color:#777;font-size:11px}.stage p{font-size:12px;color:#999}.auth{max-width:430px;margin:50px auto}.back{color:#aaa;border:0;background:transparent;padding:0;margin:0 0 26px}form{display:grid;gap:18px}label{font-size:12px;color:#bbb;display:grid;gap:8px}input,select{min-width:0;width:100%;border:1px solid #373737;background:#151515;color:#f5f5f5;padding:13px 14px;border-radius:10px;outline:none}input:focus-visible,select:focus-visible{border-color:#bbb;box-shadow:0 0 0 2px #ffffff12}button:focus-visible,a:focus-visible{outline:2px solid #aaa;outline-offset:3px}.otp{font-size:32px;letter-spacing:10px;text-align:center}.check{display:flex;align-items:start;gap:10px;line-height:1.65}.check input{width:17px;height:17px;margin:3px 0 0;accent-color:#eee;flex-shrink:0}.hint{font-size:12px;color:#999}.notice{padding:15px 18px;background:#131313;border:1px solid #303030;border-radius:12px;font-size:12px;color:#bbb}.error{color:#ff9999;font-size:13px;min-height:20px;white-space:pre-line}.dashboard-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:30px 0}.dashboard-head h1{font-size:32px;margin:4px 0 0}.account-email{overflow-wrap:anywhere;font-size:12px;color:#999}.tag{border:1px solid #393939;border-radius:20px;padding:5px 10px;font-size:11px;color:#bbb;white-space:nowrap}.tag.good{color:#9bd4b1;border-color:#375343}.tag.bad{color:#ffaaa2;border-color:#63433e}.grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.card{background:#101010;border:1px solid #292929;border-radius:18px;padding:24px}.card+.card{margin-top:18px}.card p{font-size:12px;color:#aaa}.card-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.card-title h2{font-size:18px;margin:0}.progress{height:4px;border-radius:6px;background:#303030;margin:18px 0}.progress i{display:block;height:100%;background:#ddd;border-radius:6px}.steps-list{list-style:none;padding:0;margin:0}.steps-list li{display:flex;align-items:center;gap:12px;padding:11px 0;color:#aaa;font-size:12px}.steps-list b{color:#f2f2f2;font-weight:500}.dot{border:1px solid #555;width:23px;height:23px;border-radius:100%;display:grid;place-items:center;font-size:10px}.done .dot{background:#ddd;color:#111}.connection-brand{width:100px;height:27px;object-fit:contain;object-position:left}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.metric small{display:block;font-size:11px;margin-bottom:6px}.metric b{font-size:27px;letter-spacing:-1px;font-weight:500}.negative{color:#ff9898}.positive{color:#9fd1b1}.rule{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-top:1px solid #282828}.rule b{font-size:12px;font-weight:500}.rule small{font-size:11px;display:block}.rule>span{text-align:right;font-size:12px;max-width:40%}.position,.journal-row{padding:14px 0;border-top:1px solid #292929}.position strong,.journal-row strong{font-size:13px}.position p,.journal-row p{margin:4px 0}.footer{border-top:1px solid #262626;color:#727272;font-size:11px;line-height:1.7;margin-top:32px;padding-top:20px}.connect-form{max-width:520px;margin:32px auto}.connect-form details{margin:22px 0;border:1px solid #333;border-radius:12px;padding:14px}.connect-form summary{cursor:pointer;font-size:13px}.connect-form ol{font-size:12px;color:#aaa;padding-left:20px}.connect-form li{margin:10px 0}.plan-frame{width:100%;height:calc(100vh - 155px);min-height:600px;border:1px solid #292929;border-radius:18px;margin-top:20px;background:#090909}.editor-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.close-confirm{border-color:#685740}.loading{padding:40px;color:#aaa}#global-error:empty{display:none}.refresh-bar{display:flex;gap:10px;align-items:center;font-size:11px;color:#888;margin:16px 0}form .primary{justify-self:start}.restricted{font-size:11px;color:#999;margin-top:20px}.full{grid-column:1/-1}.empty{color:#888;font-size:12px;padding:16px 0}details p{font-size:12px}@media(max-width:680px){#workspace{padding:20px 18px}.hero{grid-template-columns:1fr;gap:25px;padding:30px 0}.art{display:none}.grid{grid-template-columns:1fr}.stages{gap:6px}.stage{padding:14px 4px}.card{padding:20px}.dashboard-head{align-items:start}.dashboard-head h1{font-size:28px}.auth{margin:35px auto}.plan-frame{min-height:600px}.metric b{font-size:25px}header .market{font-size:9px}.tag{white-space:normal;text-align:center}.card-title{align-items:start}}@media(prefers-reduced-motion:no-preference){.auth,.dashboard-head,.card,.hero{animation:appear .3s ease both}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}
body[data-view="plan"] #workspace{height:100dvh;max-width:1040px;padding:12px 18px;display:flex;flex-direction:column}
body[data-view="plan"] #workspace>header,body[data-view="plan"] .footer{display:none}
body[data-view="plan"] .editor-bar{margin-top:0;flex:none;min-height:38px}
body[data-view="plan"] .editor-bar .secondary{padding:8px 14px}
body[data-view="plan"] .plan-frame{flex:1;height:auto;min-height:0;margin-top:12px}

.automation-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.automation-status b{font-size:13px}.journal-row p{overflow-wrap:anywhere}

.account-tools{display:flex;flex-wrap:wrap;gap:3px;justify-content:flex-end}.account-tools .text-button{font-size:11px;padding:7px 5px}
.dashboard-refresh .card,.dashboard-refresh .dashboard-head{animation:none}
@media(max-width:680px){.dashboard-head{flex-direction:column;align-items:stretch;gap:12px;margin:24px 0 20px}.dashboard-head>div:first-child{min-width:0}.dashboard-head .account-tools{align-self:flex-start;justify-content:flex-start;gap:12px}.dashboard-head .account-email{overflow-wrap:break-word}.dashboard-head .account-tools .text-button{padding-left:0}}
.setup-complete{padding:18px 20px}.setup-complete summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none}.setup-complete summary::-webkit-details-marker{display:none}.setup-complete summary>span:first-child{flex:1}.setup-complete summary b{font-size:14px;font-weight:550;display:block}.setup-complete summary small{display:block;font-size:11px;margin-top:3px}.setup-complete summary:after{content:'+';font-size:18px;color:#888}.setup-complete details[open]>summary:after{content:'−'}.setup-content{padding-top:14px;margin-top:16px;border-top:1px solid #292929}.setup-content .actions{margin:15px 0}.setup-complete summary:focus-visible{outline:1px solid #888;outline-offset:6px;border-radius:6px}.metric{min-width:0}.metric b{overflow-wrap:anywhere}
#global-error:not(:empty){position:sticky;top:12px;z-index:20;padding:14px 16px;border:1px solid #6a3c3c;border-radius:12px;background:#241718;box-shadow:0 6px 24px #0005;flex:none}
@media(min-width:361px) and (max-width:680px){
 .metrics{grid-template-columns:1fr;gap:13px}
 .metric{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .metric small{max-width:110px;margin:0;line-height:1.4}
 .metric b{font-size:24px;overflow-wrap:normal;flex-shrink:0}
}
@media(max-width:360px){
 #workspace{padding:18px 14px}
 header{display:grid;grid-template-columns:1fr auto;gap:8px;padding-bottom:16px}
 header>a{grid-column:1;grid-row:1}
 header .languageSwitch{grid-column:2;grid-row:1}
 header .market{grid-column:1/-1;grid-row:2;letter-spacing:1.5px}
 .dashboard-head{flex-direction:column;gap:8px;margin:24px 0 18px}
 .dashboard-head h1{font-size:28px}
 .account-tools{align-self:flex-end;gap:10px}
 .card{padding:17px}
 .metrics{grid-template-columns:1fr;gap:14px;margin:18px 0}
 .metric b{font-size:26px;line-height:1.15;overflow-wrap:normal}
 .card-title{gap:8px}.connection-brand{width:85px}
 .auth{margin:26px auto}.otp{font-size:28px;letter-spacing:7px}
}
h1[tabindex="-1"]:focus{outline:none}
.rule>div:first-child{flex:1;min-width:0}.rule-reading{margin-top:10px;max-width:230px}.rule-reading>span{font-size:12px;font-variant-numeric:tabular-nums;display:block}.rule-meter{height:3px;background:#2c2c2c;border-radius:4px;overflow:hidden;margin-top:6px}.rule-meter i{height:100%;display:block;background:#b0b0b0;border-radius:4px}.rule-meter.is-blocked i{background:#e49494}.rule-reading>small{margin-top:6px;font-size:10px;line-height:1.5;color:#baaaa7}
@media(max-width:420px){
 body[data-view="plan"] #workspace{padding:8px;}
 body[data-view="plan"] .editor-bar{gap:8px;min-height:32px;}
 body[data-view="plan"] .editor-bar b{font-size:11px;line-height:1.4;}
 body[data-view="plan"] .editor-bar .secondary{padding:7px 10px;font-size:11px;max-width:120px;flex-shrink:0;}
 body[data-view="plan"] .plan-frame{margin-top:8px;border-radius:12px;}
}
/* Account connections share the same drawer and never expose saved secrets. */
.exchange-page{max-width:760px;margin:0 auto;padding:20px 0 32px}
.exchange-page>.back{margin-bottom:12px}.exchange-page>.kicker{margin-top:14px}.exchange-heading .kicker{margin:0}
.exchange-page h1{font-size:clamp(28px,5vw,44px);line-height:1.08;letter-spacing:-.04em;margin:16px 0}
.exchange-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.exchange-tile{display:flex;align-items:center;gap:12px;padding:18px 14px;min-width:0;text-align:left;background:#111;border:1px solid #282828;border-radius:16px;color:#fafafa;transition:background .15s,border-color .15s}
.exchange-tile:hover{background:#1b1b1b;border-color:#777}
.exchange-tile>span:nth-child(2){min-width:0;flex:1}
.exchange-tile b{font-size:15px;display:block}.exchange-tile small{font-size:11px;line-height:1.5;color:#a6a6a6;display:block;margin-top:4px}
.exchange-logo{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#191919;padding:5px}
.exchange-logo img{max-width:100%;max-height:25px;object-fit:contain}.exchange-arrow{color:#aaa;font-size:14px}
.exchange-heading{display:flex;gap:14px;align-items:center;margin:20px 0}.exchange-heading h1{margin:6px 0}.exchange-heading .exchange-logo{width:52px;height:52px;flex-basis:52px}
.exchange-guide{display:inline-block;font-size:13px;margin:0 0 20px;text-underline-offset:4px;color:#ccc}
.exchange-market{border:0;padding:0;margin:0 0 18px;display:flex;gap:8px}.exchange-market legend{font-size:13px;color:#bbb;margin-bottom:9px}.exchange-market label{display:block;flex:1;margin:0!important;position:relative}.exchange-market input{position:absolute;opacity:0;width:1px;height:1px}.exchange-market span{display:block;text-align:center;border:1px solid #333;border-radius:10px;padding:11px;font-size:14px}.exchange-market input:checked+span{background:#eee;border-color:#eee;color:#111}.exchange-market input:focus-visible+span{box-shadow:0 0 0 2px #777}
#exchange-form textarea{width:100%;box-sizing:border-box;background:#141414;color:#eee;border:1px solid #333;border-radius:10px;padding:12px;font:12px/1.5 monospace;resize:vertical;margin-top:8px}#exchange-form input:focus-visible,#exchange-form textarea:focus-visible{outline:0;border-color:#888}
.exchange-balance{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #292929}.exchange-balance:last-child{border:0}.exchange-balance>div{text-align:right;min-width:0}.exchange-balance strong{font-size:20px;overflow-wrap:anywhere}.exchange-balance small{display:block;color:#aaa;font-size:12px;margin-top:5px}
.exchange-readtime{font-size:12px;color:#aaa;margin:20px 0}.exchange-position{padding:14px 0;border-bottom:1px solid #292929}.exchange-position:last-child{border:0}.exchange-page .notice{line-height:1.65}.exchange-page .actions{flex-wrap:wrap}.exchange-page .tag{white-space:normal;text-align:right}
.okx-config{margin:14px 0}.okx-config>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #292929}.okx-config>div:last-child{border:0}.okx-config dt{color:#aaa;font-size:13px}.okx-config dd{margin:0;text-align:right;font-size:13px;max-width:60%;overflow-wrap:anywhere}
@media(max-width:440px){.exchange-grid{gap:8px}.exchange-tile{padding:13px 10px;gap:8px}.exchange-tile .exchange-logo{width:26px;height:30px;flex-basis:26px;padding:2px}.exchange-tile b{font-size:13px}.exchange-tile small{font-size:10px}.exchange-arrow{display:none}.exchange-page{padding-top:8px}.exchange-heading h1{font-size:32px}.account-tools{flex-wrap:wrap;gap:8px}}
