/* The phone's progress check screens (assets/phone-progress-check.js, switch phone_progress_check). Every rule starts at .ppc, a section the
   script makes only when the switch is on, so with it off nothing here matches anything. Nest rules: one pinned main action, small secondary
   actions, pills 999 px, every other corner 2 px, 44 px targets, the --nest tokens (with plain fallbacks when Nest is off). */
.ppc { --c-teal: var(--nest-teal, var(--sn-teal, #1F5C5B)); --c-ink: var(--nest-ink, #1F2A33); --c-soft: var(--nest-soft, #3B4A47); --c-mut: var(--nest-muted, #5D6A70);
  --c-line: var(--nest-line, #C9CFC9); --c-card: var(--nest-card, #F8F9F6); --c-field: var(--nest-field, #fff); --c-notice: var(--nest-notice, #E3EDEA); --c-bad: var(--nest-danger, #A83232);
  display: flex; flex-direction: column; min-height: calc(100dvh - 120px); color: var(--c-ink); }
.ppc[hidden] { display: none; }
.ppc-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-bottom: 12px; }
.ppc-line, .ppc-text { margin: 0; line-height: 1.4; }
.ppc-lead { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.ppc-hint, .ppc-step { margin: 0; color: var(--c-mut); font-size: .875rem; }
.ppc-center { text-align: center; }
.ppc-place { margin: 0; font-weight: 700; font-size: 1.1rem; }
.ppc-sum { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.ppc-ok { margin: 0; padding: 8px 10px; background: var(--c-notice); border-radius: 2px; font-weight: 600; }
.ppc-warn { margin: 0; color: var(--c-bad); font-weight: 600; }
.ppc-working { margin: 0; color: var(--c-mut); }
.ppc-k { margin: 0 0 4px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mut); }
.ppc-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 2px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ppc-card p { margin: 0; }
.ppc-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--c-line); text-align: left; }
.ppc-card .ppc-k + .ppc-row { border-top: 0; }
.ppc-row > span:last-child:not(:first-child) { color: var(--c-mut); text-align: right; }
.ppc .ppc-row-button > span:first-child { flex: 1; text-align: left; }
.ppc .ppc-row-button { border-radius: 0 !important;   /* the app's own button corners must not round a list row (the first run in the native shell showed a curved outline on the second row) */ width: 100%; min-height: 44px; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; cursor: pointer; }
.ppc-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 600; background: #F6ECCF; color: #7A5A08; }
.ppc-p1 { background: #F8E6E1; color: #A53A27; }
.ppc-p3, .ppc-p4 { background: #E2F0E6; color: #2C6B41; }
.ppc-pair, .ppc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ppc-shots { grid-template-columns: repeat(3, 1fr); }
.ppc-shot { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.ppc-shot small { color: var(--c-mut); font-size: .75rem; }
.ppc-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--c-line); }
.ppc-none { margin: 0; box-sizing: border-box; display: grid; place-items: center; text-align: center; min-height: 80px; aspect-ratio: 4 / 3; border: 1px dashed var(--c-line); border-radius: 2px; color: var(--c-mut); font-size: .8rem; padding: 6px; }
.ppc-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ppc-ans { min-height: 44px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-field); color: var(--c-soft); font: inherit; font-weight: 600; cursor: pointer; }
.ppc-ans[aria-pressed="true"] { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.ppc-field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.ppc-field :is(textarea, select, input) { font: inherit; font-size: 16px; font-weight: 400; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 2px; background: var(--c-field); color: var(--c-ink); min-height: 44px; }
.ppc-out { font-size: .85rem; font-weight: 600; }
.ppc-o-fixed { color: #2C6B41; } .ppc-o-worse { color: #A53A27; } .ppc-o-part_done { color: #7A5A08; } .ppc-o-none { color: var(--c-bad); }
.ppc-small { min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--c-teal); font: inherit; font-weight: 600; cursor: pointer; }
.ppc-add { display: inline-flex; }
.ppc-add-defect, .ppc-entry, .ppc-home { border-radius: 999px; }
.ppc-home { margin-top: 12px; }
.ppc-card > .ppc-row-button:first-child { border-top: 0; }
.ppc-story { font-weight: 600; }
.ppc-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.ppc-choice { min-height: 88px; border-radius: 2px; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-ink); font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.ppc-entry { margin-top: 8px; }
.ppc-sheet { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--c-field); border: 1px solid var(--c-teal); border-radius: 2px; }
.ppc-results { display: flex; flex-direction: column; }
.ppc-result { min-height: 44px; text-align: left; background: none; border: 0; border-top: 1px solid var(--c-line); font: inherit; color: var(--c-ink); cursor: pointer; }
.ppc-chosen { margin: 0; font-weight: 600; }
/* the one pinned main action, with the small actions under it, on a bar that keeps clear of the screen's foot */
.ppc-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 10px 0 max(12px, env(safe-area-inset-bottom, 0px)); background: var(--nest-mist, var(--sn-mist, #EAEEEC)); }
.ppc-bar:empty { display: none; }
.ppc-main { border-radius: 999px; min-height: 48px; width: 100%; text-decoration: none; }
.ppc-main:disabled { opacity: .55; }
.ppc-bar .ppc-small { align-self: center; }
.ppc-actions { display: flex; flex-direction: column; align-items: center; gap: 0; }   /* the small actions on the item screen scroll with the content: only Next defect is pinned */
.ppc-field textarea { scroll-margin-bottom: 96px; }   /* a focused note box scrolls up clear of the pinned button, with or without the keyboard */
.ppc-addtile { padding: 0; }
.ppc-none > .ppc-add { display: flex; align-self: stretch; justify-self: stretch; }   /* the whole empty photo tile is the one Add photo control */
.ppc-none > .ppc-add > .ppc-small { flex: 1; min-height: 0; border-radius: 0 !important; }   /* square, so its corners answer a tap too */
html[data-phone-screen^="progress-"]:not(#progress-x) body { background: var(--nest-mist, var(--sn-mist, #EAEEEC)); }

/* the photo actions sit under the captions, side by side; several after pictures share the picture's width */
.ppc-photoacts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: -4px; }
.ppc-afters { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 4px; }
html.ph-keyboard-open .ppc-bar { position: static; }
/* Home: the Progress reports entry is drawn in assets/phone-nest.css with the Reports entry, as two rows of one card under the list (#1230) */

html body .ppc button.ppc-row-button { border-radius: 0; }   /* the app's own button rounding must not curve a row's rule */
#progress-remap select { min-height: 48px; width: 100%; }
#progress-remap .ppc-body { overflow-wrap: anywhere; }
