/* P&L vs budget. Phone first (390 px): one column of cards, nothing wider than the screen. */
.pb-root { display: grid; gap: 12px; min-width: 0; max-width: 100%; overflow-x: clip; }
.pb-root h2 { font-size: 22px; margin: 0; }
.pb-subline, .pb-foot, .pb-sub, .pb-prior { margin: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.pb-note { margin: 0; color: var(--amber); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.pb-empty { margin: 0; color: var(--muted); padding: 12px 4px; text-align: center; overflow-wrap: anywhere; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 4px; background: rgba(34, 38, 51, .5); border-radius: 8px; padding: 4px;
  justify-self: start; max-width: 100%; }
.pb-chips button { border: 0; background: none; color: var(--muted); border-radius: 6px; padding: 8px 12px; font-size: 13px;
  font-weight: 500; cursor: pointer; white-space: normal; }
.pb-chips button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.pb-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.pb-card { background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 14px;
  padding: 12px 14px; min-width: 0; max-width: 100%; display: grid; gap: 4px; color: var(--text); }
.pb-card.pb-good { border-left-color: var(--green, #22c55e); }
.pb-card.pb-bad { border-left-color: var(--red, #ef4444); }
.pb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.pb-name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.pb-amt { font-size: 20px; font-weight: 750; white-space: nowrap; }
.pb-hero .pb-amt { font-size: 26px; }
.pb-ud { margin: 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.pb-up { color: var(--green, #22c55e); }
.pb-down { color: var(--red, #ef4444); }
.pb-lines summary { cursor: pointer; color: var(--blue); font-size: 13px; padding: 4px 0; }
.pb-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0;
  border-top: 1px solid var(--line); min-width: 0; }
.pb-row > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.pb-rowamt { white-space: nowrap; color: var(--muted); }
@media (min-width: 900px) { .pb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
