/* THE SHARED COMPONENTS (Plan & Scenarios redesign; docs/design/forecast-workspace-redesign-v2.md "Component inventory"). Slice 1's
   minimum (B): the components the results rail, the KPI strip, the charts and the Monthly detail drawer draw -- button, KPI tile, chip, info
   tip, segmented control, chart, overlay and drawer. C owns this file from slice 1's READY on and builds the rest of the inventory here (A
   16:43 UTC 10/27/2026). Every colour, size and radius from the --lv-* tokens (g_brand.css); every rule under a .lv- class, nothing that
   restyles a v1 screen.
   C 10/27/2026, on B's slice-1 rules (R 16:52 UTC, pinned by tools/c-ui-css.js): a button and a word chip take a minimum height and may
   wrap (PT runs longer), an amount never breaks; every focus rule draws an outline (forced colours); every movement stills under
   prefers-reduced-motion; one 1024 boundary, (max-width: 1023.98px). A sheet, slide-over or dialog is shown while g_sheet.js has it in the
   layer, so nothing here hides one by default. */
.lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--lv-s-2); min-height: var(--lv-control-h); padding: 0 14px; border-radius: var(--lv-r-1); font: 500 var(--lv-fs-14)/1.2 var(--lv-font); text-align: center; border: 1px solid var(--lv-border-strong); background: var(--lv-surface); color: var(--lv-ink); cursor: pointer; }
.lv-btn--sm { min-height: 32px; font-size: var(--lv-fs-13); }
.lv-btn--ghost { border-color: transparent; background: transparent; color: var(--lv-ink-2); }
.lv-btn:focus-visible, .lv-chip--suggest:focus-visible, .lv-seg__item:focus-visible, .lv-group__head:focus-visible, .lv-mic:focus-visible,
.lv-infotip:focus-visible, .lv-fab:focus-visible, .lv-row:focus-visible, .lv-change button:focus-visible, button.lv-row__name:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lv-s-2); }
.lv-kpi { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); padding: var(--lv-s-3); display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; container-type: inline-size; }
.lv-kpi__label { font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-kpi__value { font-size: var(--lv-fs-22); font-weight: 600; font-variant-numeric: tabular-nums; }
/* a LONG value only (B's gTile marks 8+ characters, R 20:20) shrinks with its tile -- the tile is a container -- and never breaks (R-UI2-1);
   a short one keeps its full size, numbers before labels (R-UI2-3) */
.lv-kpi__value--long { font-size: min(var(--lv-fs-22), 15cqi); }
.lv-kpis--strip .lv-kpi__value { font-size: var(--lv-fs-17); }
.lv-kpis--strip .lv-kpi__value--long { font-size: min(var(--lv-fs-17), 15cqi); }
.lv-kpi__why { font-size: var(--lv-fs-12); color: var(--lv-ink-3); overflow-wrap: anywhere; }   /* 'Financiamento necessário' in a 121px tile (R-S1-9) */
.lv-kpi__delta { margin-top: var(--lv-s-1); }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 8px; border-radius: var(--lv-r-pill); font-size: var(--lv-fs-12); font-weight: 500; line-height: 1.2; background: var(--lv-tint-grey); color: var(--lv-ink-2); align-self: flex-start; }
.lv-chip--delta-down { background: var(--lv-tint-worse); color: var(--lv-worse-text); }   /* Dusk: a fall is "worse" (violet), never red (D 11/05/2026) */
.lv-chip { max-width: 100%; overflow-wrap: anywhere; }   /* 5.9 (C 11/03/2026): a chip never grows past its line -- a name from the books with no break in it breaks, never pans the page */
.lv-infotip { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--lv-ink-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0; }   /* R-IT-1 (R 22:47, C 10/31/2026): a 24 x 24 press target, never 25 x 17 */
@media (max-width: 1023.98px) { .lv-infotip { min-width: 44px; min-height: 44px; } }
/* R 09:05 UTC 11/01/2026: the inline mode (LVGInfotip.html's { inline: true }) -- the ⓘ in its line of text, its pop placed from it */
.lv-infotip__wrap--inline { position: relative; display: inline-block; }
.lv-infotip.lv-infotip--inline { position: static; display: inline-flex; padding: 0 4px; margin: 0; font-family: inherit; line-height: 1; vertical-align: baseline; }
.lv-infotip.lv-infotip--inline { margin-block: -5px; }   /* R 19:22 (C 11/03/2026): the 24 px min box stays the press target, its glyph centred; the margin takes all but its middle 14 px out of the line box -- a 20 px line stays 20 px, never 24 */
@media (max-width: 1023.98px) { .lv-infotip.lv-infotip--inline { margin-block: -15px; } }   /* R 19:22: the 44 px min box stays the press target, out of its line box (44 - 2 x 15 = its middle 14 px) */   /* R-IT-1: 44 x 44 to a finger -- no negative margin: it pushed the tip's words off a 390 screen (kpi-trends-ui), so the glyph sits 10 px further into the corner */
.lv-rail__chart { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); padding: var(--lv-s-3); }
.lv-rail__chart h3 { margin: 0 0 var(--lv-s-2); font-size: var(--lv-fs-14); font-weight: 600; }
.lv-chart { margin: 0; } .lv-chart__svg { width: 100%; height: auto; display: block; }
.lv-chart__grid { stroke: var(--lv-c-grid); } .lv-chart__tick { fill: var(--lv-c-axis); font-size: var(--lv-fs-11); }
.lv-chart__s-revenue { fill: var(--lv-c-revenue); stroke: var(--lv-c-revenue); } .lv-chart__s-operating { fill: var(--lv-c-ebitda); stroke: var(--lv-c-ebitda); }
.lv-chart__s-cash { stroke: var(--lv-c-cash); fill: var(--lv-c-cash); } .lv-chart__line { fill: none; stroke-width: 2; }
.lv-chart__legend { display: flex; flex-wrap: wrap; gap: var(--lv-s-3); font-size: var(--lv-fs-12); color: var(--lv-ink-2); list-style: none; padding: 0; margin: var(--lv-s-2) 0 0; }
.lv-chart__swatch { display: inline-block; width: 12px; height: 12px; border-radius: var(--lv-r-xs); margin-right: 4px; vertical-align: -2px; }
.lv-seg { display: inline-flex; background: var(--lv-tint-grey); border-radius: var(--lv-r-pill); padding: 2px; margin-bottom: var(--lv-s-3); }
.lv-seg__item { border: 0; background: none; padding: 0 12px; min-height: calc(var(--lv-control-h) - 4px); border-radius: var(--lv-r-pill); color: var(--lv-ink-2); font: 500 var(--lv-fs-13)/1.2 var(--lv-font); cursor: pointer; }
.lv-seg__item[aria-pressed="true"] { background: var(--lv-surface); color: var(--lv-ink); box-shadow: var(--lv-sh-1); }
.lv-overlay { position: fixed; inset: 0; background: var(--lv-scrim); z-index: 50; animation: lv-fade-in 220ms ease-out; }
.lv-drawer, .lv-slideover, .lv-dialog, .lv-sheet { position: fixed; z-index: 51; background: var(--lv-surface); color: var(--lv-ink); display: flex; flex-direction: column; font-family: var(--lv-font); box-shadow: var(--lv-sh-2); box-sizing: border-box; }
.lv-drawer { top: 0; right: 0; bottom: 0; width: min(720px, 100vw); animation: lv-slide-in 220ms ease-out; }
.lv-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--lv-s-4); border-bottom: 1px solid var(--lv-border); }
.lv-drawer__title { margin: 0; font-size: var(--lv-fs-18); }
.lv-drawer__body { overflow: auto; padding: var(--lv-s-4); }
html.lv-scroll-locked, html.lv-scroll-locked body { overflow: hidden; }
.lv-kpi__value, .lv-chip--delta-up, .lv-chip--delta-down { white-space: nowrap; }   /* an amount never breaks after its sign; a word chip may wrap */
.lv-kpi__value--unknown { white-space: normal; font-size: var(--lv-fs-16); color: var(--lv-ink-2); }   /* words ("Not yet known") wrap; an amount never breaks after its sign */
.lv-kpi__label { padding-right: 18px; overflow-wrap: anywhere; }   /* a PT word longer than the tile breaks before the corner (i) (R-S1-4) */
.lv-chart__swatch.lv-chart__s-revenue { background: var(--lv-c-revenue); } .lv-chart__swatch.lv-chart__s-operating { background: var(--lv-c-ebitda); } .lv-chart__swatch.lv-chart__s-cash { background: var(--lv-c-cash); }
.lv-chart__month { fill: var(--lv-c-axis); } .lv-chart__zero { stroke: var(--lv-border-strong); }
.lv-chart__hatch { stroke: var(--lv-c-axis); } .lv-chart__missing { stroke: var(--lv-ink-3); }

