/* Strategy profiles rev 6 (owner 2026-11-14): the owner's TickJury design system and brief, loaded after a.css.
   Tokens exactly as the brief (section 17); the page's --x-* names map onto them. */
@font-face { font-family: "Inter"; src: url("/shared/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }   /* the CSP blocks Google Fonts */
:root, :root[data-theme=dark] {
  --bg-page: #070C12; --bg-surface: #0F171D; --bg-raised: #121E23; --bg-card: #192126; --bg-muted: #1A292C;
  --accent: #25F7FC; --accent-teal: #04A0A8; --profit: #22E69A; --loss: #FF6B72; --warning: #F5B85C;
  --text-primary: #F2F7FA; --text-secondary: #C6D4DC; --text-muted: #91A6B4; --text-disabled: #4B6571;
  --border: #293940; --border-active: #25F7FC;
  --radius-panel: 16px; --radius-face: 18px; --radius-card: 12px; --radius-kpi: 10px; --radius-button: 9px; --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .20); --glow-cyan: 0 0 18px rgba(37, 247, 252, .10);
  --font-main: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-geist-sans: var(--font-main); --font-geist-mono: var(--font-main);
  --x-bg: var(--bg-page); --x-bar: rgba(7, 12, 18, .85); --x-panel: var(--bg-surface); --x-panel-2: var(--bg-raised);
  --x-card-a: var(--bg-raised); --x-card-b: var(--bg-surface); --x-tile: var(--bg-card); --x-tile-hi: var(--bg-card);
  --x-edge: var(--border); --x-edge-2: var(--border);
  --x-teal: var(--accent); --x-teal-ink: #04161A; --x-teal-glow: rgba(37, 247, 252, .10); --x-teal-wash: rgba(37, 247, 252, .10);
  --x-green: var(--profit); --x-green-bg: rgba(34, 230, 154, .10); --x-green-edge: rgba(34, 230, 154, .28);
  --x-red: var(--loss); --x-red-bg: rgba(255, 107, 114, .10); --x-red-edge: rgba(255, 107, 114, .30);
  --x-amber: var(--warning); --x-amber-bg: rgba(245, 184, 92, .10);
  --x-ink: var(--text-primary); --x-ink-2: var(--text-secondary); --x-mute: var(--text-muted); --x-sel: var(--bg-muted);
}
body { font-family: var(--font-main); font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  background: radial-gradient(ellipse at 80% 0%, rgba(4, 160, 168, .08), transparent 45%), linear-gradient(135deg, #070C12, #0B1419 50%, #071A1E) fixed; }
/* fine-grain texture, about 3%, soft-light (brief section 5) */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .03; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.top, .wrap { position: relative; z-index: 1; }
.top { background: var(--x-bar); backdrop-filter: none; }
.nav a[aria-current=page] { background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--border); }
.search { background: var(--bg-raised); border-color: var(--border); border-radius: var(--radius-button); }

/* type scale (brief section 6) */
.pg-h { font: 700 32px/40px var(--font-main); }
.d-name h1 { font: 700 32px/40px var(--font-main); letter-spacing: -.01em; }
.h { font: 600 20px/28px var(--font-main); }
.kp-t > span, .ft > span:last-child, .cap-s { font-weight: 500; }
.disc2, .fc-per, .fc-note, .d-note, .cnt { font-weight: 400; }

/* face card (first image), restyled with the tokens: 1px active cyan border, restrained glow, flat tiles */
.fc { border: 1px solid var(--border-active); border-radius: var(--radius-face);
  background: radial-gradient(120% 55% at 50% 0%, rgba(4, 160, 168, .10), transparent 60%), linear-gradient(180deg, var(--bg-raised), var(--bg-surface));
  box-shadow: var(--glow-cyan), var(--shadow-card); }
@media (hover: hover) and (pointer: fine) { .fc:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(37, 247, 252, .16), var(--shadow-card); } }
.fc-top::after { background: linear-gradient(90deg, var(--accent) 0 34%, var(--border) 34%); }
.ft { background: var(--bg-card); border: 1px solid rgba(41, 57, 64, .65); border-radius: var(--radius-card); box-shadow: none; }
.ft-i { color: var(--text-secondary); } .ft-i.gain { color: var(--profit); }
.ft-i .ic, .kp-i .ic { stroke-width: 1.6; }
.spark .l { stroke: var(--profit); stroke-width: 2; filter: drop-shadow(0 0 3px rgba(34, 230, 154, .45)); }
.fc-go { color: var(--accent); font-weight: 600; } .fc-per { color: var(--text-muted); }
.fc-note { margin: -6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 14px; }
.risk { border-width: 1px; }
.risk-hi { background: rgba(255, 107, 114, .10); } .risk-mid { background: rgba(245, 184, 92, .10); } .risk-lo { background: rgba(34, 230, 154, .10); }

/* detail panel: dashboard-card */
.det { background: linear-gradient(180deg, var(--bg-raised), var(--bg-surface)); border: 1px solid var(--border); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); }
@media (hover: hover) and (pointer: fine) { .det:hover { border-color: var(--accent-teal); } }
.d-name { gap: 12px; } .risk-basis { color: var(--text-muted); font-size: 13px; }
.btn { border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--bg-raised); color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: var(--accent-teal); background: var(--bg-raised); } }
.cap { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: none; }
.cap-h .q { width: 18px; height: 18px; }
.step button { border-color: var(--border); background: var(--bg-raised); }
@media (hover: hover) and (pointer: fine) { .step button:not(:disabled):hover { border-color: var(--accent-teal); } }
.step select, .sel select { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-button); font: 500 14px var(--font-main); color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) { .step select:hover, .sel select:hover { border-color: var(--accent-teal); } }
.sel .ic { color: var(--text-secondary); }

/* KPI chips: flat, no gradient (brief sections 5 and 11) */
.kp { background: var(--bg-card); border: 1px solid rgba(41, 57, 64, .65); border-radius: var(--radius-kpi); box-shadow: none; }
.kp-i { border: 1px solid var(--border); background: transparent; box-shadow: none; color: var(--text-secondary); border-radius: 9px; }
.kp-t > span { color: var(--text-muted); } .kp b { font-weight: 700; }
.defs { color: var(--accent); border-left-color: var(--border); }

