/* Styles for the deals pages (payment plans, opportunities, offers, reservations, approvals). */
.muted-title { color: var(--c-faint); font-weight: var(--fw-semibold); font-size: .7em; }
.pad0 { margin: 0 0 10px; }
.warn { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--c-warning-soft); color: var(--c-warning); border: 1px solid var(--c-warning-line); font-size: var(--fs-hint); }
.refund { color: var(--c-danger); }

/* Schedule */
.sched-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.sched-sum div { background: var(--c-neutral-soft); border-radius: var(--r-md); padding: 8px 10px; display: grid; gap: 2px; }
.sched-sum span { font-size: var(--fs-hint); color: var(--c-faint); font-weight: var(--fw-semibold); }
.sched-sum b { font-size: var(--fs-body); color: var(--c-ink); font-variant-numeric: tabular-nums; }
/* The payment schedule = annex 2 of the contract file (Sami 2026-11-14): البيان · التاريخ · المبلغ (ج م) · %, right to left, centred like the sheet. */
table.sched { font-family: Cairo, var(--font); font-variant-numeric: tabular-nums; }
table.sched td, table.sched th { padding: 7px 10px; text-align: center; }
table.sched th { background: var(--c-neutral-soft); color: var(--c-ink); font-weight: var(--fw-semibold); border-bottom: 2px solid var(--c-line-strong); }
table.sched td { font-weight: var(--fw-semibold); color: var(--c-text); }
table.sched td:first-child, table.sched th:first-child { text-align: right; white-space: normal; } /* a long name (وديعة الصيانة + its tag) wraps instead of pushing the table out of a narrow panel */
table.sched td:nth-child(n+2) { direction: ltr; unicode-bidi: isolate; } /* "24 Nov 2026" and numbers read left to right in the Arabic table */
table.sched td.sched-pct { color: var(--c-muted); font-weight: var(--fw-medium); }
table.sched tr.k-down_payment td { background: var(--c-accent-soft); color: var(--c-ink); font-weight: var(--fw-semibold); }
table.sched tr.k-delivery td { color: var(--c-ink); }
table.sched tr.k-outside td { color: var(--c-muted); font-weight: var(--fw-medium); }
.sched-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-neutral-soft); font-size: var(--fs-hint); }
table.sched tfoot td { font-weight: var(--fw-semibold); color: var(--c-ink); border-top: 2px solid var(--c-line-strong); border-bottom: 0; }
.offer-preview { margin-top: 14px; border-top: 1px solid var(--c-line); padding-top: 12px; }

/* Offers on the opportunity page */
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.offer-list li:last-child { border-bottom: 0; }
.offer-main { display: grid; gap: 3px; min-width: 0; }
.offer-price { text-align: end; display: grid; align-content: start; }
.offer-price b { font-size: var(--fs-body); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.offer-price small { color: var(--c-faint); font-size: var(--fs-hint); }
.offer-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }

/* Reservation card */
.res-card { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 10px; }
.res-card.soft { background: var(--c-warning-soft); border-color: var(--c-warning-line); }
.res-card.firm { background: var(--c-success-soft); border-color: var(--c-success-line); }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--c-ink); }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.res-history { margin-top: 12px; font-size: var(--fs-hint); color: var(--c-muted); }
.res-history summary { cursor: pointer; font-weight: var(--fw-semibold); }
.res-history summary:hover { color: var(--c-accent-text); }
.res-history ul { margin: 8px 0 0; padding-inline-start: 18px; line-height: 1.8; }

.opp-mini { list-style: none; margin: 0; padding: 0; }
.opp-mini li { display: grid; gap: 2px; padding: 9px 16px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-table); }
.opp-mini li:last-child { border-bottom: 0; }
.opp-mini a { color: var(--c-ink); text-decoration: none; font-weight: var(--fw-semibold); }
.opp-mini small { color: var(--c-faint); }

