/* THE WORKSPACE LAYOUT (Plan & Scenarios redesign, slice 1; docs/design/forecast-workspace-redesign-v2.md "Plan screen, desktop", "Plan
   screen, mobile", rule 8; B). Shared by Plan, Scenarios and Forecast inputs: a 1360 px container, the builder and the 380 px results rail
   side by side from 1024 px, the rail sticky under the header; under 1024 px the rail is not drawn and the KPI strip takes its place.
   Heights in dvh, never vh (the house rule, tools/menu-ui.js). Colours, sizes and radii only from the --lv-* tokens (g_brand.css). */
.lv-ws { max-width: var(--lv-content-max); margin: 0 auto; padding: var(--lv-s-6) var(--lv-s-8); box-sizing: border-box; }
.lv-ws *, .lv-ws *::before, .lv-ws *::after { box-sizing: border-box; }
.lv-ws__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-2) var(--lv-s-3); margin-bottom: var(--lv-s-2); }
.lv-ws__head h1 { font-size: var(--lv-fs-22); font-weight: 600; margin: 0 var(--lv-s-2) 0 0; }
[data-testid="plan-ws"] .lv-ws__head > .lv-ws__titlebar { flex: 1 1 100%; min-width: 0; }   /* R-P1-2: the actions at the head's right edge */
.lv-ws__basis { font-size: var(--lv-fs-13); color: var(--lv-ink-2); margin: 0 0 var(--lv-s-4); }
.lv-ws__basis small { font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-ws__cols { display: flex; flex-wrap: wrap; gap: var(--lv-s-6); align-items: flex-start; }
.lv-ws__main { flex: 999 1 560px; min-width: 0; }
.lv-ws .lv-rail { flex: 0 0 var(--lv-rail-w); width: var(--lv-rail-w); position: sticky; top: calc(var(--lv-header-h) + var(--lv-s-4));
  max-height: calc(100dvh - var(--lv-header-h) - var(--lv-s-8)); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.lv-ws .lv-strip { display: none; }
@media (max-width: 1023.98px) {
  .lv-ws { padding: var(--lv-s-4); }
  .lv-ws .lv-rail { display: none; }
  .lv-ws .lv-strip { display: block; margin-bottom: var(--lv-s-4); }
  .lv-ws__main { flex-basis: 100%; }
}
/* R-S1-2 (R 17:53 UTC 10/27/2026): from 1024 to 1279 the side padding is 24, so the builder's 560 and the rail's 380 stay side by side
   (1024 - 48 - 24 - 380 = 572); at 32 the row needed 1028 and the rail wrapped under the builder */
@media (min-width: 1024px) and (max-width: 1279.98px) { .lv-ws { padding-left: var(--lv-s-6); padding-right: var(--lv-s-6); } }
/* ...and from 1024 the two columns are a grid, so they never wrap whatever the page around them takes: the rail keeps its 380, the builder
   takes the rest (about 540 at 1024 inside the app's own padding; the spec's 560-620 from 1100 up) */
@media (min-width: 1024px) { .lv-ws__cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--lv-rail-w); align-items: start; } .lv-ws__main { min-width: 0; } }

/* the floating Results button under 1024 px (slice 2): centred, 20 px above the safe area, over a fade so what is under it stays readable */
.lv-ws .lv-fab-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none;
  padding: 48px var(--lv-s-4) calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, color-mix(in srgb, var(--lv-bg) 0%, transparent), var(--lv-bg) 60%); }   /* the page colour at 0%: the token, never a hex (Dusk; the dark page fades too) */
.lv-ws .lv-fab-wrap[hidden] { display: none; }
/* the wrap carries the place and the fade; g_ui.css's .lv-fab is fixed on its own, so inside the workspace it sits in the wrap */
.lv-ws .lv-fab { pointer-events: auto; position: static; transform: none; }
@media (min-width: 1024px) { .lv-ws .lv-fab-wrap { display: none; } }
/* the page's foot clears the button (R 21:07 note 3): its 48 px fade, the 48 px button and the 20 px under it, so the last row scrolls above it */
@media (max-width: 1023.98px) { .lv-ws { padding-bottom: calc(116px + env(safe-area-inset-bottom)); } }
/* on a phone the app's own tab bar is fixed at the foot (styles.css .links.nav3 under 600 px; #app pads 64 px for it): the button sits on it,
   20 px above, never under it (found on the real page at 390, 10/27/2026) */
