/* dashboard-face.css */
/* The Dashboard's new face behind ?plan=1 (includes/dashboard-face.php; Igor 17 Nov «Переносим», the pick
   docs/product/design/dashboard-face-2026-11-16/codex-ac). Page composition only: one 6 | 6 split on the 12-column
   grid for every two-column section (the right column's edge, hairline and 24 px offset the same everywhere), full-width
   sections across all twelve. The pieces are the kit's: TSBCharts.atlas/.minis, .ui-sheet, .tsb-ln, the family's charts. */
.dfc-main { container: dfc / inline-size; }
.dfc-main :where(h2, h3, p) { margin: 0; }
.dfc-gain { color: var(--ui-gain); }
.dfc-loss { color: var(--ui-loss); }
.dfc-cap { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-head { margin-bottom: 32px; }
.dfc-eyebrow { margin-bottom: 12px; font-weight: 500; letter-spacing: .02em; }

/* the split: six and six, the right column behind one hairline */
.dfc-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.dfc-split > * { grid-column: span 6; min-width: 0; }
.dfc-split > .dfc-right { padding-left: 24px; border-left: 1px solid var(--ui-line); }

/* the answer and the atlas */
.dfc-hero-heading { margin-bottom: 28px; }
.dfc-answer { margin-bottom: 8px; }
.dfc-lede { color: var(--ui-ink-2); font: 400 var(--ui-type-lead) var(--ui-font); }
.dfc-atlas-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dfc-steps { display: flex; align-items: center; gap: 8px; }
.dfc-range { color: var(--ui-ink); font: 400 var(--ui-type-caption) var(--ui-font); white-space: nowrap; }
.dfc-icon-btn { width: 40px; padding: 8px; justify-content: center; }
.dfc-lenses { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin: 12px 0 20px; border-bottom: 1px solid var(--ui-line); }
.dfc-lenses[hidden], .dfc-lenses > [hidden] { display: none; }
.dfc-lenses button { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ui-ink-2); font: 500 var(--ui-type-body) var(--ui-font); cursor: pointer; }
.dfc-lenses button:hover { color: var(--ui-ink); }
.dfc-lenses button.is-on { border-bottom-color: var(--ui-accent); color: var(--ui-ink); }
.dfc-lenses button span { margin-left: 6px; font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-atlas-area { display: flex; flex-direction: column; }
.dfc-atlas-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-legend { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dfc-atlas { flex: 1; }
.dfc-minis { padding-top: 32px; }
.dfc-atlas-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-atlas-import { margin-top: 12px; }
.dfc-field-read { display: flex; align-items: center; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--ui-line); color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-accent); }