/* Lead picker in the new-opportunity dialog */
.picker { position: relative; }
.picker input { width: 100%; }
.picker-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--r-md); box-shadow: 0 10px 24px rgba(54,52,61,.12); max-height: 240px; overflow-y: auto; }
.picker-results[hidden] { display: none; }
.picker-results button { display: grid; gap: 2px; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--c-line); padding: 8px 11px; cursor: pointer; font: inherit; color: var(--c-ink); }
.picker-results button:hover { background: var(--c-select); }
.picker-results small { color: var(--c-faint); font-weight: var(--fw-medium); }

/* Approvals */
.appr-list { list-style: none; margin: 0; padding: 0; }
.appr-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); align-items: start; }
.appr-list li:last-child { border-bottom: 0; }
.appr-main { display: grid; gap: 4px; min-width: 0; color: var(--c-ink); }
.appr-detail { font-size: var(--fs-table); color: var(--c-text); line-height: 1.6; }
.appr-reason { display: block; margin-top: 4px; font-size: var(--fs-hint); color: var(--c-muted); font-style: italic; }
/* Details, look A (Riyadh 2026-11-17): price first, terms as chips, one amber line per warning */
.appr-price { font-weight: var(--fw-semibold); color: var(--c-ink); font-size: var(--fs-body); }
.appr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.appr-custom { background: var(--c-ink); color: var(--c-card); border-color: var(--c-ink); font-weight: var(--fw-semibold); }
.appr-disc { font-size: var(--fs-hint); margin-top: 2px; }
.appr-place { display: flex; width: fit-content; margin-top: 4px; } /* "First to pick the unit" under the request name (DECISIONS #340) */
.appr-warns { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.appr-warns li { font-size: var(--fs-hint); color: var(--c-warning); background: var(--c-warning-soft); border: 1px solid var(--c-warning-line); border-radius: var(--r-md); padding: 3px 8px; }
.appr-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

@media (max-width: 860px) {
  .appr-list li, .offer-list li { grid-template-columns: 1fr; }
  .appr-acts { justify-content: flex-start; }
  .offer-price { text-align: start; }
}

/* Printable offer */
#printArea { display: none; }
@media print {
  body.printing-offer > *:not(#printArea) { display: none !important; }
  body.printing-offer #printArea { display: block; }
  body.printing-offer { background: var(--c-card); display: block; }
  @page { size: A4; margin: 14mm; }
}
.po { color: #222; font-size: var(--fs-hint); }
.po-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid var(--c-ink); padding-bottom: 10px; margin-bottom: 14px; }
.po-brand { display: flex; gap: 10px; align-items: center; }
.po-logo { width: 40px; height: 36px; display: grid; place-items: center; flex: none; }
.po-logo img, .po-logo svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.po-brand b { display: block; font-size: var(--fs-section); color: var(--c-ink); }
.po-brand small { color: var(--c-muted); }
.po-meta { text-align: end; color: var(--c-muted); line-height: 1.6; }
.po-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.po-grid h4 { margin: 0 0 4px; font-size: var(--fs-hint); letter-spacing: 1px; text-transform: uppercase; color: var(--c-faint); }
.po-grid p { margin: 0; line-height: 1.6; }
.po-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.po-price div { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 6px 8px; display: grid; gap: 2px; }
.po-price span { font-size: 10px; color: var(--c-faint); text-transform: uppercase; letter-spacing: .5px; }
.po-price b { font-size: var(--fs-hint); }
.po table.sched th, .po table.sched td { padding: 4px 8px; font-size: var(--fs-hint); }
.po-note { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--c-line); color: var(--c-faint); font-size: var(--fs-hint); } /* the same footer as .pp-foot of the Master plan PDF */

/* Neravo look: page header eyebrow, links row, filter card */
.topbar .eyebrow { font-size: var(--fs-hint); font-weight: var(--fw-medium); letter-spacing: .6px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.opp-note { margin: 0 0 8px; font-size: var(--fs-table); }
.opp-filters { margin-bottom: 16px; }
.opp-bar { border-bottom: 0; padding: 16px; }
.opp-bar select { min-width: 170px; }
.opp-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 14px; align-items: end; margin: 0 16px 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.opp-adv[hidden] { display: none; }
.opp-name { white-space: normal; }
.opp-name b { display: block; color: var(--c-ink); font-size: var(--fs-body); }
.opp-name small { display: block; color: var(--c-faint); font-size: var(--fs-hint); }
.opp-value { color: var(--c-success); font-weight: var(--fw-semibold); }
.modal-foot .btn[hidden] { display: none; }

/* New-opportunity step builder */
.opp-steps { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.opp-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-table); color: var(--c-faint); font-weight: var(--fw-medium); }
.opp-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-neutral-soft); color: var(--c-muted); font-size: var(--fs-hint); font-weight: var(--fw-semibold); }
.opp-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--c-line-strong); }
.opp-steps li.on { color: var(--c-ink); font-weight: var(--fw-semibold); }
.opp-steps li.on span { background: var(--c-btn); color: var(--c-card); }
.opp-steps li.done span { background: var(--c-success-soft); color: var(--c-success); }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pick-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; text-align: start; font: inherit; color: var(--c-ink); background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.pick-card:hover { border-color: var(--c-ink); background: var(--c-select); }
.pick-card.on { border-color: var(--c-btn); box-shadow: inset 0 0 0 1px var(--c-btn); background: var(--c-card); }
.pick-main { display: grid; gap: 3px; min-width: 0; }
.pick-main small { color: var(--c-faint); font-size: var(--fs-hint); }
.pick-side { white-space: nowrap; font-size: var(--fs-table); }
.opp-sum { margin-bottom: 12px; }

