/* Redundancy sweep Oct 30 · buy */
/* Finish check: green when the seller owes you, red when you owe them (Oct 30 colour rule) */
.pe-big.rdb-grn{color:#0F6B53}

/* Where you'll check (Oct 30, build Nov 1o): two choice rows with a round radio */
.bf-wheres{display:flex;flex-direction:column;background:#fff;border:1px solid #EFEBE2;border-radius:12px;overflow:hidden}
.bf-where{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:56px;padding:12px 16px;border:0;background:#fff;color:#16202B;text-align:left;font:inherit;cursor:pointer}
.bf-where+.bf-where{border-top:1px solid #EFEBE2}
.bf-radio{flex:0 0 22px;width:22px;height:22px;border-radius:50%;border:1.5px solid #D9D3C6;box-sizing:border-box;margin-top:1px;background:#fff}
.bf-where.on .bf-radio{border:6px solid #0F6B53}
.bf-where-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.bf-where-t b{font-size:16px;line-height:22px;font-weight:600}
.bf-where-t span{font-size:13px;line-height:18px;color:#6D6A60}
.bf-wheres.compact{flex-direction:row}
.bf-wheres.compact .bf-where{flex:1;min-height:48px;align-items:center}
.bf-wheres.compact .bf-where+.bf-where{border-top:0;border-left:1px solid #EFEBE2}
#mainView #npPlan .nq-sec{padding:14px 16px 6px}

/* Order page: the main button with a text link under it */
.bf-dock-col{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:2px}
.bf-later{min-height:44px;font-size:15px;align-self:center}

/* Pay sheets: amount chips and the line under them */
.bf-amt-chips{justify-content:center;gap:6px;margin:14px 0 2px}
.bf-amt-chips .nq-chip{min-height:44px;padding:0 13px}
#payModal.bf-sheet .bf-amt-chips~.ps-err{margin:12px 0 10px;text-align:center}
#payModal.bf-sheet .ps-note.bf-line{display:block;text-align:center;color:#6D6A60;margin:12px 0 18px;line-height:1.35}
.ps-note.bf-line .amb{color:#9A5B00}
.bf-cl-q{text-align:center;font-size:16px;color:#16202B;margin-top:10px}
#payModal.bf-sheet .bf-cl .ps-hero{padding-top:8px}
#payModal.bf-sheet .ps-go:disabled{opacity:.45}
/* Nov 1o polish: amount chips stay on one line at phone width */
.bf-amt-chips,.bf-pk-chips{flex-wrap:nowrap !important;justify-content:center;gap:6px !important}
.bf-amt-chips .nq-chip,.bf-pk-chips .nq-chip,.bf-pk{padding-left:12px !important;padding-right:12px !important;white-space:nowrap;flex:0 1 auto;min-width:0}

/* ===== Build Nov 1p · Buy stress test fixes ===== */
/* Buy now: "Recorded · 15 Pro 128GB · $380" after a buy */
#pickupView .pk-rec{display:flex;align-items:center;gap:8px;margin:4px 0 16px;font-size:16px;line-height:22px;color:#16202B;font-variant-numeric:tabular-nums}
#pickupView .pk-rec-ok{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#0F6B53;color:#fff;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
/* New quote: a phone with no price yet */
#mainView #rows .np-sum-p .nq-need-p{color:#A12B21;font-weight:600;font-size:15px}
/* phone names wrap instead of "…" mid-word at 320 */
#mainView #rows .np-sum-t,#rows .np-sum-t{white-space:normal !important;overflow:visible !important;text-overflow:clip !important;overflow-wrap:anywhere}
/* Import a seller's list: a 44px target, spaced from + Add phone */
.nq-import{min-height:44px;margin-top:8px;display:inline-flex !important;align-items:center}
#mainView #flags .flag{font-size:13px}
#mainView .np-meta .act{white-space:nowrap}
#mainView #spSrc{font-size:13px;color:#6D6A60}
/* order page phone rows: struck quote (faint, 13px) and a price that went up (amber) */
.calm-row .bf-was{color:#9C978C;font-weight:400;font-size:13px}
.calm-row .bf-up{color:#9A5B00}
/* order top: the date line is muted, stage names 13px, the order code is a 44px target */
.pt3-ref{color:#6D6A60 !important}
.pt3-ref .pt3-dot{color:#6D6A60}
.pt3 .calm-stages>div{font-size:13px !important}
.pt3 .st-note{font-size:13px}
.pt3-ref .code-chip{min-height:44px !important;margin:-14px 0 !important}
/* ⋯ sheet section labels and the plan sheet header */
#calmSheet .cs-h{font-size:13px;letter-spacing:.4px}   /* caps labels .4px everywhere (Nov 3h) */
/* pickup check: the line under "Checking", "quoted" on the phone card */
.pl-title small{font-size:13px}
.pc3-p small{font-size:13px}
/* request page: "Not checked" tag (AA on fill), the seller's phone as a 44px target */
.bf-tag{font-size:13px;color:#16202B}
.bf-tel{display:inline-flex;align-items:center;min-height:44px}
/* Buy Orders: "Check IMEIs" and "+ New" are 44px targets (+ New still looks 40px) */
.bf-btn{min-height:44px}
/* (Fits #7, Oct 30: the shared rule in rd_shared.css draws it 40px with a 44px tap area) */
/* the pay sheets: the line under the amount is grey, the button one line */
#payModal.bf-sheet .ps-note.bf-line{color:#6D6A60}
#payModal.bf-sheet .ps-go{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* pickup check with no phones */
.pu-empty{padding-top:28px;text-align:center}
.pu-empty .pe-sub{margin-top:8px}
@media (max-width:760px){
  /* the bottom bar sits right on the tab bar (59px tall): no 5px gap */
  .calm-dock,#mainView .nq-bar{bottom:calc(59px + env(safe-area-inset-bottom)) !important}
  /* Buy now step 2: the button bar is pinned above the tab bar (also when iCloud is on) */
  #pickupView .pk2-bar{position:fixed !important;left:0;right:0;bottom:calc(59px + env(safe-area-inset-bottom));margin:0 !important;z-index:40}
  #pickupView .pk2::after{content:"";display:block;height:130px}
}
/* ===== build Nov 1q · IMEI required at the check (mockup mock_imei_check, screens 1–7) ===== */
/* the seller's answer and "no check" are plain facts: fill tag, ink text */
.pc3-tag.said{background:#ECE9E1;color:#16202B}
.pc3-i.pu-noid{color:#6D6A60}
/* the IMEI box (16px+ input) and the camera under it */
.pu-imei{margin-top:12px;background:#fff;border:2px solid #0F6B53;border-radius:12px;padding:8px 12px 6px}
.pu-imei label{display:block;font-size:13px;color:#6D6A60}
.pu-imei input{width:100%;border:0;outline:0;padding:2px 0;background:transparent;font:500 18px/26px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.3px;color:#16202B;min-height:30px}
.pu-imei-err{font-size:13px;color:#A12B21;min-height:0}
.pu-imei-err:empty{display:none}
.pu-camslot{margin-top:8px}
.pu-camslot .pu-camview,.pu-camslot #icCam{margin:0;border-radius:12px;overflow:hidden}
/* what the check found: green matches, amber a change, red blocking, grey while it runs */
.pu-msg{margin-top:12px;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:18px}
.pu-msg b{font-size:15px;line-height:20px;font-weight:600}
.pu-msg.ok{background:#E6F0EC;color:#0F6B53}
.pu-msg.warn{background:#FBF1E0;color:#9A5B00}
.pu-msg.bad{background:#F3DEDB;color:#A12B21}
.pu-msg.wait{background:#ECE9E1;color:#16202B;flex-direction:row;align-items:center;gap:10px;font-size:15px}
.pu-spin{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid #C4BEB1;border-top-color:#0F6B53;animation:puspin .8s linear infinite}
@keyframes puspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pu-spin{animation:none}}
/* the owner's reason */
.pu-hand{margin-top:12px;background:#fff;border:1px solid #D9D3C6;border-radius:12px;padding:10px 12px}
.pu-hand label{display:block;font-size:13px;color:#6D6A60;margin-bottom:4px}
.pu-hand label span{color:#9A5B00}
.pu-hand input{width:100%;font-size:16px;min-height:44px;border:1px solid #D9D3C6;border-radius:9px;padding:0 10px;background:#fff;box-sizing:border-box}
/* carrier reprice on the card: quote struck (faint 13px), new price amber, the difference under it */
.pc3-p .pu-was{color:#9C978C;font-size:13px;font-weight:400}
.pc3-p small.amb{color:#9A5B00}
/* the line naming what still blocks Pay / Finish */
.pc3-bar .pu-block{color:#6D6A60}
/* Edit check: the check box above Received status, its buttons 44px */
.insp-gate .pu-msg,.insp-gate .pu-hand{margin:0 0 10px}
.insp-gate .pc3-tags{margin:0 0 10px}
.insp-gate-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.insp-gate-act .act{min-height:44px}
/* Fits #13: Buy's pay sheet has a Note field and "Dated today", like Sell's */
#payModal.bf-sheet .ps-notebox{margin:12px 0 4px}
#payModal.bf-sheet .ps-notebox input{width:100%;box-sizing:border-box;min-height:44px;font-size:16px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;background:#fff;font-family:inherit}
/* Done (Kris, Oct 30, A): 3 recent rows, then "All N ›"; the rest show with All, or when searching */
#ordersView .bf-dsec:not(.all):not(.q) .bf-extra{display:none !important}
#ordersView .bf-dsec.q .bf-all{display:none}
#ordersView .bf-all{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--accent,#0F6B53)}
#ordersView .bf-all .bf-row-main{font-size:16px;color:var(--accent,#0F6B53)}
/* Seller request: Check iCloud again at 44px (Nov 3k) */
.bf-recheck{min-height:44px !important;font-size:15px !important}

/* Credit between orders (Nov 3o): "<Seller>'s other orders" rows with a switch */
.bc-code{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:14px;font-weight:600;letter-spacing:.5px}
.bc-r{cursor:pointer;min-height:56px}
.bc-r .v.bc-v{display:flex;flex-direction:column;align-items:flex-end;line-height:20px}
.bc-r .v.bc-v small{font-size:13px;font-weight:400;color:var(--muted)}
.bc-r input.sw{margin-left:4px}
.bc-rows .pe-sec{padding-left:2px}
.bc-rows{margin:0 0 4px;text-align:left}

/* Checking screen never moves sideways (Kris, Nov 1, build Nov 3r): iPhone let the whole
   page pan a few pixels left; nothing on it needs a sideways scroll. */
#phoneModal.pu-card, #phoneModal.pu-card #phoneModalBody, #puShell{overflow-x:hidden;overscroll-behavior-x:none}
#puShell{max-width:100%;touch-action:pan-y pinch-zoom}

/* Add a phone after pickup (Nov 3s): a link under the list, and its sheet */
.pu-addlink{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:10px 0 4px;font-size:17px;font-weight:600;color:var(--accent);background:none;border:0}
.pu-stray2{display:flex;gap:8px;margin:8px 0 0}.pu-stray2 .act{flex:1;min-height:44px}
.pu-add .pu-add-in{width:100%;box-sizing:border-box;min-height:50px;padding:0 14px;border:1px solid var(--line2,#D9D3C6);border-radius:12px;background:#fff;font-size:16px;color:var(--ink,#16202B)}
.pu-add .pu-add-imei{font-family:ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:.3px}
.pu-add .pu-add-chg{color:var(--accent);font-weight:500}
.pu-add .pu-add-price{margin-top:16px}.pu-add .pu-add-big{font-size:24px;font-weight:700}
.pu-add .pu-add-none{color:#A12B21;text-align:left;margin-top:12px}
.pu-add .nq-chips{display:flex;flex-wrap:wrap;gap:8px}
.pu-add .pe-err{color:#A12B21;font-size:14px;min-height:18px;margin-top:8px}
.pu-add .pu-add-has{text-align:left;margin:0 0 10px;color:var(--muted)}
/* The check is a window over the order page (Kris, Nov 1): the page behind it stays still,
   so a sideways swipe can't move the page under the window. */
html.pu-lock, html.pu-lock body{overflow:hidden;overscroll-behavior:none}
.bf-returned .cr-t.mut{color:var(--muted)} .bf-retw{display:block;font-size:13px;font-weight:400;color:var(--muted);text-align:right}
/* Nov 11y · Pick up: look over now or check later (lookover.js) */
.lk-hd{text-align:center;padding:2px 0 4px}
.lk-hd b{display:block;font-size:17px;font-weight:600;color:#16202B}
.lk-hd span{display:block;font-size:13px;color:#6D6A60;margin-top:2px}
.lk-cap{font-size:13px;letter-spacing:.3px;text-transform:uppercase;color:#6D6A60;margin:16px 4px 6px}
.lk-sheet .lk-go{min-height:52px;font-size:17px;margin-top:16px}
.lk-qt{padding:0 16px 8px 50px}
.lk-qhint{font-size:13px;color:#6D6A60;padding:0 0 4px}
.lk-ql{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-size:16px}
.lk-qbad{color:#A12B21;font-weight:600}
.lk-ph .dcs-spot{border-style:solid;color:#16202B;font-weight:500}
.lk-ph .dcs-spot.on{color:#0F6B53}
.lk-opt{font-size:13px;color:#9C978C;white-space:nowrap}
.lk-ph .dcs-spot svg{margin-right:4px;flex:none}
/* Nov 11z · Buy now on the look-over card (bnlook.js) */
.bn-form .bn-card{margin-top:4px}
.bn-p{border:0;background:none;font:inherit;color:inherit;padding:0;cursor:pointer;font-size:24px;font-weight:700;text-align:right}
.bn-agbox{display:flex;flex-direction:column;align-items:flex-end}
.bn-in{width:96px;font-size:20px;font-weight:700;text-align:right;min-height:40px}
#bnBatt.bn-in{width:72px;text-align:left}
.bn-open{padding:4px 16px 12px 50px;display:flex;flex-wrap:wrap;gap:6px}
.bn-open .gr-groups,.bn-open>div{width:100%}
.bn-tg{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid #EFEBE2;font-size:15px}
.bn-tg .l{color:#6D6A60}.bn-tg .r{font-weight:600;white-space:nowrap}.bn-tg .r.amb{color:#9A5B00}.bn-tg .r.grn{color:#0F6B53}
.bf-price small.sp-saw{color:#9A5B00}
/* Nov 16a: a request price that moved from what the seller saw: seen struck (faint, 13px), new in amber */
.bf-price.sp-moved .sp-was{font-size:13px;font-weight:400;color:#9C978C}
.bf-price.sp-moved .sp-new{color:#9A5B00;background:none;padding:0;border-radius:0}