@media (max-width: 600px) { #app:has(.nav3) .lv-ws .lv-fab-wrap { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 20px; } }
/* FIDELITY 1.15 / 1.16 / 0.3 (Andrew 07:57Z 10/28/2026; R's table 08:13; Main.dc.html): the rail's chart title in sentence case with its subtitle on one
   baseline (the app's h3 is an uppercase eyebrow, styles.css:32), and "Monthly detail →" a link in the mockup's 13/500 teal, navy on hover */
/* the engine's "no shortfall" judgement in the mockup's up tint (chip-up); words with a date, so it WRAPS in a phone's ~90 px tile -- the amount chips
   (.lv-chip--delta-up, g_ui.css) stay on one line (C 17:15) */
.lv-chip--ok { background: var(--lv-tint-teal); color: var(--lv-good); white-space: normal; }
.lv-rail__chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--lv-s-2); margin: 0 0 var(--lv-s-2); }
.lv-rail__chart-head h3 { margin: 0; font-size: var(--lv-fs-13); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--lv-ink); }
.lv-rail__chart-sub { font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-rail__links { display: flex; flex-wrap: wrap; gap: var(--lv-s-3); }
.lv-rail__link { border: 0; background: none; padding: 0; min-height: 32px; font: 500 var(--lv-fs-13)/1.2 var(--lv-font); color: var(--lv-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }   /* Dusk: links navy and underlined */
.lv-rail__link:hover { color: var(--lv-link-hover); }
.lv-rail__link:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
/* FIDELITY 0.8 / 0.9 / 1.10 (Andrew 07:57Z 10/28/2026; R's table 08:13; Main.dc.html, PlanMobile.dc.html): the group head -- chevron left, the title over
   its summary (long on a wide screen, short on a phone) -- and the Repeating outflows rows on one grid: the payment and its evidence, Next, Amount,
   the switch, the pencil; on a phone the Next column, the column heads and the pencil go and the next date joins the evidence line */
.lv-group__head::after { content: none; }   /* every head draws its own chevron, on the left (g_inputs.js is the only one drawing heads) */
.lv-group__chev { flex: 0 0 auto; width: 16px; height: 16px; color: var(--lv-ink-3); transition: transform .15s; }
.lv-group__head[aria-expanded="false"] .lv-group__chev { transform: rotate(-90deg); }
.lv-group__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; text-align: left; }
.lv-group__summary--narrow, .lv-row__meta--narrow { display: none; }
.lv-row--rec { display: grid; grid-template-columns: minmax(0, 1fr) 104px 104px 44px 36px; align-items: center; gap: var(--lv-s-3); }
.lv-row--rec .lv-row__date, .lv-row--rec .lv-row__amount { text-align: right; }
.lv-row__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--lv-s-2) 0; }
.lv-row__line { display: flex; align-items: center; gap: var(--lv-s-2); min-width: 0; }
.lv-row__line .lv-row__name { flex: 0 1 auto; }   /* the unsaved dot beside the name, never pushed to the column's edge */
.lv-row--cols { min-height: 32px; border-bottom: 1px solid var(--lv-border); font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
.lv-row--cols .lv-num { text-align: right; }
.lv-row__edit { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--lv-r-1); background: none; color: var(--lv-ink-3); cursor: pointer; }
.lv-row__edit:hover { color: var(--lv-ink); background: var(--lv-surface-2); }
.lv-row__edit svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .lv-group__summary--wide, .lv-row__meta--wide, .lv-row--cols, .lv-row--rec .lv-row__date, .lv-row__edit { display: none; }
  .lv-group__summary--narrow, .lv-row__meta--narrow { display: block; }
  .lv-row--rec { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .lv-row--rec > span:last-child:empty { display: none; }
  /* R 21:53 UTC 10/31/2026 (LOW): Plan's strip on a phone is two tiles and the third under them, full width -- three side by side wrapped
     "Caixa no fim 09/2027" and its chip onto three lines */
  .lv-ws [data-region="strip"] .lv-kpis--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-ws [data-region="strip"] .lv-kpis--strip > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* FIDELITY P2b: the group's total on the head's right, as Main.dc.html (.ghead .num) */
.lv-group__total { flex: 0 0 auto; margin-left: auto; font: 600 var(--lv-fs-14)/1.2 var(--lv-font); color: var(--lv-ink); white-space: nowrap; }
/* FIDELITY 1.12: the head's bar -- the toggle, then Add on the right; the long summary may wrap (the phone's count never does, R-2A-7) */
.lv-group__bar { display: flex; align-items: center; gap: var(--lv-s-3); padding-right: var(--lv-s-5); }
.lv-group__bar > .lv-group__head { flex: 1 1 auto; min-width: 0; }
.lv-group__bar > .lv-btn { flex: 0 0 auto; }
.lv-group__summary--wide { white-space: normal; }
@media (max-width: 600px) { .lv-group__bar { padding-right: var(--lv-s-3); } }
/* FIDELITY 1.7 (Main.dc.html): the inputs' tray is the amber Forecast inputs bar above the groups -- the title, the sentence, and with unsaved edits
   "1 unsaved", Save inputs and Discard on the right (they wrap under the sentence on a phone); the edits listed under it */
.lv-tray--inputs { background: var(--lv-tint-amber); border-color: color-mix(in srgb, var(--lv-warn) 22%, var(--lv-tint-amber)); padding: 10px 14px; gap: var(--lv-s-2); margin-bottom: var(--lv-s-4); color: var(--lv-warn); font-size: var(--lv-fs-13); }
.lv-tray__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lv-s-1) 10px; }
.lv-tray--inputs .lv-tray__title { font-size: var(--lv-fs-13); color: var(--lv-warn); }
.lv-tray__lead { margin: 0; flex: 1 1 260px; min-width: 0; }
.lv-tray--inputs .lv-tray__actions { margin-left: auto; align-items: center; gap: 6px; }
.lv-chip--warn { background: var(--lv-tint-amber); color: var(--lv-warn); border: 1px solid color-mix(in srgb, var(--lv-warn) 22%, var(--lv-tint-amber)); }
.lv-tray--inputs .lv-tray__list { background: var(--lv-surface); border-radius: var(--lv-r-1); padding: 0 var(--lv-s-3); }
.lv-tray--inputs .lv-tray__why, .lv-tray--inputs .lv-tray__state { color: var(--lv-warn); }
/* FIDELITY 1.11 (Main.dc.html .row-edit): Amount, How often, Next payment and the Forecast switch on one row from about 640 px (auto-fit at 150 px),
   one under the other on a phone; the hint on the actions line, right of Cancel */