/* Opportunity detail: header card, lead card */
.opp-head { padding: 18px 20px; margin-bottom: 16px; display: grid; gap: 12px; overflow: visible; }
.opp-back { color: var(--c-muted); font-size: var(--fs-body); text-decoration: none; justify-self: start; }
.opp-back:hover { color: var(--c-ink); }
.opp-title { display: grid; gap: 8px; min-width: 0; }
.opp-eyebrow { color: var(--c-muted); font-size: var(--fs-hint); }
.opp-title h1 { margin: 0; font-size: var(--fs-title); font-weight: var(--fw-semibold); color: var(--c-ink); overflow-wrap: anywhere; }
.opp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--fs-body); color: var(--c-ink); }
.opp-chip { border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); padding: 2px 8px; font-size: var(--fs-hint); color: var(--c-text); }
.opp-lead-line { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 10px; font-size: var(--fs-body); color: var(--c-muted); }
.opp-lead-line b { color: var(--c-ink); }
.opp-head-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--c-line); }
.opp-lead { display: flex; gap: 12px; align-items: center; }
.opp-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--c-neutral-soft); color: var(--c-muted); font-weight: var(--fw-semibold); flex: none; }
.opp-lead-name { color: var(--c-btn); font-weight: var(--fw-semibold); font-size: var(--fs-section); text-decoration: none; }
.opp-lead-name:hover { text-decoration: underline; }
.pick-list .empty-state, .pick-list .loading { grid-column: 1 / -1; padding: 24px 12px; }
.modal-body section[data-step="1"] { min-height: 280px; }
.modal-body section[hidden] { display: none; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .opp-bar select, .opp-bar .grow { flex: 1 1 100%; }
  .opp-head { padding: 14px; }
}

