:root{--ink:#16171c;--sub:#81828e;--line:#ededf0;--green:#24242a;--bg:#fff;color-scheme:light}*{box-sizing:border-box}body{background:#fff;color:#191a20;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}body>header.topbar{position:relative;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;justify-items:center;height:70px;min-height:70px;padding:0 25px;background:#fff;box-shadow:none;border-bottom:1px solid #f2f2f4;z-index:31;color:#191a20}.topTitle{font-size:19px;font-weight:750;letter-spacing:-.7px}.menuTrigger,.newTop{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:8px;border:0;background:transparent;color:#191a20;border-radius:10px}.menuTrigger{align-items:flex-start;justify-content:center;flex-direction:column;gap:5px}.menuTrigger span{display:block;width:21px;height:2px;background:currentColor;border-radius:2px}.menuTrigger span:first-child{width:12px}.newTop svg{width:26px;height:26px}.hiddenHooks{display:none}main{position:relative;isolation:isolate;min-height:0;overflow:hidden;height:calc(100dvh - 70px)}.chat{display:flex;width:100%;height:100%;min-width:0;background:#fff}.chatHeading{display:none}.conversation{width:100%;padding:28px max(24px,calc((100% - 820px)/2));background:#fff;scrollbar-color:#dedee4 transparent}.welcome{height:100%;min-height:350px;max-width:100%;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:clamp(65px,14vh,145px);text-align:center}.welcomeMark{display:block;width:112px;height:112px;margin:0 auto 34px;background:none;border:0;border-radius:50%}.welcome h2{font-size:30px;line-height:1.25;letter-spacing:-1px;font-weight:750;color:#17181d;margin:0}.turn{max-width:820px}.assistantLabel{color:#292b33;letter-spacing:.1px}.textBlock{color:#30343c}.userMessage{background:#f3f3f5;border-color:#e9e9ed;color:#28292f}.assistantLabel .assistantAvatar{border-radius:50%}#composer{width:min(100%,868px);margin:0 auto;padding:14px 24px 25px;background:#fff;border:0}.inputBox{min-height:102px;align-items:flex-start;padding:15px 17px;border:1px solid #e9e9ed;border-radius:24px;background:#fff;box-shadow:none;position:relative}.inputBox:focus-within{border-color:#cbcbd1;box-shadow:none}.inputBox textarea{font-size:16px!important;line-height:1.6;min-height:62px;padding:0 48px 0 0;color:#25262d}.inputBox button{position:absolute;right:13px;bottom:13px;width:42px;height:42px;border-radius:50%;background:#1d1e24;color:#fff;font-size:23px}.inputBox button:disabled{background:#f1f1f3;color:#c8c8ce}.composerFoot{margin-top:7px;padding:0 4px;color:#a5a5ad;font-size:10px}.historyPanel{position:absolute;display:flex;top:0;bottom:0;left:0;z-index:23;width:318px;max-width:min(88vw,318px);height:100%;max-height:none;padding:20px 16px 14px;background:#fff;border-right:1px solid #eeeeF1;box-shadow:12px 0 36px #1a1a2914;gap:0}.historyPanel.hide,.portfolio.hide,.trace.hide{display:none!important}.sidebarTop{display:flex;justify-content:space-between;align-items:center;padding:0 2px 18px}.sidebarTop>div{display:flex;align-items:center;gap:9px}.sidebarTop b{font-size:16px;letter-spacing:-.4px}.brandMark{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#18191f;color:#fff;font-weight:800}.sidebarTop button,.panelBack{border:0;background:transparent;color:#3e414a;font-size:26px;padding:0 6px}.accountPanel{margin:0 0 22px;padding:15px;background:#f7f7f9;border:1px solid #eeeef1;border-radius:15px;color:#24252c;box-shadow:none}.accountPanel .person{margin:0 0 14px;gap:9px;align-items:center}.accountPanel .avatar{width:32px;height:32px;border-radius:50%;background:#fff;border:1px solid #ececf0;color:#34363d}.accountPanel .person b{font-size:12px}.accountPanel .person small,.accountPanel .balance>span,.accountPanel .balance small,.accountPanel .metrics span{color:#858690}.accountPanel .balance strong{font-size:24px;letter-spacing:-.6px;margin:4px 0}.accountPanel .balance small{font-size:11px}.accountPanel .metrics{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e8e8ed;padding-top:10px;margin:11px 0 0;gap:8px}.accountPanel .metrics div:nth-child(n+3){display:none}.accountPanel .metrics b{font-size:11px;color:#2b2d35}.accountActions[hidden]{display:none!important}.historySection{display:flex;flex-direction:column;min-height:0;flex:1}.historyHeading{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;padding:0 2px}.historyHeading>b{font-size:13px;color:#2d2e35}.historyHeading button{border:0;background:#f5f5f7;border-radius:7px;font-size:19px}.historySection input{width:100%;height:35px;margin-bottom:8px;border:1px solid #eeeef1;background:#f8f8fa;border-radius:9px;padding:0 10px;font-size:12px}.historySection #historyList{flex:1;overflow:auto;min-height:0}.historyItem{background:transparent;border:0;border-radius:9px;padding:10px;text-align:left}.historyItem.selected{background:#f3f3f6}.sidebarNav{flex:0 0 auto;padding-top:9px;border-top:1px solid #ededf0;display:grid;gap:3px}.sidebarNav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;padding:11px 10px;color:#40414a;font-size:13px;border-radius:9px}.sidebarNav button:hover{background:#f4f4f7}.sidebarNav button span{font-size:18px;width:22px;color:#72737e}.sidebarNav button i{margin-left:auto;font-size:18px;font-style:normal;color:#a7a7ae}.portfolio,.trace{position:absolute;top:0;left:0;right:auto;bottom:0;z-index:25;width:318px;max-width:min(88vw,318px);height:100%;max-height:none;background:#fff;border-right:1px solid #ececf0;box-shadow:12px 0 36px #1a1a2918;overflow:auto}.portfolio{padding:20px 16px}.overlayHeading{display:flex;align-items:center;gap:12px;margin-bottom:22px;font-size:16px}.trace{padding:0}.traceHeading{display:flex;align-items:center;gap:12px;background:#fff;padding:20px 16px;border-bottom:1px solid #eee}.traceHeading .panelBack{flex:0 0 auto}.traceHeading small{letter-spacing:0}.traceSummary{background:#fafafa}.traceDetail{background:#fafafa}.mobileBackdrop:not(.hide){display:block;position:absolute;inset:0;z-index:20;border:0;border-radius:0;background:#18192355;padding:0}.sectionlabel{color:#70717d}.marketFilters input,.marketFilters select{background:#f8f8fa}.quote.active{background:#f5f5f7;border-color:#eee}.positive{color:#159378}.negative{color:#d95f59}
@media(max-width:650px){body>header.topbar{display:grid;grid-template-columns:46px 1fr 46px;min-height:64px;height:64px;padding:env(safe-area-inset-top) 14px 0;background:#fff;border-bottom:0;gap:0}.topTitle{font-size:18px}.menuTrigger,.newTop{width:40px;height:40px}.chat{height:100%}main{height:auto}.conversation{padding:14px 20px}.welcome{padding-top:clamp(60px,13vh,125px);min-height:250px}.welcomeMark{width:105px;height:105px;margin-bottom:35px}.welcome h2{font-size:25px}.historyPanel{top:0;bottom:0;left:0;height:100%;padding:18px 15px 12px}.portfolio,.trace{top:0;bottom:0;left:0;right:auto;height:100%}.trace{padding:0}#composer{padding:8px 20px calc(14px + env(safe-area-inset-bottom));background:#fff;border:0}.inputBox{min-height:108px;padding:16px;border-radius:23px}.inputBox textarea{font-size:16px!important;min-height:62px;padding:0 46px 0 0}.inputBox button{width:41px;height:41px;right:12px;bottom:11px;margin:0;border-radius:50%}.composerFoot{margin-top:6px}.turn{margin-bottom:25px}.userMessage{margin-bottom:7px}.assistantLabel{margin:20px 0 11px}.historySection input{font-size:14px!important}body.keyboard-open .chatHeading{display:none}body.keyboard-open #composer{padding-bottom:8px}}
/* The account button lives in the sidebar rather than the old mobile header grid. */
#authToggle{grid-column:auto;grid-row:auto;min-height:0;background:transparent;border:0;border-radius:9px;color:#40414a;white-space:normal;font-size:13px;padding:11px 10px}
#authToggle:hover{background:#f4f4f7}
/* Desktop: history and account stay in the layout, beside the conversation. */
@media(min-width:901px){
 body>header.topbar{grid-template-columns:318px minmax(0,1fr) 70px;padding:0;min-height:70px}
 .menuTrigger{width:100%;height:100%;padding:0 23px;align-items:center;flex-direction:row;justify-content:flex-start;gap:0;border-radius:0;border-right:1px solid #ececf0;background:#f8f8fa;cursor:default}
 .menuTrigger span{display:none}.menuTrigger::after{content:'Vantage AI';font-size:17px;font-weight:750;letter-spacing:-.55px}.menuTrigger:hover{background:#f8f8fa}
 .topTitle{font-size:18px}.newTop{justify-self:center}
 main{display:flex;align-items:stretch}
 .historyPanel,.historyPanel.hide{position:relative;inset:auto;display:flex!important;flex:0 0 318px;width:318px;max-width:318px;height:100%;padding:19px 16px 14px;background:#f8f8fa;box-shadow:none;border-right:1px solid #ececf0}
 .sidebarTop{display:none}.accountPanel{background:#fff;margin-bottom:22px}.historySection input{background:#fff}.sidebarNav{border-top-color:#e7e7eb}.sidebarNav button:hover,.historyItem.selected{background:#ebebef}
 .chat{flex:1 1 0;width:auto;min-width:0}
 .conversation{padding:32px max(32px,calc((100% - 1060px)/2))}.turn{width:100%;max-width:1060px;margin-left:auto;margin-right:auto}.textBlock{font-size:15px}
 #composer{width:min(100%,1124px);padding-left:32px;padding-right:32px}.inputBox{min-height:110px}
 .portfolio,.trace{left:0;top:0;width:318px;max-width:318px;box-shadow:none;border-right:1px solid #ececf0;z-index:24}
 .mobileBackdrop,.mobileBackdrop:not(.hide){display:none!important}
}
/* Toolbox is a composer shortcut, outside the conversation flow. */
#composer .inputBox{min-height:132px;padding-bottom:55px}
#composer .inputBox textarea{min-height:60px}
#composer .toolboxTrigger{position:absolute;left:15px;bottom:13px;width:auto;height:35px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;border:1px solid #e9e9ee;border-radius:11px;background:#f7f7f9;color:#343640;font-size:12px;font-weight:600;letter-spacing:.1px;box-shadow:none}
#composer .toolboxTrigger:hover{background:#f0f0f4;border-color:#ddddE5}#composer .toolboxTrigger svg{width:17px;height:17px;flex:none}
#toolboxDialog{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 40px));max-width:none;max-height:min(760px,calc(100dvh - 60px));padding:0;border:1px solid #efeff3;border-radius:23px;background:#fff;color:#20212a;box-shadow:0 24px 90px #19192c2b;overflow:hidden}
#toolboxDialog::backdrop{background:rgba(23,24,33,.38);backdrop-filter:blur(3px)}
.toolboxHandle{display:none}.toolboxHeader{display:flex;justify-content:space-between;align-items:flex-start;padding:25px 27px 19px;border-bottom:1px solid #f1f1f4}.toolboxEyebrow{font-size:9px;letter-spacing:1.4px;font-weight:750;color:#9a98a7}.toolboxHeader h2{margin:7px 0 5px;font-size:23px;letter-spacing:-.6px;line-height:1.25}.toolboxHeader h2 span{font-size:15px;color:#8a65e9}.toolboxHeader p{margin:0;color:#92929e;font-size:12px}.toolboxHeader>button{width:34px;height:34px;padding:0;border:0;background:#f6f6f8;border-radius:50%;font-size:22px;color:#737580;line-height:1}
.toolboxContent{max-height:calc(min(760px, 100dvh - 60px) - 106px);overflow-y:auto;overscroll-behavior:contain;padding:19px 27px 27px;scrollbar-width:thin}.toolboxSection+.toolboxSection{margin-top:23px}.toolboxSection h3{font-size:12px;color:#8b8c97;letter-spacing:.4px;margin:0 0 10px;font-weight:650}.toolboxGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.toolboxTile{min-width:0;display:flex;align-items:center;gap:10px;padding:13px 12px;text-align:left;background:#f8f8fa;border:1px solid #f3f3f6;border-radius:13px;color:#24262e;transition:border-color .18s,background .18s}.toolboxTile:hover,.toolboxTile.selected{background:#f7f5ff;border-color:#ded6f9}.toolboxTile>span:nth-child(2){min-width:0;flex:1}.toolboxTile b,.toolboxTile small{display:block}.toolboxTile b{font-size:13px;font-weight:700}.toolboxTile small{color:#9899a4;font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolboxTile i{align-self:flex-start;font-style:normal;font-size:14px;color:#b1b2bc}.toolboxIcon{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;font-size:18px;font-weight:650}.tint-purple{background:#efeafd;color:#7450ce}.tint-orange{background:#fff0df;color:#d89344}.tint-blue{background:#e7f1ff;color:#5780c2}.tint-green{background:#e3f5ef;color:#3f9d80}.tint-rose{background:#fff0ef;color:#cb726f}
.toolboxDetail{margin-top:10px;padding:15px;border:1px solid #ebe8f5;border-radius:14px;background:linear-gradient(145deg,#fcfbff,#fafafe)}.toolboxDetail[hidden]{display:none}.detailHead b{display:block;font-size:13px;color:#30303b}.detailHead p{margin:5px 0 0;color:#95939e;font-size:11px;line-height:1.5}.instrumentSearch{display:flex;align-items:center;gap:7px;height:36px;margin-top:12px;padding:0 10px;border:1px solid #e9e8ef;border-radius:9px;background:#fff;color:#9a99a6}.instrumentSearch span{font-size:18px}.instrumentSearch input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:12px;color:#34343c}.instrumentRail,.strategyRail{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;padding:10px 0 4px;scrollbar-width:thin;scrollbar-color:#dddde5 transparent}.instrumentChip,.strategyChip{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #ededf1;border-radius:999px;background:#fff;color:#454651;font-size:11px}.instrumentChip:hover,.strategyChip:hover,.instrumentChip.selected,.strategyChip.selected{background:#f3efff;border-color:#b9a5ed;color:#5f45a5}.instrumentChip small{font-size:9px;color:#a0a0ab}.instrumentIcon{position:relative;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#efeff3;color:#8d8e98;font-size:10px;overflow:hidden}.instrumentIcon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}.toolboxEmpty{font-size:11px;color:#a6a5af;padding:5px}.strategyHeading{margin-top:11px;color:#777682;font-size:11px;font-weight:650}.strategyRail{padding-top:8px}.strategyChip{padding:7px 11px}.detailFooter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;color:#a0a0ab;font-size:10px}.toolboxConfirm{flex:none;border:0;border-radius:9px;background:#22232b;color:#fff;font-size:11px;font-weight:650;padding:9px 12px}.toolboxConfirm:hover{background:#3a3a45}.toolboxConfirm:disabled{background:#eaeaf0;color:#aeafb9;cursor:not-allowed}.toolboxConfirm span{margin-left:6px}
@media(max-width:650px){#composer .inputBox{min-height:132px;padding-bottom:54px}#composer .toolboxTrigger{height:34px;left:13px;bottom:12px;font-size:12px}#toolboxDialog{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:min(86dvh,760px);border-radius:22px 22px 0 0;border-bottom:0}.toolboxHandle{display:block;width:38px;height:4px;margin:9px auto 0;background:#e0e0e6;border-radius:9px}.toolboxHeader{padding:16px 19px 16px}.toolboxHeader h2{font-size:21px}.toolboxHeader p{font-size:11px}.toolboxContent{max-height:calc(min(86dvh, 760px) - 105px);padding:16px 17px calc(20px + env(safe-area-inset-bottom))}.toolboxSection+.toolboxSection{margin-top:19px}.toolboxTile{padding:11px 9px;gap:8px}.toolboxIcon{width:31px;height:31px;font-size:16px}.toolboxTile b{font-size:12px}.toolboxTile small{font-size:10px}.toolboxTile i{font-size:12px}.instrumentSearch input{font-size:16px!important}}

/* Keep the toolbox shortcut compact beside the send control. */
#composer .toolboxTrigger{right:auto;width:36px;height:36px;padding:0;justify-content:center}
#composer .toolboxTrigger span{display:none}
#composer .toolboxTrigger:disabled{background:#f7f7f9;color:#bdbdc5;opacity:.6;cursor:wait}
@media(max-width:650px){#composer .toolboxTrigger{right:auto;width:36px;height:36px;padding:0}}
/* The composer shortcut keeps both its icon and label without stretching. */
#composer .toolboxTrigger{right:auto;width:max-content;height:36px;padding:0 11px;justify-content:center}
#composer .toolboxTrigger span{display:inline}
@media(max-width:650px){#composer .toolboxTrigger{right:auto;width:max-content;height:36px;padding:0 11px}}
/* Empty-state shortcuts reuse the same toolbox actions as the dialog. */
.welcomeToolbox{width:min(100%,720px);margin:38px auto 0;text-align:left}
.welcomeToolboxHeader{display:flex;align-items:center;gap:10px;margin:0 0 13px}
.welcomeSpark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f0ebff;color:#8663e7;font-size:16px;flex-shrink:0}
.welcomeToolboxHeader b{display:block;color:#292a32;font-size:13px;font-weight:700;line-height:1.3}
.welcomeToolboxHeader p{margin:3px 0 0;color:#a3a3ae;font-size:11px;line-height:1.4}
.welcomeTools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.welcomeTool{min-width:0;display:flex;align-items:center;gap:9px;text-align:left;padding:12px;background:#f9f9fb;border:1px solid #f0f0f3;border-radius:12px;color:#292a32;transition:background .18s,border-color .18s,transform .18s}
.welcomeTool:hover{background:#f7f5ff;border-color:#e2daf8;transform:translateY(-1px)}
.welcomeToolIcon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;font-size:17px;font-weight:650}
.welcomeTool>span:nth-child(2){min-width:0;flex:1}.welcomeTool b,.welcomeTool small{display:block}.welcomeTool b{font-size:12px;font-weight:700;line-height:1.35}.welcomeTool small{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a1a1aa;font-size:10px}.welcomeTool i{align-self:flex-start;color:#b4b5bd;font-size:12px;font-style:normal}
@media(min-width:901px){.welcome{padding-top:clamp(42px,8vh,85px)}.welcomeMark{width:96px;height:96px;margin-bottom:25px}.welcomeToolbox{margin-top:34px}}
@media(max-width:650px){.welcome{padding-top:clamp(22px,5vh,42px);min-height:0;height:auto}.welcomeMark{width:82px;height:82px;margin-bottom:21px}.welcome h2{font-size:23px}.welcomeToolbox{margin:26px auto 10px}.welcomeToolboxHeader{margin-bottom:10px}.welcomeSpark{width:29px;height:29px;border-radius:9px}.welcomeToolboxHeader b{font-size:12px}.welcomeToolboxHeader p{font-size:10px}.welcomeTools{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.welcomeTool{padding:9px;gap:7px;border-radius:11px}.welcomeToolIcon{width:29px;height:29px;font-size:15px}.welcomeTool b{font-size:11px}.welcomeTool small{font-size:9px;margin-top:3px}.welcomeTool i{font-size:11px}}
/* Group the empty-state shortcuts in one aligned toolbox surface. */
.welcomeToolbox{width:min(100%,720px);padding:18px 20px 19px;background:#fff;border:1px solid #e8e8ee;border-radius:17px;box-shadow:0 5px 22px #24243b0a}
.welcomeToolboxHeader{padding-bottom:13px;margin:0 0 13px;border-bottom:1px solid #f0f0f3}
.welcomeToolboxHeader b{font-size:15px}.welcomeToolboxHeader p{font-size:11px}
.welcomeToolSection+.welcomeToolSection{margin-top:15px}
.welcomeToolSection h3{margin:0 0 8px;color:#90909b;font-size:11px;line-height:1.3;font-weight:650}
.welcomeTools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.welcomeTool{padding:10px}
@media(min-width:901px){.welcome{padding-top:clamp(22px,5vh,48px)}.welcomeMark{width:82px;height:82px;margin-bottom:18px}.welcome h2{font-size:27px}.welcomeToolbox{margin-top:22px}}
@media(max-width:650px){.welcome{padding-top:clamp(12px,3vh,26px)}.welcomeMark{width:74px;height:74px;margin-bottom:16px}.welcome h2{font-size:22px}.welcomeToolbox{margin:20px auto 12px;padding:14px;border-radius:15px}.welcomeToolboxHeader{padding-bottom:10px;margin-bottom:11px}.welcomeToolboxHeader b{font-size:14px}.welcomeToolboxHeader p{font-size:10px}.welcomeToolSection+.welcomeToolSection{margin-top:11px}.welcomeToolSection h3{font-size:10px;margin-bottom:6px}.welcomeTools{gap:6px}.welcomeTool{padding:8px}.welcomeToolIcon{width:28px;height:28px}}
@media(min-width:901px){
 .welcomeToolbox{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;align-items:start}
 .welcomeToolboxHeader{grid-column:1/-1}
 .welcomeToolSection+.welcomeToolSection{margin-top:0}
 .welcomeToolSection .welcomeTools{grid-template-columns:minmax(0,1fr)}
}
.customStrategy{display:block;margin-top:12px;color:#777682;font-size:11px;font-weight:650}.customStrategy span{display:block;margin-bottom:7px}.customStrategy textarea{display:block;width:100%;min-height:76px;resize:vertical;padding:10px 11px;border:1px solid #e9e8ef;border-radius:9px;background:#fff;color:#34343c;font:400 12px/1.5 inherit;outline:none}.customStrategy textarea:focus{border-color:#b9a5ed;box-shadow:0 0 0 3px #eee9ff}.customStrategy textarea::placeholder{color:#b2b0bc}@media(max-width:650px){.customStrategy textarea{font-size:16px}}
/* Drafted guidance stays outside the conversation until it is applied. */
.guideDraft[hidden],#pauseRun[hidden]{display:none!important}.guideDraft{display:flex;align-items:center;gap:10px;margin:0 2px 9px;padding:9px 11px;border:1px solid #e5e1f0;border-radius:13px;background:#faf9ff;box-shadow:0 3px 14px #24213a08}.guideDraftIcon{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:8px;background:#ede8ff;color:#7659c8;font-size:15px}.guideDraftText{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#555362;font-size:12px}.guideAction{flex:none;padding:6px 12px;border:0;border-radius:8px;background:#26242d;color:#fff;font-size:12px;font-weight:600}.guideAction:disabled{opacity:.4}.guideCancel{flex:none;width:25px;height:25px;padding:0;border:0;background:transparent;color:#91909c;font-size:20px}#composer #pauseRun{position:absolute;right:63px;bottom:13px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #e9e9ef;border-radius:50%;background:#f7f7fa;color:#42434c;font-size:14px}#composer #pauseRun.waiting .pauseGlyph{display:block;width:16px;height:16px;border:2px solid #d4ccea;border-top-color:#7056ba;border-radius:50%;font-size:0;animation:spin .9s linear infinite}#composer #pauseRun:disabled:not(.waiting){opacity:.5}.guidedTag{margin-left:7px;color:#8f80c1}.pendingGuideTurn .userTime{color:#9c94aa}@media(max-width:650px){#composer #pauseRun{right:61px;bottom:11px;width:41px;height:41px}.guideDraft{margin-bottom:8px}}
.accountPanel #accountFunds[hidden]{display:none!important}.accountPanel .person .accountPersonInfo{flex:1;min-width:0}.accountPanel .accountPersonInfo b,.accountPanel .accountPersonInfo small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accountPanel .person .accountAuth{flex:none;margin-left:auto;padding:6px 11px;border:1px solid #dedee6;border-radius:8px;background:#fff;color:#555560;font-size:11px;font-weight:600}.accountPanel .person .accountAuth:hover{background:#f3f2f7;border-color:#cac7d6}.accountPanel:has(#accountFunds[hidden]) .person{margin-bottom:0}
#composer .attachmentAdd[hidden],.attachmentMenu[hidden],.attachmentPreview[hidden]{display:none!important}#composer .attachmentAdd{left:104px;right:auto;bottom:13px;width:36px;height:36px;padding:0;border:1px solid #e9e9ee;border-radius:11px;background:#f7f7f9;color:#42424d;font-size:21px;line-height:1}#composer .attachmentAdd:hover{background:#f0f0f4}.attachmentMenu{display:flex;gap:12px;padding:14px 5px 2px;animation:attachmentEnter .18s ease-out}.attachmentMenu button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:62px;padding:5px 8px;border:0;border-radius:12px;background:transparent;color:#737380;font-size:11px}.attachmentMenu button:hover{background:#f6f5fa}.attachmentMenu button span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f1eff8;color:#705eb7;font-size:21px}.attachmentPreview{display:flex;flex-wrap:wrap;gap:7px;width:100%;margin-bottom:9px}.inputBox:has(.attachmentPreview:not([hidden])){flex-wrap:wrap}.attachmentChip{display:flex;align-items:center;gap:6px;max-width:185px;padding:5px 6px;border:1px solid #e9e8ee;border-radius:9px;background:#fafafd;color:#555561;font-size:11px}.attachmentChip img,.attachmentChipIcon{width:27px;height:27px;flex:none;object-fit:cover;border-radius:5px}.attachmentChipIcon{display:grid;place-items:center;background:#eeeaf9;color:#7863b2}.attachmentChip>span:not(.attachmentChipIcon){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.inputBox .attachmentChip button{position:static;width:19px;height:19px;flex:none;padding:0;border:0;border-radius:50%;background:#e9e9ee;color:#757582;font-size:14px}.attachmentUploading{align-self:center;color:#91919f;font-size:11px}.attachmentUploading i,.messageImage.loading:before{display:inline-block;width:12px;height:12px;border:2px solid #dad5e8;border-top-color:#8568ca;border-radius:50%;animation:spin .8s linear infinite}.messageAttachments{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:7px}.messageAttachments:last-child{margin-bottom:0}.messageImage{position:relative;display:grid;place-items:center;width:128px;height:96px;border-radius:10px;overflow:hidden;background:#e9e9ee}.messageImage.loading:before{content:'';position:absolute}.messageImage.failed:after{content:'图片加载失败';color:#9898a5;font-size:10px}.messageImage img{width:100%;height:100%;object-fit:cover}.messageFile{display:flex;align-items:center;gap:9px;width:min(250px,100%);padding:9px;border:1px solid #dedfe7;border-radius:10px;background:#fff}.messageFileIcon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edeaf9;color:#745bb9}.messageFile b,.messageFile small{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messageFile b{font-size:11px}.messageFile small{font-size:10px;color:#9698a4;margin-top:3px}@keyframes attachmentEnter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:651px){#composer{position:relative}.attachmentMenu{position:absolute;z-index:35;left:136px;bottom:calc(100% - 5px);padding:10px;gap:4px;background:#fff;border:1px solid #e8e7ed;border-radius:15px;box-shadow:0 12px 38px #19192b20}.attachmentMenu [data-attachment-pick="camera"]{display:none}.attachmentMenu button{min-width:68px;padding:7px 10px}.attachmentMenu button span{width:38px;height:38px}}
/* Show each image in full; its natural proportions determine the thumbnail. */
.messageImage{width:fit-content;height:auto;min-width:100px;min-height:72px;max-width:min(260px,100%);max-height:320px;padding:0;border:0;cursor:zoom-in;line-height:0}.messageImage img{display:block;width:auto;height:auto;max-width:100%;max-height:320px;object-fit:contain}.messageImage img[hidden]{display:none}.imageViewer{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;background:#17181cf5;color:white;overflow:hidden}.imageViewer::backdrop{background:#111d}.imageViewerBar{position:absolute;inset:0 0 auto;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(14px,env(safe-area-inset-top)) 20px 14px;background:linear-gradient(#16171cdc,transparent)}.imageViewerBar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eeedf4;font-size:13px}.imageViewerBar>div{display:flex;gap:8px;flex:none}.imageViewerBar button{height:36px;padding:0 14px;border:1px solid #ffffff35;border-radius:10px;background:#ffffff18;color:white;font-size:13px}.imageViewerBar #imageViewerClose{width:36px;padding:0;font-size:24px;line-height:1}.imageViewerCanvas{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:68px 16px 20px;overflow:auto;overscroll-behavior:contain}.imageViewerCanvas img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}.imageViewerCanvas img.zoomed{max-width:none;max-height:none;cursor:zoom-out}.imageViewerCanvas:has(img.zoomed){display:block}.imageViewerCanvas img.zoomed{margin:auto}@media(max-width:650px){.messageImage{max-width:min(220px,100%);max-height:300px}.messageImage img{max-height:300px}.imageViewerBar{padding-left:15px;padding-right:15px}.imageViewerCanvas{padding:64px 8px max(16px,env(safe-area-inset-bottom))}}
.sourceCitation{display:inline-block;margin:0 2px;color:#3973b7!important;font-size:.78em;font-weight:600;text-decoration:none;vertical-align:super;line-height:1}
.citationList{margin:12px 0 16px;font-size:12px;color:#657889}
.citationList summary{display:flex;align-items:center;gap:4px;cursor:pointer;width:max-content;color:#49749a;font-weight:600;line-height:1.4;list-style:none}
.citationList summary::-webkit-details-marker{display:none}
.citationChevron{display:block;width:12px;height:12px;flex:none}
.citationList[open] .citationChevron{transform:rotate(180deg)}
.citationList>div{display:grid;gap:6px;margin-top:9px}
.citationList a{display:flex;gap:8px;align-items:flex-start;padding:9px 11px;border:1px solid #e5eaf0;border-radius:9px;background:#f8fafc;color:#344a5b;text-decoration:none}
.citationList a>span:first-child{color:#3973b7;font-weight:600}
.citationList a b{display:block;font-weight:600;line-height:1.45}
.citationList a small{display:block;color:#82919f;margin-top:3px}
.labNew{display:inline-block;margin-left:3px;padding:2px 5px;border-radius:5px;background:#eee8ff;color:#8a61df;font-style:normal;font-size:9px;line-height:1.2;vertical-align:middle}
#strategyLabDialog{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 40px));max-width:none;max-height:min(800px,calc(100dvh - 60px));padding:0;border:1px solid #efeff3;border-radius:23px;background:#fff;color:#20212a;box-shadow:0 24px 90px #19192c2b;overflow:hidden}
#strategyLabDialog::backdrop{background:rgba(23,24,33,.38);backdrop-filter:blur(3px)}
.strategyLabContent{max-height:calc(min(800px,100dvh - 60px) - 106px);overflow-y:auto;overscroll-behavior:contain;padding:20px 27px 28px}
.strategyLabContent h3,.labInputLabel{display:block;margin:0 0 12px;font-size:13px;font-weight:700;color:#373642}.strategyLabContent h3 span{color:#9872e9}
.labExamples{display:grid;gap:9px;margin-bottom:22px}.labExample{display:flex;align-items:center;text-align:left;gap:11px;width:100%;border:1px solid #eeeef4;background:#f8f8fa;border-radius:12px;padding:11px 13px;color:#2a2a34}.labExample:hover,.labExample.selected{border-color:#c6b8ee;background:#f8f5ff}.labExampleIcon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#f0eafa;font-size:16px;flex:none}.labExample b{display:block;font-size:13px}.labExample small{display:block;color:#9695a1;font-size:11px;margin-top:4px}.labExample i{font-style:normal;color:#aaa9b3;margin-left:auto}
#strategyLabInput{width:100%;min-height:92px;padding:12px 14px;border:1px solid #e6e5ec;border-radius:13px;resize:vertical;font:inherit;font-size:14px;line-height:1.6;outline:none}#strategyLabInput:focus{border-color:#ae99ed}.labPrimary{width:100%;margin-top:12px;padding:13px;border:0;border-radius:12px;background:#1c1d25;color:white;font-weight:700}.labPrimary span{margin-left:6px}.labHint{font-size:11px;color:#9a99a5;line-height:1.6;margin:9px 0 0}
.labCard{margin-top:20px;border:1px solid #dfd9f3;border-radius:15px;overflow:hidden}.labCard[hidden]{display:none}.labCardHead{display:flex;justify-content:space-between;align-items:center;background:#f6f4fd;padding:14px 16px;font-size:13px;font-weight:700}.labCardBadge{color:#876bd0;font-size:11px}.labCardBody{padding:15px 16px}.labRule{border-radius:10px;background:#f7f7fa;padding:12px;font-size:12px;line-height:1.6}.labRule p{margin:6px 0 0}.labCardRow{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:12px}.labCardRow span{color:#9594a0}.labCardRow b{text-align:right;color:#343440}
@media(max-width:650px){#strategyLabDialog{inset:auto 0 0;margin:0;width:100%;max-height:min(90dvh,800px);border-radius:22px 22px 0 0;border-bottom:0}.strategyLabContent{max-height:calc(min(90dvh,800px) - 100px);padding:18px 20px calc(24px + env(safe-area-inset-bottom))}#strategyLabInput{font-size:16px}}
.labPrimary:disabled{background:#d9d9e0;color:#9696a1;cursor:not-allowed}
.labExampleDetail{border:1px solid #eeeaf8;border-radius:0 0 13px 13px;padding:14px;background:#fcfbff;margin-top:-9px}.labExampleDetail p{color:#626270;font-size:12px;line-height:1.65;margin:0 0 13px}.labFlow{display:grid;gap:11px}.labFlow>div{display:flex;align-items:flex-start;gap:9px}.labFlow i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#eee8ff;color:#8867df;font-size:11px;font-style:normal;flex:none}.labFlow b,.labFlow small{display:block}.labFlow b{font-size:12px;color:#33333e}.labFlow small{font-size:10px;color:#9998a4;margin-top:2px}.labStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.labStats>div{background:#f7f8fa;border:1px solid #eeeff3;border-radius:9px;padding:9px 8px}.labStats small{display:block;color:#9296a3;font-size:10px;margin-bottom:5px}.labStats b{font-size:12px;overflow-wrap:anywhere}.labChartTitle{font-size:12px;font-weight:700;color:#344452;margin:17px 0 0}.labChartTitle small{font-size:10px;font-weight:400;color:#96a1ae}.labEquityChart,.labPriceChart{height:170px;width:100%}.labTrialStatus{margin-top:12px;background:#f2f8f5;border-radius:9px;color:#35876c;font-size:12px;padding:12px}.labPrimary:disabled{background:#d9d9e0;color:#9696a1;cursor:not-allowed}@media(max-width:450px){.labStats{grid-template-columns:repeat(2,minmax(0,1fr))}.labEquityChart,.labPriceChart{height:155px}}
/* Let touch scrolling pass through the static strategy charts. */
@media (pointer:coarse),(max-width:650px){.labEquityChart,.labPriceChart{pointer-events:none;touch-action:pan-y}}
.labCustom[hidden]{display:none}.labCustom{padding-top:4px}.labJourney{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:15px 0 18px}.labJourney span{display:flex;align-items:center;gap:5px;min-width:0;padding:8px 7px;border-radius:9px;background:#f7f7fa;color:#9999a5;font-size:10px;line-height:1.4}.labJourney i{display:grid;place-items:center;flex:none;width:17px;height:17px;border-radius:50%;background:#ebebf0;color:#9a9aa6;font-size:9px;font-style:normal}.labJourney span.current{background:#f0ecff;color:#7159c8}.labJourney span.current i{background:#8065de;color:#fff}.labJourney span.done{color:#4d8a75}.labJourney span.done i{background:#e3f3ec;color:#4d8a75}@media(max-width:520px){.labJourney{grid-template-columns:repeat(2,minmax(0,1fr))}.labJourney span{font-size:11px;padding:8px}}

/* backtest toolbox: preview of the chosen preset strategy */
.strategyPreview{margin-top:12px;padding:14px;border:1px solid var(--v-accent-line,#d9d1fa);border-radius:16px;background:linear-gradient(180deg,#faf9ff,#fff)}
.strategyPreview.fresh{animation:spIn .28s cubic-bezier(.2,.7,.2,1) both}
.spHead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.spHead b{font-size:15px;color:var(--v-ink,#1b1a24)}
.spHead em{font-style:normal;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#efebff;color:var(--v-accent,#6a55d8)}
.strategyPreview p{margin:8px 0 0;font-size:13.5px;line-height:1.55;color:var(--v-sub,#5d6477)}
.spRows{display:grid;gap:6px;margin-top:10px}
.spRows>div{display:flex;gap:10px;align-items:baseline;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--v-line,#ecebf2)}
.spRows span{flex:none;min-width:3.6em;font-size:12.5px;font-weight:650;color:var(--v-accent,#6a55d8)}
.spRows b{font-size:13px;font-weight:500;line-height:1.45;color:var(--v-ink,#1b1a24)}
.strategyPreview small{display:block;margin-top:10px;font-size:12px;color:var(--v-sub,#86849a)}
@keyframes spIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.strategyPreview.fresh{animation:none}}