/* segmented control: one container, cyan fill + weight on the selected item */
.seg { background: var(--bg-raised); border-color: var(--border); }
.seg button { color: var(--text-secondary); font-weight: 500; }
.seg button[aria-pressed=true] { background: var(--accent); color: #04161A; font-weight: 700; box-shadow: var(--glow-cyan); }
.rng { border-color: var(--border); } .rng button[aria-pressed=true] { background: var(--accent); color: #04161A; font-weight: 700; }

/* panels and charts */
.pn { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: none; }
.ctip { position: absolute; z-index: 4; display: grid; gap: 2px; min-width: 170px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-primary); font-size: 12px; line-height: 16px; pointer-events: none; box-shadow: var(--shadow-card); }
.ctip span { color: var(--text-secondary); }
.ddtag { border-color: var(--loss); color: var(--loss); background: var(--bg-card); border-radius: 6px; }
.dd-note { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }

/* monthly and quarterly: restrained tints, right-aligned, same widths (brief section 14) */
.mo { table-layout: fixed; }
.mo th:first-child { width: 116px; }
.mo td { text-align: right; font-weight: 600; }
.mo td.gain { background: rgba(34, 230, 154, .09); color: var(--profit); } .mo td.loss { background: rgba(255, 107, 114, .10); color: var(--loss); }
.qt div { background: var(--bg-card); border-color: rgba(41, 57, 64, .65); min-height: 58px; display: grid; align-content: center; }
.qt div.gain { background: rgba(34, 230, 154, .07); border-color: rgba(34, 230, 154, .22); }
.qt div.loss { background: rgba(255, 107, 114, .08); border-color: rgba(255, 107, 114, .26); }

/* how it trades and trades */
.how li { background: var(--bg-card); border-color: rgba(41, 57, 64, .65); }
.pill { border-color: var(--border); }
.pill[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: rgba(37, 247, 252, .08); box-shadow: var(--glow-cyan); font-weight: 600; }
.pill.p-all span { background: rgba(37, 247, 252, .12); color: var(--accent); }
.tr { border-color: var(--border); }
.tr thead th { background: var(--bg-raised); color: var(--text-muted); font-weight: 500; }
.tr td { font-size: 13px; font-weight: 400; color: var(--text-primary); }
.tr td:nth-child(6), .tr td:nth-child(8), .tr th:nth-child(6), .tr th:nth-child(8) { text-align: right; }
.tr td:nth-child(7), .tr th:nth-child(7), .tr td:nth-child(9), .tr th:nth-child(9) { text-align: left; }
.tr td:last-child { font-weight: 600; }
.pg button { border-color: var(--border); background: var(--bg-raised); border-radius: var(--radius-button); }
.pg button[aria-current=page] { background: var(--accent); color: #04161A; box-shadow: var(--glow-cyan); }
@media (hover: hover) and (pointer: fine) { .pg button:not(:disabled):not([aria-current]):hover, .pill:hover { border-color: var(--accent-teal); } }

/* disclosures */
.disc2 { display: grid; gap: 4px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-raised); }
.disc2 p { margin: 0; } .disc2 b { color: var(--text-secondary); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled, select:disabled { color: var(--text-disabled); }
@media (max-width: 760px) { .pg-h, .d-name h1 { font-size: 26px; line-height: 32px; } .risk-basis { flex-basis: 100%; } .h { font-size: 17px; } }
.det, .det:hover { border: 1px solid var(--border) !important; }   /* the big panel stays quiet (brief: no bright borders around every component) */
.fc-ins { white-space: normal; overflow: visible; }
/* critic round (design system) */
.det:focus, .det:focus-visible { outline: none; }
html { background: #070C12; }
body { background: radial-gradient(ellipse at 80% 0%, rgba(4, 160, 168, .08), transparent 45%), linear-gradient(135deg, #070C12, #0B1419 50%, #071A1E); min-height: 100vh; }
.tr td.gain { color: var(--profit); } .tr td.loss { color: var(--loss); }
.fc-ins { min-height: 40px; line-height: 20px; }
.det { background: var(--bg-surface); } .pn { background: var(--bg-raised); }
.kp-t > span { overflow: hidden; text-overflow: ellipsis; }
.spark .l { filter: drop-shadow(0 0 2px rgba(34, 230, 154, .25)); }
.fc .risk { font-size: 12px; padding: 4px 12px; }
.kp-t > span { white-space: normal; overflow: visible; text-overflow: clip; }
/* rev 6.1 (owner 2026-11-14): monthly table gets the room, quarterly tiles compact, both panels end level */
.two { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); align-items: stretch; }
.two > .pn { display: flex; flex-direction: column; }
.two > .pn > .tw { flex: 1; display: flex; }
.two > .pn > .tw > .mo { height: 100%; }
.mo { border-spacing: 4px 4px; }
.mo th:first-child { width: 120px; }
.mo td { padding: 9px 6px; font-size: 13px; }
.qt { flex: 1; gap: 6px; align-content: stretch; }
.qt div { min-height: 46px; padding: 6px 4px; }
.qt span { font-size: 11px; line-height: 14px; } .qt b { font-size: 15px; line-height: 20px; }
@media (max-width: 760px) { .two > .pn > .tw { display: block; } .two > .pn > .tw > .mo { height: auto; } .mo td { padding: 7px 5px; font-size: 12px; } }
@media (max-width: 760px) { .qt div { min-width: 0; } .qt b { font-size: 14px; } .two > .pn > .tw { max-width: 100%; overflow-x: auto; } }
/* owner tile icons (images/15.png): 24 px, no box on the face card; 22 px in the detail icon box */
.ft-i .ic { width: 24px; height: 24px; stroke-width: 1.7; } .ft-i { color: var(--text-primary); } .ft-i.gain { color: var(--profit); }
.kp-i .ic { width: 22px; height: 22px; stroke-width: 1.7; }
/* owner reference (KPI row): bare icons, no box */
.kp-i { width: auto; height: auto; border: 0; background: none; box-shadow: none; border-radius: 0; color: var(--text-primary); }
.kp-i .ic { width: 26px; height: 26px; }
.kp { gap: 14px; padding: 12px 14px; }
/* centred icons: header buttons and KPI tiles (no text-baseline offset) */
.round { display: grid; place-items: center; padding: 0; line-height: 0; }
.round svg { display: block; }
.bell::after { top: 8px; right: 9px; }
.kp-i { display: grid; place-items: center; align-self: center; line-height: 0; }
.kp-i .ic, .ft-i .ic { display: block; }
/* three levels (owner 2026-11-15): profile rows and the buying warning */
.prof-v { padding: 22px 26px 26px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--bg-surface); box-shadow: var(--shadow-card); }
.prof-v .d-name { margin-top: 6px; }
.srows { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.srow { display: grid; grid-template-columns: 96px minmax(0, 1.6fr) repeat(4, minmax(0, .8fr)) 150px 20px; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-raised); color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .srow:hover { border-color: var(--accent-teal); } }
.srow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-role { justify-self: start; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sr-role.lead { border-color: var(--accent); color: var(--accent); }
.sr-name { display: grid; gap: 2px; min-width: 0; } .sr-name b { font-size: 16px; } .sr-name span { color: var(--text-muted); font-size: 12px; }
.sr-name em { color: var(--loss); font-style: normal; font-weight: 600; }
.sr-f { display: grid; gap: 2px; } .sr-f span { color: var(--text-muted); font-size: 12px; } .sr-f b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.sr-sp .spark { margin: 0; } .sr-sp .spark svg { height: 44px; } .sr-go { color: var(--accent); font-size: 18px; }
.fc-warn { margin: 0; padding: 6px 10px; border: 1px solid rgba(255, 107, 114, .4); border-radius: 8px; background: rgba(255, 107, 114, .08); color: var(--loss); font-size: 12px; font-weight: 600; }
/* owner 2026-11-26: the same 12 px above (the filter bar's margin) and below, and the panels' own edge and radius */
.warnbox { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--x-red-edge); border-radius: 12px; background: var(--x-red-bg); color: var(--text-secondary); font-size: 13px; line-height: 19px; }
.warnbox b:first-child { color: var(--loss); }
@media (max-width: 760px) { .b-pf + .warnbox { margin-top: 12px; } }   /* phones: the Filters row has no bottom margin of its own */
@media (max-width: 1100px) { .srow { grid-template-columns: 90px minmax(0, 1fr) repeat(2, minmax(0, .8fr)); } .sr-sp, .sr-go { display: none; } }
@media (max-width: 760px) { .prof-v { padding: 16px; } .srow { grid-template-columns: 1fr 1fr; } .sr-role, .sr-name { grid-column: 1 / -1; } }
/* light theme (owner 2026-11-15): the site's TickJury light values (tokens.css, E37); the --x-* names follow them */
:root[data-theme=light] {
  --bg-page: #EEF3F5; --bg-surface: #FFFFFF; --bg-raised: #F4F8F9; --bg-card: #F4F8F9; --bg-muted: #E6EEF0;
  --accent: #037C83; --accent-teal: #037C83; --profit: #0A7D52; --loss: #C2333C; --warning: #A16207;
  --text-primary: #0B1A20; --text-secondary: #2E434C; --text-muted: #56707C; --text-disabled: #9AAEB6;
  --border: #D5E0E4; --border-active: #037C83;
  --shadow-card: 0 8px 24px rgba(11, 26, 32, .06); --glow-cyan: 0 0 0 transparent;
  --x-bg: var(--bg-page); --x-bar: rgba(255, 255, 255, .9); --x-panel: var(--bg-surface); --x-panel-2: var(--bg-raised);
  --x-card-a: var(--bg-surface); --x-card-b: var(--bg-raised); --x-tile: var(--bg-card); --x-tile-hi: var(--bg-card);
  --x-edge: var(--border); --x-edge-2: #C3D1D6;
  --x-teal: var(--accent); --x-teal-ink: #FFFFFF; --x-teal-glow: rgba(3, 124, 131, .10); --x-teal-wash: rgba(3, 124, 131, .10);
  --x-green: var(--profit); --x-green-bg: rgba(10, 125, 82, .10); --x-green-edge: rgba(10, 125, 82, .28);
  --x-red: var(--loss); --x-red-bg: rgba(194, 51, 60, .08); --x-red-edge: rgba(194, 51, 60, .30);
  --x-amber: var(--warning); --x-amber-bg: rgba(161, 98, 7, .10);
  --x-ink: var(--text-primary); --x-ink-2: var(--text-secondary); --x-mute: var(--text-muted); --x-sel: var(--bg-muted);
}
html[data-theme=light] { background: #EEF3F5; }
html[data-theme=light] body { background: radial-gradient(ellipse at 80% 0%, rgba(3, 124, 131, .06), transparent 45%), #EEF3F5; }
html[data-theme=light] body::before { display: none; }
:root[data-theme=light] .seg button[aria-pressed=true], :root[data-theme=light] .rng button[aria-pressed=true],
:root[data-theme=light] .pg button[aria-current=page] { color: #FFFFFF; }
:root[data-theme=light] .ft, :root[data-theme=light] .kp, :root[data-theme=light] .how li, :root[data-theme=light] .qt div:not(.gain):not(.loss) { border-color: var(--border); }
:root[data-theme=light] .mo td.gain { background: rgba(10, 125, 82, .09); } :root[data-theme=light] .mo td.loss { background: rgba(194, 51, 60, .08); }
.credit { margin: 10px 0 0; color: var(--text-muted); font-size: 12px; } .credit a { color: var(--text-secondary); }

/* phone fixes (owner 2026-11-15) */
@media (max-width: 760px) {
  .top { gap: 8px; } .top .bell { display: none; } .top .round { flex: none; width: 44px; height: 44px; } .mock-tag { font-size: 12px; }
  .acts .btn { padding: 0 12px; }
  .sort { min-height: 44px; padding: 0 4px; }
  .q { width: 44px; height: 44px; margin: -11px; } .cap-h .q { width: 44px; height: 44px; margin: -13px -13px -13px -9px; }
  .q.on::after, .q:hover::after { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; z-index: 20;
    padding: 12px 14px; font-size: 13px; line-height: 18px; box-shadow: var(--shadow-card); }
  .pn-h { flex-wrap: wrap; row-gap: 6px; } .pn-h .h { white-space: nowrap; }
  .kps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kp { gap: 10px; padding: 10px 12px; } .kp-i .ic { width: 20px; height: 20px; }
  .kps .defs { grid-column: 1 / -1; min-height: 44px; }
  .kps .defs br { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .two > .pn > .tw { display: block; overflow-x: auto; }
  .mo { min-width: 640px; height: auto; } .mo th:first-child { width: 84px; }
  .mo th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--bg-raised); white-space: normal; line-height: 15px; }
  .mo thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-raised); }
  .qt span { font-size: 12px; } .qt b { font-size: 15px; } .qt div { min-height: 52px; }
  .how ol { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .how li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 8px 10px; }
  .how li b { grid-row: span 2; }
  .tr-ph table { width: 100%; font-size: 13px; }
  .tr-ph th:nth-child(n), .tr-ph td:nth-child(n) { position: static; background: none; white-space: normal; text-align: left; vertical-align: top; padding: 10px 8px; }
  .tr-ph th:last-child, .tr-ph td:last-child { width: 1%; text-align: right; white-space: nowrap; }
  .tr-ph td:last-child { font-size: 15px; font-weight: 700; line-height: 20px; }
  .tr-ph td:first-child { line-height: 20px; color: var(--text-primary); font-weight: 500; }
  .tr-ph td time { margin-right: 4px; color: var(--text-secondary); font-size: 12px; font-weight: 400; }
  .tr-ph td > span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 16px; }
  .tr-ph td > span .src { margin-left: 2px; }
  .tr-ph thead th:nth-child(n) { padding: 0 8px; background: var(--bg-raised); } .tr-ph thead th:last-child { line-height: 16px; } .tr-ph thead th:last-child .sort { white-space: nowrap; }
  .fc-per, .fc-note { font-size: 12px; }
  .credit a { display: inline-flex; align-items: center; min-height: 24px; }
}
@media (max-width: 760px) { .det .pn { padding: 14px 12px; } }
@media (max-width: 760px) { .sort { min-width: 44px; } }

/* P-1 size and shape, teal selection kept (owner 2026-11-15): pills 28 px with a mouse, 32 px painted in a 44 px tap area on phones */
.seg { padding: 2px; } .seg button, .rng button, .pill { min-height: 28px; }
.sel select, .step select, .btn, .pg button { height: 28px; min-height: 28px; border-radius: 999px; }
.pg button { min-width: 28px; } .pill span { line-height: 18px; }
@media (max-width: 760px), (pointer: coarse) {
  .seg, .rng { gap: 0; padding: 0; border: 0; background: none; margin: 0 -6px; }
  .seg button, .rng button, .sel select, .step select { height: 44px; min-height: 44px; border: 6px solid transparent; border-radius: 999px; background-clip: padding-box; }
  .seg button, .rng button { min-width: 44px; padding: 0 12px; background-color: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; }
  .seg button[aria-pressed=true], .rng button[aria-pressed=true] { background-color: var(--accent); background-clip: padding-box; box-shadow: none; }
  .sel select, .step select { box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; }
  .sel .ic { left: 17px; } .sel.has-ic select { padding-left: 34px; min-width: 128px; }
  .fbar { gap: 4px 10px; }
  .pill, .btn, .pg button { height: 44px; min-height: 44px; border: 6px solid transparent; border-radius: 999px; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--border); }
  .pill { padding: 0 4px 0 10px; } .pill span { line-height: 20px; } .pills { gap: 0; margin: 0 -6px; } .pg { gap: 0; }
  .pg button { min-width: 44px; padding: 0 6px; }
  .pill[aria-pressed=true] { border-color: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--accent), var(--glow-cyan); }
  .pg button[aria-current=page] { border-color: transparent; background-clip: padding-box; box-shadow: none; }
  .tr-bar { gap: 6px 14px; } .tr-bar .btn { margin-right: -6px; } .acts .btn:last-child { margin-right: -6px; }
}
/* charts on phones (owner 2026-11-15): narrow scale, one-line tip strip on top, Kite and Max notes off the plot */
@media (max-width: 760px) {
  .chart { min-height: 280px; } .chart.dd { min-height: 180px; }
  .ctip.strip { left: 0; right: 0; top: 0; display: block; min-width: 0; padding: 3px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
  .ctip.strip b { color: var(--text-primary); }
}
/* phones (owner 2026-11-15): no outer frame around the detail page, so panels, charts and the trade rows get the width */
@media (max-width: 760px) { .det, .det:hover { padding: 4px 0 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none; } }
@media (max-width: 760px) { .tr-ph th:nth-child(n), .tr-ph td:nth-child(n) { padding-left: 6px; padding-right: 6px; } .tr-ph thead th:nth-child(n) { padding: 0 6px; } .tr-ph .sort { padding: 0; } #trades { padding-left: 10px; padding-right: 10px; } }
/* pass 4 (owner 2026-11-15): charts reach the panel edge; tap-to-read line; filters in two rows (A) */
.t-d { display: none; }
@media (max-width: 760px) {
  #eq, #dd { margin-right: -12px; touch-action: pan-y; }
  .fbar { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 4px; }
  .fbar .seg { grid-column: 1 / -1; }
  .fbar .sel .ic { display: none; } .fbar .sel.has-ic select, .fbar .sel select { min-width: 0; padding-left: 12px; }
  .fbar .t-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .fbar .t-d { display: inline; }
  .fbar > label:last-child { justify-self: end; }
}
/* instrument (leg) selector (owner 2026-11-15): reuses the .seg pills of the filter row */
.how.dim { opacity: .45; } .how-h small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.leg-note b { color: var(--accent); }

/* ===== Backtest page, Overview + Performance (owner 2026-11-20, approved mock-ups ?v=O / ?v=P). Controls on the site's
   standard sizes (console.css P-1: 28 px with a mouse; 32 px painted in a 44 px tap on phones; --sel-bg pick).
   Manrope (OFL) for headings and figures on /options only. ===== */
@font-face { font-family: "Manrope"; src: url("/shared/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
body.tc .bt { --b-head: "Manrope", var(--font-main); padding: 0; border: 0 !important; background: none; box-shadow: none; }
.bt .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bt .ic { width: 16px; height: 16px; flex: none; }
/* the trail is the shell's .tc-crumb, as /models (owner 2026-11-25) */
.b-head { position: relative; display: flex; align-items: flex-start; gap: 20px; margin: 12px 0 12px; } .b-id { flex: 1; min-width: 0; }
.b-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .b-t h1 { margin: 0; font: 700 20px/28px var(--font-main); color: var(--x-ink); }   /* Inter 20/28 (owner 2026-11-27) */
.b-chips { display: contents; } .b-meta { display: none; }   /* phones show the risk and as-of on their own row (.b-meta) */
.bt .b-t .risk { height: 24px; padding: 0 10px; font-size: 11px; }
.b-acts { display: flex; gap: 8px; flex: none; }
body.tc .bt .b-btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 28px; min-height: 28px; padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: 999px; background: none; color: var(--x-ink); font: 600 12px/26px var(--font-main); text-decoration: none; cursor: pointer; white-space: nowrap; }
body.tc .bt .b-btn .ic { width: 14px; height: 14px; }
body.tc .bt .b-btn.pri { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.b-pf { display: none; }
.b-st { display: block; color: var(--x-green); font-size: 12px; text-align: right; }
.b-tabs { display: flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; height: 28px; box-sizing: border-box; padding: 2px; margin: 0 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
.b-tabs a { height: 22px; padding: 0 12px; border-radius: 999px; color: var(--x-ink-2); font: 600 12px/22px var(--font-main); text-decoration: none; white-space: nowrap; }
.b-tabs a[aria-current] { background: var(--sel-bg); color: var(--sel-ink); }
.b-fb { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); }
.b-fg { display: flex; flex-direction: column; gap: 6px; } .b-fl { display: inline-flex; align-items: center; gap: 4px; color: var(--x-mute); font-size: 12px; line-height: 16px; } .b-fv { align-self: stretch; width: 1px; background: var(--x-edge); }
.b-range { display: inline-flex; align-items: center; gap: 4px; color: var(--x-mute); }
body.tc .bt .b-sel { position: relative; display: inline-flex; align-items: center; } body.tc .bt .b-sel.b-date .ic { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--x-mute); pointer-events: none; }
body.tc .bt .b-sel select { box-sizing: border-box; height: 28px; min-height: 28px; padding: 0 28px 0 12px; border: 1px solid var(--ctl-line); border-radius: 999px; background-color: var(--surface-2); color: var(--x-ink); font: 500 12px/26px var(--font-main); }
body.tc .bt .b-sel.b-date select { padding-left: 30px; }
body.tc .bt .b-seg { display: inline-flex; align-items: center; gap: 2px; height: 28px; box-sizing: border-box; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
body.tc .bt .b-seg > button { display: inline-flex; align-items: center; gap: 6px; height: 22px; min-height: 22px; min-width: 0; padding: 0 12px; margin: 0; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--x-ink-2); font: 600 12px/22px var(--font-main); cursor: pointer; white-space: nowrap; }
body.tc .bt .b-seg > button .ic { width: 14px; height: 14px; }
body.tc .bt .b-seg > button[aria-pressed=true] { background-color: var(--sel-bg); color: var(--sel-ink); }   /* outranks console.css .seg (the hand-off's pressed-fill bug) */
.b-fm b { font: 800 16px/28px var(--b-head); color: var(--x-ink); }
body.tc .bt .b-rst { margin-left: auto; color: var(--x-ink-2); }
.b-k7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.b-k4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.b-kc { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); }
.b-ki { color: var(--x-ink-2); } .b-ki .ic { width: 24px; height: 24px; } .b-kt { display: grid; gap: 2px; min-width: 0; }
.b-kt > span { display: inline-flex; align-items: center; gap: 2px; color: var(--x-mute); font-size: 12px; line-height: 16px; white-space: nowrap; }
.b-kt b { font: 800 22px/28px var(--b-head); color: var(--x-ink); white-space: nowrap; } .b-kt b.gain { color: var(--x-green); } .b-kt b.loss { color: var(--x-red); }
.b-k4 .b-kc { padding: 16px 18px; } .b-k4 .b-ki .ic { width: 30px; height: 30px; } .b-k4 .b-kt b { font-size: 28px; line-height: 36px; }
.b-k4 .b-kc:first-child { border-color: var(--x-green-edge); background: linear-gradient(180deg, var(--x-green-bg), var(--x-panel)); }
.b-k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; padding: 10px 0; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); }
.b-k3 > div { display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--x-ink-2); font-size: 14px; } .b-k3 > div + div { border-left: 1px solid var(--x-edge); } .b-k3 > div > span { display: inline-flex; align-items: center; gap: 2px; }
.b-k3 .ic { width: 20px; height: 20px; } .b-k3 b { margin-left: 10px; font: 700 18px var(--b-head); color: var(--x-ink); }
.bt .q { width: 18px; height: 18px; color: var(--x-mute); } .bt .q .ic { width: 14px; height: 14px; }
.bt .q:focus-visible::after { content: attr(data-tip); position: absolute; left: 22px; top: -4px; z-index: 5; width: 270px; padding: 8px 10px; border: 1px solid var(--x-edge-2); border-radius: 8px; background: var(--x-panel-2); color: var(--x-ink); font: 400 12px/18px var(--font-main); white-space: normal; text-align: left; }
.b-pn { min-width: 0; padding: 14px 18px 12px; margin-bottom: 12px; border: 1px solid var(--x-edge); border-radius: 14px; background: var(--x-panel); }
.b-ph { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; } .b-ph h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 800 18px/24px var(--b-head); color: var(--x-ink); }
.b-ph h2 .ic { width: 18px; height: 18px; color: var(--x-green); } .b-ps { color: var(--x-mute); font-size: 12px; } .b-ph .b-tg { margin-left: auto; }
.b-r2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; } .b-r3 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.b-ch { position: relative; height: 330px; }
.b-pn.b-kx { border-color: var(--x-green-edge); background: linear-gradient(180deg, var(--x-green-bg), var(--x-panel) 60%); }
.b-fx { list-style: none; margin: 4px 0 0; padding: 0; } .b-fx li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--x-edge); font-size: 14px; }
.b-fx li:last-child { border-bottom: 0; } .b-fx li > .ic { width: 18px; height: 18px; color: var(--x-ink-2); } .b-fx span { display: inline-flex; align-items: center; gap: 2px; color: var(--x-ink-2); }
.b-fx b { font: 700 16px var(--b-head); color: var(--x-ink); text-align: right; white-space: nowrap; } .b-fx b.gain { color: var(--x-green); } .b-fx b.loss { color: var(--x-red); } .b-fx small { min-width: 52px; color: var(--x-mute); font-size: 12px; text-align: right; }
.b-mb { display: block; font: 12px var(--font-main); } .b-mb.sm { font-size: 11px; } .b-mb text { fill: var(--x-ink-2); } .b-mb .gl { stroke: var(--grid); stroke-dasharray: 3 4; } .b-mb .z { stroke: var(--x-ink-2); stroke-width: 1.2; }
.b-mb rect.p { fill: var(--x-green); } .b-mb rect.n { fill: var(--x-red); }
.b-gw { overflow-x: auto; } .b-mg { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.b-mg th { padding: 4px 2px; color: var(--x-mute); font-weight: 500; text-align: center; } .b-mg tbody th { text-align: left; color: var(--x-ink); font-weight: 600; font-size: 14px; }
.b-mg td { padding: 8px 2px; border-radius: 6px; text-align: center; font-weight: 600; color: var(--x-ink); } .b-mg .na { background: var(--surface-2); color: var(--x-mute); font-weight: 400; opacity: .7; }
.b-mg .hp { background: rgba(34, 230, 154, var(--a)); } .b-mg .hn { background: rgba(255, 107, 114, var(--a)); } .b-mg .tt { padding-left: 8px; text-align: right; white-space: nowrap; } .b-mg td.tt.gain { color: var(--x-green); } .b-mg td.tt.loss { color: var(--x-red); }
:root[data-theme=light] .b-mg .hp { background: rgba(10, 125, 82, var(--a)); } :root[data-theme=light] .b-mg .hn { background: rgba(194, 51, 60, var(--a)); }
.b-note { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 16px; border: 1px solid var(--x-edge); border-radius: 12px; color: var(--x-ink-2); font-size: 14px; }
.b-note .ic { color: var(--x-teal); } .b-note a { margin-left: auto; color: var(--x-teal); font-weight: 600; white-space: nowrap; text-decoration: none; }
@media (max-width: 1399px) { body.tc .bt .b-rst span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } body.tc .bt .b-rst { width: 28px; padding: 0; justify-content: center; } }
@media (max-width: 1279px) { .b-k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .b-r2 { grid-template-columns: 1fr; } }
/* the phone sheet */
.b-sheet { max-width: none; width: 100%; margin: auto 0 0; padding: 8px 16px 16px; border: 1px solid var(--x-edge); border-radius: 16px 16px 0 0; background: var(--x-panel); color: var(--x-ink); max-height: 86vh; overflow-y: auto; box-sizing: border-box; }
.b-sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sh-h { display: flex; align-items: center; justify-content: space-between; min-height: 44px; } .sh-h h2 { margin: 0; font: 800 18px "Manrope", var(--font-main); }
.sh-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--x-ink-2); font-size: 26px; cursor: pointer; }
.sh-s { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--x-edge); } .sh-2 { display: flex; align-items: center; gap: 8px; }
.sh-m { color: var(--x-mute); font-size: 12px; } .sh-m b { display: block; color: var(--x-ink); font: 800 16px "Manrope", var(--font-main); }
.sh-a { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding-top: 12px; }
.b-sheet .b-seg { display: flex; } .b-sheet .b-seg > button { flex: 1 1 0; min-width: 0; justify-content: center; box-sizing: border-box; height: 44px; padding: 0 4px; border: 6px solid transparent; background-clip: padding-box; border-radius: 999px; background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--x-ink-2); font: 600 14px/32px var(--font-main); cursor: pointer; }
.b-sheet .b-seg > button[aria-pressed=true] { background-color: var(--sel-bg); color: var(--sel-ink); box-shadow: none; }
.b-sheet .b-sel { position: relative; display: inline-flex; align-items: center; flex: 1; } .b-sheet .b-sel .ic { position: absolute; left: 14px; width: 14px; height: 14px; color: var(--x-mute); pointer-events: none; }
.b-sheet .b-sel select { width: 100%; box-sizing: border-box; height: 44px; padding: 0 28px 0 34px; border: 1px solid var(--ctl-line); border-radius: 999px; background-color: var(--surface-2); color: var(--x-ink); font: 500 14px var(--font-main); }
.b-sheet .b-step { display: inline-flex; align-items: center; height: 44px; box-sizing: border-box; border: 1px solid var(--ctl-line); border-radius: 999px; } .b-sheet .b-step button { width: 44px; height: 42px; border: 0; background: none; color: var(--x-ink); font-size: 18px; cursor: pointer; } .b-sheet .b-step b { min-width: 56px; text-align: center; font-size: 14px; }
.b-sheet .b-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--ctl-line); border-radius: 999px; background: none; color: var(--x-ink); font: 700 14px var(--font-main); cursor: pointer; }
.b-sheet .b-btn.pri { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.b-sheet .q { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; background: none; color: var(--x-mute); padding: 0; } .b-sheet .q .ic { width: 14px; height: 14px; }
@media (max-width: 760px) {
  body.tc .bt .b-acts, .bt .tc-crumb { display: none; }
  .b-head { margin: 0 0 4px; } .b-t { gap: 6px; flex-wrap: nowrap; } .b-t h1 { flex: 0 1 auto; min-width: 0; } .b-chips { display: none; }
  .b-tabs { width: auto; height: auto; margin: 0 -16px 8px; padding: 0 16px; border: 0; border-radius: 0; background: none; gap: 0; overflow-x: auto; scrollbar-width: none; } .b-tabs::-webkit-scrollbar { display: none; }
  .b-tabs a, body.tc .bt .b-seg > button { box-sizing: border-box; flex: none; height: 44px; min-height: 44px; padding: 0 12px; border: 6px solid transparent; background-clip: padding-box; background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); line-height: 32px; font-size: 14px; }
  .b-tabs a[aria-current], body.tc .bt .b-seg > button[aria-pressed=true] { background-color: var(--sel-bg); background-clip: padding-box; box-shadow: none; }
  body.tc .bt .b-seg { height: auto; padding: 0; border: 0; background: none; gap: 0; } .b-ph .b-tg .ic { display: none; }
  .b-fb { display: none; }
  .b-pf { display: flex; gap: 8px; } .b-pr, .b-pfb { box-sizing: border-box; height: 44px; border-radius: 999px; font: 14px var(--font-main); cursor: pointer; }
  .b-pr { flex: 1; min-width: 0; padding: 0 14px; border: 1px solid var(--ctl-line); background: var(--x-panel); color: var(--x-ink-2); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .b-pr b { color: var(--x-ink); }
  .b-pfb { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--x-teal); background: var(--x-teal-wash); color: var(--x-teal); font-weight: 700; }
  .b-pfb i { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--x-teal); color: var(--x-teal-ink); font: 700 11px var(--font-main); font-style: normal; }
  .b-k7 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .b-k7 .b-kc { grid-column: span 3; padding: 12px; } .b-k7 .b-kc:nth-child(n + 5) { grid-column: span 2; padding: 10px; }
  .b-k7 .b-kc:nth-child(n + 5) .b-kt b { font-size: 18px; line-height: 24px; } .b-kc .b-ki { display: none; } .b-kt b { font-size: 20px; line-height: 26px; }
  .b-k4 { grid-template-columns: 1fr 1fr; gap: 8px; } .b-k4 .b-kc { padding: 12px; } .b-k4 .b-kt b { font-size: 22px; line-height: 28px; }
  .b-k3 > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 10px; font-size: 12px; } .b-k3 > div > .ic { display: none; }   /* the label's i stays */ .b-k3 b { margin: 0; font-size: 18px; }
  .b-r2, .b-r3 { grid-template-columns: 1fr; gap: 0; } .b-pn { padding: 12px 12px 10px; } .b-ph h2 { font-size: 16px; } .b-ph .b-ps { order: 3; flex-basis: 100%; } .b-ph .b-tg { order: 2; }
  .b-ch { height: 230px; } .b-fx li { padding: 10px 0; font-size: 14px; } .b-fx b { font-size: 14px; }
  .b-mg { min-width: 640px; } .b-mg tbody th, .b-mg thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--x-panel); }
  .b-note { display: grid; grid-template-columns: 16px 1fr; gap: 4px 10px; align-items: start; font-size: 12px; } .b-note .ic { margin-top: 2px; } .b-note a { grid-column: 2; margin-left: 0; min-height: 32px; display: inline-flex; align-items: center; }
  .bt .q { width: 44px; height: 44px; margin: -14px; }
}
@media (max-width: 359px) {
  .b-pr { padding: 0 10px; font-size: 12px; } .b-pfb { padding: 0 10px; } .b-pfb .ic { display: none; }
  .b-k3 > div { padding: 0 6px; font-size: 11px; white-space: nowrap; } .b-k3 b { font-size: 16px; } .b-kt > span { font-size: 11px; }
  .b-fx li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 8px; font-size: 12px; } .b-fx small { display: none; }
}