/* ---- THE REST OF THE INVENTORY (C, 10/27/2026) ---- */

/* every sized component counts its padding and border inside its width (styles.css does it page-wide; a component never relies on it) */
.lv-btn, .lv-input, .lv-select, .lv-textarea, .lv-card, .lv-group, .lv-tray, .lv-fab, .lv-toast, .lv-infotip__pop, .lv-scroll, .lv-chip { box-sizing: border-box; }

/* Button: the primary, the secondary (the base above), danger; disabled; the split button (a 36px chevron segment) */
.lv-btn--primary { background: var(--lv-navy); border-color: var(--lv-navy); color: var(--lv-ink-inv); }
.lv-btn--primary:hover { background: var(--lv-navy-600); border-color: var(--lv-navy-600); }
.lv-btn--secondary:hover, .lv-btn:not(.lv-btn--primary):not(.lv-btn--ghost):not(.lv-btn--danger):hover { background: var(--lv-surface-2); }
.lv-btn--ghost:hover { background: var(--lv-tint-grey); }
.lv-btn--danger { color: var(--lv-c-stop); }
/* R's fidelity table 0.2 (10/28/2026; Components: "Disabled = 45% opacity, never a different colour"): the mockup's .btn[disabled] */
.lv-btn:disabled, .lv-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
/* R's fidelity table 0.3: a card's or a group's title in the workspace is a sentence, 16/600 in ink -- styles.css's h3 is a 13px uppercase eyebrow
   ("PROFIT AND LOSS", "SAVED PLANS"). :where() keeps this the weakest rule, so a component's own title (the tray's 14px) still wins */
:where(.lv-ws) h3 { font: 600 var(--lv-fs-16)/1.3 var(--lv-font); text-transform: none; letter-spacing: normal; color: var(--lv-ink); }
.lv-btn-split { display: inline-flex; }
.lv-btn-split > .lv-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lv-btn-split > .lv-btn + .lv-btn { width: 36px; padding: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: var(--lv-navy-600); }

/* Input, select, textarea, field */
.lv-input, .lv-select, .lv-textarea { height: var(--lv-control-h); padding: 0 10px; border: 1px solid var(--lv-border-strong); border-radius: var(--lv-r-1);
  background: var(--lv-surface); color: var(--lv-ink); font: var(--lv-fs-14)/1.4 var(--lv-font); width: 100%; min-width: 0; }
.lv-textarea { height: auto; min-height: 72px; max-height: 160px; padding: var(--lv-s-2) 10px; resize: vertical; field-sizing: content; }
.lv-input:focus, .lv-select:focus, .lv-textarea:focus { outline: 2px solid transparent; outline-offset: 0; border-color: var(--lv-navy); box-shadow: 0 0 0 3px var(--lv-tint-blue); }
.lv-input[aria-invalid="true"], .lv-select[aria-invalid="true"], .lv-textarea[aria-invalid="true"] { border-color: var(--lv-c-stop); }
.lv-field { display: flex; flex-direction: column; gap: var(--lv-s-1); min-width: 0; }
.lv-field > label, .lv-field__label { font: 500 var(--lv-fs-12)/1.3 var(--lv-font); color: var(--lv-ink-2); }
.lv-field__help { font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-field__error { font-size: var(--lv-fs-12); color: var(--lv-c-stop); }
.lv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lv-s-3); }
@media (max-width: 479px) { .lv-field-row { grid-template-columns: 1fr; } }

