/* Programmes, packages and parties (ew2/web/programmes.js). House palette: ink and lime; red, amber and green only for
   a level, the word always printed beside it. Built for a 390 px phone first: nothing wider than the screen. */

/* Start something new, step 1: Where does this belong? */
.belong-pick select { flex: 1 1 260px; }
.pkg-new { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tint-2); display: grid; gap: 12px; min-width: 0; }
.pkg-new > .hint { margin: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; min-width: 0; }
.pkg-f { display: grid; gap: 4px; min-width: 0; }
.pkg-f > span:first-child { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.pkg-f input, .pkg-f select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.pkg-party { display: grid; gap: 6px; min-width: 0; }
.pkg-tiers { margin-top: 0; flex-wrap: wrap; max-width: 100%; }
.pkg-tiers button { padding: 8px 12px; }
.pkg-rec { font-size: .8rem; opacity: .8; }
.belong-read { margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--lime); background: var(--sheet); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: 0 1px 0 var(--line); min-width: 0; }
.belong-h { margin: 0 0 8px; font-weight: 650; }
.belong-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.belong-li { min-width: 0; }
.belong-tick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.belong-tick input { margin-top: 4px; flex: none; }
.belong-tick > span { min-width: 0; overflow-wrap: anywhere; }
.belong-why { margin: 2px 0 0 28px; }
.belong-q { margin: 4px 0 0 28px; padding: 4px 10px; border-left: 2px solid var(--line); font-style: italic; font-size: .9rem; color: var(--ink); overflow-wrap: anywhere; }
.belong-q .hint { font-style: normal; }
.belong-choices { margin: 6px 0 0 28px; display: grid; gap: 4px; }
.belong-choice { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.belong-near { margin: 6px 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* The project page and the job page */
.pkg-meta { overflow-wrap: anywhere; }
.pu-card { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 6px solid var(--ink); background: var(--sheet); }
.pu-card.soon { border-left-color: var(--medium); }
.pu-card.late { border-left-color: var(--critical); }
.pu-card p { margin: 4px 0; }
.pu-h { font-weight: 650; }
.pu-due { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The Portfolio by programme */
.pf-progs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pf-prog-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 8px; }
.pf-prog-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.pf-row-pkg { margin: 0; overflow-wrap: anywhere; }

/* The programme pages */
.pg { min-width: 0; }
.pg-wrap { display: grid; gap: 24px; min-width: 0; }
.pg-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.pg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pg-card { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--lime); min-width: 0; }
.pg-card-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pg-tiles .pf-tile { min-width: 0; }
.pg-tiles .pf-tile strong { overflow-wrap: anywhere; }
.pg-tiles .pf-tile.money { grid-column: span 2; }
.pg-tiles .pf-tile.money strong { font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
@media (max-width: 420px) { .pg-tiles .pf-tile.money { grid-column: 1 / -1; } }
.pg-tiles .pf-tile.over strong { color: var(--critical); }
.pg-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-bar { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.pg-bar-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-align: left; font-size: .9rem; }
.pg-bar-t { display: block; height: 20px; background: var(--tint); border-radius: 6px; overflow: hidden; min-width: 0; }
.pg-bar-fill { display: flex; height: 100%; }
.pg-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; font-weight: 650; min-width: 14px; }
.pg-seg.over, .pg-sw.over { background: #6e1b17; }
.pg-seg.week, .pg-sw.week { background: var(--critical); }
.pg-seg.unn, .pg-sw.unn { background: var(--medium); }
.pg-seg.resp, .pg-sw.resp { background: #8fa39a; }
.pg-seg.alone, .pg-sw.alone { background: var(--ink); }
.pg-seg.share, .pg-sw.share { background: var(--lime); }
.pg .pg-seg.alone, .pg .pg-sw.alone { background: #e8f1ec; }
.pg-seg.whole, .pg-sw.whole { background: repeating-linear-gradient(135deg, var(--sheet) 0 4px, var(--ink) 4px 5px); border: 1px solid var(--ink); box-sizing: border-box; }
.pg-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pg-bar-v, .pg-bar-s { font-size: .82rem; white-space: nowrap; }
.pg-party-in { display: contents; }  /* the party's card, filled when it opens: its parts lay out as the card's own */
.pg-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }  /* one column no wider than the page: an "auto" track grew to the register table (1,611 px at 320 px, 4 November 2026) */
.pg-tiers-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pg-tier { display: inline-block; font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: var(--pill); background: var(--tint); color: var(--ink); white-space: nowrap; }
.pg-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-pk { position: relative; margin-left: calc(min(var(--d, 0), 4) * 22px); padding: 12px 14px 12px 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pg-pk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 12px 0 0 12px; background: var(--line); }
.pg-pk.act::before { background: var(--critical); }
.pg-pk.watch::before { background: var(--lime); }
.pg-pk-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.pg-pk-name { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; min-width: 0; flex: 1 1 160px; }
.pg-pk-m, .pg-pk-f { margin: 4px 0 0; overflow-wrap: anywhere; }
.pg-pk-f { font-size: .9rem; }
.pg-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg-plist li { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow-wrap: anywhere; }
.pg-plist li.on { border-color: var(--ink); }
.pg-pname { font-weight: 650; text-align: left; }
.pg-party h3 { margin: 12px 0 4px; font-size: 1rem; }
.pg-party ul { margin: 0; padding-left: 18px; }
.pg-party li { overflow-wrap: anywhere; }
.pg-filters { align-items: center; }
.pg-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.pg-reg, .pg-prop { min-width: 640px; }
.pg-prop tr.pg-issue td { background: var(--tint); }
.pg-prop tr.pg-issue td:first-child { box-shadow: inset 4px 0 0 var(--medium); }
.pg-join { display: block; font-size: .85rem; }
.pg-leads { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.pg-drop { margin: 10px 0; }
.pg-form { display: grid; gap: 12px; }
.pg-near-list, .pg-party-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pg-near { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--tint); border-left: 4px solid var(--medium); overflow-wrap: anywhere; }
.pg-near-go { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-party-list li { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .pg-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-bar-n { grid-column: 1 / -1; white-space: normal; }
  .pg-pk { margin-left: calc(min(var(--d, 0), 4) * 10px); }
  .pkg-tiers button { flex: 1 1 auto; }
}

/* Programs above projects (Han, 4 November 2026): the trail, the Projects page by program, filing from a card, and
   long lists shown 100 at a time. Every name may be 200 characters long or Arabic: it wraps and keeps its direction. */
.crumbs a, .crumbs .here { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.pg-crumbs { margin: 0; }
@media (max-width: 640px) { .crumbs .crumb-self, .crumbs .here.crumb-self { display: none !important; } }  /* the heading below names the project */
.project-list > li.proj-group { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin: 14px 0 0; padding: 0 0 6px; border-bottom: 2px solid var(--lime); min-width: 0; animation: none; }
.project-list > li.proj-group:first-child { margin-top: 0; }
.proj-group-h { margin: 0; font-size: 1.15rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.proj-group-h a { color: var(--ink); text-decoration: none; }
.proj-group-h a:hover, .proj-group-h a:focus-visible { text-decoration: underline; }
.proj-group-loose { border-bottom-color: var(--line); }
.project-list > li.proj-more { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; animation: none; }
.proj-file { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 10px 0 0; min-width: 0; }
.proj-file-sel { max-width: 100%; min-width: 0; }
.pg-more { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 12px 0 0; }
.pg-empty { max-width: 70ch; }
.pg-card-name, .pg-pk-name, .pg-pname { overflow-wrap: anywhere; min-width: 0; }
/* A program's name is a link to tap: 44 px tall on a touch screen and on a phone, however short the name. */
@media (pointer: coarse), (max-width: 640px) { .pg-card .pg-card-name, .proj-group-h a { min-height: 44px; display: inline-flex; align-items: center; } }

/* Parties read from executed contracts, waiting to be confirmed (Part C, 4 November 2026). One row a party: the tick,
   the name (any script, up to 200 characters, wrapping), why it is proposed, then what to do, its role and whether it
   is the contract's main party, all on one line on a desktop and stacked on a phone. */
.pp-card { display: grid; gap: 10px; min-width: 0; }
#sheet .pp-card { padding: 0; border: 0; box-shadow: none; background: transparent; }  /* in a sheet: no card inside the card */
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pp-contract { margin: 10px 0 0; padding: 0 0 4px; border-bottom: 2px solid var(--lime); overflow-wrap: anywhere; min-width: 0; }
.pp-contract:first-child { margin-top: 0; }
.pp-contract-name { font-weight: 650; color: var(--ink); }
.pp-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); min-width: 0; }
.pp-item.near, .pp-item.conflict { border-left: 4px solid var(--medium); }
.pp-tick { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.pp-item .pp-tick { align-items: flex-start; }
.pp-item .pp-tick input { flex: none; margin: 3px 0 0; align-self: flex-start; }
.pp-name { font-weight: 650; overflow-wrap: anywhere; min-width: 0; flex: 1 1 180px; }
.pp-kind { font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: var(--pill); background: var(--tint); color: var(--ink); white-space: nowrap; }
.pp-kind.near, .pp-kind.conflict { background: var(--medium); color: #fff; }
.pp-kind.exact { background: var(--lime); color: var(--ink); }
.pp-why { margin: 0 0 0 26px; overflow-wrap: anywhere; }
.pp-do { margin: 2px 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.pp-do select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); min-width: 0; max-width: 100%; flex: 1 1 200px; }
.pp-main { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-size: .9rem; }
.pp-go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 600px) { .pp-why, .pp-do { margin-left: 0; } .pp-do select { flex-basis: 100%; } }

/* The middle level, program › project › contract (Part B, 4 November 2026). The project picker, a project's heading over
   its contracts, the tick on each contract and the bar that moves the ticked ones, the projects on Set up and the
   three steps of a new project. Every name may be 200 characters long or Arabic: it wraps and keeps its direction. */
.proj-group-sub { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.proj-group-h .sep { color: var(--muted, #6b7f77); font-weight: 400; }
.pg-projpick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 0; min-width: 0; }
.pg-projpick span { font-weight: 650; }
.pg-projpick select, .pg-filters select, .pg-movebar select, .pg-side select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); min-width: 0; max-width: 100%; }
.pg-projpick select { flex: 1 1 260px; max-width: 520px; }
/* the proposal is a grid item of its card: without this it grew to its table's width and a phone's page scrolled sideways (933 px wide at 375; 14 November 2026) */
.pg-proposal { min-width: 0; max-width: 100%; }
/* who the company acts for on a package list (14 November 2026): the label, the choice and its one line of help */
.pg-side { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 14px 0 0; font-weight: 650; min-width: 0; }
.pg-side select { flex: 0 1 260px; font-weight: 400; }
.pg-side .hint { flex: 1 1 100%; font-weight: 400; }
.pg-check { margin: 4px 0 0; }
.pg-projchart .pg-bar-n { text-align: start; }
.pg-tree > li.pg-proj-h { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin: 14px 0 0; padding: 0 0 6px; border-bottom: 2px solid var(--lime); min-width: 0; }
.pg-tree > li.pg-proj-h:first-child { margin-top: 0; }
.pg-tree > li.pg-proj-h.loose { border-bottom-color: var(--line); }
.pg-proj-h h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.pg-proj-h h3 .linkbtn { font: inherit; font-weight: 700; color: var(--ink); text-align: start; overflow-wrap: anywhere; }
.pg-pk.pg-pk-tick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: start; }
.pg-tick-l { display: inline-flex; align-items: flex-start; justify-content: center; cursor: pointer; }
.pg-tick-l .pg-tick { margin: 4px 0 0; width: 18px; height: 18px; }
.pg-pk-b { min-width: 0; }
.pg-movebar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; padding: 10px 12px;
  background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 10px; min-width: 0; }
.pg-move-n { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.pg-below { display: inline-flex; gap: 6px; align-items: center; }
.pg-move-go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; margin-inline-start: auto; }
.pg-move-go select { flex: 1 1 180px; max-width: 320px; }
.pg-proj-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pg-proj-li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.pg-proj-name { font-weight: 650; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.pg-proj-do { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-proj-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.pg-proj-edit input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; flex: 1 1 220px; }
.pg-step { margin: 4px 0 0; font-weight: 650; }
.pg-step strong { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); margin-inline-end: 6px; }
.pg-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.pg-pick { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; min-width: 0; cursor: pointer; }
.pg-pick input { flex: none; margin-top: 3px; }
@media (pointer: coarse), (max-width: 640px) {
  .pg-pick { min-height: 44px; align-items: flex-start; padding: 6px 0; }
  .pg-pick input { width: 24px; height: 24px; margin-top: 0; }
  .pg-pick > .pkg-rec { padding-inline-start: 32px; }
  .pg-tick-l { min-width: 44px; min-height: 44px; align-items: flex-start; margin: -2px 0 -10px -12px; }
  .pg-tick-l .pg-tick { width: 24px; height: 24px; margin: 0; }
  .pg-proj-h h3 .linkbtn, .pg-projchart .pg-bar-n, .pg-below { min-height: 44px; display: inline-flex; align-items: center; }
  /* a short name is one line, 24 px tall: every bar's name and every package's name is a 44 px target (Part E walk) */
  .pg-bar-n, .pg-pk-name { min-height: 44px; display: inline-flex; align-items: center; }
  .pg-movebar .btn, .pg-movebar select, .pg-projpick select, .pg-side select, .pg-proj-do .btn, .pg-proj-edit .btn, .pg-proj-edit input { min-height: 44px; }
}
@media (max-width: 600px) { .pg-move-go { margin-inline-start: 0; width: 100%; } .pg-move-go select { max-width: none; } }
.pg-pick > span:not(.pkg-rec) { flex: 1 1 auto; min-width: 0; }
.pg-pick { flex-wrap: wrap; }
.pg-pick > span:not(.pkg-rec) { flex-basis: calc(100% - 40px); }
.pg-pick > .pkg-rec { flex: 1 0 100%; white-space: nowrap; padding-inline-start: 26px; }

/* Every checkbox on the programs pages lines up with the first line of its label, however many lines the label wraps
   to (Han's rule, 4 November 2026: the phone's touch rule in ds.css centres a checkbox beside its label, which put it
   half way down a name of 200 characters). An id outranks that rule; the walk checks it at every width (TICK_JS). */
#programmes label:has(> input[type="checkbox"]), #sheet .pg-form label:has(> input[type="checkbox"]), #sheet .pp-card label:has(> input[type="checkbox"]) {
  align-items: flex-start; }
#programmes label:has(> input[type="checkbox"]) > input[type="checkbox"], #sheet .pg-form label:has(> input[type="checkbox"]) > input[type="checkbox"],
#sheet .pp-card label:has(> input[type="checkbox"]) > input[type="checkbox"] { flex: none; align-self: flex-start; margin-top: 1px; }

/* The project's combined view, the Portfolio by project and the people on a project (Han, 4 November 2026, 17:38). */
.pg-hub { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.pf-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-sub-h { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin: 0 0 6px; padding: 0 0 4px; border-bottom: 1px solid var(--lime); min-width: 0; }
.pf-sub-name { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.pg-people { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.pg-people li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pg-person { overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.pg-people select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; max-width: 100%; }
@media (pointer: coarse), (max-width: 640px) { .pg-people select, .pg-hub a, .pf-sub-name, .pf-prog-name { min-height: 44px; } .pf-sub-name, a.pf-prog-name { display: inline-flex; align-items: center; } }

/* The register on a phone: each row a card, each cell with its column's name, nothing to scroll sideways (Part E walk,
   4 November 2026: the table hid 600 px to the right at 320 px). */
@media (max-width: 640px) {
  .pg-table-wrap .table-wrap { overflow: visible; }
  table.grid.pg-reg, table.grid.pg-reg.wide { min-width: 0; width: 100%; }
  .pg-reg, .pg-reg tbody, .pg-reg tr, .pg-reg td { display: block; width: 100%; }
  .pg-reg tr.pg-reg-h { display: none; }
  .pg-reg tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pg-reg td { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 8px; align-items: baseline; border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  .pg-reg td::before { content: attr(data-label); color: var(--ink-2); font-size: 12px; }
  .pg-reg td a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Second super-user pass (12 November 2026): beside a long project name the count broke inside its word on a phone
   ("· 13 contrac ts"); it now goes to the next line whole. */
.pg-projchart .pg-bar-n { flex-wrap: wrap; column-gap: .25em; }
/* touch screens up to 1,099 px (a phone sideways, a tablet): a package's or project's name on the open-items chart
   wraps whole, as on a phone (it was cut with an ellipsis) */
@media (max-width: 1099px) { .pg-bar-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; } }
