/* Price check (#/price-check, Wave 3b): left rail of units under review + right workspace, in the look of Lead Rotation › Rules (rotation.css). */
.pc [hidden] { display: none !important; }
.pc-count { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--teal-soft); border: 1px solid var(--teal-line); color: var(--teal); font-size: 13.5px; font-weight: 650; }
.pc-count i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

.pc-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.pc-lbl { display: block; font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }

/* ---- rail ---- */
.pc-rail { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 24px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pc-rail-toggle { display: none; }
.pc-rail-body { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 10px 10px 0; }
.pc-rail .fx { margin-bottom: 10px; padding: 10px; }
.pc-rail .fx-quick { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-rail .fx-pill, .pc-rail .fx-pill-main { width: 100%; }
.pc-rail .fx-search { flex: 1 1 100%; }
.pc-scope { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--purple-soft); border: 1px solid var(--purple-line); font-size: 13px; color: var(--ink); }
.pc-scope button { border: 0; background: none; color: var(--purple-dark); font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.pc-scope button:hover { text-decoration: underline; }
.pc-scope.warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.pc-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: auto; padding: 2px 2px 10px; } /* up / down passes on to the page (see .tbl-wrap) */
.pc-cards { display: grid; gap: 8px; }
.pc-none { margin: 20px 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.pc-card { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: background .15s, border-color .15s; }
.pc-card:hover { background: var(--gray-soft); }
.pc-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pc-card.on { background: var(--purple-soft); border-color: var(--purple); }
.pc-card input[type="checkbox"] { width: 17px; height: 17px; margin: 2px 0 0; }
.pc-card-body { min-width: 0; display: grid; gap: 2px; }
.pc-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pc-card-top b { font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card-price { font-size: 12.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.pc-card-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-state { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pc-state span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gray); }
.pc-dot.green { background: var(--green); }
.pc-dot.amber { background: var(--amber); }
.pc-dot.red { background: var(--red); }
.pc-foot { position: sticky; bottom: 0; display: grid; gap: 10px; margin: 0 -10px; padding: 12px 14px 14px; background: var(--white); border-top: 1px solid var(--line); }
.pc-all { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.pc-all:hover { color: var(--ink); }
.pc-all input { width: 16px; height: 16px; flex: none; }
.pc-foot-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---- big buttons ---- */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); color: var(--ink); font: 650 15.5px var(--font); cursor: pointer; transition: filter .15s, background .15s; }
.pc-btn .ico { width: 20px; height: 20px; }
.pc-btn:hover:not(:disabled) { background: var(--gray-soft); }
.pc-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.pc-btn:disabled { opacity: .45; cursor: not-allowed; }
.pc-btn.green { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 6px 16px var(--green-line); }
.pc-btn.green:hover:not(:disabled) { background: var(--green); filter: brightness(1.08); }
.pc-btn.ghost { color: var(--muted); }
.pc-foot .pc-btn { width: 100%; }

/* ---- workspace ---- */
.pc-work { min-width: 0; }
.pc-nothing { display: none; padding: 40px 16px; text-align: center; color: var(--muted); }
.pc-work.none .pc-nothing { display: block; }
.pc-work.none .pc-work-inner { display: none; }
.pc-box { margin: 0 0 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.pc-box h3 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.pc-help { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.pc-unit-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pc-unit h2 { margin: 0; font-size: 24px; color: var(--ink); }
.pc-unit-top p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.pc-now { text-align: end; }
.pc-now b { display: block; font-size: 24px; color: var(--ink); }
.pc-now small { font-size: 12.5px; color: var(--muted); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc-chip { padding: 3px 11px; border-radius: 999px; background: var(--purple-soft); border: 1px solid var(--purple-line); font-size: 12.5px; color: var(--purple-dark); }
.pc-why { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.pc-blocker { margin: 12px 0 0; padding: 9px 13px; border-radius: 10px; background: var(--red-soft); border: 1px solid var(--red-line); font-size: 13.5px; font-weight: 600; color: var(--red); }

.pc-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pc-toggle .ico { width: 16px; height: 16px; }
.pc-toggle:hover { color: var(--ink); background: var(--gray-soft); }
.pc-toggle[aria-pressed="true"] { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-dark); }
.pc-toggle:focus-visible, .pc-seg button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pc-area { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pc-area .pc-lbl { display: inline-flex; align-items: center; gap: 6px; }
.pc-area .ico { width: 15px; height: 15px; }
.pc-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--gray-soft); border-radius: 10px; }
.pc-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; font: 600 13px var(--font); color: var(--muted); }
.pc-seg button:hover { color: var(--ink); }
.pc-seg button[aria-pressed="true"] { background: var(--white); color: var(--purple-dark); box-shadow: 0 1px 3px rgba(28, 27, 37, .12), 0 0 0 1px var(--purple-line); }

#pcNumbers.busy #pcTiles, #pcNumbers.busy .pc-range { opacity: .55; transition: opacity .15s; }
.pc-found { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.pc-found b { color: var(--ink); font-size: 15px; }
.pc-wait { margin: 0; color: var(--muted); font-size: 13.5px; }
.pc-error { margin: 0; color: var(--red); font-size: 13.5px; }
.pc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pc-tile { padding: 12px 14px; border-radius: 12px; background: var(--tile); border: 1px solid var(--purple-line); }
.pc-tile b { display: block; margin-top: 3px; font-size: 18px; color: var(--ink); }
.pc-tile small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-range { padding: 0 56px; margin-top: 6px; }
.pc-range-bar { position: relative; height: 10px; margin: 40px 0 40px; border-radius: 999px; background: var(--gray-soft); }
.pc-range-bar i { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, var(--red-line), var(--amber-line), var(--green-line)); border: 1px solid var(--line-strong); }
.pc-mark { position: absolute; top: -5px; left: var(--pos, 0%); width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: var(--purple); transition: left .25s; }
.pc-mark b { position: absolute; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--purple); color: var(--white); font-size: 12px; white-space: nowrap; }
.pc-mark.now b { bottom: 26px; }
.pc-mark.new { background: var(--teal); }
.pc-mark.new b { top: 26px; background: var(--teal); }
.pc-mark.new.down, .pc-mark.new.down b { background: var(--amber); }
.pc-mark.out { opacity: .75; }
.pc-range-ends { display: flex; justify-content: space-between; margin: 16px -56px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.pc-tbl { --wrap-h: 380px; border: 1px solid var(--line); border-radius: 12px; }
.pc-tbl table.tbl th, .pc-tbl table.tbl td { padding: 10px 14px; }
.pc-tbl .col-use { text-align: end; width: 1%; }

.pc-price-head h3 { font-size: 16px; }
.pc-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 12px; }
.pc-input { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--white); color: var(--muted); font-size: 15px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.pc-input:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.pc-input input { width: 190px; max-width: 100%; border: 0; outline: 0; background: none; padding: 4px 0; font: 700 28px var(--font); color: var(--ink); }
.pc-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--ink); transition: opacity .15s; }
.pc-live.busy { opacity: .55; }
.pc-delta { padding: 4px 12px; border-radius: 999px; background: var(--gray-soft); font-weight: 700; }
.pc-delta.up { background: var(--green-soft); color: var(--green); }
.pc-delta.down { background: var(--red-soft); color: var(--red); }
.pc-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.pc-live + .pc-note { margin-top: 10px; }
.pc-note.warn { padding: 8px 12px; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); font-weight: 600; }