.bt .b-t .risk { display: inline-flex; align-items: center; align-self: center; margin: 0; position: static; transform: none; } .b-fx span { white-space: nowrap; } .b-fx li { grid-template-columns: 22px minmax(0, 1fr) auto auto; }

.b-r2 { grid-template-columns: minmax(0, 1fr) 380px; } .b-fx li { gap: 4px 8px; }   /* the longest label, its i and its value on one line */
@media (max-width: 1279px) { .b-r2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .b-r2 { grid-template-columns: 1fr; } }
.b-pn { border-radius: 12px; }   /* the card radius (E21) */
@media (max-width: 760px) { .bt .q { flex: none; } .b-note a { min-height: 44px; } .b-fx li { grid-template-columns: 22px minmax(0, 1fr) auto auto; } }   /* 44 px taps */
body.tc .bt .b-mg th, body.tc .bt .b-mg td { font-size: 12px; } body.tc .bt .b-mg tbody th { font-size: 14px; }   /* outranks the shared table heads */
#tc-main .b-sheet .b-sel select { padding: 0 28px 0 36px; font-size: 14px; } .b-sheet .q { margin: -13px -13px -13px 0; width: 44px; height: 44px; }   /* the sheet sits outside .bt: its own fixes */

/* ===== Trades + Strategy & rules (owner 2026-11-20, approved mock-ups ?v=T / ?v=R2); one period control on every tab ===== */
.b-rng { display: inline-flex; align-items: center; height: 28px; color: var(--x-ink); font: 600 14px var(--font-main); white-space: nowrap; }
.b-lw { display: inline; } .b-ls { display: none; }
.b-tq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; } .b-tq > .b-pn { margin-bottom: 12px; }
.b-aw { display: grid; grid-template-columns: 1fr 1fr; } .b-aw > div { display: grid; gap: 2px; padding: 0 16px; } .b-aw > div:first-child { padding-left: 0; } .b-aw > div + div { border-left: 1px solid var(--x-edge); }
.b-aw span { display: inline-flex; align-items: center; gap: 2px; color: var(--x-mute); font-size: 12px; } .b-aw b { font: 800 28px/36px var(--b-head); color: var(--x-ink); } .b-aw b.gain { color: var(--x-green); } .b-aw b.loss { color: var(--x-red); }
.b-awn { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border: 1px solid rgba(245, 184, 92, .35); border-radius: 10px; background: var(--x-amber-bg); color: var(--x-ink-2); font-size: 14px; } .b-awn .ic { color: var(--x-amber); }
.b-xbar { display: flex; gap: 3px; height: 12px; margin: 8px 0 12px; border-radius: 6px; overflow: hidden; } .b-xbar i { display: block; } .b-xbar .tg { background: var(--x-green); } .b-xbar .st { background: var(--x-red); } .b-xbar .tx { background: var(--x-mute); }
.b-xch { display: flex; flex-wrap: wrap; gap: 8px; }
body.tc .bt .b-xc { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: 999px; background: none; color: var(--x-ink-2); font: 500 12px var(--font-main); cursor: pointer; }
.b-xc i { width: 8px; height: 8px; border-radius: 999px; } .b-xc.tg i { background: var(--x-green); } .b-xc.st i { background: var(--x-red); } .b-xc.tx i { background: var(--x-mute); } .b-xc b { color: var(--x-ink); }
body.tc .bt .b-xc[aria-pressed=true] { border-color: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-bg); color: var(--x-ink); }
.b-th { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; } .b-th h2 { margin: 0 auto 0 0; font: 800 18px/24px var(--b-head); color: var(--x-ink); } .b-th h2 span { color: var(--x-mute); font: 400 12px var(--font-main); }
body.tc .bt .b-srch { position: relative; display: inline-flex; align-items: center; } body.tc .bt .b-srch .ic { position: absolute; left: 12px; width: 14px; height: 14px; color: var(--x-mute); pointer-events: none; }
body.tc .bt .b-srch input { box-sizing: border-box; width: 170px; height: 28px; min-height: 28px; padding: 0 12px 0 32px; border: 1px solid var(--ctl-line); border-radius: 999px; background: var(--surface-2); color: var(--x-ink); font: 12px var(--font-main); }
body.tc .bt .b-seg > button i { font-style: normal; opacity: .75; margin-left: 2px; }
.b-afc { margin: 0 0 6px; } .b-afc span { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--x-teal-wash); color: var(--x-teal); font: 600 12px var(--font-main); }
.b-afc button { width: 24px; height: 24px; border: 0; background: none; color: inherit; font-size: 14px; cursor: pointer; }
.b-tn { margin: 0 0 6px; color: var(--x-mute); font-size: 12px; }
.b-tw { overflow-x: auto; } .b-tt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
body.tc .bt .b-tt th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--x-panel); color: var(--x-mute); font-weight: 500; font-size: 12px; text-align: left; border-bottom: 1px solid var(--x-edge); white-space: nowrap; }
.b-tt td { height: 44px; padding: 0 12px; border-bottom: 1px solid var(--grid); white-space: nowrap; color: var(--x-ink); } .b-tt .n { text-align: right; } .b-tt tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); } .b-tt tbody tr:hover { background: var(--surface-2); }
.b-tt b.gain { color: var(--x-green); } .b-tt b.loss { color: var(--x-red); }
body.tc .bt .b-sh { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.b-pos { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 12px var(--font-main); } .b-pos-CE { background: var(--x-teal-wash); color: var(--x-teal); } .b-pos-PE { background: rgba(184, 167, 255, .16); color: var(--ser-3); }
.b-why { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--x-ink-2); font: 600 12px var(--font-main); }
.b-why-Target { color: var(--x-green); border-color: var(--x-green-edge); } .b-why-Stop { color: var(--x-amber); border-color: rgba(245, 184, 92, .45); }
.b-tc { display: none; } .b-pg { display: flex; align-items: center; gap: 8px; margin-top: 12px; } .b-pg small { margin-left: auto; color: var(--x-mute); font-size: 12px; } .b-pgm { display: none; }
.b-pgd .pg { margin: 0; }
.b-empty { padding: 16px 0; color: var(--x-ink-2); font-size: 14px; }
.b-rr2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; } .b-rr3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.b-slp { margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--x-green-edge); border-radius: 999px; color: var(--x-green); font: 700 12px var(--font-main); }
.b-rlead { margin: 0 0 12px; }
.b-rg { display: grid; gap: 8px; } .b-rgr { display: grid; grid-template-columns: 170px repeat(5, minmax(0, 1fr)); gap: 8px; }
.b-rgh { padding: 6px 0; border: 1px solid var(--x-edge); border-radius: 8px; background: var(--surface-2); text-align: center; font: 700 12px var(--font-main); color: var(--x-ink); }
.b-rlh { display: grid; gap: 2px; align-content: center; padding: 12px 14px; border: 1px solid; border-radius: 12px; } .b-rlh b { font: 800 16px var(--b-head); } .b-rlh span { color: var(--x-ink-2); font: 600 12px var(--font-main); text-transform: uppercase; letter-spacing: .3px; } .b-rlh small { margin-top: 6px; color: var(--x-ink-2); font-size: 12px; }
.b-rl-CE { border-color: rgba(37, 247, 252, .55); background: var(--x-teal-wash); } .b-rl-CE b { color: var(--x-teal); } .b-rl-PE { border-color: rgba(184, 167, 255, .55); background: rgba(184, 167, 255, .07); } .b-rl-PE b { color: var(--ser-3); }
.b-rc { display: grid; gap: 2px; align-content: start; min-height: 112px; padding: 12px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--surface-2); color: var(--x-mute); font-size: 12px; }
.b-nn { color: var(--x-mute); font: 600 12px var(--font-main); text-transform: uppercase; letter-spacing: .3px; }
.b-rc.on { border-color: var(--x-green-edge); background: linear-gradient(180deg, var(--x-green-bg), var(--x-panel)); color: var(--x-ink-2); } .b-rc.on b { color: var(--x-ink); font: 800 22px/28px var(--b-head); }
.b-ae { justify-self: start; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--x-green-edge); border-radius: 999px; color: var(--x-green); font: 700 11px var(--font-main); text-transform: uppercase; letter-spacing: .3px; }
.b-rc.dim, .b-rlh.dim, .b-rpc.dim, .b-rpc li.dim { opacity: .4; }
.b-corr { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--x-ink-2); font-size: 14px; } .b-corr b { padding: 0 10px; border: 1px solid var(--x-teal); border-radius: 999px; color: var(--x-ink); }
.b-gl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; } .b-gl li { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--surface-2); }
.b-gl b { color: var(--x-teal); font: 800 22px var(--b-head); white-space: nowrap; } .b-gl span { color: var(--x-ink-2); font-size: 14px; } .b-gl small { display: block; color: var(--x-mute); font: 600 11px var(--font-main); text-transform: uppercase; letter-spacing: .3px; }
.b-mgn { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--x-amber); font-size: 12px; }
.b-fl4 { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.b-fl4 li { position: relative; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--surface-2); }
.b-fl4 li + li::before { content: "→"; position: absolute; left: -18px; top: 50%; transform: translateY(-50%); color: var(--x-teal); font-weight: 700; }
.b-fn { justify-self: start; padding: 0 8px; border: 1px solid var(--x-teal); border-radius: 999px; color: var(--x-teal); font: 700 11px/18px var(--font-main); } .b-fl4 b { color: var(--x-ink); font: 700 14px var(--font-main); text-transform: uppercase; letter-spacing: .3px; } .b-fl4 span:last-child { color: var(--x-mute); font-size: 12px; }
.b-tm { margin: 4px 0 0; display: grid; gap: 10px; } .b-tm div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 14px; } .b-tm dt { color: var(--x-teal); font-weight: 700; } .b-tm dd { margin: 0; color: var(--x-ink-2); }
.b-tm2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.b-rph { display: none; }
@media (max-width: 1279px) { .b-rr2 { grid-template-columns: 1fr; } .b-tq { grid-template-columns: 1fr; gap: 0; } .b-tm2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  /* owner 2026-11-20: the period pill and Filters paint 32 px in a 44 px tap, like every other control */
  .b-pr, .b-pfb { height: 44px; border: 6px solid transparent !important; background-clip: padding-box; font-size: 14px; padding: 0 12px; }
  .b-pr { background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ctl-line); } .b-pfb { background-color: var(--x-teal-wash); box-shadow: inset 0 0 0 1px var(--x-teal); }
  .b-pr .ic, .b-pfb .ic { width: 14px; height: 14px; } .b-pfb i { min-width: 16px; height: 16px; }
  .b-ls { display: inline; } .b-lw { display: none; } .b-k3 > div > span { white-space: nowrap; }
  .b-aw b { font-size: 22px; line-height: 28px; } .b-aw > div { padding: 0 10px; } .b-awn { font-size: 14px; align-items: flex-start; }
  .b-xch { display: grid; gap: 0; } body.tc .bt .b-xc { height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--x-edge); border-radius: 0; font-size: 14px; } body.tc .bt .b-xc:last-child { border-bottom: 0; }
  .b-xc b { margin-left: auto; } body.tc .bt .b-xc[aria-pressed=true] { box-shadow: none; color: var(--x-teal); }
  .b-th { gap: 0; } .b-th h2 { flex: 1 1 100%; margin-bottom: 6px; }
  body.tc .bt .b-srch { flex: 1 1 100%; } body.tc .bt .b-srch input { width: 100%; height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); padding-left: 32px; font-size: 16px; } body.tc .bt .b-srch .ic { left: 16px; }
  .b-th .b-seg { flex: 1 1 100%; display: flex; } body.tc .bt .b-th .b-seg > button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 2px; font-size: 12px; }
  .b-th .b-sel { flex: 1 1 0; } body.tc .bt .b-th .b-sel select { width: 100%; font-size: 16px; }
  body.tc .bt .b-th .b-btn { flex: 1 1 100%; justify-content: center; }
  .b-tw, .b-pgd, .b-pg small { display: none; }
  .b-tc { display: grid; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; } .b-tc details { border: 1px solid var(--x-edge); border-radius: 12px; background: var(--surface-2); }
  .b-tc summary { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; list-style: none; cursor: pointer; } .b-tc summary::-webkit-details-marker { display: none; }
  .b-tc1 { flex: 1; min-width: 0; display: grid; gap: 4px; } .b-tc1 b { color: var(--x-ink); font-size: 14px; white-space: nowrap; } .b-tc1 > span { display: flex; align-items: center; gap: 8px; color: var(--x-ink-2); font-size: 14px; }
  .b-tc2 { display: grid; justify-items: end; gap: 4px; } .b-tc2 b { font: 700 16px var(--b-head); } .b-tc2 b.gain { color: var(--x-green); } .b-tc2 b.loss { color: var(--x-red); }
  .b-tc dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 10px 12px; border-top: 1px solid var(--x-edge); } .b-tc dt { color: var(--x-mute); font-size: 12px; } .b-tc dd { margin: 2px 0 0; color: var(--x-ink); font-weight: 600; font-size: 14px; }
  .b-pgm { display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--x-ink-2); font-size: 14px; }
  .b-rr2, .b-rr3 { grid-template-columns: 1fr; gap: 0; } .b-slp { display: none; }
  .b-rg { display: none; } .b-rph { display: grid; gap: 10px; }
  .b-rpc { border: 1px solid; border-radius: 12px; overflow: hidden; } .b-rph-h { display: grid; gap: 2px; padding: 12px 14px; } .b-rph-h b { font: 800 18px var(--b-head); } .b-rph-h span { color: var(--x-ink-2); font-size: 12px; }
  .b-rpc ol { list-style: none; margin: 0; padding: 0; } .b-rpc li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-top: 1px solid var(--x-edge); background: var(--surface-2); }
  .b-rpc li.on { background: linear-gradient(90deg, var(--x-green-bg), var(--surface-2)); } .b-rd { color: var(--x-ink); font: 700 14px var(--font-main); } .b-ri { display: grid; gap: 2px; justify-items: start; } .b-ri b { color: var(--x-ink); font: 800 20px/24px var(--b-head); } .b-ri small { color: var(--x-ink-2); font-size: 12px; }
  .b-corr { flex-wrap: wrap; font-size: 14px; }
  .b-gl { grid-template-columns: 1fr 1fr; } .b-gl li { grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; } .b-gl b { font-size: 20px; } .b-gl span { font-size: 12px; }
  .b-fl4 { grid-template-columns: 1fr; gap: 18px; } .b-fl4 li + li::before { content: "↓"; left: 50%; top: -16px; transform: translateX(-50%); }
  .b-tm div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 359px) { .b-tc1 b { font-size: 12px; } .b-tc2 b { font-size: 14px; } .b-tc summary { gap: 6px; padding: 10px; } body.tc .bt .b-th .b-seg > button i { display: none; } .b-k3 > div > span { font-size: 11px; } }