/* M4 S5: custom plan, live NPV, unofficial print (spec R9, R14) */
.npv-box { border: 1px solid var(--c-line); border-radius: var(--radius, 10px); padding: 10px 14px; margin: 10px 0; display: grid; gap: 4px; }
.npv-box.beyond { border-color: var(--amber, #d97706); }
.npv-box.na { color: var(--c-muted); }
.npv-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.npv-main b { font-size: var(--fs-title); }
.npv-info { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-hint); color: var(--c-muted); }
.po-unofficial { position: relative; }
.po-wm { display: none; }
.po-foot { margin-top: 12px; font-size: 10px; color: var(--c-faint); text-align: center; }
@media print {
  .po-wm { display: grid; position: fixed; inset: 0; place-items: center; text-align: center; font-size: 56px; font-weight: var(--fw-semibold); line-height: 1.3; color: rgba(0, 0, 0, .09); transform: rotate(-30deg); pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .po-unofficial .po-foot { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; }
}
@media (max-width: 560px) { .npv-main b { font-size: var(--fs-section); } }

/* Offer dialog and list (M4 S3b + S4) */
.check[hidden], .field[hidden] { display: none; }
.others-list { margin: 6px 0 0; padding-inline-start: 18px; }
/* Approvals table: the buttons stack in a narrow column so the row fits at 1440 without sideways scrolling. */
.appr-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 110px; } /* row action icons side by side (DECISIONS #118) */
.appr-stack .muted-small { flex-basis: 100%; }
.appr-stack .btn.ghost { border-color: var(--c-line); }
.appr-stack .btn { justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
td.appr-detail { min-width: 260px; } /* the price, its chips and a warning line read on one line each, also when the table scrolls on a phone */
td.appr-detail .badge { white-space: normal; }
table.tbl td small.block, table.tbl td .badge.block { display: block; width: fit-content; }
table.tbl td.right .badge.block { margin-inline-start: auto; }
.appr-queue { margin: 0; padding-inline-start: 18px; font-size: var(--fs-hint); }
.appr-queue .me { font-weight: var(--fw-semibold); }

/* New offer pop-up (DECISIONS #116, #117): fixed size, the content scrolls (#74). Left the form; right the unit card and "Your offer". */
dialog.modal.nof-pop { width: min(1080px, 96vw); height: min(860px, 94vh); max-height: 94vh; }
.nof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-5); align-items: start; }
.nof-form { display: grid; gap: var(--sp-4); align-content: start; }
.nof-form .field { margin: 0; }
.nof-chip { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-danger-soft); color: var(--c-danger); border: 1px solid var(--c-danger-line); font-size: var(--fs-hint); font-weight: var(--fw-semibold); white-space: nowrap; }
.nof-chip.strong { background: var(--c-danger); color: var(--c-card); border-color: var(--c-danger); }
.nof-side { display: grid; gap: var(--sp-3); align-content: start; }
.nof-side .mp-card-empty { border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg); }
/* the unit card */
.nof-card { display: grid; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-tile); }
.nof-card-head { display: flex; align-items: flex-start; gap: 10px; }
.nof-card-head > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.nof-card-head h2 { margin: 0; font-size: var(--fs-title); line-height: 1.1; color: var(--c-ink); }
.nof-card-head small { color: var(--c-muted); font-size: var(--fs-table); }
.nof-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nof-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-card); font-size: var(--fs-table); }
.nof-facts b { font-weight: var(--fw-semibold); color: var(--c-ink); }
.nof-fi { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c-select); color: var(--c-text); }
.nof-fi .ico { width: 14px; height: 14px; }
.nof-price-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-card); border: 1px solid var(--c-line); }
.nof-pr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-table); color: var(--c-text); }
.nof-pr > span { display: grid; min-width: 0; }
.nof-pr small { color: var(--c-faint); font-size: var(--fs-hint); }
.nof-pr b { font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.nof-pr.sep b::after { content: " separately"; font-weight: var(--fw-medium); color: var(--c-faint); font-size: var(--fs-hint); }
.nof-pr.total { padding-top: 8px; border-top: 1px solid var(--c-line); font-weight: var(--fw-semibold); }
.nof-pr.total b { font-size: var(--fs-section); }
.nof-pr.aside { color: var(--c-muted); }
.nof-pr.aside b { color: var(--c-muted); font-weight: var(--fw-medium); }
/* Your offer */
.nof-sum { display: grid; gap: 8px; padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--card-shadow); } /* no side accent line: refused on every screen (Sami) */
.nof-sum h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: var(--fs-section); font-weight: var(--fw-semibold); color: var(--c-ink); }
.nof-sum h3 .ico { width: 18px; height: 18px; color: var(--c-muted); }
.nof-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--fs-table); color: var(--c-text); }
.nof-line b { font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.nof-line.off b { color: var(--c-danger); } /* discounts = money off the price: red (Sami 2026-11-08) */
.nof-line.sub { padding-top: 8px; border-top: 1px dashed var(--c-line); font-weight: var(--fw-semibold); }
.nof-after { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-neutral-soft); border: 1px solid var(--c-line); } /* the price itself: neutral, not a gain or a loss */
.nof-after span { font-weight: var(--fw-semibold); color: var(--c-text); }
.nof-after b { font-size: var(--fs-kpi); line-height: 1.1; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* extra discount: % or EGP */
.nof-disc { display: flex; align-items: stretch; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-card); overflow: hidden; }
.nof-disc:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-ink); }
.nof-seg { display: flex; padding: 3px; gap: 2px; background: var(--c-neutral-soft); border-inline-end: 1px solid var(--c-line); }
.nof-seg button { min-width: 44px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-muted); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; }
.nof-seg button.on { background: var(--c-card); color: var(--c-ink); box-shadow: 0 1px 2px rgba(35, 31, 32, .12); }
.nof-seg button:not(.on):hover { background: var(--c-select-line); color: var(--c-ink); } /* hover (said-once #4, 2026-11-14) */
.nof-seg button:focus-visible { outline: 2px solid var(--c-info); outline-offset: 1px; }
.nof-disc input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; font-variant-numeric: tabular-nums; }
.nof-hint { display: block; margin-top: 4px; color: var(--c-muted); font-size: var(--fs-hint); font-variant-numeric: tabular-nums; }
/* A field the server would refuse says why under it, in red, the same look as the lead form's email and mobile (Sami 2026-11-20) */
.field small.nof-err { color: var(--c-danger); }
.nof-err[hidden] { display: none; }
.nof-form .field input[aria-invalid="true"] { border-color: var(--c-danger); }
.nof-typed { display: block; color: var(--c-faint); font-size: var(--fs-hint); }
dialog.nof-pop .modal-foot .btn.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 760px) {
  .nof { grid-template-columns: minmax(0, 1fr); }
  .nof-after b { font-size: var(--fs-title); }
  .nof-side .nof-sum { order: -1; }
}