/* Chips: status (a dot by [data-status]), version, a suggestion (a <button>), the delta up (down is above) */
.lv-chip--status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-ink-3); }
.lv-chip--status[data-status="fresh"]::before { background: var(--lv-teal); }
.lv-chip--status[data-status="preparing"]::before { background: var(--lv-warn); }
.lv-chip--version { background: var(--lv-tint-blue); color: var(--lv-info); }
.lv-chip--suggest { background: var(--lv-surface); border: 1px solid var(--lv-border-strong); color: var(--lv-ink); cursor: pointer; font-family: var(--lv-font); }
.lv-chip--suggest:hover { background: var(--lv-surface-2); }
.lv-chip--delta-up { background: var(--lv-tint-teal); color: var(--lv-good); }
.lv-chip--down { background: var(--lv-tint-due); color: var(--lv-due-text); }   /* the engine's judgement, 'Below the minimum' (B's lv-chip--status lv-chip--down; R-S1-8): a funding need, an action-required cash state -- Dusk's stop (D 11/05/2026) */
.lv-chip--status.lv-chip--down::before { background: var(--lv-c-due); }   /* R-DK-4 (R 17:20 UTC 11/05/2026): below the minimum is a needs-a-look, the due tone; red is for cash below zero */

/* Card: never nested more than one level */
.lv-card { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); padding: var(--lv-s-5); }
@media (max-width: 1023.98px) { .lv-card { padding: var(--lv-s-4); } }

/* Assumption group: a card whose head is a <button aria-expanded>; the body is [hidden] until expanded */
.lv-group { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); }
.lv-group__head { display: flex; align-items: center; gap: var(--lv-s-3); width: 100%; padding: var(--lv-s-4) var(--lv-s-5); border: 0; background: transparent;
  text-align: left; cursor: pointer; color: var(--lv-ink); font: 600 var(--lv-fs-16)/1.3 var(--lv-font); border-radius: var(--lv-r-2); }
.lv-group__head::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--lv-ink-3); border-bottom: 2px solid var(--lv-ink-3);
  transform: rotate(-45deg); transition: transform 150ms; }
.lv-group__head[aria-expanded="true"]::after { transform: rotate(45deg); }
.lv-group__summary { display: block; font: 400 var(--lv-fs-13)/1.4 var(--lv-font); color: var(--lv-ink-2); white-space: nowrap; }   /* '0 pagamentos' never breaks at 390 (R-2A-7) */
.lv-group__body { padding: 0 var(--lv-s-5) var(--lv-s-4); }
.lv-group__body[hidden] { display: none; }
.lv-group__title { min-width: 0; overflow-wrap: anywhere; }
.lv-group__note { margin: 0 0 var(--lv-s-3); font-size: var(--lv-fs-12); color: var(--lv-ink-2); }

/* List row: 44px read row; Click or Enter opens .lv-row--editing, a two-column inline form */
.lv-row { display: flex; align-items: center; gap: var(--lv-s-3); min-height: 44px; padding: 0 var(--lv-s-2); border-bottom: 1px solid var(--lv-border); }
.lv-row__name { flex: 1 1 auto; min-width: 0; font-size: var(--lv-fs-14); color: var(--lv-ink); overflow-wrap: anywhere; }
.lv-row__meta { font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-row__amount { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lv-ink); }
/* the name is a <button> that opens the row (spec "Row behaviour" 1; B 19:54): it reads as the row's text, never a grey browser button */
button.lv-row__name { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; font-weight: inherit; line-height: inherit; font-size: var(--lv-fs-14); text-align: left; cursor: pointer; }
button.lv-row__name:hover { text-decoration: underline; text-underline-offset: 2px; }
/* an applied edit not yet saved (spec "Row behaviour" 5): an 8px amber dot; its words are its aria-label */
.lv-row__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-warn); }
/* the date and the amount sit together at the right (spec "Row behaviour" 1) */
.lv-row__date { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lv-ink-2); }
.lv-row__date + .lv-row__amount { margin-left: 0; }
/* switched off (spec "Row behaviour" 6): the row dims and strikes its figures */
.lv-row--off .lv-row__name, .lv-row--off .lv-row__meta { color: var(--lv-ink-3); }
.lv-row--off .lv-row__date, .lv-row--off .lv-row__amount { color: var(--lv-ink-3); text-decoration: line-through; }
/* a phone: the evidence line goes under the row's figures, never squeezed beside them */
@media (max-width: 479px) { .lv-row { flex-wrap: wrap; row-gap: 2px; padding-top: var(--lv-s-2); padding-bottom: var(--lv-s-2); } .lv-row > .lv-row__meta { order: 1; flex-basis: 100%; } }
.lv-row__tools { visibility: hidden; }
.lv-row:hover .lv-row__tools, .lv-row:focus-within .lv-row__tools { visibility: visible; }
@media (hover: none) { .lv-row__tools { visibility: visible; } }
.lv-row--editing { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lv-s-3); padding: var(--lv-s-3) var(--lv-s-2); background: var(--lv-surface-2); }
@media (max-width: 479px) { .lv-row--editing { grid-template-columns: 1fr; } }
.lv-row-edit { display: flex; flex-direction: column; gap: var(--lv-s-3); margin: var(--lv-s-1) 0; padding: var(--lv-s-3); background: var(--lv-surface-2);
  border: 1px solid var(--lv-border-strong); border-radius: var(--lv-r-2); }