body.tc .bt .b-tt td { text-align: left; } body.tc .bt .b-tt td.n, body.tc .bt .b-tt th.n { text-align: right; } .b-tn:focus { outline: none; }
body.tc #tc-main .bt .b-srch input { padding: 0 12px 0 32px; height: 28px; min-height: 28px; border-radius: 999px; }
@media (max-width: 760px) { body.tc #tc-main .bt .b-srch input { height: 44px; padding-left: 38px; } }
@media (max-width: 430px) { body.tc .bt .b-th .b-seg > button i { display: none; } }   /* phone chips: the counts are in the list line */
body.tc .bt .src { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 6px; font-size: 11px; line-height: 16px; vertical-align: 1px; }
@media (max-width: 760px) { body.tc .bt .b-th .b-btn, body.tc .bt .b-pgm .b-btn { box-sizing: border-box; height: 44px; min-height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); line-height: 32px; } }
body.tc .bt .b-pgd .pg button { box-sizing: border-box; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--ctl-line); border-radius: 999px; background: none; color: var(--x-ink-2); font: 600 12px/26px var(--font-main); }
body.tc .bt .b-pgd .pg button[aria-current] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); } body.tc .bt .b-pgd .pg { display: flex; align-items: center; gap: 6px; }

/* ===== Strategy Explorer landing (owner's final mock-ups, 2026-11-20): chips fill the row, Capital and Sort at the right,
   a top-right 1Y-4Y switch, V1 rows; phones: chips scroll, rows become cards. Controls on the standard sizes. ===== */