/* New offer: the plan's code (and Ended / Upcoming) on the Your offer card (DECISIONS #185) */
.nof-sum h3 .nof-plan { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nof-code { padding: 1px 8px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-tile); color: var(--c-muted); font-size: var(--fs-hint); font-weight: var(--fw-semibold); white-space: nowrap; }

/* Browse all plans (public/js/planBrowser.js): fixed size (#74), the list scrolls */
dialog.modal.pb-pop { width: min(980px, 96vw); height: min(820px, 92vh); }
.pb { display: flex; flex-direction: column; gap: var(--sp-3); }
.pb-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--c-muted); font-size: var(--fs-hint); }
.pb-note .ico { width: 14px; height: 14px; }
.pb .sbox-h { min-height: 48px; padding-block: var(--sp-2); }
.pb-list { display: flex; flex-direction: column; }
.pb-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 190px auto; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-4); border-top: 1px solid var(--c-line); }
.pb-row:first-child { border-top: 0; }
.pb-row.on { background: var(--c-accent-soft); }
.pb-main { display: flex; flex-direction: column; min-width: 0; }
.pb-main b { font-weight: var(--fw-semibold); color: var(--c-ink); }
.pb-main small, .pb-when small { color: var(--c-muted); font-size: var(--fs-hint); }
.pb-code { color: var(--c-muted); font-size: var(--fs-hint); font-weight: var(--fw-semibold); }
.pb-when { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; font-size: var(--fs-hint); color: var(--c-text); }
.pb-when small { grid-column: 2; }
@media (max-width: 640px) {
  .pb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pb-code, .pb-when { grid-column: 1; }
  .pb-row .btn { grid-row: 1 / span 3; grid-column: 2; }
}
.opn-plan-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.opn-plan-code small { color: var(--c-muted); font-size: var(--fs-hint); }
.opn-plan-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.opn-plan-now small { color: var(--c-muted); font-size: var(--fs-hint); }