.lv-row-edit__title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2); font: 500 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-row-edit__hint { margin: 0; font-size: var(--lv-fs-12); color: var(--lv-warn); }
.lv-row-edit__actions, .lv-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2); }
.lv-row-edit__confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2); font-size: var(--lv-fs-13); color: var(--lv-ink); }
.lv-form__footer { position: sticky; bottom: 0; justify-content: flex-end; padding: var(--lv-s-3) 0; border-top: 1px solid var(--lv-border); background: var(--lv-surface); }

/* Numeric table inside a scroll box: the first column sticky; the totals row 600; negatives red only on the EBITDA / net rows */
.lv-scroll { overflow-x: auto; max-width: 100%; min-width: 0; scrollbar-width: thin; scrollbar-color: var(--lv-border-strong) transparent;
  -webkit-mask-image: linear-gradient(90deg, currentColor calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, currentColor calc(100% - 16px), transparent); }
.lv-scroll::-webkit-scrollbar { height: 6px; }
.lv-scroll::-webkit-scrollbar-thumb { background: var(--lv-border-strong); border-radius: var(--lv-r-pill); }
.lv-table { border-collapse: separate; border-spacing: 0; font: var(--lv-fs-13)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-table th, .lv-table td { height: 32px; padding: 0 var(--lv-s-3); text-align: right; white-space: nowrap; border-bottom: 1px solid var(--lv-border); font-variant-numeric: tabular-nums; }
.lv-table thead th { font: 500 var(--lv-fs-12)/1.3 var(--lv-font); color: var(--lv-ink-2); }
.lv-table th:first-child, .lv-table td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--lv-surface); }
.lv-table .lv-table__total td, .lv-table tfoot td { font-weight: 600; }
.lv-table .lv-table__key .lv-neg { color: var(--lv-worse-text); }   /* a negative result in a key row: ordinary, "worse" */

/* A chart's tooltip (g_charts.js places it) */
.lv-chart { position: relative; }
.lv-chart__tip { position: absolute; pointer-events: none; padding: var(--lv-s-1) var(--lv-s-2); border-radius: var(--lv-r-1); background: var(--lv-ink);
  color: var(--lv-ink-inv); font-size: var(--lv-fs-12); white-space: nowrap; box-shadow: var(--lv-sh-2); }
.lv-chart__tip[hidden] { display: none; }

/* The bottom sheet, the slide-over and the dialog (g_sheet.js: .lv-<size>, __head, __title, __body; the sheet's handle) */
.lv-sheet { left: 0; right: 0; bottom: 0; max-height: 88dvh; border-radius: var(--lv-r-3) var(--lv-r-3) 0 0; animation: lv-sheet-up 220ms ease-out; }
@media (min-width: 768px) { .lv-sheet { width: min(640px, 100%); margin: 0 auto; } }   /* a centred column from a tablet up (B 17:09) */
.lv-sheet__handle { align-self: center; flex: 0 0 auto; width: 36px; height: 4px; margin: var(--lv-s-2) 0 0; border-radius: var(--lv-r-pill); background: var(--lv-border-strong); }
.lv-slideover { top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; animation: lv-slide-in 220ms ease-out; }
.lv-slideover.lv-slideover--wide { width: 960px; }
.lv-slideover.lv-slideover--panel { width: 1000px; }   /* the Statements panel (C 11/12/2026): ~1000 px over the dimmed page; under 768 px the sheet rule below wins */   /* the spec's 960 px slide-over (Scenarios' Compare; C 10/29/2026); under 768 px the sheet rule below wins */
.lv-dialog { top: 50%; left: 50%; width: min(560px, calc(100vw - 32px)); max-height: 88dvh; transform: translate(-50%, -50%); border-radius: var(--lv-r-2); }
.lv-sheet__head, .lv-slideover__head, .lv-dialog__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--lv-s-3);
  padding: var(--lv-s-3) var(--lv-s-4); background: var(--lv-surface); border-bottom: 1px solid var(--lv-border); }
.lv-sheet__title, .lv-slideover__title, .lv-dialog__title { margin: 0; font: 600 var(--lv-fs-16)/1.3 var(--lv-font); }
.lv-sheet__body, .lv-slideover__body, .lv-dialog__body { overflow: auto; overscroll-behavior: contain; padding: var(--lv-s-4); flex: 1 1 auto; min-height: 0; }
.lv-slideover__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: var(--lv-s-2); padding: var(--lv-s-3) var(--lv-s-4);
  background: var(--lv-surface); border-top: 1px solid var(--lv-border); }
@media (max-width: 767.98px) {
  .lv-slideover { top: auto; left: 0; width: auto; height: 100dvh; border-radius: var(--lv-r-3) var(--lv-r-3) 0 0; animation: lv-sheet-up 220ms ease-out; }
}
@keyframes lv-fade-in { from { opacity: 0; } }
@keyframes lv-sheet-up { from { transform: translateY(100%); } }
@keyframes lv-slide-in { from { transform: translateX(100%); } }

/* Floating results button: shown (g_results.js clears [hidden]) only when the KPI strip is out of view, under 1024px */
.lv-fab { position: fixed; left: 50%; bottom: calc(var(--lv-s-4) + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translateX(-50%);
  height: 48px; padding: 0 var(--lv-s-5); border: 0; border-radius: var(--lv-r-pill); background: var(--lv-navy); color: var(--lv-ink-inv);
  font: 500 var(--lv-fs-14)/1 var(--lv-font); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--lv-sh-2); cursor: pointer; }
.lv-fab[hidden] { display: none; }

/* THE PLAN'S HEAD, slice 2b (B 02:05 UTC 10/28/2026; spec "Plan screen, desktop" the header row): the title, the version chip, the status
   chip and the actions on one row, wrapping on a phone; the basis line's note; the one sentence when the controls are disabled; the Keep /
   Rebase notice. The status chip's dot is its own ::before by data-status (fresh teal, preparing amber, otherwise grey) -- never a second dot. */