.lv-row-edit .lv-field-row { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.lv-row-edit__on { display: flex; align-items: center; height: 36px; }
.lv-row-edit__actions .lv-row-edit__hint { margin-left: auto; }
/* FIDELITY P4 (rows 1.1, 1.6, 1.20; R-LV-1): the status chip's (i) and its sentence under the title bar; the page's own blocks under the groups.
   (Row 4.3 was withdrawn by R 13:36: the strip stays at the top of a phone, spec :295, and the Results button waits until it scrolls away.) */
.lv-ws__whybtn { border: 0; background: none; padding: 0; min-width: 32px; min-height: 32px; color: var(--lv-ink-3); cursor: pointer; font-size: var(--lv-fs-14); }
.lv-ws__whybtn:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-ws__whypop { flex: 1 0 100%; margin: 0; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-ws__whypop[hidden] { display: none; }
.lv-ws__foot { margin-top: var(--lv-s-6); }
.lv-ws--rf .lv-ws__main > .lv-ws__foot:not(:has(> :not([hidden]):not(:empty))) { display: none; }   /* R-RF-1 (R 00:5x): an empty foot (Start a plan moved to its tile, no plan open) takes no gap */
/* FIDELITY 1.13 (Main.dc.html:264-269): the rail's head -- "Results" and the chart order on one line, the range under it */
.lv-rail__head { display: flex; align-items: center; gap: var(--lv-s-2); }
.lv-rail__title { margin: 0; flex: 1 1 auto; font: 600 var(--lv-fs-16)/1.2 var(--lv-font); text-transform: none; letter-spacing: 0; color: var(--lv-ink); }
.lv-rail__order { margin-bottom: 0; }
.lv-rail__range { margin: -6px 0 0; font-size: var(--lv-fs-12); color: var(--lv-ink-3); }
/* FIDELITY 1.4 / 4.2 (Main.dc.html .sec, PlanMobile.dc.html): the section chips, sticky under the app's header; on a phone one row that scrolls on its own */
.lv-ws__chips { position: sticky; top: var(--lv-header-h); z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; padding: var(--lv-s-2) 0; margin-bottom: var(--lv-s-3); background: var(--lv-bg); }
.lv-ws__chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--lv-r-pill); background: var(--lv-tint-grey); border: 1px solid transparent; color: var(--lv-ink-2); font: 500 var(--lv-fs-13)/1 var(--lv-font); white-space: nowrap; cursor: pointer; }
/* R-SC-1 (R 17:23 UTC 10/31/2026): page sections are a tinted fill with no visible border, never the sub-pages' white oval with an edge -- the two levels
   never look alike; the hover is a deeper tint (the 1 px transparent border keeps the box from moving) */
.lv-ws__chip:hover { background: var(--lv-tint-blue); color: var(--lv-ink); }
.lv-ws__chip:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-ws__chip-narrow { display: none; }
[data-testid="plan-ws"] .lv-group, #plan-list { scroll-margin-top: calc(var(--lv-header-h) + 56px); }
@media (max-width: 600px) {
  .lv-ws__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-left: 2px; padding-right: 2px; }   /* R-SC-3: the first and last chip keep their focus ring */
  .lv-ws__chip-wide { display: none; }
  .lv-ws__chip-narrow { display: inline; }
}   /* R-P4-1 (R 17:57): this block's brace was lost in b/plan-fid-p4's merge, which left R-P2-3's rules below inside it */
/* R-P2-3 (R 13:17 UTC 10/28/2026, MED): under 600 px a group head carries no Add (PlanMobile.png) -- the title keeps the head's width, the narrow
   summary wraps, and the open group ends with its Add as a full-width row; R-P2-4: a group brought into view lands under the app's sticky header */
