/* ═══════════════════════════════════════════════════════════════════════════
   Plan vs Budget — the shared explanation (2026-10-20) — templates/fpa/_pbguide.html.

   Founder: «здесь что? а здесь как заполнять? распиши нашу разницу и как
   заполнять». Plan → Edit the plan opens with a «How this works» card (the
   one-line difference, three numbered steps, «Make the budget from this
   forecast →»); Plan → Outlook says what the forecast is; Budget says the
   same difference, how to fill each tile, and how the budget was filled.

   * ``.pbg-card`` / ``.pbg-steps`` — the card and its three steps (a row of
                                      three on a desk, stacked on a phone).
   * ``.pbg-foot``                  — the usual flow and the next move.
   * ``.pbg-ol``                    — the Outlook's line (inside the view note).
   * ``.pbg-line``                  — a page line in the purpose style.
   * ``.pbg-how`` / ``.pbg-rec``    — Budget: a tile's «How to fill it» line and
                                      the recommended tile's mark.
   * ``.pbg-filled``                — Budget: how it was filled, and when.

   Kit tokens only (static/css/fpa-analyst.css); every rule scoped to the
   FP&A roots. No new font sizes.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── «How this works» ───────────────────────────────────────────────────────── */
:is(.cv5, .fa-root) .pbg-card { margin-bottom: var(--fa-block); }
:is(.cv5, .fa-root) .pbg-card .fa-card-t { max-width: 90ch; }
:is(.cv5, .fa-root) .pbg-steps-t { margin: 0 0 var(--fa-s2); }
:is(.cv5, .fa-root) .pbg-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fa-gap);
}
:is(.cv5, .fa-root) .pbg-step {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--fa-s2); align-items: start;
  padding: var(--fa-s2) var(--fa-s3); border: 1px solid var(--fa-line-soft); border-radius: var(--fa-r-sm);
  background: var(--fa-accent-tint);
}
:is(.cv5, .fa-root) .pbg-n {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--fa-accent); color: var(--fa-card);
  font-size: var(--fa-fs-small); font-weight: 600; line-height: 1;
}
:is(.cv5, .fa-root) .pbg-step p { margin: 0; font-size: var(--fa-fs-ui); line-height: var(--fa-lh); color: var(--fa-ink); }
:is(.cv5, .fa-root) .pbg-step p b { font-weight: 600; }
:is(.cv5, .fa-root) .pbg-step p small {
  display: block; margin-top: 2px; font-size: var(--fa-fs-small); line-height: var(--fa-lh); color: var(--fa-muted);
}

:is(.cv5, .fa-root) .pbg-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--fa-s2) var(--fa-s4);
  margin-top: var(--fa-s3); padding-top: var(--fa-s3); border-top: 1px solid var(--fa-line-soft);
}
:is(.cv5, .fa-root) .pbg-flow {
  flex: 1 1 420px; min-width: 0; margin: 0;
  font-size: var(--fa-fs-ui); line-height: var(--fa-lh); color: var(--fa-ink2);
}
:is(.cv5, .fa-root) .pbg-act { display: flex; flex-direction: column; align-items: flex-end; gap: var(--fa-s1); max-width: 320px; }
:is(.cv5, .fa-root) .pbg-act small { font-size: var(--fa-fs-small); line-height: var(--fa-lh); color: var(--fa-muted); text-align: right; }
:is(.cv5, .fa-root) .pbg-inline { display: inline-flex; margin: 0; }

/* ── Plan → Outlook: the forecast, said ─────────────────────────────────────── */
:is(.cv5, .fa-root) .pbg-ol { display: block; margin-top: var(--fa-s1); }
:is(.cv5, .fa-root) .pbg-line {
  margin: 0 0 var(--fa-block); padding: var(--fa-s2) var(--fa-s3); border-radius: var(--fa-r-sm);
  background: var(--fa-accent-soft); border-left: 3px solid var(--fa-accent);
  font-size: var(--fa-fs-ui); line-height: var(--fa-lh); color: var(--fa-ink2);
}
:is(.cv5, .fa-root) .pbg-line .pbg-ol { margin-top: 0; }

/* ── Budget ─────────────────────────────────────────────────────────────────── */
:is(.cv5, .fa-root) .pbg-plan-link { white-space: nowrap; }
:is(.cv5, .fa-root) .pbg-how {
  display: block; margin: var(--fa-s1) 0 0; font-size: var(--fa-fs-small); line-height: var(--fa-lh); color: var(--fa-ink2);
}
:is(.cv5, .fa-root) .pbg-how b { font-weight: 600; color: var(--fa-ink); }
:is(.cv5, .fa-root) .pbg-rec { margin-left: var(--fa-s2); vertical-align: middle; }
:is(.cv5, .fa-root) .fb2-way.pbg-is-rec { border-color: var(--fa-accent); box-shadow: inset 0 0 0 1px var(--fa-accent); }
:is(.cv5, .fa-root) .pbg-filled {
  margin: 0 0 var(--fa-s2); font-size: var(--fa-fs-ui); line-height: var(--fa-lh); color: var(--fa-ink2);
}
:is(.cv5, .fa-root) .pbg-filled b { font-weight: 600; color: var(--fa-ink); }
:is(.cv5, .fa-root) .pbg-first { margin: 0 0 var(--fa-s2); font-size: var(--fa-fs-small); line-height: var(--fa-lh); color: var(--fa-muted); }

/* ── Phone ─────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :is(.cv5, .fa-root) .pbg-steps { grid-template-columns: minmax(0, 1fr); gap: var(--fa-s2); }
  :is(.cv5, .fa-root) .pbg-act { align-items: stretch; max-width: none; width: 100%; }
  :is(.cv5, .fa-root) .pbg-act .fa-btn { justify-content: center; width: 100%; box-sizing: border-box; }
  :is(.cv5, .fa-root) .pbg-act small { text-align: left; }
  :is(.cv5, .fa-root) .pbg-inline { display: flex; }
  :is(.cv5, .fa-root) .pbg-plan-link { white-space: normal; }
}