.lv-ws__titlebar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-3); margin: 0 0 var(--lv-s-2); }
.lv-ws__titlebar h1 { margin: 0; font: 600 var(--lv-fs-22)/1.2 var(--lv-font); }
.lv-ws__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2); margin-left: auto; }
.lv-ws__basis-note { font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-ws__why { margin: var(--lv-s-1) 0 0; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-notice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-3); margin: 0 0 var(--lv-s-4); padding: var(--lv-s-3) var(--lv-s-4);
  background: var(--lv-tint-blue); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); color: var(--lv-ink); font-size: var(--lv-fs-13); }
.lv-notice__actions { display: flex; flex-wrap: wrap; gap: var(--lv-s-2); margin-left: auto; }
@media (max-width: 479px) { .lv-ws__actions, .lv-notice__actions { margin-left: 0; } }

/* THE PROMPT BLOCK AND THE PROPOSAL, slice 3a (B 04:52 UTC 10/28/2026; spec "The prompt block" and "Interpret, ask, preview, add"; switch
   planV2Prompt): the label 14/600 with its spark; the textarea two lines at rest, growing to six before it scrolls, 16 px on a phone; the chips
   in a wrapping row, never a sideways strip; Preview changes full width on a phone, its status beside it; the helper line. The proposal: its
   question, the gaps it asks, the cards, the effect with its Preview chip, the assumptions disclosure, Add / Dismiss. Tokens only. */
.lv-prompt { display: grid; gap: var(--lv-s-2); margin: 0 0 var(--lv-s-4); }
.lv-prompt__label { display: flex; align-items: center; gap: var(--lv-s-1); font: 600 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-icon { display: inline-block; width: 16px; height: 16px; flex: none; background-color: currentColor; }
.lv-icon--spark { color: var(--lv-teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l1.8 6.2L16 8l-6.2 1.8L8 16l-1.8-6.2L0 8l6.2-1.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l1.8 6.2L16 8l-6.2 1.8L8 16l-1.8-6.2L0 8l6.2-1.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lv-prompt .lv-textarea { line-height: 1.45; min-height: calc(2 * 1.45em + 2 * var(--lv-s-2)); max-height: calc(6 * 1.45em + 2 * var(--lv-s-2)); overflow-y: auto; }
.lv-prompt__chips { display: flex; flex-wrap: wrap; gap: var(--lv-s-2); }
.lv-prompt__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-3); }
.lv-prompt__status { font-size: var(--lv-fs-13); color: var(--lv-ink-2); }
.lv-prompt__status[role="alert"] { color: var(--lv-ink); }
.lv-prompt__help { margin: 0; color: var(--lv-ink-3); }
@media (max-width: 479px) { .lv-prompt .lv-textarea { font-size: var(--lv-fs-16); } .lv-prompt__go .lv-btn--primary { width: 100%; } }
.lv-proposal { display: grid; gap: var(--lv-s-3); margin: 0 0 var(--lv-s-4); padding: var(--lv-s-3) var(--lv-s-4); background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); }
.lv-proposal__q { margin: 0; font: 600 var(--lv-fs-14)/1.4 var(--lv-font); color: var(--lv-ink); overflow-wrap: anywhere; }
.lv-proposal__cards { display: grid; gap: var(--lv-s-2); }
.lv-proposal__effect { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-4); }
.lv-proposal__tile { display: inline-flex; align-items: baseline; gap: var(--lv-s-1); white-space: nowrap; }
.lv-proposal__go { display: flex; flex-wrap: wrap; gap: var(--lv-s-2); }
@media (max-width: 479px) { .lv-proposal { padding: var(--lv-s-3); } .lv-proposal__go .lv-btn { flex: 1 1 auto; } }
.lv-gaps { padding: var(--lv-s-3); background: var(--lv-tint-amber); border-radius: var(--lv-r-2); }
.lv-gaps__title { margin: 0 0 var(--lv-s-2); font: 600 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-gaps__list { display: grid; gap: var(--lv-s-2); margin: 0; padding-left: 1.2em; }
.lv-gap > label { display: block; font-size: var(--lv-fs-14); color: var(--lv-ink); }
.lv-gap__known { margin: var(--lv-s-1) 0 0; color: var(--lv-ink-3); }
.lv-assume > summary { cursor: pointer; font-size: var(--lv-fs-13); color: var(--lv-ink-2); }
.lv-assume__list { display: grid; gap: var(--lv-s-1); margin: var(--lv-s-2) 0 0; padding: 0; list-style: none; }
.lv-assume__label { color: var(--lv-ink); }
.lv-assume__src { color: var(--lv-ink-3); }
.lv-link { padding: 0; background: none; border: 0; color: var(--lv-link); font: 400 var(--lv-fs-13)/1.4 var(--lv-font); text-decoration: underline; cursor: pointer; }
.lv-link:disabled { color: var(--lv-ink-3); text-decoration: none; cursor: default; }
.lv-change--other { padding-left: var(--lv-s-2); padding-right: var(--lv-s-2); border: 1px dashed var(--lv-border-strong); border-radius: var(--lv-r-2); }   /* words not understood yet: one thin dashed box, never the 3 px a bare border-style wakes */

/* Pending-changes tray: a card inside the rail */
.lv-tray { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); padding: var(--lv-s-4); display: flex; flex-direction: column; gap: var(--lv-s-2); }
.lv-tray__title { margin: 0; font: 600 var(--lv-fs-14)/1.3 var(--lv-font); text-transform: none; letter-spacing: normal; color: var(--lv-ink); }   /* styles.css's h3 is 13px uppercase */
.lv-tray__empty { margin: 0; font-size: var(--lv-fs-13); color: var(--lv-ink-2); }
.lv-tray__list { display: flex; flex-direction: column; }
.lv-tray__actions { display: flex; flex-wrap: wrap; gap: var(--lv-s-2); justify-content: flex-end; }
.lv-tray__why, .lv-tray__state { margin: 0; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }

/* Change card: icon, title and detail, the amount, include (a checkbox role=switch), pencil, x; a confidence badge when unsure */
.lv-change { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: center; gap: var(--lv-s-1) var(--lv-s-3);
  padding: var(--lv-s-2) 0; border-bottom: 1px solid var(--lv-border); }