.lv-group__addrow { display: none; }
/* (on this branch the sticky chips set the groups' scroll-margin: the header + 56 px, P5b above, which covers R-P2-4) */
@media (max-width: 600px) {
  .lv-group__bar > .lv-btn[data-act="add-item"] { display: none; }
  .lv-group__addrow { display: flex; justify-content: center; width: 100%; margin-top: var(--lv-s-2); }
  .lv-group__summary--narrow { white-space: normal; }
}
/* FIDELITY 1.5 (Main.dc.html:129-141): the start card -- the blue-bordered card, its title and sentence, three equal ways in that wrap at 200 px, the dismiss x */
.lv-start { display: flex; flex-direction: column; gap: var(--lv-s-3); margin-bottom: var(--lv-s-4); padding: var(--lv-s-4); background: var(--lv-surface); border: 1px solid color-mix(in srgb, var(--lv-info) 22%, var(--lv-border)); border-radius: var(--lv-r-2); }
.lv-start__head { display: flex; align-items: flex-start; gap: var(--lv-s-3); }
.lv-start__head > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--lv-s-1); }
.lv-start__h { margin: 0; font: 600 var(--lv-fs-16)/1.3 var(--lv-font); text-transform: none; letter-spacing: 0; color: var(--lv-ink); }
.lv-start__x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: var(--lv-r-1); background: none; color: var(--lv-ink-3); font-size: var(--lv-fs-18); cursor: pointer; }
.lv-start__x:hover { background: var(--lv-surface-2); color: var(--lv-ink); }
.lv-start__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.lv-start__way { height: auto; min-height: 56px; padding: 12px 14px; justify-content: flex-start; text-align: left; gap: 10px; white-space: normal; text-decoration: none; }
.lv-start__way svg { flex: 0 0 auto; color: var(--lv-navy); }
.lv-start__title { display: block; font-weight: 600; }
.lv-start__line { display: block; font-size: var(--lv-fs-12); font-weight: 400; color: var(--lv-ink-2); }
/* FIDELITY 1.9 / 1.19 (Main.dc.html #people, #quality): the People head's chip beside its total; the Data quality lines -- the icon, the words, the link on the right */
.lv-group__head > .lv-chip { flex: 0 0 auto; }
.lv-chip--count { background: var(--lv-tint-grey); color: var(--lv-ink-2); font-variant-numeric: tabular-nums; }
[data-group="quality"] .lv-attn { display: flex; align-items: flex-start; gap: var(--lv-s-2); padding: var(--lv-s-2) 0; border-top: 1px solid var(--lv-border); font-size: var(--lv-fs-13); }
[data-group="quality"] .lv-attn:first-child { border-top: 0; }
[data-group="quality"] .lv-attn__icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
[data-group="quality"] .lv-attn--info .lv-attn__icon { color: var(--lv-info); }
[data-group="quality"] .lv-attn__text { flex: 1 1 auto; min-width: 0; }
[data-group="quality"] .lv-attn__act { flex: 0 0 auto; font-weight: 500; white-space: nowrap; color: var(--lv-good); }
@media (max-width: 600px) { [data-group="quality"] .lv-attn { flex-wrap: wrap; } [data-group="quality"] .lv-attn__act { flex-basis: 100%; padding-left: 26px; } }
/* FIDELITY 1.9 at 390 (PlanMobile.dc.html; R-P2-3's rule: a head's title keeps its width): the People chip under the summary on a phone, on the head's row at width */
.lv-group__chip--narrow { display: none; }
@media (max-width: 600px) {
  .lv-group__chip--wide { display: none; }
  .lv-group__chip--narrow { display: inline-flex; align-self: flex-start; margin-top: 2px; }
}
/* FIDELITY 1.17 (Main.dc.html:331-338): the prompt under the rail's charts, set off by a rule; under 1024 px it sits in the main column under the start card */
.lv-rail__prompt { border-top: 1px solid var(--lv-border); padding-top: 14px; }
.lv-rail__prompt:empty { display: none; }
.lv-ws__prompt-narrow { margin-bottom: var(--lv-s-4); }
.lv-ws__prompt-narrow:empty { display: none; }
@media (min-width: 1024px) { .lv-ws__prompt-narrow { display: none; } }
/* A 17:52 UTC 10/30/2026 (plan-prompt-ui red with planResultsFirst ON): results first has no rail, so its prompt stays in the main column at every width */
@media (min-width: 1024px) { .lv-ws--rf .lv-ws__prompt-narrow:not(:empty) { display: block; } }
/* R-RF-1 (R 19:34 UTC 10/30/2026): in results first the main column's gap alone spaces its blocks -- no slot margin, no foot margin, and the
   as-of box's holder takes no gap while it has nothing to say -- so the prompt sits as far from the card above as from "In short" below */
