/* Investor hierarchy, shared by web, Windows and Android. */
.investor-v2 {font-variant-numeric:tabular-nums}
.investor-v2 main,.investor-v2 header {width:min(1320px,calc(100% - 48px));margin:auto}
.investor-v2 header {padding:26px 0 14px;gap:20px;align-items:center}
.investor-v2 h1 {font-size:clamp(24px,3vw,32px);margin:6px 0}
.investor-v2 h2 {font-size:20px;margin:0 0 14px;letter-spacing:-.02em}
.investor-v2 h3 {font-size:16px;margin:20px 0 10px}
.investor-v2 p {line-height:1.55;max-width:85ch}
.investor-v2 small,.investor-v2 .muted {color:var(--muted);line-height:1.5}
.investor-v2 .card {padding:22px;border-radius:12px;min-width:0}
.investor-v2 .overview {padding:18px 0}
.investor-v2 .overview-head {display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.investor-v2 .overview-head h2 {font-size:25px;margin:0}
.investor-v2 .updated {font-size:12px;margin:0;color:var(--muted)}
.summary-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.summary-grid article {border:1px solid var(--line);background:var(--card);padding:16px;border-radius:12px;display:flex;flex-direction:column;gap:9px}
.summary-grid article>span {font-size:12px;color:var(--muted)}
.summary-grid strong {font-size:18px;line-height:1.35}
.investor-v2 .attention {border-left:3px solid var(--bad);padding:8px 12px;background:var(--card);font-size:14px}
.investor-v2 .primary-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.investor-v2 #bingx-content>section.card {margin:0 0 16px}
.investor-v2 .investor-nav {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.investor-v2 .investor-nav a {text-decoration:none;color:var(--muted);padding:8px 12px;min-height:44px;display:flex;align-items:center;border-radius:8px}
.investor-v2 .stack {gap:10px}
.investor-v2 .item {border-top:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}
.investor-v2 .item:first-child {border-top:0}
.investor-v2 .item p {margin:6px 0}
.investor-v2 .item h3 {margin:0 0 8px}
.investor-v2 .market-summary {display:flex;flex-wrap:wrap;gap:18px 32px;margin:18px 0}
.market-summary>div {display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}
.market-summary strong {font-size:22px;color:var(--text)}
.reason-summary {display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--muted)}
.investor-v2 details {margin-top:14px}
.investor-v2 summary {cursor:pointer;min-height:44px;display:list-item;padding:12px 0;font-weight:600;color:var(--text)}
.investor-v2 .collapsible {margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:8px 22px}
.investor-v2 .filters {display:flex;flex-wrap:wrap;gap:14px;margin:10px 0 16px}
.investor-v2 .filters label {flex:1 1 200px;display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted)}
.investor-v2 input,.investor-v2 select {max-width:100%;min-width:0;min-height:44px}
.investor-v2 button {min-height:44px;cursor:pointer}
.investor-v2 .pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.investor-v2 .pagination span {font-size:12px;color:var(--muted)}
.investor-v2 .pagination button:disabled {opacity:.45;cursor:default}
.investor-v2 .tone-success {color:var(--good)}
.investor-v2 .tone-attention {color:var(--muted)}
.investor-v2 .tone-critical {color:var(--bad)}
.investor-v2 :focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.skip-link {position:fixed;top:-100px;left:12px;z-index:100;background:var(--card);padding:12px;color:var(--text)}
.skip-link:focus {top:12px}
@media(max-width:760px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.investor-v2 .primary-grid{grid-template-columns:1fr}}
@media(max-width:480px){.investor-v2 main,.investor-v2 header{width:calc(100% - 28px)}.investor-v2 header{flex-wrap:wrap;padding-top:18px}.investor-v2 .header-actions{justify-content:space-between;width:100%}.summary-grid{grid-template-columns:1fr}.summary-grid article{padding:12px;gap:5px}.summary-grid strong{font-size:16px}.investor-v2 .card{padding:18px}.investor-v2 .collapsible{padding:6px 18px}.investor-v2 .overview-head h2{font-size:23px}.investor-v2 .pagination{gap:6px}.investor-v2 .pagination button{padding:10px}.investor-v2 .filters label{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.investor-v2 *{scroll-behavior:auto!important;transition:none!important}}

.investor-v2 .item small {display:block;margin-top:6px;}

.technical-diagnostic pre {white-space:pre-wrap;overflow-wrap:anywhere}

/* Investor finance surface. All assets are local. */
.investor-v2{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}
.investor-v2 main{padding:8px 0 40px}
.investor-v2 .masthead{padding:24px 0;border-bottom:1px solid var(--line);margin-bottom:16px;display:flex;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:20px;font-weight:700;text-decoration:none;white-space:nowrap;letter-spacing:-.7px}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;background:var(--accent);color:var(--bg);border-radius:9px;font-size:21px}
.brand-divider{height:20px;width:1px;background:var(--line);margin:0 8px}.account-label{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0}
.investor-v2 .header-actions{display:flex;align-items:center;gap:16px;font-size:12px}
.system-status{font-size:12px;display:inline-flex;align-items:center;gap:8px;color:var(--muted)}
.system-status::before{content:"";width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#d6a647;box-shadow:0 0 0 4px #d6a64712}
.system-status.healthy::before{background:var(--good);box-shadow:0 0 0 4px #60bd9912}.system-status.critical::before{background:var(--bad)}
.investor-v2 .theme select{font-size:12px;min-height:36px;border-radius:8px}.theme-icon{display:none}
.finance-period{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin:0 0 16px;font-size:12px}
.kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.investor-v2 .kpi{padding:20px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 18px #00000008}
.kpi-label{color:var(--muted);font-size:12px}.kpi strong{font-size:28px;font-weight:600;letter-spacing:-.8px;white-space:nowrap;line-height:1.3}.kpi small{font-size:12px}.kpi:first-child{background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 9%,var(--card)),var(--card))}
.investor-v2 .card{border-radius:14px;box-shadow:0 4px 20px #00000006}.investor-v2 #bingx-content>section.card{margin-bottom:20px}
.investor-v2 .section-title{margin:0 0 16px;gap:14px}.investor-v2 .section-title h2{font-size:16px;font-weight:600;margin:0;letter-spacing:-.2px}.section-title .eyebrow+h2{margin-top:7px!important}.section-title>.muted{font-size:12px}.eyebrow{font-size:12px;letter-spacing:.1em;color:var(--muted)}
.segmented{display:inline-flex;gap:2px;padding:3px;border-radius:8px;background:var(--input);border:1px solid var(--line)}
.investor-v2 .segmented button{min-height:32px;padding:6px 12px;font-size:12px;white-space:nowrap;background:transparent;color:var(--muted);border:0;border-radius:5px;width:auto}
.investor-v2 .segmented button.active{background:var(--card);color:var(--text);box-shadow:0 1px 5px #0000001c}
.chart-caption{font-size:12px;margin:0 0 8px}#equity-chart{height:260px;width:100%;min-width:0}.chart-footer{font-size:12px;color:var(--muted);padding-top:14px;border-top:1px solid var(--line);margin-top:12px}.chart-no-data{opacity:.35}#curve-empty{text-align:center;font-size:13px;margin:-145px 0 120px;position:relative;pointer-events:none}
.table-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}
.investor-v2 table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}
.investor-v2 th{color:var(--muted);font-size:12px;font-weight:500;padding:10px;border-bottom:1px solid var(--line);background:var(--card)}
.investor-v2 td{padding:16px 10px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);vertical-align:middle}
.investor-v2 tbody tr:last-child td{border-bottom:0}.investor-v2 td small{display:block;font-size:12px;margin-top:4px}.investor-v2 td:first-child,.investor-v2 th:first-child{padding-left:0}.symbol{font-weight:600;letter-spacing:-.3px}
#dashboard-positions :is(td,th):nth-child(n+3):nth-child(-n+6),#dashboard-trades :is(td,th):nth-child(4),#dashboard-trades :is(td,th):nth-child(5){text-align:right}
.side-badge,.protection-badge,.reason-badge{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:4px 7px;font-size:12px;color:var(--muted)}
.protection-badge.confirmed{color:var(--good);background:var(--good-bg);border-color:transparent}.protection-badge.missing,.reason-badge.stop{color:var(--bad);background:var(--bad-bg);border-color:transparent}.reason-badge.engine{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--card));border-color:transparent}.reason-badge.partial{color:#c7a6ff;background:#34284e;border-color:transparent}
:root[data-theme="light"] .reason-badge.partial{color:#7040a5;background:#f2e9ff}
.stops-age{font-size:12px;margin:0 0 12px}.position-total{display:flex;justify-content:flex-end;gap:24px;padding:16px 0 0;border-top:1px solid var(--line);font-size:13px}.position-total span{color:var(--muted)}
.count-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;background:var(--input);border:1px solid var(--line);border-radius:6px;margin-left:6px;font-size:12px}
.empty-state{text-align:center;padding:28px 16px}.empty-icon{color:var(--accent);font-size:28px}.investor-v2 .empty-state h3{font-size:14px;margin:10px 0 5px;font-weight:500}.empty-state p{font-size:12px;margin:0 auto}
.investor-v2 #bingx-message:empty{display:none}.investor-v2 #bingx-message:not(:empty){padding:12px 16px;border:1px solid var(--line);background:var(--card);border-radius:10px;color:var(--muted);font-size:12px;max-width:none}
.investor-v2 .show-all{display:block;margin:16px auto 0;width:auto;padding:10px 24px;color:var(--text);background:var(--input);border:1px solid var(--line)}.investor-v2 #dashboard-trades>small{display:block;margin-top:14px;font-size:12px;color:var(--muted)}
.skeleton{height:130px;border-radius:14px;background:linear-gradient(100deg,var(--card) 30%,var(--line) 50%,var(--card) 70%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{to{background-position:-200% 0}}
.investor-v2 #technical-details{background:transparent;margin-top:28px}.investor-v2 #technical-details>summary{font-size:13px;color:var(--muted);min-height:48px}.diagnostic-content{padding-bottom:16px}.diagnostic-content>details>summary{font-size:13px}.diagnostic-content .card{margin-bottom:16px}.model-card{display:grid;grid-template-columns:1fr 1fr;gap:24px}.funnel-row{display:grid;grid-template-columns:1fr auto;gap:8px 20px;margin:12px 0;color:var(--muted);font-size:12px}.funnel-track{grid-column:1/-1;height:5px;border-radius:4px;background:var(--input)}.funnel-track i{display:block;height:100%;border-radius:4px;background:var(--accent)}
@media(max-width:1100px){.investor-v2 main,.investor-v2 header{width:calc(100% - 40px)}.kpi strong{font-size:26px}.investor-v2 .header-actions{gap:10px}.brand-divider{margin:0 2px}.account-label{max-width:140px;white-space:normal}}
@media(max-width:600px){
.investor-v2 main,.investor-v2 header{width:calc(100% - 28px)}.investor-v2 .masthead{padding:14px 0;gap:8px;flex-wrap:nowrap}.brand{font-size:18px;gap:8px}.brand-divider,.account-label,.header-actions .theme,#bingx-age{display:none}.investor-v2 .header-actions{width:auto;gap:16px}.system-status{font-size:0;gap:0}.system-status::before{width:9px;height:9px}.investor-v2 .theme-icon{display:block;min-height:36px;width:36px;padding:0;background:var(--input);border:1px solid var(--line);border-radius:8px;font-size:24px;color:var(--text)}
.finance-period{flex-wrap:wrap;justify-content:space-between;gap:10px}.finance-period>span{font-size:12px}.investor-v2 .segmented button{padding:6px 9px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.investor-v2 .kpi{padding:14px 12px;gap:8px}.kpi strong{font-size:19px;letter-spacing:-.7px}.kpi-label{font-size:12px}.investor-v2 .card{padding:18px 14px}.investor-v2 .section-title{flex-wrap:wrap;gap:12px}.chart-caption{font-size:12px}#equity-chart{height:230px}#curve-periods{margin-left:auto}.model-card{grid-template-columns:1fr}.position-total{justify-content:space-between;gap:10px}.investor-v2 #technical-details{padding:4px 14px}
#dashboard-positions table,#dashboard-positions tbody,#dashboard-trades table,#dashboard-trades tbody{display:block;white-space:normal}#dashboard-positions thead,#dashboard-trades thead{display:none}

#dashboard-trades tr{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;padding:16px 0;border-bottom:1px solid var(--line)}#dashboard-trades td{padding:0;border:0;min-width:0;font-size:12px}#dashboard-trades td:nth-child(even){text-align:right}#dashboard-trades td:nth-child(1){grid-column:1;grid-row:2;color:var(--muted)}#dashboard-trades td:nth-child(2){grid-column:1;grid-row:1;text-align:left;font-size:14px}#dashboard-trades td:nth-child(3){grid-column:1;grid-row:3}#dashboard-trades td:nth-child(4){grid-column:2;grid-row:2;color:var(--muted)}#dashboard-trades td:nth-child(5){grid-column:2;grid-row:1;text-align:right;font-size:15px}#dashboard-trades td:nth-child(6){grid-column:2;grid-row:3}
}
@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}

.investor-v2 .stops-age.observation-warning{color:#e6b84d}
:root[data-theme="light"] .investor-v2 .stops-age.observation-warning{color:#805b00}

/* Зебра с подсветкой результата: плюс — зелёный, минус — красный, чётные строки насыщеннее. */
.investor-v2 tbody tr.row-win{background:color-mix(in srgb,var(--good) 6%,transparent)}
.investor-v2 tbody tr.row-win:nth-child(even){background:color-mix(in srgb,var(--good) 11%,transparent)}
.investor-v2 tbody tr.row-loss{background:color-mix(in srgb,var(--bad) 6%,transparent)}
.investor-v2 tbody tr.row-loss:nth-child(even){background:color-mix(in srgb,var(--bad) 11%,transparent)}
.investor-v2 tbody tr:is(.row-win,.row-loss) td:first-child{padding-left:12px;border-radius:8px 0 0 8px}
.investor-v2 tbody tr:is(.row-win,.row-loss) td:last-child{border-radius:0 8px 8px 0}
@media (max-width:760px){#dashboard-positions tr:is(.row-win,.row-loss),#dashboard-trades tr:is(.row-win,.row-loss){padding-inline:12px;border-radius:10px}}

.investor-v2 .trade-sort{width:auto;min-height:44px;padding:6px 0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer}
.investor-v2 .trade-sort:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:600px){
#dashboard-trades thead{display:block}
#dashboard-trades thead tr{display:flex;flex-wrap:wrap;gap:4px 14px;padding:0 0 12px}
#dashboard-trades th{display:block;padding:0;border:0;text-align:left}
}

.candle-countdown{margin:0 0 16px;font-variant-numeric:tabular-nums}
#dashboard-ready{width:100%;min-width:0}
#dashboard-ready table{width:100%;min-width:760px}
#dashboard-ready tbody tr{background:var(--card)}
#dashboard-ready tbody tr:nth-child(even){background:var(--input)}
#dashboard-ready :is(td,th):first-child{padding-left:12px;white-space:normal;overflow-wrap:anywhere}
#dashboard-ready td:nth-child(4),#dashboard-ready td:nth-child(5){white-space:normal;min-width:180px}
#dashboard-ready td:nth-child(5) small{display:block}
.entry-volume-inline{display:inline-flex;align-items:baseline;white-space:nowrap;gap:4px}
.investor-v2 td .entry-volume-inline small{margin-top:0}
@media(max-width:600px){#dashboard-trades td:nth-child(4){grid-column:1/-1;grid-row:3}#dashboard-trades td:nth-child(3),#dashboard-trades td:nth-child(6){grid-row:4}}

.financial-breakdown{margin-top:8px}
.investor-v2 td .financial-breakdown small{white-space:normal;font-weight:400}
.investor-v2 td .financial-breakdown .positive{color:var(--good)}
.investor-v2 td .financial-breakdown .negative{color:var(--bad)}
.financial-breakdown .funding-payments{margin-top:4px}
.financial-breakdown .funding-payments summary{font-size:12px;font-weight:400;padding:4px 0}
.financial-breakdown .funding-payments p{margin:4px 0;overflow-wrap:anywhere}

/* Compact open-position presentation; the table owns horizontal scrolling. */
#dashboard-positions{min-width:0;max-width:100%}
#dashboard-positions table{table-layout:fixed;min-width:1220px;white-space:normal}
#dashboard-positions :is(th,td){padding:12px 8px;overflow-wrap:anywhere}
#dashboard-positions :is(th,td):nth-child(1){width:8%}
#dashboard-positions :is(th,td):nth-child(2){width:7%}
#dashboard-positions :is(th,td):nth-child(3){width:9%}
#dashboard-positions :is(th,td):nth-child(4){width:9%}
#dashboard-positions :is(th,td):nth-child(5){width:22%}
#dashboard-positions :is(th,td):nth-child(6){width:9%}
#dashboard-positions :is(th,td):nth-child(7){width:10%}
#dashboard-positions :is(th,td):nth-child(8){width:16%}
#dashboard-positions :is(th,td):nth-child(9){width:10%}
#dashboard-positions .position-pnl{font-size:17px;font-weight:600;white-space:nowrap}
#dashboard-positions .side-badge{white-space:nowrap}
#dashboard-positions .position-estimate{color:var(--muted);font-weight:400}
#dashboard-positions .position-costs{margin-top:4px;color:var(--muted);font-weight:400;text-align:left}
#dashboard-positions .position-costs summary{font-size:12px;font-weight:400;min-height:32px;padding:6px 0;color:var(--muted)}
#dashboard-positions .position-costs small{font-weight:400}
#dashboard-positions .position-costs p{margin:4px 0}
#dashboard-positions .position-prices{white-space:nowrap}
#dashboard-positions .position-mobile-stop{display:none}
#dashboard-positions .position-shadow small{margin-top:0}
@media(max-width:600px){
#dashboard-positions table{min-width:0;table-layout:auto}
#dashboard-positions tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:12px;border-radius:10px;border-top:1px solid var(--line)}
#dashboard-positions tr:first-child{border-top:0}
#dashboard-positions :is(tr.row-win,tr.row-loss) td:first-child{padding:0}
#dashboard-positions td{display:block;width:auto!important;border:0;padding:0;min-width:0;font-size:12px}
#dashboard-positions td:first-child{grid-column:1;grid-row:1;align-self:center;font-size:14px}
#dashboard-positions td:nth-child(2){grid-column:1;grid-row:2}
#dashboard-positions td:nth-child(3){grid-column:2;grid-row:2;text-align:right}
#dashboard-positions td:nth-child(3)>div{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;flex-wrap:wrap}
#dashboard-positions td:nth-child(3) small{margin-top:0}
#dashboard-positions td:nth-child(4){grid-column:1/-1;grid-row:4;text-align:left;font-size:11px}
#dashboard-positions .position-prices{white-space:normal}
#dashboard-positions .position-prices>small{display:inline;margin:0;font-size:inherit}
#dashboard-positions .position-prices>small::before{content:' → '}
#dashboard-positions .position-mobile-stop{display:inline}
#dashboard-positions td:nth-child(5),#dashboard-positions .position-profit{display:contents}
#dashboard-positions .position-pnl{grid-column:2;grid-row:1;text-align:right;font-size:15px}
#dashboard-positions .position-estimate{grid-column:1/-1;grid-row:3;margin-top:0;text-align:right}
#dashboard-positions .position-costs{grid-column:1/-1;grid-row:8;margin:0}
#dashboard-positions .position-costs summary{min-height:44px;padding:12px 0}
#dashboard-positions td:nth-child(6){display:none}
#dashboard-positions td:nth-child(7){grid-column:2;grid-row:5;text-align:right;align-self:center}
#dashboard-positions td:nth-child(8){grid-column:1/-1;grid-row:7}
#dashboard-positions .position-shadow{display:flex;flex-wrap:wrap;gap:0 6px}
#dashboard-positions .position-shadow small{font-size:11px;white-space:nowrap}
#dashboard-positions .position-shadow small+small::before{content:'· '}
#dashboard-positions td:last-child{grid-column:1;grid-row:5;color:var(--muted);align-self:center}
#dashboard-positions td:last-child::before{content:'В позиции ';display:block;font-size:11px}
}

/* Closed trades keep the net result on one line; costs are in the cell title. */
#dashboard-trades .trade-result{white-space:nowrap;font-weight:600}
@media(max-width:600px){
#dashboard-trades tbody tr{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:12px}
#dashboard-trades tbody td{display:block;overflow-wrap:anywhere}
#dashboard-trades tbody td:nth-child(1){grid-column:1;grid-row:3;font-size:11px}
#dashboard-trades tbody td:nth-child(2){grid-column:1;grid-row:1;align-self:center}
#dashboard-trades tbody td:nth-child(3){grid-column:1;grid-row:2;text-align:left}
#dashboard-trades tbody td:nth-child(4){display:none}
#dashboard-trades tbody td:nth-child(5){grid-column:2;grid-row:1;align-self:center;font-size:13px}
#dashboard-trades tbody td:nth-child(6){grid-column:2;grid-row:2;align-self:center}
#dashboard-trades tbody td:nth-child(7){grid-column:2;grid-row:3;text-align:right;color:var(--muted);font-size:11px}
#dashboard-trades tbody td:nth-child(7)::before{content:'В позиции '}
}

.investor-v2 .app-links{margin:24px 0 8px;font-size:13px;text-align:center}
.investor-v2 .app-links a{color:inherit;text-decoration:underline}

/* Complete closed-trade history. Deliberately independent of .summary-grid. */
.investor-v2 .financial-history-card {font-variant-numeric:tabular-nums}
.financial-history-card :is(p,dl,dd,h3,h4) {margin:0;max-width:none}
.financial-history-card .financial-history-heading h2 {margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em}
.financial-history-card .financial-history-description {margin-top:6px;color:var(--muted);font-size:13px}
.financial-history-card .financial-history-currency {padding-top:20px;min-width:0}
.financial-history-card .financial-history-currency + .financial-history-currency {margin-top:22px;border-top:1px solid var(--line)}
.financial-history-card .financial-history-meta {display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;margin-bottom:20px}
.financial-history-card .financial-history-identity {display:flex;align-items:center;gap:12px;min-width:0}
.financial-history-card .financial-history-identity h3 {margin:0;padding:3px 9px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:600;letter-spacing:.02em;overflow-wrap:anywhere}
.financial-history-card :is(.financial-history-environment,.financial-history-period) {font-size:12px;color:var(--muted)}
.financial-history-card .financial-history-period {overflow-wrap:anywhere}
.financial-history-card .financial-history-main {display:grid;grid-template-columns:1.25fr 1fr 1fr;align-items:end;gap:24px;margin:0 0 22px}
.financial-history-card .financial-history-metric {min-width:0}
.financial-history-card dt {font-size:13px;font-weight:400;line-height:1.5;color:var(--muted)}
.financial-history-card dd {margin:7px 0 0;line-height:1.3;font-weight:600;font-size:21px;letter-spacing:-.025em;overflow-wrap:anywhere}
.financial-history-card dd span {font-variant-numeric:tabular-nums}
.financial-history-card .financial-history-main dt {min-height:2.8em;display:flex;align-items:end}
.financial-history-card .financial-history-main > div + div {border-left:1px solid var(--line);padding-left:24px}
.financial-history-card .financial-history-net dd {font-size:34px;letter-spacing:-.04em}
.financial-history-card .financial-history-breakdown {padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.financial-history-card .financial-history-breakdown h4 {margin:0 0 12px;font-size:12px;font-weight:500;color:var(--muted)}
.financial-history-card .financial-history-components {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px}
.financial-history-card .financial-history-components dt {font-size:12px}
.financial-history-card .financial-history-components dd {font-size:17px;font-weight:500}
.financial-history-card dd.financial-history-unknown {color:var(--muted);font-size:14px;font-weight:400;letter-spacing:0}
.financial-history-card .financial-history-statistics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px;padding-top:17px}
.financial-history-card .financial-history-statistics > div {display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.financial-history-card .financial-history-statistics dt {font-size:12px}
.financial-history-card .financial-history-statistics dd {margin:0;font-size:16px;font-weight:500}
.financial-history-card .financial-history-note {margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(max-width:1050px){
 .financial-history-card .financial-history-main {grid-template-columns:1.15fr 1fr 1fr;gap:18px}
 .financial-history-card .financial-history-main > div + div {padding-left:18px}
 .financial-history-card .financial-history-main dd {font-size:20px}
 .financial-history-card .financial-history-net dd {font-size:30px}
 .financial-history-card .financial-history-components {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
 .financial-history-card .financial-history-statistics > div {display:block}
 .financial-history-card .financial-history-statistics dd {margin-top:5px}
}
@media(max-width:600px){
 .financial-history-card .financial-history-meta {margin-bottom:18px;gap:10px}
 .financial-history-card .financial-history-main {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
 .financial-history-card .financial-history-net {grid-column:1/-1}
 .financial-history-card .financial-history-main > div:nth-child(2) {border:0;padding:0}
 .financial-history-card .financial-history-main > div:nth-child(3) {padding-left:16px}
 .financial-history-card .financial-history-main dt {font-size:12px;min-height:2.8em}
 .financial-history-card .financial-history-net dt {min-height:0}
 .financial-history-card .financial-history-main dd {font-size:18px}
 .financial-history-card .financial-history-net dd {font-size:30px}
 .financial-history-card .financial-history-components {gap:16px}
 .financial-history-card .financial-history-components dd {font-size:16px}
 .financial-history-card .financial-history-statistics {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
 .financial-history-card .financial-history-statistics > div {display:flex;flex-wrap:wrap}
 .financial-history-card .financial-history-statistics dd {margin:0}
 .financial-history-card dd.financial-history-unknown {font-size:13px}
}

.investor-v2 .bot-switch select{font-size:12px;min-height:36px;max-width:190px;border-radius:8px;font-weight:600}
.bot-dialog{background:var(--panel,#121a24);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:24px;width:min(420px,calc(100% - 32px))}
.bot-dialog::backdrop{background:rgba(0,0,0,.55)}
.bot-dialog h2{margin:0 0 14px;font-size:20px}
.bot-dialog label{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;font-size:13px}
.bot-dialog input{min-height:40px;border-radius:8px}
.bot-remove-list label{flex-direction:row;align-items:center;gap:8px}
.bot-dialog-actions{display:flex;gap:10px;margin-top:8px}
@media(max-width:480px){.investor-v2 .bot-switch select{max-width:140px}}
.bot-frame-wrap{width:min(1440px,calc(100% - 40px));margin:0 auto}.bot-frame-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;font-size:13px}.bot-frame-bar span{font-weight:700}
#bot-frame{display:block;width:100%;height:calc(100vh - 150px);min-height:520px;border:1px solid var(--line);border-radius:14px;background:var(--bg,#0b1016)}.bot-frame-hint{font-size:12px;margin-top:8px}
@media(max-width:480px){.bot-frame-wrap{width:calc(100% - 28px)}#bot-frame{height:calc(100vh - 130px)}}

/* Lite keeps lifecycle prices and volume visible on narrow screens. */
html[data-monitor-mode="lite"] #dashboard-trades .trade-result small{display:block;font-size:11px;font-weight:400;white-space:normal}
@media(max-width:760px){html[data-monitor-mode="lite"] #dashboard-trades> .table-scroll tbody td:nth-child(4){display:block;grid-column:1/-1;grid-row:4;text-align:left}}

@media(max-width:760px){
 .investor-v2 .header-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:8px}
 .investor-v2 #monitor-timezone{flex-basis:100%;order:1;text-align:right}
}

@media(max-width:600px){
 html[data-monitor-mode="core-lite"] #dashboard-positions tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-monitor-mode="core-lite"] #dashboard-positions .position-pnl{white-space:normal;overflow-wrap:anywhere}
 html[data-monitor-mode="core-lite"] #dashboard-positions td:nth-child(7){grid-column:1/-1;grid-row:6;text-align:left}
}