/* the right column: the sheet over today's plate */
.dfc-side { display: flex; flex-direction: column; gap: 24px; }
.dfc-sheet { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dfc-sheet-title { font: 500 var(--ui-type-lead) var(--ui-font); }
.dfc-sheet-figure { font: 600 var(--ui-type-display) var(--ui-font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dfc-sheet-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.dfc-sheet-months { height: 104px; margin: 4px 0 2px; } /* the whole record's months (drawn by TSBCharts.columns, compact) */
.dfc-plate { flex: 1; display: flex; flex-direction: column; padding-top: 16px; outline: none; }
.dfc-today, .dfc-day { display: flex; flex-direction: column; flex: 1; }
.dfc-plate-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dfc-plate-title h3 { display: flex; align-items: center; gap: 8px; font: 600 var(--ui-type-lead) var(--ui-font); letter-spacing: -.02em; }
.dfc-clock { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dfc-market { margin-top: 4px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--ui-line); }
.dfc-rule h3 { font: 600 var(--ui-type-lead) var(--ui-font); letter-spacing: -.02em; }
.dfc-also { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); text-align: right; }
.dfc-events { padding: 8px 0 12px; border-top: 1px solid var(--ui-line); }
/* the firm's room today (a prop account in scope): head with the state chip, three figures on one row with their bars */
.dfc-room { padding: 12px 0 16px; border-top: 1px solid var(--ui-line); }
.dfc-room-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dfc-room-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.dfc-room-fig { display: flex; flex-direction: column; min-width: 0; }
.dfc-room-fig dt, .dfc-room-fig small { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-room-fig dd { margin: 2px 0 0; font: 600 var(--ui-type-lead) var(--ui-font); font-variant-numeric: tabular-nums; }
.dfc-room-bar { display: block; height: 6px; margin: 8px 0 6px; border-radius: 3px; background: var(--ui-raised); overflow: hidden; }
.dfc-room-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--ui-ink-2); }
.dfc-room-fig[data-tone="gain"] .dfc-room-bar > span { background: var(--ui-gain); }
.dfc-room-fig[data-tone="warn"] .dfc-room-bar > span { background: var(--ui-warn); }
.dfc-room-fig[data-tone="loss"] .dfc-room-bar > span { background: var(--ui-loss); }
.dfc-room-note { margin: 0 !important; }
.dfc-events-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dfc-event { display: flex; gap: 8px; margin-top: 4px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-event strong { color: var(--ui-ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.dfc-event b { font-weight: 500; white-space: nowrap; }
.dfc-plate-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 3px; }
.dfc-say { gap: 6px; }
.dfc-next { margin-top: 8px; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-day-net { margin: 12px 0 4px; font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
.dfc-trade { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ui-line); font: 400 var(--ui-type-body) var(--ui-font); }
.dfc-trade strong { font-weight: 500; }
.dfc-trade p { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-day .dfc-plate-actions { padding-top: 24px; }

/* tablet: the narrative pairs stack; the sheet and the plate side by side under the calendar */
@container dfc (max-width: 900px) {
    .dfc-split { display: flex; flex-direction: column; gap: 24px; }
    .dfc-split > .dfc-right { padding-left: 0; border-left: 0; }
    .dfc-first .dfc-plate { order: -1; padding: 16px 0 0; border-top: 1px solid var(--ui-line); }
    .dfc-rule { display: block; }
    .dfc-also { display: block; margin-top: 4px; text-align: left; }
}
/* phone: the calendar full width, then the plate, then the sheet */
@container dfc (max-width: 560px) {
    .dfc-hero-heading { margin-bottom: 24px; }
    .dfc-lede { font: 400 var(--ui-type-body) var(--ui-font); }
    .dfc-lenses { gap: 0 20px; }
    .dfc-lenses button { font: 500 var(--ui-type-caption) var(--ui-font); }
    .dfc-field-read { flex-wrap: wrap; }
}

/* your next moves: four live tiles on the same split */
.dfc-section-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.dfc-moves { padding-top: 32px; }
.dfc-moves > .dfc-section-line { margin-bottom: 24px; }
.dfc-move { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.dfc-move .dfc-eyebrow { display: flex; align-items: center; gap: 8px; }
.dfc-move .dfc-eyebrow :is(svg, i) { width: 14px; height: 14px; }
.dfc-move h3 { font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.02em; }
.dfc-strategy { padding: 24px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-card, 12px); }
.dfc-strategy-fig { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.dfc-strategy-fig strong { font: 600 var(--ui-type-title-l) var(--ui-font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dfc-strategy-mini { align-self: stretch; margin: 20px 0 4px; }
.dfc-strategy-legend { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dfc-strategy-legend strong { color: var(--ui-ink); font-weight: 500; }
.dfc-build { margin-top: 24px; }
.dfc-setups-link { margin-left: 12px; }
.dfc-coach { padding: 24px 0 24px 24px; }
/* the question right under its kicker; the 240 px kept only while Coach's answer loads (Igor 20 Nov: «почему тут дырка над
   текстом? так надо? а в карточке тоже странно») */
.dfc-coach-body { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; flex: 1 1 auto; }
.dfc-coach-body[aria-busy="true"] { min-height: 240px; }
.dfc-coach-q { margin-top: 16px !important; font: 500 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
/* each move's action stands on its row's bottom line, so a short card reads composed, not holed */
.dfc-moves .dfc-strategy > .dfc-build, .dfc-moves .dfc-coach-go, .dfc-moves .dfc-prop > .ui-link:last-child { margin-top: auto; }
.dfc-moves .dfc-strategy > .dfc-cap, .dfc-moves .dfc-coach-note, .dfc-moves .dfc-prop > .dfc-prop-gets { margin-bottom: 24px; }
.dfc-moves .dfc-prop-gets { margin-top: 12px; }
.dfc-coach-reply { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
.dfc-coach-reply h3 { font: 600 var(--ui-type-lead) var(--ui-font); letter-spacing: -.02em; }
.dfc-coach-reply p { margin: 8px 0 4px; font: 400 var(--ui-type-lead) var(--ui-font); }
.dfc-coach-mark { display: inline-flex; flex: none; color: var(--ui-accent-text); }
.dfc-coach-reply .dfc-coach-mark { padding-top: 4px; }
.dfc-coach-mark svg { width: 16px; height: 16px; }
.dfc-coach-note { margin-top: 12px; }
.dfc-coach-go { margin-top: 24px; }
.dfc-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 8px; align-self: stretch; margin-top: 13px; padding-top: 16px; border-top: 1px solid var(--ui-line); color: var(--ui-accent-text); font: 400 var(--ui-type-lead) var(--ui-font); text-decoration: none; }
.dfc-suggestion:hover { text-decoration: underline; text-underline-offset: 3px; }
.dfc-suggestion :is(svg, i) { flex: none; width: 14px; height: 14px; }
.dfc-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; padding: 24px 0; }
.dfc-video .ui-headline { font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
/* what a pasted video gives, three short lines with their icons (Igor 18 Nov, the demo walk) */
.dfc-video-gets { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--ui-ink-2); font: 400 var(--ui-type-body) var(--ui-font); }
.dfc-video-gets li { display: flex; align-items: flex-start; gap: 8px; }
.dfc-video-gets :is(svg, i) { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--ui-ink-3); } /* the kicker's icon size, so the words start on one edge */
.dfc-video-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 4px; }
.dfc-video-art a { display: block; }
.dfc-video-art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--ui-radius-control); }
.dfc-video-form { grid-column: 1 / -1; display: flex; gap: 8px; }
.dfc-video-form .ui-field { flex: 1; min-width: 0; }
.dfc-video > .dfc-cap { grid-column: 1 / -1; }
.dfc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dfc-prop { padding: 24px 0 24px 24px; }
.dfc-prop-head { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.dfc-prop-logo { width: 34px; height: 34px; }
.dfc-prop-road { display: flex; align-items: center; gap: 12px; align-self: stretch; margin: 20px 0; font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-prop-road b { font-weight: 600; }
.dfc-prop-road span:first-of-type { flex: 1; border-top: 1px solid var(--ui-line-strong); }
.dfc-prop-count { display: flex; align-items: center; gap: 16px; margin: 0 0 20px !important; }
.dfc-prop-count strong { font: 600 var(--ui-type-display) var(--ui-font); font-variant-numeric: tabular-nums; }
.dfc-prop-count span { font: 400 var(--ui-type-lead) var(--ui-font); }
.dfc-prop-empty { margin-top: 24px; }
@container dfc (max-width: 900px) {
    .dfc-coach, .dfc-prop { padding: 24px 0 0; border-top: 1px solid var(--ui-line); }
}
@container dfc (max-width: 560px) {
    .dfc-moves-note { display: none; }
    .dfc-video { grid-template-columns: minmax(0, 1fr); }
    .dfc-setups-link { margin-left: 0; }
}

/* sections below the first screen: a hairline, 32 px of air, the kicker, the answer */
.dfc-band { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ui-line); }
.dfc-headline { font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
.dfc-sub { margin-top: 8px !important; color: var(--ui-ink-2); font: 400 var(--ui-type-lead) var(--ui-font); }
.dfc-section-line > .ui-link { flex: none; gap: 6px; }

/* you against your plan */
.dfc-ghost-split { margin-top: 24px; }
.dfc-parted h3 { margin-bottom: 4px !important; font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.02em; }
.dfc-moment { display: block; width: 100%; padding: 8px 0 12px; border: 0; background: none; color: var(--ui-ink); font: 400 var(--ui-type-body) var(--ui-font); text-align: left; cursor: pointer; }
.dfc-moment strong { display: block; font-weight: 600; }
.dfc-moment .dfc-cap { display: block; margin: 4px 0; }
.dfc-moment-art { display: block; }
.dfc-moment.is-on strong, .dfc-moment:focus-visible strong { color: var(--ui-accent-text); }
/* the number a narrow drawing gives each moment (tsb-charts .tsb-b-num), shown only while the drawing numbers them */
/* a day with no releases: the plate's quiet line, its icon at the caption's size */
.dfc-events-none { display: inline-flex; align-items: center; gap: 6px; }
.dfc-events-none svg { width: 14px; height: 14px; }
.dfc-moment-n { display: none; }
.is-numbered .dfc-moment-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--ui-ink); color: var(--ui-page); font: 600 var(--ui-type-chart) var(--ui-font); vertical-align: 2px; }
.is-numbered .dfc-moment.is-on .dfc-moment-n { background: var(--ui-accent); }
.dfc-moment:focus-visible { outline: none; }
.dfc-parted-act { margin-top: 0; }
.dfc-lines-link { display: flex; margin-top: 12px; }
.dfc-parted-note { margin-top: 12px !important; }
.dfc-dialog-part { margin: 24px 0 8px; font: 600 var(--ui-type-lead) var(--ui-font); }
/* the waterfall over the lines (TSBCharts.fall), the lines under it as they were */
.dfc-fall { margin: 0 0 16px; }

/* the review rows (the queue, the trades where he parted) */
.dfc-review { display: grid; }
.dfc-review-head, .dfc-review-row { display: grid; grid-template-columns: minmax(80px, 2fr) minmax(0, 3fr) minmax(0, 3fr) minmax(80px, 1.4fr) 64px; align-items: center; gap: 12px; }
.dfc-review-head { padding-bottom: 8px; border-bottom: 1px solid var(--ui-line); color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-review-head span:nth-child(4) { text-align: right; }
.dfc-review-row { padding: 14px 0; border-bottom: 1px solid var(--ui-line); font: 400 var(--ui-type-body) var(--ui-font); }
.dfc-review-row > div { display: flex; flex-direction: column; min-width: 0; }
.dfc-review-row span { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-review-row strong { font-weight: 600; overflow-wrap: anywhere; }
.dfc-review-row > strong { text-align: right; font-variant-numeric: tabular-nums; }
.dfc-review-row > .ui-link { justify-self: end; }
/* current focus */
.dfc-focus-head { align-items: flex-end; }
.dfc-focus-split { margin-top: 24px; }
.dfc-focus-rule { font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.02em; }
.dfc-focus-compare { margin-top: 8px; }
.dfc-focus-note { margin-top: 16px !important; }
.dfc-focus-trades { margin-top: 8px; }
.dfc-focus-test { display: flex; flex-direction: column; justify-content: center; }
.dfc-test-count { font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dfc-progress { height: 6px; margin: 20px 0; border-radius: 3px; background: var(--ui-raised); overflow: hidden; }
.dfc-progress > span { display: block; height: 100%; border-radius: 3px; background: var(--ui-accent); }
.dfc-test-copy { color: var(--ui-ink-2); font: 400 var(--ui-type-lead) var(--ui-font); }
.dfc-focus-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.dfc-focus-actions[hidden] { display: none; }
.dfc-change .app-content-menu { left: 0; right: auto; width: max-content; min-width: 230px; }
/* a menu item reads as one line, from the left (Igor 18 Nov: "Stop this test to pick another" wrapped, centred, in two lines) */
.dfc-change .app-content-menu .app-action-btn { text-align: left; white-space: nowrap; }
.dfc-change > summary :is(svg, i) { width: 16px; height: 16px; }

/* are you improving: the one card of the lower page (the live block Igor liked: neutral bars, dashed averages, the answer left) */
.dfc-improving { margin-top: 40px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-card, 12px); background: var(--ui-raised); }
.dfc-improving-head { padding: 24px 24px 0; }
.dfc-improving-split { gap: 0 24px; }
.dfc-improving-story { display: flex; flex-direction: column; padding: 24px; }
.dfc-improving-answer { margin: 12px 0 20px; }
.dfc-improving-answer strong { display: block; margin-bottom: 8px; font: 600 var(--ui-type-title-l) var(--ui-font); letter-spacing: -.03em; }
.dfc-improving-answer .ui-headline { font: 500 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
.dfc-improving-driver { margin-bottom: 16px !important; font: 500 var(--ui-type-lead) var(--ui-font); text-wrap: pretty; }
.dfc-driver { margin-bottom: 24px; }
.dfc-driver-rail { width: 240px; max-width: 100%; height: 6px; margin-bottom: 8px; border-radius: 6px; background: var(--ui-line-strong); overflow: hidden; }
.dfc-driver-rail > span { display: block; height: 100%; background: var(--ui-ink-2); }
.dfc-improving-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dfc-improving-plot { padding: 24px; }
.dfc-split > .dfc-right.dfc-improving-plot { padding-left: 24px; }
.dfc-spans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.dfc-spans > div { display: flex; flex-direction: column; gap: 4px; font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-spans span { font: 500 var(--ui-type-body) var(--ui-font); }
.dfc-spans strong { font: 600 var(--ui-type-title-s) var(--ui-font); font-variant-numeric: tabular-nums; }
.dfc-spans small { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-improving-early { margin-top: 8px !important; }
@container dfc (max-width: 900px) {
    .dfc-improving-plot { padding: 0 24px 24px; border-top: 0; }
}

/* where is your edge: one period, four figures, six tiles of different shapes, each a door into Reports */
.dfc-edge { margin-top: 32px; padding-top: 32px; }
/* a jump to a section (the period switch returns to #dfc-edge) lands under the sticky top bar, never beneath it (18 Nov walk) */
.dfc-main [id] { scroll-margin-top: 72px; }
.dfc-edge-head { align-items: flex-end; }
.dfc-edge-homes { display: flex; align-items: center; gap: 16px; }
.dfc-edge-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 24px; }
.dfc-periods { position: relative; }
.dfc-custom .fh-pop-panel { left: 0; right: auto; }
.dfc-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 24px 0 8px; }
.dfc-figure { display: flex; flex-direction: column; min-width: 0; }
.dfc-figure + .dfc-figure { padding-left: 16px; border-left: 1px solid var(--ui-line); }
.dfc-figure span, .dfc-figure small { color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-figure b { margin: 4px 0; font: 600 var(--ui-type-title-s) var(--ui-font); font-variant-numeric: tabular-nums; }
.dfc-figures-note { margin: 12px 0 24px !important; }
/* draft B, "the close-up" (Igor 19 Nov «ну меняй давай»): the path framed as the block's main answer, every other drawing
   unframed under a hairline; one door each */
.dfc-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.dfc-tile { grid-column: span 6; display: flex; flex-direction: column; min-width: 0; padding: 24px 0 0; border-top: 1px solid var(--ui-line); color: var(--ui-ink); text-decoration: none; }
.dfc-tile[data-dfc-tile="path"] { padding: 24px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-card, 12px); background: var(--ui-page); }
.dfc-tile[data-dfc-tile="path"] .dfc-tile-chart { flex: 1 1 auto; min-height: 0; } /* the room the path fills (dashboard-face.js measures it) */
.dfc-tile:hover { text-decoration: none; }
.dfc-tile:hover .dfc-tile-go { color: var(--ui-accent-text); }
.dfc-tile:hover .dfc-tile-answer { text-decoration: underline; text-decoration-color: var(--ui-line-strong); text-underline-offset: 5px; }
.dfc-tile:focus-visible { outline: 2px solid var(--ui-accent-text); outline-offset: 2px; }
.dfc-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.dfc-tile-head .dfc-eyebrow { margin: 0; }
.dfc-tile-head > :is(svg, i) { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--ui-ink-2); }
.dfc-tile-head > .dfc-cap { margin-left: auto; }
.dfc-tile-head > .dfc-cap + :is(svg, i) { margin-left: 0; }
.dfc-tile-head > .dfc-tile-go { display: inline-flex; flex: none; margin-left: auto; color: var(--ui-ink-2); }
.dfc-tile-head > .dfc-cap + .dfc-tile-go { margin-left: 0; }
.dfc-tile-go > :is(svg, i) { width: 16px; height: 16px; }
.dfc-tile-answer { margin-bottom: 0 !important; font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.02em; text-wrap: balance; }
.dfc-tile[data-dfc-tile="path"] .dfc-tile-answer { font: 600 var(--ui-type-title-m) var(--ui-font); }
/* what the drawing counts and its sample, under the answer; a tile with none keeps the answer's 16 to its drawing */
.dfc-tile-meta { margin: 8px 0 16px !important; }
.dfc-tile-meta:empty { margin: 0 0 16px !important; }
/* a long period's note beside the question («Reports · 2026») reads from the right, where it stands */
.dfc-tile-head > .dfc-cap { text-align: right; }
.dfc-coach-banner { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 24px; padding: 28px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-card, 12px); background: var(--ui-accent-soft); }
.dfc-coach-banner h3 { margin-bottom: 12px !important; font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; }
.dfc-coach-banner p { margin: 4px 0 !important; font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-banner-mark { align-self: start; }
.dfc-banner-mark svg { width: 40px; height: 40px; }
@container dfc (max-width: 900px) {
    .dfc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dfc-figure:nth-child(3) { padding-left: 0; border-left: 0; }
}
@container dfc (max-width: 560px) {
    .dfc-edge-head { display: block; }
    .dfc-edge-homes { margin-top: 8px; }
    .dfc-coach-banner { grid-template-columns: minmax(0, 1fr); }
    .dfc-banner-mark { display: none; }
}

/* your next review, and the page's foot (one hairline, one baseline) */
.dfc-queue { margin-top: 32px; padding-top: 32px; }
.dfc-queue-meta { margin: 8px 0 24px !important; }
.dfc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 20px 0 24px; border-top: 1px solid var(--ui-line); color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.dfc-queue .dfc-review-row:last-child { border-bottom: 0; }
/* the period control: its Custom panel opens under the whole control; on a phone the five choices fit the width */
.dfc-periods > .dfc-custom { position: static; }
.dfc-custom .fh-pop-panel { left: 0; right: auto; }
@container dfc (max-width: 560px) {
    .dfc-main .dfc-periods .app-view-toggle-btn { padding-inline: 8px; }
}
.dfc-custom .fh-pop-panel { flex-wrap: wrap; max-width: min(420px, calc(100cqw - 0px)); }
@container dfc (max-width: 560px) { .dfc-custom .fh-pop-panel input { min-width: 0; width: 100%; } .dfc-custom .fh-pop-panel label { flex: 1 1 140px; } }

/* a new trader: import first */
.dfc-welcome { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--ui-line); }
.dfc-welcome > div:first-child { grid-column: span 7; }
.dfc-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.dfc-welcome-art { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border: 1px dashed var(--ui-line-strong); border-radius: var(--ui-radius-card, 12px); color: var(--ui-ink-2); font: 400 var(--ui-type-body) var(--ui-font); }
.dfc-welcome-art > :is(svg, i):first-child { width: 24px; height: 24px; color: var(--ui-accent-text); }
@container dfc (max-width: 900px) { .dfc-welcome { display: flex; flex-direction: column; align-items: stretch; } }
@container dfc (max-width: 560px) {
    .dfc-focus-head { display: block; }
    .dfc-focus-head > .dfc-cap { display: block; margin-top: 8px; }
}

/* ---- the grid pass (design-base §15; craft-audit --grid) ----
   The right column starts on its column line; its hairline runs down the middle of the gutter before it. */
.dfc-split > .dfc-right { position: relative; padding-left: 0; border-left: 0; }
.dfc-split > .dfc-right::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; border-left: 1px solid var(--ui-line); }
.dfc-improving-split > .dfc-right::before { top: 24px; bottom: 24px; }
.dfc-split > .dfc-right.dfc-coach, .dfc-split > .dfc-right.dfc-prop, .dfc-split > .dfc-right.dfc-improving-plot { padding-left: 0; }
.dfc-improving-story { padding-right: 0; }
/* a section's title and its note sit on the page's columns: the title over eight, the note over the last four */
.dfc-section-line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.dfc-section-line > :first-child { grid-column: 1 / span 8; }
.dfc-section-line > :not(:first-child) { grid-column: 9 / -1; justify-self: stretch; text-align: right; }
.dfc-section-line > .ui-link, .dfc-edge-homes { display: flex; justify-content: flex-end; }
/* the test's count and its link on the right column's own five columns (7 | 5), on the page's eight once it stacks */
.dfc-focus-test > .dfc-section-line { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.dfc-focus-test > .dfc-section-line > :first-child { grid-column: 1 / span 2; }
.dfc-focus-test > .dfc-section-line > :not(:first-child) { grid-column: 3 / -1; }
@container dfc (max-width: 900px) {
    .dfc-focus-test > .dfc-section-line { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-focus-test > .dfc-section-line > :first-child { grid-column: 1 / span 4; }
    .dfc-focus-test > .dfc-section-line > :not(:first-child) { grid-column: 5 / -1; }
}
.dfc-improving-head { padding: 24px 24px 0; }
.dfc-improving-head > :first-child, .dfc-improving-head > :not(:first-child) { grid-column: auto; }
.dfc-improving-head { grid-template-columns: 1fr auto; }
.dfc-field-read { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.dfc-review-head, .dfc-review-row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.dfc-review-head > :nth-child(1), .dfc-review-row > :nth-child(1) { grid-column: span 2; }
.dfc-review-head > :nth-child(2), .dfc-review-row > :nth-child(2) { grid-column: span 4; }
.dfc-review-head > :nth-child(3), .dfc-review-row > :nth-child(3) { grid-column: span 3; }
.dfc-review-head > :nth-child(4), .dfc-review-row > :nth-child(4) { grid-column: span 2; }
.dfc-review-head > :nth-child(5), .dfc-review-row > :nth-child(5) { grid-column: span 1; }
.dfc-setups-link { margin-left: 0; }
.dfc-ghost-chart .tsb-c-note { margin-top: 16px; }
.dfc-day .dfc-plate-actions { margin-top: 24px; }
.dfc-minis-wide { padding: 8px 0 0; }
.dfc-minis-wide .tsb-mm { grid-template-columns: repeat(12, minmax(0, 1fr)); }
/* dialogs: the first row under the head draws no second line; a title never leaves one word alone */
.ui-dialog-body > .ui-dialog-row:first-child, .ui-dialog-body > p + .ui-dialog-row { border-top: 0; }
.ui-dialog-title { text-wrap: balance; }
@container dfc (max-width: 900px) {
    .dfc-split > .dfc-right::before { content: none; }
    .dfc-section-line { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-section-line > :first-child { grid-column: 1 / span 5; }
    .dfc-section-line > :not(:first-child) { grid-column: 6 / -1; }
    .dfc-focus-head > :first-child, .dfc-edge-head > :first-child { grid-column: 1 / -1; }
    .dfc-focus-head > :not(:first-child), .dfc-edge-head > :not(:first-child) { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 8px; }
    .dfc-edge-homes { justify-content: flex-start; }
    .dfc-field-read { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-coach-banner { grid-template-columns: 48px minmax(0, 1fr); }
    .dfc-coach-banner > .app-action-btn { grid-column: 2; justify-self: start; }
    .dfc-tile-head { align-items: flex-start; }
    .dfc-review-head { display: none; }
    .dfc-review-row { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 4px; }
    .dfc-review-row > :nth-child(1) { grid-column: 1 / span 2; }
    .dfc-review-row > :nth-child(2) { grid-column: 3 / span 3; }
    .dfc-review-row > :nth-child(3) { grid-column: 3 / span 3; grid-row: 2; }
    .dfc-review-row > :nth-child(4) { grid-column: 6 / span 2; grid-row: 1; }
    .dfc-review-row > :nth-child(5) { grid-column: 8 / span 1; grid-row: 1; }
    .dfc-minis-wide .tsb-mm { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@container dfc (max-width: 560px) {
    .dfc-section-line { display: block; }
    .dfc-section-line > :not(:first-child) { display: flex; justify-content: flex-start; text-align: left; margin-top: 8px; }
    .dfc-lenses { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 16px; }
    .dfc-lenses button { flex: none; white-space: nowrap; }
    .dfc-coach-banner { grid-template-columns: minmax(0, 1fr); }
    .dfc-coach-banner > .app-action-btn { grid-column: 1; }
    .dfc-banner-mark { display: inline-flex; }
    .dfc-banner-mark svg { width: 28px; height: 28px; }
    .dfc-tile-head { min-height: 0; }
    .dfc-review-row { grid-template-columns: minmax(0, 1fr) auto; }
    .dfc-review-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
    .dfc-review-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
    .dfc-review-row > :nth-child(3) { display: flex; grid-column: 1; grid-row: 3; }
    .dfc-review-row > :nth-child(4) { grid-column: 2; grid-row: 1; }
    .dfc-review-row > :nth-child(5) { grid-column: 2; grid-row: 2; }
    .dfc-minis-wide .tsb-mm { display: flex; }
}
.dfc-field-read { position: relative; }

/* ---- the gate's last pass ---- */
.dfc-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dfc-key.is-gain { background: var(--ui-gain); }
.dfc-key.is-loss { background: var(--ui-loss); margin-left: 6px; }
/* the controls on the columns: a segmented control fills the columns it stands on */
.dfc-atlas-controls, .dfc-edge-controls { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 12px; align-items: center; }
.dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 3; display: flex; }
.dfc-edge-controls > .dfc-periods { grid-column: 1 / span 5; display: flex; }
:is(.dfc-atlas-controls, .dfc-edge-controls) > .app-view-toggle > * { flex: 1 1 0; }
.dfc-main :is(.dfc-atlas-controls, .dfc-edge-controls) .app-view-toggle-btn { justify-content: center; }
.dfc-periods > .dfc-custom > summary { width: 100%; }
.dfc-atlas-controls > .dfc-steps { grid-column: 9 / -1; justify-content: flex-end; }
.dfc-edge-controls > .dfc-edge-scope { grid-column: 7 / -1; text-align: right; }
/* the four figures on the columns, their dividers down the gutters */
.dfc-figures { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.dfc-figure { grid-column: span 3; position: relative; }
.dfc-figure + .dfc-figure { padding-left: 0; border-left: 0; }
.dfc-figure + .dfc-figure::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; border-left: 1px solid var(--ui-line); }
/* the edge block's six figures (19 Nov): one row on the page's 12 columns, two each, no dividers (draft B); each with a before
   carries the same picture under it, before → now (TSBCharts.change), and the row's note keys its two points */
.dfc-edge .dfc-figures { row-gap: 24px; }
.dfc-edge .dfc-figure { grid-column: span 2; }
.dfc-edge .dfc-figure + .dfc-figure::before { content: none; }
.dfc-edge .dfc-figure b { font: 600 var(--ui-type-title-m) var(--ui-font); letter-spacing: -.02em; white-space: nowrap; }
.dfc-figure-pic { display: block; height: 28px; margin-top: 12px; }
.dfc-edge .dfc-figures-note { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 24px !important; }
/* All history has no note under its row: the board keeps the same 24 from the figures */
.dfc-edge .dfc-figures + .dfc-board { margin-top: 16px; }
.dfc-edge-key { display: inline-flex; flex: none; align-items: center; gap: 8px; }
.dfc-edge-key > i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dfc-edge-key > i.is-now { background: var(--ui-ink); }
.dfc-edge-key > i.is-before { margin-left: 8px; background: var(--ui-page); box-shadow: inset 0 0 0 1px var(--ui-ink-2); }
/* the foot on the columns */
.dfc-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.dfc-foot > span { grid-column: 1 / span 8; }
.dfc-foot > .ui-link { grid-column: 9 / -1; justify-self: end; }
/* the moves' note on its title's line height, so both start on one top */
.dfc-moves-note { line-height: 28px; }
@container dfc (max-width: 900px) {
    .dfc-atlas-controls, .dfc-edge-controls, .dfc-figures, .dfc-foot { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 4; }
    .dfc-atlas-controls > .dfc-steps { grid-column: 5 / -1; }
    .dfc-edge-controls > .dfc-periods { grid-column: 1 / -1; }
    .dfc-edge-controls > .dfc-edge-scope { grid-column: 1 / -1; text-align: left; }
    .dfc-figure { grid-column: span 4; }
    .dfc-figure:nth-child(3)::before { content: none; }
    .dfc-edge .dfc-figure { grid-column: span 4; }
    .dfc-edge .dfc-figure:nth-child(2n+1)::before { content: none; }
    .dfc-foot > span { grid-column: 1 / span 5; }
    .dfc-foot > .ui-link { grid-column: 6 / -1; }
}
@container dfc (max-width: 560px) {
    .dfc-atlas-controls, .dfc-edge-controls, .dfc-figures, .dfc-foot { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
    .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 3; }
    .dfc-atlas-controls > .dfc-steps { grid-column: 1 / -1; justify-content: flex-start; }
    .dfc-figure { grid-column: span 2; }
    .dfc-figure + .dfc-figure::before { left: -8px; }
    .dfc-figure:nth-child(3)::before { content: none; }
    .dfc-edge .dfc-figure { grid-column: span 2; }
    .dfc-foot > span { grid-column: 1 / -1; justify-self: stretch; }
    .dfc-foot > .ui-link { grid-column: 1 / -1; justify-self: start; }
    .dfc-review-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
    .dfc-review-row > :nth-child(1), .dfc-review-row > :nth-child(2), .dfc-review-row > :nth-child(3) { grid-column: 1 / span 3; }
    .dfc-review-row > :nth-child(4), .dfc-review-row > :nth-child(5) { grid-column: 4; }
}
/* the last edges: notes beside a title stretch over their columns (their text where it was); a phone's banner and tiles
   start their text on one inner line (24); the welcome's two blocks share their top */
@container dfc (max-width: 900px) {
    .dfc-focus-head > :not(:first-child), .dfc-edge-head > :not(:first-child) { justify-self: stretch; }
}
@container dfc (max-width: 560px) {
    .dfc-field-read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 4px; }
    .dfc-coach-banner { padding: 24px; }
    .dfc-steps { gap: 12px; }
}
.dfc-welcome { align-items: start; }
@container dfc (max-width: 900px) { .dfc-welcome { align-items: stretch; } }
@container dfc (max-width: 560px) {
    .dfc-steps { gap: 16px; }
}

/* ---- 18 Nov, Igor: «разумно ли тут 50 на 50 делить?» → 7 | 5 for the whole page (one split, the calendar and the charts
   take the width they need), and one rhythm (Igor: «много дырявых пустот»): 24 under the page head, a section's hairline
   with 24 on each side, 16 between a block's heading and its content. */
.dfc-split > :nth-child(odd) { grid-column: 1 / span 7; }
.dfc-split > :nth-child(even) { grid-column: 8 / -1; }
.dfc-section-line > :first-child { grid-column: 1 / span 7; }
.dfc-section-line > :not(:first-child) { grid-column: 8 / -1; }
/* the edge board: every row 7 | 5 since 20 Nov (the path beside what carried it, hours beside R, weekdays beside the money's
   sources; draft B's 7|5, 8|4, 6|6 read as no grid); on a tablet the path, setups, hours and sources take the width, R and weekdays share a row; one column
   on a phone. What carried you sits under the path's frame on a tablet and a phone, so it starts without a hairline */
.dfc-board > [data-dfc-tile="path"] { grid-column: 1 / span 7; }
.dfc-board > [data-dfc-tile="setups"] { grid-column: 8 / -1; border-top: 0; }
/* one split for every row, 7 | 5, so the line between the tiles runs straight down the block (Igor 20 Nov: «в этих 6 графиках
   вообще нет никакой сетки. Они не выровнены нормально» — the rows split 7|5, 8|4 and 6|6) */
.dfc-board > [data-dfc-tile="hours"] { grid-column: 1 / span 7; }
.dfc-board > [data-dfc-tile="risk"] { grid-column: 8 / -1; }
.dfc-board > [data-dfc-tile="weekdays"] { grid-column: 1 / span 7; }
.dfc-board > [data-dfc-tile="accounts"] { grid-column: 8 / -1; }
/* Tiles side by side in one row are cells: a hairline between them, in the middle of the gutter, from the row's top line down
   (Igor 19 Nov: the hours and R charts read as one, «тут как-то сливается оно?»); the framed path needs none. Each tile's
   drawing fills the row its taller neighbour sets (dashboard-face.js fillRows). */
.dfc-board > :is([data-dfc-tile="risk"], [data-dfc-tile="accounts"]) { position: relative; }
.dfc-board > :is([data-dfc-tile="risk"], [data-dfc-tile="accounts"])::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; border-left: 1px solid var(--ui-line); }
.dfc-board > [data-dfc-tile]:not([data-dfc-tile="path"]) > .dfc-tile-chart { flex: 1 1 auto; min-height: 0; }
/* no setup named in the period: the path takes the row, never beside an empty list (the sparse audit, 23 Nov) */
.dfc-board.is-unnamed > [data-dfc-tile="setups"] { display: none; }
.dfc-board.is-unnamed > [data-dfc-tile="path"] { grid-column: 1 / -1; }
.dfc-video { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dfc-video > div:first-child { grid-column: 1 / span 4; }
.dfc-video > .dfc-video-art { grid-column: 5 / -1; }
.dfc-head { margin-bottom: 24px; }
.dfc-hero-heading { margin-bottom: 24px; }
.dfc-lenses { margin: 0 0 16px; }
.dfc-minis { padding-top: 16px; }
/* the calendar's controls stand apart from its last week (Igor 18 Nov: «плотно»): 32 px, 24 on a phone */
.dfc-first .dfc-atlas-area > .dfc-atlas-controls { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 32px; }
.dfc-first .dfc-atlas-area > .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 3; }
.dfc-first .dfc-atlas-area > .dfc-atlas-controls > .dfc-steps { grid-column: 4 / -1; justify-content: flex-end; }
.dfc-back { margin-left: 8px; }
.dfc-field-read { margin-top: 16px; }
.dfc-moves { padding-top: 24px; }
.dfc-band { margin-top: 24px; padding-top: 24px; }
.dfc-improving { margin-top: 24px; }
.dfc-edge { margin-top: 32px; padding-top: 0; }
/* the edge block sits second, under the first screen (Igor 19 Nov «Да, переноси»): the next moves start after one hairline, as
   they did under the first screen (the approved preview, dashboard-edge-up-2026-11-19.png) */
.dfc-edge + .dfc-moves { margin-top: 24px; border-top: 1px solid var(--ui-line); }
.dfc-queue { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ui-line); }
.dfc-foot { margin-top: 32px; }
.dfc-ghost-split, .dfc-focus-split { margin-top: 16px; }
.dfc-moves > .dfc-section-line { margin-bottom: 16px; }
.dfc-queue-meta { margin: 8px 0 16px !important; }
.dfc-figures-note { margin: 8px 0 16px !important; }
/* the Today plate: 8 inside a group, 16 between its groups */
.dfc-plate { padding-top: 16px; }
.dfc-today .tsb-ln { margin: 16px 0; }
.dfc-rule { padding: 16px 0; }
.dfc-events { padding: 16px 0; }
.dfc-event { margin-top: 8px; }
.dfc-plate-actions { padding-top: 0; }
.dfc-next { margin-top: 8px; }
@container dfc (max-width: 900px) {
    .dfc-split > :nth-child(odd), .dfc-split > :nth-child(even) { grid-column: auto; }
    .dfc-section-line > :first-child { grid-column: 1 / span 5; }
    .dfc-section-line > :not(:first-child) { grid-column: 6 / -1; }
    .dfc-board { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    /* every tile takes the width on a tablet (20 Nov: R beside the week made one of them stretch to the other's height) */
    .dfc-board > [data-dfc-tile] { grid-column: 1 / -1; }
    .dfc-board > :is([data-dfc-tile="risk"], [data-dfc-tile="accounts"])::before { content: none; }
    .dfc-board > [data-dfc-tile="setups"] { padding-top: 0; }
    .dfc-video { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-video > div:first-child { grid-column: 1 / span 4; }
    .dfc-video > .dfc-video-art { grid-column: 5 / -1; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 4; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .dfc-steps { grid-column: 5 / -1; }
}
@container dfc (max-width: 560px) {
    .dfc-video { grid-template-columns: minmax(0, 1fr); }
    .dfc-video > div:first-child, .dfc-video > .dfc-video-art { grid-column: 1 / -1; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / span 3; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .dfc-steps { grid-column: 1 / -1; justify-content: flex-start; }
    .dfc-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
    .dfc-board > [data-dfc-tile] { grid-column: 1 / -1; }
    .dfc-board > [data-dfc-tile]::before { content: none !important; }
    .dfc-board > [data-dfc-tile="path"] { padding: 16px; }
    .dfc-edge .dfc-figure b { font: 600 var(--ui-type-title-s) var(--ui-font); }
    .dfc-edge-key { display: none; }
}
.dfc-section-line.dfc-improving-head { grid-template-columns: minmax(0, 1fr) auto; }
.dfc-section-line.dfc-improving-head > :first-child, .dfc-section-line.dfc-improving-head > :not(:first-child) { grid-column: auto; }
/* the counter's dot belongs to its words (Igor 18 Nov, the phone: «развалилось») */
/* the read line is two pieces, the words and the links (Share · Read the evidence): the links keep the line's right end, the
   old page's rules for a lone link are gone (18 Nov, the demo walk at 1512: «развалилось», the links on a second row mid-line) */
.dfc-read-text { grid-column: 1 / span 9; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dfc-read-links { grid-column: 10 / -1; justify-self: stretch; justify-content: flex-end; display: flex; align-items: center; gap: 16px; }
.dfc-read-links > .ui-link { gap: 6px; white-space: nowrap; }
.dfc-read-links > .ui-link :is(svg, i) { width: 14px; height: 14px; }
.dfc-read-text > .dfc-dot { position: static; }
/* the words and the links share the row's height, so their tops and their middles meet (gate 18 Nov: the link 6 px off) */
.dfc-read-text, .dfc-read-links { align-self: stretch; }
@container dfc (max-width: 900px) { .dfc-read-text { grid-column: 1 / span 5; } .dfc-read-links { grid-column: 6 / -1; } .dfc-room-figs { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 24px; } .dfc-room-fig:nth-child(1), .dfc-room-fig:nth-child(2) { grid-column: span 3; } .dfc-room-fig:nth-child(3) { grid-column: span 2; } }
@container dfc (max-width: 560px) { .dfc-read-text { grid-column: 1 / -1; } .dfc-read-links { grid-column: 1 / -1; justify-content: flex-start; } .dfc-room-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; } .dfc-room-fig:nth-child(n) { grid-column: auto; } }
/* a sentence's last line never one word (gate 18 Nov: the improving driver's line on a phone) */
.dfc-improving p, .dfc-driver, .dfc-sheet p { text-wrap: pretty; }
.dfc-strategy-mini { margin: 20px 0 12px; }
/* where you parted, tighter (Igor 18 Nov «эту секцию можно ужать по высоте»): the moment over one 44 px strip, the two
   actions on one line, the honesty line under the ghost instead */
.dfc-moment { padding: 6px 0 8px; }
.dfc-moment .dfc-cap { margin: 2px 0 6px; }
.dfc-parted-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.dfc-parted-acts .dfc-lines-link { margin-top: 0; }
/* Are you improving: the card turns the split around, 5 | 7, so its months get the width (Igor 18 Nov «тут можно и нарушить
   сетку чтобы график был больше по ширине… не одну сетку а 2») */
.dfc-improving-split > :nth-child(odd) { grid-column: 1 / span 5; }
.dfc-improving-split > :nth-child(even) { grid-column: 6 / -1; }
@container dfc (max-width: 900px) { .dfc-improving-split > :nth-child(odd), .dfc-improving-split > :nth-child(even) { grid-column: auto; } }
/* segmented choices with Journal's icons (calendar-range / calendar-days / calendar-clock / sliders / database) */
.dfc-main .app-view-toggle-btn > :is(svg, i) { flex: none; width: 16px; height: 16px; }
.dfc-main .app-view-toggle-btn { gap: 6px; }
/* where is your edge: the question and its period on one line, then one line of what it reads */
.dfc-edge-head { align-items: end; }
.dfc-edge-head > .dfc-periods { display: flex; justify-self: stretch; }
.dfc-edge-head > .dfc-periods > * { flex: 1 1 0; }
/* Custom at the right end as its icon alone (Igor 18 Nov «сплюскивается»): a square that does not share the width; its
   panel opens from the right edge */
.dfc-edge-head > .dfc-periods > .dfc-custom { flex: 0 0 auto; }
.dfc-periods > .dfc-custom > summary.app-view-toggle-btn { width: auto; aspect-ratio: 1; padding-inline: 0; }
.dfc-periods > .dfc-custom .fh-pop-panel { left: auto; right: 0; }
.dfc-main .dfc-periods > .dfc-custom > summary > :is(svg, i) { display: block; }
/* its panel: the kit's fields, labels on the fields' left edge (the head's right alignment stops here) */
.dfc-custom .fh-pop-panel { text-align: left; gap: 12px; flex-wrap: nowrap; max-width: calc(100cqw - 0px); }
.dfc-custom .fh-custom-form label { justify-items: start; }
.dfc-custom .fh-custom-form .ui-field { width: 160px; min-width: 0; height: 40px; }
@container dfc (max-width: 900px) { .dfc-edge-head > .dfc-periods { grid-column: 1 / -1; } }
@container dfc (max-width: 560px) { .dfc-custom .fh-pop-panel { flex-wrap: wrap; } .dfc-custom .fh-custom-form .ui-field { width: 100%; } }
.dfc-edge-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 8px 0 0 !important; }
.dfc-edge-meta > .ui-link { min-height: 20px; }
/* a phone gives the scope and dates their own line, so the two doors share the next and never wrap one alone */
@container dfc (max-width: 560px) { .dfc-edge-meta > span { flex-basis: 100%; } }
.dfc-figures { padding: 16px 0 8px; }
/* the Coach banner, tighter (Igor «много пустот как будто»): its mark, its question and who reads it, its door */
.dfc-coach-banner { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; padding: 20px 24px; }
.dfc-coach-banner h3 { margin-bottom: 4px !important; font: 600 var(--ui-type-title-s) var(--ui-font); }
.dfc-coach-banner p { margin: 0 !important; font: 400 var(--ui-type-body) var(--ui-font); }
.dfc-banner-mark { align-self: center; }
.dfc-banner-mark svg { width: 32px; height: 32px; }
@container dfc (max-width: 900px) {
    .dfc-edge-head > .dfc-periods { margin-top: 16px; }
    .dfc-coach-banner { grid-template-columns: 40px minmax(0, 1fr); }
}
@container dfc (max-width: 560px) {
    .dfc-coach-banner { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .dfc-main .dfc-periods .app-view-toggle-btn > :is(svg, i) { display: none; }
}
/* the phone (Igor 18 Nov «некрасиво адаптировалось»): Coach's question closer to its kicker; the months' switch across
   the width with its arrows on one line under it */
/* Coach's tile once it stands alone under the strategy (tablet and phone, Igor 18 Nov «дыряво»): no height kept for a
   neighbour, its question close to its kicker, the reply, its link and the suggestion on one 16 rhythm */
@container dfc (max-width: 900px) {
    .dfc-coach-body { min-height: 0; }
    .dfc-coach-q { margin-top: 12px !important; }
    .dfc-coach-reply { margin-top: 16px; }
    .dfc-coach-reply p { margin-bottom: 4px; }
    .dfc-coach-go { margin-top: 16px; }
    .dfc-suggestion { margin-top: 16px; }
    /* Prop's tile alone too («тоже наверно дыряво на таблетах»): the firm close to its kicker, the road, the count and the
       door on the same 16 */
    .dfc-video { padding: 24px 0 0; border-top: 1px solid var(--ui-line); }
    .dfc-prop-head, .dfc-prop-empty { margin-top: 12px; }
    .dfc-prop-road { margin: 16px 0; }
    .dfc-prop-count { margin-bottom: 16px !important; }
}
@container dfc (max-width: 560px) {
    .dfc-coach-q { font: 500 var(--ui-type-title-s) var(--ui-font); }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .app-view-toggle { grid-column: 1 / -1; }
    .dfc-first .dfc-atlas-area > .dfc-atlas-controls > .dfc-steps { justify-content: space-between; }
}

/* tag-controls.css */
/* Removable label chips: shared by trade forms and Setup aliases. */
.tag-pill{--tag-ink:var(--text-primary,#262728);--tag-muted:var(--text-secondary,#606265);display:inline-flex;align-items:center;gap:6px;min-height:28px;max-width:100%;min-width:0;box-sizing:border-box;padding:2px 5px 2px 8px;border:0;border-radius:4px;background:color-mix(in srgb,var(--tag-ink) 5%,var(--app-surface-card,#fff));color:var(--tag-ink);font-size:var(--ui-type-caption-size,12px);font-weight:400;line-height:20px;white-space:normal;animation:none}
:is(.trade-entry-page,.trade-review-page) .tag-pill{--tag-ink:var(--te-ink,var(--tr-ink));--tag-muted:var(--te-muted,var(--tr-muted));background:color-mix(in srgb,var(--tag-ink) 5%,var(--te-surface,var(--tr-surface)))}
.tag-pill-label{min-width:0;overflow-wrap:anywhere}
.tag-pill .tag-pill-remove{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:22px;height:22px;min-height:22px;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--tag-muted);opacity:1;font-family:inherit;font-size:var(--ui-type-lead-size,16px);font-weight:500;line-height:1;cursor:pointer}
.tag-pill .tag-pill-remove:hover{background:color-mix(in srgb,var(--tag-ink) 8%,transparent);color:var(--tag-ink)}
.tag-pill .tag-pill-remove:focus-visible{outline:2px solid var(--user-action-text,var(--user-action-accent,#443ab8));outline-offset:2px}

/* modal-backdrop.css */
/* Workspace and editor documents share one theme-aware neutral scrim owner.
 * Editor documents live inside the already modal workspace host, so their
 * own dialogs use a gentler second layer. The foreground remains unfiltered. */
html.light :is(.workspace-shell-native,.trade-entry-page,.trade-review-page,.import-workspace-page){
 --app-modal-backdrop:rgb(38 39 40 / .20);
 --app-modal-backdrop-filter:blur(5px);
 --app-modal-nested-backdrop:rgb(38 39 40 / .14);
 --app-modal-nested-backdrop-filter:blur(2px);
}
html.dark :is(.workspace-shell-native,.trade-entry-page,.trade-review-page,.import-workspace-page){
 --app-modal-backdrop:rgb(0 0 0 / .56);
 --app-modal-backdrop-filter:blur(4px);
 --app-modal-nested-backdrop:rgb(0 0 0 / .32);
 --app-modal-nested-backdrop-filter:blur(2px);
}
:is(html.light,html.dark) .workspace-shell-native dialog:not(.tsb-review-workbench,.vsr)::backdrop,
:is(html.light,html.dark) .workspace-shell-native .coach-drawer-backdrop,
:is(html.light,html.dark) .journal-workspace-native .screenshot-lightbox-overlay{
 background:var(--app-modal-backdrop);
 backdrop-filter:var(--app-modal-backdrop-filter);
}
/* The voice draft sheet keeps the notes it fills in view: a light scrim of its own, no blur. */
:is(html.light,html.dark) :is(.trade-entry-page,.trade-review-page,.import-workspace-page) dialog:not(.vsr)::backdrop{
 background:var(--app-modal-nested-backdrop);
 backdrop-filter:var(--app-modal-nested-backdrop-filter);
}
:is(html.light,html.dark) .workspace-shell-native :is(.tsb-review-dialog,.tsb-entry-dialog).is-expanded::backdrop{
 background:transparent;
 backdrop-filter:none;
}
:is(html.light,html.dark) .workspace-shell-native .journal-review-image-host.is-nested::backdrop{
 background:var(--app-modal-nested-backdrop);
 backdrop-filter:var(--app-modal-nested-backdrop-filter);
}
:is(html.light,html.dark) .workspace-shell-native .journal-review-image-host .screenshot-lightbox-overlay{
 background:transparent;
 backdrop-filter:none;
}

/* The host reserves its complete geometry before opening. Motion is purely
   presentational and never delays readiness, closing or the draft guard. */
.workspace-shell-native :is(.tsb-entry-dialog,.tsb-review-dialog.tsb-review-quick,.tsb-import-dialog)[open]{animation:tsb-editor-enter 180ms ease-out both}
.workspace-shell-native :is(.tsb-entry-loading,.tsb-review-loading,.tsb-import-loading)[hidden]+iframe{animation:tsb-editor-ready 140ms ease-out both}
@keyframes tsb-editor-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes tsb-editor-ready{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.workspace-shell-native :is(.tsb-entry-dialog,.tsb-review-dialog,.tsb-import-dialog,.tsb-entry-frame,.tsb-review-dialog iframe,.tsb-import-dialog iframe){animation:none!important}}
html[data-reduce-motion=true] .workspace-shell-native :is(.tsb-entry-dialog,.tsb-review-dialog,.tsb-import-dialog,.tsb-entry-frame,.tsb-review-dialog iframe,.tsb-import-dialog iframe){animation:none!important}

