/* Market replay (assets/market-replay.js): the run sheet with its replay (Igor 13 Nov «Да, B + повтор C», Astra round
   design/market-replay-2026-11-13: B's plate, answer, proofs, period, money and report; C's replay on the period).
   Flat sections on hairlines on the 12-column grid; the kit's controls, type and colour roles only. */

/* The picker of his strategies (B): one line above the sheet, the ways to add one at its end. */
.strategy-lab .mr-library{--ui-grid-row-gap:8px;align-items:stretch;min-height:56px;padding:0 0 16px;margin:0 0 24px;border-bottom:1px solid var(--ui-line)}
/* The picker reads as a menu: a field's edge, its chevron at the end (Igor 14 Nov «не сразу очевидно что там могут
   прятаться другие стратегии»). */
.strategy-lab .mr-picker{display:flex;align-items:center;justify-self:stretch;gap:12px;min-width:0;max-width:100%;min-height:52px;padding:6px 12px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius-control);background:var(--ui-page);color:var(--ui-ink);text-align:left;cursor:pointer}
.strategy-lab .mr-picker:hover{border-color:var(--ui-ink-3)}
.strategy-lab .mr-picker:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.strategy-lab .mr-picker>span{flex:1 1 auto}
.strategy-lab .mr-picker>:last-child{margin-left:auto}
.strategy-lab .mr-picker>span{display:grid;min-width:0}
.strategy-lab .mr-picker small{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-picker b{overflow:hidden;font:500 var(--ui-type-body) var(--ui-font);text-overflow:ellipsis;white-space:nowrap}
.strategy-lab .mr-picker :is(svg,i){flex:none;width:20px;height:20px;color:var(--ui-ink-2)}
/* a video's thumbnail, 16:9 with YouTube's mark in its corner (Setups' look for a setup from a video) */
.mr-cover{position:relative;flex:none;display:block;width:64px;height:36px;overflow:hidden;border-radius:4px;background:var(--ui-raised)}
.mr-cover img{display:block;width:100%;height:100%;object-fit:cover}
/* the mark in the middle, as a video's play button (Igor 14 Nov «красная иконка ютуба вниз съехала?»: in the corner it read as
   slipped) */
.mr-cover .mr-cover-yt{position:absolute;left:50%;top:50%;width:20px!important;height:14px!important;transform:translate(-50%,-50%)}
.mr-dialog .mr-strategy-row .mr-cover .mr-cover-yt{width:16px!important;height:11px!important}
.mr-dialog .mr-strategy-row .mr-cover{width:48px;height:27px}
.strategy-lab .mr-picker>.mr-cover{flex:none;display:block} /* not the text's grow and grid */
.strategy-lab .mr-library-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 16px;white-space:nowrap}
.strategy-lab .mr-library-chip{display:flex;align-items:center}
.strategy-lab .mr-library-links{align-self:stretch}
.strategy-lab .mr-library-links .ui-link{display:inline-flex;align-items:center;gap:6px}
.strategy-lab .mr-library-links :is(svg,i){width:16px;height:16px}
.mr-dialog .mr-strategy-list{display:grid}
.mr-dialog .mr-strategy-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border:0;border-bottom:1px solid var(--ui-line);background:none;color:var(--ui-ink);text-align:left;cursor:pointer}
.mr-dialog .mr-strategy-row:last-child{border-bottom:0}
.mr-dialog .mr-strategy-row[hidden]{display:none}
/* many strategies: the search stays, the list scrolls under it within the dialog's height, its head never scrolls away */
.lab-c-dialog.mr-dialog.is-list[open]{display:flex;flex-direction:column;overflow:hidden}
.lab-c-dialog.mr-dialog.is-list>.lab-c-dialog-body{min-height:0;flex:1 1 auto}
.mr-dialog .mr-strategy-search{flex:none;margin:0 0 8px}
.mr-dialog .mr-strategy-list.is-many{min-height:0;max-height:min(60dvh,560px);margin:0 -24px;padding:0 24px;overflow-y:auto;overscroll-behavior:contain}
.mr-dialog .mr-strategy-none{margin:16px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.mr-dialog .mr-strategy-none[hidden]{display:none}
.mr-dialog .mr-strategy-row:hover b,.mr-dialog .mr-strategy-row.is-on b{color:var(--ui-accent-text)}
.mr-dialog .mr-strategy-row>:is(svg,i){width:20px;height:20px;justify-self:center;color:var(--ui-ink-2)}
.mr-dialog .mr-strategy-row>span{display:grid;min-width:0}
.mr-dialog .mr-strategy-row b{font:500 var(--ui-type-body) var(--ui-font)}
.mr-dialog .mr-strategy-row small{margin-top:2px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.mr-dialog .mr-strategy-value{font:500 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.mr-dialog .mr-strategy-value:not(.lab-gain):not(.lab-loss){color:var(--ui-ink-3);font-weight:400}

/* 1 · The instrument plate (B, NEW): the ticker big, the contract, the rules' session and the history; the run's kind and
   its specifics in one quiet line. */
/* On the kit's grid (.ui-grid, .ui-span-* in the markup; ui-kit.css): the page never draws its own columns. */
.strategy-lab .mr-plate{--ui-grid-row-gap:16px;align-items:start;padding:0 0 24px;border-bottom:1px solid var(--ui-line)}
.strategy-lab .mr-instrument{display:flex;align-items:flex-start;gap:16px;min-width:0}
.strategy-lab .mr-ticker{color:var(--ui-ink);font:600 var(--ui-type-title-l) var(--ui-font);letter-spacing:-.03em}
.strategy-lab .mr-instrument-name{display:grid;padding-top:4px;min-width:0}
.strategy-lab .mr-instrument-name b{color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)} /* the group head role, 16/24/600 */
.strategy-lab .mr-instrument-name small{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-plate-cell{margin:0;padding-top:4px}
.strategy-lab .mr-plate-cell dt{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-plate-cell dd{margin:0;color:var(--ui-ink);font:500 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .mr-plate-cell dd span{color:var(--ui-ink-2);font-weight:400}
/* One line from the plate's left edge: the label, then what the run is made of (Igor 14 Nov «висит по центру странно»). */
/* one sentence line: the badge, then the specifics, wrapping as text */
.strategy-lab .mr-plate-status{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-simulated{display:inline-flex;align-items:center;gap:6px;margin-right:16px;vertical-align:top;color:var(--ui-ink);font-weight:500;white-space:nowrap}
.strategy-lab .mr-simulated :is(svg,i){flex:none;width:14px;height:14px;color:var(--ui-gain)}
.strategy-lab .mr-simulated.is-quiet :is(svg,i){color:var(--ui-ink-2)}

/* 2 · The answer: the sentence and its baseline on eight columns, the figure and the contracts on four. */
.strategy-lab .mr-answer{--ui-grid-row-gap:16px;padding:24px 0}
.strategy-lab .mr-answer-copy{min-width:0}
.strategy-lab .mr-answer-copy h2,.strategy-lab .mr-state h2{margin:0;color:var(--ui-ink);font:600 var(--ui-type-title-m) var(--ui-font);letter-spacing:-.02em;text-wrap:pretty}
.strategy-lab .mr-baseline{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-baseline b{color:var(--ui-ink);font-weight:500;font-variant-numeric:tabular-nums}
/* The figure's column starts on its grid line; its hairline stands in the gutter before it. */
.strategy-lab .mr-answer-result{position:relative;display:grid;align-content:start;gap:8px}
.strategy-lab .mr-answer-result::before{content:"";position:absolute;top:0;bottom:0;left:-12px;border-left:1px solid var(--ui-line)}
.strategy-lab .mr-hero{font:600 var(--ui-type-title-l) var(--ui-font);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .mr-risk{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-contracts{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-contracts .app-action-btn{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;justify-content:center}
.strategy-lab .mr-contracts .app-action-btn :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-contracts b{min-width:16px;color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font);font-variant-numeric:tabular-nums;text-align:center}
.strategy-lab .mr-answer-actions{--ui-grid-row-gap:12px;align-items:center}
.strategy-lab .mr-actions-main{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;min-width:0}
.strategy-lab .mr-answer-actions .ui-link,.strategy-lab .mr-state-actions .ui-link{display:inline-flex;align-items:center;gap:6px}
.strategy-lab :is(.mr-answer-actions,.mr-state-actions) :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-usage{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-caveat{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-caveat :is(svg,i){flex:none;width:14px;height:14px;margin-top:3px}
.strategy-lab .lab-gain{color:var(--ui-gain)}
.strategy-lab .lab-loss{color:var(--ui-loss)}

/* Sections: space and one hairline, a title-s head with its switch at the right. */
.strategy-lab .mr-section{min-width:0;padding:24px 0;border-top:1px solid var(--ui-line)}
.strategy-lab .mr-section[hidden]{display:none}
/* A section's head on the grid: the title on its columns, a switch filling its own (so both edges sit on lines). */
.strategy-lab .mr-section-head{--ui-grid-row-gap:12px;align-items:start;margin:0 0 16px}
.strategy-lab .mr-section-head h3{display:flex;align-items:center;min-height:40px;margin:0;color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font);letter-spacing:-.01em}
.strategy-lab .mr-section-head p{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-section-tools{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.strategy-lab .mr-section-tools :is(.app-view-toggle,.mr-month-pick){width:100%}
.strategy-lab .mr-section-tools .app-view-toggle-btn{flex:1;white-space:nowrap}

/* 3 · The trades session by session (B, NEW): proofs on the grid, four across, each its own price scale. */
.strategy-lab .mr-sheet-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 16px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-sheet-legend span{display:inline-flex;align-items:center;gap:6px}
/* the legend draws what the cards draw: the two strategy marks and the position's zones */
.strategy-lab .mr-sheet-legend i{width:0;height:0;border-inline:5px solid transparent;border-bottom:7px solid var(--ui-accent-text)}
.strategy-lab .mr-sheet-legend i.is-exit{border-bottom:0;border-top:7px solid var(--ui-ink)}
.strategy-lab .mr-sheet-legend i.is-stop,.strategy-lab .mr-sheet-legend i.is-target{width:14px;height:10px;border:1px solid color-mix(in srgb,var(--ui-loss) 32%,transparent);background:color-mix(in srgb,var(--ui-loss) 12%,transparent)}
.strategy-lab .mr-sheet-legend i.is-target{border-color:color-mix(in srgb,var(--ui-gain) 35%,transparent);background:color-mix(in srgb,var(--ui-gain) 15%,transparent)}
/* a short-only run sells first: its entry points down, its exit up */
.strategy-lab .mr-sheet-legend.is-short i.is-entry{border-bottom:0;border-top:7px solid var(--ui-accent-text)}
.strategy-lab .mr-sheet-legend.is-short i.is-exit{border-top:0;border-bottom:7px solid var(--ui-ink)}
.strategy-lab .mr-sheet-grid{--ui-grid-row-gap:12px;--ui-grid-gutter:12px} /* framed windows sit 12 apart (Igor 15 Nov «можно и меньше отступы между плашками») */
/* each session in a window of its own, so neighbours' candles never run together (Igor 15 Nov «может их в окна брать
   чтобы они не сливались?»): a hairline frame, the card radius, 12 px inside, no shadow; the chosen one framed in the accent */
.strategy-lab .mr-proof{position:relative;min-width:0;padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-card)}
.strategy-lab .mr-proof.is-on{border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.strategy-lab .mr-proof-top,.strategy-lab .mr-proof-bottom{display:flex;align-items:baseline;gap:8px;margin:0;font:400 var(--ui-type-caption) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .mr-proof-top{color:var(--ui-ink);font-weight:500}
.strategy-lab .mr-proof-top b{margin-left:auto;font-weight:500}
.strategy-lab .mr-proof-n{color:var(--ui-ink-3);font-weight:400}
.strategy-lab .mr-proof-chart{position:relative;height:164px;margin:8px 0 4px;--tr-surface:var(--ui-page);--tr-ink:var(--ui-ink);--tr-positive:var(--ui-gain);--tr-negative:var(--ui-loss);--tr-accent:var(--ui-accent-text)}
/* in dark the zones and the entry mark take the trade page's dark chart colours, so they read on the candles */
.dark .strategy-lab .mr-proof-chart{--tr-positive:#7bd09f;--tr-negative:#f49385}
/* a card's position is the trade page's tool without its words: the card's own lines say the side, the R and the money */
.strategy-lab .mr-proof-chart .trade-position-tag,.strategy-lab .mr-proof-chart .trade-position-mark span{display:none}
.strategy-lab .mr-proof-bottom{justify-content:space-between;color:var(--ui-ink-2)}
/* the hover tint fills the window, its content 12 px inside it (Igor 14 Nov «при наведении… упирается все») */
.strategy-lab .mr-proof-open{position:absolute;inset:0;z-index:3;border:0;border-radius:calc(var(--ui-radius-card) - 1px);background:transparent;cursor:pointer}
.strategy-lab .mr-proof-open:hover{background:var(--ui-hover);mix-blend-mode:multiply}
.dark .strategy-lab .mr-proof-open:hover{mix-blend-mode:screen}
.strategy-lab .mr-proof-open:focus-visible{outline:2px solid var(--ui-accent-text);outline-offset:2px}
.strategy-lab .mr-proof-none{display:grid;place-items:center;height:100%;margin:0;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font);text-align:center}
.strategy-lab .mr-sheet-note{margin:0 0 16px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-sheet-note .ui-link{min-height:0;margin-left:8px;font-size:inherit;line-height:inherit;vertical-align:baseline}
.strategy-lab .mr-sheet-empty{grid-column:1/-1;margin:0;padding:32px 0;color:var(--ui-ink-2);text-align:center}
.strategy-lab .mr-sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.strategy-lab .mr-sheet-foot small{margin-left:auto;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-month-pick{width:auto}

/* The chosen trade: the trade page's chart (trade-chart.css), its tokens on the kit's roles, flat. */
.strategy-lab .mr-trade{--tr-surface:var(--ui-page);--tr-subtle:var(--ui-raised);--tr-ink:var(--ui-ink);--tr-muted:var(--ui-ink-2);--tr-edge:var(--ui-line);--tr-control:var(--ui-line-strong);--tr-positive:var(--ui-gain);--tr-negative:var(--ui-loss);--tr-accent:var(--ui-accent);scroll-margin-top:24px}
.strategy-lab .mr-trade-head{margin-bottom:8px}
.strategy-lab .mr-trade-head .mr-section-tools{justify-content:flex-end} /* Close ends on the right edge on a phone too (the gate 14 Nov) */
.strategy-lab .mr-trade-head .ui-link{display:inline-flex;align-items:center;gap:6px}
.strategy-lab .mr-trade-head .ui-link :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-trade-nav{display:flex;align-items:center;gap:12px;min-width:0}
.strategy-lab .mr-trade-nav h3{display:block;min-height:0}
.strategy-lab .mr-trade-nav h3 span{color:var(--ui-ink-2);font-weight:400}
.strategy-lab .mr-trade-nav .app-action-btn{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;justify-content:center}
.strategy-lab .mr-trade-nav .app-action-btn :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-trade-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;margin:0 0 12px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-trade-line b{font-weight:600;font-variant-numeric:tabular-nums}
.strategy-lab .mr-trade-money{margin-left:auto;font:600 var(--ui-type-title-s) var(--ui-font)!important}
/* the trade's tools on the kit (market-replay.js gives the chart's own buttons the kit's classes): the candle sizes'
   segmented, then Fit trade as a toolbar button, then the zone at the right */
.strategy-lab .mr-trade-tools{display:flex;align-items:center;gap:12px;flex:1;justify-content:flex-start}
.strategy-lab .mr-trade-tools .app-action-btn{font-weight:500}
.strategy-lab .mr-trade-tools[hidden]{display:none}
.strategy-lab .mr-trade .trade-chart-frame{border:0;border-radius:0}
.strategy-lab .mr-trade .trade-chart-stats{border:0;border-top:1px solid var(--ui-line);border-radius:0}
.strategy-lab .mr-trade .trade-chart-stats>div:first-child{padding-left:0}
.strategy-lab .mr-trade .trade-chart-stats{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:24px}
.strategy-lab .mr-trade .trade-chart-stats>div{padding-left:0;padding-right:0;border-left:0}
.strategy-lab .mr-trade .trade-chart-answer{margin-left:0;margin-right:0}
.strategy-lab .mr-trade-chart .trade-chart-caption:empty{display:none}

/* TradingView's toolbar over a chart (Igor 13 Nov «в их стиле, особенно тайминги»): intervals as plain text with the
   chosen one in the accent, a hairline under it, the chart right below. */
.strategy-lab .mr-tv-bar{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;min-height:40px;padding:0 0 4px;border-bottom:1px solid var(--ui-line)}
.strategy-lab .mr-tv-zone{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}

/* 4 · The whole test with its replay (C, NEW): the candles, the money path under them on the same time line, the
   playhead. */
.strategy-lab .mr-whole-bar{display:grid;gap:8px var(--ui-grid-gutter)}
.strategy-lab .mr-whole-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.strategy-lab .mr-whole-bar .app-action-btn :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-period-keys{display:flex;justify-content:flex-end;gap:16px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-period-keys>span{display:inline-flex;align-items:center;gap:6px}
.strategy-lab .mr-period-keys i{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:8px solid var(--ui-bar-gain)}
.strategy-lab .mr-period-keys i.is-loss{border-bottom-color:var(--ui-bar-loss)}
.strategy-lab .mr-period-keys i.is-on{border-bottom-color:var(--ui-accent)}
/* as tall as the money path under it (its plot and bars), so the two read as one pair (Igor 14 Nov «выравнял графики») */
.strategy-lab .mr-period-chart{position:relative;height:356px}
/* the time line under the bar is the bar's divider: no hairline of its own */
.strategy-lab .mr-whole-bar{border-bottom:0}
.strategy-lab .mr-path{position:relative;margin-top:8px}
.strategy-lab .mr-path-title{margin:0 0 4px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-path-slot{max-width:100%}
.strategy-lab .mr-cursor{position:absolute;top:0;bottom:28px;z-index:2;width:0;border-left:1px solid var(--ui-accent);pointer-events:none}
.strategy-lab .mr-cursor[hidden]{display:none}
/* the candles the replay has not reached: greyed and lightened under a veil from the playhead to the plot's end */
.strategy-lab .mr-period-chart .mr-cursor{z-index:3} /* the playhead stays in its accent over the veil */
.strategy-lab .mr-future{position:absolute;top:0;z-index:2;backdrop-filter:grayscale(1);-webkit-backdrop-filter:grayscale(1);background:color-mix(in srgb,var(--ui-page) 45%,transparent);pointer-events:none}
.strategy-lab .mr-future[hidden]{display:none}
.strategy-lab .mr-path .mr-cursor{top:24px;bottom:24px} /* its top is set under the readings (market-replay.js) */
/* The replay's time line lives in the bar beside its button, always shown and draggable; Replay moves it (Igor 14 Nov
   «таймлайн… не понятный особо зачем он там внизу»; «сама линия там будет тоже сразу показана и можно ее двигать»). Short
   of the end, its read takes the keys' place, so the bar keeps its height and nothing below moves. */
.strategy-lab .mr-whole:not(.is-replay) .mr-replay-read,.strategy-lab .mr-whole.is-replay [data-mr-period-sizes]{display:none}
/* the bar's right: the candle sizes (the kit's segmented, Igor 14 Nov «эти элементы инструменты надо делать в одном стиле»),
   or the replay's read in their place */
.strategy-lab .mr-whole-side{display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:40px}
.strategy-lab .mr-whole .mr-section-head .mr-period-keys{align-self:center}
/* the time line over the candles, drawn from the grid's left edge to the end of their plot (Igor 14 Nov «слева вылез за
   кнопку по сетке»); the input runs 6 px past each end, unpainted, so its dot's centre stands exactly on the playhead
   («линия… немного право съехала от точки») */
.strategy-lab .mr-scrub{display:flex;align-items:center;max-width:calc(100% + 12px);margin:4px 0 0 -6px}
/* Drawn as the charts draw time (Igor 14 Nov «эта линия не консистентна нашему дизайну»): a light track, the playhead a
   dot in the cursor's accent ringed in the page colour, as the path's end dot is. 32 px tall to grab, 44 on a phone. */
.strategy-lab .mr-scrub input[type=range]{--mr-at:100%;-webkit-appearance:none;appearance:none;width:100%;height:32px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;accent-color:var(--ui-accent)}
/* light at rest, a grey hairline-weight track with the dot at its end; while the run replays the played part takes the
   cursor's accent («линия темная такая тяжелая плохо смотрится») */
.strategy-lab .mr-scrub input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:1px;background:linear-gradient(to right,transparent 6px,var(--ui-line-strong) 6px,var(--ui-line-strong) calc(100% - 6px),transparent calc(100% - 6px))}
.strategy-lab .mr-scrub input[type=range]::-moz-range-track{height:2px;border-radius:1px;background:var(--ui-line-strong)}
.strategy-lab .mr-whole.is-replay .mr-scrub input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,transparent 6px,var(--ui-accent) 6px,var(--ui-accent) var(--mr-at),var(--ui-line-strong) var(--mr-at),var(--ui-line-strong) calc(100% - 6px),transparent calc(100% - 6px))}
.strategy-lab .mr-whole.is-replay .mr-scrub input[type=range]::-moz-range-progress{height:2px;border-radius:1px;background:var(--ui-accent)}
.strategy-lab .mr-scrub input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-5px;border:2px solid var(--ui-page);border-radius:50%;background:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}
.strategy-lab .mr-scrub input[type=range]::-moz-range-thumb{width:8px;height:8px;border:2px solid var(--ui-page);border-radius:50%;background:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}
.strategy-lab .mr-scrub input[type=range]:focus-visible{outline:none}
.strategy-lab .mr-scrub input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 1px var(--ui-accent),0 0 0 4px color-mix(in srgb,var(--ui-accent) 30%,transparent)}
.strategy-lab .mr-scrub input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 1px var(--ui-accent),0 0 0 4px color-mix(in srgb,var(--ui-accent) 30%,transparent)}
.strategy-lab .mr-replay-read{flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font);font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .mr-replay-read b{color:var(--ui-ink);font:600 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-replay-read small{overflow:hidden;font:inherit;text-overflow:ellipsis}
.strategy-lab .mr-replay-read .ui-link{margin-left:8px}
.strategy-lab .mr-chart-note{margin:0;padding:32px 0;color:var(--ui-ink-2);text-align:center}

/* 5 · The money by month and by R. */
.strategy-lab .mr-money-chart{min-height:240px}

/* 6 · The report (Strategy Tester's, in TSB's own table): flat on hairlines; wide tables scroll inside their box. */
.strategy-lab .mr-table-wrap{max-width:100%;overflow-x:auto}
.strategy-lab .mr-summary{min-width:560px}
.strategy-lab .mr-summary th:not(:first-child),.strategy-lab .mr-summary td:not(:first-child){width:20%}
.strategy-lab .mr-summary td:first-child{color:var(--ui-ink-2)}
.strategy-lab .mr-summary tr.is-lead td{color:var(--ui-ink);font-weight:600}
.strategy-lab .mr-list{min-width:860px}
.strategy-lab .mr-list thead th{background:var(--ui-page)}
.strategy-lab .mr-list :is(th,td){padding:8px}
.strategy-lab .mr-list td{vertical-align:top}
.strategy-lab .mr-list-trade{cursor:pointer}
/* One hairline under each trade (its exit row and its entry row read as a pair): the Lab table's "no line under the last
   row" hit every trade, as each is its own tbody (the gate 14 Nov: 52 rows with no lines). */
.strategy-lab .mr-list-trade tr:first-child td:not([rowspan]){border-bottom:0}
.strategy-lab .mr-list-trade :is(tr:first-child td[rowspan],tr:last-child td){border-bottom:1px solid var(--ui-line)}
.strategy-lab .mr-list-trade:last-child :is(tr:first-child td[rowspan],tr:last-child td){border-bottom:0}
.strategy-lab .mr-list-trade:hover td{background:var(--ui-hover)}
.strategy-lab .mr-list-trade.is-on td{background:var(--ui-accent-soft)}
.strategy-lab .mr-list-trade:focus-visible{outline:2px solid var(--ui-accent-text);outline-offset:-2px}
.strategy-lab .mr-list-n{color:var(--ui-ink);font-weight:600}
/* A trade reads as one block (Igor 14 Nov «таблице не хватает акцентов, оно слилось вкучу»): its exit line, the entry
   line quiet and close under it, the hairline and 12 px between trades; the reason beside the type; the profit set bold,
   the running sum plain (two coloured columns side by side ran together). */
.strategy-lab .mr-list-trade td{padding-top:2px;padding-bottom:2px}
.strategy-lab .mr-list-trade tr:first-child td{padding-top:12px}
.strategy-lab .mr-list-trade :is(tr:last-child td,td[rowspan]){padding-bottom:12px}
.strategy-lab .mr-list-trade tr:last-child td{color:var(--ui-ink-2)}
.strategy-lab .mr-list .mr-list-type small{display:inline;margin:0 0 0 8px}
.strategy-lab .mr-list-profit>span{font-weight:600}
.strategy-lab .mr-list :is(th,td):nth-child(2),.strategy-lab .mr-list .mr-list-type,.strategy-lab .mr-list .mr-list-when,.strategy-lab .mr-list th:nth-child(3){text-align:left}
.strategy-lab .mr-list small{display:block;margin-top:2px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-list-note{margin:12px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}

/* The foot: the run's scope and How the simulation works. */
.strategy-lab .mr-foot{--ui-grid-row-gap:8px;align-items:start;margin:0;padding:16px 0 0;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-foot-lines{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;text-wrap:pretty}
.strategy-lab .mr-foot-lines>span{text-wrap:balance}
.strategy-lab .mr-foot-link{display:flex;justify-content:flex-end;margin:0}
/* The foot's lines take its caption type (12/20), not a paragraph's. */
.strategy-lab .mr-foot :is(.mr-foot-lines,.mr-foot-link){font:inherit}
.strategy-lab .mr-foot .ui-link{display:inline-flex;align-items:center;gap:6px;font:inherit}
.strategy-lab .mr-foot .ui-link :is(svg,i){width:14px;height:14px}

/* Before a run, while it runs, and the video's test (B's states). */
.strategy-lab .mr-wait{margin:0;padding:32px 0;color:var(--ui-ink-2)}
.strategy-lab .mr-state{--ui-grid-row-gap:16px;padding:24px 0}
.strategy-lab .mr-state-copy{display:grid;gap:12px;min-width:0}
.strategy-lab .mr-state-copy>p{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-state>p{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-state-actions{--ui-grid-row-gap:12px;align-items:center}
.strategy-lab .mr-steps{display:flex;gap:8px;max-width:320px}
.strategy-lab .mr-steps span{flex:1;height:4px;border-radius:2px;background:var(--ui-line)}
.strategy-lab .mr-steps .is-done{background:var(--ui-accent)}
.strategy-lab .mr-steps .is-on{background:var(--ui-accent-soft);animation:mr-pulse 1.2s ease-in-out infinite}
@keyframes mr-pulse{50%{background:var(--ui-accent)}}
@media (prefers-reduced-motion:reduce){.strategy-lab .mr-steps .is-on{animation:none}}
.strategy-lab .mr-error{margin:0;color:var(--ui-loss)}
.strategy-lab .mr-error[hidden]{display:none}
.strategy-lab .mr-test{max-width:none}
/* Change the test (Igor 14 Nov «местами развалилось»): the setups' switch, then the sentence with its kicker, the fields,
   the run's button with the runs left beside it on one line. */
.strategy-lab .mr-test>.mr-setups{margin-bottom:16px}
.strategy-lab .mr-test>.mr-rest{margin-top:8px}
.strategy-lab .mr-test>.mr-state-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.strategy-lab .mr-sentence{margin:0;color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)}
.strategy-lab .mr-rest{margin:0;color:var(--ui-ink-2);text-wrap:pretty}
/* as wide as its setups, never a long grey track (Igor 14 Nov «меню растянутое сильно») */
.strategy-lab .mr-setups{display:flex;flex-wrap:nowrap;width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:none}
.strategy-lab .mr-setups::-webkit-scrollbar{display:none}
.strategy-lab .mr-setups .app-view-toggle-btn{flex:none;white-space:nowrap}
.strategy-lab .mr-reading{display:grid;gap:16px;padding-top:8px}
.strategy-lab .mr-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px 24px}
.strategy-lab .mr-field{display:grid;gap:8px;min-width:0}
.strategy-lab .mr-field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ui-ink);font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-field .app-content-choice{width:100%;min-width:0}
.strategy-lab .mr-origin{font:400 var(--ui-type-caption) var(--ui-font)}
/* one line says what came from the video; a field keeps its tag only when it waits for the trader ("Choose") */
.strategy-lab .mr-test .mr-origin:not([data-origin=missing]){display:none}
.strategy-lab .mr-test>.mr-rules{margin:0;color:var(--ui-ink);font:400 var(--ui-type-body) var(--ui-font);text-wrap:pretty}
.strategy-lab .mr-test>.mr-rules [data-mr-sentence]{font-weight:600} /* its first sentence leads, at body size */
.strategy-lab .mr-test>.mr-lead{margin:0 0 4px;color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)}
.strategy-lab .mr-test>.mr-cant{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-test>.mr-cant+.mr-state-actions{margin-top:16px}
.strategy-lab .mr-test>.mr-rules+.mr-reading{margin-top:16px}
/* the checklist line between the fields and the button, 16 from each (Igor 15 Nov «прилипло») */
.strategy-lab .mr-reading>.mr-scope{margin-top:0} /* the form's own 16 gap stands over it */
.strategy-lab .mr-test>.mr-reading+.mr-state-actions{margin-top:16px}
.strategy-lab .mr-test>.mr-field-market{max-width:360px;margin-top:16px}
.strategy-lab .mr-test>.mr-origins{margin:16px 0 12px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-test>.mr-origins:empty{display:none}
/* in a dialog a state's heading is a lead, not a second 24 px title under the dialog's own */
.strategy-lab .mr-dialog .mr-state h2{font:600 var(--ui-type-lead) var(--ui-font);letter-spacing:0}
.strategy-lab .mr-dialog .mr-state h2+p{margin-top:4px}
.strategy-lab .mr-origin[data-origin=video]{color:var(--ui-ink)}
.strategy-lab .mr-origin[data-origin=choice]{color:var(--ui-ink-2)}
.strategy-lab .mr-origin[data-origin=missing]{color:var(--ui-accent-text)}
.strategy-lab .mr-conds{display:grid;gap:8px}
.strategy-lab .mr-conds-head{display:flex;align-items:center;gap:12px;margin:0;color:var(--ui-ink);font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-conds ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.strategy-lab .mr-conds li{display:inline-flex;align-items:center;gap:4px;padding-left:12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-control);color:var(--ui-ink)}
.strategy-lab .mr-conds li .app-action-btn{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;justify-content:center;background:transparent}
.strategy-lab .mr-conds li :is(svg,i){width:14px;height:14px}
.strategy-lab .mr-scope{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:balance}
.strategy-lab .mr-lock{display:grid;gap:12px;justify-items:start;padding-top:8px}
.strategy-lab .mr-lock .ui-lock-line{display:flex;align-items:center;gap:8px;margin:0;color:var(--ui-ink)}
.strategy-lab .mr-lock .ui-lock-line :is(svg,i){width:16px;height:16px;color:var(--ui-ink-2)}

/* How the simulation works, the strategies, Change the test: Journal's dialog (lab-c-dialog). */
.mr-dialog .mr-h3{margin:24px 0 4px;color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)}
/* How the simulation works as a reference sheet: what ran where and when, the rules, then label → value rows on hairlines */
.mr-dialog .mr-dialog-meta{margin:0 0 8px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.mr-dialog .mr-dialog-rules{margin:0;color:var(--ui-ink);font:400 var(--ui-type-body) var(--ui-font);text-wrap:pretty}
:is(.mr-dialog,.strategy-lab) .mr-facts{display:grid;grid-template-columns:120px minmax(0,1fr);margin:0}
:is(.mr-dialog,.strategy-lab) .mr-facts>div{display:contents}
:is(.mr-dialog,.strategy-lab) .mr-facts :is(dt,dd){margin:0;padding:10px 0;border-bottom:1px solid var(--ui-line);font:400 var(--ui-type-body) var(--ui-font)}
:is(.mr-dialog,.strategy-lab) .mr-facts dt{padding-right:16px;color:var(--ui-ink-2)}
:is(.mr-dialog,.strategy-lab) .mr-facts dd{color:var(--ui-ink);text-wrap:pretty}
:is(.mr-dialog,.strategy-lab) .mr-facts dt:empty+dd{grid-column:1/-1}
:is(.mr-dialog,.strategy-lab) .mr-facts dt:empty{display:none}
:is(.mr-dialog,.strategy-lab) .mr-facts>div:last-child>*{border-bottom:0}
:is(.mr-dialog,.strategy-lab) .mr-facts small{display:block;margin-top:2px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
@media (max-width:767px){:is(.mr-dialog,.strategy-lab) .mr-facts{grid-template-columns:minmax(0,1fr)}:is(.mr-dialog,.strategy-lab) .mr-facts dt:not(:empty){padding-bottom:0;border-bottom:0}:is(.mr-dialog,.strategy-lab) .mr-facts dt:not(:empty)+dd{padding-top:2px}}
/* a saved strategy's rules before its first run: under the sentence, on the same hairline rows as the simulation sheet */
.strategy-lab .mr-state-copy>.mr-facts{margin-top:12px}
.strategy-lab .mr-state-actions>.mr-usage{margin:0}
.strategy-lab .mr-state-actions:has(>.mr-usage){row-gap:8px} /* the runs left close under its button */
.mr-dialog .mr-state{padding:0}
.mr-dialog .mr-state>*{grid-column:1/-1}
/* The kit's footer (DESIGN-SYSTEM, Dialog): on a hairline across the dialog, as the header's, the primary last; the runs
   left stay at the start (the gate 14 Nov: the line was inset and the primary came first). */
.mr-dialog .mr-state-actions{justify-content:flex-end;margin:8px -24px 0;padding:16px 24px 0;border-top:1px solid var(--ui-line)}
.mr-dialog .mr-state-actions .mr-usage{order:-1;margin-right:auto}
.mr-dialog .mr-state-actions [data-mr-reread]{order:-1} /* the kit's footer: the primary last */

/* /strategy-link step 3: the switch between the two tests, above the sheet. */
.sl-result-tabs-row{margin:16px 0} /* no hole under the switch (Igor 15 Nov «дырка под ним») */
/* the Lab's stacked frame keeps 24 above it under its list (≤1023); under the link page's switch it keeps the switch's 16 */
.sl-view .strategy-lab>.lab-c-answer-frame{margin-top:0}
/* Your trades under the switch keeps the same 16 as Price history, not its own 32 on top (Igor 26 Nov «дырка между ними») */
.sl-view .ui-grid-scope:has(>.sl-result-tabs-row)+.sl-result{margin-top:0}
.sl-result-tabs{display:flex;min-width:0}
.sl-result-tabs .app-view-toggle-btn{flex:1}
.sl-result-tabs .app-view-toggle-btn{gap:8px;white-space:nowrap}
.sl-result-tabs .app-view-toggle-btn :is(svg,i){width:16px;height:16px}
.sl-replay[hidden]{display:none}
/* In the link's answer frame the replay keeps the frame's inset, as the Lab's answer does (24, 16 on a phone; the gate 14 Nov:
   the tabs and fields ran onto the frame's lines). */
.strategy-lab.sl-replay [data-mr-answer]{padding:0 24px}
.strategy-lab.sl-replay [data-mr-answer]:has(>.mr-foot){padding-bottom:24px} /* a state keeps its own 24 above and below */
@media (max-width:767px){.strategy-lab.sl-replay [data-mr-answer]{padding-inline:16px}.strategy-lab.sl-replay [data-mr-answer]:has(>.mr-foot){padding-bottom:16px}}

/* 768: two proofs across, the plate on two lines. 390: one column; nothing runs off, wide tables scroll in their box. */
@media (max-width:767px){
  /* B's phone: the plate and the answer, then the whole test, then the proofs; a trade opens under what opened it. */
  .strategy-lab .mr-run,.strategy-lab .sl-replay [data-mr-answer]{display:flex;flex-direction:column}
  .strategy-lab .mr-plate{order:1}.strategy-lab :is(.mr-answer,.mr-state,.mr-hands){order:2}.strategy-lab .mr-whole,.strategy-lab .mr-trade[data-after=whole]{order:3}
  .strategy-lab .mr-sheet,.strategy-lab .mr-trade[data-after=sheet]{order:4}.strategy-lab .mr-money{order:5}.strategy-lab .mr-report{order:6}.strategy-lab .mr-foot{order:7}
  .strategy-lab .mr-picker{max-width:100%}
  /* the badge on its own line, the specifics under it from the left edge (inline, they began 2 px off the plate's column) */
  .strategy-lab .mr-simulated{display:flex;width:fit-content;margin:0 0 4px}
  .strategy-lab .mr-library-links{justify-content:flex-start}
  .strategy-lab .mr-plate{padding-bottom:16px}
  .strategy-lab .mr-plate .mr-plate-cell{padding-top:0}
  .strategy-lab .mr-answer-result{padding:16px 0 0;border-top:1px solid var(--ui-line)}
  .strategy-lab .mr-answer-result::before{display:none}
  .strategy-lab .mr-period-chart{height:260px}
  .strategy-lab :is(.mr-period-keys,.mr-section-tools,.mr-foot-link,.mr-replay-read){justify-content:flex-start}
  .strategy-lab .mr-replay-read .ui-link{margin-left:auto}
  /* a phone keeps Replay and the sizes on one line; replaying, the day and Close stand in the sizes' place (the money
     so far is the path's reading under it) */
  .strategy-lab .mr-whole-side{justify-content:flex-end;min-height:52px}
  .strategy-lab .mr-whole .mr-replay-read small{display:none}
  .strategy-lab .mr-scrub input[type=range]{height:44px}
  /* A phone reads the summary whole: All, Long and Short side by side, the labels wrapping. */
  .strategy-lab .mr-summary{min-width:0}
  .strategy-lab .mr-summary :is(th,td){padding-left:12px;padding-right:0;font:400 var(--ui-type-caption) var(--ui-font)}
  .strategy-lab .mr-summary td:first-child{white-space:normal}
  .strategy-lab .mr-summary :is(th,td):first-child{padding-left:0}
  .strategy-lab .mr-trade .trade-chart-stats{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  .strategy-lab .mr-fields{grid-template-columns:minmax(0,1fr)}
  .strategy-lab .mr-trade-money{margin-left:0}
}

/* What's in your hands (Igor 15 Nov, direction A «ответ и правило»; «Да, тише»: the card one step under the run's answer —
   20 px title, 24 px figure, a line and no fill, Make it a rule a second button beside Replay the run): his leverage in the
   one card of the section, the
   other changes as rows on hairlines under quiet column heads, each with its three years (the last held out, set a
   little apart). The card is one column below 1024 with its figure under its title. */
.strategy-lab .mr-hands .mr-section-head p{align-self:center;text-wrap:balance}
.strategy-lab .mr-hands-wait{margin:0;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-hands-lead{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head fig" "body fig" "act act";gap:8px 32px;align-items:start;padding:24px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-card);background:var(--ui-page)}
.strategy-lab .mr-hands-lead-head{grid-area:head;min-width:0}
.strategy-lab .mr-hands-lead-body{grid-area:body;min-width:0}
.strategy-lab .mr-hands-kicker{margin:0;color:var(--ui-accent-text);font:500 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-hands-say{margin:0;color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font);letter-spacing:-.01em;text-wrap:balance}
.strategy-lab .mr-hands-sub{margin:0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font);text-wrap:pretty}
.strategy-lab .mr-hands-sub b{color:var(--ui-ink);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .mr-hands-sub b.lab-gain{color:var(--ui-gain)}
.strategy-lab .mr-hands-sub b.lab-loss{color:var(--ui-loss)}
.strategy-lab .mr-hands-yearlist{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 0;padding:0;list-style:none}
.strategy-lab .mr-hands-yearlist li{display:grid;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font);white-space:nowrap}
.strategy-lab .mr-hands-yearlist b{font:600 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .mr-hands-yearlist .is-short{display:none}
.strategy-lab .mr-hands-fig{grid-area:fig;display:grid;justify-items:end;gap:4px;text-align:right}
.strategy-lab .mr-hands-fig .mr-hero{font:600 var(--ui-type-title-m) var(--ui-font);letter-spacing:-.02em}
.strategy-lab .mr-hands-fig small{max-width:240px;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:balance}
.strategy-lab .mr-hands-act{grid-area:act;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px}
.strategy-lab .mr-hands-act>span{color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:pretty}
.strategy-lab .mr-hands-act :is(svg,i){width:16px;height:16px}
.strategy-lab .mr-hands-none .mr-hands-say{font:600 var(--ui-type-lead) var(--ui-font);letter-spacing:0}
.strategy-lab .mr-hands-none .mr-hands-sub{margin-top:4px}
.strategy-lab .mr-hands-list{margin:8px 0 0;padding:0;list-style:none}
.strategy-lab .mr-hands-group{padding:16px 0 4px;color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)}
.strategy-lab :is(.mr-hands-row,.mr-hands-head){display:grid;grid-template-columns:minmax(0,1fr) 104px 64px 96px 104px;gap:16px;align-items:center}
.strategy-lab .mr-hands-list.has-make :is(.mr-hands-row,.mr-hands-head){grid-template-columns:minmax(0,1fr) 104px 64px 96px 104px 128px}
.strategy-lab .mr-hands-head{padding:16px 0 4px;align-items:baseline} /* the first group's title carries the column names (Igor 19 Nov «висит») */
.strategy-lab .mr-hands-head>span:not(:first-child){color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-hands-head>span:nth-child(n+2):nth-child(-n+3){text-align:right}
.strategy-lab .mr-hands-head>span:nth-child(4){text-align:center}
.strategy-lab .mr-hands-head>span:nth-child(5){text-align:right}
.strategy-lab .mr-hands-row{min-height:48px;padding:6px 0;border-bottom:1px solid var(--ui-line);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .mr-hands-rule{min-width:0;color:var(--ui-ink);font-weight:500}
.strategy-lab .mr-hands-rule small{display:block;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .mr-hands-row.is-quiet .mr-hands-rule{color:var(--ui-ink-2);font-weight:400}
.strategy-lab :is(.mr-hands-money,.mr-hands-r,.mr-hands-count){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .mr-hands-money{font-weight:600}
.strategy-lab :is(.mr-hands-r,.mr-hands-count){color:var(--ui-ink-3)}
.strategy-lab .mr-hands-make{justify-self:end;white-space:nowrap}
.strategy-lab .mr-hands-make :is(svg,i){width:14px;height:14px}
.strategy-lab .mr-hands-years{display:flex;gap:4px;justify-self:center}
.strategy-lab .mr-hands-years i{box-sizing:border-box;width:24px;height:6px;border-radius:3px}
.strategy-lab .mr-hands-years i.is-up{background:var(--ui-bar-gain)}
.strategy-lab .mr-hands-years i.is-down{background:var(--ui-bar-loss)}
.strategy-lab .mr-hands-years i.is-flat{background:color-mix(in srgb,var(--ui-ink-3) 55%,transparent)}
.strategy-lab .mr-hands-years i.is-none{border:1px solid color-mix(in srgb,var(--ui-ink-3) 70%,transparent)}
.strategy-lab .mr-hands-years i.is-held-out{margin-left:6px}
.strategy-lab .mr-hands-size{padding:4px 0 12px;border-bottom:1px solid var(--ui-line);color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font);text-wrap:pretty}
.strategy-lab .mr-hands-size b{color:var(--ui-ink);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .mr-hands-foot{margin:16px 0 0;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:pretty}
/* 768 and down: the card in one column, a row's rule on its own line and its figures under it at fixed widths */
@media (max-width:1023px){
  .strategy-lab .mr-hands-lead{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "fig" "body" "act"}
  .strategy-lab .mr-hands-fig{justify-items:start;text-align:left}
  .strategy-lab .mr-hands-fig small{max-width:none}
  .strategy-lab .mr-hands-yearlist .is-long{display:none}
  .strategy-lab .mr-hands-yearlist .is-short{display:inline}
  .strategy-lab .mr-hands-head{display:block}
  .strategy-lab .mr-hands-head>span:not(:first-child){display:none}
  .strategy-lab .mr-hands-row,.strategy-lab .mr-hands-list.has-make .mr-hands-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 0}
  .strategy-lab .mr-hands-row .mr-hands-rule{flex:1 0 100%}
  .strategy-lab .mr-hands-row .mr-hands-money{min-width:80px;text-align:left}
  .strategy-lab .mr-hands-row .mr-hands-r{min-width:56px;text-align:left}
  .strategy-lab .mr-hands-row .mr-hands-make{margin-left:auto}
  .strategy-lab .mr-hands-years{justify-self:auto}
}
@media (max-width:767px){
  .strategy-lab .mr-hands-lead{padding:16px}
}
