/* 📱 The new phone pop-up (22 Nov 2026) — the quote / job pop-up on a phone as
   one guided front screen, with today's tools in sections.

   EVERY RULE IS SCOPED to #a-modal.pp-on (phone-popup.js adds the class only on
   a phone, only where the switch is on, only for a quote visit or a job) or to
   an element that exists only inside the shell (#pp-…/.pp-…). Nothing here can
   touch the desktop pop-up, a block-out, or any other modal.

   Colours: GetBookedUp blue #006aac; done = green + ✓; next = amber + the word.
   Never colour alone. Tap targets 44px or taller. */

body.m-phone #apptOverlay.pp-host{padding:0;align-items:stretch;overflow:hidden;}
body.m-phone #a-modal.pp-on{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:none;
  border-radius:0;padding:0;margin:0;display:flex;flex-direction:column;overflow:hidden;background:#f3f6f9;}
/* Everything the old layout drew is hidden wholesale; what the new one needs
   has been MOVED into the shell (and is moved back for any other booking). */
#a-modal.pp-on > :not(#pp-shell){display:none !important;}
#pp-shell{display:flex;flex-direction:column;flex:1;min-height:0;position:relative;color:#13202e;font-size:16px;line-height:1.4;}
/* ── the front screen: scrolls as one, the bar stays ── */
#pp-front{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;}
#pp-top{background:#fff;padding:10px 16px 12px;border-bottom:1px solid #dde4ec;}
.pp-nav{display:flex;justify-content:space-between;align-items:center;margin:0 -8px 2px;}
.pp-link{appearance:none;border:0;background:none;color:#006aac;font:inherit;font-weight:600;font-size:16px;
  min-height:44px;min-width:44px;padding:0 8px;display:inline-flex;align-items:center;gap:2px;cursor:pointer;}