.pc-actions-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pc-actions-row .pc-btn { min-width: 220px; min-height: 54px; }
.pc-action-note { margin: 10px 0 0; text-align: end; font-size: 13px; color: var(--muted); }
.pc-action-note.warn { color: var(--red); font-weight: 600; }

/* ---- phone ---- */
@media (max-width: 860px) {
  .pc-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pc-rail { position: static; max-height: none; }
  .pc-rail-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; background: none; font: 600 14px var(--font); color: var(--muted); cursor: pointer; text-align: start; }
  .pc-rail-toggle:hover { color: var(--ink); background: var(--gray-soft); }
  .pc-rail-toggle b { flex: 1; color: var(--ink); }
  .pc-rail-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
  .pc-rail-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .pc-rail-body { display: none; max-height: 70vh; border-top: 1px solid var(--line); }
  .pc-rail.open .pc-rail-body { display: flex; }
  .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-range { padding: 0 40px; }
  .pc-range-ends { margin-inline: -40px; }
  .pc-actions-row { flex-direction: column-reverse; align-items: stretch; }
  .pc-actions-row .pc-btn { width: 100%; min-width: 0; }
  .pc-action-note { text-align: start; }
  .pc-now { text-align: start; }
  .pc-input input { width: 150px; }
  .pc-box { padding: 14px; }
}
/* The similar-units table scrolls inside itself, so the new price box stays close; room at the bottom for the Save bar. */
.pc .pc-tbl { max-height: 420px; }
.pc { padding-bottom: 88px; }