.lv-change__icon { width: 20px; height: 20px; color: var(--lv-ink-2); }
.lv-change__text { min-width: 0; }
.lv-change__title { margin: 0; font: 500 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); overflow-wrap: anywhere; }
.lv-change__detail { margin: 0; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-change__amount { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; color: var(--lv-ink); }
.lv-change__tools { display: inline-flex; align-items: center; gap: var(--lv-s-1); }
.lv-change__badge { display: inline-block; margin-left: var(--lv-s-1); padding: 0 6px; border-radius: var(--lv-r-pill); background: var(--lv-tint-amber);
  color: var(--lv-warn); font-size: var(--lv-fs-11); }
/* THE SWITCH (R 07:56 UTC 10/28/2026; Andrew 07:54Z and 07:57Z: the pages look like the designs): the mockup's .sw (reports/redesign-2026-10-27/
   mockups, Components) on the include and Forecast switches -- a 34 x 20 pill, a 16px thumb that moves right and the track teal when on, 45% when
   disabled. Without appearance:none the browser kept its own checkbox (the green tick box). The off track is --lv-border-strong, not the mockup's
   #C8CFD9: that grey is 1.57:1 on white, under the 3:1 a control's state needs (WCAG 1.4.11) -- the tokens' own call for a field's edge.
   The thumb is --lv-ink-inv, the primary button's words: white on teal in light, dark on the light teal in dark. The rule is keyed on the
   switch's own label (.lv-change__include, .lv-row__switch), so Plan's tray card and the Scenarios change card share it. */
.lv-change__include input[role="switch"], .lv-row__switch input[role="switch"] { appearance: none; -webkit-appearance: none; position: relative; flex: none; box-sizing: border-box;
  width: 34px; height: 20px; margin: 0; border: 0; border-radius: var(--lv-r-pill); background: var(--lv-border-strong); cursor: pointer; }
.lv-change__include input[role="switch"]::after, .lv-row__switch input[role="switch"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--lv-ink-inv); }
.lv-change__include input[role="switch"]:checked, .lv-row__switch input[role="switch"]:checked { background: var(--lv-navy); }   /* R-DK-2 (R 17:20 UTC 11/05/2026): a selected control is navy; lagoon is only "better" */
.lv-change__include input[role="switch"]:checked::after, .lv-row__switch input[role="switch"]:checked::after { left: 16px; }
.lv-change__include input[role="switch"]:focus-visible, .lv-row__switch input[role="switch"]:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-change__include input[role="switch"]:disabled, .lv-row__switch input[role="switch"]:disabled { opacity: .45; cursor: default; }
/* Windows' forced colours drop both backgrounds: the track and the thumb keep an edge in the text colour, so the thumb's place still says on or off */
@media (forced-colors: active) {
  .lv-change__include input[role="switch"], .lv-row__switch input[role="switch"] { border: 1px solid currentColor; }
  .lv-change__include input[role="switch"]::after, .lv-row__switch input[role="switch"]::after { top: 1px; left: 1px; box-sizing: border-box; border: 1px solid currentColor; }
  .lv-change__include input[role="switch"]:checked::after, .lv-row__switch input[role="switch"]:checked::after { left: 15px; }
}
/* the include and Forecast switches: the label is the 44px target around the 34px switch */
.lv-change__include, .lv-row__switch { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.lv-change--off .lv-change__title, .lv-change--off .lv-change__detail { color: var(--lv-ink-3); }
.lv-change--off .lv-change__amount { color: var(--lv-ink-3); text-decoration: line-through; }
/* A CARD IN A NARROW LIST (C's Chrome look, 10/28/2026: at 390 inside the proposal the one-row card left its text 10 px wide -- the amount, the
   switch and two 44 px controls took the rest; the rail's tray is as narrow): under 420 px of its list, the text takes the first row, the amount
   and the controls the second, each control by what it does */
.lv-proposal__cards, .lv-tray__list { container-type: inline-size; }
@container (max-width: 420px) {
  .lv-change { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; grid-auto-flow: row; }
  .lv-change > .lv-change__text { grid-column: 2 / -1; grid-row: 1; }
  .lv-change > .lv-change__amount { grid-column: 2; grid-row: 2; justify-self: start; }
  .lv-change > .lv-change__include { grid-column: 3; grid-row: 2; }
  .lv-change > [data-act="change-edit"], .lv-change > [data-act="change-pick-type"] { grid-column: 4; grid-row: 2; }
  .lv-change > [data-act="change-remove"] { grid-column: 5; grid-row: 2; }
}

/* Empty state: icon, title, one line, one primary action; at most 320px, centred */
.lv-empty { max-width: 320px; margin: var(--lv-s-6) auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--lv-s-2); }
.lv-empty__icon { width: 32px; height: 32px; color: var(--lv-ink-3); }
.lv-empty__title { font: 500 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-empty__line { font-size: var(--lv-fs-13); color: var(--lv-ink-2); }

/* Attention item: in one card titled "Data quality"; an action, never an info line (the rule-conflicts table, 2) */
.lv-attn { display: flex; align-items: flex-start; gap: var(--lv-s-2); padding: var(--lv-s-2) 0; font-size: var(--lv-fs-14); color: var(--lv-ink); }
.lv-attn__icon { flex: 0 0 20px; width: 20px; height: 20px; }
.lv-attn--warn .lv-attn__icon { color: var(--lv-warn); }
.lv-attn--info .lv-attn__icon { color: var(--lv-info); }
.lv-attn__action { margin-left: auto; white-space: nowrap; color: var(--lv-navy); font-weight: 500; }

/* Info tip's popover: 280px (the tip itself is above, in a tile's corner) */
.lv-infotip__pop { position: absolute; z-index: 20; width: 280px; max-width: calc(100vw - 32px); padding: var(--lv-s-3); border: 1px solid var(--lv-border-strong);   /* R-IT-3 (R 23:21): an edge that shows in the dark theme too */
  border-radius: var(--lv-r-2); background: var(--lv-surface); color: var(--lv-ink-2); font: 400 var(--lv-fs-13)/1.45 var(--lv-font); box-shadow: var(--lv-sh-2); }
.lv-infotip__pop[hidden] { display: none; }
.lv-infotip__wrap > .lv-infotip__pop { right: 6px; top: 30px; }   /* until front/g_infotip.js places it beside its ⓘ, inside the screen */
.lv-infotip__pop .lv-infotip__x { float: right; margin: -4px -4px 0 8px; min-width: 32px; min-height: 32px; border: 0; background: none; color: var(--lv-ink-2); font-size: var(--lv-fs-16); cursor: pointer; }   /* R 21:06: the × of a tip longer than one line */

/* Toast: bottom-left on a desktop; above the floating button on a phone; Undo for Discard and for removing a change */
.lv-toast { position: fixed; left: var(--lv-s-4); bottom: calc(var(--lv-s-4) + env(safe-area-inset-bottom, 0px)); z-index: 52; display: flex; align-items: center;
  gap: var(--lv-s-3); max-width: min(420px, calc(100vw - 32px)); padding: var(--lv-s-3) var(--lv-s-4); border-radius: var(--lv-r-2); background: var(--lv-ink);
  color: var(--lv-ink-inv); font-size: var(--lv-fs-14); box-shadow: var(--lv-sh-2); }
.lv-toast[hidden] { display: none; }
.lv-toast .lv-btn { color: var(--lv-ink-inv); }
@media (max-width: 1023.98px) { .lv-toast { left: 50%; transform: translateX(-50%); bottom: calc(var(--lv-s-4) + 48px + var(--lv-s-2) + env(safe-area-inset-bottom, 0px)); } }

/* Dictation: an icon button (aria-pressed) in the prompt's footer; listening: a navy dot, the words, a three-bar level (Dusk decision 4: listening is navy, red only for stop) */
.lv-mic { display: inline-flex; align-items: center; justify-content: center; gap: var(--lv-s-2); min-width: var(--lv-control-h); height: var(--lv-control-h); padding: 0 var(--lv-s-2);
  border: 1px solid var(--lv-border-strong); border-radius: var(--lv-r-1); background: var(--lv-surface); color: var(--lv-ink-2); cursor: pointer; }
.lv-mic--listening, .lv-mic[aria-pressed="true"] { border-color: var(--lv-navy); color: var(--lv-ink); }
.lv-mic__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lv-navy); }
.lv-mic__level { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.lv-mic__level > i { width: 3px; height: 40%; background: var(--lv-navy); animation: lv-mic-level 900ms ease-in-out infinite; }
.lv-mic__level > i:nth-child(2) { animation-delay: 150ms; }
.lv-mic__level > i:nth-child(3) { animation-delay: 300ms; }
@keyframes lv-mic-level { 50% { height: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .lv-overlay, .lv-drawer, .lv-sheet, .lv-slideover, .lv-group__head::after { animation: none; transition: none; }
  .lv-mic__level > i { animation: none; height: 70%; }
}

/* ANDREW 10:10 + 10:20 (10/30) item 1, R's 7.1 (C 10/29/2026): ONE working line for every question box (app.js gWorkingHtml_, window.LVWorking;
   the Revenue and Spend bars, Scenarios' Analyze) -- "Analyzing…" in the brand's positive colour, a gentle opacity pulse of about 1.2 s, CSS
   only, no layout shift, no rotating words; still under prefers-reduced-motion. Errors keep their own state and colour. */
.lv-working { display: block; margin: var(--lv-s-2) 0; color: var(--lv-good); font: 600 var(--lv-fs-14)/1.4 var(--lv-font); animation: lv-working-pulse 1.2s ease-in-out infinite; }
@keyframes lv-working-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .lv-working { animation: none; } }
/* The Statements panel (front/g_statements.js; switch statementsPanel; C 11/12/2026): months across on a desk, the selected month
   tinted, the variance column; a phone the month against its comparison; dotted line names carry their term */
.lv-st__sub { margin: 0 0 var(--lv-s-3); }
.lv-st__scroll { overflow-x: auto; }
.lv-st__t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--lv-fs-14); }
.lv-st__t th { font-weight: 500; color: var(--lv-ink-2); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--lv-border); white-space: nowrap; }
.lv-st__t td { padding: 9px 8px; border-bottom: 1px solid var(--lv-border); }
.lv-st__t .lv-st__n { text-align: right; white-space: nowrap; }
.lv-st__t .lv-st__sel { background: var(--lv-tint-blue); }
.lv-st__total td { font-weight: 600; background: var(--lv-tint-grey); }
.lv-st__total td.lv-st__sel { background: var(--lv-tint-blue); }
.lv-st__row:not(.lv-st__total) .lv-st__name { padding-left: 20px; }
.lv-st--phone .lv-st__row:not(.lv-st__total) .lv-st__name { padding-left: 8px; }
.lv-st__section td { font-weight: 600; color: var(--lv-ink-2); padding-top: var(--lv-s-3); }
.lv-st__name { position: relative; }
.lv-st__term { border: 0; background: none; padding: 0; font-family: inherit; font-size: var(--lv-fs-14); font-weight: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.lv-st__tw { position: relative; display: inline-block; }
.lv-st__tip { position: absolute; left: 100%; margin-left: 8px; top: 50%; transform: translateY(-50%); z-index: 2; padding: 4px 8px; border-radius: var(--lv-r-1); background: var(--lv-ink); color: var(--lv-ink-inv); font-size: var(--lv-fs-12); font-weight: 500; white-space: nowrap; }
.lv-st--phone .lv-st__tip { left: 0; margin-left: 0; top: 100%; transform: none; margin-top: 4px; }
.lv-st__tip[hidden] { display: none; }
.lv-st__fig { cursor: pointer; }
.lv-st__fig:hover { text-decoration: underline; }
.lv-st__fig:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: -2px; text-decoration: underline; }
.lv-st__var--up { color: var(--lv-good); }
.lv-st__var--down { color: var(--lv-worse-text); }
.lv-st__how { margin: var(--lv-s-3) 0; }
.lv-st__foot-age { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lv-s-4); border-top: 1px solid var(--lv-border); padding-top: var(--lv-s-3); }
.lv-st__age-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: var(--lv-s-2); }
.lv-st__age-go { margin-left: auto; }
.lv-st__buckets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lv-st__bk { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--lv-r-2); background: var(--lv-tint-grey); }
.lv-st__bk--late.lv-st__bk--ar b { color: var(--lv-worse-text); }
.lv-st__bk--late.lv-st__bk--ap b { color: var(--lv-due-text); }
.lv-st__tie { color: var(--lv-due-text); }
.lv-st__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--lv-s-3) 0; }
.lv-st__chip { min-height: 36px; padding: 4px 14px; font-size: var(--lv-fs-14); border: 1px solid var(--lv-border-strong); color: var(--lv-ink); text-decoration: none; }
.lv-st__footer { display: flex; gap: var(--lv-s-2); align-items: center; flex-wrap: wrap; border-top: 1px solid var(--lv-border); padding-top: var(--lv-s-3); margin-top: var(--lv-s-3); }
.lv-st__notes { margin-top: var(--lv-s-3); }
.lv-st__drill-h { margin: var(--lv-s-2) 0; font-size: var(--lv-fs-16); }
@media (max-width: 900px) { .lv-st__foot-age { grid-template-columns: 1fr; } }