.lv-ws--rf .lv-ws__main > .lv-ws__prompt-narrow, .lv-ws--rf .lv-ws__main > .lv-ws__foot { margin-top: 0; margin-bottom: 0; }
.lv-ws--rf .lv-ws__prompt-narrow .lv-prompt { margin-bottom: 0; }   /* R-RF-1b (R 21:25): the block's own margin left 16 px of empty slot under its last text */
.lv-ws--rf .lv-ws__main > [data-region="start"]:empty, .lv-ws--rf .lv-ws__main > .lv-ws__top:empty, .lv-ws--rf .lv-ws__main > .lv-ws__top:has(> #plan-asof-box:empty) { display: none; }   /* and the start card's empty region: the main column starts level with the side */
/* FIDELITY 0.4/0.5 (Main.dc.html:272-274, PlanMobile.dc.html:133): the tile's ▲/▼ under its value, the chip's own width; in the navy Results button a light pill */
.lv-kpi__delta { align-self: flex-start; }
.lv-fab .lv-kpi__delta { margin-left: var(--lv-s-2); background: color-mix(in srgb, var(--lv-ink-inv) 18%, transparent); color: var(--lv-ink-inv); }
/* FIDELITY 1.8a: the revenue cards inside the Revenue group, spaced as the group's rows */
.lv-group__cards { display: flex; flex-direction: column; gap: var(--lv-s-3); }
.lv-group__cards:empty { display: none; }
/* PRINT (spec "Print and export" :811-813; slice 5): a dedicated layout -- the title and its status, the basis, the unsaved changes, the results
   (tiles and charts), then the inputs with every group open and the assumptions last; no edit control, floating button, prompt or empty form.
   A printed page is under 1024 px: the rail is shown (not sticky, its full height) and the phone strip hidden. */
@media print {
  .lv-ws { padding: 0; }
  .lv-ws__cols { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--lv-s-4); }   /* one line: a wrapping column takes its widest item's one-line width */
  .lv-ws__main { display: contents; }
  .lv-ws__cols > *, .lv-ws__main > * { min-width: 0; }
  .lv-ws [data-region="head"] { order: 1; }
  .lv-ws .lv-ws__top { order: 2; }
  .lv-ws [data-region="tray"] { order: 3; }
  .lv-ws .lv-rail { order: 4; display: flex; flex-direction: row; flex-wrap: wrap; column-gap: var(--lv-s-4); flex: none; width: auto; position: static; max-height: none; overflow: visible; break-inside: avoid; }
  /* R-PR-2 (R 06:21 UTC 10/29/2026): the two charts side by side at about the rail's width, crisp, not half a page each */
  .lv-ws .lv-rail > * { flex: 0 0 100%; min-width: 0; }
  .lv-ws .lv-rail > .lv-rail__chart { flex: 1 1 0; }
  .lv-ws [data-region="groups"] { order: 5; }
  .lv-ws .lv-ws__foot { order: 6; }
  .lv-ws .lv-group__body[hidden] { display: block; }
  .lv-ws .lv-strip, .lv-ws .lv-fab-wrap, .lv-ws .lv-ws__chips, .lv-ws [data-region="start"], .lv-ws .lv-ws__prompt-narrow, .lv-ws .lv-rail__prompt, .lv-ws .lv-rail__order,
  .lv-ws .lv-rail__links, .lv-ws .lv-infotip, .lv-ws .lv-ws__actions, .lv-ws .lv-tray__actions, .lv-ws [data-act="add-item"], .lv-ws .lv-group__addrow, .lv-ws .lv-row__edit,
  .lv-ws [data-act="status-why"], .lv-ws .lv-group__chev, .lv-ws #plan-new, .lv-ws [data-testid="rev-form"], .lv-ws [data-testid="rev-card-form"],
  .lv-ws .lv-row-edit__actions, .lv-ws .lv-row-edit__hint, .lv-ws p:has(> #cw-add), .lv-ws #cw-new, .lv-ws #cw-add { display: none; }   /* the weekly editor's add row, Apply and its hint */
  /* R-PR-1: with no weekly row the editor does not print (the group's "None" says it); with rows its table fits the page */
  .lv-ws [data-weekly-grid]:not(:has(tr[data-cw])) { display: none; }
  .lv-ws [data-weekly-grid] .scroll-x { overflow: visible; }
  .lv-ws [data-weekly-grid] table { width: 100%; table-layout: fixed; font-size: var(--lv-fs-12); }
  .lv-ws [data-weekly-grid] input, .lv-ws [data-weekly-grid] select { width: 100%; min-width: 0; border: 0; padding: 0; font: inherit; background: none; }
  /* R-PR-3: on a page holding the Plan workspace, the app's header and the section links do not print either */
  body:has(.lv-ws) header.top, body:has(.lv-ws) .subrow { display: none; }
  /* a chart month left focused prints neither its tooltip nor its ring */
  .lv-ws [data-lv-tip] { display: none; }
  .lv-ws .lv-chart__hit { outline: none; }
}
/* FIDELITY 0.10: Discard's question in the bar's own place */
.lv-tray__ask { font-weight: 600; }
@media print { .lv-ws .lv-toast { display: none; } }
/* R-P18-4: the question, then Discard and Keep together (on a phone the question takes its own line) */
.lv-tray__actions[role="group"] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lv-tray__btns { display: inline-flex; gap: 6px; }
@media (max-width: 600px) { .lv-tray__actions[role="group"] .lv-tray__ask { flex: 0 0 100%; } }
/* R-P18-1 (spec :234): under 1024 px the toast sits above the Results button -- its 20 px, its 48 px and a gap; with the bottom nav, 64 px more */
@media (max-width: 1023.98px) { .lv-ws .lv-toast { bottom: calc(20px + 48px + var(--lv-s-2) + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 600px) { #app:has(.nav3) .lv-ws .lv-toast { bottom: calc(64px + 20px + 48px + var(--lv-s-2) + env(safe-area-inset-bottom, 0px)); } }
.lv-tray__title:focus { outline: none; }
.lv-tray__title:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
/* R-P23-1: the sources view as a closed group (a native details) -- the groups' head, the chevron turned while closed */
.lv-ws__sources-group { margin-bottom: var(--lv-s-4); }
.lv-ws__sources-group > summary { list-style: none; cursor: pointer; }
.lv-ws__sources-group > summary::-webkit-details-marker { display: none; }
.lv-ws__sources-group:not([open]) > summary .lv-group__chev { transform: rotate(-90deg); }

/* THE RESULTS BAND (front/g_plan_band.js; slice 4b "Plan results first", desktop; the board PlanV2.dc.html "Results" card, .rtile .l .v .d,
   .seg, .legend; B's helper 10/29/2026). Desktop first: the card across the page, four tiles in a row; under 900 px the tiles wrap to two
   columns and nothing scrolls sideways (every child min-width: 0, the chart scales to the card). Colours are g_brand.css tokens only, so the
   dark theme follows; no style attribute is ever written by the module (style-src-attr 'none'); no viewport-height unit but dvh. */
.lv-band { display: flex; flex-direction: column; gap: var(--lv-s-3); min-width: 0; max-width: 100%; box-sizing: border-box; }
.lv-band__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--lv-s-2) 10px; min-width: 0; }
.lv-band__title { margin: 0; font: 600 var(--lv-fs-16)/1.3 var(--lv-font); color: var(--lv-ink); }
.lv-band__sub { font-size: var(--lv-fs-13); color: var(--lv-ink-2); min-width: 0; overflow-wrap: anywhere; }
.lv-band__order { margin: 0 0 0 auto; align-self: center; }   /* the board's seg-sm: the shared .lv-seg without its margin under it */
.lv-band__order .lv-seg__item { min-height: 28px; padding: 0 10px; font-size: var(--lv-fs-12); }
.lv-band__detail { border: 0; background: none; padding: 0; min-height: 32px; font: 500 var(--lv-fs-13)/1.2 var(--lv-font); color: var(--lv-good); text-decoration: underline; cursor: pointer; align-self: center; }
.lv-band__detail:hover { color: var(--lv-navy); }
.lv-band__detail:focus-visible { outline: 2px solid var(--lv-navy); outline-offset: 2px; }
.lv-band__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lv-s-3); }
.lv-band__tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--lv-s-3) 14px; background: var(--lv-surface-2); border: 1px solid var(--lv-tint-grey); border-radius: var(--lv-r-2); }
.lv-band__l { font-size: var(--lv-fs-12); color: var(--lv-ink-2); padding-right: 18px; overflow-wrap: anywhere; }   /* room for the corner (i) */
/* R-P1c-1/-2 (R, 390): below 1024 px the shared (i) is a 44 px touch box (g_ui.css) -- a tile label keeps its width clear; the draft chip's sits
   inline after the chip, its glyph at the box's start */
