[hidden]{display:none!important}
.app-tabs{max-width:1480px;display:flex;gap:6px;margin:12px auto 0;padding:0 28px;border-bottom:1px solid #1d2936}
.app-tab{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border:0;border-radius:8px 8px 0 0;background:transparent;color:#8392a5;font-size:11px;font-weight:650;cursor:pointer;transition:background .15s,color .15s}
.app-tab:hover{background:#182332;color:#dce6f1}
.app-tab.active{background:#142133;color:#a8c5fa}
.app-tab.active:after{position:absolute;right:10px;bottom:-1px;left:10px;height:2px;border-radius:2px 2px 0 0;background:#71a5fa;content:""}
.app-tab-icon{font-size:16px;line-height:1;color:currentColor}
.extra-page{max-width:1480px;min-height:calc(100vh - 165px);margin:0 auto;padding:28px;}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.page-heading h1{margin:7px 0 5px;font-size:28px;letter-spacing:-.8px}
.page-heading p{margin:0;color:var(--muted);font-size:12px}
.journal-panel{padding:22px;min-height:310px}
.journal-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line-soft)}
.journal-head h2{margin:5px 0 0;font-size:17px}
.journal-count{padding:6px 9px;border:1px solid #2a3949;border-radius:99px;color:#94a3b5;font:10px var(--mono)}
.journal-entries{display:grid}
.journal-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center}
.journal-empty>span{font-size:25px;color:#80aaff}
.journal-empty>b{color:var(--text);font-size:13px}
.journal-empty>p{max-width:340px;margin:0 0 7px;font-size:11px}
.journal-entry{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(130px,.8fr) minmax(110px,.6fr);align-items:center;gap:14px;padding:16px 3px;border-bottom:1px solid var(--line-soft)}
.journal-entry:last-child{border-bottom:0}
.journal-market{font-size:12px;font-weight:700}
.journal-meta{margin-top:4px;color:var(--muted);font-size:10px}
.journal-side{display:inline-flex;align-items:center;gap:6px;color:#aab8c7;font-size:10px}
.journal-side:before{width:7px;height:7px;border-radius:50%;background:#72a5f8;content:""}
.journal-result{text-align:right;font:500 13px var(--mono)}
.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.insight-card{min-height:142px;padding:19px}
.insight-card>span{display:block;color:var(--muted);font-size:10px}
.insight-card>strong{display:block;margin:13px 0 6px;font:500 25px var(--mono);letter-spacing:-.7px}
.insight-card>small{color:#75869b;font-size:9px}
.insight-note{margin-top:14px;padding:22px}
.insight-note h2{margin:7px 0;font-size:16px}
.insight-note p{max-width:650px;color:var(--muted);font-size:11px}
.learn-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.learn-card{position:relative;min-height:176px;padding:21px 22px}
.learn-step{display:grid;place-items:center;width:29px;height:29px;border:1px solid #29435f;border-radius:9px;background:#17283b;color:#83b5f7;font:11px var(--mono)}
.learn-card h2{margin:14px 0 6px;font-size:15px}
.learn-card p{max-width:520px;margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.learn-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:17px 20px;border:1px solid #264a40;border-radius:12px;background:linear-gradient(120deg,#11251f,#121b26)}
.learn-callout>div{display:grid;gap:4px}
.learn-callout b{font-size:12px}
.learn-callout span{color:var(--muted);font-size:10px}
.learn-callout button span{color:inherit;font-size:16px}
.profile-button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:4px 9px 4px 5px;border:1px solid #304054;border-radius:9px;background:#151f2b;color:var(--text);font-size:11px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s}
.profile-button:hover{border-color:#637a97;background:#1a2735}
.profile-avatar-mini{width:27px;height:27px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#48c89c,#6f9df0);color:#091610;font-size:10px;font-weight:800}
.profile-avatar-mini img{width:100%;height:100%;object-fit:cover}
.profile-chevron{margin-left:2px;color:var(--muted);font-size:13px}
.account-card{width:min(470px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:26px}
.account-card>p{margin:6px 0 17px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.profile-editor{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:13px}
.avatar-picker{position:relative;width:66px;height:66px;display:grid;place-items:center;overflow:hidden;border:1px solid #405269;border-radius:50%;background:linear-gradient(135deg,#48c89c,#6f9df0);color:#091610;font-size:20px;font-weight:800;cursor:pointer}
.avatar-picker img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar-picker b{position:absolute;right:0;bottom:0;width:22px;height:22px;display:grid;place-items:center;border:2px solid #101720;border-radius:50%;background:#eef4ff;color:#20314b;font-size:14px}
.profile-editor .field input{height:40px}
.profile-preferences{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.profile-preferences select{height:39px;width:100%;padding:0 10px;border:1px solid #293747;border-radius:8px;background:#0b1119;color:var(--text)}
.profile-save,.profile-signout{width:100%;margin-top:14px}
.profile-signout{justify-content:center}
.profile-divider{height:1px;margin:17px 0 12px;background:#293747}
.profile-message{min-height:14px;margin-top:8px;color:#f1bd72;font-size:10px;line-height:1.4}
.profile-message:empty{display:none}
.account-card .auth-privacy{margin-top:12px}
.tradereplay-plot-pane{position:relative}
.trade-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.trade-grid.position-open{grid-template-columns:repeat(6,minmax(0,1fr))}
.trade-grid>.field:nth-child(1) select{height:36px;width:100%;border:1px solid #293747;border-radius:8px;background:#0b1119;color:var(--text);padding:0 9px}
.risk-line.draft{opacity:.94}
.risk-hit{z-index:2}
.risk-tag{z-index:3;white-space:nowrap}
.chart-tools .tool:focus-visible,.profile-button:focus-visible,.avatar-picker:focus-visible{outline:2px solid #87b2ff;outline-offset:2px}

/* Startup and release notes */
.startup-loader{position:fixed;inset:0;z-index:30;display:grid;place-content:center;justify-items:center;gap:15px;background:radial-gradient(ellipse at 50% 35%,#152638,#090e15 65%);color:#dce7f4;transition:opacity .28s,visibility .28s}
.startup-loader.is-ready{opacity:0;visibility:hidden;pointer-events:none}
.startup-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;letter-spacing:-.65px}
.startup-brand .brand-mark{width:38px;height:38px;border-radius:11px}
.startup-spinner{width:30px;height:30px;border:2px solid #ffffff20;border-top-color:#68d5ae;border-radius:50%;animation:startup-spin .8s linear infinite}
.startup-loader p{margin:0;color:#8293a8;font-size:12px;letter-spacing:.02em}
@keyframes startup-spin{to{transform:rotate(360deg)}}
.chart-tools{position:relative;z-index:7;padding:6px 0;min-height:45px}
.tool-group{padding:3px;background:#0b121a;border:1px solid #202d3c;border-radius:10px;gap:3px}
.tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:5px 9px;border-radius:7px;color:#8998aa;font-size:10px;font-weight:600;transition:color .15s,background .15s,box-shadow .15s}
.tool-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tool[data-tool="cursor"] .tool-icon{fill:currentColor;stroke-width:1.3}
.tool.active{box-shadow:0 1px 4px #0002}
.clear-tools{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:7px}
.clear-tools:hover{background:#ff778612;color:#ff8996}
.tool-actions{display:flex;align-items:center;gap:5px;flex:none}
.drawing-style-wrap{position:relative}
.style-trigger{height:30px;display:inline-flex;align-items:center;gap:7px;padding:0 9px;border:1px solid #2c3a4b;border-radius:8px;background:#111a25;color:#9aa9ba;font-size:10px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.style-trigger:hover,.style-trigger[aria-expanded="true"]{border-color:#4a6281;background:#182537;color:#e7eff8}
.style-current{width:13px;height:13px;border:2px solid #ffffffaa;border-radius:50%;box-shadow:0 0 0 1px #0008}
.style-caret{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.style-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:12;width:240px;padding:13px;border:1px solid #344459;border-radius:12px;background:#101923;box-shadow:0 18px 42px #0009;animation:style-pop .14s ease-out}
@keyframes style-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.style-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#e5edf6;font-size:11px;font-weight:700}
.style-panel-head button{width:23px;height:23px;border:1px solid #314052;border-radius:6px;background:#17212d;color:#98a8bb;cursor:pointer}
.style-palette{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.style-palette>button,.custom-color{width:22px;height:22px;display:grid;place-items:center;border:2px solid transparent;border-radius:50%;cursor:pointer;transition:transform .12s,border-color .12s}
.style-palette>button:hover,.custom-color:hover{transform:scale(1.12)}
.style-palette>button.selected{border-color:#f4f7fb;box-shadow:0 0 0 1px #53647b}
.style-palette>button[data-color="#f4bd50"]{background:#f4bd50}.style-palette>button[data-color="#5b9dff"]{background:#5b9dff}.style-palette>button[data-color="#ee7187"]{background:#ee7187}.style-palette>button[data-color="#54c89a"]{background:#54c89a}.style-palette>button[data-color="#edf2f7"]{background:#edf2f7}
.custom-color{position:relative;overflow:hidden;border:1px solid #5b6a7d;background:conic-gradient(#f55,#ff5,#5f5,#5ff,#55f,#f5f)}
.custom-color span{color:#101720;font-size:15px;font-weight:800;text-shadow:0 1px 2px #fff9}
.custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.style-width>span{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;color:#a9b6c5;font-size:10px}
.style-width output{color:#75859a;font:10px var(--mono)}
.style-width input{width:100%;height:18px;margin:0;accent-color:#78dbb3;cursor:pointer}
.risk-field-head{margin:0 0 5px!important;min-height:17px}
.risk-field-head>span:first-child{display:block;color:#8e9cac;font-size:10px}
.toggle-control{position:relative;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#718197;font-size:9px;line-height:1}
.toggle-control input{position:absolute;width:1px;height:1px;opacity:0}
.toggle-track{position:relative;width:29px;height:17px;border:1px solid #405065;border-radius:99px;background:#1b2633;transition:background .16s,border-color .16s}
.toggle-track:after{position:absolute;content:"";top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#8d9bac;transition:transform .16s,background .16s}
.toggle-control input:checked+.toggle-track{border-color:#318261;background:#1c523e}
.toggle-control input:checked+.toggle-track:after{transform:translateX(12px);background:#78e0b7}
.toggle-control input:focus-visible+.toggle-track{outline:2px solid #87b2ff;outline-offset:2px}
.toggle-control input:checked~.toggle-state{color:#79dcb5}
.toggle-control input:not(:checked)~.toggle-state{color:#77869a}
.risk-field .input-suffix input:disabled{opacity:.48;cursor:not-allowed}
.risk-field:has(.toggle-control input:not(:checked)) .input-suffix{opacity:.58}
.risk-field:has(.toggle-control input:disabled) .toggle-control{cursor:not-allowed}
.position-lock{display:flex;align-items:center;gap:7px;justify-content:center;min-width:0;padding-inline:9px}
.position-lock[hidden]{display:none!important}
.position-lock[aria-pressed="true"]{border-color:#37516c;color:#a8c5fa}
.position-lock[aria-pressed="false"]{border-color:#28684e;color:#76dfb9}
.risk-line.locked .risk-tag{cursor:default}
.update-card{position:relative;width:min(430px,100%);padding:29px}
.update-card h2{margin:7px 36px 7px 0;font-size:23px;line-height:1.15;letter-spacing:-.6px}
.update-card>p{margin:0 0 15px;color:var(--muted);font-size:12px}
.update-icon{display:grid;place-items:center;width:39px;height:39px;margin-bottom:14px;border:1px solid #2b5b4a;border-radius:12px;background:#15382b;color:#6de0b2;font-size:20px}
.update-list{display:grid;gap:10px;margin:0 0 19px;padding:0;list-style:none}
.update-list li{display:grid;grid-template-columns:18px 1fr;gap:8px;color:var(--text);font-size:11px;line-height:1.45}
.update-list li:before{content:"✓";color:#6de0b2;font-weight:800}
.update-done{width:100%}
:root[data-theme="light"] .startup-loader{background:radial-gradient(ellipse at 50% 35%,#dceafa,#f3f6fb 65%);color:#152235}
:root[data-theme="light"] .app-tabs{border-color:#dce3ed}
:root[data-theme="light"] .app-tab:hover{background:#edf2f8;color:#24354c}
:root[data-theme="light"] .app-tab.active{background:#eaf2ff;color:#255ca7}
:root[data-theme="light"] .learn-step{background:#edf4ff;border-color:#c6d9f1;color:#255ca7}
:root[data-theme="light"] .learn-callout{background:linear-gradient(120deg,#eff9f3,#f7f9fc);border-color:#cfe6d9}
:root[data-theme="light"] .startup-spinner{border-color:#15223520;border-top-color:#18875f}
:root[data-theme="light"] .startup-loader p{color:#627187}
:root[data-theme="light"] .tool-group{background:#f4f7fb;border-color:#dce3ed}
:root[data-theme="light"] .style-trigger{background:#f6f8fb;border-color:#d4dce7;color:#4f6075}
:root[data-theme="light"] .style-trigger:hover,:root[data-theme="light"] .style-trigger[aria-expanded="true"]{background:#edf4ff;color:#203049}
:root[data-theme="light"] .style-panel{background:#fff;border-color:#d6e0ec;box-shadow:0 18px 42px #29405f29}
:root[data-theme="light"] .style-panel-head{color:#203049}
:root[data-theme="light"] .style-panel-head button{background:#f4f7fb;border-color:#d7e0eb;color:#4d5e73}
:root[data-theme="light"] .style-width>span{color:#4f6075}
:root[data-theme="light"] .toggle-track{background:#e4eaf2;border-color:#c3cfdd}
:root[data-theme="light"] .toggle-control input:checked+.toggle-track{background:#d9f2e7;border-color:#88c9aa}
:root[data-theme="light"] .update-icon{background:#e6f7ef;border-color:#b3ddca;color:#16734f}
:root[data-theme="light"] .position-lock[aria-pressed="true"]{background:#edf4ff}
@media(max-width:720px){.chart-tools{align-items:flex-start}.tool-group{max-width:calc(100% - 68px);overflow-x:auto;flex-wrap:nowrap}.tool-name{white-space:nowrap}.tool{padding-inline:7px}.clear-tools{flex:none}}
@media(max-width:460px){.tool-name{font-size:9px}.tool{gap:4px;padding-inline:6px}.tool-icon{width:14px;height:14px}.position-lock,.close-position{width:100%}.update-card{padding:25px 20px}}
@media(max-width:800px){.app-tabs{padding:0 16px}.extra-page{padding:20px 16px}.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.app-tabs{gap:2px;margin-top:6px;padding:0 10px}.app-tab{flex:1;justify-content:center;gap:5px;padding:0 6px;font-size:10px}.extra-page{padding:17px 11px}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.page-heading .virtual-tag{display:none}.journal-panel{padding:15px}.journal-entry{grid-template-columns:minmax(0,1fr) auto;gap:7px}.journal-side{grid-column:1}.journal-result{grid-row:span 2;grid-column:2}.learn-grid{grid-template-columns:1fr}.learn-card{min-height:auto;padding:17px}.learn-callout{align-items:flex-start;flex-direction:column}.insight-card{min-height:125px;padding:14px}.insight-card>strong{font-size:21px}}

:root[data-theme="light"]{color-scheme:light;--bg:#f3f6fb;--panel:#fff;--panel-2:#f7f9fc;--line:#dce3ed;--line-soft:#e6ebf2;--text:#152235;--muted:#627187;--dim:#8390a2}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 48% -22%,#dceafa 0,transparent 48%),var(--bg);color:var(--text)}
:root[data-theme="light"] .topbar{background:#ffffffed;border-bottom-color:#dce3ed}
:root[data-theme="light"] .panel{background:linear-gradient(150deg,#fff,#f8fafd);border-color:#dce3ed;box-shadow:0 10px 28px #29405f10}
:root[data-theme="light"] .session-panel,:root[data-theme="light"] .trade-panel,:root[data-theme="light"] .performance-card,:root[data-theme="light"] .history-panel{background:linear-gradient(150deg,#fff,#f8fafd)}
:root[data-theme="light"] .equity-card{background:radial-gradient(ellipse at 100% -20%,#d2f1e638,transparent 62%),linear-gradient(145deg,#f4fcf8,#fff)}
:root[data-theme="light"] .market-status,:root[data-theme="light"] .live-pill{color:#207354;border-color:#b9ddce;background:#eaf8f1}
:root[data-theme="light"] .step-chip,:root[data-theme="light"] .virtual-tag{color:#5b6a7d;border-color:#d5dee9;background:#f6f8fb}
:root[data-theme="light"] .mode-button,:root[data-theme="light"] .field input,:root[data-theme="light"] .field select,:root[data-theme="light"] .speed-control select,:root[data-theme="light"] .trade-grid>.field:nth-child(1) select,:root[data-theme="light"] .profile-preferences select{background:#fff;color:var(--text);border-color:#d4dce7}
:root[data-theme="light"] .mode-button.active{background:#edf4ff;border-color:#a9c4ed;box-shadow:inset 0 0 0 1px #b4cbed}
:root[data-theme="light"] .button-quiet,:root[data-theme="light"] .profile-button{background:#f6f8fb;color:var(--text);border-color:#d4dce7}
:root[data-theme="light"] .button{background:linear-gradient(180deg,#fff,#f2f5f9);border-color:#d3dce8;color:#203049}
:root[data-theme="light"] .button-primary{background:linear-gradient(135deg,#4281df,#2c61b2);border-color:#4981d3;color:#fff}
:root[data-theme="light"] .button-buy{background:#e5f7ef;border-color:#a5d9c1;color:#16734f}
:root[data-theme="light"] .button-sell{background:#fff0f2;border-color:#efbdc5;color:#b13449}
:root[data-theme="light"] .chart-wrap{background:#fff;border-color:#dce3ed}
:root[data-theme="light"] .chart-empty{background:radial-gradient(ellipse,#f4f8fdcc,transparent 70%);color:#293a51}
:root[data-theme="light"] .chart-empty span,:root[data-theme="light"] .chart-footer,:root[data-theme="light"] .risk-note,:root[data-theme="light"] .footer{color:#728198}
:root[data-theme="light"] .chart-tools,:root[data-theme="light"] .replay-toolbar{border-color:#e2e8f0}
:root[data-theme="light"] .tool{color:#64748b}
:root[data-theme="light"] .tool:hover{color:#24354c;background:#edf2f8}
:root[data-theme="light"] .tool.active{color:#255ca7;background:#eaf2ff;border-color:#c7d9f3}
:root[data-theme="light"] .equity-breakdown>div,:root[data-theme="light"] .performance-grid>div{background:#f7f9fc;border-color:#e0e6ee}
:root[data-theme="light"] .position-row,:root[data-theme="light"] .net-row,:root[data-theme="light"] .trade-row{border-color:#e0e6ee}
:root[data-theme="light"] .side-tip{background:#fff;border-color:#dce3ed;color:#26364d}
:root[data-theme="light"] .history-empty{color:#8190a3}
:root[data-theme="light"] .history-empty b{color:#4d5d73}
:root[data-theme="light"] .modal-scrim{background:#26364c66}
:root[data-theme="light"] .auth-card{background:linear-gradient(145deg,#fff,#f5f8fc);border-color:#d7e0eb;box-shadow:0 30px 100px #243b5c33}
:root[data-theme="light"] .auth-close{background:#f4f7fb;border-color:#d7e0eb;color:#4d5e73}
:root[data-theme="light"] .profile-preferences select{color:var(--text)}
:root[data-theme="light"] .profile-divider{background:#dce3ed}
:root[data-theme="light"] .avatar-picker b{border-color:#fff}

@media(max-width:1100px){.trade-grid,.trade-grid.position-open{grid-template-columns:repeat(3,minmax(0,1fr))}.trade-grid .close-position{width:100%}}
@media(max-width:560px){.topbar-right{gap:7px}.profile-button{gap:5px;padding-right:7px}.profile-button .profile-chevron{display:none}.profile-preferences{gap:7px}.account-card{padding:23px 18px}.trade-grid,.trade-grid.position-open{grid-template-columns:repeat(2,minmax(0,1fr))}}