.pp-link svg{width:20px;height:20px;}
.pp-when{font-size:17px;}
.pp-when b{font-weight:800;}
.pp-name{font-size:25px;font-weight:800;letter-spacing:-.01em;line-height:1.2;margin:2px 0;overflow-wrap:anywhere;}
.pp-addr{color:#5a6b7e;font-size:15px;overflow-wrap:anywhere;}
.pp-addr b{color:#13202e;}
.pp-note{margin-top:6px;font-size:14.5px;color:#13202e;background:#f1f5f9;border-radius:8px;padding:6px 10px;overflow-wrap:anywhere;}
.pp-chips{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap;align-items:center;}
/* 🏷 The Marker's own line, under the type / time / status chips (phone-popup.js). */
.pp-chips[hidden]{display:none;}
.pp-chips-own{margin-top:0;}
#pp-chips-kind{display:contents;}
/* Status and Marker: a label you can read, and tap to change. The button is a
   fingertip tall (44px); the pill drawn inside it stays the size of a label. */
.pp-lab{appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;min-height:44px;display:inline-flex;align-items:center;cursor:pointer;max-width:100%;}
.pp-lab[hidden]{display:none;}
.pp-lab-in{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 12px;border-radius:999px;border:1.5px solid #006aac;background:#fff;color:#006aac;font-size:14px;font-weight:700;max-width:100%;}
.pp-lab-in > span:not(.pp-lab-sw){overflow-wrap:anywhere;text-align:left;}
.pp-lab-in::after{content:"\25BE";font-size:12px;flex:none;}
.pp-lab[aria-expanded="true"] .pp-lab-in{background:#006aac;color:#fff;}
.pp-lab[aria-expanded="true"] .pp-lab-in::after{content:"\25B4";}
.pp-lab:focus-visible .pp-lab-in{outline:2px solid #006aac;outline-offset:2px;}
.pp-lab-sw{width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.25);flex:none;}
.pp-lab-sw[hidden]{display:none;}
.pp-pick{margin-top:6px;border:1px solid #dde4ec;border-radius:14px;padding:10px 12px;background:#fff;}
.pp-pick[hidden]{display:none;}
#a-modal.pp-on .pp-pick > div{margin:0 !important;}
#a-modal.pp-on .pp-pick .statusseg button{min-height:44px;font-size:15px;padding:5px 14px;}
#a-modal.pp-on .pp-pick select{min-height:44px;font-size:16px;}
.pp-chip{display:inline-flex;align-items:center;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:#e6f1f8;color:#006aac;}
.pp-chip.plain{background:#eef1f4;color:#5a6b7e;}

#pp-notices{background:#fff;}
#pp-notices > *{margin:0 16px 10px !important;}
#pp-notices:empty{display:none;}

/* ── where the booking is ── */
#pp-strip{display:flex;align-items:flex-start;padding:12px 10px 10px;background:#fff;border-bottom:1px solid #dde4ec;}
.pp-step{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:600;
  color:#5a6b7e;position:relative;text-align:center;}
.pp-step::before{content:"";position:absolute;top:12px;left:-50%;width:100%;height:3px;background:#dde4ec;z-index:0;}
.pp-step:first-child::before{display:none;}
.pp-step.done::before,.pp-step.now::before{background:#17703f;}
.pp-dot{width:26px;height:26px;border-radius:50%;border:2.5px solid #dde4ec;background:#fff;display:grid;place-items:center;z-index:1;}
.pp-dot svg{width:15px;height:15px;}
.pp-step.done{color:#17703f;}
.pp-step.done .pp-dot{background:#17703f;border-color:#17703f;color:#fff;}
.pp-step.now{color:#9a4d00;font-weight:800;}
.pp-step.now .pp-dot{border-color:#9a4d00;background:#fff3e0;color:#9a4d00;}

/* ── the section rows ── */
#pp-body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:12px;}
#pp-rows{background:#fff;border-radius:16px;border:1px solid #dde4ec;overflow:hidden;}
.pp-row{appearance:none;border:0;border-top:1px solid #dde4ec;background:#fff;color:inherit;font:inherit;text-align:left;width:100%;
  display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:56px;cursor:pointer;}
.pp-row:first-child{border-top:0;}
/* ⬆ The Next row is LIFTED out of the list (Allan, 25 Nov 2026: "a little brighter, perhaps
   lifted slightly"): its own rounded card, standing off the rows round it with a soft shadow, a
   warmer fill and a bolder edge bar. Shape and shadow say which row it is as well as colour, and
   the "Next" tag says it in words. Text stays above 4.5:1 on the warmer fill. The 4px it stands
   in from each side is given back by a slightly tighter inside (padding, gap), so its words wrap
   exactly as any other row's: two lines at 320 wide, measured by scripts/check-phone-popup.mjs. */
.pp-row.is-next{position:relative;z-index:1;width:calc(100% - 8px);margin:6px 4px;padding:8px 8px 8px 12px;gap:10px;
  border-top:0;border-radius:12px;
  background:#fff3e0;box-shadow:inset 5px 0 0 #9a4d00,0 0 0 1px #f0c491,0 6px 14px -4px rgba(154,77,0,.38);}
.pp-row.is-next .pp-ico{background:#ffe2bf;color:#9a4d00;}
.pp-row.is-next .pp-tag.next{background:#ffe2bf;}
.pp-ico{width:38px;height:38px;border-radius:10px;background:#e6f1f8;color:#006aac;display:grid;place-items:center;flex:none;}
.pp-ico svg{width:20px;height:20px;}
.pp-row.is-done .pp-ico{background:#e7f4ec;color:#17703f;}
.pp-row-text{flex:1;min-width:0;display:flex;flex-direction:column;}
.pp-row-title{font-size:16px;font-weight:700;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
/* 📋 A row's summary says what is still open (24 Nov 2026): it may wrap to a second line, never a
   third (a customer's own words in What they want are cut there with "…"). Measured at 320 wide by
   scripts/check-phone-popup.mjs. */
.pp-row-sum{font-size:13.5px;color:#5a6b7e;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:break-word;}
.pp-chev{color:#9aa8b8;flex:none;display:grid;place-items:center;}
.pp-chev svg{width:20px;height:20px;}
.pp-tag{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:800;padding:2px 8px;border-radius:999px;white-space:nowrap;}
.pp-tag svg{width:12px;height:12px;}
.pp-tag.done{color:#17703f;background:#e7f4ec;}
.pp-tag.next{color:#9a4d00;background:#fff3e0;}

/* ── the bottom bar ── */
#pp-bar,#pp-sheet-bar{background:#fff;border-top:1px solid #dde4ec;display:flex;gap:10px;flex:none;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
#pp-sheet-bar:empty{display:none;}
#a-modal.pp-on #pp-bar .btn,#a-modal.pp-on #pp-sheet-bar .btn{min-height:50px;border-radius:12px;font-size:16px;font-weight:800;margin:0;}
#pp-more{flex:0 0 auto;padding:0 16px;display:inline-flex;align-items:center;gap:6px;}
#pp-more svg{width:20px;height:20px;}
#a-modal.pp-on #pp-bar #a-done{flex:1;background:#006aac;border-color:#006aac;color:#fff;}
#a-modal.pp-on #pp-sheet-bar .btn{flex:1;}

/* ── a section, open ── */
#pp-sheet{position:absolute;inset:0;background:#f3f6f9;display:flex;flex-direction:column;z-index:3;}
#pp-sheet-head{background:#fff;padding:6px 16px 10px;border-bottom:1px solid #dde4ec;flex:none;}
#pp-sheet-title{margin:0;font-size:23px;font-weight:800;line-height:1.2;}
#pp-sheet-sub{margin:2px 0 0;font-size:14.5px;color:#5a6b7e;overflow-wrap:anywhere;}
#pp-sheet-scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px;}
.pp-sec{display:flex;flex-direction:column;gap:12px;}
.pp-card{background:#fff;border:1px solid #dde4ec;border-radius:16px;padding:12px 14px;min-width:0;}
.pp-card > .act-group{margin:0;padding:0;border:0;}
.pp-h{font-size:13px;font-weight:700;color:#5a6b7e;margin:0 0 8px;}
.pp-empty{color:#5a6b7e;font-size:15px;padding:6px 2px;}
.pp-stack{display:flex;flex-direction:column;gap:8px;}
#a-modal.pp-on .pp-stack > .btn{width:100%;min-height:48px;margin:0;justify-content:center;font-size:16px;}
#a-modal.pp-on .pp-sec .act-row .btn{flex-basis:100%;min-height:48px;}
#a-modal.pp-on .pp-sec .dl{margin:0;}

/* A phone held sideways has no height to spare: tighter top, same rules. */
@media (orientation:landscape) and (max-height:520px){
  .pp-name{font-size:20px;}
  #pp-top{padding-bottom:8px;}
  #pp-strip{padding:8px 10px 6px;}
}

/* Words for screen readers only (the strip's "done" / "now"). */
.pp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* Moved in from the old layout with inline top margins meant for a long column. */
#a-modal.pp-on #pp-more-status > *{margin:0 0 10px !important;}
#a-modal.pp-on #pp-more-status > *:last-child{margin-bottom:0 !important;}

/* ── inside the sections: today's tools, given room ── */
.pp-fromquote{font-size:14.5px;font-weight:600;color:#13202e;margin:0 0 10px;overflow-wrap:anywhere;}
#pp-quote-park{display:none;}
#a-modal.pp-on .pp-card > .act-group,#a-modal.pp-on .pp-card > .act-group + .act-group{margin:0;padding:0;border:0;}
#a-modal.pp-on .pp-card > .act-group + .act-group{margin-top:14px;padding-top:14px;border-top:1px solid #dde4ec;}
/* The diary draws a rule above "What the work is"; a card's edge already does that job. */
#a-modal.pp-on .pp-card > #a-scope > .lk-sep:first-child,
#a-modal.pp-on .pp-card > :first-child > .lk-sep:first-child{display:none;}
#a-modal.pp-on .pp-sec .sc-tick input{width:26px;height:26px;flex:none;}
#a-modal.pp-on .pp-sec .lk-actions .btn{min-height:48px;}
/* The section's title already says "What the work is"; the card keeps the count and the hint. */
#a-modal.pp-on .pp-card > #a-scope .lk-title{display:none;}

/* ── the guidance ── */
#pp-todo{background:#fff3e0;border-bottom:1px solid #f3d3a8;padding:4px 8px 4px 16px;}
.pp-todo-line{display:flex;align-items:center;gap:8px;font-size:14.5px;}
.pp-todo-line > span:nth-child(2){flex:1;min-width:0;}
#pp-todo b{color:#9a4d00;}
#pp-todo .pp-link{font-weight:800;white-space:nowrap;}
#pp-todo .act-msg:empty,#pp-next .act-msg:empty,#pp-sheet-msg:empty,#pp-review .act-msg:empty,#pp-arrive-ask .act-msg:empty{display:none;}

#pp-next{background:#fff;border-radius:16px;padding:12px 14px;border:1px solid #dde4ec;}
.pp-next-k{font-size:13px;font-weight:700;color:#9a4d00;display:flex;align-items:center;gap:6px;margin-bottom:6px;}
.pp-next-k svg{width:14px;height:14px;}
.pp-next-btn{appearance:none;border:0;width:100%;min-height:56px;border-radius:14px;background:#006aac;color:#fff;font:inherit;
  font-weight:800;font-size:18px;cursor:pointer;padding:8px 12px;}
.pp-next-btn.green{background:#17703f;}
.pp-next-btn:disabled{opacity:.7;}
.pp-next-sub{font-size:13.5px;color:#5a6b7e;margin-top:8px;text-align:center;}
.pp-next-done{font-size:16px;font-weight:700;color:#17703f;text-align:center;padding:8px 0;}
#pp-next .act-msg{text-align:center;margin-top:6px;}
/* 💳 The invoice's test/live mode is not the business's (24 Nov 2026): amber, with a ⚠ and the words —
   never colour alone. Under Take payment on the front, on its section row, and in the invoice box. */
.pp-next-warn{margin-top:8px;padding:8px 10px;border-radius:10px;border:1.5px solid #f3c58a;background:#fff3e0;color:#7a3d00;
  font-size:14px;font-weight:600;line-height:1.35;text-align:left;overflow-wrap:anywhere;}
.pp-next-warn[hidden]{display:none;}
.pp-row-warn{display:block;margin-top:2px;font-size:13.5px;font-weight:700;color:#8a4b00;line-height:1.3;overflow-wrap:anywhere;}
#a-modal.pp-on .pp-sec .inv-modewarn{font-size:14.5px;}
/* 👤 The other choice at this step (owner or technician, 23 Nov 2026): outlined, never a second blue button. */
.pp-next-second{appearance:none;width:100%;min-height:48px;margin-top:10px;border-radius:12px;border:1.5px solid #006aac;background:#fff;
  color:#006aac;font:inherit;font-weight:700;font-size:16px;cursor:pointer;padding:6px 12px;}
.pp-next-second:disabled{opacity:.7;}
/* 🏢 Left for the office: who and when, with Undo. */
#pp-left{background:#eef5fb;border:1px solid #b9d4ea;border-radius:14px;padding:4px 6px 4px 12px;}
.pp-left-line{display:flex;align-items:center;gap:8px;font-size:14.5px;color:#1f3347;line-height:1.35;}
.pp-left-line > span:nth-child(2){flex:1;min-width:0;}
#pp-left-undo{min-height:44px;padding:0 10px;font-weight:800;white-space:nowrap;}
#pp-left-undo[hidden]{display:none;}
#pp-left .act-msg:empty{display:none;}
#pp-left .act-msg{margin:0 0 6px;}
/* A small phone (320 wide): the notice must stay WHOLLY on screen above the bar while the Before you go
   list shows (fix pass, 24 Nov 2026: it wrapped to three lines and its last one was cut off). The 🏢 is
   decoration beside the words, so it goes first; the words keep their size class, a little tighter. */
@media (max-width:360px){
  #pp-left{padding:2px 6px 2px 10px;}
  .pp-left-line{font-size:13.5px;line-height:1.25;gap:6px;}
  .pp-left-line > span[aria-hidden]{display:none;}
}
/* Someone who does not invoice is not offered the buttons that make or send one — in this pop-up only. */
#pp-shell.pp-noinvoice #inv-open,
#pp-shell.pp-noinvoice #inv-send-existing{display:none !important;}

#pp-sheet-msg{background:#fff;padding:8px 14px 0;flex:none;}
#a-modal.pp-on #pp-sheet-bar .btn.pp-go{background:#17703f;border-color:#17703f;color:#fff;}

#pp-arrive-ask{background:#fff3e0;border:1.5px solid #f3c58a;border-radius:14px;padding:12px 14px;margin-bottom:12px;}
#pp-arrive-ask b{display:block;font-size:15.5px;color:#9a4d00;}
#pp-arrive-ask p{margin:4px 0 10px;font-size:15px;}
.pp-ask-acts{display:flex;gap:8px;flex-wrap:wrap;}
#a-modal.pp-on .pp-ask-acts .btn{min-height:46px;margin:0;font-size:15px;}

.pp-review-line{display:flex;align-items:center;gap:12px;}
.pp-review-text{flex:1;min-width:0;display:flex;flex-direction:column;}
.pp-review-text b{font-size:15.5px;}
.pp-review-text span{font-size:13.5px;color:#5a6b7e;}
#a-modal.pp-on #pp-review .btn{min-height:46px;margin:0;white-space:nowrap;}
/* ⭐ Asked: "Mon 23 Nov, 11:55 ✓ Asked by Sam" — the date first and bold, in the ink of the words. */
.pp-review-text span b{font-size:inherit;color:#13202e;}
/* ⭐ Send again: ONE question in the card, naming the date of the last request. */
.pp-review-ask{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7e6;border:1px solid #f0d49a;}
.pp-review-q{margin:0 0 10px;font-size:15px;color:#13202e;line-height:1.35;}
.pp-review-ask-btns{display:flex;gap:8px;flex-wrap:wrap;}
#a-modal.pp-on #pp-review .pp-review-ask-btns .btn{flex:1 1 auto;}
/* ⭐ The chip on the front: words and a star; the star, not the colour, says it. */
.pp-chip-review{background:#fff7e6;color:#7a4b00;}

.pp-form-state{font-size:13.5px;color:#5a6b7e;margin:-4px 2px 4px;}

/* ── the top row: Call, Directions, On my way ── */
#pp-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px;}
.pp-q{appearance:none;border:0;background:none;font:inherit;color:#13202e;text-decoration:none;cursor:pointer;padding:2px 0;
  display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12.5px;font-weight:600;min-height:44px;}
.pp-q i{width:46px;height:46px;border-radius:50%;background:#e6f1f8;color:#006aac;display:grid;place-items:center;font-style:normal;}
.pp-q svg{width:21px;height:21px;}
.pp-q[aria-disabled="true"]{color:#5a6b7e;}
.pp-q[aria-disabled="true"] i{background:#eef1f4;color:#9aa8b8;}
.pp-q.is-busy{opacity:.55;}
.pp-q[aria-expanded="true"] i{background:#006aac;color:#fff;}
#pp-dir{margin-top:10px;border:1px solid #dde4ec;border-radius:14px;overflow:hidden;}
.pp-dir-row{appearance:none;border:0;border-top:1px solid #dde4ec;background:#fff;color:inherit;font:inherit;text-align:left;width:100%;
  display:flex;align-items:center;gap:12px;padding:6px 12px;min-height:52px;cursor:pointer;}
.pp-dir-row:first-child{border-top:0;}
#pp-top .act-msg{margin-top:8px;}
#pp-top .act-msg:empty{display:none;}
/* The name and the date are tappable: say so, quietly. */
#pp-name{cursor:pointer;}
#pp-name::after,#pp-when.is-link::after{content:" ›";color:#9aa8b8;font-weight:600;}
#pp-when.is-link{cursor:pointer;}

/* ── a fingertip tall (44px), measured by scripts/check-phone-popup.mjs ──
   These controls come from the old pop-up at mouse sizes. Inside the new one
   they are sized for a thumb; nothing changes anywhere else. */
#a-modal.pp-on .pp-sec .statusseg button{min-height:44px;}
#a-modal.pp-on .pp-sec .linkish{min-height:44px;display:inline-flex;align-items:center;}
#a-modal.pp-on .pp-sec .acc-toggle{min-height:44px;}
/* The follow-up rows' tick: a 44px tap area around a 24px box, drawn here so the
   box stays the size of a tick box while the finger gets the room. */
#a-modal.pp-on .pp-sec input.acc-en{-webkit-appearance:none;appearance:none;width:44px;height:44px;margin:0;border:0;flex:none;cursor:pointer;
  background:no-repeat center/24px 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='5' fill='%23fff' stroke='%239aa8b8' stroke-width='2.5'/%3E%3C/svg%3E");}
#a-modal.pp-on .pp-sec input.acc-en:checked{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='5' fill='%23006aac' stroke='%23006aac' stroke-width='2.5'/%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
#a-modal.pp-on .pp-sec input.acc-en:focus-visible{outline:2px solid #006aac;outline-offset:-6px;border-radius:10px;}

/* "Wrong quote?" / "Wrong invoice?" beside their buttons (Allan, 22 Nov): bold,
   on two lines, as tall as the button. Only the short question that HAS a
   button beside it — a full sentence on its own keeps its normal look. */
#a-modal.pp-on .pp-sec .qf-wrong > span:first-child:not(:only-child){
  font-weight:700;font-size:17px;line-height:24px;color:#13202e;width:min-content;flex:none;}

/* A message from a tool whose own line is not on screen, repeated where the person is looking. */
#pp-front-msg{background:#fff;border-top:1px solid #dde4ec;padding:8px 14px;flex:none;}
#pp-front-msg:empty{display:none;}

/* 📝 Record a payment in Invoice & payment: a full-width button and one quiet line under it. */
#a-modal.pp-on #pp-inv-recordpay #a-recordpay{min-height:48px;width:100%;font-size:16px;font-weight:700;}
.pp-hint{margin-top:8px;font-size:13.5px;color:#5a6b7e;}

/* The office's Not taken, on a payment noted before any invoice exists. */
#a-modal.pp-on .pp-sec #inv-dismiss-noted{min-height:44px;padding:0 16px;font-size:15px;}

/* 📷 Photos in Visit notes & photos (phone-popup-photos.js). */
#pp-photos[hidden]{display:none;}
.ppp-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
#a-modal.pp-on .ppp-actions .btn{min-height:48px;width:100%;margin:0;font-size:15.5px;font-weight:700;justify-content:center;white-space:normal;line-height:1.2;padding:6px 8px;}
@media (max-width:359px){.ppp-actions{grid-template-columns:1fr;}}
.ppp-msg{margin-top:8px;}
.ppp-msg:empty{display:none;}
.ppp-queue{display:flex;flex-direction:column;gap:6px;margin-top:10px;}
.ppp-item{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #dde4ec;border-radius:10px;min-width:0;}
.ppp-item.is-saved{border-color:#17703f;background:#f0f8f3;}
.ppp-item.is-failed{border-color:#b42318;background:#fff5f4;}
.ppp-thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none;background:#eef1f4;display:grid;place-items:center;}
.ppp-item-text{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px;overflow-wrap:anywhere;}
.ppp-item-text span{color:#5a6b7e;font-size:13px;}
#a-modal.pp-on .ppp-item .ppp-retry{min-height:44px;flex:none;margin:0;}
.ppp-count{margin-top:12px;font-size:14.5px;font-weight:600;color:#13202e;}
#a-modal.pp-on .ppp-count .pp-link{min-height:44px;display:inline-flex;align-items:center;}
.ppp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;margin-top:8px;}
.ppp-photo{display:block;aspect-ratio:1;min-height:44px;border-radius:10px;overflow:hidden;background:#eef1f4;}
.ppp-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.ppp-sub{margin-top:10px;font-size:13.5px;color:#5a6b7e;}

/* 📷 after the review: no box to save into, and Show all. */
.ppp-nobox{margin-top:8px;padding:10px 12px;border-radius:10px;border:1.5px solid #f3c58a;background:#fff3e0;color:#7a3d00;font-size:14.5px;line-height:1.45;}
#a-modal.pp-on .ppp-all{min-height:44px;width:100%;margin:8px 0 0;justify-content:center;font-size:15px;}
span.ppp-photo{display:block;}

/* "Review request sent" (or why it was not): nearly as big as the line above it, so it is read (Allan, 23 Nov 2026). */
#pp-review .act-msg{font-size:15px;font-weight:600;margin-top:8px;}

/* The Job DONE form button, once done: a second small line says so, and the button grows to hold it. */
#a-modal.pp-on #pp-sheet-bar .btn.pp-has-sub{flex-direction:column;height:auto;padding-top:8px;padding-bottom:8px;white-space:normal;line-height:1.25;}
.pp-btn-sub{display:block;font-size:13px;font-weight:600;margin-top:3px;}

/* "Paying later": bold and red wherever the pop-up says it, so it is not missed. The words carry it too. */
.pp-later{color:#b91c1c;font-weight:800;}

/* 🏁 Finishing a job (24 Nov 2026) */
/* The money step: its own mark in the dot, and one short second line under its word. */
.pp-dot-mark{font-size:12px;font-weight:800;line-height:1;}
.pp-step-sub{display:block;font-size:11px;font-weight:600;color:#5a6b7e;line-height:1.2;margin-top:1px;}
/* Before you go: where "Nothing left to do here" showed. Open lines are buttons a fingertip tall; done lines are plain. */
.pp-next-doneline{font-size:16px;font-weight:700;color:#17703f;text-align:center;padding:8px 0;}
#pp-next-done{text-align:left;padding:0;color:inherit;font-weight:400;}
.pp-byg-title{font-size:16px;font-weight:800;color:#13202e;padding:2px 0 8px;}
.pp-byg-line{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:8px 10px;margin:0 0 6px;
  border:1px solid #dde4ec;border-radius:10px;background:#fff;color:#13202e;font:inherit;text-align:left;cursor:pointer;}
/* Done lines are not buttons: one compact row each (the thing, then its words), so the whole list is mostly on one screen. */
.pp-byg-line.is-done{border-color:transparent;background:#f3f6f9;cursor:default;min-height:0;padding:7px 10px;margin-bottom:4px;}
/* Still open, for someone who may only look: the open line's frame, but plainly not a button (no chevron, no pointer). */
.pp-byg-line.is-plain{cursor:default;min-height:0;border-style:dashed;}
.pp-byg-line.is-busy{opacity:.55;}
.pp-byg-line.is-done .pp-byg-t{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 8px;}
.pp-byg-ic{flex:none;width:24px;text-align:center;font-size:17px;}
.pp-byg-t{flex:1;min-width:0;display:flex;flex-direction:column;}
.pp-byg-t > b{font-size:15.5px;}
.pp-byg-t > span{font-size:14px;color:#3d4c5e;overflow-wrap:anywhere;}
.pp-byg-line.is-done .pp-byg-t > span{color:#17603a;font-weight:600;}
.pp-byg-donehead{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#475569;margin:8px 0 6px;}
/* The foot of the work: the warning sits just above the bar; the other choice takes a row of its own. */
.pp-work-warn{background:#fff7e6;color:#8a4b00;border-top:1px solid #f1d9a8;padding:8px 14px;font-size:14px;font-weight:600;}
#pp-sheet-bar{flex-wrap:wrap;}
#a-modal.pp-on #pp-sheet-bar #pp-work-second{flex:1 1 100%;min-height:44px;}