/* BF-3 (Q 15:44): the chart's asterisk -- a "*" by the title, its note in the flow under the title (never over the chart's figures) */
.lv-star { display: inline-block; min-width: 24px; min-height: 24px; margin-left: 2px; padding: 0 4px; border: 0; border-radius: var(--lv-r-1); background: none; color: var(--lv-ink-3); font-family: inherit; font-weight: 600; line-height: 1; vertical-align: baseline; cursor: pointer; }   /* R-100: the ⓘ on the title's line, not raised as a footnote mark */
.lv-star:hover, .lv-star[aria-expanded="true"] { color: var(--lv-ink); }
.lv-star:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
@media (max-width: 1023.98px) { .lv-star { min-width: 44px; min-height: 44px; } }
.lv-star__note { margin: 4px 0 8px; max-width: 60ch; }
/* V1-6 THE PERIOD BAR (front/g_period.js; switch vistaV2): ‹ name › and the books chip, the month picker, the View segment, Compare with.
   The figures under it dim while a change waits for its answer (.lv-pbar-dim on the page). Controls take --lv-control-h (44 px under 1024). */
.lv-pbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-3); margin: 0 0 var(--lv-s-3); font: 400 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-pbar__nav { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-1); max-width: 100%; }
.lv-pbar__nav > .lv-chip { flex-shrink: 0; }   /* the status chips (Books to, Bank to) wrap to their own line on a phone, whole, never squeezed to a column (C 11/04/2026, the bank day's look at 390) */
.lv-pbar__step, .lv-pbar__name, .lv-pbar__m { min-height: var(--lv-control-h); border: 1px solid var(--lv-border-strong); border-radius: var(--lv-r-1); background: var(--lv-surface); color: var(--lv-ink); font: 500 var(--lv-fs-14)/1.2 var(--lv-font); cursor: pointer; }
.lv-pbar__step { min-width: var(--lv-control-h); padding: 0; font-size: var(--lv-fs-16); }
.lv-pbar__name { padding: 0 var(--lv-s-3); font-weight: 600; }
.lv-pbar__step:disabled { color: var(--lv-ink-3); cursor: default; }
.lv-pbar__view { margin-bottom: 0; }
.lv-pbar__cmp { display: inline-flex; align-items: center; gap: var(--lv-s-2); color: var(--lv-ink-2); font-size: var(--lv-fs-13); }
.lv-pbar__cmp .lv-select { max-width: 100%; color: var(--lv-ink); }
.lv-pbar__cmp > span { white-space: nowrap; }   /* "Compare with" on one line (R 21:39 UTC 11/04/2026's note) */
.lv-pbar__bank[data-behind] { background: var(--lv-tint-amber); color: var(--lv-warn); }   /* R-BD-4 (R 21:39): a bank behind looks behind -- the words carry it, the colour points the eye (4.9:1 light, 7.5:1 dark) */
.lv-pbar__pick { flex-basis: 100%; display: grid; gap: var(--lv-s-2); padding: var(--lv-s-3); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); background: var(--lv-surface); box-shadow: var(--lv-sh-2); }
.lv-pbar__pick[hidden] { display: none; }
.lv-pbar__year { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-1); }
.lv-pbar__y { min-width: 3.5em; color: var(--lv-ink-2); font-size: var(--lv-fs-13); }
.lv-pbar__m { padding: 0 var(--lv-s-2); min-width: 3.5em; font-weight: 400; }
.lv-pbar__m[aria-pressed="true"] { background: var(--lv-navy); border-color: var(--lv-navy); color: var(--lv-ink-inv); }
.lv-pbar__why { flex-basis: 100%; margin: 0; color: var(--lv-ink-2); font-size: var(--lv-fs-13); }
.lv-pbar__step:focus-visible, .lv-pbar__name:focus-visible, .lv-pbar__m:focus-visible, .lv-pbar__cmp .lv-select:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-pbar-dim .card, .lv-pbar-dim .lv-card { opacity: 0.5; transition: opacity 0.15s; }
@media (prefers-reduced-motion: reduce) { .lv-pbar-dim .card, .lv-pbar-dim .lv-card { transition: none; } }
@media (max-width: 1023.98px) { .lv-pbar__cmp { flex-basis: 100%; } .lv-pbar__cmp .lv-select { flex: 1; min-width: 0; } }

/* A loss is ordinary business movement; red stays reserved for action-required cash states. */
.lv-chart__bar.lv-chart__loss { fill: var(--lv-chart-loss); stroke: var(--lv-chart-loss); }