@media (max-width: 1023.98px) { .lv-band__tile:has(.lv-infotip) .lv-band__l { padding-right: 40px; } .lv-ws__basis-tip { margin-left: calc(-1 * var(--lv-s-2)); } .lv-ws__basis-tip .lv-infotip--inline { justify-content: flex-start; padding-left: 4px; } }
.lv-band__v { font: 600 var(--lv-fs-22)/1.2 var(--lv-font); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lv-ink); }   /* an amount never breaks after its sign */
.lv-band__v--neg { color: var(--lv-worse-text); }   /* Dusk (D 11/05/2026): a negative result is worse; cash below zero (the two cash tiles) stays stop */
.lv-band__tile[data-kpi="cashEnd"] .lv-band__v--neg, .lv-band__tile[data-kpi="lowest"] .lv-band__v--neg { color: var(--lv-c-stop); }
.lv-band__v--unknown { white-space: normal; font-size: var(--lv-fs-16); color: var(--lv-ink-2); }   /* "Not yet known" wraps */
.lv-band__d { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--lv-fs-12); color: var(--lv-ink-2); font-variant-numeric: tabular-nums; }
.lv-band__note { min-width: 0; overflow-wrap: anywhere; }
.lv-band__notes { margin: var(--lv-s-2) 0 0; padding-left: 18px; font-size: var(--lv-fs-13); color: var(--lv-ink-2); overflow-wrap: anywhere; }   /* Q 02:56 PB-3/PB-4: the layers' notes under the chart */
.lv-band__delta { flex: none; }   /* the ▲ amount stays whole (g_ui.css keeps the chip on one line) */
.lv-band__chart { margin: 0; position: relative; min-width: 0; }
.lv-band__legend-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: var(--lv-s-2); font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-band__chart-title { font-weight: 600; color: var(--lv-ink); }
.lv-band__legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
/* the swatches are short lines, solid and dashed: the two lines are told apart by dash as well as colour (spec "Drawing rules" 8) */
.lv-band__swatch { display: inline-block; width: 16px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--lv-chart-indigo); }
.lv-band__swatch--plan { border-top-color: var(--lv-chart-indigo); }
.lv-band__swatch--forecast { border-top: 2px dashed var(--lv-c-baseline); }
.lv-band__shaded { margin-left: auto; }
.lv-band__svg { display: block; width: 100%; height: auto; overflow: visible; }
.lv-band__below { fill: var(--lv-tint-red); opacity: .5; }
.lv-band__line { fill: none; stroke-linejoin: round; }
.lv-band__line--forecast { stroke: var(--lv-c-baseline); stroke-width: 1.6; }
.lv-band__line--plan { stroke: var(--lv-chart-indigo); stroke-width: 2.2; }
.lv-band__dot--forecast { fill: var(--lv-c-baseline); }
.lv-band__dot--plan { fill: var(--lv-chart-indigo); }
.lv-band__end { font-weight: 600; }
.lv-band__end--forecast { fill: var(--lv-ink-2); }
.lv-band__start { font-weight: 600; fill: var(--lv-ink-2); }   /* R's P3 ruling (R3): the lines' shared start, neutral ink */
.lv-band__end--plan { fill: var(--lv-navy); }
@media (max-width: 899.98px) {
  .lv-band__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-band__order { margin-left: 0; }
}
/* SLICE 4b, B1 (ANDREW 20:45 UTC 10/29/2026, decision 6; switch planResultsFirst): results first -- the band across the page under the head, then
   the main column ("Scenarios in this plan", the prompt, the page's own blocks) and the side column (Forecast inputs, Saved plans), the rail's width */
