/* Strategy Lab home. Your trades is the page Igor picked on 9 Nov 2026 (GPT Astra's prototype C,
   docs/product/design/strategy-lab-2026-11-09/codex/lab-c2.html) on the app's tokens and kit controls: Journal's white
   page, one frame around the answered questions and the open answer, the path from an idea to a strategy, X-ray's
   ideas. Kit pieces it brought: .ui-tile and .ui-paper (assets/ui-kit.css). The first block keeps the plain head used
   when the Lab cannot read the accounts and by Market replay. */
.strategy-lab .lab-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.strategy-lab .lab-gain{color:var(--ui-gain)}
.strategy-lab .lab-loss{color:var(--ui-loss)}
.strategy-lab .ui-link :is(svg,i){width:16px;height:16px}
.strategy-lab button.ui-link{height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ui-accent-text)}
.strategy-lab button.ui-link:hover{background:none}

/* Plain head and lists (accounts unreadable, Market replay). */
/* The head's sections (Your trades | Market replay): the kit's segmented control, its icons at 16 (DESIGN-SYSTEM §2.7). */
.strategy-lab .ui-page-sections .app-view-toggle-btn{gap:8px;white-space:nowrap}
.strategy-lab .ui-page-sections .app-view-toggle-btn :is(svg,i){flex:none;width:16px;height:16px}
.strategy-lab :is(.lab-flat,.lab-glance){margin-top:32px;padding:32px 0 0;border-top:1px solid var(--ui-line)}
.strategy-lab :is(.lab-flat,.lab-glance) h2{margin:0;color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font)}
.strategy-lab :is(.lab-flat,.lab-glance) .lab-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:16px}
.strategy-lab .lab-question-note{margin:4px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
/* No trades yet: one paragraph at the body rhythm, its two ways in as plain inline links (sparse audit, 23 Nov) */
.strategy-lab .lab-empty-line{margin:0 0 20px}
.strategy-lab .lab-empty-line a{color:var(--ui-accent-text);font-weight:500;text-decoration:none}
.strategy-lab .lab-empty-line a:hover{text-decoration:underline;text-underline-offset:3px}
.strategy-lab .lab-glance .se-link{display:inline-flex;align-items:center;gap:6px;font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-section-links{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap}
.strategy-lab .lab-link .sl-paste{max-width:820px;margin-top:0}
.strategy-lab .lab-link-under{display:flex;flex-wrap:wrap;gap:4px 8px;margin:12px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}

/* ---------------------------------------------------------------- Your trades (prototype C) */
.strategy-lab .lab-c{color:var(--ui-ink)}
/* The block's own reset has no weight (:where), so every spacing rule below wins over it; with weight it silently
   zeroed the margins of paragraphs (the baseline under the figure, the chart note, the proof, card captions). */
:where(.strategy-lab .lab-c) :where(h1,h2,h3,p){margin:0}
.strategy-lab .lab-c-meta{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-wait{margin:0;padding:24px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font);animation:lab-fade 1.2s ease-in-out infinite alternate}
@keyframes lab-fade{from{opacity:.4}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.strategy-lab .lab-c-wait{animation:none}}
.strategy-lab .lab-c :is(.app-action-btn,.ui-link) :is(svg,i){width:16px;height:16px}

/* Head (design base §2): the kit's page head — title 32/40, one meta line 14 with the account in ink, the dates on the
   right; then the sentence in the trader's numbers at 24/32, the ask line 16 under it, the tries 12 under that, and
   the frame 32 below. Spacing is set from the parent so the block's own p reset can't swallow it. */
.strategy-lab .lab-c .lab-c-head{align-items:center;margin-bottom:0}
/* Below 1024 the title takes its own line and the sections and the dates share the next (Igor 14 Nov «сползло, плохо
   адаптировалось»: the dates dropped alone to a second row on the right). */
/* On a phone the two sections share the line in equal halves, as Trading Day's surfaces (Igor 10 Nov «фикси»; 14 Nov
   «разве это правильная адаптация этого блока?»: a full-width track with both choices at its left and grey after them). */
@media(max-width:767px){.strategy-lab .lab-sections>.app-view-toggle{display:flex;width:100%}.strategy-lab .lab-sections .app-view-toggle-btn{flex:1 1 0;justify-content:center;min-width:0;padding-inline:8px;white-space:nowrap}}
@media(max-width:1023px){.strategy-lab .lab-c .lab-c-head .ui-page-title{flex-basis:100%}.strategy-lab .lab-c .lab-c-head .ui-page-sections{margin-top:8px}.strategy-lab .lab-c .lab-c-head .ui-page-actions{margin-top:8px}}
.strategy-lab .lab-c .lab-c-intro{margin-top:12px;color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font);letter-spacing:-.01em}
.strategy-lab .lab-c-intro b{font-weight:600;font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-intro span{color:var(--ui-ink-2);font-weight:400}
/* One quiet line under the sentence when trades are counted with their exit before their entry (M1, Igor 12 Nov «Да, считаем»). */
.strategy-lab .lab-c-debt{margin:4px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-debt[hidden]{display:none}
.strategy-lab .lab-c-debt .ui-link{min-height:0;font-size:inherit;line-height:inherit;vertical-align:baseline}

/* The ask line: one field to type or say a question; Enter or "/" opens the palette. */
.strategy-lab .lab-c-ask{margin:16px 0 24px}
.lab-c-askline{display:flex;align-items:center;gap:8px;height:56px;padding:0 8px 0 16px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius-card);background:var(--ui-page);transition:border-color 120ms,box-shadow 120ms}
.lab-c-askline:hover{border-color:var(--ui-ink-3)}
.lab-c-askline:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-accent-soft)}
.lab-c-askline>:is(svg,i){flex:none;width:20px;height:20px;margin-right:4px;color:var(--ui-accent-text)}
.lab-c-askline input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;color:var(--ui-ink);font:400 var(--ui-type-lead) var(--ui-font)}
.lab-c-askline input::placeholder{color:var(--ui-ink-3)}
.strategy-lab .lab-c-askline input:focus-visible,.lab-c-dialog .lab-c-askline input:focus-visible{outline:none}
.strategy-lab .lab-c-kbd{display:inline-grid;flex:none;place-items:center;min-width:24px;height:24px;margin-right:4px;padding:0 8px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius-control);background:var(--ui-raised);color:var(--ui-ink-2);font:500 var(--ui-type-caption) var(--ui-font)}
.lab-c-askline:focus-within .lab-c-kbd{visibility:hidden}
.strategy-lab .lab-c-divider{flex:none;width:1px;height:24px;background:var(--ui-line)}
.lab-c-iconbtn{display:inline-grid;flex:none;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:var(--ui-radius-control);background:none;color:var(--ui-ink-2);cursor:pointer;transition:background-color 120ms,color 120ms}
/* a control's type, 14/20 600 (DESIGN-SYSTEM §2.3), over the editor's `font: inherit` around the Lab */
:is(.strategy-lab,.lab-c-dialog) .lab-c-iconbtn{font:600 14px/20px var(--ui-font)}
.lab-c-iconbtn:hover{background:var(--ui-hover);color:var(--ui-ink)}
.lab-c-iconbtn :is(svg,i){width:20px;height:20px}
/* The send: a soft accent button, filled once there is something to ask. */
.lab-c-askline .lab-c-iconbtn[type=submit]{background:var(--ui-accent-soft);color:var(--ui-accent-text)}
.lab-c-askline:has(input:not(:placeholder-shown)) .lab-c-iconbtn[type=submit]{background:var(--ui-accent);color:var(--ui-on-accent)}
.strategy-lab .lab-c-hint{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-hint>span{margin-right:4px}
/* The tries: suggestions you press, drawn as quiet outlined buttons (32 px, 14 px ink, the icon grey, ink on hover and
   focus), not as status chips (Igor 9 Nov: «эти плашки визуально можно привести к лучшему виду?»). Three accent icons in a
   row were decoration; the accent is for the one action (Igor 12 Nov, the coordinator). */
.strategy-lab .lab-c-hint button.ui-chip{gap:8px;height:32px;min-height:0;padding:0 12px;border:0;background:var(--ui-page);box-shadow:inset 0 0 0 1px var(--ui-line-strong);color:var(--ui-ink);font:500 var(--ui-type-body) var(--ui-font);cursor:pointer;transition:background-color 120ms,box-shadow 120ms}
.strategy-lab .lab-c-hint button.ui-chip.ui-chip>:is(svg,i){width:16px;height:16px;flex-basis:16px;color:var(--ui-ink-2)}
.strategy-lab .lab-c-hint button.ui-chip.ui-chip:is(:hover,:focus-visible)>:is(svg,i){color:var(--ui-ink)}
.strategy-lab .lab-c-hint button.ui-chip:hover{background:var(--ui-hover);box-shadow:inset 0 0 0 1px var(--ui-ink-3)}

/* Strategy Lab B (Igor 11 Nov «Да, B»): the answered questions as a ledger on the page, the open answer in its own frame
   beside it (the one frame of the screen), closed or opened like a setup's preview; Expand ledger gives the ledger the
   whole width. */
.strategy-lab .lab-c{--lab-list:360px}
@media (min-width:1700px){.strategy-lab .lab-c{--lab-list:400px}}
/* 360 and a 24 gap (Igor 14 Nov «график зажат… Да, 360»): the chart 48 px wider at 1512, every list row still one line */
.strategy-lab .lab-c-frame{display:grid;grid-template-columns:var(--lab-list) minmax(0,1fr);gap:24px;align-items:start}
.strategy-lab .lab-c-frame.is-ledger{grid-template-columns:minmax(0,1fr)}
.strategy-lab .lab-c-frame.is-ledger .lab-c-answer-frame{display:none}
.strategy-lab .lab-c-explorer{display:flex;flex-direction:column;min-width:0}
.strategy-lab .lab-c-frame.is-empty{grid-template-columns:minmax(0,1fr)}
.strategy-lab .lab-c-frame.is-empty .lab-c-explorer{display:none}
.strategy-lab :is(.lab-c-intro,.lab-c-hint)[hidden]{display:none}
.strategy-lab .lab-c-explorer-head{padding:4px 0 16px}
.strategy-lab .lab-c-explorer-head>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.strategy-lab .lab-c-explorer-head h2{margin:0;color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font);letter-spacing:-.015em}
.strategy-lab .lab-c-explorer-head p{margin-top:4px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-tabs.app-view-toggle{display:flex;width:100%;margin:0 0 16px}
.strategy-lab .lab-c-tabs .app-view-toggle-btn{flex:1 1 0;justify-content:center;gap:8px;white-space:nowrap}
.strategy-lab .lab-c-tabs .app-view-toggle-btn[hidden]{display:none}
.strategy-lab .lab-c-tabs .app-view-toggle-btn span{color:var(--ui-ink-3);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-tabs .app-view-toggle-btn.active span{color:inherit}
.strategy-lab .lab-c-cols{display:flex;justify-content:space-between;gap:12px;padding:0 12px 8px;border-bottom:1px solid var(--ui-line-strong);color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-list{max-height:648px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;outline:none}
.strategy-lab .lab-c-frame.is-ledger .lab-c-list{max-height:none}
.strategy-lab .lab-c-row{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:'tile title value' 'tile meta side';align-items:baseline;gap:2px 12px;width:100%;padding:8px 12px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:none;color:var(--ui-ink);text-align:left;cursor:pointer}
.strategy-lab .lab-c-frame.is-ledger .lab-c-row{grid-template-columns:32px minmax(0,1fr) minmax(160px,40%)}
.strategy-lab .lab-c-row:hover{background:var(--ui-hover)}
.strategy-lab .lab-c-row.is-on{background:var(--ui-accent-soft)}
.strategy-lab .lab-c-row.is-on .lab-c-row-title{font-weight:600}
.strategy-lab .lab-c-row.is-on::before{content:'';position:absolute;top:0;bottom:0;left:0;width:2px;background:var(--ui-accent)}
.strategy-lab .lab-c-row:focus-visible{outline:2px solid var(--ui-accent-text);outline-offset:-2px}
/* The question's own drawing, without a tile (B): the drawing's gaps take the row's colour. */
.strategy-lab .lab-c-mark{grid-area:tile;align-self:center;display:grid;place-items:center;width:32px;height:32px;color:var(--ui-ink-2);--lab-glyph-gap:var(--ui-page);--lab-glyph-quiet:color-mix(in srgb,var(--ui-ink-3) 60%,transparent)}
.strategy-lab .lab-c-row:hover .lab-c-mark{--lab-glyph-gap:var(--ui-hover)}
.strategy-lab .lab-c-row.is-on .lab-c-mark{--lab-glyph-gap:var(--ui-accent-soft)}
.strategy-lab .lab-c-mark>.lab-c-glyph{width:24px;height:24px}
.strategy-lab .lab-c-mark>i,.strategy-lab .lab-c-mark>svg:not(.lab-c-glyph){width:20px;height:20px}
.strategy-lab .lab-c-early-dot{display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:50%;background:var(--ui-warn);vertical-align:middle}
/* Rows scrolled out of the list are not drawn (a long list stays light, and nothing hidden counts as on screen). */
/* denser rows (Igor 14 Nov «я бы это уплотнил»): 8 px above and below, 2 px between the two lines, 75 → 61 px */
.strategy-lab .lab-c-row{content-visibility:auto;contain-intrinsic-size:auto 61px}
.strategy-lab .lab-c-row-title{grid-area:title;overflow:hidden;font:500 var(--ui-type-body) var(--ui-font);text-overflow:ellipsis;white-space:nowrap}
.strategy-lab .lab-c-row-meta{grid-area:meta;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-row-value{grid-area:value;justify-self:end;text-align:right;font:600 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-row-side{grid-area:side;justify-self:stretch;align-self:center}
/* The change's bar from the ledger's one zero (B): a hairline track, the zero as a tick, the change drawn from it. */
.strategy-lab .lab-c-minibar{position:relative;display:block;width:116px;max-width:100%;height:10px;margin-left:auto}
.strategy-lab .lab-c-frame.is-ledger .lab-c-minibar{width:100%}
.strategy-lab .lab-c-minibar::before{content:'';position:absolute;left:0;right:0;top:4px;height:2px;border-radius:3px;background:var(--ui-line)}
.strategy-lab .lab-c-minibar b{position:absolute;top:0;width:1px;height:10px;background:var(--ui-ink-3)}
.strategy-lab .lab-c-minibar i{position:absolute;top:3px;height:4px;border-radius:3px;background:var(--ui-bar-gain)}
.strategy-lab .lab-c-minibar i.is-loss{background:var(--ui-bar-loss)}
.strategy-lab .lab-c-explorer-foot{display:flex;align-items:center;gap:4px;height:48px;padding:0 12px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-explorer-foot .ui-link{margin-left:auto;font:500 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-explorer-foot span{margin-left:24px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-explorer-foot .lab-c-keys{display:inline-flex;align-items:center;gap:4px;margin-left:0;color:inherit}
/* The keys hint is for a keyboard beside a wide list; on touch or a narrow column it would wrap into the rows. */
@media (hover:none),(max-width:767px){.strategy-lab .lab-c-explorer-foot .lab-c-keys{display:none}}
.strategy-lab .lab-c-explorer-foot>*{white-space:nowrap}
.strategy-lab .lab-c-explorer-foot kbd{display:inline-grid;place-items:center;width:20px;height:20px;text-align:center;border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius-control);background:var(--ui-raised);font:500 var(--ui-type-caption) var(--ui-font)}
/* The keys are 20 + 4 + 20 wide, so the words start on the rows' title edge (24 + 36 tile + 12). */
.strategy-lab .lab-c-explorer-foot kbd+kbd{margin-right:0}

/* The open answer: kicker, the sentence, the figure with its comparison, the chart, the proof, the tools, the action. */
/* The answer's frame (B): what it is and its close on top, then the sentence, the figure, the two sums, the views. */
.strategy-lab .lab-c-answer-frame{min-width:0;overflow:hidden;border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius-card);background:var(--ui-page)}
.strategy-lab .lab-c-answer-bar{display:flex;align-items:center;gap:12px;padding:20px 24px 0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-answer{display:flex;flex-direction:column;min-width:0}
.strategy-lab .lab-c-answer-top{padding:4px 24px 0}
/* With no kind to name (the historical answer says it in its sentence), the bar goes and the answer starts on the frame's inset. */
.strategy-lab .lab-c-answer-frame:has([data-lab-answer-kind]:empty) .lab-c-answer-bar{display:none}
.strategy-lab .lab-c-answer-frame:has([data-lab-answer-kind]:empty) .lab-c-answer-top{padding-top:24px}
.strategy-lab .lab-c-pair{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin-top:16px}
.strategy-lab .lab-c-pair p{display:grid;gap:2px;margin:0}
.strategy-lab .lab-c-pair p span{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-pair p b{font:600 var(--ui-type-lead) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-pair>:is(svg,i){width:16px;height:16px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-kicker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
/* The headline row: the answer's sentence and its trades on one baseline. The list's 16 px title and this 24 px
   headline both start 24 px down, so the tops of their letters line up (within a pixel), which reads level; matching
   baselines instead left the list's title 8 px lower (Igor 9 Nov: «криво смотрится»). */
.strategy-lab .lab-c-headline{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 24px}
.strategy-lab .lab-c-headline>h2{flex:1 1 420px;min-width:0}
.strategy-lab .lab-c-headline>.lab-c-meta{white-space:nowrap}
/* pretty, not balance (Igor 14 Nov «пустота не уместна справа»): a sentence a little wider than the frame broke in half and
   left the right half empty; pretty fills the first line and only keeps a lone last word off its own line */
.strategy-lab .lab-c-answer h2{max-width:960px;color:var(--ui-ink);font:600 var(--ui-type-title-m) var(--ui-font);letter-spacing:-.02em;text-wrap:pretty}
.strategy-lab .lab-c-hero{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-top:8px}
.strategy-lab .lab-c-delta{display:inline-flex;align-items:center;gap:8px}
.strategy-lab .lab-c-delta .ui-chip{font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-vs{color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-figure{font:600 var(--ui-type-title-l) var(--ui-font);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-lab .lab-c-baseline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:12px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-baseline b{font:600 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-baseline :is(svg,i){width:14px;height:14px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-chartzone{flex:1;margin-top:20px;padding:20px 24px 0;border-top:1px solid var(--ui-line)}
.strategy-lab .lab-c-narrow{margin-left:auto;color:var(--ui-accent-text)}
.strategy-lab .lab-c-narrow>span{display:none}
.strategy-lab .lab-c-chart-label{margin:0 0 8px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-ends{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 8px}
.strategy-lab .lab-c-ends p{display:grid;gap:2px;margin:0}
.strategy-lab .lab-c-ends span{display:inline-flex;align-items:center;gap:8px;color:var(--ui-ink);font:500 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-ends b{padding-left:24px;font:600 var(--ui-type-lead) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-ends b.lab-gain{color:var(--ui-gain)}.strategy-lab .lab-c-ends b.lab-loss{color:var(--ui-loss)}.strategy-lab .lab-c-ends b.is-all{color:var(--ui-ink-2)}
.strategy-lab .lab-c-chartbar{display:flex;align-items:center;justify-content:flex-start;gap:8px 16px;flex-wrap:wrap;margin-bottom:16px}
.strategy-lab .lab-c-chartbar .app-view-toggle{max-width:100%}
.strategy-lab .lab-c-chartbar .app-view-toggle-btn{flex:none;gap:8px;white-space:nowrap}
/* Each view with its icon, like Journal's Day / Week / Month / All history (18 px, quiet until chosen). */
.strategy-lab .lab-c-chartbar .app-view-toggle-btn :is(svg,i){flex:none;width:18px;height:18px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-chartbar .app-view-toggle-btn[aria-pressed=true] :is(svg,i){color:inherit}
.strategy-lab .lab-c-short{display:none}
.strategy-lab .lab-c-chartbar .ui-link{display:inline-flex;align-items:center;gap:8px}
.strategy-lab .lab-c-chart{min-height:268px}
/* The ribbon's chapters are the as-traded result: one quiet label over them (12 Nov). */
.strategy-lab .lab-c-strip-label{margin:0 0 4px;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-strip-label[hidden]{display:none}
.strategy-lab .lab-c-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-legend span{display:inline-flex;align-items:center;gap:8px}
.strategy-lab .lab-c-legend-end{margin-left:8px;color:var(--ui-ink-3)}
/* The answer's trades and scope close the comparison line instead of floating at the headline's far right. */
.strategy-lab .lab-c-scope-note{display:inline-flex;gap:8px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-swatch{display:block;width:16px;height:3px;background:var(--ui-bar-gain)}
.strategy-lab .lab-c-swatch.is-loss{background:var(--ui-bar-loss)}
.strategy-lab .lab-c-swatch.is-all{background:var(--ui-ink-3)}
.strategy-lab .lab-c-swatch.is-traded{height:2px;background:var(--ui-ink-3)}
.strategy-lab .lab-c-svg{display:block;max-width:100%;height:auto;overflow:visible}
.strategy-lab .lab-c-svg text{fill:var(--ui-ink-2);font:400 var(--ui-type-chart) var(--ui-font);font-variant-numeric:tabular-nums}
/* Gridlines: solid hairlines you can read across to the axis (Igor 9 Nov: dashed ones «не видно почти и оно путает»);
   the zero line a step darker. */
.strategy-lab .lab-c-grid{stroke:var(--ui-line-strong);stroke-width:1;shape-rendering:crispEdges}
.strategy-lab .lab-c-grid.is-zero{stroke:color-mix(in srgb,var(--ui-ink-3) 60%,var(--ui-page))}
/* The answer's line carries the chart: a 2.5 px line over a band of its own colour (the money the question changes),
   As traded a full 2 px grey, end dots ringed in the page colour (Igor 10 Nov: «как-то оно прям невзрачно»). */
/* B: the band is a plain tint of the difference's colour (it replaced the 10 Nov hatching when Igor picked B). */
.strategy-lab .lab-c-area{fill:color-mix(in srgb,var(--ui-bar-gain) 14%,transparent)}
.strategy-lab .lab-c-area.is-loss{fill:color-mix(in srgb,var(--ui-bar-loss) 12%,transparent)}
.strategy-lab .lab-c-line{fill:none;stroke:var(--ui-bar-gain);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.strategy-lab .lab-c-line.is-loss{stroke:var(--ui-bar-loss)}
.strategy-lab .lab-c-line.is-all{stroke:var(--ui-ink-3);stroke-width:2}
.strategy-lab .lab-c-dot{fill:var(--ui-bar-gain)}
.strategy-lab .lab-c-dot.is-loss{fill:var(--ui-bar-loss)}
/* The what-if line, its band, bracket and figures are green when the change helps and red when it costs (Igor 10 Nov,
   after trying the accent: «зеленую линию верни»). */
.strategy-lab .lab-c-dot.is-all{fill:var(--ui-ink-3)}
.strategy-lab .lab-c-dot.is-end{stroke:var(--ui-page);stroke-width:2}
.strategy-lab .lab-c-svg .lab-c-end.is-all{fill:var(--ui-ink-2)}
.strategy-lab .lab-c-cross{stroke:var(--ui-line-strong)}
/* Hover dots carry a ring in the page colour so they stay readable over the lines and the band. */
.strategy-lab .lab-c-hover{stroke:var(--ui-page);stroke-width:2;pointer-events:none}
/* The axis break (the Dashboard dark card's joint): a page-coloured strip over the gridlines, "//" on each line and the
   axis, the stretch in words under the chart; the end bracket in the difference's tone. */
.strategy-lab .lab-c-cut{fill:var(--ui-page)}
.strategy-lab .lab-c-joint{fill:none;stroke:var(--ui-ink-3);stroke-width:1.5;stroke-linecap:round}
.strategy-lab .lab-c-gapnote{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-gapnote b{margin-right:8px;font-weight:600;letter-spacing:-.05em}
.strategy-lab .lab-c-svg .lab-c-gap-label{fill:var(--ui-ink-2)}
.strategy-lab .lab-c-hit{fill:transparent;pointer-events:all}
.strategy-lab .lab-c-bin.is-group{fill:var(--ui-bar-loss)}
.strategy-lab .lab-c-bin.is-rest{fill:var(--ui-ink-3)}
.strategy-lab .lab-c-chart-note{margin-top:12px;padding:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
/* A chart that could not be drawn: the reason in the chart's own place, centred, and Try again. */
.strategy-lab .lab-c-chart-error{display:grid;justify-items:center;align-content:center;gap:12px;min-height:240px;padding:24px;text-align:center;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-chart-error>:is(svg,i){width:20px;height:20px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-chart-error p{margin:0;text-wrap:pretty}
.strategy-lab .lab-c-groups{display:grid;gap:32px;padding:32px 0}
.strategy-lab .lab-c-group{display:grid;grid-template-columns:140px minmax(0,1fr) 110px;align-items:center;gap:16px}
.strategy-lab .lab-c-group strong{display:block;font:600 var(--ui-type-title-s) var(--ui-font)}
.strategy-lab .lab-c-group>b{text-align:right;font:600 var(--ui-type-lead) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-track{display:block;height:12px;margin-bottom:8px;overflow:hidden;border-radius:var(--ui-radius-control);background:var(--ui-raised)}
.strategy-lab .lab-c-track i{display:block;height:100%;background:var(--ui-bar-gain)}
.strategy-lab .lab-c-track i.is-loss{background:var(--ui-bar-loss)}
/* One zero for both groups' bars when one loses (12 Nov): a hairline at the zero. */
.strategy-lab .lab-c-track.has-zero{position:relative}
.strategy-lab .lab-c-track.has-zero::after{content:'';position:absolute;top:0;bottom:0;left:var(--lab-zero);width:1px;background:var(--ui-ink-3)}
/* Free: the two groups as bars of trades, no money, so no gain or loss colour (it would give the answer away): the
   question's group in the accent, like the asked part of the list's tiles, the rest quiet (Igor 10 Nov: «каким цветом
   их лучше сделать чтобы не были такие стремные?» — the grey pair read heavy). */
.strategy-lab .lab-c-groups.is-counts .lab-c-track i.is-group{background:var(--ui-accent)}
.strategy-lab .lab-c-groups.is-counts .lab-c-track i.is-rest{background:color-mix(in srgb,var(--ui-ink-3) 34%,transparent)}
.strategy-lab .lab-c-groups.is-counts .lab-c-group>b{color:var(--ui-ink)}
.strategy-lab .lab-c-mbar.is-group{fill:var(--ui-bar-loss)}
.strategy-lab .lab-c-mbar.is-rest{fill:var(--ui-ink-3)}
.strategy-lab .lab-c-svg .lab-c-mvalue{font:600 var(--ui-type-chart) var(--ui-font)}
.strategy-lab .lab-c-svg .lab-c-mvalue.lab-gain{fill:var(--ui-gain)}
.strategy-lab .lab-c-svg .lab-c-mvalue.lab-loss{fill:var(--ui-loss)}
.strategy-lab .lab-c-svg .lab-c-mlabel{fill:var(--ui-ink);font-weight:600}
/* The hovered month: a quiet band behind its bars. */
.strategy-lab .lab-c-msvg .lab-c-hit.is-on{fill:var(--ui-hover);fill-opacity:.6}
.strategy-lab .lab-c-msvg :is(.lab-c-mbar,text,line){pointer-events:none}
.strategy-lab .lab-c-proof{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:16px 0;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-proof :is(svg,i){flex:none;width:16px;height:16px;margin-top:1px;color:var(--ui-gain)}
.strategy-lab .lab-c-proof>span{text-wrap:pretty}
.strategy-lab .lab-c-proof.is-early :is(svg,i){color:var(--ui-warn)}
/* The tools: what to look at next, one row of the page's links, each with its icon, on the answer's 28 px edge. */
.strategy-lab .lab-c-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;min-height:56px;padding:8px 24px;border-top:1px solid var(--ui-line)}
.strategy-lab .lab-c-tools .ui-link{display:inline-flex;align-items:center;gap:8px;min-height:0;font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-tools .ui-link :is(svg,i){width:16px;height:16px}
/* The action: the sentence that says what it does, then the one primary. */
.strategy-lab .lab-c-actions{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid var(--ui-line);background:var(--ui-raised)}
.strategy-lab .lab-c-action-copy{display:grid;justify-items:start;gap:2px;min-width:0}
.strategy-lab .lab-c-action-copy .lab-c-focus{margin-top:8px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-action-label{color:var(--ui-ink);font:600 var(--ui-type-lead) var(--ui-font)}
.strategy-lab .lab-c-do{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px}
.strategy-lab .lab-c-focus{display:inline-flex;align-items:center;gap:12px}
.strategy-lab .lab-c-free,.strategy-lab .lab-c-empty{display:flex;flex-direction:column;gap:12px;padding:32px 24px}
.strategy-lab .lab-c-answer-top+.lab-c-free{padding-top:0}
.strategy-lab .lab-c-free p,.strategy-lab .lab-c-empty p{max-width:560px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-empty h2,.strategy-lab .lab-c-free h2{max-width:640px}
.strategy-lab .lab-c-dots{display:flex;flex-wrap:wrap;gap:4px;max-width:520px;margin:8px 0}
.strategy-lab .lab-c-dots i{width:8px;height:8px;border-radius:50%;background:var(--ui-line-strong)}
.strategy-lab .lab-c-dots i.is-on{background:var(--ui-bar-gain)}
.strategy-lab .lab-c .lab-c-honesty{display:flex;align-items:center;gap:8px;margin:16px 0 0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-honesty :is(svg,i){width:14px;height:14px}

/* Below: the path from an idea to a strategy, X-ray's ideas. Flat sections on one hairline each. */
.strategy-lab .lab-c-lower{margin-top:32px;padding-top:32px;border-top:1px solid var(--ui-line);scroll-margin-top:24px;outline:none}
.strategy-lab .lab-c-lower h2{color:var(--ui-ink);font:600 var(--ui-type-title-s) var(--ui-font);letter-spacing:-.01em}
.strategy-lab .lab-c-idea-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:32px}
.strategy-lab .lab-c-idea-head p{margin-top:8px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:0;padding:0;list-style:none}
/* L9 (12 Nov): the idea path is the chain of /strategy-link (Igor's pick A, 10 Nov): the kit's step bar over each step and
   the chain's names, so the subtitle, the four steps and /strategy-link read as one. */
.strategy-lab .lab-c-stage{min-width:0;padding-top:12px;outline:none}
.strategy-lab .lab-c-stage-head{display:flex;align-items:center;gap:8px;min-height:32px;margin-bottom:16px}
.strategy-lab .lab-c-stage-head h3{margin:0;color:var(--ui-ink);font:600 var(--ui-type-body) var(--ui-font);white-space:nowrap}
/* B: the steps stand on their numbers, without lines and arrows between them. */
.strategy-lab .lab-c-sources{margin-bottom:16px}
.strategy-lab .lab-c-intake{display:flex;flex-direction:column;gap:8px}
.strategy-lab .lab-c-intake .app-content-choice{width:100%;height:40px}
.strategy-lab .lab-c-intake .app-action-btn{justify-content:center;width:100%}
.strategy-lab .lab-c-intake-more{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0}
.strategy-lab .lab-c-intake-more .ui-link,.strategy-lab .lab-c-more{min-height:0}
.strategy-lab .lab-c-quota,.strategy-lab .lab-c-caption{margin-top:12px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:balance}
.strategy-lab .lab-c-papers{display:grid;gap:12px}
.strategy-lab .lab-c-more{display:inline-flex;margin-top:12px}
.strategy-lab .lab-c-recipe{padding-top:0}
.strategy-lab .lab-c-recipe>p:first-child{margin-bottom:16px;font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-recipe ul{display:grid;gap:16px;margin:0;padding:0;list-style:none}
.strategy-lab .lab-c-recipe li{display:flex;align-items:flex-start;gap:8px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-recipe li :is(svg,i){flex:none;width:16px;height:16px;margin-top:1px;color:var(--ui-ink-3)}
.strategy-lab .lab-c-recipe .lab-c-caption{margin-top:16px;padding-top:16px;border-top:1px solid var(--ui-line)}
.strategy-lab .lab-c-folder{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:188px;margin-top:16px;padding:24px;border:0;box-shadow:inset 0 0 0 1px var(--ui-line-strong);border-radius:var(--ui-radius-control);border-top-left-radius:0;background:var(--ui-raised);color:var(--ui-ink);text-decoration:none}
.strategy-lab .lab-c-folder::before{content:'';position:absolute;top:-16px;left:0;width:42%;height:17px;border:1px solid var(--ui-line-strong);border-bottom:0;border-radius:var(--ui-radius-control) var(--ui-radius-control) 0 0;background:var(--ui-raised)}
.strategy-lab .lab-c-folder:hover,.strategy-lab .lab-c-folder:hover::before{background:var(--ui-hover);text-decoration:none}
.strategy-lab .lab-c-folder-mark{display:grid;place-items:center;width:32px;height:32px;margin-bottom:16px;border-radius:var(--ui-radius-control);background:var(--ui-page);color:var(--ui-accent-text)}
.strategy-lab .lab-c-folder strong{font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-folder>span:not([class]){margin-top:4px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font);text-wrap:balance}
.strategy-lab .lab-c-folder-action{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:16px;color:var(--ui-accent-text);font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-folder-action :is(svg,i){width:16px;height:16px}
.strategy-lab .lab-c-papers .ui-paper{max-width:none}
/* A stage's count is a quiet number after its title, not a second grey tile beside the step's own number. */
.strategy-lab .lab-c-stage-head .ui-chip{height:auto;padding:0;background:none;color:var(--ui-ink-3);font:400 var(--ui-type-body) var(--ui-font)}
/* Saved strategies in the folder: rows on hairlines, the name opens its plan, Test on the right; the folder's foot holds
   All strategies and New strategy. */
.strategy-lab .lab-c-folder.is-list{align-items:stretch;width:100%;min-width:0;min-height:0;margin-top:12px;padding:0;border-top:1px solid var(--ui-line);box-shadow:none;background:none}
/* B: the saved strategies as a flat list under one hairline, not in a folder. */
.strategy-lab .lab-c-folder.is-list::before{display:none}
.strategy-lab .lab-c-strategies{min-width:0}
.strategy-lab .lab-c-folder.is-list:hover{background:none}
.strategy-lab .lab-c-strategies{display:grid;margin:0;padding:0;list-style:none}
.strategy-lab .lab-c-strategies li{display:flex;align-items:center;gap:12px;min-width:0;padding:0;border-bottom:1px solid var(--ui-line)}
.strategy-lab .lab-c-strategies li.is-new strong{display:inline-flex;align-items:center;gap:8px;color:var(--ui-accent-text)}
.strategy-lab .lab-c-strategies li.is-new :is(svg,i){width:16px;height:16px}
.strategy-lab .lab-c-strategy{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;padding:12px 0;color:var(--ui-ink);text-decoration:none}
.strategy-lab .lab-c-strategy:hover strong{color:var(--ui-accent-text)}
.strategy-lab .lab-c-strategies strong{display:-webkit-box;overflow:hidden;font:500 var(--ui-type-body) var(--ui-font);text-wrap:balance;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.strategy-lab .lab-c-strategies span{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.strategy-lab .lab-c-strategy-test{display:inline-flex;flex:none;align-items:center;gap:4px;min-height:0;font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-folder-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.strategy-lab .lab-c-folder-foot .ui-link{display:inline-flex;align-items:center;gap:4px;min-height:0;font:500 var(--ui-type-body) var(--ui-font)}

.strategy-lab .lab-c-section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 12px;margin-bottom:8px}
.strategy-lab .lab-c-note{margin-bottom:8px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
/* X-ray's rows sit on the idea path's columns: the rule over columns 1–2, its money under step 3, the way in under
   step 4 (Igor 9 Nov: «нет сетки»). */
.strategy-lab .lab-c-xray-row{display:grid;grid-template-columns:36px minmax(0,1fr) 160px 200px;align-items:center;gap:24px;padding:16px 0;border-bottom:1px solid var(--ui-line)}
.strategy-lab .lab-c-xray-row[hidden]{display:none}
.strategy-lab .lab-c-xray-row:last-child{border-bottom:0}
.strategy-lab .lab-c-xray-row strong{display:block;font:500 var(--ui-type-body) var(--ui-font);text-wrap:balance}
.strategy-lab .lab-c-xray-row .lab-c-meta{display:block;margin-top:2px}
.strategy-lab :is(.lab-c-idea-head,.lab-c-section-head)>.lab-c-meta{white-space:nowrap}
.strategy-lab .lab-c-idea-head>div{flex:1 1 320px;min-width:0}
/* B: the idea's drawing without a tile, its money and its way on at the row's right. */
.strategy-lab .lab-c-xray-row>.ui-tile{margin-right:-12px;background:none}
.strategy-lab .lab-c-xray-row .lab-c-money{justify-self:end}
.strategy-lab .lab-c-money{font:600 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.strategy-lab .lab-c-xray-row .ui-link{justify-self:end;min-height:0}
.strategy-lab .lab-c-xray-toggle{margin-top:16px}
.strategy-lab .lab-c-xray-toggle[aria-expanded=true] :is(svg,i){transform:rotate(180deg)}

/* Dialogs: Journal's modal — header with a hairline, quiet ×, body, footer with the action last. */
.lab-c-dialog{width:min(640px,calc(100vw - 48px));max-height:calc(100dvh - 80px);margin:auto;padding:0;overflow:auto;border:1px solid var(--ui-line-strong);border-radius:16px;background:var(--ui-page);color:var(--ui-ink);box-shadow:var(--ui-shadow-dialog)}
.lab-c-dialog.is-wide{width:min(880px,calc(100vw - 48px))}
.lab-c-dialog::backdrop{background:rgb(32 35 31 / .4)}
.lab-c-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 16px 24px;border-bottom:1px solid var(--ui-line)}
.lab-c-dialog>header h2{margin:0;font:600 var(--ui-type-title-m) var(--ui-font);letter-spacing:-.02em}
.lab-c-dialog-body{display:flex;flex-direction:column;gap:12px;padding:24px;font:400 var(--ui-type-body) var(--ui-font)}
.lab-c-dialog-body p{margin:0}
.lab-c-dialog>footer{display:flex;align-items:center;justify-content:flex-end;gap:12px 16px;padding:16px 24px;border-top:1px solid var(--ui-line)}
.lab-c-dialog .lab-c-meta{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-dialog .lab-gain{color:var(--ui-gain)}.lab-c-dialog .lab-loss{color:var(--ui-loss)}
.lab-c-dialog :is(.ui-link,.app-action-btn) :is(svg,i){width:16px;height:16px}
.lab-c-table{width:100%;border-collapse:collapse;font:400 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums}
.lab-c-table :is(th,td){padding:12px 8px;border-bottom:1px solid var(--ui-line);text-align:right;white-space:nowrap}
.lab-c-table th{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-table :is(th,td):first-child{padding-left:0;text-align:left}
.lab-c-table :is(th,td).is-text{text-align:left}
.lab-c-table tr:last-child td{border-bottom:0}
.lab-c-where{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px 32px}
.lab-c-where h3{margin:0 0 8px;font:600 var(--ui-type-body) var(--ui-font)}
.lab-c-where-row{display:grid;grid-template-columns:84px minmax(0,1fr) 24px 64px;align-items:center;gap:8px;margin:12px 0;font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-where-row .lab-c-track{height:4px;margin:0}
.lab-c-where-row b{text-align:right;font-weight:600}
.lab-c-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 0}
.lab-c-figures>div{padding:0 24px;border-left:1px solid var(--ui-line)}
.lab-c-figures>div:first-child{padding-left:0;border-left:0}
.lab-c-figures dt{color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-figures dd{margin:4px 0 0;font:600 var(--ui-type-title-s) var(--ui-font);font-variant-numeric:tabular-nums}
/* A phone: three figures don't fit side by side (Igor 10 Nov: «на мобиле оно сломалось»), so each is a row, the label at
   the left and the figure at the right, hairlines between, the same type as on a wide screen. */
@media (max-width:600px){
 .lab-c-figures{grid-template-columns:minmax(0,1fr)}
 .lab-c-figures>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-left:0;border-top:1px solid var(--ui-line)}
 .lab-c-figures>div:first-child{padding-top:0;border-top:0}
 .lab-c-figures dd{margin:0;white-space:nowrap}
}
.lab-c-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lab-c-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;border:0;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-field.is-wide{grid-column:1/-1}
/* Weekdays is a fieldset: its legend reads like the other fields' labels; the form's error runs the dialog's width
   (Narrow it, 10 Nov: the legend was 12 px beside 14 px labels, the error wrapped in one column). */
.lab-c-field legend{padding:0 0 8px;color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font)}
.lab-c-form>[data-lab-narrow-error]{grid-column:1/-1;margin:0;text-wrap:pretty}
.lab-c-field .app-content-choice{width:100%;height:40px}
.lab-c-field small{color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.lab-c-days label{position:relative;display:flex;align-items:center;justify-content:center;min-height:36px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-control);color:var(--ui-ink);font:500 var(--ui-type-body) var(--ui-font);cursor:pointer}
.lab-c-days label:hover{background:var(--ui-hover)}
.lab-c-days input{position:absolute;width:1px;height:1px;opacity:0}
.lab-c-days label:has(input:checked){border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent-text)}
.lab-c-days label:has(input:focus-visible){outline:2px solid var(--ui-accent-text);outline-offset:2px}
.lab-c-presets{display:flex;flex-wrap:wrap;gap:8px}
.lab-c-presets .app-action-btn[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent-text)}
.lab-c-plan-rule{display:flex;align-items:center;gap:12px;padding:12px 0}
.lab-c-plan-rule strong{display:block;font:600 var(--ui-type-title-s) var(--ui-font)}
.lab-c-plan-rule span:not(.ui-tile){color:var(--ui-ink-2);font:400 var(--ui-type-body) var(--ui-font);font-variant-numeric:tabular-nums;display:block;text-wrap:pretty}
.lab-c-plan-ask{color:var(--ui-ink-2)}
.lab-c-plan-ask b{color:var(--ui-ink);font-weight:600}
/* The palette: the question in words, what the Lab understood, answers ready to open. */
.lab-c-dialog.is-palette{width:min(720px,calc(100vw - 48px));margin-top:14vh;overflow:hidden}
.lab-c-dialog.is-palette .lab-c-dialog-body{gap:0;padding:0}
.lab-c-askline.is-palette{height:64px;padding:0 12px 0 24px;border:0;border-radius:0;box-shadow:none}
.lab-c-askline.is-palette>:is(svg,i){color:var(--ui-ink-3)}
.lab-c-understood{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 24px;border-top:1px solid var(--ui-line)}
.lab-c-understood:empty{display:none}
.lab-c-understood button.ui-chip{border:0;cursor:pointer;font:500 var(--ui-type-caption) var(--ui-font)}
.lab-c-understood .ui-chip :is(svg,i){width:13px;height:13px}
.lab-c-suggest-head{display:flex;justify-content:space-between;gap:12px;padding:16px 24px 8px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-suggestion{display:flex;align-items:center;gap:12px;width:100%;min-height:0;padding:16px 24px;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:none;color:var(--ui-ink);text-align:left;font:inherit;cursor:pointer}
.lab-c-suggestion:first-child{border-top:0}
.lab-c-suggestion:hover,.lab-c-suggestion:focus-visible{background:var(--ui-hover);outline:none}
.lab-c-suggestion strong{display:block;font:500 var(--ui-type-body) var(--ui-font)}
.lab-c-suggestion small{display:block;margin-top:2px;color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-suggestion>:is(svg,i):last-child{width:16px;height:16px;margin-left:auto;color:var(--ui-ink-3)}
.lab-c-unsupported{display:flex;gap:8px;padding:16px 24px;background:var(--ui-warn-soft);color:var(--ui-ink);font:400 var(--ui-type-body) var(--ui-font)}
.lab-c-unsupported>:is(svg,i){flex:none;width:16px;height:16px;margin-top:2px;color:var(--ui-warn)}
.lab-c-unsupported p{margin:0}
.lab-c-palette-foot{display:flex;justify-content:space-between;gap:12px;padding:12px 24px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:400 var(--ui-type-caption) var(--ui-font)}
.lab-c-toast{position:fixed;bottom:24px;left:50%;z-index:60;max-width:90vw;padding:12px 24px;border-radius:var(--ui-radius-control);background:var(--ui-ink);color:var(--ui-page);font:400 var(--ui-type-body) var(--ui-font);box-shadow:var(--ui-shadow-pop);transform:translateX(-50%)}
.lab-tip[hidden]{display:none}
.lab-tip span+span{margin-top:2px}
.lab-tip b{display:inline;font:600 var(--ui-type-caption) var(--ui-font)}
.lab-tip .lab-gain{color:var(--ui-gain)}.lab-tip .lab-loss{color:var(--ui-loss)}

@media (max-width:1100px){
 .strategy-lab .lab-c-frame{grid-template-columns:340px minmax(0,1fr);gap:24px}
 .strategy-lab .lab-c-path{grid-template-columns:repeat(2,minmax(0,1fr))}
 .strategy-lab .lab-c-xray-row{grid-template-columns:36px minmax(0,1fr) auto auto;gap:16px}
 .strategy-lab .lab-c-xray-row>.ui-tile{margin-right:0}
}
/* Tablet and phone: the frame stacks — the answered list (a fixed, scrolling height) above the open answer, which then
   has the full width for its headline, views and chart (at 768 a 290 px answer column broke all three). */
@media (max-width:1023px){
 .strategy-lab .lab-c-frame{display:block}
 .strategy-lab .lab-c-answer-frame{margin-top:24px}
 .strategy-lab .lab-c-list{max-height:360px}
}
@media (max-width:767px){
 .strategy-lab .lab-c-list{max-height:320px}
 .strategy-lab .lab-c-kbd{display:none}
 .strategy-lab .lab-c-explorer-foot>kbd,.strategy-lab .lab-c-explorer-foot>kbd+kbd{display:none}
 /* One 16 px inset for every part of the answer's frame on a phone; the ledger keeps the page's edge. */
 .strategy-lab :is(.lab-c-answer-top,.lab-c-chartzone,.lab-c-tools,.lab-c-actions){padding-left:16px;padding-right:16px}
 .strategy-lab .lab-c-answer-bar{padding:16px 16px 0}
 .strategy-lab .lab-c-answer-frame:has([data-lab-answer-kind]:empty) .lab-c-answer-top{padding-top:16px}
 .strategy-lab .lab-c-row{padding-left:8px;padding-right:8px}
 /* B on a phone: Narrow it takes its own line with its words under the views. */
 .strategy-lab .lab-c-narrow{display:inline-flex;align-items:center;flex-basis:100%;justify-content:flex-start;width:auto;height:auto;min-height:40px;margin-left:0;padding:0;gap:8px;font:500 var(--ui-type-body) var(--ui-font)}
 .strategy-lab .lab-c-narrow>span{display:inline}
 .strategy-lab .lab-c-path{grid-template-columns:minmax(0,1fr)}
 /* The four views keep one row on a phone with their short names. */
 .strategy-lab .lab-c-chartbar .app-view-toggle{display:flex;width:100%}
 .strategy-lab .lab-c-chartbar .app-view-toggle-btn{flex:1 1 auto;padding-inline:8px}
 .strategy-lab .lab-c-long,.strategy-lab .lab-c-chartbar .app-view-toggle-btn :is(svg,i){display:none}
 .strategy-lab .lab-c-short{display:inline}
 .strategy-lab .lab-c-xray-row{grid-template-columns:36px minmax(0,1fr) auto}
 .strategy-lab .lab-c-xray-row .ui-link{grid-column:2/-1}
 .lab-c-form{grid-template-columns:minmax(0,1fr)}
}
}

/* Free's action row holds the app's one lock (one line, Pro's offer) and, while this month's test is unspent, Answer it. */
.strategy-lab .lab-c-actions.is-locked{flex-wrap:nowrap;justify-content:flex-start;gap:16px}
.strategy-lab .lab-c-actions.is-locked .ui-lock{flex:1;min-width:0;padding:0;border:0;background:none}
.strategy-lab .lab-c-actions.is-locked>.app-action-btn{flex:none}
@media (max-width:767px){.strategy-lab .lab-c-actions.is-locked{flex-wrap:wrap}}

/* Row tiles read clearly (Igor 9 Nov: pale tinted tiles «слабо читаемые… вайбкод»): one neutral tile with a dark icon
   for every kind; the open row's tile takes the accent. What a row is worth is said by its money and "Early read". */
.strategy-lab :is(.lab-c-row,.lab-c-xray-row,.lab-c-suggestion,.lab-c-plan-rule) .ui-tile{background:var(--ui-raised);color:var(--ui-ink)}
.lab-c-dialog :is(.lab-c-suggestion,.lab-c-plan-rule) .ui-tile{background:var(--ui-raised);color:var(--ui-ink)}
.strategy-lab .lab-c-row.is-on .ui-tile{background:var(--ui-page);color:var(--ui-accent-text);box-shadow:inset 0 0 0 1px var(--ui-accent-soft)}

/* The change beside the figure: a solid pill that reads at a glance, like a KPI delta. */
.strategy-lab .lab-c-delta .ui-chip[data-tone=gain]{background:var(--ui-bar-gain);color:var(--ui-page)}
.strategy-lab .lab-c-delta .ui-chip[data-tone=loss]{background:var(--ui-bar-loss);color:var(--ui-page)}
.strategy-lab .lab-c-delta .ui-chip[data-tone=warn]{background:var(--ui-bar-warn);color:var(--ui-on-warn)}

/* No trades yet: the step on the left, the questions the Lab will answer on the right, on the page's columns. */
/* The questions start on the page's fourth line (step 4 and X-ray's links below): the first column is the list plus
   two of the page's columns, measured from the frame's content box (frame edges and pads give back 50 px). */
/* Only the no-trades frame splits in two; an answer that could not run stays one column (its words read together). */
.strategy-lab .lab-c-frame.is-empty .lab-c-empty{display:grid;grid-template-columns:calc(var(--lab-list) + 2 * ((100% - var(--lab-list) - 23px) / 3)) minmax(0,1fr);gap:24px 48px;align-items:start;padding:32px 24px}
.strategy-lab .lab-c-empty-copy{display:flex;flex-direction:column;gap:12px;min-width:0}
.strategy-lab .lab-c-empty-copy .lab-c-do{margin-top:4px}
.strategy-lab .lab-c-empty-list{display:grid;min-width:0}
.strategy-lab .lab-c-empty-list>.lab-c-meta{display:block;margin-bottom:8px}
.strategy-lab .lab-c-empty-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--ui-line)}
.strategy-lab .lab-c-empty-row:last-child{border-bottom:0}
.strategy-lab .lab-c-empty-row strong{display:block;font:500 var(--ui-type-body) var(--ui-font)}
.strategy-lab .lab-c-empty-row .lab-c-meta{display:block}
.strategy-lab .lab-c-empty-row .ui-tile{background:var(--ui-raised);color:var(--ui-ink)}
@media (max-width:1023px){.strategy-lab .lab-c-frame.is-empty .lab-c-empty{grid-template-columns:minmax(0,1fr)}}
/* A strategy is tested on one account: on All accounts the answer asks which, with each account as a button (Igor 10 Nov:
   «и как понять что дальше делать?»); picking one sets the top bar's account and runs the test. */
.strategy-lab .lab-c-pick{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.strategy-lab .lab-c-pick .app-action-btn{gap:8px}
.strategy-lab .lab-c-pick .app-action-btn .lab-c-meta{color:var(--ui-ink-3);font:400 var(--ui-type-caption) var(--ui-font)}
/* The Lab's tiles draw their question (Igor 10 Nov: «вот эта блеклость в иконках руинит визуал», «рисуй»): the whole as
   a quiet line, the asked part marked. */
:is(.strategy-lab,.lab-c-dialog) .ui-tile{--lab-glyph-gap:var(--ui-raised);--lab-glyph-quiet:color-mix(in srgb,var(--ui-ink-3) 60%,transparent)}
.strategy-lab .lab-c-row.is-on .ui-tile{--lab-glyph-gap:var(--ui-page)}
:is(.strategy-lab,.lab-c-dialog) .lab-c-glyph{width:20px;height:20px;overflow:visible}
/* One drawing style (Igor 12 Nov «Да, чистим»): every part a line at the icon weight, the rest grey, the asked part in
   ink, nothing filled. No gain or loss colour. */
:is(.strategy-lab,.lab-c-dialog) .lab-c-glyph :is(rect,path,circle){fill:none;stroke:var(--lab-glyph-quiet);stroke-width:var(--ui-icon-stroke,1.5px);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
:is(.strategy-lab,.lab-c-dialog) .lab-c-glyph .is-mark{stroke:var(--ui-ink)}
/* The open row's drawing: the asked part in the accent, the rest stays grey (the accent only marks the chosen row). */
.strategy-lab .lab-c-row.is-on .lab-c-glyph .is-mark{stroke:var(--ui-accent-text)}
.strategy-lab .lab-c-row.is-on .lab-c-mark>:is(i,svg:not(.lab-c-glyph)){color:var(--ui-accent-text)}
/* An answer brought into view from the list stops under the top bar, its title showing. */
.strategy-lab [data-lab-answer]{scroll-margin-top:calc(var(--ws-topbar-height,58px) + 16px)}

/* Clean wraps in the Lab dialogs (gate, 12 Nov). */
.lab-c-dialog p{text-wrap:pretty}
.strategy-lab :is(.lab-c-xray,.lab-c-xray-row,.lab-c-xray-toggle)[hidden]{display:none}
