/* ============================================================
   project-page.css — the phone's Project page (project-page.js; docs/rounds/home-nav-phone-project-page-2026-11-26.md)

   Drawn into #homeProject by screenHome. It shows only in the Home view while the phone bar is on; with a job on the chip the
   tool tiles are not drawn there (they are on the Tools tab), without a job the tiles stay under the "Pick a job" line.
   Every tappable thing is a bordered row or an outlined button of at least 48px; text is 16px or larger.
   ============================================================ */
.pp { display: none; }
body.has-phone-bar .home-view-home .pp { display: block; }
body.has-phone-bar .home-view-home.home-pj .home-tools { display: none; }

.pp-title { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 4px 2px 8px; color: var(--ink); }
.pp-num { color: var(--blue); }
.pp-addr { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--gray-7); margin: 0 2px 10px; }
.pp-addr .ic { width: 20px; height: 20px; flex: none; color: var(--gray-5); }
.pp-line { font-size: 17px; margin: 0 2px 16px; }
.pp-addr[hidden], .pp-line[hidden], .pp-btns[hidden], .pp-sec[hidden] { display: none; }
.pp-btns { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.pp-slot { margin-top: var(--s2); }
.pp-nojob { font-size: 17px; font-weight: 600; margin: 4px 2px 12px; }

/* outlined button: Map, People, Call, All photos, Everyone */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px;
  background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 700; color: var(--blue); text-decoration: none;
}
.pp-btn .ic { width: 22px; height: 22px; flex: none; }
.pp-btn:active { background: var(--blue-tint); }
.pp-big { flex: 1 1 0; flex-direction: column; gap: 4px; min-height: 68px; font-size: 16px; }
.pp-wide { display: flex; width: 100%; margin-top: 12px; }
.pp-wide.pp-first { margin-top: 0; }

/* section headings: the same grey capitals as the home groups and task lists */
.pp-h { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 36px 2px 12px; }
.pp-grey { color: var(--gray-5); font-weight: 600; font-size: 16px; margin: 0 2px; }

/* a bordered row: the tool's tile icon (the app's own .home-ic), the name, a line in words, a chevron */
.pp-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0 0 var(--s2); padding: 8px 12px;
  background: var(--white); border: 1.5px solid var(--gray-2); border-radius: var(--radius); box-shadow: none; text-align: left; color: var(--ink);
}
.pp-row:active { background: var(--gray-1); border-color: var(--blue); }
.pp-row .home-ic { width: 44px; height: 44px; border-radius: 11px; }
.pp-row .home-ic svg.tic { width: 24px; height: 24px; }
.pp-rt { flex: 1 1 auto; min-width: 0; }
.pp-rt b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.pp-rt > span { display: block; font-size: 16px; font-weight: 600; color: var(--gray-7); line-height: 1.3; margin-top: 2px; }
.pp-late { color: var(--red); font-weight: 700; white-space: nowrap; }
.pp-go { flex: none; display: flex; color: var(--gray-5); }
.pp-go .ic { width: 22px; height: 22px; }
.pp-doc { min-height: 56px; }

/* people: a name and role, a Call button at the right */
.pp-person { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 60px; padding: 8px 2px; border-bottom: 1px solid var(--gray-2); }
.pp-pt { min-width: 0; }
.pp-pt b { display: block; font-size: 17px; font-weight: 700; }
.pp-pt span { display: block; font-size: 16px; color: var(--gray-7); }
.pp-call { flex: none; min-width: 96px; }

/* Today and Coming up: plain divided rows (not tappable, so no border), a name and its line at the left, a word or date at the right */
.pp-sub { font-size: 16px; font-weight: 700; color: var(--gray-5); margin: 16px 2px 4px; }
.pp-wx { font-size: 17px; font-weight: 600; margin: 0 2px 4px; }
.pp-div { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--gray-2); }
.pp-dt { min-width: 0; flex: 1 1 auto; }
.pp-dt b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.pp-dt span { display: block; font-size: 16px; color: var(--gray-7); line-height: 1.3; }
.pp-r { flex: none; max-width: 45%; font-size: 16px; font-weight: 600; color: var(--gray-7); text-align: right; }
.pp-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-more { margin: 8px 2px 0; }
.pp-r.pp-late { color: var(--red); font-weight: 700; }

/* Emergency (part 3): the third button in the row, and the sheet (the shared .cp-modal > .cp-sheet, so it sits above the bar).
   Call buttons are the app's blue, never red (red is for late / overdue only). Everything tappable is 48px or more, text 16px or more. */
.pp-btns .pp-big { min-width: 0; padding: 0 6px; }   /* three across at 390px: "Emergencia" must still fit */
.pp-emerg .cp-sheet { padding: 18px 16px 20px; outline: none; }
.pp-et { font-size: 26px; font-weight: 800; margin: 0 2px 2px; color: var(--ink); }
.pp-es { font-size: 17px; font-weight: 600; color: var(--gray-7); margin: 0 2px 16px; }
.pp-enone { margin: 14px 2px 0; }
.pp-ef .pp-sub { margin-top: 20px; }
.pp-er { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 60px; padding: 4px 2px; }
.pp-ev { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.pp-ev b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.pp-ev span { display: block; font-size: 16px; color: var(--gray-7); line-height: 1.3; margin-top: 2px; }
.pp-eb { flex: none; min-width: 120px; }
.pp-ecall { padding: 0 14px; }   /* a utility's Call button shows its number: the outlined .pp-btn (52px, 17px, the app's blue) */
.pp-ephone { flex: none; font-size: 16px; font-weight: 600; color: var(--gray-7); }
.pp-muster { font-size: 18px; line-height: 1.4; margin: 2px 2px 0; white-space: pre-line; overflow-wrap: anywhere; }
.pp-eclose { margin-top: 24px; }