.xp .x-h1 { margin: 12px 0 4px; font: 800 32px/40px var(--b-head); color: var(--x-ink); letter-spacing: -.3px; }
.xp .x-lead { margin: 0 0 20px; color: var(--x-ink-2); font-size: 16px; }
.x-ctl { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; } .x-cg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-chips-w { flex: 1 1 auto; } .x-chips { display: flex; gap: 6px; } .x-rgt { display: flex; gap: 12px; flex: none; }
body.tc .xp .x-chip { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 52px; padding: 0 12px; border: 1px solid var(--x-edge); border-radius: 10px; background: var(--x-panel); color: var(--x-ink-2); font: 500 14px/18px var(--font-main); text-align: left; cursor: pointer; }
body.tc .xp .x-chip .ic { width: 20px; height: 20px; } body.tc .xp .x-chip.x-all { flex: 0 0 auto; } .x-chip i { font-style: normal; color: var(--x-mute); }
body.tc .xp .x-chip[aria-pressed=true] { border-color: var(--x-teal); background: var(--x-teal-wash); color: var(--x-ink); box-shadow: 0 0 0 1px rgba(37, 247, 252, .35); font-weight: 700; }
.x-lh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 12px; } .x-lha { align-items: center; }
.x-h3 { margin: 0; font: 800 24px/32px var(--b-head); color: var(--x-ink); } .x-sub { margin: 4px 0 0; color: var(--x-ink-2); font-size: 16px; } .x-rc { margin: 0; color: var(--x-ink-2); font-size: 14px; }
.x-pb { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.x-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 24px; padding: 12px 18px; border: 1px solid rgba(4, 160, 168, .35); border-radius: 12px; background: linear-gradient(90deg, rgba(4, 160, 168, .14), rgba(4, 160, 168, .05)); }
.x-strip h2 { margin: 0; font: 800 22px/28px var(--b-head); color: var(--x-ink); } .x-strip > * + * { padding-left: 18px; border-left: 1px solid var(--x-edge); }
.x-caps, .x-cnt { color: var(--x-ink-2); font-size: 14px; } .x-caps { font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.xp .risk { height: 24px; padding: 0 10px; font-size: 11px; flex: none; }
.x-grp { margin-bottom: 28px; } .x-rn { display: none; } .x-gh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; } .x-gh h3 { margin: 0; font: 800 20px/28px var(--b-head); color: var(--x-ink); }
.x-no { color: var(--x-mute); font: 700 14px var(--font-main); }
.x-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.x-row { display: grid; grid-template-columns: 132px minmax(0, 2.2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) 176px; align-items: center; min-height: 92px; padding: 0 16px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); }
.x-row.lead { border-color: rgba(37, 247, 252, .28); background: linear-gradient(90deg, rgba(37, 247, 252, .07), var(--x-panel) 40%); }
.x-role { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--ctl-line); border-radius: 999px; color: var(--x-ink-2); font: 800 11px var(--font-main); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.x-role.lead { border-color: var(--x-teal); color: var(--x-teal); }
.x-nm { display: grid; gap: 2px; min-width: 0; padding: 0 18px; border-left: 1px solid var(--x-edge); align-self: stretch; align-content: center; }
.x-nm b { font: 700 18px/24px var(--b-head); color: var(--x-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .x-nm span { color: var(--x-mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-f { display: grid; gap: 2px; padding: 0 16px; white-space: nowrap; min-width: 0; } .x-f + .x-f { border-left: 1px solid var(--x-edge); } .x-ret { border-left: 1px solid var(--x-edge); }
.x-f > span { color: var(--x-mute); font-size: 12px; } .x-f b { font: 800 20px/26px var(--b-head); color: var(--x-ink); } .x-f b.gain { color: var(--x-green); } .x-f b small { display: block; color: var(--x-mute); font: 400 12px var(--font-main); }
.x-s { display: none; } .x-sp { padding: 6px 12px; min-width: 0; } .x-sp .spark { height: 44px; }
.x-cta { display: flex; align-items: center; justify-content: center; align-self: stretch; padding-left: 16px; border-left: 1px solid var(--x-edge); }
body.tc .xp .x-go { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sel-bg); color: var(--sel-ink); font: 700 12px/28px var(--font-main); text-decoration: none; white-space: nowrap; }
body.tc .xp .x-go .ic { width: 14px; height: 14px; } body.tc .xp .x-go.lk { background: none; border: 1px solid var(--x-teal); color: var(--x-teal); }
.x-warn { grid-column: 2 / -1; margin: 0 0 10px 18px; color: var(--x-amber); font-size: 12px; }
.x-empty { padding: 16px 0; color: var(--x-ink-2); }
.xp .b-note { margin-top: 16px; }
@media (max-width: 1279px) {
  .x-ctl { flex-wrap: wrap; } .x-chips-w { flex-basis: 100%; } .x-rgt { margin-left: auto; }
  .x-row { grid-template-columns: 132px minmax(0, 2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.1fr) 168px; } .x-row .x-pm, .x-row .x-sp { display: none; }
}
@media (max-width: 760px) {
  .xp .x-h1 { font-size: 24px; line-height: 30px; } .xp .x-lead { font-size: 14px; margin-bottom: 16px; } #tc-main .xp .x-rc { font-size: 12px; }   /* round 2: the count line stays smaller than the lead, so the lead (painted before the data) is the largest text */
  .x-ctl { display: block; margin-bottom: 16px; } .x-chips { overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; } .x-chips::-webkit-scrollbar { display: none; }
  body.tc .xp .x-chip { flex: none; height: 52px; font-size: 14px; }
  .x-rgt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; } .x-rgt .b-sel { width: 100%; }
  body.tc .xp .x-rgt .b-sel select { width: 100%; height: 44px; min-height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); font-size: 16px; }
  .x-lh, .x-lha { flex-direction: column; align-items: stretch; gap: 10px; } .x-pb { align-items: stretch; }
  .x-pb .b-seg { display: flex; } body.tc .xp .x-pb .b-seg > button { flex: 1 1 0; justify-content: center; }
  .x-h3 { font-size: 20px; line-height: 26px; } .x-sub { font-size: 14px; }
  .x-strip { gap: 8px 12px; padding: 12px 14px; } .x-strip > * + * { padding-left: 0; border-left: 0; } .x-strip h2 { font-size: 20px; line-height: 26px; } .x-caps, .x-cnt { font-size: 12px; }
  .x-gh h3 { font-size: 18px; line-height: 24px; }
  .x-row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "role role role" "nm nm nm" "a b c" "sp sp sp" "cta cta cta"; gap: 10px 0; min-height: 0; padding: 14px 16px; }
  .x-role { grid-area: role; } .x-nm { grid-area: nm; padding: 0; border: 0; } .x-nm b { font-size: 18px; } .x-nm span { white-space: normal; font-size: 12px; }
  .x-ret { grid-area: a; padding-left: 0; border-left: 0 !important; } .x-dd { grid-area: b; } .x-mg { grid-area: c; } .x-row .x-pm { display: none; } .x-f { padding: 0 0 0 12px; } .x-f b { font-size: 18px; line-height: 24px; }
  .x-row .x-sp { display: block; grid-area: sp; padding: 0; } .x-cta { grid-area: cta; padding: 0; border: 0; }
  body.tc .xp .x-go { width: 100%; justify-content: center; height: 44px; border: 6px solid transparent; background-clip: padding-box; line-height: 32px; font-size: 14px; }
  body.tc .xp .x-go.lk { border: 6px solid transparent; box-shadow: inset 0 0 0 1px var(--x-teal); }
  .x-warn { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 359px) { .x-l { display: none; } .x-s { display: inline; } .x-f b { font-size: 16px; } }
body.tc .xp .x-sp .spark { margin: 0; } body.tc .xp .x-sp .spark svg { height: 48px; }   /* the row sparkline stays in its cell */
@media (max-width: 760px) { body.tc .xp .x-sp .spark svg { height: 44px; } }
@media (max-width: 760px) { .x-rgt { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .x-row { align-items: start; } body.tc .xp .x-rgt .b-sel select { padding-left: 10px; padding-right: 24px; } }
@media (max-width: 760px) {   /* owner 2026-11-20: the Lead / Alternative pill on the right, on the name line */
  .x-row { grid-template-areas: "nm nm role" "a b c" "sp sp sp" "cta cta cta"; } .x-role { justify-self: end; align-self: start; margin-top: 2px; }
}
@media (max-width: 760px) { .x-row { column-gap: 10px; } .x-nm { min-width: 0; } .x-f { padding-left: 10px; } .x-ret { padding-left: 0; } }
@media (max-width: 400px) { .x-role { padding: 0 8px; } }
@media (max-width: 760px) {   /* the pill sits top-right; the name wraps beside it instead of being cut */
  .x-row { position: relative; grid-template-areas: "nm nm nm" "a b c" "sp sp sp" "cta cta cta"; } .x-role { position: absolute; top: 14px; right: 16px; margin: 0; }
  /* room for the badge: its width plus 20 px (owner 2026-11-26: "pair" stays on the name line where it fits) */
  .x-nm { --x-nm-pr: 68px; padding-right: var(--x-nm-pr); } .x-nm b { white-space: normal; overflow: visible; } .x-row.lead .x-nm { --x-nm-pr: 80px; }
}
@media (max-width: 359px) { .x-rgt { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 6px; } body.tc .xp .x-rgt .b-sel select { padding: 0 20px 0 8px; background-position: right 6px center; } .x-mg .x-mgw { display: none; } }
@media (max-width: 359px) { .x-mg b { font-size: 14px; } .x-row { padding: 14px 12px; } }

/* ===== Live tab + Telegram follow (owner 2026-11-20, approved mock-ups ?v=L / ?v=TG; root CLAUDE.md "Live exception") ===== */
.b-ldot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 99px; background: var(--x-green); vertical-align: 1px; }
body.tc .bt .b-fol { border-color: var(--x-teal); color: var(--x-teal); }
.b-pfol { display: none; }
.b-lban { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; margin-bottom: 12px; border: 1px solid var(--x-green-edge); border-radius: 12px; background: linear-gradient(90deg, var(--x-green-bg), rgba(34, 230, 154, .02)); }
.b-lic { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--x-green-edge); border-radius: 999px; color: var(--x-green); } .b-lic .ic { width: 24px; height: 24px; }
.b-lban > div b { display: block; font: 800 22px/28px var(--b-head); color: var(--x-ink); text-transform: uppercase; } .b-lban > div span { display: inline-flex; align-items: center; gap: 2px; color: var(--x-ink-2); font-size: 14px; }
.b-mon { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-left: 12px; border: 1px solid var(--x-green-edge); border-radius: 999px; background: var(--x-green-bg); color: var(--x-ink); font: 600 12px var(--font-main); }
.b-mon i { width: 7px; height: 7px; border-radius: 99px; background: var(--x-green); } .b-mon.off { border-color: var(--x-edge); background: none; } .b-mon.off i { background: var(--x-mute); } .b-mon.sm { height: 24px; margin: 0 0 0 auto; }
.b-lu { display: inline-flex; align-items: center; gap: 6px; color: var(--x-ink-2); font-size: 14px; } .b-lu b.gain { color: var(--x-green); } .b-stale { font-style: normal; color: var(--x-amber); } .b-lban .b-fv { height: 28px; align-self: center; }
.b-lerr { box-sizing: border-box; display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 480px; padding: 24px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); color: var(--x-ink-2); font-size: 14px; text-align: center; }
@media (max-width: 760px) { body.tc .bt .b-lerr .b-btn { height: 44px; min-height: 44px; padding: 0 16px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); font-size: 13px; } }
.b-lsk { height: 420px; border-radius: 12px; background: linear-gradient(90deg, var(--x-panel), var(--surface-2), var(--x-panel)); }
.b-lmain { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; } .b-lleft { min-width: 0; } .b-lright { display: grid; gap: 12px; align-content: start; } .b-lright > .b-pn { margin: 0; }
.b-lts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.b-lt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 12px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); } .b-lt .b-ki .ic { width: 20px; height: 20px; }
.b-lt .b-kt b { font-size: 22px; line-height: 28px; } .b-lt .b-kt > span { white-space: nowrap; } .b-lt.hl { border-color: var(--x-green-edge); background: linear-gradient(180deg, var(--x-green-bg), var(--x-panel)); }
.b-lr1 { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 12px; }
.b-ltb { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
body.tc .bt .b-ltb th { padding: 6px 4px; color: var(--x-mute); font-weight: 500; font-size: 12px; text-align: left; border-bottom: 1px solid var(--x-edge); white-space: nowrap; }
body.tc .bt .b-ltb td { padding: 10px 4px; border-bottom: 1px solid var(--grid); color: var(--x-ink); text-align: left; vertical-align: middle; } body.tc .bt .b-ltb .n { text-align: right; white-space: nowrap; }
.b-ltb td:first-child { display: flex; align-items: center; gap: 8px; } .b-ltb .gain { color: var(--x-green); } .b-ltb .loss { color: var(--x-red); }
.b-ob { display: inline-grid; place-items: center; flex: none; width: 28px; height: 24px; border-radius: 6px; color: #fff; font: 700 11px var(--font-main); } .b-ob-PE { background: var(--random); } .b-ob-CE { background: var(--teal); }
.b-ctr { font-weight: 600; } .b-lg2 { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; } .b-er { color: var(--x-ink-2); font-size: 11px; max-width: 110px; }
.b-lpc { display: none; }
.b-lch .ar { fill: var(--x-green); opacity: .2; } .b-lch .ln { fill: none; stroke: var(--x-green); stroke-width: 2; } .b-lch .pt { fill: #fff; stroke: var(--x-green); stroke-width: 2; }
.b-ms { margin: 0; display: grid; gap: 10px; } .b-ms div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; } .b-ms dt { color: var(--x-ink-2); } .b-ms dd { margin: 0; color: var(--x-ink); text-align: right; } .b-ms dd.gain { color: var(--x-green); } .b-ms dd.loss { color: var(--x-red); }
.b-sag { margin: 0; display: grid; gap: 10px; } .b-sag div { display: grid; grid-template-columns: 18px 96px 1fr; align-items: center; gap: 8px; font-size: 12px; } .b-sag .ic { width: 16px; height: 16px; color: var(--x-ink-2); } .b-sag dt { color: var(--x-ink-2); } .b-sag dd { margin: 0; color: var(--x-ink); }
.b-vfs { display: block; margin-top: 12px; padding: 8px; border-radius: 10px; background: var(--x-teal-wash); color: var(--x-teal); font: 600 12px var(--font-main); text-align: center; text-decoration: none; }
.b-tgc { border-color: rgba(37, 247, 252, .4); } .b-tgh { display: flex; gap: 12px; } .b-tgh b { display: block; color: var(--x-ink); font: 800 16px var(--b-head); } .b-tgh span { color: var(--x-ink-2); font-size: 12px; }
.b-tgi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; background: #229ED9; color: #fff; } .b-tgi.lg { width: 56px; height: 56px; } .b-tgi.lg .ic { width: 26px; height: 26px; }
body.tc .bt .b-tgb { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 12px 0; border: 1px solid var(--x-teal); border-radius: 12px; background: none; color: var(--x-teal); font: 700 14px var(--font-main); cursor: pointer; }
.b-tg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .b-tg3 span { display: grid; justify-items: center; gap: 4px; color: var(--x-ink-2); font-size: 11px; text-align: center; } .b-tg3 .ic { width: 18px; height: 18px; padding: 2px; border-radius: 99px; background: var(--x-green); color: #04161A; }
@media (max-width: 1279px) { .b-lmain { grid-template-columns: 1fr; } .b-lright { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-lright .b-tgc { grid-column: 1 / -1; } .b-lts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body.tc .bt .b-pfol { display: inline-flex; float: right; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--x-teal); border-radius: 999px; background-color: transparent; color: var(--x-teal); font: 600 14px var(--font-main); cursor: pointer; }
  .b-lban { gap: 8px 12px; padding: 12px 14px; } .b-lic { width: 40px; height: 40px; } .b-lban > div b { font-size: 18px; line-height: 24px; } .b-lban > div span { font-size: 12px; }
  .b-mon { margin-left: auto; } .b-lban .b-fv { display: none; } .b-lban .b-lu { flex: 1 1 100%; font-size: 12px; }
  .b-lright { grid-template-columns: 1fr; } .b-lts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .b-lt .b-ki { display: block; } .b-lt .b-kt b { font-size: 20px; line-height: 24px; }
  .b-lr1 { grid-template-columns: 1fr; gap: 0; }
  .b-ltb { display: none; } .b-lpc { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; } .b-lpc li { padding: 12px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--surface-2); }
  .b-lpc1 { display: flex; align-items: center; gap: 10px; } .b-lpc1 b { flex: 1; min-width: 0; color: var(--x-ink); font-size: 14px; } .b-lpc dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 6px; }
  .b-lpc dt { color: var(--x-mute); font-size: 12px; } .b-lpc dd { margin: 2px 0 0; color: var(--x-ink); font-weight: 700; font-size: 14px; } .b-lpc dd.gain { color: var(--x-green); } .b-lpc dd.loss { color: var(--x-red); } .b-lpc .b-er { max-width: none; margin: 0; font-size: 12px; }
  body.tc .bt .b-tgb { height: 44px; } .b-tg3 span { font-size: 12px; }
}
body.tc .bt .b-ltb td.b-er { white-space: normal; min-width: 96px; max-width: 120px; line-height: 14px; } .b-ctr { line-height: 16px; white-space: nowrap; } .b-ctr span { color: var(--x-ink-2); font-weight: 400; }

/* ===== Live tab, closer to the concept (2026-11-20) ===== */
.b-lmain { grid-template-columns: minmax(0, 1fr) 356px; }
.b-lt .b-ki.gain { color: var(--x-green); } .b-lt .b-ki.loss { color: var(--x-red); } .b-lt .b-ki .ic { width: 24px; height: 24px; }
.b-lt { padding: 16px 14px; }
.b-lch .gl { stroke: var(--grid); stroke-width: 1; } .b-lch .z { stroke: var(--x-edge); stroke-width: 1; }
.b-lch .ln { fill: none; stroke: var(--x-green); stroke-width: 2; } .b-lch .ln.lr { stroke: var(--x-red); }
.b-lch .dl { stroke: var(--x-green); stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
.b-lch .bg { fill: var(--x-panel); stroke: var(--x-green-edge); } .b-lch .bg.neg { stroke: var(--x-red-edge); }
.b-lch .bv { fill: var(--x-green); font: 700 12px var(--font-main); } .b-lch .bv.neg { fill: var(--x-red); } .b-lch .bt { fill: var(--x-ink-2); font: 400 11px var(--font-main); }
.b-lch .pt { fill: var(--x-ink); stroke: var(--x-green); stroke-width: 2; }
.b-ph .b-lsg, .b-ph .b-lev { margin-left: auto; }
.b-ltb .b-er { font-size: 11px; line-height: 16px; max-width: 120px; }
.b-sag > div { padding: 8px 0; border-bottom: 1px solid var(--grid); } .b-sag > div:last-child { border-bottom: 0; }
@media (max-width: 1279px) { .b-lmain { grid-template-columns: 1fr; } }
/* the Live tab's header card (owner 2026-11-26, concept C): status | the live controls; phones stack it and keep the controls */
.b-lhd { display: flex; align-items: stretch; margin-bottom: 12px; border: 1px solid var(--x-green-edge); border-radius: 12px; background: var(--x-panel); overflow: hidden; }
.b-lhd.off { border-color: var(--x-edge); }
.b-lhl { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; padding: 12px 18px; background: linear-gradient(90deg, var(--x-green-bg), transparent); }
.b-lhd.off .b-lhl { background: none; } .b-lhd.off .b-lic { border-color: var(--x-edge); color: var(--x-mute); }
.b-lhl .b-lic { width: 40px; height: 40px; flex: none; }
.b-lht { display: grid; gap: 2px; min-width: 0; } .b-lht > b { display: inline-flex; align-items: center; gap: 2px; font: 800 17px/22px var(--b-head); color: var(--x-ink); }
.b-lhm { color: var(--x-mute); font-size: 13px; } .b-lhm b { color: var(--x-ink-2); font-weight: 600; } .b-lhm .nw { white-space: nowrap; }
.b-lhl .b-mon { margin: 0; }
.b-lhr { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-left: 1px solid var(--x-edge); }
.b-lhg { display: inline-flex; align-items: center; gap: 8px; } .b-lhk { color: var(--x-mute); font-size: 12px; }
.b-lhmg { display: inline-flex; align-items: baseline; gap: 4px; color: var(--x-mute); font-size: 12px; white-space: nowrap; } .b-lhmg b { margin-left: 2px; color: var(--x-ink); font: 700 15px var(--b-head); }
.b-lmsg { gap: 12px; } .b-lmsg > span { color: var(--x-ink-2); font-size: 14px; }
@media (max-width: 1100px) { .b-lhd { flex-direction: column; } .b-lhr { border-left: 0; border-top: 1px solid var(--x-edge); flex-wrap: wrap; } .b-lhmg { margin-left: auto; } }
@media (max-width: 760px) {
  .b-lhl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; } .b-lhl .b-mon { align-self: start; margin-top: 1px; }
  .b-lht > b { font-size: 16px; line-height: 22px; } .b-lhm { font-size: 12px; }
  .b-lhr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 8px 14px 10px; }
  .b-lhg { display: contents; } .b-lhgl .b-seg { display: flex; grid-column: 2 / -1; min-width: 0; } .b-lhmg { justify-self: end; margin: 0; }
  body.tc .bt .b-lhr .b-seg { padding: 0; gap: 0; border: 0; background: none; box-shadow: none; } body.tc .bt .b-lhr .b-seg > button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
  body.tc .bt .b-lhr .b-sel select { height: 44px; min-height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--x-edge); font-size: 16px; }
}
@media (max-width: 400px) { .b-lhl .b-lic { display: none; } .b-lhl { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 359px) { .b-lhk { display: none; } .b-lhgl .b-seg { grid-column: 1 / -1; } .b-lhmg { grid-column: 2 / -1; } }
.b-ms div { grid-template-columns: 1fr auto auto auto; column-gap: 8px; }
.b-lr1 { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } .b-lr1 .b-ph { flex-wrap: nowrap; } .b-lr1 .b-ph h2 { white-space: nowrap; }
.b-sag > div { padding: 6px 0; }
@media (max-width: 760px) { .b-lr1 .b-ph { flex-wrap: wrap; } }
.b-ltb td:first-child { display: table-cell; white-space: nowrap; } .b-ltb td:first-child .b-ob { margin-right: 8px; vertical-align: middle; } .b-ltb .b-ctr { display: inline-block; vertical-align: middle; }
body.tc .bt .b-ltb td.b-er { min-width: 84px; max-width: 104px; } body.tc .bt .b-ltb th, body.tc .bt .b-ltb td { padding-left: 3px; padding-right: 3px; }
@media (max-width: 760px) { .b-lr1 { grid-template-columns: minmax(0, 1fr); } .b-lr1 .b-ph h2 { white-space: normal; } .b-ph .b-lsg { margin-left: 0; } }

/* ===== Live tab: two content-height stacks (owner 2026-11-20): positions + activity | chart + summary ===== */
body.tc .bt .b-ltb th { font-size: 11px; } body.tc .bt .b-ltb td { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) {
  .b-lpos { order: 1; } .b-lchp { order: 2; } .b-lact { order: 3; }
}
.b-lt.hl.neg { border-color: var(--x-red-edge); background: linear-gradient(180deg, var(--x-red-bg), var(--x-panel)); }
@media (min-width: 1360px) { .b-lban { flex-wrap: nowrap; gap: 8px 14px; } .b-lban .b-lu { white-space: nowrap; font-size: 12px; } .b-lban > div { min-width: 0; } }
@media (max-width: 1359px) { .b-lmain { grid-template-columns: 1fr; } .b-lright { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; } .b-lright .b-tgc { grid-column: 1 / -1; } }
@media (max-width: 760px) { .b-lright { grid-template-columns: 1fr; } }
@media (max-width: 1359px) { .b-lright { align-items: start; } }

/* ===== Live right column as the concept (owner 2026-11-20): divided snapshot rows, one-line glance rows, glowing Telegram CTA ===== */
.b-ms { gap: 0; border: 1px solid var(--x-edge); border-radius: 8px; } .b-ms > div { padding: 7px 12px; border-bottom: 1px solid var(--x-edge); } .b-ms > div:last-child { border-bottom: 0; }
.b-sag { gap: 0; } .b-sag > div { grid-template-columns: 18px 104px minmax(0, 1fr); padding: 7px 0; } .b-sag dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tgh > div > span { display: block; margin-top: 4px; }
body.tc .bt .b-tgb { height: 46px; margin: 14px 0 12px; border: 1.5px solid var(--x-teal); background: var(--x-teal-wash); color: var(--x-teal); font: 800 16px var(--font-main); box-shadow: 0 0 18px rgba(37, 247, 252, .22); }
body.tc .bt .b-tgb .ic { width: 20px; height: 20px; }
.b-tg3 span { font-size: 12px; white-space: nowrap; }
@media (min-width: 1360px) { .b-lright { align-content: stretch; grid-template-rows: auto auto 1fr; } .b-lright .b-tgc { display: flex; flex-direction: column; justify-content: space-between; } }
.b-tgh .b-tgi { flex: none; } @media (min-width: 1360px) { .b-lright .b-tgc { justify-content: center; } }

/* ===== Backtest tabs as the concept (owner 2026-11-20): plain text tabs on a ruled row, the active one a cyan pill ===== */
.b-tabs { width: auto; max-width: none; height: auto; padding: 0 0 8px; gap: 20px; margin: 0 0 14px; border: 0; border-bottom: 1px solid var(--x-edge); border-radius: 0; background: none; }
.b-tabs a { height: 28px; padding: 0 14px; color: var(--x-ink); font: 600 14px/28px var(--font-main); }
.b-tabs a:hover { color: var(--x-teal); } .b-tabs a[aria-current] { background: var(--sel-bg); color: var(--sel-ink); } .b-tabs a[aria-current]:hover { color: var(--sel-ink); }
@media (max-width: 760px) {
  .b-tabs { gap: 0; padding: 0 16px; border-bottom: 1px solid var(--x-edge); }
  .b-tabs a { background-color: transparent; box-shadow: none; color: var(--x-ink); }
  .b-tabs a[aria-current] { background-color: var(--sel-bg); color: var(--sel-ink); }
}

/* ===== Live tab: carried-forward positions (owner concept 143, 2026-11-20) ===== */
.bt { --x-cf: #A78BFA; --x-cf-bg: rgba(167, 139, 250, .14); --x-cf-edge: rgba(167, 139, 250, .55); }
:root[data-theme="light"] .bt { --x-cf: #6D4FD8; --x-cf-bg: rgba(109, 79, 216, .10); --x-cf-edge: rgba(109, 79, 216, .45); }
.b-lts7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } .b-lts7 .b-lt { padding: 14px 10px; gap: 8px; } .b-lts7 .b-kt b { font-size: 20px; line-height: 26px; } .b-lts7 .b-kt > span { font-size: 12px; white-space: normal; line-height: 15px; }
.b-lts7 .b-ki .ic { width: 22px; height: 22px; }
.b-lt.cf { border-color: var(--x-cf-edge); background: linear-gradient(180deg, var(--x-cf-bg), var(--x-panel)); } .b-lt.cf .b-ki { color: var(--x-cf); }
.b-cfb { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 20px; padding: 0 8px; border: 1px solid var(--x-cf-edge); border-radius: 999px; background: var(--x-cf-bg); color: var(--x-cf); font: 800 11px var(--font-main); text-transform: uppercase; letter-spacing: .3px; }
.b-cfb.nw { border-color: var(--x-green-edge); background: var(--x-green-bg); color: var(--x-green); }
.b-ltb.cf td small { display: block; font-size: 11px; font-weight: 500; } .b-ltb .b-src { font-size: 11px; line-height: 14px; color: var(--x-ink-2); white-space: nowrap; }
.b-ltb .b-src.cf { color: var(--x-cf); } .b-ltb .b-src small { color: var(--x-mute); }
.b-lpos .b-ph { flex-wrap: wrap; } .b-lpos .b-lsg { margin-left: auto; }
.b-lpc li.cf { border-color: var(--x-cf-edge); }
@media (max-width: 1359px) { .b-lts7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .b-lts7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-lts7 .b-lt:nth-child(5) { grid-column: 1 / -1; }
  .b-lpos .b-lsg { margin-left: 0; overflow-x: auto; max-width: 100%; }
}

/* concept 143 grid: row 1 positions (wide) | chart; row 2 activity | summary (wider); each row one height */
.b-lts7 .b-lt { padding: 12px 8px; } .b-lts7 .b-kt > span { white-space: nowrap; } .b-lts7 .b-lt.ni .b-ki { display: none; } .b-lts7 .b-lt.ni { justify-content: center; }
.b-ltb.cf td:nth-child(2) { white-space: nowrap; }
.b-ltb.cf td.n small { display: inline; margin-left: 4px; } .b-ltb.cf td.n { white-space: nowrap; }
@media (max-width: 760px) { .b-lpos .b-lsg { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; } .b-lpos .b-lsg::-webkit-scrollbar { display: none; }
  .b-lpc1 { flex-wrap: wrap; row-gap: 6px; } .b-lpc1 b { min-width: 0; }
}
@media (max-width: 1359px) { .b-lmain { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .b-tg3 span { white-space: normal; } }

/* ===== owner fixes on the CF mock-up (2026-11-20) ===== */
.b-lts7 i { font-style: normal; } .b-lts7 .l2 { display: none; }
/* summary: both rows on one card grid; the panel body fills its height */
/* right column: natural heights, no stretched Telegram card */
@media (min-width: 1360px) { .b-lright { align-content: start; grid-template-rows: none; } .b-lright .b-tgc { display: block; } }
body.tc .bt .b-tgb { margin: 12px 0 10px; }
@media (max-width: 760px) {
  /* phone tiles: 4 counts 2x2, then 3 compact P&L chips in one row */
  .b-lts7 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .b-lts7 .b-lt { grid-column: span 3; } .b-lts7 .b-lt:nth-child(5) { grid-column: span 2; }
  .b-lts7 .b-lt.pl { grid-column: span 2; padding: 10px 8px; } .b-lts7 .b-lt.pl .b-ki { display: none; } .b-lts7 .b-lt.pl .b-kt b { font-size: 16px; line-height: 20px; } .b-lts7 .b-lt.pl .b-kt > span { font-size: 11px; }
  .b-lts7 .l1 { display: none; } .b-lts7 .l2 { display: inline; }
  /* phone summary: 2x2 figures, Net P&L (total) full width, then 2x2 counts */
  /* standard select on phones: 32 painted in 44, 13 px */
  body.tc #tc-main .bt .b-sel select { height: 44px; min-height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); }
}
/* ===== phone fixes (owner 2026-11-20): Monitoring top right in the banner, centred pill text, chart switch top right ===== */
@media (max-width: 760px) {
  .b-lban { position: relative; } .b-lban .b-mon { position: absolute; top: 12px; right: 14px; margin: 0; }
  body.tc .bt .b-seg > button, .b-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; padding-top: 0; padding-bottom: 0; text-align: center; }
  .b-tabs a .b-ldot { margin: 0; vertical-align: 0; }
  .b-lchp .b-ph { flex-wrap: nowrap; align-items: center; } .b-lchp .b-ph h2 { flex: 1 1 auto; min-width: 0; } .b-lchp .b-ph .b-lsg { margin-left: auto; flex: none; }
}
@media (max-width: 760px) { .b-tabs a[aria-current] { background-clip: padding-box; } }
@media (max-width: 760px) { .b-vfs { display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 12px; } }   /* 44 px tap */
.x-pfn { font-style: normal; color: var(--x-teal); }   /* the profile name on the flat sorted list (owner 2026-11-21) */
.x-rc b { color: var(--x-ink); }
/* audit 2026-11-21: Live position cards on small phones: the contract gets its own line, the four figures keep a gap and never touch */
@media (max-width: 760px) { .b-lpc1 b { flex: 1 1 100%; order: 3; } .b-lpc dl { column-gap: 12px; } .b-lpc dd { white-space: nowrap; }
  .b-lpc dl > div:last-child { text-align: right; } }
@media (max-width: 360px) { .b-lpc dd { font-size: 13px; } }
/* ===== audit round (owner 2026-11-21) ===== */
/* O4: the export is a download icon after the sort select */
body.tc .bt .b-dlb { box-sizing: border-box; display: inline-grid; place-items: center; width: 28px; min-width: 28px; height: 28px; padding: 0; border-radius: 999px; }
body.tc .bt .b-dlb .ic { width: 14px; height: 14px; margin: 0; }
/* O5: the trade card's three figures run edge to edge */
.b-tc dl { display: flex; justify-content: space-between; gap: 12px; } .b-tc dl > div:last-child { text-align: right; }
/* O2: the risk pills' words sit in the middle */
.xp .risk { display: inline-flex; align-items: center; line-height: 1; }
@media (max-width: 760px) {
  .x-rgt { grid-template-columns: 1fr 1fr; }   /* Capital and Sort by: equal widths */
  /* Trades toolbar: Exit reason | Newest first | download icon on one row */
  .b-th { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
  .b-th > h2, .b-th > .b-srch, .b-th > .b-seg { grid-column: 1 / -1; } .b-th > .b-sel, .b-th > .b-sel select { width: 100%; }
  body.tc .bt .b-dlb { width: 44px; min-width: 44px; height: 44px; border: 6px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); }
  body.tc .bt .b-dlb .ic { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .b-th { grid-template-columns: minmax(0, 1fr) 44px; } .b-th > .b-sel:nth-of-type(3) { grid-column: 1 / -1; grid-row: auto; order: 9; }
  .x-rgt { grid-template-columns: minmax(0, 1fr); }   /* the smallest phones: Capital, then Sort by, each full width (no cut words) */
}
/* O6 (owner pick A, 2026-11-21): Execution flow is a compact numbered list joined by a thin line, on every width */
.b-fl4 { position: relative; grid-template-columns: 1fr; gap: 0; margin: 8px 0 0; }
.b-fl4::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 1px; background: var(--x-teal); opacity: .45; }
.b-fl4 li { grid-template-columns: 40px auto minmax(0, 1fr); align-items: center; gap: 0 10px; padding: 10px 0; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--grid); }
.b-fl4 li:last-child { border-bottom: 0; } .b-fl4 li + li::before { display: none; }
.b-fl4 li > :nth-child(3) { justify-self: end; color: var(--x-ink-2); font-size: 14px; text-align: right; }
.b-fn { position: relative; z-index: 1; justify-self: center; background: var(--x-panel); }
@media (max-width: 760px) { .b-fl4 li > :nth-child(3) { font-size: 12px; } }
/* Live (audit 2026-11-21): the averages appear once a trade closes; the one-session label is text; the filter pills fit the card */
.b-sag dd { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 760px) { .b-lpos .b-lsg { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .b-lpos .b-lsg > button { min-width: 0; padding: 0 6px; font-size: 13px; } }
@media (max-width: 760px) {   /* the menu wrapper fills its slot, so paired dropdowns are equal (audit 2026-11-21) */
  .b-th > .b-sel, .x-rgt .b-sel { display: flex; width: 100%; } .b-th > .b-sel .tc-selx, .x-rgt .b-sel .tc-selx { flex: 1 1 auto; width: 100%; } .b-th > .b-sel select, .x-rgt .b-sel select { width: 100%; }
}
/* "All" lists every strategy (owner 2026-11-22): the alternative badge says "Alt N" on phones, so it clears the name */
@media (max-width: 760px) { .x-grp { margin-bottom: 24px; } .x-rw { display: none; } .x-rn { display: inline; } }
/* the one Follow (owner 2026-11-23): the phone copy floats right as the old one did; the side panel's fills its row */
.fw-pf { display: none; } .fw-w.fw-blk { display: flex; width: 100%; } .fw-blk .b-tgb { flex: 1; }
@media (max-width: 760px) { .fw-pf { display: inline-flex; float: right; } }
/* Live tab (owner concepts 200-203, mock-ups approved 2026-11-23): positions and chart in a row that fits up to 3 positions,
   then the Session P&L Summary and the activity list, full width */
.b-lleft > .b-ltop, .b-lleft > .ss, .b-lleft > .b-lact { margin-top: 12px; }
.b-ltop { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.b-ltop > .b-pn { margin: 0; min-width: 0; }
@media (min-width: 761px) { .b-ltop > .b-lpos, .b-ltop > .b-lchp { height: 252px; overflow: hidden; } .b-ltop .b-lpos .b-tw { max-height: 176px; overflow-y: auto; } .b-ltop .b-lchp .b-ph { margin-bottom: 0; } }
.ss-hd { flex-wrap: nowrap; gap: 12px; margin-bottom: 12px; }   /* the shared panel heading (owner 2026-11-23: same size as the others, no icon) */
.ss-hd p { margin: 2px 0 0; color: var(--x-ink-2); font-size: 13px; line-height: 18px; }
.ss-per { margin-left: auto; padding: 8px 16px; border: 1px solid var(--x-edge-2); border-radius: 999px; color: var(--x-ink); font: 600 14px var(--font-main); }
.ss-body { display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(3, minmax(0, .95fr)) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.ss-lead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 16px 16px 16px 20px; border: 1px solid color-mix(in srgb, var(--x-teal) 55%, transparent);
  border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--x-teal) 9%, var(--x-panel)), var(--x-panel)); }
