/* Ratchet Phone (#/phone): setup steps, tracker, packing. shop.css tokens only. */
.ph-start { display: grid; gap: 16px; max-width: 820px; }
.ph-card { margin-bottom: 16px; }
.ph-card-head { margin-bottom: 12px; }
.ph-card-head h2 { font: 600 17px/1.25 var(--font-display); margin: 0; }
.ph-hint { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.ph-h3 { font-size: 13px; font-weight: 600; margin: 18px 0 8px; color: var(--ink-2); }
.ph-ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.ph-ticks li { position: relative; padding-left: 22px; font-size: 14px; }
.ph-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.ph-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ph-actions.start { justify-content: flex-start; }
.ph-msg:empty { display: none; }

/* stepper */
.ph-stepper { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ph-stepper li a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ph-stepper .ph-num { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--fill); font-size: 12px; font-weight: 600; }
.ph-stepper li.is-done .ph-num { background: var(--green); color: #fff; }
.ph-stepper li.is-now a { background: var(--fill); color: var(--ink); font-weight: 600; }
.ph-stepper li.is-now .ph-num { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .ph-stepper .ph-step-t { display: none; } .ph-stepper li.is-now .ph-step-t { display: inline; } }

/* fields */
.ph-field { display: grid; gap: 4px; margin-bottom: 12px; min-width: 0; }
.ph-label { font-size: 13px; font-weight: 600; }
.ph-field input, .ph-field select, .ph-field textarea, .ph-row input, .ph-row select, .ph-units input, .ph-group input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; min-width: 0; }
.ph-field textarea { resize: vertical; }
.ph-err { font-size: 12px; color: var(--red); }
.ph-err:empty { display: none; }
.ph-grid2, .ph-grid3 { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ph-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ph-grid3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.ph-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.ph-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ph-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ph-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.ph-inline select { width: auto; }

/* rows and chips */
.ph-rows { display: grid; gap: 10px; }
.ph-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 10px; border-radius: var(--r-m, 12px); background: var(--fill); }
@media (min-width: 900px) { .ph-row { grid-template-columns: minmax(130px, 1.2fr) minmax(110px, 1fr) minmax(110px, 1fr) auto auto auto; } .ph-row .ph-err { grid-column: 1 / -1; } }
.ph-pack .ph-row { background: none; padding: 0; grid-template-columns: minmax(0, 1fr) auto auto; }
.ph-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; justify-self: start; }
.ph-badge.is-ok { background: var(--green-soft, #e3f4e8); color: var(--green); }
.ph-badge.is-warn { background: #fff4ce; color: #7a5a00; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair-strong, #d6d6dc); background: transparent; color: var(--ink-2); cursor: pointer; }
.ph-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ph-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ph-group { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); }

/* catalog and units */
.ph-catalog { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ph-model { display: grid; gap: 3px; padding: 12px; border-radius: var(--r-m, 12px); background: var(--fill); align-content: start; }
.ph-model-pic { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.ph-model small { color: var(--ink-2); font-size: 12px; }
.ph-price { font-size: 12px; font-weight: 600; margin-top: 4px; }
.ph-steppers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 12px; }
.ph-qty { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-m, 12px); border: 1px solid var(--hair); font-size: 14px; }
.ph-qty-ctl { display: flex; align-items: center; gap: 8px; }
.ph-qty-ctl button { width: 30px; height: 30px; border-radius: 50%; padding: 0; font-size: 17px; line-height: 1; }
.ph-qty-n { min-width: 18px; text-align: center; font-weight: 600; }
.ph-units { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ph-units li { display: grid; gap: 6px; padding: 10px; border-radius: var(--r-m, 12px); background: var(--fill); }
.ph-total { font-weight: 600; font-size: 14px; }

/* calls, texting, review */
.ph-flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 12px; }
.ph-flow > li { padding: 12px; border-radius: var(--r-m, 12px); background: var(--fill); display: grid; gap: 8px; }
.ph-kv { display: grid; gap: 10px; margin: 0; }
.ph-kv dt { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ph-kv dd { margin: 2px 0 0; font-size: 14px; }
.ph-samples { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.ph-sum-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; align-items: baseline; }
.ph-sum-row strong { font-weight: 600; overflow-wrap: anywhere; }

/* tracker */
.ph-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ph-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
.ph-track { list-style: none; margin: 0; padding: 0; }
.ph-track-item { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.ph-track-item:last-child { border-bottom: 0; }
.ph-track-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ph-sub { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ph-unit-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-unit-line > span:first-child { flex: 1; min-width: 160px; }
.ph-sim { display: grid; gap: 8px; }
.ph-sim .btn, .ph-sim button { justify-content: center; text-align: center; }
.ph-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; max-height: 360px; overflow-y: auto; }

/* packing */
.ph-pack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ph-pack > li { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 720px) { .ph-pack > li { grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); } }
.ph-pack > li > span:first-child { display: flex; flex-direction: column; }
.ph-pack small { color: var(--ink-2); font-size: 12px; }
.ph-pack code { font-size: 13px; }
.ph-flow > li > button { justify-self: start; }

/* Batch 30 (UI_COVERAGE.md, stream B): Settings › Phone system's cards (batch 31 §4) under the shared band look (stream A's .band: the accent, white heavy
   italic, square). Markup unchanged: a panel whose first child is its heading (or a head row holding it) gets the band. */
body.shop-on :is(section.card.ph-card):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-top: 0; padding-left: 18px; padding-right: 18px; }   /* no overflow clip: rows, menus and popovers stay reachable */
body.shop-on :is(section.card.ph-card) > h2:first-child,
body.shop-on :is(section.card.ph-card) > :is(div, header):first-child:has(> h2) { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 9px 18px; min-height: 44px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink, #fff); border-radius: 3px 3px 0 0; }
body.shop-on :is(section.card.ph-card) > :is(div, header):first-child > h2 { margin: 0; }
body.shop-on :is(section.card.ph-card) > h2:first-child, body.shop-on :is(section.card.ph-card) > :is(div, header):first-child > h2 { color: var(--accent-ink, #fff);
  font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.004em; }
body.shop-on :is(section.card.ph-card) > :is(div, header):first-child:has(> h2) :is(span, small, label, p, .ph-hint, .cp-fine, a:not(.btn)) { color: inherit; }
body.shop-on :is(section.card.ph-card) > :is(div, header):first-child:has(> h2) :is(button.quiet, .btn.quiet) { color: inherit; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) { body.shop-on :is(section.card.ph-card) > h2:first-child, body.shop-on :is(section.card.ph-card) > :is(div, header):first-child > h2 { font-size: 19px; } body.shop-on :is(section.card.ph-card):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-left: 14px; padding-right: 14px; } body.shop-on :is(section.card.ph-card) > h2:first-child, body.shop-on :is(section.card.ph-card) > :is(div, header):first-child:has(> h2) { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }
/* U41-B: what Ratchet read from an uploaded bill, and where each value came from */
.ph-read { display: grid; gap: 6px; }
.ph-found { font-size: 13px; }
.ph-found ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.ph-found li { overflow-wrap: anywhere; }