.lv-ws--rf > .lv-ws__band { margin: 0 0 var(--lv-s-6); min-width: 0; }
.lv-ws--rf .lv-ws__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--lv-s-4); }
.lv-ws--rf .lv-ws__inputs { display: flex; flex-direction: column; gap: var(--lv-s-2); min-width: 0; }
/* PLAN P1-9 (Plan.pdf p.1): the inputs card at the foot, full width; its groups as tiles, four to a row, one opened spanning the row */
.lv-ws--rf > .lv-ws__main { margin-bottom: var(--lv-s-6); }   /* R-RF-1' (R 00:5x): the band's one gap (24 px) between every block of the page, Forecast inputs too */
/* R-S2b-2 (R, MED): Start a plan in the Saved plans slide-over -- no inner frame, no Start button, Components fields (labels above, full width) */
.lv-ws-over[data-over="plans"] #plan-new > .card { border: 0; padding: 0; margin: 0; box-shadow: none; background: none; }
.lv-ws-over[data-over="plans"] #pn-start { display: none; }
.lv-ws-over[data-over="plans"] [data-testid="plan-kpi-form"] > summary { list-style: none; pointer-events: none; cursor: default; font: 600 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); margin-bottom: var(--lv-s-2); }   /* R-S2b-4: open, no fold */
.lv-ws-over[data-over="plans"] [data-testid="plan-kpi-form"] > summary::-webkit-details-marker { display: none; }
.lv-ws-over[data-over="plans"] #pn-body > p > label { display: flex; flex-direction: column; gap: var(--lv-s-1); font: 500 var(--lv-fs-13)/1.3 var(--lv-font); color: var(--lv-ink-2); }
.lv-ws-over[data-over="plans"] #pn-body > p > label > input, .lv-ws-over[data-over="plans"] #pn-body > p > label > select { 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; box-sizing: border-box; }
.lv-ws--rf .lv-ws__inputs--rf { margin-bottom: var(--lv-s-4); flex: none; }
.lv-ws__inputs--rf .lv-group--tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--lv-s-2); }
/* NX-1 (R's rev 59 gaps, step 1): a tile's group inside its slide-over -- the sheet's title is the group's, so its own head and box go */
.lv-ws-over > .lv-group { border: 0; border-radius: 0; background: none; }
.lv-ws-over .lv-group__head { display: none; }
/* R-NX1-5 (R 22:4x): in a slide-over the group's Add is at its foot only, at every width */
.lv-ws-over .lv-group__bar > [data-act="add-item"] { display: none; }
.lv-ws-over .lv-group__addrow { display: flex; justify-content: center; width: 100%; margin-top: var(--lv-s-2); }   /* the toggle head, a bar's too (People, Revenue) */
.lv-ws-over > .lv-group > .lv-group__body { padding: 0; }
/* P6(b): the sources card's settings under Data quality, in its slide-over */
.lv-ws-over__sources { margin-top: var(--lv-s-5); padding-top: var(--lv-s-4); border-top: 1px solid var(--lv-border); }
.lv-ws-over__sum { margin: 0 0 var(--lv-s-3); }
.lv-ws-over .lv-empty { max-width: none; margin: 0 0 var(--lv-s-3); text-align: left; align-items: flex-start; }   /* R-S2a-1: an empty line reads as the heading does, left */
.lv-ws-over [data-scenario-ask], .lv-ws-over [data-scenario-ask-out] { display: none; }   /* P6(a): the question box goes; Analyze is its function */
.lv-plan-scen__acts { display: inline-flex; gap: var(--lv-s-2); margin-left: auto; }
.lv-ws-over__h { margin: 0 0 var(--lv-s-1); font: 600 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); text-transform: none; letter-spacing: 0; }
.lv-ws__inputs--rf .lv-tile__t { margin: 0; font-size: var(--lv-fs-16); font-weight: 600; color: var(--lv-ink); } .lv-ws__inputs--rf .lv-tile__l { margin: 0; font-size: var(--lv-fs-13); color: var(--lv-ink-2); }
.lv-ws__window { font-size: var(--lv-fs-14); color: var(--lv-ink-2); font-variant-numeric: tabular-nums; }   /* P1-1: the Plan window in the head */
/* P1-9: the board's card header -- "Forecast inputs" as a card title, the live-forecast line kept beside it, muted (Q's term), never an amber box */
.lv-ws__inputs--rf .lv-tray--inputs { background: transparent; border: 0; padding: 0; margin-bottom: 0; color: var(--lv-ink-2); }
.lv-ws__inputs--rf .lv-tray--inputs .lv-tray__title { font-size: var(--lv-fs-16, 16px); color: var(--lv-ink); }
.lv-ws__inputs--rf .lv-tray--inputs .lv-tray__lead { color: var(--lv-ink-2); font-size: var(--lv-fs-13); }
.lv-ws__inputs--rf .lv-tray--inputs .lv-tray__why, .lv-ws__inputs--rf .lv-tray--inputs .lv-tray__state { color: var(--lv-ink-2); } .lv-ws--rf .lv-ws__inputs--rf .lv-ws__chips { position: static; margin-bottom: 0; background: transparent; }
.lv-ws--rf .lv-ws__tiles > [data-region="groups"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lv-s-3); align-items: start; }
.lv-ws--rf .lv-ws__tiles .lv-group { border: 1px solid var(--lv-border); border-radius: var(--lv-r-md, 10px); padding: var(--lv-s-3); min-width: 0; margin: 0; }
.lv-ws--rf .lv-ws__tiles .lv-group:has(> .lv-group__head[aria-expanded="true"]), .lv-ws--rf .lv-ws__tiles .lv-group:has(> .lv-group__bar > .lv-group__head[aria-expanded="true"]) { grid-column: 1 / -1; }
@media (max-width: 1023.98px) { .lv-ws--rf .lv-ws__tiles > [data-region="groups"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lv-ws--rf .lv-ws__tiles > [data-region="groups"] { grid-template-columns: minmax(0, 1fr); } }
.lv-ws--rf .lv-ws__main { display: flex; flex-direction: column; gap: var(--lv-s-4); }
/* "Scenarios in this plan" (the board's .scn rows: the switch, the name with who and when, two effects) */
.lv-plan-scen { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-plan-scen__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--lv-s-2) 10px; }
.lv-plan-scen__head h2 { margin: 0; font: 600 var(--lv-fs-16)/1.3 var(--lv-font); }
.lv-plan-scen__sub { font-size: var(--lv-fs-13); color: var(--lv-ink-2); }
.lv-plan-scen__new { margin-left: auto; }
.lv-plan-scen__cols, .lv-plan-scen__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 150px) minmax(0, 150px); gap: var(--lv-s-3); align-items: center; }
.lv-plan-scen__cols { padding: 4px 0 6px; font-size: var(--lv-fs-12); color: var(--lv-ink-2); border-bottom: 1px solid var(--lv-tint-grey); }
.lv-plan-scen__cols > span:nth-child(n+3), .lv-plan-scen__v { text-align: right; }
.lv-plan-scen__list { list-style: none; margin: 0; padding: 0; }
.lv-plan-scen__row { padding: 10px 0; border-bottom: 1px solid var(--lv-tint-grey); }
/* Remove from this plan (PlanV2's row "⋯"): one more column for the menu; the menu under its button */
.lv-plan-scen__row.lv-plan-scen__row--more { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 150px) minmax(0, 150px) 40px; }
.lv-plan-scen__more { position: relative; justify-self: end; }
.lv-plan-scen, .lv-plan-scen__list { overflow: visible; }   /* R-RM-1: the card never clips a row's menu */
.lv-plan-scen__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 200px; padding: var(--lv-s-1); background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--lv-r-2); box-shadow: var(--lv-sh-2); }
.lv-plan-scen__menu[hidden] { display: none; }
.lv-plan-scen__menu [role="menuitem"] { display: block; width: 100%; text-align: left; padding: var(--lv-s-2) var(--lv-s-3); border: 0; background: none; border-radius: var(--lv-r-1); font: 400 var(--lv-fs-14)/1.3 var(--lv-font); color: var(--lv-ink); cursor: pointer; }
.lv-plan-scen__menu [role="menuitem"]:hover, .lv-plan-scen__menu [role="menuitem"]:focus-visible { background: var(--lv-tint-grey); }
.lv-plan-scen__n { min-width: 0; overflow-wrap: anywhere; }
.lv-plan-scen__n .lv-link { font-weight: 600; font-size: var(--lv-fs-14); }
.lv-plan-scen__meta { display: block; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
.lv-plan-scen__v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-plan-scen__v small { display: block; font-weight: 400; font-size: var(--lv-fs-12); color: var(--lv-ink-2); white-space: normal; }
.lv-plan-scen__lbl { display: none; }   /* R-P2-1: a phone's label (the desk has the column heads) */
.lv-plan-scen__v--up { color: var(--lv-good); }
.lv-plan-scen__v--down { color: var(--lv-worse-text); }
.lv-plan-scen__row--off .lv-plan-scen__v { color: var(--lv-ink-2); }
.lv-plan-scen__all { margin: 0; padding-top: var(--lv-s-2); font-size: var(--lv-fs-13); }
.lv-plan-scen__note, .lv-plan-scen__empty { margin: 0; padding-top: var(--lv-s-2); font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
@media (max-width: 599.98px) {
  .lv-plan-scen__cols { display: none; }
  /* R-P2-1 (R 20:34 UTC 10/30/2026): the heads are hidden here, so the row's one figure says what it is, on one line -- "+€3,250 at 09/2027 · if
     on" -- and its own months' figure is left to the desk; about 90 px a row (the switch, the name and who, the figure) */
  .lv-plan-scen__row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 2px; padding: 8px 0; }
  .lv-plan-scen__row.lv-plan-scen__row--more { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .lv-plan-scen__row--more > .lv-plan-scen__more { grid-column: 3; grid-row: 1; }
  .lv-plan-scen__n { grid-column: 2; }
  .lv-plan-scen__row > .lv-plan-scen__v:nth-child(3) { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; text-align: left; }
  .lv-plan-scen__row > .lv-plan-scen__v:nth-child(4) { display: none; }
  .lv-plan-scen__v .lv-plan-scen__lbl { display: inline; order: 1; font-weight: 400; font-size: var(--lv-fs-12); color: var(--lv-ink-2); }
  .lv-plan-scen__v small { display: inline; order: 2; }
  .lv-plan-scen__v small:not(:empty)::before { content: '· '; }
}
/* R-B1-2 (R 23:44 UTC 10/29/2026): the side column's groups in their short form at every width, as the phone draws them (FIDELITY 6.P5) */
.lv-ws__side .lv-group__summary--wide, .lv-ws__side .lv-row__meta--wide, .lv-ws__side .lv-row--cols, .lv-ws__side .lv-row--rec .lv-row__date, .lv-ws__side .lv-row__edit, .lv-ws__side .lv-group__bar > .lv-btn[data-act="add-item"] { display: none; }
.lv-ws__side .lv-group__summary--narrow, .lv-ws__side .lv-row__meta--narrow { display: block; white-space: normal; }
.lv-ws__side .lv-row--rec { grid-template-columns: minmax(0, 1fr) auto 44px; }
.lv-ws__side .lv-row--rec > span:last-child:empty { display: none; }
.lv-ws__side .lv-group__addrow { display: flex; justify-content: center; width: 100%; margin-top: var(--lv-s-2); }