.ss-ll { display: block; color: var(--x-ink); font: 700 15px/20px var(--font-main); }
.ss-lv { display: flex; align-items: center; gap: 6px 12px; margin-top: 10px; }
.ss-lv b { font: 800 32px/38px var(--font-main); letter-spacing: -.5px; white-space: nowrap; color: var(--x-ink); }
.ss-pc { padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; font: 700 13px/18px var(--font-main); white-space: nowrap; }
.ss-sp { flex: 1 1 110px; min-width: 80px; max-width: 150px; height: 60px; }
.ss-sa { fill: color-mix(in srgb, var(--x-green) 22%, transparent); } .ss-sl { fill: none; stroke: var(--x-green); stroke-width: 2.2; stroke-linejoin: round; } .ss-sd { fill: var(--x-teal); }
.ss-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 16px 10px; border: 1px solid var(--x-edge); border-radius: 14px;
  background: var(--x-tile); text-align: center; }
.ss-bi { color: var(--x-teal); } .ss-bi .ic { width: 28px; height: 28px; } .ss-box.cf .ss-bi { color: var(--x-cf); }
.ss-bl { color: var(--x-ink); font: 600 14px/18px var(--font-main); } .ss-ln { display: none; }
.ss-box b { font: 800 21px/26px var(--font-main); white-space: nowrap; color: var(--x-ink); }
.ss-side { display: grid; align-content: center; margin: 0; padding: 4px 14px; border: 1px solid var(--x-edge); border-radius: 14px; background: var(--x-tile); }
.ss-side > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.ss-side > div + div { border-top: 1px solid var(--x-edge); }
.ss-side dt { display: flex; align-items: center; gap: 8px; color: var(--x-ink); font: 500 14px var(--font-main); white-space: nowrap; } .ss-side dt .ic { width: 18px; height: 18px; color: var(--x-teal); }
.ss-side dd { margin: 0; color: var(--x-ink); font: 700 15px var(--font-main); white-space: nowrap; }
.ss .gain, .at .gain { color: var(--x-green); } .ss .loss, .at .loss { color: var(--x-red); }
@media (max-width: 1279px) { .ss-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ss-lead, .ss-side { grid-column: 1 / -1; } }
.at { position: relative; margin: 4px 0 0; padding: 0; list-style: none; }
.at::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 2px; background: color-mix(in srgb, var(--x-cf) 45%, var(--x-edge)); }
.at li { position: relative; display: grid; grid-template-columns: 14px 72px 104px minmax(0, 1.15fr) minmax(0, 1.4fr) 130px; align-items: center; gap: 14px; min-height: 44px; padding: 6px 0; }
.at li + li { border-top: 1px solid var(--x-edge); }
.at-d { z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--x-teal); box-shadow: 0 0 0 3px var(--x-panel); } .at .cf .at-d { background: var(--x-cf); } .at .o .at-d { background: var(--x-green); }
.at-t { color: var(--x-ink); font: 700 15px/18px var(--font-main); } .at-t small { display: block; color: var(--x-ink-2); font: 500 12px/14px var(--font-main); }
.at-b { justify-self: start; padding: 3px 12px; border: 1px solid currentColor; border-radius: 999px; font: 700 12px/16px var(--font-main); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.at .x .at-b { color: var(--x-red); background: var(--x-red-bg); } .at .cf .at-b { color: var(--x-cf); border-color: var(--x-cf-edge); background: var(--x-cf-bg); } .at .o .at-b { color: var(--x-green); background: var(--x-green-bg); }
.at-c { color: var(--x-ink); font: 700 14px/18px var(--font-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-w { color: var(--x-ink-2); font-size: 13px; line-height: 18px; }
.at-p { justify-self: end; color: var(--x-ink-2); font-size: 14px; white-space: nowrap; } .at-p b { font: 800 15px var(--font-main); }
@media (max-width: 760px) {
  .b-ltop { grid-template-columns: 1fr; }
  .ss-per { padding: 6px 12px; font-size: 13px; }
  .ss-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ss-lead { grid-column: 1 / -1; padding: 14px 14px 14px 16px; } .ss-lv b { font-size: 28px; line-height: 34px; } .ss-sp { max-width: 120px; height: 52px; }
  .ss-box { padding: 12px 6px; gap: 6px; } .ss-bi .ic { width: 22px; height: 22px; } .ss-bl { font-size: 12px; line-height: 16px; } .ss-box b { font-size: 16px; line-height: 22px; }
  .ss-lw { display: none; } .ss-ln { display: inline; }
  .ss-side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .ss-side > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 0; padding: 10px; }
  .ss-side > div + div { border-top: 0; border-left: 1px solid var(--x-edge); }
  .ss-side dt { font-size: 12px; } .ss-side dt .ic { display: none; } .ss-side dd { font-size: 16px; }
  .at::before { top: 26px; bottom: 26px; }
  .at li { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "d t b" ". c c" ". w p"; gap: 2px 10px; padding: 10px 0; }
  .at-d { grid-area: d; } .at-t { grid-area: t; display: flex; align-items: baseline; gap: 6px; } .at-t small { display: inline; }
  .at-b { grid-area: b; justify-self: end; } .at-c { grid-area: c; white-space: normal; } .at-w { grid-area: w; font-size: 12px; } .at-p { grid-area: p; align-self: end; font-size: 13px; }
}
@media (max-width: 360px) {
  .ss-body { grid-template-columns: 1fr 1fr; } .ss-box.cf { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 10px 14px; }
  .ss-lv b { font-size: 24px; line-height: 30px; } .ss-sp { display: none; }
  .ss-side { grid-template-columns: 1fr; } .ss-side > div { flex-direction: row; align-items: center; justify-content: space-between; }
  .ss-side > div + div { border-left: 0; border-top: 1px solid var(--x-edge); } .ss-side dt .ic { display: inline; }
}
/* the summary heading and its ? box wrap on phones; at 320 the chart heading takes its own line above the P&L / % switch */
.ss-hd > div { flex: 1 1 auto; min-width: 0; } .ss-hd h2 { display: block; white-space: normal; } .ss-hd h2 .q { display: inline-flex; vertical-align: middle; margin-left: 6px; } .ss-hd h2 .q .ic { color: var(--x-mute); }
@media (max-width: 360px) { .b-lchp .b-ph { flex-wrap: wrap; } .b-lchp .b-ph h2 { flex: 1 1 100%; } .b-lchp .b-ph .b-lsg { margin-left: 0; } }
/* Watchlist star (owner 2026-11-24): first in a strategy's header actions; on phones beside Follow in the All strategies row
   (floats right, left of Follow). The list-row stars and both Share buttons left (owner 2026-11-24). */
.b-acts { align-items: center; }
button.wl.wl-pf { display: none; } @media (max-width: 760px) { button.wl.wl-pf { display: inline-grid; float: right; margin: 0 4px 0 0; } }

/* the minute stamp (owner 2026-11-25: "As of 10:42"): unlocked cards moved to today's market minute, on the list row under the
   name and beside the card's risk pill; gone after the 17:10 rebuild */
.x-asof { display: inline-flex; align-items: center; gap: 6px; color: var(--x-ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-asof i { width: 7px; height: 7px; border-radius: 99px; background: var(--x-green); }
.x-nm .x-asof { margin-top: 2px; }
.x-nm .x-asof { color: var(--x-ink-2); font-size: 12px; white-space: nowrap; }
/* the Live pill under a list row's name (owner 2026-11-26, concept B): a status, not a control, so 28 px on phones too */
.x-nm .x-live { display: inline-flex; align-items: center; gap: 7px; justify-self: start; box-sizing: border-box; height: 28px; max-width: 100%; margin-top: 6px; padding: 0 11px 0 10px;
  border: 1px solid var(--x-edge); border-radius: 999px; background: var(--x-panel-2, var(--x-panel)); color: var(--x-ink-2); font: 500 12px/1 var(--font-main); white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-nm .x-live > * { flex: none; overflow: visible; white-space: nowrap; font-size: 12px; }
.x-nm .x-live i { width: 8px; height: 8px; border-radius: 99px; background: var(--x-green); }
.x-nm .x-live.on { border-color: var(--x-green-edge); } .x-nm .x-live.on i { animation: x-lp 1.8s ease-out infinite; }
.x-nm .x-live.off i { background: var(--x-mute); }
.x-nm .x-live.late { border-color: color-mix(in srgb, var(--x-amber) 45%, var(--x-edge)); } .x-nm .x-live.late i { background: var(--x-amber); }
.x-nm .x-live .lb { font: 700 10px/1 var(--font-main); letter-spacing: .06em; text-transform: uppercase; color: var(--x-ink-2); }
.x-nm .x-live b { font: 800 13px/1 var(--b-head, var(--font-main)); color: var(--x-ink); } .x-nm .x-live b.gain { color: var(--x-green); } .x-nm .x-live b.loss { color: var(--x-red); }
.x-nm .x-live .s { color: var(--x-mute); }
@keyframes x-lp { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--x-green) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .x-nm .x-live.on i { animation: none; } }
@media (max-width: 760px) {   /* the pill has its own line under the badge, so it takes the card's full width */
  .x-nm .x-live { margin-right: calc(-1 * var(--x-nm-pr)); max-width: calc(100% + var(--x-nm-pr)); }
}
/* Card header (owner 2026-11-27, pick A + D2): Deploy is the solid main pill at the header's end (E78: granted accounts
   only), a deployed card shows a teal chip; "‹ All strategies" is a quiet link; Switch opens the viewer's open cards */
.b-dep[hidden] { display: none; }
body.tc .bt .b-dep .b-depd { border-color: var(--rules); color: var(--rules); } body.tc .bt .b-depd i { width: 7px; height: 7px; border-radius: 50%; background: var(--x-green); }
.b-tlink { display: inline-flex; align-items: center; height: 28px; margin-right: 4px; color: var(--x-mute); font: 600 12px var(--font-main); text-decoration: none; white-space: nowrap; } .b-tlink:hover { color: var(--x-ink); }
body.tc .bt .b-sw { box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--rules); color: var(--rules); font: 600 12px/1 var(--font-main); cursor: pointer; white-space: nowrap; }
body.tc .bt .b-sw[aria-expanded="true"] { background: var(--sel-bg); color: var(--sel-ink); } body.tc .bt .b-sw i { font-style: normal; font-size: 11px; }
.b-prow { display: none; }
.b-swbg { position: fixed; inset: 0; z-index: 80; }
.b-swp { position: absolute; z-index: 81; width: 380px; max-height: min(560px, 70vh); overflow: auto; padding: 6px; border: 1px solid var(--x-edge); border-radius: 12px; background: var(--x-panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); font-family: var(--font-main); }
.b-swh { display: none; }
.b-swg { display: flex; justify-content: space-between; gap: 8px; padding: 10px 10px 4px; color: var(--x-mute); font: 600 11px/16px var(--font-main); letter-spacing: .04em; text-transform: uppercase; } .b-swk { padding-top: 6px; }
.b-swr { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--x-ink); font: 500 13px var(--font-main); text-decoration: none; }
.b-swr:hover, .b-swr:focus-visible { background: var(--x-teal-wash, rgba(37, 247, 252, .08)); outline: none; box-shadow: inset 0 0 0 1px var(--rules); }
.b-swr[aria-current] { background: var(--x-teal-wash, rgba(37, 247, 252, .08)); } .b-swr[aria-current] .nm { font-weight: 700; }
.b-swr .rl { flex: none; width: 46px; color: var(--x-mute); font-size: 11px; font-weight: 600; } .b-swr .rl.lead { color: var(--rules); }
.b-swr .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-swr .fg { flex: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; } .b-swr .fg.gain { color: var(--x-green); } .b-swr .fg.loss { color: var(--x-red); }
.b-swr .ck { flex: none; color: var(--rules); }
@media (max-width: 760px) {   /* name + Switch (owner 2026-11-27), chips, then one row: Watch · Follow · Deploy; P-1 pills (32 painted in 44) */
  /* owner's concept (image 226): name + "?" | Switch at the right edge; a hairline row with the risk and as-of; then
     Watch | Follow | Deploy across the width (standard 32 px painted in a 44 px tap, 13 px text); no Lead/Alt tag */
  body.tc .bt .b-t .b-sw { flex: none; margin: -6px -6px -6px auto; }   /* the transparent tap edge may overlap neighbours, so the longest name keeps Switch on its line at 320 */
  .b-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-top: 8px; padding: 4px 0; border-top: 1px solid var(--x-edge); border-bottom: 1px solid var(--x-edge); }
  .b-meta .risk { box-sizing: border-box; display: inline-flex; align-items: center; align-self: center; height: 26px; margin: 0; padding: 0 12px; font-size: 12px; line-height: 1; }
  .b-meta .x-asof { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--x-ink); font-size: 13px; white-space: nowrap; } .b-meta .x-asof i { width: 7px; height: 7px; border-radius: 50%; background: var(--x-green); }
  .b-prow { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 8px; margin: 4px -6px 0; } .b-prow:has(.b-dep[hidden]) { grid-template-columns: 44px 1fr; }   /* no Deploy access: Follow takes the rest */
  .b-prow .fw-pf, .b-prow .b-dep:not([hidden]) { display: flex; width: 100%; }
  body.tc .bt .b-t .b-sw, body.tc .bt .b-prow .b-dep .b-btn, #tc-main .bt .b-prow .b-pfol { box-sizing: border-box; height: 44px; min-height: 44px; padding: 0 10px; border: 6px solid transparent; background-clip: padding-box; font-size: 13px; }
  body.tc .bt .b-prow .b-dep .b-btn, #tc-main .bt .b-prow .b-pfol { width: 100%; justify-content: center; gap: 6px; }
  body.tc .bt .b-prow .b-dep .b-depd { box-shadow: inset 0 0 0 1px var(--x-green); color: var(--x-teal); } .b-prow .b-depx { display: none; }
  body.tc .bt .b-prow .b-pfol { float: none; } .b-prow button.wl.wl-pf { float: none; margin: 0; }
  .b-swbg { background: rgba(0, 0, 0, .55); }
  .b-swp { position: fixed; inset: auto 0 0 0; width: auto; max-height: 78vh; padding: 4px 12px 20px; border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  .b-swh { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; } .b-swh b { font: 700 16px var(--font-main); color: var(--x-ink); }
  .b-swx { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--x-mute); font-size: 18px; cursor: pointer; }
  .b-swr { min-height: 44px; padding: 0 8px; font-size: 14px; } .b-swr .rl { width: 50px; font-size: 12px; } .b-swr .fg { font-size: 13px; }
}
@media (max-width: 359px) {   /* 320: long names wrap in the Switch sheet */
  .b-swr .nm { white-space: normal; line-height: 18px; padding: 4px 0; }
}
