/* Round 0250, WB8 — the Budget on the phone: a line's own page (js/8i16-bud-pline.js; boards Web-Phone-Bud-Line*), the phone audit's fixes
   for the line pages and the owner's acts. The desktop is untouched: everything here is under max-width 899px or a phone-only class. */
@media (max-width: 899px) {
  /* a line open on the phone: its page over the bucket (the bucket's cards, table and the desktop drawer stay behind it) */
  .bl-under { display: none !important; }
  .bl-pline { display: flex; flex-direction: column; gap: 12px; }
  .bl-pback { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
  .bl-pyear { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 2px; }
  .bl-pyv { font-family: var(--serif, inherit); font-size: 20px; }
  .bl-pcard .bd-wt { font-size: 22px; margin: 2px 0 4px; }
  .bl-pchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
  .bl-pfigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .bl-pfigs .bz-stat { min-width: 0; }
  .bl-psec .bd-wt { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .bl-psec .kvs .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .bl-psec .kvs dd { margin: 0; text-align: right; }
  .bl-psec .kvs.bl-pdl .kv { display: block; padding: 6px 0; }
  .bl-psec .kvs.bl-pdl dt { font-size: 13px; opacity: .75; }
  .bl-psec .kvs.bl-pdl dd { text-align: left; }
  .bl-pmoves { list-style: none; margin: 8px 0 0; padding: 0; }
  .bl-pmoves li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'w a' 'd a'; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line, rgba(127, 127, 127, .2)); }
  .bl-pmoves li:first-child { border-top: 0; }
  .bl-pmoves .bl-w { grid-area: w; overflow-wrap: anywhere; }
  .bl-pmoves .muted { grid-area: d; font-size: 13px; }
  .bl-pmoves .num { grid-area: a; align-self: center; }
  .bl-pmk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin: 8px 0; }
  .bl-pmk .bz-stat, .bl-pfigs .bz-stat { min-width: 0; }
  .bl-pmk .v, .bl-pfigs .v { white-space: normal; overflow-wrap: anywhere; }
  .bl-prate { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
  .bl-pacts { display: flex; flex-wrap: wrap; gap: 8px; }
  .bl-pacts > * { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  .bl-pline .lnk { min-height: 44px; display: inline-flex; align-items: center; }
  /* phone audit (tests/phone-known-0250.cjs, WB): the line nav's two segments wrap instead of running past the edge at 320 px */
  .bl-seg { flex-wrap: wrap; max-width: 100%; }
  .bl-seg > a { min-height: 44px; white-space: normal; flex: 1 1 auto; }
  /* the owner's Approve budget / Ask for changes… and the line threads: 44 px on a phone */
  .bd-owner-acts > button, .bd-owner-acts > .btn, .bd-thr { min-height: 44px; }
}
