/* Shared defaults. Compact and page-specific sizes remain explicit. */
:root{--app-control-height:44px;--app-control-radius:9px}


  :root{--ink:#14181d;--paper:#fbfaf7;--line:#e3ded3;--line2:#cfc8b8;--accent:#0f6b53;
    --accent-soft:#e6f0ec;--warn:#9a5b00;--warn-soft:#fbf1dc;--danger:#a12b21;--danger-soft:#fbece9;--muted:#6d6a60;}
  *{box-sizing:border-box}
  body{margin:0;background:var(--paper);color:var(--ink);
    font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;}
  .wrap{max-width:1120px;margin:0 auto;padding:28px 20px 80px}
  header.top{display:flex;align-items:baseline;justify-content:space-between;
    border-bottom:2px solid var(--ink);padding-bottom:14px}
  .brand{font-size:26px;font-weight:700;letter-spacing:-.01em}
  .brand small{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:400;margin-top:3px}
  .meta{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;color:var(--muted);text-align:right}
  .meta select,.meta input{font-family:inherit;font-size:12.5px;border:1px solid var(--line2);background:#fff;padding:4px 6px;border-radius:5px;color:var(--ink)}
  .mono{font-family:ui-monospace,Menlo,Consolas,monospace}
  .drop{margin-top:22px;border:2px dashed var(--line2);border-radius:14px;background:#fff;
    padding:30px;text-align:center;transition:.15s;cursor:pointer}
  .drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}
  .drop h2{margin:0 0 6px;font-size:19px}
  .drop p{margin:0;color:var(--muted);font-size:13px}
  .drop .or{font-size:12px;color:var(--muted);margin-top:10px;font-family:ui-monospace,monospace}
  .sheet{background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:24px;
    box-shadow:0 8px 30px rgba(20,24,29,.05);overflow:hidden}
  table{border-collapse:collapse;width:100%}
  thead th{font-family:ui-monospace,monospace;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
    color:var(--muted);text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);background:#faf8f3;font-weight:600}
  tbody td{padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
  tbody tr:last-child td{border-bottom:none}
  select,input{font-family:inherit;font-size:14px;color:var(--ink);background:#fff;border:1px solid var(--line2);border-radius:7px;padding:7px 8px;width:100%}
  select:focus,input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
  input[type=number]{width:72px}
  .rownum{font-family:ui-monospace,monospace;font-size:12px;color:var(--muted);width:26px;text-align:center}
  .price{font-family:ui-monospace,monospace;font-size:15px;font-weight:600;text-align:right;white-space:nowrap;min-width:74px}
  .price.zero{color:var(--muted);font-weight:400}
  .del{border:none;background:none;color:var(--muted);font-size:17px;cursor:pointer;padding:2px 6px;border-radius:6px}
  .del:hover{background:#f3ede1;color:var(--danger)}
  .doa input{width:15px;height:15px;accent-color:var(--danger)}
  tr.is-doa td{background:var(--danger-soft)} tr.unmatched td{background:var(--warn-soft)}
  .cond{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted);white-space:nowrap}
  .sheet{overflow-x:auto}
  .sheet table{min-width:1100px}
  .sheet select,.sheet input[type=number]{font-size:12px;padding:5px 6px;border:1px solid var(--line2);border-radius:6px;font-family:inherit;background:#fff;max-width:130px}
  .sheet .dmgsel{max-width:130px}
  #rows tr.is-doa{background:#fbf1ef}
  .toolbar{display:flex;gap:10px;padding:14px 12px;background:#faf8f3;border-top:1px solid var(--line);flex-wrap:wrap}
  button.act{font-family:ui-monospace,monospace;font-size:12.5px;border:1px solid var(--line2);background:#fff;color:var(--ink);padding:9px 14px;border-radius:8px;cursor:pointer}
  button.act:hover{border-color:var(--ink)}
  button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
  button.big{font-size:14px;padding:12px 22px}
  button.act.danger{color:#a12b21;border-color:#e0b3ad}
  button.act.danger:hover{background:#fbece9;border-color:#a12b21}
  .flags{margin-top:16px;display:flex;flex-direction:column;gap:8px}
  .flag{font-family:ui-monospace,monospace;font-size:12.5px;padding:10px 12px;border-radius:var(--app-control-radius);border:1px solid}
  .flag.warn{background:var(--warn-soft);border-color:#e6c98a;color:var(--warn)}
  .flag.ok{background:var(--accent-soft);border-color:#bcd8ce;color:var(--accent)}
  .totals{display:grid;grid-template-columns:1fr auto;gap:2px 40px;margin-top:26px;border-top:2px solid var(--ink);padding-top:16px;max-width:440px;margin-left:auto}
  .totals .lbl{font-family:ui-monospace,monospace;font-size:12.5px;color:var(--muted)}
  .totals .val{font-family:ui-monospace,monospace;font-size:15px;text-align:right;font-weight:600}
  .totals .big .lbl,.totals .big .val{font-size:19px;color:var(--ink);font-weight:700}
  .totals .big{border-top:1px solid var(--line);padding-top:10px;margin-top:8px}
  .split{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:2px 40px;background:var(--accent-soft);border-radius:10px;padding:12px 14px;margin-top:14px}
  .hint{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted);margin-top:5px}
  .cta{display:flex;justify-content:flex-end;margin-top:22px}

  /* ---- VIEW SWITCHING ---- */
  #dashView{display:none}
  body.mode-dashboard #mainView,body.mode-dashboard #ordersView,body.mode-dashboard #inspectView,body.mode-dashboard #inventoryView,body.mode-dashboard #balancesView,body.mode-dashboard #salesView,body.mode-dashboard #profilesView,body.mode-dashboard #ratesView{display:none}
  body.mode-dashboard #dashView{display:block}
  #quoteView,#ordersView{display:none}
  body.showquote #mainView,body.showquote #ordersView,body.showquote #modeBar{display:none}
  body.showquote #quoteView{display:block}
  body.mode-orders #mainView{display:none}
  body.mode-orders #ordersView{display:block}
  #inventoryView{display:none}
  body.mode-inventory #mainView,body.mode-inventory #ordersView,body.mode-inventory #inspectView{display:none}
  body.mode-inventory #inventoryView{display:block}
  #salesView{display:none}
  body.mode-sales #mainView,body.mode-sales #ordersView,body.mode-sales #inspectView,body.mode-sales #inventoryView,body.mode-sales #balancesView,body.mode-sales #profilesView{display:none}
  body.mode-sales #salesView{display:block}
  #profilesView{display:none}
  body.mode-profiles #mainView,body.mode-profiles #ordersView,body.mode-profiles #inspectView,body.mode-profiles #inventoryView,body.mode-profiles #balancesView,body.mode-profiles #salesView,body.mode-profiles #ratesView{display:none}
  body.mode-profiles #profilesView{display:block}
  #ratesView{display:none}
  #pickupView{display:none}
  body.mode-pickup #mainView,body.mode-pickup #ordersView,body.mode-pickup #inspectView,body.mode-pickup #inventoryView,body.mode-pickup #balancesView,body.mode-pickup #salesView,body.mode-pickup #profilesView,body.mode-pickup #ratesView,body.mode-pickup #dashView{display:none}
  body.mode-pickup #pickupView{display:block}
  .pkwrap{width:100%}
  .pkwrap,.pkwrap *{min-width:0}          /* nothing in here may force the page wider */
  /* Wide screens: check on the left, price table on the right. Narrow: stacked. */
  .pkcards{display:grid;grid-template-columns:minmax(340px,420px) 1fr;gap:14px;align-items:start}
  @media (max-width:900px){ .pkcards{grid-template-columns:1fr} }
  .pkform{max-width:520px}
  .pkchip{display:inline-block;font-size:13px;border:1px solid var(--line2);border-radius:20px;padding:8px 14px;margin:0 6px 6px 0;cursor:pointer;background:#fff;color:var(--muted)}
  .pkchip.on{border-color:var(--warn);background:var(--warn-soft);color:var(--warn);font-weight:600}
  .pkbig{width:100%;height:48px;font-size:16px;border-radius:var(--app-control-radius)}
  .pkverdict{border-radius:10px;padding:14px;text-align:center;margin-bottom:14px}
  body.mode-rates #mainView,body.mode-rates #ordersView,body.mode-rates #inspectView,body.mode-rates #inventoryView,body.mode-rates #balancesView,body.mode-rates #salesView,body.mode-rates #profilesView{display:none}
  body.mode-rates #ratesView{display:block}
  /* Pricing lookup (visible to all roles) */
  /* hide pricing view in every other mode */
  .pickrow{cursor:pointer} .pickrow.sel{background:#eef5f1}
  .clickrow{cursor:pointer;transition:background .12s}
  .clickrow:hover{background:#f2efe8}
  /* ===== The Merchant (Tamagotchi treasure hoard) ===== */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  @keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
  @keyframes bobFast{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
  @keyframes bobSlow{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
  
  
  
  @keyframes wave{0%,100%{transform:rotate(0)}50%{transform:rotate(-25deg)}}
  
  
  @keyframes floatUp{0%{opacity:0;transform:translate(-50%,10px) scale(.7)}25%{opacity:1;transform:translate(-50%,-6px) scale(1.15)}100%{opacity:0;transform:translate(-50%,-60px) scale(1)}}
  
  
  
  
  
  
  
  
  .pickrow td{user-select:none}
  .balcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:14px}
  .balcard h3{margin:0 0 4px;font-size:16px}
  .baltop{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0 22px}
  .baltile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
  .baltile .lbl{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
  .baltile .val{font-size:24px;font-weight:700;margin-top:6px}
  .pos{color:var(--accent)} .neg{color:#a12b21}
  .ratelist td,.ratelist th{padding:7px 10px}
  .ratelist tbody tr:hover{background:#f7f5f0}
  .rateseg{display:inline-flex;gap:2px;background:#ece8df;border-radius:10px;padding:3px;margin-bottom:16px}
  /* Profiles: card grid + detail view */
  .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:8px}
  .pcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;cursor:pointer;
    transition:border-color .12s,box-shadow .12s;display:flex;flex-direction:column;gap:10px}
  .pcard:hover{border-color:var(--accent);box-shadow:0 2px 10px rgba(15,107,83,.10)}
  .pcard-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
  .pcard-name{font-size:17px;font-weight:700;line-height:1.2}
  .pcard-role{font-family:ui-monospace,monospace;font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
    color:var(--muted);border:1px solid var(--line2);border-radius:20px;padding:2px 8px;white-space:nowrap}
  .pcard-role.seller{color:var(--accent);border-color:#bcd8ce;background:var(--accent-soft)}
  .pcard-role.buyer{color:var(--warn);border-color:#e8d3a6;background:var(--warn-soft)}
  .pcard-stats{display:flex;flex-wrap:wrap;gap:4px 18px}
  .pcard-stat .k{font-family:ui-monospace,monospace;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
  .pcard-stat .v{font-family:ui-monospace,monospace;font-size:15px;font-weight:600;margin-top:1px}
  .pcard-foot{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px;display:flex;justify-content:space-between}
  .pcard-contact{font-size:12px;color:var(--muted);margin:-4px 0 8px}
  .ordstat{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;margin-bottom:5px;font-size:13px}
  .ordstat.settled{background:var(--accent-soft);border-color:var(--accent-soft)}
  .ordstat .os-name{font-weight:500}
  .ordstat .os-badge{font-size:11px;font-family:ui-monospace,monospace;white-space:nowrap}
  .ordstat .os-badge.ok{color:var(--accent)}
  .ordstat .os-badge.warn{color:#a12b21}
  .pdetail-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}
  .pdetail-head h2{margin:0;font-size:24px}
  .pback{font-family:ui-monospace,monospace;font-size:12.5px;border:1px solid var(--line2);background:#fff;color:var(--ink);padding:8px 14px;border-radius:8px;cursor:pointer}
  .pback:hover{border-color:var(--ink)}
  .modal-overlay{display:none;position:fixed;inset:0;background:rgba(20,25,30,.5);z-index:100;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto}
  .modal-box{background:#fff;border-radius:16px;max-width:460px;width:100%;padding:26px 28px;box-shadow:0 20px 60px rgba(0,0,0,.25);position:relative}
  #phoneModal .modal-box{max-width:560px}
  .modal-close{position:absolute;top:14px;right:16px;font-size:22px;line-height:1;background:none;border:none;cursor:pointer;color:var(--muted)}
  .modal-close:hover{color:var(--ink)}
  /* ---- ORDERS TABLE ---- */
  .otable{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:12px}
  .otable th{font-family:ui-monospace,monospace;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);text-align:left;padding:11px 12px;background:#faf8f3;border-bottom:1px solid var(--line)}
  .otable td{padding:11px 12px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
  .otable tr:last-child td{border-bottom:none}
  .otable a{color:var(--accent);text-decoration:none;font-weight:600}
  .stt{font-family:ui-monospace,monospace;font-size:11px;padding:3px 9px;border-radius:20px;border:1px solid;display:inline-block}
  .stt.Accepted{background:var(--accent-soft);border-color:#bcd8ce;color:var(--accent)}
  .stt.Received{background:var(--warn-soft);border-color:#e6c98a;color:var(--warn)}
  .stt.Reconciled{background:#ece6f4;border-color:#cbbce0;color:#5b4a86}
  .stt.Inspecting{background:var(--warn-soft);border-color:#e6c98a;color:var(--warn)}
  .stt.AwaitingInspection{background:var(--warn-soft);border-color:#e6c98a;color:var(--warn)}
  .stt.Open{background:var(--accent-soft);border-color:#bcd8ce;color:var(--accent)}
  .stt.Paid{background:#e7eefc;border-color:#b8cdf0;color:#2f5aa8}
  .stt.Complete{background:#e6f0ec;border-color:#9ec7b5;color:#0f6b53}
  .stt.Shipped{background:#eef1f6;border-color:#c3cede;color:#42506b}
  /* ===== Sale money cards ===== */
  .money2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:2px 0 16px}
  .mcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px}
  .mcard.dark{background:var(--ink);border-color:var(--ink)}
  .mcard.profit{background:#0f3d2e;border-color:#0f3d2e}
  .mcard.profit.neg{background:#3a1e1a;border-color:#3a1e1a}
  .mcard .eyebrow{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
  .mcard.dark .eyebrow,.mcard.profit .eyebrow{color:rgba(255,255,255,.6)}
  .mcard .hero{font-size:34px;font-weight:800;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
  .mcard.profit .hero,.mcard.dark .hero{color:#fff}
  .mcard .heronote{font-size:12px;color:var(--muted);margin-top:6px}
  .mcard.profit .heronote,.mcard.dark .heronote{color:rgba(255,255,255,.72)}
  .mcard .subs{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
  .mcard.dark .subs,.mcard.profit .subs{border-top-color:rgba(255,255,255,.18)}
  .mcard .subrow{display:flex;justify-content:space-between;align-items:baseline;padding:4px 0;font-size:13px}
  .mcard .subrow .k{color:var(--muted)}
  .mcard.dark .subrow .k,.mcard.profit .subrow .k{color:rgba(255,255,255,.7)}
  .mcard .subrow .v{font-family:ui-monospace,monospace;font-weight:600}
  .mcard.dark .subrow .v,.mcard.profit .subrow .v{color:#fff}
  .mcard .subrow .v.pos{color:var(--accent)} .mcard .subrow .v.neg{color:#c0483c}
  @media(max-width:640px){ .money2{grid-template-columns:1fr} }
  .wshead{margin-bottom:14px}
  .wshead h3{font-size:16px;margin:0 0 3px}
  .wshead .hint{margin:0}
  .lbl2{font-size:11px;color:var(--muted);margin-bottom:3px;font-weight:600}
  #indivModalBody input,#indivModalBody select{padding:8px;border:1px solid var(--line2);border-radius:8px;font-size:13px;font-family:inherit;width:100%;box-sizing:border-box;background:#fff}
  .ibgroup{margin-bottom:16px;padding:14px 16px;background:#faf8f3;border:1px solid var(--line);border-radius:12px}
  .ibglabel{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
  .ibgrid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
  .ibgrid4{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;margin-top:4px}
  .lbl2 .opt{font-weight:400;color:var(--muted);text-transform:none;letter-spacing:0}
  @media(max-width:560px){ .ibgrid3{grid-template-columns:1fr 1fr} .ibgrid4{grid-template-columns:1fr 1fr} }
  /* ===== Sale stage tracker ===== */
  .stagebar{display:flex;align-items:center;gap:0;margin:4px 0 4px;flex-wrap:wrap}
  .stagestep{display:flex;align-items:center;gap:8px;flex:1;min-width:120px}
  .stagedot{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;background:#ece7dd;color:var(--muted);border:2px solid var(--line2)}
  .stagestep.done .stagedot{background:var(--accent);color:#fff;border-color:var(--accent)}
  .stagestep.current .stagedot{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 0 0 4px rgba(22,32,43,.12)}
  .stagestep.clickable{cursor:pointer}
  .stagestep.disabled{opacity:.5;cursor:default}
  .stagestep.sel .stagedot{box-shadow:0 0 0 4px rgba(15,107,83,.22)}
  .stagestep.sel .stagelbl{text-decoration:underline;text-underline-offset:3px}
  .stagestep.clickable:hover .stagelbl{color:var(--ink)}
  .stagelbl{font-size:12px;font-weight:600;color:var(--muted);line-height:1.2}
  .stagestep.done .stagelbl,.stagestep.current .stagelbl{color:var(--ink)}
  .stageconn{height:2px;flex:1;background:var(--line2);min-width:16px;margin:0 4px}
  .stageconn.done{background:var(--accent)}
  @media(max-width:640px){ .stagebar{gap:4px} .stagelbl{display:none} .stagestep{flex:0 0 auto;min-width:0} }
  /* ===== Employee role: hide restricted areas ===== */
  body.role-employee #tabPickup{order:-1}
  body.role-employee #tabDashboard,
  body.role-employee #tabProfiles,
  body.role-employee .owner-only{display:none!important}
  /* ---- INSPECTION VIEW ---- */
  #inspectView{display:none}
  body.mode-inspect #mainView,body.mode-inspect #ordersView{display:none}
  body.mode-inspect #inspectView{display:block}
  .itable{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:14px;font-size:13px}
  .itable th{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-align:left;padding:9px 8px;background:#faf8f3;border-bottom:1px solid var(--line);white-space:nowrap}
  .itable td{padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
  .itable tr:last-child td{border-bottom:none}
  .itable .decl{background:var(--accent-soft)}
  .itable .insp{background:var(--warn-soft)}
  .itable select,.itable input{font-size:13px;padding:5px 6px;border:1px solid var(--line2);border-radius:6px;background:#fff;width:100%;box-sizing:border-box}
  .itable input[type=number]{width:70px}
  .isaved{display:inline-flex;align-items:center;gap:4px;font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.03em;padding:3px 8px;border-radius:20px;white-space:nowrap;border:1px solid transparent}
  .isaved::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
  .isaved.on{color:var(--accent);background:var(--accent-soft);border-color:#bcd8ce}
  .isaved.saving{color:var(--warn);background:var(--warn-soft);border-color:#e6c98a}
  .isaved.failed{color:#a12b21;background:var(--danger-soft);border-color:#e0b3ad}
  /* ---- INSPECTION CARDS (two-tier) ---- */
  .icards{display:flex;flex-direction:column;gap:10px;margin-top:8px}
  .icard{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  .icard-top{display:flex;align-items:center;gap:12px;padding:9px 14px;background:var(--accent-soft);border-bottom:1px solid var(--line);font-size:13px}
  .icard-num{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted);font-weight:600}
  .icard-ident{font-weight:600}
  .icard-imei{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted)}
  .icard-inputs{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;padding:12px 14px;background:var(--warn-soft)}
  .ifield{display:flex;flex-direction:column;gap:3px;min-width:0}
  .iflabel{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
  .ifield select,.ifield input{font-size:13px;padding:6px 7px;border:1px solid var(--line2);border-radius:6px;background:#fff;width:100%;box-sizing:border-box}
  .iactual{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:10px 14px;background:#fff4e0;border-top:1px solid #e6c98a}
  .iactual-lbl{font-size:11px;color:var(--warn);font-weight:700;width:100%}
  .ihint{font-size:11px;color:var(--muted)}
  @media(max-width:900px){ .icard-inputs{grid-template-columns:repeat(4,1fr)} }
  @media(max-width:520px){ .icard-inputs{grid-template-columns:repeat(2,1fr)} }
  #inspSaveBar{position:sticky;top:0;z-index:5;background:var(--accent);color:#fff;font-family:ui-monospace,monospace;font-size:12px;padding:8px 14px;border-radius:8px;margin-bottom:10px;display:none}
  #inspSaveBar.show{display:block}
  #inspSaveBar.saving{background:var(--warn)}
  #inspSaveBar.failed{background:#a12b21}
  .stt.Quoted{background:#eef1f4;border-color:#cdd6de;color:#4a5560}
  /* ---- MODE TABS ---- */
  .apphead{display:flex;align-items:center;gap:10px;padding-bottom:8px}
  .appbrand{font-size:14px;font-weight:700;letter-spacing:.01em}
  .buildstamp{font-size:10px;font-family:ui-monospace,monospace;color:var(--muted);opacity:.6}
  /* nowrap + scroll: seven tabs will never fit a phone, so they slide rather than
     wrapping into ragged rows */
  .modetabs{display:flex;gap:4px;border-bottom:2px solid var(--ink);margin-bottom:0;
    overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .modetabs::-webkit-scrollbar{display:none}
  .modetab{white-space:nowrap;flex:0 0 auto}
  .modetab{font-family:ui-monospace,monospace;font-size:13px;letter-spacing:.03em;padding:11px 20px;
    border:1px solid var(--line2);border-bottom:none;border-radius:var(--app-control-radius) 9px 0 0;background:#f0ece2;
    color:var(--muted);cursor:pointer;margin-bottom:-2px}
  .modetab.active{background:var(--ink);color:#fff;border-color:var(--ink)}
  /* ---- RECON TABLE ---- */
  .rtable{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:18px}
  .rtable th{font-family:ui-monospace,monospace;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);text-align:left;padding:11px 12px;background:#faf8f3;border-bottom:1px solid var(--line)}
  .rtable td{padding:10px 12px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
  .rtable tr:last-child td{border-bottom:none}
  .rtable .num{text-align:right;font-family:ui-monospace,monospace;font-weight:600;white-space:nowrap}
  .rtable .note{font-size:12px;color:var(--muted)}
  .rtable tr.flag td{background:var(--warn-soft)}
  .rtable tr.gone td{background:var(--danger-soft)}
  .rtable input.wp{width:80px;font-family:ui-monospace,monospace;font-size:13px;padding:5px 7px;border:1px solid var(--warn);border-radius:6px}
  .rtot{display:grid;grid-template-columns:1fr auto;gap:3px 30px;max-width:420px;margin:20px 0 0 auto;
    border-top:2px solid var(--ink);padding-top:14px}
  .rtot .l{font-family:ui-monospace,monospace;font-size:13px;color:var(--muted)}
  .rtot .v{font-family:ui-monospace,monospace;font-size:15px;text-align:right;font-weight:600}
  .rtot .big .l,.rtot .big .v{font-size:18px;color:var(--ink);font-weight:700}
  .rtot .big{border-top:1px solid var(--line);padding-top:10px;margin-top:6px}
  .rdl{display:flex;justify-content:flex-end;margin-top:16px}

  /* ---- QUOTE PAGE ---- */
  .qpage{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);
    border-radius:16px;box-shadow:0 10px 40px rgba(20,24,29,.08);overflow:hidden}
  .qhead{background:var(--ink);color:#fff;padding:26px 34px;display:flex;justify-content:space-between;align-items:flex-end}
  .qhead .t{font-size:24px;font-weight:700;letter-spacing:-.01em}
  .qhead .t small{display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#b9c3bf;margin-top:5px;font-weight:400}
  .qhead .r{text-align:right;font-family:ui-monospace,monospace;font-size:12px;color:#cdd6d2;line-height:1.7}
  .qbody{padding:22px 34px 30px}
  table.q{width:100%;border-collapse:collapse}
  table.q thead th{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;
    color:var(--muted);text-align:left;padding:9px 8px;border-bottom:2px solid var(--ink)}
  table.q thead th.num{text-align:right}
  table.q tbody td{padding:9px 8px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top}
  table.q td.num{text-align:right;font-family:ui-monospace,monospace;font-weight:600;white-space:nowrap}
  table.q .sub{display:block;font-size:11px;color:var(--muted);font-family:ui-monospace,monospace;margin-top:2px}
  table.q .cnd{display:block;font-size:12px;color:var(--warn);margin-top:4px}
  table.q .cnd.clean{color:var(--muted);font-style:italic}
  table.q tr.doa td.num{color:var(--muted);font-weight:400}
  .qtot{margin-top:20px;margin-left:auto;max-width:340px}
  .qtot .row{display:flex;justify-content:space-between;padding:6px 0;font-family:ui-monospace,monospace;font-size:14px}
  .qtot .row .l{color:var(--muted)}
  .qtot .grand{border-top:2px solid var(--ink);margin-top:6px;padding-top:12px;font-size:20px;font-weight:700}
  .qtot .up{background:var(--accent-soft);border-radius:10px;padding:12px 14px;margin-top:12px;display:flex;justify-content:space-between;font-weight:700;color:var(--accent);font-size:16px;font-family:ui-monospace,monospace}
  .qnote{margin-top:18px;font-size:12px;color:var(--muted);font-style:italic;line-height:1.5}
  .qactions{max-width:820px;margin:16px auto 0;display:flex;gap:10px;justify-content:space-between}
  @media print{.qactions,.brand small{display:none}body{background:#fff}.qpage{box-shadow:none;border:none}}
  @media(max-width:720px){.brand{font-size:21px}thead{display:none}#rows tr{display:block;border-bottom:1px solid var(--line);padding:10px 0}#rows td{display:block;border:none;padding:4px 12px}.price{text-align:left}.qhead{flex-direction:column;gap:10px;align-items:flex-start}.qhead .r{text-align:left}}
  /* ============ RESPONSIVE / MOBILE ============ */
  @media(max-width:720px){
    .wrap{padding:18px 14px 60px}
    /* tile grids: never more than 2 across on tablet-ish widths */
    .baltop{grid-template-columns:1fr 1fr !important;gap:10px}
    /* nav tabs scroll horizontally instead of squishing/wrapping */
    .modetabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;gap:2px;padding-bottom:2px}
    .modetabs::-webkit-scrollbar{height:0}
    .modetab{padding:10px 14px;font-size:12px;white-space:nowrap;flex:0 0 auto}
    #roleBtn{flex:0 0 auto}
    /* ---- Today / pickup on a phone ---- */
    .pkcards{gap:10px}
    .pkwrap .hint{font-size:12px}
    /* the price table is the one thing wide enough to push the page sideways */
    /* Source + Seller stop fighting for room */
    .pkrow2{flex-direction:column;gap:10px !important}
    .pkrow2>div{width:100%}
    .pkchip{padding:9px 13px;font-size:13px}
    /* wide data tables: let them scroll sideways rather than overflow the page */
    .otable, .rtable{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
    .otable td,.otable th{padding:9px 10px;font-size:13px}
    /* modals fill more of the screen */
    .modal-box{padding:20px 18px;max-width:none;margin:0 10px}
    /* profile cards go full width */
    .pgrid{grid-template-columns:1fr}
    .baltile .val{font-size:21px}
    h2{font-size:22px}
  }
  @media(max-width:480px){
    .baltop{grid-template-columns:1fr !important}
    .baltile .val{font-size:24px}
    .modetab{padding:9px 12px}
    .buildstamp{display:none}
    .appbrand{font-size:13px}
    .qactions{flex-direction:column}
  }


/* Approved desktop navigation layout. Existing buttons and role rules retained. */
@media screen and (min-width:1000px) {
 body:not(.showquote) {padding-left:224px;}
 body:not(.showquote) #modeBar {
   position:fixed;inset:0 auto 0 0;width:224px;z-index:30;
   background:#edf0e9;border:0;border-right:1px solid #dbe1d7;
   padding:30px 16px 150px;overflow-y:auto;overflow-x:visible;
   font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
   color:#202d29;display:flex;flex-direction:column;gap:24px;
 }
 body:not(.showquote) #modeBar>.wrap {
   width:100%;max-width:none;margin:0;padding:0!important;
 }
 body:not(.showquote) #modeBar .apphead {
   display:flex;flex-direction:column;align-items:stretch;gap:0;
   padding:0;min-height:0;
 }
 body:not(.showquote) #modeBar .appbrand {
   display:flex;align-items:center;gap:10px;padding:0 5px;
   color:#203d2d;font-family:inherit;font-size:17px;font-weight:700;
   letter-spacing:-.5px;white-space:nowrap;
 }
 body:not(.showquote) #modeBar .appbrand::before {
   content:"";display:block;flex:none;width:29px;height:34px;
   background:#176346;border-radius:8px;
 }
 body:not(.showquote) #modeBar .apphead>span:last-child {
   position:absolute;bottom:26px;left:21px;right:21px;
   display:flex!important;flex-direction:column;align-items:stretch!important;
   gap:10px!important;margin:0!important;padding-top:18px;
   border-top:1px solid #d5dece;
 }
 body:not(.showquote) #modeBar .buildstamp {
   display:block;font-size:12px;color:#617067;opacity:1;
   font-family:inherit;letter-spacing:0;
 }
 body:not(.showquote) #modeBar #roleBtn {
   width:100%;text-align:left;font-family:inherit!important;
   font-size:14px!important;font-weight:550;padding:10px 12px!important;
   border:1px solid #cfd8ce!important;border-radius:8px!important;
   background:#f9fbf6!important;color:#203d2d;
 }
 body:not(.showquote) #modeBar #acctMenu {
   top:auto!important;bottom:calc(100% + 8px);left:0;right:auto!important;
   min-width:180px!important;max-width:190px;background:white!important;
   border-color:#d5ddcf!important;box-shadow:0 10px 35px #203d2d20!important;
 }
 body:not(.showquote) #modeBar #acctMenu a {color:#203d2d;text-decoration:none;}
 body:not(.showquote) #modeBar #acctMenu a:hover {background:#edf3e8;}
 body:not(.showquote) #modeBar #acctMenu a:last-child {color:#a12b21;}
 body:not(.showquote) #modeBar .modetabs {
   display:flex;flex-direction:column;align-items:stretch;gap:6px;
   border:0;padding:0;margin:0;overflow:visible;flex-wrap:nowrap;
 }
 body:not(.showquote) #modeBar .modetab {
   display:flex;align-items:center;gap:12px;flex:0 0 auto;
   width:100%;min-height:var(--app-control-height);margin:0;padding:11px 13px;
   text-align:left;border:1px solid transparent;border-radius:8px;
   background:transparent;color:#4b5a52;font-family:inherit;
   font-size:14px;line-height:1.5;letter-spacing:0;font-weight:550;
 }
 body:not(.showquote) #modeBar .modetab::before {
   content:"";display:block;width:19px;height:19px;flex:none;
   background:currentColor;mask:var(--nav-icon) center/contain no-repeat;
   -webkit-mask:var(--nav-icon) center/contain no-repeat;
 }
 body:not(.showquote) #modeBar .modetab:hover {background:#e0e7db;}
 body:not(.showquote) #modeBar .modetab.active {
   background:#176346;color:#fff;border-color:#176346;
   box-shadow:0 3px 8px #174a3210;
 }
 body:not(.showquote) #modeBar :is(button,a):focus-visible {
   outline:3px solid #54a780;outline-offset:3px;
 }

}
/* On short desktop windows, account controls remain reachable without overlap. */
@media screen and (min-width:1000px) and (max-height:650px) {
 body:not(.showquote) #modeBar {padding-bottom:24px;}
 body:not(.showquote) #modeBar>.wrap:first-child {display:contents;}
 body:not(.showquote) #modeBar .apphead {display:contents;}
 body:not(.showquote) #modeBar .apphead>span:last-child {
   position:static;order:2;margin-top:10px!important;
 }
}

@media screen and (min-width:1000px) {
 body:not(.showquote) #tabDashboard { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabOrders { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2011v10h14V11M3%2011h18M8%206l4%204%204-4M12%2010V2%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabInventory { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204v11l-9%204-9-4V7Zm0%200%209%204%209-4M12%2011v11M7.5%205%2017%209%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabSales { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012v8h14v-8M8%206l4-4%204%204M12%202v12%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabProfiles { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M3%2020v-3a6%206%200%200%201%2012%200v3M16%204a3%203%200%200%201%200%206m2%204a5%205%200%200%201%203%205v1%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabPickup { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M12%207v5l3%202%22/%3E%3C/svg%3E"); }
 body:not(.showquote) #tabRates { --nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2017h16%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%222%22%20fill%3D%22black%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2217%22%20r%3D%222%22%20fill%3D%22black%22/%3E%3C/svg%3E"); }
}


/* Inventory-only typography: retain the existing layout and interactions. */
#inventoryView {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#inventoryView .brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
#inventoryView .brand small,
#inventoryView .meta,
#inventoryView button,
#inventoryView input,
#inventoryView select,
#inventoryView .hint,
#inventoryView .flags {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#inventoryView .brand small { font-size: 13px; font-weight: 400; line-height: 1.5; }
#inventoryView .meta { font-size: 13px; }
#inventoryView .hint { font-size: 13px; line-height: 1.5; }
#inventoryView .inv-clean th {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.4;
}
#inventoryView .inv-clean td { font-size: 13px; line-height: 1.45; }
#inventoryView .inv-clean td:nth-child(2) { font-size: 14px; font-weight: 600 !important; }
#inventoryView .inv-clean td:nth-child(2) > span { font-size: 12px !important; line-height: 1.5; }
#inventoryView .inv-clean td:nth-child(1),
#inventoryView .inv-clean td:nth-child(3),
#inventoryView .inv-clean td:nth-child(6) {
  font-family: inherit !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
}
#inventoryView .inv-clean td:nth-child(4),
#inventoryView .inv-clean td:nth-child(7),
#inventoryView .inv-clean td:nth-child(5) > span { font-size: 12px !important; }
#inventoryView .inv-clean td:nth-child(8) {
  font-family: inherit !important;
  font-size: 14px;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}


#inventoryView .inv-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, .32fr) minmax(180px, .42fr);
  gap: 12px;
  align-items: end;
  margin: 20px 0 16px;
}
#inventoryView .inv-filter-field { min-width: 0; }
#inventoryView .inv-filter-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
#inventoryView .inv-filter-field input,
#inventoryView .inv-filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
#inventoryView .inv-filter-field select {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
#inventoryView .inv-filter-field input::placeholder { color: var(--muted); opacity: 1; }
#inventoryView .inv-filter-field input:hover,
#inventoryView .inv-filter-field select:hover { border-color: var(--accent); }
#inventoryView .inv-filter-field input:focus,
#inventoryView .inv-filter-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
@media (max-width: 720px) {
  #inventoryView .inv-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px 10px; }
  #inventoryView .inv-filter-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  #inventoryView .inv-filter-bar { grid-template-columns: minmax(0, 1fr); }
}


@media screen {
  #inventoryView header.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line2);
  }
  #inventoryView header.top .brand {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.02em;
  }
  #inventoryView header.top .brand small {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
  }
  #inventoryView header.top .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: left;
    max-width: 100%;
  }
  #inventoryView header.top .meta .act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height:var(--app-control-height);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line2);
    border-radius: 10px;
    background: #fff;
    color: var(--accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
  }
  #inventoryView header.top .meta .act:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  #inventoryView header.top .meta .act:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  #inventoryView header.top .meta .act:disabled {
    opacity: .5;
    cursor: default;
  }
}
@media screen and (max-width: 720px) {
  #inventoryView header.top { align-items: flex-start; gap: 16px; }
  #inventoryView header.top .brand { width: 100%; font-size: 28px; }
  #inventoryView header.top .meta { width: 100%; }
  #inventoryView header.top .meta .act { flex: 1 1 130px; }
}


#inventoryView .inv-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#inventoryView .inv-stage-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
#inventoryView .inv-stage-count {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
#inventoryView .inv-stage-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#inventoryView .inv-stage-card:hover { border-color: var(--accent); }
#inventoryView .inv-stage-card[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
#inventoryView .inv-stage-card[aria-pressed="true"] .inv-stage-label { font-weight: 700; }
#inventoryView .inv-stage-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  #inventoryView .inv-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #inventoryView .inv-stage-card { padding: 14px; }
}


#phoneModalBody {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
#phoneModalBody .phone-detail-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  padding-right: 28px;
  overflow-wrap: anywhere;
}
#phoneModalBody .phone-detail-heading {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .025em !important;
  color: var(--ink) !important;
}
#phoneModalBody .phone-detail-label {
  font-size: 14px !important;
  font-weight: 600;
  margin-bottom: 5px;
}
#phoneModalBody .phone-detail-row {
  font-size: 14px !important;
  line-height: 1.5;
}
#phoneModalBody a { text-underline-offset: 3px; }
#phoneModalBody .act {
  min-height:var(--app-control-height);
  padding: 10px 14px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
#phoneModalBody .act.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
#phoneModalBody .act.danger { border-color: var(--danger); color: var(--danger); }
#phoneModalBody .act:not(:disabled):hover { box-shadow: inset 0 0 0 1px currentColor; }
#phoneModalBody .act:disabled { opacity: .5; cursor: default; }
#phoneModalBody :is(button, a, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


#phoneModal { padding: 28px 16px; align-items: center; }
#phoneModal .modal-box { max-width: 880px; max-height: calc(100dvh - 56px); overflow-y: auto; padding: 0; margin: 0; background: var(--paper); }
#phoneModal .modal-close { z-index: 2; top: 18px; right: 18px; }
#phoneModalBody .pd-content { padding: 30px 28px 0; }
#phoneModalBody .pd-eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding-right: 35px; }
#phoneModalBody .phone-detail-title { font-size: 36px; line-height: 1.15; font-weight: 700; }
#phoneModalBody .pd-subtitle { color: var(--muted); margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
#phoneModalBody .pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#phoneModalBody .pd-chip { font-size: 13px; padding: 4px 10px; border: 1px solid; border-radius: 6px; background: #fff; }
#phoneModalBody .pd-summary { display: grid; grid-template-columns: .85fr 1.15fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-top: 22px; }
#phoneModalBody .pd-summary-cell { min-width: 0; padding: 18px; overflow-wrap: anywhere; }
#phoneModalBody .pd-summary-cell a { color: var(--accent) !important; }
#phoneModalBody .pd-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
#phoneModalBody h3 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
#phoneModalBody .pd-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#phoneModalBody .pd-section-head h3 { margin: 0; }
#phoneModalBody .pd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#phoneModalBody .pd-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
#phoneModalBody .phone-detail-row { padding: 8px 0 !important; border-bottom: 0 !important; }
#phoneModalBody .phone-detail-row > span:last-child { min-width: 0; overflow: visible !important; overflow-wrap: anywhere; text-overflow: clip !important; }
#phoneModalBody .pd-check:empty { display: none; }
#phoneModalBody .pd-check:not(:empty) { margin-top: 12px; }
#phoneModalBody .pd-unlock { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#phoneModalBody .pd-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
#phoneModalBody .pd-delete { margin: 22px 0 12px; }
#phoneModalBody .pd-delete .act { background: transparent; border-color: transparent; padding-left: 0; }
#phoneModalBody .pd-footer { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 16px 28px; z-index: 1; }
#phoneModalBody .pd-footer .pd-actions { justify-content: flex-end; }
@media (max-width: 600px) {
  #phoneModal { padding: 0; }
  #phoneModal .modal-box { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  #phoneModalBody .pd-content { padding: 24px 18px 0; }
  #phoneModalBody .phone-detail-title { font-size: 28px; }
  #phoneModalBody .pd-summary { grid-template-columns: 1fr 1fr; }
  #phoneModalBody .pd-summary-cell { padding: 14px; }
  #phoneModalBody .pd-summary-cell:last-child { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
  #phoneModalBody .pd-grid { grid-template-columns: minmax(0,1fr); }
  #phoneModalBody .pd-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  #phoneModalBody .pd-footer .act { flex: 1 1 120px; }
}


/* Shared modal: preserve spacing for other screens that use this container. */
#phoneModal .modal-box:not(:has(.pd-content)) { padding: 26px 28px; max-width: 560px; height: auto; }
#phoneModal .modal-box:has(.inv-edit) { max-width: 600px; }
#phoneModalBody .inv-edit { font-size: 14px; line-height: 1.5; }
#phoneModalBody .inv-edit h2, #umCard h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 28px; line-height: 1.2; margin: 0 32px 10px 0; }
#phoneModalBody .inv-edit label { display: block; font-size: 14px; font-weight: 600; margin-top: 12px; }
#phoneModalBody .inv-edit :is(input,select) { font-family: inherit; font-size: 16px !important; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); }
#phoneModalBody .inv-edit .hint { font-family: inherit; font-size: 13px; line-height: 1.5; }
#phoneModalBody .inv-form-note { background: var(--accent-soft); color: var(--ink); padding: 14px; border-radius: 8px; margin-top: 12px; }
#phoneModalBody .inv-form-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; }
#phoneModalBody .inv-form-actions .act { flex: 1 1 110px; }
#unlockMenuModal { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); }
#unlockMenuModal #umCard { max-width: 640px !important; background: var(--paper) !important; padding: 26px !important; max-height: calc(100dvh - 40px) !important; }
#umCard .um-carrier { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 10px 0; }
#umCard .um-carrier > span:first-child { overflow-wrap: anywhere; font-size: 15px; }
#umCard .um-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#umCard button { font-family: inherit !important; font-size: 14px !important; font-weight: 600; padding: 10px 12px !important; min-height:var(--app-control-height); border: 1px solid var(--line2); border-radius: 10px !important; color: var(--accent); background: #fff; cursor: pointer; }
#umCard button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
#umCard button:hover { box-shadow: inset 0 0 0 1px currentColor; }
#umCard button:focus-visible, #inventoryView .inv-table-scroll:focus-visible, #inventoryView .clickrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#umCard .um-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
#inventoryView .inv-empty, #umCard .inv-empty { padding: 28px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font-size: 14px; line-height: 1.5; }
#inventoryView .inv-empty strong, #umCard .inv-empty strong { display: block; font-size: 17px; font-weight: 600; }
#inventoryView .inv-empty p, #umCard .inv-empty p { margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
#inventoryView .inv-load-error { border-color: var(--warn); }
#inventoryView .inv-scroll-hint { display: none; }
#inventoryView .inv-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#inventoryView .inv-clean { min-width: 850px; margin: 0; width: 100%; white-space: normal; }
#inventoryView .inv-clean th { white-space: nowrap; }
#inventoryView .inv-clean td { padding: 12px 10px; }
#inventoryView .inv-clean td:nth-child(2) { min-width: 170px; overflow-wrap: anywhere; }
#inventoryView .inv-clean td:nth-child(3) { white-space: nowrap; }
#inventoryView .inv-clean td:nth-child(7) { min-width: 130px; }
#inventoryView .inv-clean td:nth-child(8) { white-space: nowrap; }
#inventoryView .clickrow { cursor: pointer; }
#inventoryView .clickrow:hover { background: var(--accent-soft); }
@media screen and (max-width: 720px) {
  #inventoryView .inv-scroll-hint { display: block; font-size: 13px; color: var(--muted); margin: 10px 0; }
  #inventoryView .inv-clean { display: table; overflow: visible; }
  #inventoryView .inv-clean thead { display: table-header-group; }
  #inventoryView .inv-clean tbody { display: table-row-group; }
  #inventoryView .inv-clean tr { display: table-row; }
  #inventoryView .inv-clean :is(th,td) { display: table-cell; }
}
@media screen and (max-width: 600px) {
  #phoneModal .modal-box:not(:has(.pd-content)) { padding: 24px 18px; max-height: 100dvh; }
  #unlockMenuModal { padding: 12px !important; }
  #unlockMenuModal #umCard { padding: 20px 16px !important; max-height: calc(100dvh - 24px) !important; }
  #umCard .um-actions { width: 100%; }
  #umCard .um-actions button { flex: 1 1 110px; }
}
@media print {
  #inventoryView .inv-table-scroll { overflow: visible; border: 0; }
  #inventoryView .inv-clean { min-width: 0; }
  #inventoryView .inv-scroll-hint { display: none; }
}


#dashView, #dashView *, #modeBar .appbrand { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
#modeBar .appbrand { white-space: normal !important; line-height: 1.25; letter-spacing: -.025em; }
#dashView header.top { border-bottom: 0; padding-bottom: 24px; }
#dashView .brand { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; }
#dashView .brand small { margin-top: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; }
















#dashView .act { font-size: 14px !important; line-height: 1.3; font-weight: 600; min-height: 42px; padding: 9px 12px !important; border-radius: 8px; border: 1px solid var(--line2); background: #fff; color: var(--accent); white-space: normal; }
#dashView .act.primary { background: var(--accent); border-color: var(--accent); color: #fff; }



#dashView :is(button,a,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

#dashView .act:hover { box-shadow: inset 0 0 0 1px currentColor; }
#dashView .dash-freshness { background: #fff; padding: 14px 16px !important; margin-bottom: 16px !important; }
#dashView .dash-freshness > span:first-child { font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; color: var(--ink) !important; }









#dashView .hint { font-size: 13px; line-height: 1.5; }

@media (max-width: 600px) {
 
 #dashView .brand { font-size: 28px; }
 
 
}









select),select){
  font-size: 16px !important; min-height:var(--app-control-height); padding: 10px 12px !important; border: 1px solid var(--line2); border-radius:var(--app-control-radius) !important; min-width: 0;
}





input,select,[tabindex]):focus-visible,input,select,[tabindex]):focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }













select){ width: 100% !important; min-width: 0 !important; }



td){ padding: 10px; }




#indivModal, #indivModal *, #phoneModalBody:has(>.today-support-marker), #phoneModalBody:has(>.today-support-marker) * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
#indivModal .modal-box { max-width: 760px !important; background: var(--paper); }
#phoneModal .modal-box:has(.today-support-marker) { max-width: 540px; padding: 28px; }
#indivModalBody, #phoneModalBody:has(>.today-support-marker) { font-size: 14px; line-height: 1.5; }
#indivModal .today-support-title, #phoneModalBody .today-support-title { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin: 0 28px 10px 0; }
#indivModal .hint, #phoneModalBody:has(>.today-support-marker) .hint { font-size: 13px; line-height: 1.5; }
#indivModal .ibgroup { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-top: 16px; }
#indivModal .ibglabel { font-size: 17px; font-weight: 650; text-transform: none; letter-spacing: 0; margin-bottom: 14px; color: var(--ink); }
#indivModal .lbl2 { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 6px; color: var(--ink); }
#indivModal .opt { font-size: 12px; color: var(--muted); font-weight: 400; }
#indivModal .ibgrid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
#indivModal .ibgrid4 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#indivModal :is(input,select), #phoneModalBody:has(>.today-support-marker) input { font-size: 16px !important; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line2); border-radius:var(--app-control-radius); }
#indivModal .act, #phoneModalBody:has(>.today-support-marker) .act { min-height:var(--app-control-height); font-size: 14px; font-weight: 600; padding: 10px 14px; border: 1px solid var(--line2); border-radius:var(--app-control-radius); background: #fff; color: var(--accent); }
#indivModal .act.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
#indivModal .act:disabled { opacity: .5; cursor: default; }
#indivModal :is(button,input,select):focus-visible, #phoneModalBody:has(>.today-support-marker) :is(button,input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#indivModal .today-edit-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
@media(max-width:600px) {
 #indivModal { padding: 12px; }
 #indivModal .modal-box { margin: 0; padding: 24px 18px; }
 #indivModal .ibgroup { padding: 14px; }
 #indivModal .ibgrid3 { grid-template-columns: minmax(0,1fr); }
 #indivModal .ibgrid3 > div { grid-column: auto !important; }
 #indivModal .ibgrid4 { grid-template-columns: minmax(0,1fr); }
 #indivModal .today-edit-footer .act { flex: 1 1 110px; }
 #phoneModal .modal-box:has(.today-support-marker) { padding: 24px 18px; }
}

/* People: directory, profiles, contact windows, and pricing terms. */

#profilesView, #profilesView *, #contactModal, #contactModal *, #ledgerModal, #ledgerModal *, #phoneModalBody:has(>.people-channel-marker), #phoneModalBody:has(>.people-channel-marker) * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
#profilesView { font-size: 14px; line-height: 1.5; }
#profilesView header.top { border-bottom: 0; padding-bottom: 18px; }
#profilesView .brand { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; }
#profilesView .brand small { font-size: 14px; text-transform: none; letter-spacing: 0; margin-top: 8px; }
#profilesView .people-priorities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
#profilesView .people-priorities:empty { display: none; }
#profilesView .people-priority { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
#profilesView .people-priority:only-child { grid-column: 1 / -1; }
#profilesView .people-priority > div:first-child { font-size: 18px !important; font-weight: 650; color: var(--ink) !important; text-transform: none !important; letter-spacing: -.015em !important; margin-bottom: 12px !important; }
#profilesView .people-priority > div:last-child { margin-bottom: 0 !important; border: 0 !important; }
#profilesView .people-priority [onclick] { overflow-wrap: anywhere; }
#profilesView .pgrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
#profilesView .pcard { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
#profilesView .pcard:hover { border-color: var(--accent); box-shadow: 0 3px 12px rgba(20,24,29,.06); }
#profilesView .pcard > div:last-child { padding: 16px !important; }
#profilesView .pcard > div:first-child:not(:last-child) { padding: 9px 16px !important; }
#profilesView .pcard > div:last-child > div:first-child > span:first-child { font-size: 17px !important; white-space: normal !important; overflow-wrap: anywhere; }
#profilesView .pcard > div:last-child > div:first-child > span:last-child { font-size: 17px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
#profilesView .pcard > div:last-child > div:last-child { flex-wrap: wrap; }
#profilesView .hint, #contactModal .hint, #ledgerModal .hint { font-size: 13px; line-height: 1.5; }
#profilesView :is(h2,h3) { letter-spacing: -.02em; }
#profilesView .pdetail-head { flex-wrap: wrap; gap: 12px; }
#profilesView .pdetail-head h2 { font-size: 28px; }
#profilesView .baltile { padding: 18px; border-radius: 10px; }
#profilesView .baltile .lbl { font-size: 13px; letter-spacing: 0; text-transform: none; }
#profilesView .val { font-variant-numeric: tabular-nums; }
#profilesView :is(.act,.pback), #contactModal .act, #ledgerModal .act, #phoneModalBody:has(>.people-channel-marker) .act { min-height: 42px; font-size: 14px !important; line-height: 1.4; font-weight: 600; padding: 9px 12px !important; border-radius:var(--app-control-radius); border: 1px solid var(--line2); background: #fff; color: var(--accent); white-space: normal; }
#profilesView .act.primary, #contactModal .act.primary, #ledgerModal .act.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
#profilesView .act.danger, #contactModal .act.danger { color: var(--danger); }
#profilesView [aria-pressed=true] { background: var(--accent) !important; color: #fff !important; }
#profilesView :is(input:not([type=checkbox]),select,textarea), #contactModal :is(input,select,textarea), #ledgerModal :is(input,select), #phoneModalBody:has(>.people-channel-marker) input { min-height:var(--app-control-height); font-size: 16px !important; padding: 9px 11px !important; border: 1px solid var(--line2); border-radius:var(--app-control-radius) !important; min-width: 0; }
#profilesView .act:disabled, #contactModal :disabled, #ledgerModal :disabled { opacity: .5; cursor: default; }
#profilesView :is(button,a,input,select,textarea,[tabindex]):focus-visible, #contactModal :is(button,input,select,textarea):focus-visible, #ledgerModal :is(button,input,select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#contactModal .modal-box, #ledgerModal .modal-box { background: var(--paper); max-width: 600px !important; }
#contactModalBody > div:first-child, #ledgerModalBody > div:first-child { font-size: 25px !important; line-height: 1.2; padding-right: 28px; margin-bottom: 10px !important; }
#contactModal .lbl2, #ledgerModal .lbl2 { display: block; font-size: 14px; margin-bottom: 6px; }
#phoneModal .modal-box:has(.people-channel-marker) { max-width: 660px; padding: 26px; }
#phoneModalBody:has(>.people-channel-marker) > div:nth-child(2) { font-size: 25px !important; padding-right: 24px; }
#phoneModalBody:has(>.people-channel-marker) input { max-width: 100%; }
#phoneModalBody:has(>.people-channel-marker) div[style*="padding:9px 2px"] { flex-wrap: wrap; }
@media(max-width:1100px) { #profilesView .pgrid { grid-template-columns: repeat(2,minmax(0,1fr)); } #profilesView .people-priorities { grid-template-columns: minmax(0,1fr); } }
@media(max-width:600px) { #profilesView .pgrid { grid-template-columns: minmax(0,1fr); } #profilesView .brand { font-size: 28px; } #contactModal, #ledgerModal { padding: 12px; } #contactModal .modal-box, #ledgerModal .modal-box { margin: 0; padding: 24px 18px; } }

/* Profile layout and compact device list. Desktop defaults, then phone overrides. */
@media screen {
 #profilesView #profilesBody:has(>.pdetail-head){max-width:1040px;width:100%;margin-right:auto}
 #profilesView #profilesBody>.pdetail-head{gap:12px;margin-bottom:8px;align-items:center}
 #profilesView #profilesBody>.pdetail-head h2{font-size:28px;letter-spacing:-.6px}
 #profilesView #profilesBody>.pdetail-head+.hint{font-size:13px;overflow-wrap:anywhere;line-height:1.6}
 #profilesView .people-cadence{color:var(--muted);font-size:13px;margin:12px 0 18px;line-height:1.6}
 #profilesView .people-account{display:flex;justify-content:flex-start;gap:40px;align-items:center;padding:18px 22px;background:var(--accent-soft);border-radius:10px;margin:16px 0 22px}
 #profilesView .people-account>div:first-child{min-width:150px}
 #profilesView .people-account>div+div{border-left:1px solid var(--line2);padding-left:32px}
 #profilesView .people-account span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}
 #profilesView .people-account strong{display:block;font-size:28px;line-height:1.2}
 #profilesView .people-account b{font-size:18px;font-variant-numeric:tabular-nums}
 #profilesView .people-device-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px}
 #profilesView .people-device-heading h3{margin:0;font-size:18px}
 #profilesView .people-device-heading span{font-size:13px;color:var(--muted)}
 #profilesView .people-device-filters{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;align-items:center;margin-bottom:14px}
 #profilesView .people-device-filters input{min-width:0}
 #profilesView .people-device-filters :is(input,select){font-size:16px;padding:10px;border:1px solid var(--line2);border-radius:8px;min-height:var(--app-control-height);background:#fff}
 #profilesView .people-device-filters #peopleDeviceSearch,
 #profilesView .people-device-filters #peopleDeviceStatus{width:100%;min-width:0;max-width:none;box-sizing:border-box;margin:0}
 #profilesView .people-device-list{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
 #profilesView .people-device-list article{display:grid;justify-content:space-between;grid-template-columns:minmax(0,1fr) 125px;gap:14px;padding:10px 14px;border-bottom:1px solid var(--line);cursor:pointer;align-items:center}
 #profilesView .people-device-list article:last-child{border:0}
 #profilesView .people-device-list article[hidden]{display:none}
 #profilesView .people-device-list article>div:first-child{min-width:0;overflow-wrap:anywhere}
 #profilesView .people-device-list article:hover{background:var(--accent-soft)}
 #profilesView .people-device-list article:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
 #profilesView .people-device-name{font-size:14px;line-height:1.4;font-weight:600}
 #profilesView .people-device-list p{font-size:12px;color:var(--muted);line-height:1.4;margin:1px 0}
 #profilesView .people-device-meta{font-variant-numeric:tabular-nums}
 #profilesView .people-device-price{display:flex;align-items:flex-end;flex-direction:column;gap:0;flex-shrink:0}
 #profilesView .people-device-price strong{font-size:16px;line-height:1.3;font-variant-numeric:tabular-nums}
 #profilesView .people-device-price small{font-size:11px;line-height:1.3;color:var(--muted)}
 #profilesView .people-device-status{padding:2px 6px;background:var(--accent-soft);color:var(--accent);font-size:11px;line-height:1.3;border-radius:5px;margin-top:4px;max-width:100%;text-align:right}
 #profilesView .people-support{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
 #profilesView .people-support summary{min-height:var(--app-control-height);cursor:pointer;font-weight:600}
 .people-remove{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
}
@media screen and (max-width:600px){
 #profilesView .people-device-filters{grid-template-columns:minmax(0,1fr)}
 #profilesView .people-account{gap:20px;padding:16px}
 #profilesView .people-account>div:first-child{min-width:0}
 #profilesView .people-account>div+div{padding-left:20px}
 #profilesView .people-device-list article{padding:10px 12px;gap:10px;grid-template-columns:minmax(0,1fr) 88px}
}
@media screen and (max-width:520px){
 #profilesView .people-account{flex-wrap:wrap}
}
@media screen and (max-width:380px){
 #profilesView .people-account{display:grid;grid-template-columns:1fr;gap:12px}
 #profilesView .people-account>div+div{border-left:0;border-top:1px solid var(--line2);padding:12px 0 0}
}

/* Seller pricing terms */

@media screen{
 #profilesView .person-terms{margin-top:18px}
 #profilesView .terms-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:16px;flex-wrap:wrap}
 #profilesView .terms-heading h3{font-size:19px;margin:0}
 #profilesView .terms-heading p{font-size:13px;color:var(--muted);margin:0}
 #profilesView .terms-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;margin-bottom:20px}
 #profilesView .terms-overview section{padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}
 #profilesView .terms-overview .terms-markdown{background:var(--accent-soft)}
 #profilesView .terms-overview h4{font-size:14px;margin:0 0 14px;font-weight:600}
 #profilesView .terms-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
 #profilesView .terms-badge{font-size:11px;color:var(--accent);border:1px solid var(--line2);border-radius:5px;padding:3px 7px}
 #profilesView .terms-markdown label{font-size:12px;color:var(--muted);display:block;margin-bottom:5px}
 #profilesView .terms-amount{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--accent);font-size:17px;font-weight:600}
 #profilesView .terms-amount #sellerMarkdown{width:96px;min-width:0;font-size:20px!important;text-align:right;box-sizing:border-box;background:#fff;font-variant-numeric:tabular-nums}
 #profilesView .terms-amount>span:last-child{font-size:12px;color:var(--muted);font-weight:400}
 #profilesView .terms-overview p{font-size:13px;line-height:1.5;color:var(--muted);margin:10px 0 0}
 #profilesView #termsMarkdownSaved{display:block;min-height:18px;font-size:12px;margin-top:5px}
 #profilesView .terms-rule strong{font-size:18px;font-weight:600}
 #profilesView .terms-detail{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
 #profilesView .terms-detail summary{cursor:pointer;min-height:var(--app-control-height);padding:15px 18px;font-size:15px;font-weight:600;color:var(--ink)}
 #profilesView .terms-detail summary>span{display:inline-block;vertical-align:middle}
 #profilesView .terms-detail summary small{display:block;font-size:12px;color:var(--muted);font-weight:400;line-height:1.5;margin-top:3px}
 #profilesView .terms-detail-body{padding:0 18px 18px;overflow-x:auto}
 #profilesView #termsPriceList>div{margin-top:0!important;border-top:0!important;padding-top:0!important}
 #profilesView .person-terms .otable{width:100%;table-layout:fixed;border:0}
 #profilesView .person-terms .otable thead{display:table-header-group}
 #profilesView .person-terms .otable th{font-size:12px;padding:10px 8px;background:var(--paper);white-space:normal}
 #profilesView .person-terms .otable td{padding:9px 8px;font-size:13px;white-space:normal;overflow-wrap:anywhere;min-width:0}
 #profilesView .person-terms .otable th:first-child{width:46%}
 #profilesView .person-terms .pp-price,#profilesView .person-terms .pd-amt{display:inline-block;padding:7px 3px;min-height:32px;color:var(--accent);font-family:inherit!important;font-weight:600}
 #profilesView .person-terms #pdmgType{max-width:100%!important}
}
@media screen and (max-width:600px){
 #profilesView .terms-overview{grid-template-columns:minmax(0,1fr)}
 #profilesView .terms-detail summary{padding:13px}
 #profilesView .terms-detail-body{padding:0 10px 12px}
 #profilesView .person-terms .otable th:first-child{width:42%}
 #profilesView .person-terms .pp-price,#profilesView .person-terms .pd-amt{min-height:var(--app-control-height);display:inline-flex;align-items:center}
}


#mobileNavToggle { display:none; }
@media screen and (max-width:999px) {
  #modeBar .apphead { align-items:center; flex-wrap:wrap; gap:10px; padding:8px 0 12px; }
  #modeBar .appbrand { flex:1 1 160px; font-size:16px; line-height:1.25; }
  #modeBar .apphead>span:last-child { gap:8px !important; }
  #modeBar #roleBtn { min-height:40px; font-family:inherit !important; font-size:13px !important; padding:8px 10px !important; color:var(--ink); }
  #modeBar #buildStamp { display:none; }
  #mobileNavToggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px; padding:11px 14px; margin:0 0 10px; border:1px solid var(--line2); border-radius:10px; background:#fff; color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-size:15px; font-weight:600; text-align:left; cursor:pointer; }
  #mobileNavToggle .mobile-menu-label { color:var(--accent); }
  #modeBar #mobileNavLinks { display:none; border:1px solid var(--line); border-radius:10px; margin:0 0 14px; padding:6px; background:#fff; overflow:visible; }
  #modeBar.mobile-nav-open #mobileNavLinks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  #modeBar #mobileNavLinks .modetab { margin:0; padding:12px; min-height:46px; border:0; border-radius:8px; background:transparent; color:var(--ink); text-align:left; white-space:normal; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-size:14px; line-height:1.4; letter-spacing:0; }
  #modeBar #mobileNavLinks .modetab.active { background:var(--accent); color:#fff; font-weight:600; }
  #mobileNavToggle:focus-visible, #modeBar #mobileNavLinks .modetab:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
}
@media print { #mobileNavToggle { display:none !important; } }


@media screen {
body:not(.showquote) :is(#ordersView,#inspectView,#mainView), body:not(.showquote) :is(#ordersView,#inspectView,#mainView) *, #payModal, #payModal *, #settleModal, #settleModal * { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) { font-size:14px; line-height:1.5; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) header.top { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line); }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .brand { font-size:32px; line-height:1.2; letter-spacing:-.03em; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .brand small { font-size:14px; line-height:1.5; letter-spacing:0; text-transform:none; margin-top:8px; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .hint, :is(#payModal,#settleModal) .hint { font-size:13px; line-height:1.5; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .act, :is(#payModal,#settleModal) .act { min-height:var(--app-control-height); padding:10px 14px; font-size:14px; font-weight:600; line-height:1.4; border:1px solid var(--line2); border-radius:var(--app-control-radius); background:#fff; color:var(--accent); white-space:normal; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .act.primary, :is(#payModal,#settleModal) .act.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .act.danger, :is(#payModal,#settleModal) .act.danger { color:var(--danger); }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .act:disabled, :is(#payModal,#settleModal) .act:disabled { opacity:.5; cursor:default; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) :is(input:not([type=checkbox]),select,textarea), :is(#payModal,#settleModal) :is(input:not([type=checkbox]),select,textarea) { min-height:42px; font-size:16px; border-radius:8px; padding:9px 10px; }
body:not(.showquote) :is(#ordersView,#inspectView,#mainView) :is(button,input,select,textarea,a,summary):focus-visible, :is(#payModal,#settleModal) :is(button,input,select):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#ordersView #ordersBody { margin-top:20px; }
#ordersView .otable { background:#fff; border:1px solid var(--line); border-radius:10px; }
#ordersView .otable th { font-size:12px; letter-spacing:.025em; padding:12px; white-space:nowrap; }
#ordersView .otable td { font-size:14px; padding:13px 12px; line-height:1.5; }
#ordersView .otable tr[onclick] { cursor:pointer; }
#ordersView .otable tr[onclick]:hover { background:var(--accent-soft); }
#ordersView .stt { font-size:12px; padding:5px 9px; border-radius:7px; }
#ordersView .baltop { gap:12px; }
#ordersView .baltile { padding:18px; border:1px solid var(--line); border-radius:10px; background:#fff; min-width:0; }
#ordersView .baltile .lbl { font-size:13px; letter-spacing:0; text-transform:none; }
#ordersView .baltile .val { font-size:28px; line-height:1.25; font-variant-numeric:tabular-nums; margin-top:8px; overflow-wrap:anywhere; }
#ordersView :is(h2,h3) { letter-spacing:-.02em; }
#ordersView details { margin-top:20px; }
#ordersView details>summary { font-size:15px; padding:10px 0; cursor:pointer; }
#inspectView .icard { border-radius:10px; margin-top:12px; }
#inspectView .icard-top { padding:14px 16px; flex-wrap:wrap; }
#inspectView .icard-inputs { gap:12px; padding:16px; }
#inspectView .iflabel { font-size:12px; letter-spacing:0; text-transform:none; }
#inspectView .icard-ident { font-size:16px; }
#inspectView .icard-imei { font-size:13px; }
#inspectView .iactual { gap:12px; padding:14px 16px; }
#inspectView #inspSaveBar { font-size:14px; line-height:1.4; padding:12px 16px; }
body:not(.showquote) #mainView .drop { padding:30px 20px; border-radius:12px; background:#fff; }
body:not(.showquote) #mainView .drop h2 { font-size:22px; }
body:not(.showquote) #mainView .sheet { box-shadow:none; }
:is(#payModal,#settleModal) .modal-box { background:var(--paper); }
:is(#payModalBody,#settleModalBody) { font-size:14px; line-height:1.5; }
:is(#payModalBody,#settleModalBody)>div:first-child { font-size:24px !important; line-height:1.25; padding-right:28px; margin-bottom:10px !important; }
:is(#payModal,#settleModal) label { font-size:14px !important; }
body:not(.showquote) :is(#ordersView,#inspectView) [style*="font-size:11px"], :is(#payModal,#settleModal) [style*="font-size:11px"] { font-size:13px !important; }
}
@media screen and (max-width:720px) {
 #ordersView .otable { display:block; overflow-x:auto; }
 #ordersView .otable thead { display:table-header-group; }
 #ordersView .otable td { min-width:85px; }
 #ordersView .otable td:first-child { min-width:150px; white-space:normal; }
 #ordersView .baltop { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body:not(.showquote) :is(#ordersView,#inspectView,#mainView) .brand { font-size:28px; }
 #payModal, #settleModal { padding:12px; }
 :is(#payModal,#settleModal) .modal-box { margin:0; padding:24px 18px; }
}
@media screen and (max-width:420px) { #ordersView .baltop { grid-template-columns:minmax(0,1fr); } }


@media screen {
#salesView, #salesView *, body.mode-sales #phoneModal, body.mode-sales #phoneModal * { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important; }
#salesView { font-size:14px; line-height:1.5; }
#salesView header.top { display:flex; align-items:center; flex-wrap:wrap; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line); }
#salesView .brand { font-size:32px; line-height:1.2; letter-spacing:-.03em; }
#salesView .brand small { font-size:14px; margin-top:8px; line-height:1.5; letter-spacing:0; text-transform:none; }
#salesBody { margin-top:20px; }
#salesView .hint, body.mode-sales #phoneModal .hint { font-size:13px; line-height:1.5; }
#salesView .act, body.mode-sales #phoneModal .act { min-height:var(--app-control-height); padding:10px 14px; border:1px solid var(--line2); border-radius:var(--app-control-radius); font-size:14px; font-weight:600; line-height:1.4; background:#fff; color:var(--accent); white-space:normal; }
#salesView .act.primary, body.mode-sales #phoneModal .act.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
#salesView .act.danger, body.mode-sales #phoneModal .act.danger { color:var(--danger); }
#salesView .act:disabled, body.mode-sales #phoneModal .act:disabled { opacity:.5; cursor:default; }
#salesView :is(input:not([type=checkbox]),select,textarea), body.mode-sales #phoneModal :is(input:not([type=checkbox]),select,textarea) { min-height:var(--app-control-height); font-size:16px !important; padding:9px 11px; border:1px solid var(--line2); border-radius:var(--app-control-radius); min-width:0; }
#salesView label, body.mode-sales #phoneModal label { font-size:14px !important; }
#salesView :is(button,input,select,textarea,a,summary):focus-visible, body.mode-sales #phoneModal :is(button,input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#salesView .otable { background:#fff; border:1px solid var(--line); border-radius:10px; }
#salesView .otable th { font-size:12px; letter-spacing:.025em; padding:12px; white-space:nowrap; }
#salesView .otable td { font-size:14px; padding:12px; line-height:1.5; }
#salesView .otable tr[onclick] { cursor:pointer; }
#salesView .otable tr[onclick]:hover { background:var(--accent-soft); }
#salesView .num, #salesView .val, #salesView #saleCartSummary { font-variant-numeric:tabular-nums; }
#salesView .stt { font-size:12px; padding:5px 9px; border-radius:7px; }
#salesView .baltile { min-width:0; padding:18px; border:1px solid var(--line); border-radius:10px; background:#fff; }
#salesView .baltile .lbl { font-size:13px; letter-spacing:0; text-transform:none; }
#salesView .baltile .val { font-size:28px; margin-top:8px; line-height:1.25; overflow-wrap:anywhere; }
#salesView #saleCartBar { background:var(--paper) !important; border-top:1px solid var(--line2) !important; padding:16px 12px !important; z-index:5; }
#salesView #saleCartSummary { font-size:15px !important; font-weight:600; }
#salesView #saleMore { z-index:10; }
#salesView :is(h2,h3) { letter-spacing:-.02em; }
#salesView [style*="font-size:11px"], body.mode-sales #phoneModal [style*="font-size:11px"] { font-size:13px !important; }
body.mode-sales #phoneModal .modal-box { background:var(--paper); }
body.mode-sales #phoneModalBody > div:first-child { font-size:24px !important; line-height:1.25; padding-right:28px; margin-bottom:10px !important; }
body.mode-sales #phoneModal #dmgPick label { min-height:var(--app-control-height); padding:10px 2px !important; }
}
@media screen and (max-width:720px) {
 #salesView .brand { font-size:28px; }
 #salesView .otable { display:block; overflow-x:auto; }
 #salesView .otable thead { display:table-header-group; }
 #salesView .otable td { min-width:85px; }
 #salesView .otable td:first-child { min-width:140px; white-space:normal; }
 #salesView .baltop { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 #salesView #saleCartBar { padding-bottom:calc(16px + env(safe-area-inset-bottom)) !important; }
}
@media screen and (max-width:420px) { #salesView .baltop { grid-template-columns:minmax(0,1fr); } }


@media screen {
#ratesView, #ratesView *, body.mode-rates #phoneModal, body.mode-rates #phoneModal * { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important; }
#ratesView { font-size:14px; line-height:1.5; }
#ratesView header.top { display:flex; align-items:center; flex-wrap:wrap; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line); }
#ratesView .brand { font-size:32px; line-height:1.2; letter-spacing:-.03em; }
#ratesView .brand small { font-size:14px; line-height:1.5; margin-top:8px; letter-spacing:0; text-transform:none; }
#ratesBody { margin-top:20px; }
#ratesView .act, body.mode-rates #phoneModal .act { min-height:var(--app-control-height); padding:10px 14px; border:1px solid var(--line2); border-radius:var(--app-control-radius); font-size:14px; font-weight:600; line-height:1.4; background:#fff; color:var(--accent); white-space:normal; }
#ratesView .act.primary, body.mode-rates #phoneModal .act.primary { color:#fff; background:var(--accent); border-color:var(--accent); }
#ratesView .act.danger, body.mode-rates #phoneModal .act.danger { color:var(--danger); }
#ratesView .act:disabled, body.mode-rates #phoneModal .act:disabled { opacity:.5; cursor:default; }
#ratesView :is(input:not([type=checkbox]),select,textarea), body.mode-rates #phoneModal :is(input:not([type=checkbox]),select,textarea) { min-height:42px; font-size:16px !important; padding:9px 10px; border:1px solid var(--line2); border-radius:8px; min-width:0; }
#ratesView .hint, body.mode-rates #phoneModal .hint { font-size:13px; line-height:1.5; }
#ratesView label, body.mode-rates #phoneModal label { font-size:14px !important; }
#ratesView :is(button,input,select,textarea,a,summary):focus-visible, body.mode-rates #phoneModal :is(button,input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#ratesView .otable { border:1px solid var(--line); border-radius:10px; background:#fff; }
#ratesView .otable th { font-size:12px; line-height:1.4; letter-spacing:.025em; padding:12px 10px; }
#ratesView .otable td { font-size:14px; line-height:1.5; padding:12px 10px; font-variant-numeric:tabular-nums; }
#ratesView .otable tr[onclick]:hover { background:var(--accent-soft); }
#ratesView .balcard, #ratesView .baltile { border:1px solid var(--line); border-radius:10px; background:#fff; }
#ratesView .baltile { padding:18px; min-width:0; }
#ratesView .val { font-variant-numeric:tabular-nums; }
#ratesView :is(h2,h3) { letter-spacing:-.02em; }
#ratesView [style*="font-size:11px"], body.mode-rates #phoneModal [style*="font-size:11px"] { font-size:13px !important; }
body.mode-rates #phoneModal .modal-box { background:var(--paper); }
body.mode-rates #phoneModalBody > div:first-child { font-size:24px !important; line-height:1.25; padding-right:28px; margin-bottom:10px !important; }
#ratesView #rateGearBar { margin-bottom:14px; }
}
@media screen and (max-width:720px) {
 #ratesView .brand { font-size:28px; }
 #ratesView .otable { display:block; overflow-x:auto; }
 #ratesView .otable thead { display:table-header-group; }
 #ratesView .otable td { min-width:80px; }
 #ratesView .otable td:first-child { min-width:150px; white-space:normal; }
}


@media screen and (max-width:720px) {
 #pickupView .pkrow2 > div { flex:0 1 auto !important; }
 :is(#ordersView,#salesView) .mobile-cards { display:block; width:100%; min-width:0 !important; overflow:visible; border:0; background:transparent; }
 :is(#ordersView,#salesView) .mobile-cards thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 :is(#ordersView,#salesView) .mobile-cards tbody { display:block; }
 :is(#ordersView,#salesView) .mobile-cards tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; padding:12px; border:1px solid var(--line) !important; border-radius:10px; background:#fff; }
 :is(#ordersView,#salesView) .mobile-cards td { display:block; min-width:0 !important; width:auto !important; padding:8px !important; border:0; white-space:normal; overflow-wrap:anywhere; text-align:left !important; }
 :is(#ordersView,#salesView) .mobile-cards td:first-child, :is(#ordersView,#salesView) .mobile-cards td[colspan] { grid-column:1 / -1; font-weight:600; }
 :is(#ordersView,#salesView) .mobile-cards td[data-label]::before { content:attr(data-label); display:block; margin-bottom:4px; font-size:12px; font-weight:500; color:var(--muted); }
 :is(#ordersView,#salesView) .mobile-cards td:first-child::before { display:none; }
}

/* Today: entry, selectors, price tables, responsive layout, MacBook expansion. */

#pickupView, #pickupView * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
#pickupView { font-size: 14px; line-height: 1.5; }
#pickupView .today-title { font-size: 32px !important; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 8px; }
#pickupView h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; margin: 0 0 16px; }
#pickupView .hint { font-size: 13px; line-height: 1.5; }
#pickupView .pkcards { grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); gap: 18px; align-items: start; }
#pickupView .pkcards > * { min-width: 0; }
#pickupView .today-panel { padding: 22px !important; }
#pickupView .pkform { max-width: 680px; border: 1px solid var(--line); background: #fff; padding: 24px; border-radius: 12px; }
#pickupView label { font-size: 14px !important; font-weight: 500; }
#pickupView :is(input:not([type=checkbox]),select) { font-size: 16px !important; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line2); border-radius:var(--app-control-radius); min-width: 0; }
#pickupView .pkrow2 > div { min-width: 0; }
#pickupView input::placeholder { color: var(--muted); opacity: .8; }
#pickupView .act { font-size: 14px; font-weight: 600; line-height: 1.4; min-height:var(--app-control-height); border-radius:var(--app-control-radius); padding: 10px 12px; border: 1px solid var(--line2); background: #fff; color: var(--accent); white-space: normal; }
#pickupView .act.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
#pickupView .act:disabled { opacity: .5; cursor: default; }
#pickupView .pkbig { min-height: 48px; font-size: 16px; }
#pickupView .act:not(:disabled):hover { box-shadow: inset 0 0 0 1px currentColor; }
#pickupView :is(button,input,select,a,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#pickupView a { text-underline-offset: 3px; }

#pickupView .today-purchases { border: 1px solid var(--line); padding: 20px; border-radius: 12px; background: #fff; margin-top: 20px; }
#pickupView .today-purchases h2 { margin-bottom: 6px; }
#pickupView .today-purchases > div[onclick] { padding: 12px 0 !important; gap: 12px; font-size: 14px !important; }
#pickupView .today-purchases > div[onclick]:hover { background: var(--accent-soft); }
#pickupView .today-purchases > div > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
#pickupView .today-jobs > div:first-child { font-size: 16px !important; font-weight: 650; text-transform: none !important; letter-spacing: 0 !important; }
#pickupView .today-jobs > div:not(:first-child) { background-color: #fff; }
#pickupView .pkchip { font-size: 14px; padding: 9px 12px; border-radius: 8px; line-height: 1.5; }
#pickupView .pkchip.on { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
#pickupView .pkverdict { border-radius: 10px; padding: 18px; }
@media (max-width: 1100px) { #pickupView .pkcards { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
 #pickupView .today-title { font-size: 28px !important; }
 #pickupView .today-panel, #pickupView .pkform { padding: 18px !important; }
 #pickupView .pkrow2 { flex-wrap: wrap; }

 #pickupView .today-purchases { padding: 16px; }
}


@media screen {
 #pickupView .today-panel,#pickupView .pkform,#pickupView .today-purchases{border-radius:10px;padding:20px!important}
 #pickupView .pkform{width:100%;box-sizing:border-box;margin-top:16px}
 #pickupView .today-title{font-size:28px!important;line-height:1.25;margin-bottom:6px}
 #pickupView h2{font-size:19px;margin-bottom:14px}
 #pickupView .pkrow2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
 #pickupView .pkrow2>div{width:auto;min-width:0}
 #pickupView :is(input:not([type=checkbox]),select){box-sizing:border-box;min-height:var(--app-control-height);border-radius:8px}
 #pickupView .act,#pickupView .pkchip{min-height:var(--app-control-height);border-radius:8px;font-size:14px;line-height:1.4}
 #pickupView .act[style*="background:var(--ink)"],#pickupView .pkchip.on{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
 #pickupView .pkverdict{padding:16px;border-radius:10px;margin-bottom:12px;text-align:left}
 #pickupView .pkverdict>div:first-child{font-size:18px!important;line-height:1.4;font-weight:600!important}
 #pickupView .pkform [style*="font-size:26px"]{font-size:28px!important;line-height:1.2;font-weight:650!important;margin:6px 0}
 #pickupView :is([style*="font-size:10px"],[style*="font-size:11px"]){font-size:12px!important;line-height:1.5}
 #pickupView .pkform [style*="font-size:12px"]{font-size:13px!important;line-height:1.5}
 #pickupView .pkform>.act{min-height:var(--app-control-height);height:auto!important}
 #pickupView .today-purchases>div[onclick]{padding:10px 0!important;font-size:13px!important}
 #pickupView .today-purchases>div>span:first-child{min-width:0;overflow-wrap:anywhere}
 #pickupView .today-jobs>div:first-child{font-size:18px!important;margin-bottom:12px!important}
 #phoneModalBody:has(>.today-support-marker) .today-support-title,#indivModal .today-support-title{font-size:24px}
 #indivModal .ibgroup{padding:16px;margin-top:14px}
 #indivModal .ibglabel{font-size:16px;margin-bottom:12px}
 #indivModal :is(input,select),#phoneModalBody:has(>.today-support-marker) input{min-height:var(--app-control-height);box-sizing:border-box}
}
@media screen and (max-width:600px){
 #pickupView .today-panel,#pickupView .pkform,#pickupView .today-purchases{padding:16px!important}
 #pickupView .pkrow2{grid-template-columns:minmax(0,1fr)}
}




/* Instant price tooltip. The browser's own title attribute waits about a second before
   appearing, which felt like lag when checking a column of prices. */
.pxtip{ position:relative; cursor:help; }
.pxtip::after{
  content:attr(data-tip);
  position:absolute; bottom:calc(100% + 5px); right:0;
  background:var(--ink); color:#fff; font-family:var(--font-sans,system-ui,sans-serif);
  font-size:11px; line-height:1.3; white-space:nowrap;
  padding:5px 8px; border-radius:6px;
  opacity:0; visibility:hidden; transition:opacity .08s;
  pointer-events:none; z-index:40;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.pxtip:hover::after{ opacity:1; visibility:visible; }
/* Near the left edge the tooltip would run off screen, so flip it. */
.otable td:nth-child(2) .pxtip::after{ right:auto; left:0; }


/* ---- Dashboard spacing (Sep 21) ----------------------------------------------------
   Tiles are now one number and one line, so they're sized to that: even padding, the
   number close to its label, no empty space at the bottom. The cash buttons sit in the
   tile's header so all three top tiles are the same shape. */









#dashView .dash-freshness { display: inline-flex !important; width: auto; max-width: 100%; padding: 7px 13px !important;
  margin-bottom: 4px !important; border-radius: 999px !important; background: #fff; font-weight: 500; }








/* ---- Phone popup, Oct 13 redesign: phone · money · condition|carrier · services · folded extras ---- */
#phoneModal .modal-box:has(.pd2){max-width:600px}
#phoneModalBody .pd2{padding:24px 26px 6px}
#phoneModalBody .pd2-top{font-size:12px;color:var(--muted);padding-right:40px}
#phoneModalBody .pd2-title{font-size:26px;font-weight:700;line-height:1.2;margin-top:2px}
#phoneModalBody .pd2-subrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:3px}
#phoneModalBody .pd2-sub{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
#phoneModalBody .pd2-mono{font-family:ui-monospace,Menlo,monospace;font-size:13px}
#phoneModalBody .pd2-link{color:var(--accent);text-decoration:none;font-size:13px}
#phoneModalBody .pd2-link:hover{text-decoration:underline}
#phoneModalBody .pd2-pill{font-size:12px;padding:3px 10px;border-radius:999px;white-space:nowrap}
#phoneModalBody .pd2-pill.pd2-good{background:var(--accent-soft);color:var(--accent)}
#phoneModalBody .pd2-pill.pd2-warn{background:var(--warn-soft);color:var(--warn)}
#phoneModalBody .pd2-pill.pd2-bad{background:var(--danger-soft);color:var(--danger)}
#phoneModalBody .pd2-pill.pd2-muted{background:#f1eee6;color:var(--muted)}
#phoneModalBody .pd2-money{display:flex;gap:44px;flex-wrap:wrap;margin:22px 0 18px}
#phoneModalBody .pd2-lab{font-size:12px;color:var(--muted);margin-bottom:3px}
#phoneModalBody .pd2-big{font-size:30px;font-weight:700;line-height:1.1}
#phoneModalBody .pd2-note{font-size:12px;color:var(--muted);margin-top:3px}
#phoneModalBody .pd2-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
#phoneModalBody .pd2-tile{background:#f4f1ea;border-radius:10px;padding:12px 14px;min-width:0}
#phoneModalBody .pd2-head{font-size:16px;font-weight:600;overflow-wrap:anywhere}
#phoneModalBody .pd2-lines{margin-top:6px}
#phoneModalBody .pd2-line{font-size:13px;color:var(--ink);margin-top:2px;overflow-wrap:anywhere}
#phoneModalBody .pd2-muted{font-size:13px;color:var(--muted)}
#phoneModalBody .pd2-faint{font-size:12px;color:#9a968a;margin-top:6px}
#phoneModalBody .pd2-acts{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
#phoneModalBody .pd2-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px;vertical-align:1px;flex:none}
#phoneModalBody .pd2-dot.pd2-good{background:var(--accent)}
#phoneModalBody .pd2-dot.pd2-warn{background:#d08a1c}
#phoneModalBody .pd2-dot.pd2-bad{background:var(--danger)}
#phoneModalBody .pd2-h-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}
#phoneModalBody .pd2-h{font-size:15px;font-weight:600}
#phoneModalBody .pd2-services{margin-bottom:16px}
#phoneModalBody .pd2-services h3{font-family:inherit;font-size:15px;font-weight:600;margin:0}
#phoneModalBody .pd2-svc{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
#phoneModalBody .pd2-svc-ic{width:18px;text-align:center;font-size:13px}
#phoneModalBody .pd2-svc-what{flex:1;min-width:0;overflow-wrap:anywhere}
#phoneModalBody .pd2-svc-cost{font-family:ui-monospace,monospace;font-size:13px;white-space:nowrap}
#phoneModalBody .pd2-svc-cost input{width:64px;text-align:right;padding:4px 6px;font-size:13px}
#phoneModalBody .pd2-svc-st{width:auto;padding:4px 6px;font-size:12px;border-color:var(--line)}
#phoneModalBody .pd2-x{color:var(--muted);text-decoration:none;font-size:16px;padding:0 4px}
#phoneModalBody .pd2-x:hover{color:var(--danger)}
#phoneModalBody .pd2-svc-add{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
#phoneModalBody .pd2-svc-add select{width:auto}
#phoneModalBody .pd2-svc-add #svcDesc{flex:1;min-width:140px;width:auto}
#phoneModalBody .pd2-svc-add[hidden],#phoneModalBody .pd2-fold[hidden],#phoneModalBody .pd2-menu[hidden]{display:none}
#phoneModalBody .pd2-notes{font-size:13px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;border-left:3px solid var(--line);padding:2px 0 2px 10px;margin-bottom:14px}
#phoneModalBody .pd2-quiet{display:flex;gap:20px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line)}
#phoneModalBody .pd2-quiet a{font-size:13px;color:var(--ink);text-decoration:none}
#phoneModalBody .pd2-quiet a:hover{color:var(--accent)}
#phoneModalBody .pd2-quiet .pd2-faint{margin:0;font-size:12px}
#phoneModalBody .pd2-fold{padding:4px 0 14px}
#phoneModalBody .pd2-ev{display:grid;grid-template-columns:86px 14px 1fr;font-size:13px;padding:3px 0}
#phoneModalBody .pd2-ev-d{color:var(--muted)}
#phoneModalBody .pd2-ev-dot{width:7px;height:7px;border-radius:50%;background:var(--line2);margin-top:6px}
#phoneModalBody .pd2-kvgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
#phoneModalBody .pd2-kv{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:3px 0;border-bottom:1px solid var(--line);min-width:0}
#phoneModalBody .pd2-kv span:first-child{color:var(--muted);white-space:nowrap}
#phoneModalBody .pd2-kv span:last-child{text-align:right;overflow-wrap:anywhere}
#phoneModalBody .pd2-raw{margin-top:10px}
#phoneModalBody .pd2-raw summary{font-size:12px;color:var(--accent);cursor:pointer}
#phoneModalBody .pd2-raw pre{font-size:11.5px;white-space:pre-wrap;color:var(--muted);margin:6px 0 0}
#phoneModalBody .pd2-menu{position:absolute;bottom:46px;left:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;display:flex;flex-direction:column;min-width:170px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:3}
#phoneModalBody .pd2-menu a{padding:8px 10px;font-size:14px;color:var(--ink);text-decoration:none;border-radius:6px}
#phoneModalBody .pd2-menu a:hover{background:#f4f1ea}
@media (max-width:620px){
  #phoneModalBody .pd2{padding:20px 18px 6px}
  #phoneModalBody .pd2-tiles{grid-template-columns:minmax(0,1fr)}
  #phoneModalBody .pd2-kvgrid{grid-template-columns:minmax(0,1fr)}
  #phoneModalBody .pd2-money{gap:30px}
}
#phoneModalBody .pd-footer .act.pd2-more{flex:0 0 52px}
#phoneModalBody .pd2-svc-stat{font-size:12px;color:var(--muted);white-space:nowrap;min-width:92px;text-align:right}
#phoneModalBody .pd2-svc-ch{color:var(--line2);font-size:18px;line-height:1}
#phoneModalBody .pd2-svc:hover{background:#f7f4ed}
#phoneModalBody .pd2-svc-ed{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:4px 0 10px 26px}
#phoneModalBody .pd2-svc-ed[hidden]{display:none}
body:not(.role-employee) .employee-only{display:none!important}

/* ---- Add phones to a sale (popup) ---- */
#phoneModal .modal-box:has(.sale-add){max-width:720px;padding:0;display:flex;flex-direction:column}
#phoneModalBody .sale-add{display:flex;flex-direction:column;max-height:calc(100dvh - 56px)}
.sale-add-head{padding:24px 56px 14px 24px}
.sale-add-title{font-size:20px;font-weight:700;line-height:1.2}
.sale-add-sub{font-size:13px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.sale-add-tools{display:flex;gap:8px;padding:0 24px 12px}
.sale-add-tools input{flex:1;min-width:0;width:auto;padding:9px 12px;border:1px solid var(--line2);border-radius:8px;font-size:14px;background:#fff}
.sale-add-tools select{flex:0 0 auto;width:auto;max-width:42%;padding:9px 10px;border:1px solid var(--line2);border-radius:8px;font-size:14px;background:#fff}
.sale-add-list{flex:1;min-height:120px;overflow-y:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.sale-add-colhead,.sale-add-row{display:grid;grid-template-columns:36px minmax(0,1fr) 120px 80px;align-items:center;gap:10px;padding:0 24px 0 18px}
.sale-add-colhead{position:sticky;top:0;z-index:1;background:var(--paper);border-bottom:1px solid var(--line);
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:8px;padding-bottom:8px}
.sale-add-colhead span:last-child,.sale-add-price{text-align:right}
.sale-add-row{padding-top:10px;padding-bottom:10px;border-bottom:1px solid var(--line);cursor:pointer;font-weight:400}
.sale-add-row:last-child{border-bottom:0}
.sale-add-row:hover{background:var(--paper)}
.sale-add-row.on{background:var(--accent-soft,#eef6f1)}
.sale-add-row.off{opacity:.5;cursor:default}
.sale-add-check{display:flex;justify-content:center}
.sale-add-check input{width:17px;height:17px;margin:0;cursor:pointer}
.sale-add-dev{display:flex;flex-direction:column;min-width:0}
.sale-add-model{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sale-add-model span{font-weight:400;font-size:12px;color:var(--muted)}
.sale-add-imei{font-family:ui-monospace,monospace;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sale-add-cond{font-size:12px;color:var(--muted)}
.sale-add-cond.dmg{color:var(--warn)}
.sale-add-price{font-family:ui-monospace,monospace;font-size:13px;font-weight:600}
.sale-add-price em{font-style:normal;font-weight:400;color:var(--line2);font-size:11px}
.sale-add-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px 20px}
.sale-add-sum{font-family:ui-monospace,monospace;font-size:13px}
#phoneModalBody .sale-add-foot .act{white-space:nowrap}
@media (max-width:560px){
  .sale-add-colhead,.sale-add-row{grid-template-columns:28px minmax(0,1fr) 64px;padding:0 16px 0 12px}
  .sale-add-colhead{padding-top:8px;padding-bottom:8px}
  .sale-add-row{padding-top:10px;padding-bottom:10px}
  .sale-add-colhead span:nth-child(3){display:none}
  .sale-add-cond{grid-column:2;grid-row:2;margin-top:-6px}
  .sale-add-price{grid-column:3;grid-row:1}
  .sale-add-head{padding:20px 52px 12px 16px}
  .sale-add-tools,.sale-add-foot{padding-left:16px;padding-right:16px}
}

/* ---- New sale: sortable headers + buyer price popup ---- */
th.sortable:hover{color:var(--ink)}
th.sortable.on{color:var(--ink)}
.bb-cell{position:relative;display:inline-block;cursor:default;white-space:nowrap;outline:none}
.bb-more{font-size:10px;color:var(--muted)}
.bb-pop{display:none;position:fixed;z-index:300;min-width:230px;
  background:#fff;border:1px solid var(--line2);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.14);
  padding:10px 12px;text-align:left;white-space:normal;font-size:13px;color:var(--ink)}
.bb-cell:hover .bb-pop,.bb-cell:focus .bb-pop,.bb-cell.open .bb-pop{display:block}
.bb-pop-h{display:block;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.bb-pop-r{display:grid;grid-template-columns:1fr auto 72px;gap:10px;align-items:baseline;padding:5px 0;border-top:1px solid var(--line)}
.bb-pop-r b{font-family:ui-monospace,monospace;font-weight:600;text-align:right}
.bb-pop-r em{font-style:normal;font-size:11px;color:#a12b21;text-align:right}
.bb-pop-r i{font-style:normal;font-size:10px;color:var(--muted)}
.bb-pop-r.best b,.bb-pop-r.best em{color:var(--accent)}
.bb-pop-f{display:block;border-top:1px solid var(--line);padding-top:6px;margin-top:2px;font-size:11px;color:var(--muted)}

/* Rates: section tabs (Atlas prices · Our rates · Damages · History) */
#ratePane tr[data-tier] input{min-height:0;height:32px}
/* Download ▾ menu */
/* Our rates cards */
/* Damages grid */
/* Our rates: two cards, click a number to edit */
.our-warn{margin-top:8px;padding:8px 11px;background:var(--warn-soft);border:1px solid #e6c98a;border-radius:8px;font-size:12px;color:var(--warn)}
.our-note{margin-top:8px;font-size:12px;color:var(--muted)}
/* Buyer price sheet link strip */
.bs-link{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:12px;font-size:13px}
.bs-link.bs-empty{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:transparent;border-style:dashed}
#phoneModal #phoneModalBody .act.bs-close,#phoneModal #phoneModalBody .act.bs-close:hover{background:#fff !important;color:var(--ink) !important;border:1px solid var(--line2) !important}
/* Atlas line in the "What buyers pay" popup — the yardstick, set apart from the buyers */
.bb-pop-r.bb-atlas{border-top:1px dashed var(--line2);margin-top:2px;color:var(--muted)}
.bb-pop-r.bb-atlas b{color:var(--ink)}
.bb-pop-r.bb-atlas em{color:var(--muted)}
.bb-cell.inv-cost{cursor:help;border-bottom:1px dashed var(--line2)}
.bb-pop-r em.up{color:var(--accent)}
.bb-pop-r em.dn{color:#a12b21}
/* "In price comparisons" switch on a buyer profile */
.cmp-switch{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);cursor:pointer;white-space:nowrap;margin-right:8px}
.cmp-switch input{width:auto;min-height:0;height:16px;margin:0;accent-color:var(--accent)}
.cmp-stale{font-size:11.5px;color:var(--warn);margin-right:8px;white-space:nowrap}

/* ---- Oct 26 design pass (Apple HIG review) ---- */
/* Close ✕: a 44×44 tap target (it was a bare 22px glyph). */
.modal-close,#phoneModal .modal-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  padding:0;top:8px;right:8px;font-size:26px;border-radius:10px}
.modal-close:active{background:var(--line)}
/* iPhone zooms the page into any text box under 16px. Keep every box at 16px on phones. */
@media (max-width: 760px){ input,select,textarea{font-size:16px !important} }

/* ---- One typeface: the system font everywhere (was serif titles + typewriter hints). ---- */
:root{--font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body,.brand,#inventoryView,#inventoryView .brand,#phoneModalBody h3,#phoneModalBody .inv-edit h2,#umCard h2,
#phoneModalBody .phone-detail-title,.hint,.meta,.meta select,.meta input,.drop .or,thead th,.rownum,#roleBtn{
  font-family:var(--font-ui) !important}
body{-webkit-font-smoothing:antialiased}
.hint{font-size:12px}
/* IMEIs and serials keep a fixed-width face — it's what makes two numbers easy to compare. */
.mono{font-family:ui-monospace,"SF Mono",Menlo,monospace}
.act .ico{margin-right:6px}

/* ---- Tab bar on phones: main sections at the bottom, in thumb reach. ---- */
#tabBar,#tabMore{display:none}
@media (max-width: 760px){
  #mobileNavToggle,#mobileNavLinks{display:none !important}
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  #tabBar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;background:rgba(251,250,247,.96);
    -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
    border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  #tabBar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:50px;justify-content:center;
    background:none;border:0;color:var(--muted);font:500 11px var(--font-ui);cursor:pointer;-webkit-tap-highlight-color:transparent}
  #tabBar button.on{color:var(--accent)}
  #tabBar button.on .ico{stroke-width:2.3}
  #tabMore{display:block;position:fixed;inset:0;z-index:95;pointer-events:none}
  #tabMore .tm-back{position:absolute;inset:0;background:rgba(20,25,30,.35);opacity:0;transition:opacity .2s}
  #tabMore .tm-sheet{position:absolute;left:0;right:0;bottom:0;background:var(--paper);border-radius:16px 16px 0 0;
    padding:8px 16px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .22s ease}
  #tabMore.open{pointer-events:auto}
  #tabMore.open .tm-back{opacity:1}
  #tabMore.open .tm-sheet{transform:none}
  #tabMore .tm-grab{width:36px;height:5px;border-radius:3px;background:var(--line2);margin:0 auto 10px}
  #tmList button{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 6px;background:none;border:0;
    border-bottom:1px solid var(--line);font:500 17px var(--font-ui);color:var(--ink);text-align:left;cursor:pointer}
  #tabMore .tm-cancel{width:100%;min-height:50px;margin-top:10px;border:1px solid var(--line2);border-radius:12px;background:#fff;
    font:600 16px var(--font-ui);color:var(--accent)}
  /* Popups sit above the tab bar. */
  .modal-overlay{z-index:100}
}
@media (prefers-reduced-motion: reduce){ #tabMore .tm-sheet,#tabMore .tm-back{transition:none} }

/* ---- Action bar pinned to the bottom of the count / packing popups ---- */
.sheet-actions{position:sticky;bottom:0;z-index:2;display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;
  background:var(--paper);border-top:1px solid var(--line);margin:14px -4px 0;padding:12px 4px calc(12px + env(safe-area-inset-bottom))}
.sheet-actions .act{min-height:44px}
.sheet-actions .grow{flex:1}
@media (max-width: 760px){ .sheet-actions .act.primary{flex:1 1 100%;order:9;min-height:50px;font-size:16px} .sheet-actions .grow{display:none} .sheet-actions>.act:not(.primary){flex:1} }

/* ---- Pass 2 (Oct 26) ---- */
/* Calm labels: no letter-spaced capitals on the money and stat boxes. */
.baltile .lbl,.mcard .eyebrow,.pcard-stat .k,.pcard-role,.ibglabel,.iflabel,#phoneModalBody .pd-eyebrow,.bb-pop-h,.brand small{
  text-transform:none !important;letter-spacing:0 !important;font-size:13px !important;font-family:var(--font-ui) !important}
.inv-act{font-family:var(--font-ui) !important}

@media (max-width: 760px){
  /* Bigger reading text on phones (Apple's iPhone default is 17). */
  body{font-size:16px}
  .hint{font-size:13px}
  #tabBar button span{white-space:nowrap}

  /* App header: no repeated app-name row; Owner becomes a small icon beside the page title. */
  #modeBar{position:absolute;top:calc(env(safe-area-inset-top) + 12px);right:12px;z-index:30;background:none !important;
    border:0 !important;padding:0 !important;width:auto !important;box-shadow:none !important}
  #modeBar>.wrap{padding:0 !important;max-width:none}
  #modeBar .appbrand,#modeBar .buildstamp{display:none !important}
  #modeBar .apphead{display:block !important}
  #roleBtn{width:44px;height:44px;padding:0 !important;display:inline-flex;align-items:center;justify-content:center;border-radius:50% !important}
  #roleBtn .rb-t{display:none}
  header.top .brand{padding-right:56px}
  .wrap{padding-top:18px !important}

  /* Stage boxes: one swipeable row of chips instead of a screen of tiles. */
  .inv-stage-grid{display:flex !important;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}
  .inv-stage-grid::-webkit-scrollbar{display:none}
  .inv-stage-card{flex:0 0 auto !important;min-height:44px;padding:8px 14px !important;display:inline-flex !important;flex-direction:row !important;
    align-items:baseline;gap:6px;border-radius:999px !important;min-width:0 !important}
  .inv-stage-card .inv-stage-count{font-size:17px !important;line-height:1}
  .inv-stage-card .inv-stage-label{font-size:14px !important;margin:0 !important}

  /* Inventory list as phone rows (was a sideways-scrolling table). */
  #inventoryView .inv-scroll-hint{display:none}
  #inventoryView .inv-table-scroll{overflow:visible !important;border:0 !important;background:none !important}
  #inventoryView table.inv-clean,#inventoryView table.inv-clean tbody{display:block !important;width:100%;min-width:0 !important}
  #inventoryView table.inv-clean thead{display:none !important}
  #inventoryView table.inv-clean tr{display:flex !important;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:3px;background:#fff;
    border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:8px}
  #inventoryView table.inv-clean td{display:block !important;min-width:0 !important;padding:0 !important;border:0 !important;font-size:13px !important}
  #inventoryView table.inv-clean td:nth-child(1){display:none !important}
  #inventoryView table.inv-clean td:nth-child(2){flex:1 1 calc(100% - 100px);font-size:16px !important}
  #inventoryView table.inv-clean td:nth-child(2) span{font-size:13px !important;margin-top:1px}
  #inventoryView table.inv-clean td:nth-child(8){flex:0 0 auto;margin-left:auto;font-size:16px !important}
  #inventoryView table.inv-clean td:nth-child(3){order:3;flex-basis:100%}
  #inventoryView table.inv-clean td:nth-child(4),#inventoryView table.inv-clean td:nth-child(5),#inventoryView table.inv-clean td:nth-child(6),#inventoryView table.inv-clean td:nth-child(7){order:4}
  #inventoryView table.inv-clean td:nth-child(6)::before{content:"Batt ";color:var(--muted)}
  #inventoryView table.inv-clean td:nth-child(n+4):nth-child(-n+7)+td:nth-child(n+5):nth-child(-n+7)::after{content:""}

  /* Phones on a sale, same treatment. */
  #salesView #saleTable,#salesView #saleTable tbody{display:block !important;width:100%;min-width:0 !important}
  #salesView #saleTable thead{display:none !important}
  #salesView #saleTable tr{display:flex !important;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:3px;background:#fff;border:1px solid var(--line);
    border-radius:12px;padding:12px 14px;margin-bottom:8px}
  #salesView #saleTable td{display:block !important;min-width:0 !important;padding:0 !important;border:0 !important;font-size:13px !important;text-align:left !important}
  #salesView #saleTable td:nth-child(1){flex:1 1 calc(100% - 110px);font-size:16px !important}
  #salesView #saleTable td:nth-child(6){flex:0 0 auto;margin-left:auto;font-size:16px !important;font-weight:700}
  #salesView #saleTable td:nth-child(2){order:3;flex-basis:100%}
  #salesView #saleTable td:nth-child(3),#salesView #saleTable td:nth-child(4),#salesView #saleTable td:nth-child(5),#salesView #saleTable td:nth-child(7),#salesView #saleTable td:nth-child(8){order:4}
  #salesView #saleTable td:nth-child(3)::before{content:"Paid ";color:var(--muted);font-weight:400}
  #salesView #saleTable td:nth-child(4)::before{content:"Price ";color:var(--muted);font-weight:400}
  #salesView #saleTable td:nth-child(5)::before{content:"Deduct ";color:var(--muted);font-weight:400}
  #salesView #saleTable td:nth-child(7)::before{content:"Margin ";color:var(--muted);font-weight:400}
  #salesView #saleTable td:nth-child(6)::before{content:"Final ";color:var(--muted);font-weight:400;font-size:13px}
  #salesView #saleTable tr:last-child{background:var(--paper);border-style:dashed}
  #saleFilter{width:100% !important}
  #salesView #saleTable+*{}
  .otable{min-width:0}

  #inventoryView table.inv-clean,#salesView #saleTable{border:0 !important;background:none !important;box-shadow:none !important}
  /* More sheet: truly gone when closed. */
  #tabMore:not(.open) .tm-sheet{visibility:hidden}
}

/* ---- Mobile audit pass (Oct 26): tap targets, labeled phone rows, sale picker ---- */
.tap-link{display:inline-flex;align-items:center;min-height:44px}
@media (max-width: 760px){
  /* Small inline controls keep their look but get a 44-point touch area. */
  .tap-chip,.priceedit,.pd2-link,.tap-link {position:relative}
  .tap-chip::after,.priceedit::after,.pd2-link::after {
    content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
  .tap-chip{padding:4px 10px !important;font-size:13px !important;display:inline-block}
  .priceedit{padding:6px 10px !important;font-size:14px !important;display:inline-block}
  button.del{min-width:44px;min-height:44px;font-size:22px}
  .cmp-switch{min-height:44px;font-size:14px}
  .cmp-switch input{width:22px !important;height:22px !important}
  button[onclick^="setSaleTab"]{min-height:44px;font-size:14px !important}
  #profilesView [role=button]{min-height:44px;display:inline-flex !important;align-items:center}
  #phoneModalBody .pd2-link{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
  #phoneModalBody [style*="font-size:11px"],#profilesView [style*="font-size:11px"],#ratesView [style*="font-size:11px"]{font-size:13px !important}
  .act{min-height:44px}

  /* New purchase / custom order: each phone is a labeled card, not a column of blank boxes. */
  #mainView header.top{flex-direction:column;align-items:stretch}
  #mainView header.top .meta{text-align:left !important;display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;font-size:14px}
  #mainView header.top .meta br{display:none}
  #mainView header.top .meta select{flex:1;min-width:200px}
  table:has(#rows){display:block !important;min-width:0 !important;width:100% !important}
  table:has(#rows) thead{display:none}
  #rows{display:block}
  #rows tr{display:grid !important;grid-template-columns:1fr 1fr;gap:10px 10px;background:#fff;border:1px solid var(--line);
    border-radius:12px;padding:12px 14px;margin-bottom:10px}
  #rows td{display:block;padding:0 !important;border:0 !important;min-width:0}
  #rows td select,#rows td input{width:100% !important;min-height:44px}
  #rows td::before{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
  #rows td:nth-child(1){grid-row:1;grid-column:1;font-weight:700;font-size:15px;color:var(--ink);width:auto;text-align:left;align-self:center}
  #rows td:nth-child(1)::before{content:"Phone ";display:inline;font-size:15px;color:var(--ink);margin:0}
  #rows td:nth-child(14){grid-row:1;grid-column:2;justify-self:end}
  #rows td:nth-child(2){grid-row:2;grid-column:1/-1}  #rows td:nth-child(2)::before{content:"Model"}
  #rows td:nth-child(3){grid-row:3;grid-column:1}     #rows td:nth-child(3)::before{content:"Storage"}
  #rows td:nth-child(4){grid-row:3;grid-column:2}     #rows td:nth-child(4)::before{content:"Carrier"}
  #rows td:nth-child(5){grid-row:4;grid-column:1}     #rows td:nth-child(5)::before{content:"Grade"}
  #rows td:nth-child(7){grid-row:4;grid-column:2}     #rows td:nth-child(7)::before{content:"Battery %"}
  #rows td:nth-child(6){grid-row:5;grid-column:1/-1}  #rows td:nth-child(6)::before{content:"IMEI / serial"}
  #rows td:nth-child(8){grid-row:6;grid-column:1}     #rows td:nth-child(8)::before{content:"Damage 1"}
  #rows td:nth-child(9){grid-row:6;grid-column:2}     #rows td:nth-child(9)::before{content:"Damage 2"}
  #rows td:nth-child(10){grid-row:7;grid-column:1}    #rows td:nth-child(10)::before{content:"Damage 3"}
  #rows td:nth-child(11){grid-row:7;grid-column:2}    #rows td:nth-child(11)::before{content:"Damage 4"}
  #rows td:nth-child(12){grid-row:8;grid-column:1/-1;text-align:right;font-size:18px !important;font-weight:700}
  #rows td:nth-child(12)::before{content:"Payout";display:inline;margin-right:8px;font-weight:400}
  #rows td:nth-child(13){grid-row:9;grid-column:1/-1}  #rows td:nth-child(13)::before{content:"Agreed price"}

  /* New sale picker: phone rows with a tick box; the sort headers become chips. */
  table.sale-stock{display:block !important;min-width:0 !important;border:0 !important;background:none !important}
  table.sale-stock thead,table.sale-stock thead tr{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
  table.sale-stock thead th{display:inline-flex;align-items:center;min-height:36px;padding:4px 12px !important;border:1px solid var(--line2) !important;
    border-radius:999px;background:#fff !important;font-size:13px !important;text-transform:none !important;letter-spacing:0 !important}
  table.sale-stock thead th:first-child{display:none}
  table.sale-stock tbody{display:block}
  table.sale-stock tbody tr{display:flex !important;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:2px;background:#fff;
    border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px;min-height:56px}
  table.sale-stock td{display:block;padding:0 !important;border:0 !important;min-width:0 !important}
  table.sale-stock td:nth-child(1){flex:0 0 28px;width:28px !important;text-align:center}
  table.sale-stock td:nth-child(2){flex:1 1 calc(100% - 110px);font-size:15px}
  table.sale-stock td:nth-child(4){flex:0 0 auto;margin-left:auto;font-weight:600}
  table.sale-stock td:nth-child(3){order:3;flex-basis:100%;padding-left:38px !important;font-size:13px !important}
  table.sale-stock td:nth-child(5){order:4;flex-basis:100%;padding-left:38px !important;text-align:left !important;font-size:13px !important}
  table.sale-stock td:nth-child(5):empty{display:none}
}
@media (max-width: 760px){
  /* Inline text under 12px is unreadable on a phone at arm's length; lift it to 13. */
  #mainView [style*="font-size:10px"],#mainView [style*="font-size:11px"],#mainView [style*="font-size:11.5px"],
  #inventoryView [style*="font-size:10px"],#inventoryView [style*="font-size:11px"],
  #salesView [style*="font-size:10px"],#salesView [style*="font-size:11px"],#salesView [style*="font-size:11.5px"],
  #ratesView [style*="font-size:10px"],#ratesView [style*="font-size:11.5px"],
  #phoneModalBody [style*="font-size:10px"]{font-size:13px !important}
  #inventoryView table.inv-clean td span[title]{font-size:13px !important}
}
@media (max-width: 760px){ .cmp-stale {font-size:13px} }
@media (max-width: 760px){
  /* Bars that stick to the bottom of the page sit above the tab bar, not under it. */
  #saleCartBar,#inspSaveBottom{bottom:calc(64px + env(safe-area-inset-bottom)) !important;background:var(--paper) !important;z-index:20}
  #saleCartBar .act.primary{flex:1 1 100%}
  /* Phone cards in a new purchase: boxes fill their column. */
  #rows .sheet select,#rows select,#rows input,.sheet #rows select{max-width:none !important;width:100% !important}
  #mainView .brand{text-align:left !important}
}
@media (max-width: 760px){ #mainView header.top .brand{align-self:flex-start;text-align:left !important;width:100%} }

/* ---- Atlas prices on a phone: compact rows (desktop table unchanged) ---- */

/* ===== People · ledger (Payments tab) and grouped devices — Oct 27 ===== */
.ldg-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:4px 0 14px}
.ldg-tile{background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;padding:13px 15px;display:flex;flex-direction:column;gap:2px;min-width:0}
.ldg-tile span{font-size:12px;color:var(--muted)}
.ldg-tile strong{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
.ldg-tile small{font-size:12px;color:var(--muted)}
.ldg-tile.main{background:var(--accent-soft);border-color:transparent}
.ldg-tile.main strong{color:var(--accent);font-size:30px}
.ldg-tile.main.neg strong{color:#a12b21}
.ldg-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.ldg-terms{margin-left:auto;font-size:12px;color:var(--muted)}
.pdv-seg{display:inline-flex;background:#efece4;border-radius:9px;padding:3px;gap:2px;flex-wrap:wrap}
.pdv-seg button{border:0;background:transparent;font:inherit;font-size:13px;font-weight:600;color:var(--muted);padding:6px 11px;border-radius:7px;cursor:pointer;min-height:32px}
.pdv-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ldg-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff)}
table.ldg{width:100%;border-collapse:collapse}
table.ldg th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);text-align:left;padding:9px 12px;background:#f6f4ef;font-weight:600;white-space:nowrap}
table.ldg td{padding:10px 12px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;white-space:nowrap;vertical-align:top}
table.ldg .r{text-align:right}
table.ldg .mut,.pdv-rows .mut{color:var(--muted)}
.ldg-row{cursor:pointer}
.ldg-row:hover td{background:#fbfaf6}
.ldg-chev{display:inline-block;width:14px;color:var(--muted)}
.ldg-code{font-weight:700}
.ldg-sub{display:block;font-size:12px;color:var(--muted);margin-left:14px;white-space:normal}
.ldg-pill{font-size:11px;font-weight:600;padding:2px 7px;border-radius:20px;margin-left:6px}
.ldg-pill.open{background:var(--accent-soft);color:var(--accent)}
.ldg-pill.closed{background:#efece4;color:var(--muted)}
.ldg-left{font-weight:700}
.ldg-left.pos{color:var(--accent)} .ldg-left.neg{color:#a12b21}
.ldg-run{font-weight:700}
.ldg-line td{background:#fbfaf7;font-size:13px;color:var(--muted);border-top:1px dashed var(--line);padding:6px 12px}
.ldg-line td:nth-child(2){padding-left:34px}
.ldg-older td{color:var(--muted)}
/* devices */
.pdv-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 12px}
.pdv-bar input{flex:0 1 300px;min-width:200px}
.pdv-group{background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;margin-bottom:8px;overflow:hidden}
.pdv-head{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;font:inherit;text-align:left;padding:12px 14px;cursor:pointer;min-height:44px;color:inherit}
.pdv-chev{width:14px;color:var(--muted)}
.pdv-code{font-weight:700}
.pdv-meta{color:var(--muted);font-size:13px}
.pdv-right{margin-left:auto;color:var(--muted);font-size:13px;white-space:nowrap}
.pdv-mini{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 10px}
.pdv-mini span{font-size:12px;background:#f3f1ea;border-radius:6px;padding:3px 8px}
table.pdv-rows{width:100%;border-collapse:collapse}
.pdv-rows th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);text-align:left;padding:7px 14px;background:#f6f4ef;font-weight:600}
.pdv-rows td{padding:8px 14px;border-top:1px solid var(--line);font-size:13px;font-variant-numeric:tabular-nums}
.pdv-rows .r{text-align:right}
.pdv-rows tr[data-phone-id]{cursor:pointer}
.pdv-rows tr[data-phone-id]:hover td{background:#fbfaf6}
.pdv-imei{display:block;font-size:11px;color:var(--muted);font-family:ui-monospace,monospace}
.pdv-more{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;color:var(--accent);font:inherit;font-weight:600;font-size:13px;padding:10px;cursor:pointer;min-height:44px}
@media (max-width:760px){
  .ldg-tiles{grid-template-columns:1fr 1fr}
  .ldg-tile:last-child{grid-column:1 / -1}
  .ldg-terms{margin-left:0;width:100%}
  .pdv-head{flex-wrap:wrap;gap:4px 10px}
  .pdv-right{margin-left:24px;width:100%}
  .pdv-rows thead{display:none}
  .pdv-rows tr{display:grid;grid-template-columns:1fr auto;padding:8px 14px;border-top:1px solid var(--line)}
  .pdv-rows td{border:0;padding:1px 0}
  .pdv-rows td[data-label="Grade"],.pdv-rows td[data-label="Batt"]{display:none}
  .pdv-bar input{flex:1 1 100%}
  table.ldg thead{display:none}
  table.ldg tr.ldg-row{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;padding:10px 12px;border-top:1px solid var(--line)}
  table.ldg tr.ldg-row td{border:0;padding:0;white-space:normal}
  table.ldg tr.ldg-row td[data-label="Sale"]{grid-column:1 / -1;order:-1}
  table.ldg tr.ldg-row td[data-label="Date"]{display:none}
  table.ldg tr.ldg-row td.r{text-align:left;font-size:13px}
  table.ldg tr.ldg-row td.r::before{content:attr(data-label)' ';color:var(--muted);font-weight:400}
  table.ldg tr.ldg-line{display:flex;gap:8px;padding:5px 12px 5px 34px;background:#fbfaf7;border-top:1px dashed var(--line)}
  table.ldg tr.ldg-line td{border:0;padding:0;background:transparent;font-size:13px}
  table.ldg tr.ldg-line td:empty,table.ldg tr.ldg-line td:last-child{display:none}
  table.ldg tr.ldg-line td:nth-child(1){min-width:44px}
  table.ldg tr.ldg-line td:nth-child(2){flex:1;padding-left:0}
}

/* ===== Sale Orders · Returns (Oct 27) ===== */
.rt-card{background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.rt-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;background:#f6f4ef}
.rt-meta{color:var(--muted);font-size:13px}
.rt-tot{margin-left:auto;font-weight:600;color:#9a5b00;font-size:13px}
.rt-row{display:grid;grid-template-columns:64px 1fr 100px auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
.rt-tag{font-weight:700}
.rt-sub{font-size:12px;color:var(--muted);margin-top:2px}
.rt-pill{font-size:11px;font-weight:600;padding:2px 8px;border-radius:20px;background:#fdf3e1;color:#9a5b00;margin-left:4px;white-space:nowrap}
.rt-price{text-align:right;font-variant-numeric:tabular-nums}
.rt-price small{display:block;font-size:12px;color:var(--muted)}
.rt-acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.rt-keep{grid-column:1/-1;background:#fdf3e1;border-radius:10px;padding:12px 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rt-keep input{width:100px}
.rt-calc{color:var(--muted);font-size:13px;flex:1;min-width:180px}
@media (max-width:760px){
  .rt-row{grid-template-columns:52px 1fr}
  .rt-price{text-align:left;grid-column:2}
  .rt-acts{grid-column:1/-1;justify-content:stretch}
  .rt-acts .act{flex:1}
  .rt-tot{margin-left:0;width:100%}
}

/* Option B (Oct 27): a box this item doesn't have (watch storage, AirPods battery, sealed damage) */
.na-dash{display:inline-block;min-width:40px;text-align:center;color:var(--muted);opacity:.6;padding:6px 0}

/* Pickup choice (Oct 27) */
.pu-opt{display:block;width:100%;text-align:left;border:1.5px solid var(--line);border-radius:12px;padding:12px;margin-top:10px;background:var(--card,#fff);cursor:pointer;font:inherit;color:inherit}
.pu-opt:hover{border-color:var(--accent);background:var(--accent-soft)}
.pu-opt b{display:block;font-size:15px}.pu-opt span{display:block;font-size:12px;color:var(--muted);margin-top:3px}

/* Check / pack / pickup screens — spacing and touch sizes (HIG pass, Oct 27) */
.ck-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 44px 12px 0;min-height:44px}
.ck-head>div:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-later{border:0;background:none;color:var(--accent);font:inherit;font-size:15px;font-weight:600;min-height:44px;padding:0 6px;cursor:pointer;flex:0 0 auto}
.ck-box>*:last-child{border-bottom:0 !important}
.ck-chip{min-height:44px;padding:0 14px;border:1px solid var(--line);background:var(--card,#fff);color:inherit;border-radius:22px;font:inherit;font-size:14px;cursor:pointer}
.ck-chip.on{background:var(--danger-soft);border-color:#e0b3ad;color:#a12b21;font-weight:700}
.ck-field{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:44px;padding:8px 10px;border:1px solid var(--line2);border-radius:10px;font-size:16px;background:var(--card,#fff)}
.ck-summary{cursor:pointer;font-size:14px;font-weight:700;min-height:44px;display:flex;align-items:center;gap:6px;list-style:none}
.ck-summary::before{content:'▸';color:var(--muted)}
details[open]>.ck-summary::before{content:'▾'}
.ck-summary::-webkit-details-marker{display:none}
.ck-stages{display:flex;gap:6px;margin:10px 0 6px;width:min(560px, calc(100vw - 48px))}
.ck-stages>div{overflow:hidden;text-overflow:ellipsis}

/* Site-wide UI pass (Oct 27) */
/* 2) the date never crowds the profile button on a phone; New Purchase seller picker */
@media screen and (max-width:720px){
  #ordersView header.top{flex-wrap:wrap}
  #ordersView header.top .meta{width:100%;text-align:left;order:3;margin-top:2px}
}
.np-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.np-seller{display:flex;align-items:center;gap:8px;font-family:inherit;font-size:14px;color:var(--muted)}
.np-seller select{min-height:44px;min-width:200px;font-size:15px}
/* 3) segmented switches (Sales | Returns, People devices) are 44pt */
.pdv-seg button{min-height:44px;padding:8px 14px;font-size:14px}
/* 5) inventory filter chips wrap instead of running off the screen */
@media screen and (max-width:720px){
  .inv-stage-grid{flex-wrap:wrap !important;overflow-x:visible !important}
}
/* 8) on touch screens, buttons and fields are 44pt (desktop tables stay compact) */
@media (pointer:coarse){
  :is(button.act,a.act,.pback,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px !important}
}


/* ================= Calm pages (Oct 27): slim nav, one strip, one main action, ⋯ sheet ================= */
.calm-nav{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0 0 2px}
.calm-back{border:0;background:none;color:var(--accent);font:inherit;font-size:16px;font-weight:600;min-height:44px;padding:0 4px 0 0;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.calm-back span{font-size:24px;line-height:1;margin-top:-3px}
.calm-more{width:44px;height:44px;border-radius:22px;border:0;background:#efece4;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.calm-more:hover{background:#e6e2d8}
.calm-title{margin:2px 0 4px}
.calm-title h2{font-size:24px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.01em}
.calm-sub{color:var(--muted);font-size:14px;margin-top:3px}
.calm-strip{display:grid;background:#fff;border:1px solid var(--line);border-radius:14px;margin:12px 0;overflow:hidden}
.calm-strip>div{padding:10px 12px;border-left:1px solid var(--line);min-width:0}
.calm-strip>div:first-child{border-left:0}
.calm-strip span{display:block;font-size:12px;color:var(--muted)}
.calm-strip b{display:block;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calm-strip small{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.calm-dock{display:flex;gap:8px;margin:16px 0}
.calm-dock .act{flex:1;min-height:50px;font-size:16px !important;font-weight:700;border-radius:14px;justify-content:center}
@media (max-width:760px){
  .calm-dock{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom));z-index:40;margin:16px -4px 0;padding:10px 4px 6px;
    background:linear-gradient(rgba(250,250,247,0),var(--paper) 28%)}
}
.calm-sec{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:16px 0 6px}
#calmSheet{position:fixed;inset:0;z-index:120}
#calmSheet .cs-back{position:absolute;inset:0;background:rgba(20,25,30,.35);opacity:0;transition:opacity .2s}
#calmSheet .cs-sheet{position:absolute;left:0;right:0;bottom:0;max-height:85vh;overflow:auto;background:var(--paper);border-radius:16px 16px 0 0;
  padding:8px 16px calc(14px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .22s ease}
@media (min-width:761px){ #calmSheet .cs-sheet{left:50%;right:auto;width:420px;margin-left:-210px;bottom:24px;border-radius:16px} }
#calmSheet.open .cs-back{opacity:1}
#calmSheet.open .cs-sheet{transform:none}
@media (prefers-reduced-motion:reduce){ #calmSheet .cs-back,#calmSheet .cs-sheet{transition:none} }
#calmSheet .cs-grab{width:38px;height:5px;border-radius:3px;background:#d8d3c7;margin:2px auto 6px}
#calmSheet .cs-h{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:10px 4px 6px}
#calmSheet .cs-gap{height:12px}
#calmSheet .cs-group{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
#calmSheet .cs-item{display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:0 14px;border:0;border-bottom:1px solid var(--line);
  background:none;font:inherit;font-size:16px;color:var(--ink);text-align:left;cursor:pointer}
#calmSheet .cs-item:last-child{border-bottom:0}
#calmSheet .cs-item .ico{color:var(--accent);flex:0 0 auto}
#calmSheet .cs-item.danger,#calmSheet .cs-item.danger .ico{color:#a12b21}
#calmSheet .cs-item:hover{background:#faf9f5}
#calmSheet .cs-noico{width:20px}
#calmSheet .cs-cancel{display:block;width:100%;min-height:50px;margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#fff;
  color:var(--accent);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
/* calm list rows */
.calm-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.calm-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:56px;padding:9px 14px;border:0;
  border-bottom:1px solid var(--line);background:none;font:inherit;text-align:left;color:inherit;cursor:pointer}
.calm-row:last-child{border-bottom:0}
.calm-row:hover{background:#faf9f5}
.calm-row .cr-main{min-width:0}
.calm-row .cr-t{font-size:15px;font-weight:500}
.calm-row .cr-s{font-size:13px;color:var(--muted);margin-top:2px}
.calm-row .cr-r{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;display:flex;align-items:center;gap:6px}
.calm-row .cr-r .chev{color:#bdb7aa;font-weight:400;font-size:18px}
/* a detail page replaces its list page's header (the "‹ Back" bar says where you are) */
#ordersView.in-detail header.top, #salesView.in-detail header.top{display:none !important}
/* buy order phone table on a phone: drop the # / IMEI / battery columns (IMEI is on the phone's card) */
@media (max-width:760px){
  #ordersView .otable th:nth-child(1), #ordersView .otable td:nth-child(1),
  #ordersView .otable th:nth-child(3), #ordersView .otable td:nth-child(3),
  #ordersView .otable th:nth-child(5), #ordersView .otable td:nth-child(5){display:none}
}
/* sale page: the money tiles read as one strip; tap a phone row to edit it */
.sale-cards{gap:1px !important;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sale-cards>div,.sale-cards>.owner-only>div{background:#fff;border:0 !important;border-radius:0 !important;padding:10px 12px !important}
.sale-cards>.owner-only{background:#fff}
.sale-cards div[style*="font-size:20px"]{font-size:18px !important}
@media (max-width:760px){ .sale-cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important} }
tr.calm-tap{cursor:pointer}
tr.calm-tap:hover td{background:#faf9f5}
/* Inventory: tools behind ⋯, one segmented filter row, actions as links in the summary */
#inventoryView header.top .inv-meta{width:auto !important;display:flex;justify-content:flex-end}
#inventoryView header.top{flex-wrap:nowrap !important;align-items:flex-start}
.inv-summary{font-size:14px;color:var(--muted);margin:2px 0 10px;line-height:1.5}
.inv-link{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--accent);cursor:pointer;min-height:32px}
.inv-link:disabled{color:var(--muted)}
.inv-seg{display:flex !important;flex-wrap:wrap;width:100%;box-sizing:border-box}
.inv-seg button{flex:1 1 auto}

/* phones: the profile button floats top-right, so the ⋯ button sits just left of it */
@media (max-width:760px){
  .calm-nav{padding-right:56px}
  #inventoryView header.top .inv-meta{margin-right:56px}
  #inventoryView header.top .brand{padding-right:0 !important}
}
/* person page: metrics as one strip, like the other detail pages */
.buyer-metrics{gap:1px !important;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:14px 0 !important}
.buyer-metric{border:0 !important;border-radius:0 !important;padding:10px 12px !important;gap:3px !important;background:#fff}
.buyer-metric strong{font-size:19px !important;letter-spacing:0 !important}
.buyer-metric small{font-size:12px}
.buyer-metric.buyer-metric-primary{background:var(--accent-soft)}
#profilesView.in-detail header.top{display:none !important}
/* segmented controls stay on one line; labels are short */
.pdv-seg{flex-wrap:nowrap}
.pdv-seg button{white-space:nowrap}
.inv-seg{flex-wrap:wrap !important}
/* Rates: device switch scrolls sideways on a phone rather than wrapping */
/* Twin order pages (buy & sale) — shared pieces */
.calm-code{font-family:ui-monospace,monospace;font-size:12px;background:#efece4;color:var(--ink);border-radius:6px;padding:2px 7px}
.calm-stages{display:flex;gap:6px;margin:12px 0 2px;width:min(560px,100%)}
.calm-stages>div{flex:1;min-width:0;font-size:11px;text-align:center;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calm-stages>div i{display:block;height:5px;border-radius:3px;background:var(--line);margin-bottom:4px}
.calm-stages>div.on i{background:var(--accent)}
.calm-stages>div.cur{color:var(--ink);font-weight:700}
.calm-below{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:-4px 2px 4px;font-size:13px;color:var(--muted);min-height:32px}
.calm-tabs{display:flex !important;width:100%;box-sizing:border-box;margin:12px 0 10px}
.calm-tabs button{flex:1}
.calm-filter{width:100%;box-sizing:border-box;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;font-size:15px;background:#fff;margin:0 0 10px}
.calm-strip{grid-template-columns:1fr 1fr 1.15fr !important}

.calm-row .cr-t,.calm-row .cr-s{display:block}
.calm-row .cr-s{line-height:1.45}
/* phones: the back/⋯ row sits level with the profile button */
@media (max-width:760px){
  #ordersView.in-detail .calm-nav,#salesView.in-detail .calm-nav{margin-top:-33px}
  #profilesView.in-detail .calm-nav{margin-top:-13px}
}

/* Oct 28 — status bar went grey after opening More. Safari colours the strip behind the
   clock from whatever fixed layer touches the top of the screen; the More sheet's dimmed
   backdrop stayed on screen (just transparent) after closing, so the grey stuck. Now the
   closed sheet is truly gone, and the backdrops stop below the clock. */
@media (max-width:760px){
  #tabMore{visibility:hidden;transition:visibility 0s linear .2s}
  #tabMore.open{visibility:visible;transition:none}
}
#tabMore .tm-back,#calmSheet .cs-back{top:env(safe-area-inset-top,0px)}

/* Oct 28 — Payments tab matches the order record PDF */
.ldg-so{font-weight:700;white-space:nowrap}
.ldg-so.short{color:#a12b21} .ldg-so.over{color:var(--accent)} .ldg-so.even{color:var(--muted);font-weight:500}
.ldg-pill.open{background:#fff4e0;color:#9a5b00}
.ldg-tot td{font-weight:700;border-top:1px solid var(--ink,#1d1d1f)}
.ldg-pays .ldg-code{font-weight:600}

/* Oct 28 — seller site inbox (Buy Orders) */
.sp-inbox{background:#fff;border:1px solid var(--line2);border-radius:14px;overflow:hidden;margin:0 0 16px}
.sp-ih{background:#fff4e0;color:#9a5b00;font-weight:600;font-size:14px;padding:11px 16px}
.sp-row{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;min-height:56px;border:0;border-top:1px solid #efeee8;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer}
.sp-row small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.sp-open{color:var(--accent);font-weight:600;white-space:nowrap}
.sp-items{max-height:46vh;overflow:auto;border:1px solid var(--line2);border-radius:12px}
.sp-it{padding:10px 12px;border-top:1px solid #efeee8} .sp-it:first-child{border-top:0}
.sp-it small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px} .sp-it small.mono{font-family:ui-monospace,monospace;font-size:12px}
.sp-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sp-acts .act.danger{color:#a12b21}
.sp-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#c2410c;color:#fff;font:600 11px -apple-system,BlinkMacSystemFont,sans-serif;margin-left:6px;vertical-align:2px}
#tabBar [data-tab="tabOrders"]{position:relative}
#tabBar [data-tab="tabOrders"] .sp-badge{position:absolute;top:4px;left:calc(50% + 6px);margin:0}
.sp-new{display:inline-block;margin-left:8px;font-size:11.5px;font-weight:600;color:#9a5b00;background:#fff4e0;border-radius:10px;padding:2px 8px;vertical-align:1px}
.sp-vet{background:#fff4e0;color:#5c3900;border-radius:10px;padding:9px 12px;font-size:13px;line-height:1.45;margin:6px 0 10px}
.sp-pick{display:inline-block;margin-left:8px;font-size:11.5px;font-weight:600;color:#9a5b00;background:#fff4e0;border-radius:10px;padding:2px 8px;vertical-align:1px}
#rows tr.sp-needs [data-f=storage]{outline:2px solid #c2410c;outline-offset:1px}

/* seller inbox: iCloud ON / Blacklisted from the IMEI check */
.sp-pick.sp-flag{color:#a12b21;font-weight:600}

/* Oct 28: most sellers now use the seller site, so the spreadsheet upload is a small row,
   not the centre of New purchase. Hidden entirely for a seller-site request. */
body:not(.showquote) #mainView .drop.drop-mini{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:10px 14px;border-radius:10px;margin:0 0 14px;text-align:left}
body:not(.showquote) #mainView .drop.drop-mini h2{font-size:14px;margin:0;font-weight:600}
.drop.drop-mini p{font-size:13px;margin:0}
.drop.drop-mini .or{margin:0 0 0 auto}
#mainView .drop.sp-hide{display:none!important}

/* ===== Buy flow (Oct 28): grouped by next step, one question per stage ===== */
.bf-top{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 14px}
.bf-top input[type=search]{margin-left:auto;min-width:180px;flex:1 1 180px;max-width:320px;height:44px;border-radius:10px}
@media (max-width:760px){ .bf-top input[type=search]{max-width:none;margin-left:0;flex-basis:100%} }
.bf-sec{margin:0 0 16px}
.bf-sec>h3,.bf-fold>summary{margin:0 4px 6px;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0;text-transform:none}
.bf-fold>summary{cursor:pointer;list-style:none;padding:12px 14px;margin:0;background:#fff;border-radius:12px;color:var(--ink);font-size:15px;font-weight:400;display:flex;justify-content:space-between}
.bf-fold>summary::after{content:'›';color:var(--muted);transition:transform .15s}
.bf-fold[open]>summary{border-radius:12px 12px 0 0;border-bottom:1px solid #efebe2}
.bf-fold[open]>summary::after{transform:rotate(90deg)}
.bf-fold>summary::-webkit-details-marker{display:none}
.bf-fold[open] .bf-group{border-radius:0 0 12px 12px}
.bf-group{background:#fff;border-radius:12px;overflow:hidden}
.bf-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 14px;cursor:pointer;border-bottom:1px solid #efebe2}
.bf-row:last-child{border-bottom:0}
.bf-row:active{background:#f6f3ec}
.bf-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.bf-row-main{min-width:0}
.bf-row-t{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bf-row-t b{font-weight:600}
.bf-row-t span{color:var(--muted)}
.bf-row-s{font-size:13px;color:var(--muted);margin-top:1px}
.bf-row-s.warn{color:var(--warn)}
.bf-chev{color:var(--muted);font-size:20px}
.bf-btn{flex:none;min-height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--line2);background:#fff;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer}
.bf-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.bf-pill{display:inline-block;vertical-align:middle;margin-left:6px;padding:3px 10px;border-radius:10px;font-size:12px;font-weight:600;letter-spacing:0}
.bf-quote,.bf-settle{background:#faeeda;color:#633806}
.bf-noanswer,.bf-passed{background:#ece9e1;color:#444441}
.bf-pickup{background:#e6f1fb;color:#0c447c}
.bf-check{background:#eeedfe;color:#3c3489}
.bf-done,.bf-instant{background:#eaf3de;color:#27500a}
.calm-dock .bf-ask{flex:1;display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:14px;padding:14px}
.bf-ask-q{font-size:16px;font-weight:600}
.bf-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.calm-dock .bf-ask .act{width:100%}
.bf-links{display:flex;justify-content:center;gap:24px}
.bf-links .inv-link{min-height:44px;font-size:15px}
.bf-note{background:#fff;border-radius:12px;padding:12px 14px;margin:0 0 12px;font-size:14px;line-height:1.45;color:var(--ink)}
.bf-note b{display:block;margin-bottom:2px}
.bf-note.warn{background:var(--warn-soft);color:#633806}
#ordersView details.bf-fold>summary.bf-sum{padding:12px 14px;min-height:48px;box-sizing:border-box;align-items:center;font-size:16px}
#ordersView.in-detail #bfTop,#ordersView.in-detail #sellerInbox{display:none}
@media (max-width:760px){
  #quoteView .qactions:first-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #quoteView .qactions:first-child #acceptBtn{grid-column:1/-1;min-height:50px;font-size:17px}
}
.bf-wide{width:100%}
.bf-segs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bf-seg{min-height:44px;border-radius:10px;border:1px solid var(--line2);background:#fff;color:var(--ink);font-size:15px;cursor:pointer}
.bf-seg.on{border:2px solid var(--accent);color:var(--accent);font-weight:600}
.bf-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.bf-field input{height:44px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;font-size:16px;color:var(--ink);background:#fff;box-sizing:border-box;width:100%}

/* ===== Oct 29: requests stand out; request page; New quote sheet; phone card ===== */
.bf-req{background:var(--accent-soft);border-radius:16px;padding:10px}
.bf-req>h3{color:#0b5442;display:flex;align-items:center;gap:6px}
.bf-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;box-sizing:border-box}
.bf-request{background:#eeedfe;color:#3c3489}
.bf-row.bf-static{cursor:default}
.bf-row.bf-static:active{background:none}
.bf-row-s.ok{color:var(--accent)}
.bf-row-s.bad{color:var(--danger);font-weight:600}
.bf-price{flex:none;min-width:84px;min-height:44px;padding:4px 12px;border-radius:10px;border:1px solid var(--line2);background:#fff;font-size:16px;font-weight:700;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.bf-price small{font-size:11px;font-weight:500;color:var(--warn)}
.bf-price-in{flex:none;width:96px;height:44px;border:2px solid var(--accent);border-radius:10px;padding:0 10px;font-size:16px;font-weight:700;text-align:right;box-sizing:border-box}
.bf-pick{flex:none;height:44px;border:2px solid #c2410c;border-radius:10px;padding:0 8px;font-size:15px;background:#fff;color:var(--ink)}
.bf-total{display:flex;justify-content:space-between;align-items:baseline;font-size:18px;font-weight:700}
.bf-total b{font-variant-numeric:tabular-nums}
#spSendBtn[aria-disabled=true]{opacity:.45}
.bf-card-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:6px 0 12px}
.bf-card-h h3{margin:0;font-size:20px}
.bf-card-h b{font-size:20px;font-variant-numeric:tabular-nums}
.bf-kv{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #efebe2;font-size:15px}
.bf-kv:last-child{border-bottom:0}
.bf-kv>span:first-child{color:var(--muted)}
.bf-kv .mono{font-family:ui-monospace,Menlo,monospace;font-size:14px}
/* New quote rows: a summary line on a phone; the full fields open as a sheet */
#rows td.np-sum{display:none}
@media (max-width:760px){
  #rows tr:not(.np-open){display:block !important;padding:0 !important;gap:0 !important}
  #rows tr:not(.np-open)>td{display:none !important}
  #rows tr:not(.np-open)>td.np-sum{display:block !important}
  #rows .np-sum-btn{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;width:100%;min-height:60px;padding:10px 14px;border:0;background:transparent;text-align:left;cursor:pointer;color:var(--ink)}
  #rows .np-sum-t{grid-column:1;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #rows .np-sum-s{grid-column:1;grid-row:2;font-size:13px;color:var(--muted)}
  #rows .np-sum-p{grid-column:2;grid-row:1/3;align-self:center;font-size:16px;font-variant-numeric:tabular-nums}
  #rows .np-done{display:none}
  #rows tr.np-open{position:fixed !important;left:0;right:0;bottom:0;z-index:131;max-height:88vh;overflow:auto;margin:0 !important;
    border-radius:16px 16px 0 0 !important;padding:16px 16px calc(16px + env(safe-area-inset-bottom)) !important}
  #rows tr.np-open>td.np-sum{display:block !important;grid-column:1/-1;grid-row:20}
  #rows tr.np-open .np-sum-btn{display:none}
  #rows tr.np-open .np-done{display:block;width:100%;min-height:50px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-size:17px;font-weight:700}
  #npBack{position:fixed;inset:0;z-index:130;background:rgba(20,25,30,.35)}
}
.bf-row .bf-pick{width:auto !important;max-width:130px;min-width:110px}
@media (max-width:760px){
  body:not(.showquote) #mainView .drop.drop-mini{padding:10px 14px;min-height:44px;border-style:solid;background:#fff}
  #mainView .drop.drop-mini p,#mainView .drop.drop-mini .or{display:none}
  #mainView .drop.drop-mini h2::after{content:" Upload ›";color:var(--accent);font-weight:600}
}
.bf-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bf-plan{min-height:56px;padding:8px 10px;border-radius:10px;border:1px solid var(--line2);background:#fff;color:var(--ink);text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.bf-plan b{font-size:15px}
.bf-plan span{font-size:12px;color:var(--muted)}
.bf-plan.on{border:2px solid var(--accent)}
.bf-plan.on b{color:var(--accent)}
#npPlan{margin:12px 0}
@media (max-width:760px){ #mainView .cta{display:flex !important;flex-direction:column;align-items:stretch;gap:8px} #mainView .cta #npSaveBtn{width:100%;min-height:50px} }
#calmSheet .act.bf-wide{font-family:inherit}

/* ===== Pickup check card (Oct 29 redesign) ===== */
.pc-top{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:14px;color:var(--muted)}
.pc-back{border:0;background:none;color:var(--accent);font-size:16px;padding:0;min-height:44px;cursor:pointer}
.pc-title{font-size:22px;font-weight:700;line-height:1.2}
.pc-imei{font-family:ui-monospace,Menlo,monospace;font-size:14px;color:var(--muted);margin:2px 0 12px;letter-spacing:.02em}
.pc-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:12px;font-size:15px}
.pc-box #puChk{margin-top:6px}
.pc-box #puChk:empty{display:none}
.pc-lbl{font-size:12px;color:var(--muted);margin-bottom:2px}
.pc-big{width:100%;min-height:50px;font-size:17px !important;font-weight:700;border-radius:14px;margin-bottom:8px;justify-content:center}
.pc-links{display:flex;justify-content:space-between;padding:0 4px}
.pc-links .inv-link{min-height:44px;font-size:15px}
.pc-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.pc-2>.pc-field:only-child{grid-column:1/-1}
.pc-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.pc-field .ck-field,.pc-box .ck-field{width:100%;min-height:44px;box-sizing:border-box;font-size:16px}
.pc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.pc-chip{min-height:44px;padding:6px 14px;border-radius:22px;border:1px solid var(--line2);background:#fff;color:var(--ink);font-size:15px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.pc-chip small{font-size:12px;color:var(--muted)}
.pc-chip.on{border:2px solid var(--accent);color:var(--accent);font-weight:600;background:var(--accent-soft)}
.pc-chip.pc-more{color:var(--accent);border-style:dashed}
.pc-sum .pc-line{display:flex;justify-content:space-between;font-size:14px;margin:2px 0}
.pc-line.muted{color:var(--muted)}
.pc-line.bad{color:var(--danger)}
.pc-line.strong{font-size:17px;font-weight:700;margin-top:6px}
#puBattLine:empty{display:none}
.pu-search{position:relative;margin-bottom:10px}
.pu-search input{width:100%;box-sizing:border-box;min-height:44px;padding:0 52px 0 12px;border:1px solid var(--line2);border-radius:10px;font-size:16px;font-family:ui-monospace,Menlo,monospace}
.pu-camview{margin:-2px 0 10px;border-radius:12px;overflow:hidden;max-height:38vh}
.bf-thin .calm-stages{margin:10px 0 12px}
.bf-thin .calm-stages>div{font-size:0;line-height:0}
.bf-thin .calm-stages>div i{height:4px;margin:0}
.bf-total-big{margin:6px 0 14px}
.bf-total-big b{display:block;font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15}
.bf-total-big span{font-size:15px;color:var(--muted)}
.code-chip{display:inline-flex;align-items:center;min-height:26px;padding:1px 8px;border-radius:6px;border:0;background:#ece9e1;color:var(--ink);
  font:600 13px ui-monospace,Menlo,monospace;letter-spacing:.03em;cursor:copy;vertical-align:middle;-webkit-user-select:all;user-select:all}
.code-chip:active,.code-chip.copied{background:var(--accent);color:#fff}
.bf-row-t .code-chip{margin-left:4px;font-size:12px;min-height:22px}
/* Pay at pickup (Oct 29) */
.pp h3{margin:0 0 12px;font-size:20px}
.pp-sum{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:14px}
.pp-line{display:flex;justify-content:space-between;font-size:15px;padding:3px 0;font-variant-numeric:tabular-nums}
.pp-line.strong{font-weight:700}
.pp-line.muted{color:var(--muted);font-size:14px}
.pp-amt{display:block;font-size:13px;color:var(--muted)}
.pp-inp{display:flex;align-items:center;gap:4px;margin-top:4px;border:2px solid var(--accent);border-radius:12px;padding:0 14px;background:#fff;min-height:56px}
.pp-inp span{font-size:26px;font-weight:700;color:var(--ink)}
.pp-inp input{flex:1;min-width:0;border:0;outline:0;font-size:28px;font-weight:700;color:var(--ink);background:transparent;font-variant-numeric:tabular-nums}
.pp-picks{display:flex;gap:8px;margin:10px 0 6px;flex-wrap:wrap}
.pp-pick{min-height:40px;padding:0 14px;border-radius:20px;border:1px solid var(--line2);background:#fff;font-size:15px;color:var(--ink);cursor:pointer}
.pp-pick.on{border:2px solid var(--accent);color:var(--accent);font-weight:600}
.pp-diff{font-size:13px;color:var(--muted);min-height:18px;margin-bottom:12px}
.pp-date{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:12px}
.pp-date input{min-height:44px;border:1px solid var(--line2);border-radius:10px;padding:0 10px;font-size:15px;background:#fff}
.pp-btns{display:flex;gap:8px}
.pp-btns .act{min-height:50px;font-size:16px}
.pp-btns .act.primary{flex:1;font-weight:700}
/* camera: a short strip, not the whole screen */
.pu-camview{height:200px;max-height:200px !important;position:relative}
.pu-camview video{width:100% !important;height:200px !important;object-fit:cover}
.pu-camview #icCamInner{height:200px;overflow:hidden}
.pp-inp input{border:0 !important;box-shadow:none !important;padding:0 !important;min-height:52px !important;-moz-appearance:textfield;appearance:textfield}
.pp-inp input::-webkit-outer-spin-button,.pp-inp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Pay upfront — iOS bottom sheet (Oct 29k) */
#payModal.bf-sheet{align-items:flex-end;padding:0}
#payModal.bf-sheet .modal-box{max-width:520px !important;margin:0 auto;border-radius:16px 16px 0 0;padding:6px 16px calc(16px + env(safe-area-inset-bottom));background:#F7F5EF;box-shadow:0 -8px 30px rgba(0,0,0,.18)}
#payModal.bf-sheet .modal-close{display:none}
.ps-grab{width:36px;height:5px;border-radius:3px;background:#D9D3C6;margin:4px auto 6px}
.ps-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px}
.ps-cancel{justify-self:start;border:0;background:none;color:var(--accent);font:inherit;font-size:17px;min-height:44px;padding:0;cursor:pointer}
.ps-title{text-align:center;font-size:17px;font-weight:600;line-height:1.2}
.ps-title small{display:block;font-size:13px;font-weight:400;color:var(--muted)}
.ps-hero{display:flex;flex-direction:column;align-items:center;padding:18px 0 10px}
.ps-cap{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.ps-amt{display:flex;align-items:baseline;justify-content:center;gap:2px;margin-top:2px}
.ps-amt span{font-size:34px;font-weight:600;color:var(--muted)}
.ps-amt input{width:6ch;border:0 !important;outline:0;background:transparent !important;box-shadow:none !important;padding:0 !important;min-height:0 !important;
  font-size:52px;font-weight:700;letter-spacing:-1px;color:var(--ink);text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.ps-amt input::-webkit-outer-spin-button,.ps-amt input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ps-note{font-size:14px;color:var(--accent);margin-top:2px;text-align:center}
.ps-note.off{color:#9A5B00}
.ps-seg{display:flex;background:#ECE9E1;border-radius:10px;padding:2px;margin:6px 0 18px}
.ps-seg .pp-pick{flex:1;min-height:36px;border:0;border-radius:8px;background:transparent;font-size:15px;font-weight:500;color:var(--ink);padding:0}
.ps-seg .pp-pick.on{background:#fff;color:var(--ink);font-weight:600;border:0;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ps-group{background:#fff;border-radius:12px;margin-bottom:14px;overflow:hidden}
.ps-row{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:0 16px;font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink)}
.ps-row+.ps-row{border-top:1px solid #EFEBE2}
.ps-row.muted span{color:var(--muted)}
.ps-row input[type=date]{border:0 !important;background:#ECE9E1 !important;border-radius:8px;min-height:34px !important;padding:0 10px !important;font-size:16px;color:var(--ink);box-shadow:none !important;width:auto}
.ps-err{color:#a12b21;font-size:14px;min-height:0;margin:-6px 0 8px}
.ps-err:empty{display:none}
.ps-go{width:100%;min-height:52px;font-size:17px;font-weight:600;border-radius:14px}
#payModal.bf-sheet .ps{padding:0 !important;margin:0 !important}
#payModal.bf-sheet .ps-amt input{font-size:52px !important;width:6ch !important;min-height:0 !important;outline:none !important;border-radius:0 !important}
#payModal.bf-sheet .ps-row input[type=date]{min-height:34px !important;padding:0 10px !important}
#payModal.bf-sheet .ps-go{font-size:17px !important;min-height:52px !important;border-radius:14px !important}
#payModal.bf-sheet .ps-cancel{font-size:17px !important;font-weight:400 !important}
/* Phone card v3 (Oct 29l) */
.pc3-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px;margin:-6px 44px 8px 0}
.pc3-nav>span:nth-child(2){font-size:17px;font-weight:600;white-space:nowrap}
.pc3-nav .pc-back{justify-self:start;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pc3-card{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.pc3-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px 12px;border-bottom:1px solid #EFEBE2}
.pc3-n{font-size:21px;font-weight:700;letter-spacing:-.3px;line-height:1.2}
.pc3-i{font:14px ui-monospace,Menlo,monospace;color:var(--muted);margin-top:2px;letter-spacing:.02em}
.pc3-p{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.pc3-p small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.pc3-p.chg{color:#9A5B00}.pc3-p s{color:var(--muted)}
.pc3-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pc3-tag{font-size:13px;font-weight:600;border-radius:10px;padding:3px 9px;background:#E6F0EC;color:#0F6B53}
.pc3-tag.bad{background:var(--danger-soft,#fbe9e7);color:#a12b21}
.pc3-tag.warn{background:#FBF1E0;color:#9A5B00}
.pc3-tag.wait{background:#F1EFE9;color:var(--muted);font-weight:500}
.pc3-reprice{display:block;margin-top:4px;min-height:36px;font-size:14px}
.pc3-row{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 16px;font-size:17px;cursor:pointer;border-top:1px solid #EFEBE2}
.pc3-hd+.pc3-row,.pc3-wrong+.pc3-row{border-top:0}
.pc3-row.open{cursor:default}
.pc3-row .k{width:80px;flex:none;color:var(--muted)}
.pc3-row .v{flex:1;min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pc3-row .v s{color:#9C978C;font-size:15px}
.pc3-row .amb{color:#9A5B00;font-weight:600}
.pc3-row .chev{color:#C4BEB1;font-size:20px}
.pc3-ded{color:#9A5B00;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.pc3-open{padding:2px 16px 12px}
.pc3-open .pc-chips{margin:0 0 4px}
.pc3-wrong{border-bottom:1px solid #EFEBE2;padding-top:12px}
.pc3-seg{display:flex;background:#ECE9E1;border-radius:9px;padding:2px}
.pc3-seg button{flex:1;min-height:36px;border:0;border-radius:7px;background:transparent;font-size:15px;color:var(--ink);cursor:pointer;padding:0 2px}
.pc3-seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.pc3-inp{width:64px;min-height:36px !important;border:2px solid var(--accent) !important;border-radius:8px;padding:2px 8px !important;font-size:17px !important;font-weight:600;-moz-appearance:textfield}
.pc3-inp::-webkit-outer-spin-button,.pc3-inp::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pc3-hint{text-align:center;font-size:13px;color:var(--muted);margin:10px 0}
.pc3-bar{position:sticky;bottom:0;margin:14px -4px 0;padding:12px 4px calc(8px + env(safe-area-inset-bottom));background:linear-gradient(rgba(247,245,239,0),var(--paper,#F7F5EF) 14px)}
.pc3-bar .pc-big{margin-bottom:2px}
/* The phone card keeps one fixed height so it doesn't grow as you tap rows (Oct 29p) */
#phoneModal.pu-card{align-items:flex-start}
#phoneModal.pu-card .modal-box{height:calc(100dvh - 60px);display:flex;flex-direction:column;overflow:hidden}
#phoneModal.pu-card #phoneModalBody,#phoneModal.pu-card #puShell{flex:1;min-height:0;display:flex;flex-direction:column}
#phoneModal.pu-card #puDyn{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch}
#phoneModal.pu-card .pc3-bar{margin-top:auto;position:sticky;bottom:0}
/* Pay sheet, one number (Oct 29r) */
#payModal.bf-sheet .ps-hero{padding:22px 0 4px;cursor:text}
#payModal.bf-sheet .ps-amt{align-items:flex-start;gap:2px}
#payModal.bf-sheet .ps-amt .ps-d{font-size:30px;font-weight:600;color:var(--ink);margin-top:8px}
#payModal.bf-sheet .ps-amt input{font-size:64px !important;line-height:1.05;letter-spacing:-2px;border-bottom:2px dashed #C9C2B3 !important;padding-bottom:4px !important}
#payModal.bf-sheet .ps-amt input:focus{border-bottom:2px solid var(--accent) !important}
#payModal.bf-sheet .ps-tap{font-size:13px;color:var(--muted);margin-top:8px;min-height:18px}
#payModal.bf-sheet .ps-hero:focus-within .ps-tap{visibility:hidden}
#payModal.bf-sheet .ps-note{font-size:15px;margin:12px 0 22px}
#payModal.bf-sheet .ps-amt input{text-align:left !important}
/* End of the check (Oct 29t) */
.pe-hero{text-align:center;padding:14px 0 4px}
.pe-cap{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.pe-big{font-size:56px;font-weight:700;letter-spacing:-1.5px;line-height:1.1;font-variant-numeric:tabular-nums}
.pe-big.red{color:#A12B21}
.pe-sub{font-size:15px;color:var(--muted);margin-top:2px}
.pe-sub .amb,.pe-r .amb{color:#9A5B00}.pe-sub .ok,.pe-r .ok{color:var(--accent)}.pe-r .bad{color:#A12B21}
.pe-sec{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:18px 16px 6px}
.pe-grp{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.pe-r{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;font-size:16px;font-variant-numeric:tabular-nums}
.pe-r+.pe-r{border-top:1px solid #EFEBE2}
.pe-r .l{flex:1;min-width:0}.pe-r .l small{display:block;font-size:13px;color:var(--muted)}
.pe-r .l.mut{color:var(--muted)}.pe-r .v{font-weight:600;white-space:nowrap}.pe-r .v.mut{color:var(--muted);font-weight:400}
.pe-r.tot{font-weight:700;font-size:17px}
.pe-note{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}
/* ===== New quote, redesigned (Oct 29u) ===== */
#mainView .nq-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:52px;margin:0 0 6px}
#mainView .nq-nav .brand{font-size:17px;font-weight:600;text-align:center;letter-spacing:0;line-height:1.2}
#mainView .nq-nav .brand small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
#mainView .nq-back{border:0 !important;background:none !important;color:var(--accent) !important;font-size:17px !important;font-weight:400 !important;padding:0 !important;min-height:44px;white-space:nowrap}
#mainView .np-meta{display:block}
#mainView #profileHint,#mainView #drop,#mainView .totals{display:none !important}
.nq-grp{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:6px}
.nq-row{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:8px 16px;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);text-align:left;cursor:pointer}
.nq-row+.nq-row{border-top:1px solid #EFEBE2}
.nq-row .k{color:var(--muted);width:64px;flex:none}
.nq-row .l{flex:1;min-width:0}.nq-row .l small{display:block;font-size:13px;color:var(--muted)}
.nq-row .chev{color:#C4BEB1;font-size:20px}
.np-seller select{flex:1;min-width:0;border:0 !important;background:transparent !important;box-shadow:none !important;font-size:16px !important;padding:0 !important;min-height:44px;-webkit-appearance:none;appearance:none;color:var(--ink)}
.np-seller.empty select{color:#9C978C}
.nq-sec,.nq-s{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:14px 16px 6px}
#mainView .sheet.nq-phones{background:transparent;border:0;box-shadow:none;padding:0;overflow:visible}
#mainView .nq-phones table{display:block;width:100%;background:#fff;border:1px solid var(--line);border-radius:12px 12px 0 0;border-bottom:0;overflow:hidden}
#mainView .nq-phones thead{display:none}
#mainView .nq-phones tbody{display:block}
#mainView #rows tr{display:block !important;padding:0 !important;border:0 !important;border-bottom:1px solid #EFEBE2 !important;background:transparent !important;box-shadow:none !important;margin:0 !important;border-radius:0 !important}
#mainView #rows tr>td{display:none !important}
#mainView #rows tr>td.np-sum{display:block !important;padding:0 !important;border:0 !important}
#mainView #rows .np-sum-btn{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;width:100%;min-height:58px;padding:9px 16px;border:0;background:transparent;text-align:left;cursor:pointer;color:var(--ink)}
#mainView #rows .np-sum-t{grid-column:1;font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mainView #rows .np-sum-s{grid-column:1;grid-row:2;font-size:13px;color:var(--muted)}
#mainView #rows .np-sum-p{grid-column:2;grid-row:1/3;align-self:center;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
#mainView #rows .np-done{display:none !important}
#mainView #rows tr.unmatched .np-sum-p{color:#A12B21}
.nq-add{display:block;width:100%;min-height:50px;padding:0 16px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:#fff;color:var(--accent);font-size:16px;font-weight:500;text-align:left;cursor:pointer}
#mainView #rows:empty+*{}
.nq-import{display:block;border:0;background:none;color:var(--accent);font-size:14px;padding:10px 16px;cursor:pointer}
#mainView #npPlan{margin:6px 0 0}
#mainView #npPlan .bf-row-s{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:8px 16px 6px;margin:0 !important}
#mainView #npPlan .bf-plans{display:flex;background:#ECE9E1;border-radius:9px;padding:2px;gap:0}
#mainView #npPlan .bf-plan{flex:1;min-height:38px;border:0 !important;border-radius:7px;background:transparent;align-items:center;justify-content:center;padding:4px 6px}
#mainView #npPlan .bf-plan b{font-size:15px;font-weight:500;color:var(--ink)}
#mainView #npPlan .bf-plan span{display:none}
#mainView #npPlan .bf-plan.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.14)}
#mainView #npPlan .bf-plan.on b{font-weight:600;color:var(--ink)}
#mainView #npPlan::after{content:"";display:block}
#mainView .nq-bar{position:sticky;bottom:0;z-index:5;margin:18px -16px 0;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:var(--paper,#F7F5EF);border-top:1px solid #E6E1D6}
@media (max-width:760px){ #mainView .nq-bar{bottom:calc(58px + env(safe-area-inset-bottom))} }
.nq-tot{display:flex;justify-content:space-between;align-items:baseline;padding:0 4px 8px}
.nq-tot span{font-size:15px;color:var(--muted)}.nq-tot b{font-size:26px;font-variant-numeric:tabular-nums}
#mainView #npSaveBtn{width:100%;min-height:52px;font-size:17px;border-radius:14px}
#mainView #npSaveBtn.nq-off{opacity:.45}
/* the phone sheet */
#nqSheet{display:none;position:fixed;inset:0;z-index:140;flex-direction:column;justify-content:flex-end}
.nq-dim{position:absolute;inset:0;background:rgba(20,25,30,.42)}
.nq-sheet{position:relative;background:var(--paper,#F7F5EF);border-radius:16px 16px 0 0;max-height:90vh;height:90vh;display:flex;flex-direction:column;max-width:560px;width:100%;margin:0 auto}
.nq-grab{width:36px;height:5px;border-radius:3px;background:#D9D3C6;margin:6px auto 2px;flex:none}
.nq-hd{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;padding:0 16px;flex:none}
.nq-hd b{font-size:17px;font-weight:600}
.nq-hb{border:0;background:none;color:var(--accent);font-size:17px;padding:0;min-height:44px;cursor:pointer;justify-self:start}
.nq-hb.strong{font-weight:600;justify-self:end}
.nq-body{flex:1;overflow-y:auto;padding:0 16px calc(24px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.nq-body .nq-s{padding:14px 0 6px}
.nq-search input{width:100%;min-height:40px;border:0 !important;border-radius:10px;background:#ECE9E1 !important;padding:0 12px !important;font-size:16px;box-shadow:none !important}
.nq-list{background:#fff;border-radius:12px;overflow:hidden;margin-top:8px;border:1px solid var(--line)}
.nq-ok{color:var(--accent);font-weight:700}.nq-change{color:var(--accent);font-size:15px}
.nq-empty{padding:16px;color:var(--muted);font-size:14px}
.nq-chips{display:flex;flex-wrap:wrap;gap:6px}
.nq-chip{min-height:44px;padding:0 13px;border-radius:22px;border:1px solid var(--line2);background:#fff;color:var(--ink);font-size:15px;cursor:pointer}
.nq-chip.on{background:#16202B;border-color:#16202B;color:#fff}
.nq-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:8px}
.nq-in{width:100%;min-height:42px;border:1px solid var(--line2) !important;border-radius:10px;background:#fff !important;padding:0 12px !important;font-size:16px;box-sizing:border-box}
.nq-in-w{position:relative;display:block}.nq-in-w span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted)}
.nq-price{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;padding:12px 16px;background:#fff;border-radius:12px;border:1px solid var(--line);font-size:15px;color:var(--muted)}
.nq-pbtn{border:0;background:none;font-size:24px;font-weight:700;color:var(--ink);cursor:pointer;display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.nq-tag{font-size:12px;font-weight:600;color:#9A5B00;background:#FBF1E0;border-radius:8px;padding:2px 7px}
.nq-pin{display:flex;align-items:center;gap:2px}.nq-pin i{font-style:normal;font-size:22px;font-weight:600;color:var(--ink)}
.nq-pin input{width:110px;border:0 !important;border-bottom:2px solid var(--accent) !important;border-radius:0;background:transparent !important;font-size:24px;font-weight:700;text-align:right;padding:0 !important;box-shadow:none !important;min-height:36px}
.nq-link{display:block;border:0;background:none;color:var(--accent);font-size:14px;padding:8px 0;cursor:pointer;margin-left:auto}
.nq-remove{display:block;width:100%;margin-top:22px;min-height:46px;border:0;border-radius:12px;background:#fff;color:#A12B21;font-size:16px;cursor:pointer;border:1px solid var(--line)}
#mainView #rows tr.nq-blank{display:none !important}
#mainView .nq-nav .brand{font-size:17px !important;font-weight:600 !important;letter-spacing:0 !important;margin:0 !important}
.nq-in-w input{-moz-appearance:textfield;appearance:textfield;padding-right:30px !important}
.nq-in-w input::-webkit-outer-spin-button,.nq-in-w input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.nq-pin input{-moz-appearance:textfield;appearance:textfield}
.nq-pin input::-webkit-outer-spin-button,.nq-pin input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.nq-phones table:has(#rows:not(:has(tr:not(.nq-blank)))){border:0;background:transparent}
.nq-in-w input{width:100% !important}
#mainView .nq-sec{padding-top:10px}
#mainView #rows .np-sum-t .nq-tag{vertical-align:2px;margin-left:4px}
/* Order page v3 (Oct 29v) */
.ov-hero{padding:14px 0 2px}
.ov-cap{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.ov-big{font-size:40px;font-weight:700;letter-spacing:-1px;line-height:1.1;font-variant-numeric:tabular-nums}
.ov-big.red{color:#A12B21}
.ov-of{font-size:17px;font-weight:500;color:var(--muted);letter-spacing:0}
.ov-sub{font-size:15px;color:var(--muted);margin-top:2px}
.ov-sec{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:16px 4px 6px}
.ov-go{width:100%;min-height:52px;font-size:17px !important;border-radius:14px !important;justify-content:center}
.ov-money .calm-row{min-height:52px}
.bf-tel{color:var(--accent);text-decoration:none}
.pd-ok{width:56px;height:56px;border-radius:28px;background:#E6F0EC;color:var(--accent);font-size:30px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.pd-row{width:100%;border:0;background:#fff;font:inherit;text-align:left;cursor:pointer}
/* Check list (Oct 29y) */
#puShell .ck-head.pc3-nav{margin:-6px 44px 8px 0;display:grid}
.pl-title{font-size:17px;font-weight:600;text-align:center;line-height:1.2;white-space:nowrap}
.pl-title small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.pl-prog{margin:12px 0 0}
.pl-pr{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;font-variant-numeric:tabular-nums}
.pl-of{font-size:13px;font-weight:400;color:var(--muted)}
.pl-bar{height:6px;border-radius:3px;background:#E2DDD2;margin-top:8px;overflow:hidden}
.pl-bar i{display:block;height:100%;background:var(--accent);border-radius:3px;transition:width .2s}
.pl-r{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 16px;border:0;background:#fff;font:inherit;font-size:16px;color:var(--ink);text-align:left;cursor:pointer;font-variant-numeric:tabular-nums}
.pl-r+.pl-r{border-top:1px solid #EFEBE2}
.pl-r .l{flex:1;min-width:0}.pl-r .l small{display:block;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-r .l.mut{color:var(--muted)}
.pl-r small.pl-imei{font-family:ui-monospace,Menlo,monospace;letter-spacing:.02em}
.pl-r .v{font-weight:600;white-space:nowrap}.pl-r .v.amb{color:#9A5B00}.pl-r .v.ok{color:var(--accent)}.pl-r .v.mut{color:var(--muted);font-weight:400}
.pl-r .chev{color:#C4BEB1;font-size:20px}
.pl-dot{width:22px;height:22px;border-radius:11px;border:2px solid #D9D3C6;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.pl-dot.ok{border:0;background:var(--accent);color:#fff}.pl-dot.no{border:0;background:#F3DEDB;color:#A12B21}
.pc3-bar .pc-big:disabled{opacity:.4}
#phoneModal.pu-card #puScanArea{flex:none}
#phoneModal.pu-card #puDyn>*{flex-shrink:0}
/* The camera and the list scroll together; only the bottom button stays put (29z) */
#phoneModal.pu-card #puShell{overflow-y:auto;-webkit-overflow-scrolling:touch}
#phoneModal.pu-card #puDyn{flex:1 0 auto;overflow:visible;min-height:auto}
#phoneModal.pu-card #puShell>.ck-head{flex:none}
/* Request page polish (Oct 29) */
.bf-pill.bf-request,.bf-request{background:#E6F0EC;color:#0F6B53}
.bf-tag{font-size:12px;font-weight:600;color:#6D6A60;background:#ECE9E1;border-radius:8px;padding:3px 8px;white-space:nowrap}
.bf-ic{background:var(--danger-soft);color:#7a1f17;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.35;margin:4px 0 8px}.bf-ic .inv-link{display:block;margin-top:4px;min-height:36px;color:var(--accent)}.bf-recheck{min-height:34px;font-size:14px;padding:0}
.bf-edit{font-size:12px;font-weight:600;color:var(--accent);margin-left:6px}
/* sale page v3 */
.sv-pill{display:inline-block;vertical-align:middle;font-size:13px;font-weight:600;padding:3px 10px;border-radius:999px;margin-left:6px}
.sv-p0{background:var(--fill,#ECE9E1);color:#6D6A60}
.sv-p1{background:#FBF1E1;color:#9A5B00}
.sv-p2{background:#E8EAF6;color:#3949AB}
.sv-p3{background:#E3F1EC;color:#0F6B53}
.sv-own{margin-top:6px;font-size:14px;color:#0F6B53;font-weight:600}
.sv-dock{display:flex;flex-direction:column;gap:6px;width:100%}
.sv-inl{font-size:inherit;padding:0;min-height:0;display:inline}
.sv-co .nq-chip small.amb{color:#9A5B00}
.pl-r .v.amb{color:#9A5B00}.pl-r .v.bad{color:#A12B21}
/* new sale v3 */
.ns-hold{margin-top:8px;font-size:14px;color:#6D6A60}
.ns-hold input{width:64px;font-size:16px;padding:4px 6px;border:1px solid #D8D3C7;border-radius:8px;text-align:right}
.ns-row{gap:12px}
.ns-ck{width:22px;height:22px;flex:none;border-radius:50%;border:1.5px solid #C9C4B8;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px}
.ns-ck.on{background:#0F6B53;border-color:#0F6B53}
.ns-off{opacity:.5}
.ns-r{flex-direction:column;align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.ns-r small{font-size:12px;font-weight:400;display:block}
.ns-g{color:#0F6B53}.ns-red{color:#A12B21}.ns-amb{color:#9A5B00}
.ns-sum{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px}
.pl-r.ns-on{background:#E3F1EC}
.ns-row{text-align:left}.ns-row .cr-main{flex:1;min-width:0}
.calm-dock:has(.ns-sum){background:#F7F5EF;box-shadow:0 -0.5px 0 #E4E0D6}
/* pack v3 */
#phoneModal.pu-card #pcShell{flex:1;min-height:0;display:flex;flex-direction:column}
#phoneModal.pu-card #pcDyn{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
#phoneModal.pu-card #pcDyn>*{flex-shrink:0}
.pc4-scan{display:flex;gap:6px}
.pc4-scan input{flex:1;min-width:0;padding:10px 12px;border:1px solid #D8D3C7;border-radius:10px;font-family:ui-monospace,monospace;font-size:16px;background:#fff}
.pc4-flash{border-radius:12px;padding:11px 13px;margin-top:10px;font-size:14px}
.pc4-flash b{display:block;font-size:17px;font-weight:700}
.pc4-ok{background:#E3F1EC;color:#0F6B53}.pc4-bad{background:#F8E5E2;color:#A12B21}.pc4-warn{background:#FBF1E1;color:#9A5B00}.pc4-info{background:#ECE9E1;color:#6D6A60}
.pc4-att{display:flex;flex-direction:column;gap:6px;margin-top:8px}.pc4-att .act{justify-content:flex-start;min-height:44px;font-size:14px;text-align:left}
.pc4-acts{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px 44px;background:#fff;font-size:15px}
.pc4-acts .inv-link{min-height:40px;font-size:15px}
.pc4 .pl-dot.ok{background:#0F6B53;border-color:#0F6B53;color:#fff}
/* sale list v3 */
.sl-top{display:flex;gap:8px;align-items:center;margin-bottom:4px}.sl-top .calm-filter{flex:1;margin:0}
.sl-top .act{min-height:44px;white-space:nowrap}
.sl-v{text-align:right}.sl-v small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.sl-red{color:#A12B21}.sl-g{color:#0F6B53 !important}.sl-amb{color:#9A5B00}
.sp3-amt{display:flex;justify-content:center;align-items:baseline;font-size:44px;font-weight:700;margin:6px 0 2px}
.sp3-amt input{width:220px;border:0;background:transparent;font:inherit;text-align:left;color:var(--ink)}
.sp3-amt input{border:0 !important;box-shadow:none !important;padding:0 !important;font-size:44px !important;font-weight:700;height:auto !important;outline:none}
.sv-red{color:#A12B21 !important}.sv-pbad{background:#F8E5E2;color:#A12B21}
.pc-big.pu-wait{opacity:.55}
/* packing polish */
body.pc-packing #tabBar{display:none}
.pc4-l4{font:700 22px ui-monospace,Menlo,monospace;letter-spacing:.04em;color:var(--ink);margin-left:8px}
.pl-r.pc4-next{background:#F2F8F5}.pl-r.pc4-next .pc4-l4{color:#0F6B53;font-size:26px}
.pc4-flash{position:relative}
.pc4-undo{float:right;margin:-2px -4px 0 8px;min-height:36px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.7);color:inherit;font:600 15px inherit;cursor:pointer}
.pc4-top{margin:10px 0 0}
.pt-seg{display:flex;flex-direction:column;gap:4px;margin:8px 0}.pt-lbl{font-size:13px;color:var(--muted)}

/* ---- Oct 30 design pass: money colours (they owe you = green, you owe = red) ---- */
.sv-grn,.sl-grn{color:#0F6B53 !important}
.sv-pgood{background:#E6F0EC;color:#0F6B53}
.cr-v{font-weight:600;font-variant-numeric:tabular-nums}
/* one pill palette for both engines: in progress = grey, done = green, settle up = who owes */
.bf-quote,.bf-pickup,.bf-check,.bf-settle,.sv-p0,.sv-p1,.sv-p2{background:#ECE9E1 !important;color:#55524A !important}
.bf-done,.bf-instant,.sv-p3{background:#E6F0EC !important;color:#0F6B53 !important}
.bf-settle.bf-owedyou,.sv-pgood{background:#E6F0EC !important;color:#0F6B53 !important}
.bf-settle.bf-youowe,.sv-pbad{background:#F8E5E2 !important;color:#A12B21 !important}
.bf-pill,.sv-pill{font-size:13px}
.bf-amt{margin-left:auto;text-align:right;font-weight:600;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:10px}
.bf-amt small{display:block;font-size:13px;font-weight:400;color:#6D6A60}
.bf-row .bf-chev{margin-left:8px}
.sv-pr{display:inline-flex;flex-direction:column;align-items:flex-end;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.sv-pr s{color:#9C978C;font-weight:400;font-size:13px}
.sv-pr small{font-size:13px;font-weight:500}
#saleRows .cr-s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* sale payment sheet (Oct 30) */
#spSheet{display:none;position:fixed;inset:0;z-index:140;flex-direction:column;justify-content:flex-end}
.sp-sheet{height:auto !important;max-height:90vh}
.sp-amt{text-align:center;margin-top:18px}
.sp-amt input{font-size:52px !important;font-weight:700;letter-spacing:-1px;text-align:center;border:0 !important;outline:0;box-shadow:none !important;background:transparent !important;width:100%;padding:0 !important;height:auto !important;color:var(--ink,#16202B);font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.sp-line{text-align:center;font-size:15px;color:#6D6A60;margin-top:2px}
.sp-bar{margin-top:20px}
#spSheet .nq-chip{min-height:44px}
/* the one button is always at the bottom (Oct 30) */
.calm-dock-sp{display:none}
@media (max-width:760px){
  .calm-dock{position:fixed !important;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));z-index:40;margin:0 !important;
    padding:10px 16px 8px !important;background:var(--paper,#F7F5EF) !important;box-shadow:0 -0.5px 0 #E4E0D6}
  .calm-dock-sp{display:block;height:128px}
  .calm-dock .pe-note{margin-top:6px}
}
/* packing + pickup screens fill the phone and sit centred (dz3 #6, Oct 30) */
@media (max-width:760px){
  #phoneModal.pu-card{padding:0 !important}
  #phoneModal.pu-card .modal-box{width:100% !important;max-width:none !important;height:100dvh !important;max-height:100dvh !important;margin:0 !important;border-radius:0 !important;padding:8px 16px 0 !important;box-shadow:none}
  #phoneModal.pu-card #phoneModalBody{padding:0 !important;margin:0 !important;width:100%}
}
.pc4-flash{min-height:62px;box-sizing:border-box}
#phoneModal.pu-card #pcShell{padding-right:0 !important}
body.pc-packing #phoneModal .modal-close{display:none}
.pu-was{color:#9C978C;font-weight:400;font-size:13px}
small.pu-miss{color:#A12B21 !important}
/* bigger tap areas for inline links, nothing under 13px in the main screens (dz5, Oct 30) */
.inv-link.sv-inl,.pe-note .inv-link{padding:12px 4px;margin:-12px -4px}
.calm-sec,.calm-strip span,.calm-strip small,.bf-row-s,.cr-s,.pe-note,.ov-sec,.pe-sec,.calm-stages span{font-size:13px}
#spSheet button,#spSheet input{font-family:inherit}
#spSheet .act.pc-big{width:100%;min-height:52px;font-size:17px;font-weight:600;border-radius:14px}
#spSheet .nq-chip.on{background:#E6F0EC;border-color:#0F6B53;color:#0F6B53;font-weight:600}
/* segmented switch (close-out: Keeps it | Sending it back) */
.sv-seg{display:flex;background:#ECE9E1;border-radius:10px;padding:2px;margin:4px 0 6px}
.sv-seg button{flex:1;min-height:40px;border:0;background:transparent;border-radius:8px;font-size:15px;font-weight:500;color:var(--ink,#16202B);cursor:pointer;font-family:inherit}
.sv-seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
/* New quote: total + Save pinned at the bottom like every other page (Oct 30) */
@media (max-width:760px){
  #mainView .nq-bar{position:fixed !important;left:0;right:0;margin:0 !important;bottom:calc(64px + env(safe-area-inset-bottom)) !important;padding:10px 16px 8px !important;z-index:40;box-shadow:0 -0.5px 0 #E4E0D6;border-top:0}
  #mainView #npPlan{padding-bottom:140px}
}
/* ---- Inventory v3 (Oct 30) ---- */
#inventoryView .inv-filter-bar{display:block;margin:0 0 4px}
#inventoryView .inv-filter-field:not(:first-child),#inventoryView .inv-filter-field label{display:none}
#inventoryView #invSearch{width:100%;height:46px;border-radius:12px;font-size:16px}
.iv-tabs{margin:8px 0 2px}
.iv-tabs button{font-size:13px;min-height:40px;padding:0 4px}
.iv-row .l small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.iv-red{color:#A12B21 !important}
.iv-page .iv-title{font-size:24px;font-weight:700;letter-spacing:-.3px;margin:4px 0 6px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.iv-page .iv-meta{font-size:14px;color:#6D6A60;margin-top:4px}
.iv-page .iv-tag{background:#ECE9E1;border-radius:6px;padding:2px 6px;color:#16202B;font-weight:600}
.iv-page .calm-list{margin-bottom:4px}
.iv-page .iv-notes{background:#fff;border-radius:12px;padding:12px 14px;font-size:15px;white-space:pre-wrap}
.iv-page .iv-services{margin-top:14px}
#phoneModal.iv-card #phoneModalBody{overflow-y:auto;-webkit-overflow-scrolling:touch}
#phoneModal.iv-card .modal-close{display:none}
#phoneModal.iv-card .pc3-bar{position:sticky;bottom:0}
.iv-page .pc3-nav{display:flex;justify-content:space-between;align-items:center}
.iv-row .redt,.iv-page .redt{color:#A12B21}.iv-row .amb,.iv-page .amb{color:#9A5B00}
.iv-page .cr-v.mut{color:#6D6A60;font-weight:500}
.iv-page{padding-bottom:12px}
#inventoryView .calm-dock-sp{height:120px}
.iv-page .iv-wrap{white-space:normal !important;overflow:visible;text-overflow:clip;line-height:1.35}
.iv-page .pc3-nav{padding-top:6px;min-height:52px}
#inventoryView #invSub{display:none}
.iv-tabs button{white-space:nowrap}
.iv-page .cr-v.iv-ink{color:#16202B;font-weight:600}
/* Inventory v3, design-system pass (Oct 30) */
.iv-tabs button{font-size:15px !important}
.iv-page .iv-title{font-size:28px;line-height:34px;letter-spacing:-.4px}
.iv-code{font-family:ui-monospace,Menlo,monospace;font-size:13px;font-weight:600;letter-spacing:.5px;background:#ECE9E1;color:#16202B;border-radius:6px;padding:3px 7px;border:0;cursor:pointer}
.cs-imei{font-family:ui-monospace,Menlo,monospace;letter-spacing:.3px;font-size:14px}
.iv-svc-ed{display:flex;flex-direction:column;gap:10px;padding:10px 16px 14px;border-top:1px solid #EFEBE2;background:#fff}
.iv-svc-ed[hidden]{display:none}
.iv-svc-cost{display:flex;align-items:center;gap:6px;font-size:16px}
.iv-svc-cost input{width:110px;font-size:16px;padding:8px 10px;border:1px solid #D9D3C6;border-radius:9px}
.iv-page .iv-services{margin-top:0}
.iv-page{padding-bottom:140px !important}
.iv-page .iv-title .sv-pill{line-height:16px;padding:4px 10px}
.iv-page .cr-v .cs-imei{font-weight:400}
#inventoryView #invSearch{background:#ECE9E1 !important;border:0 !important;border-radius:9px !important;height:44px}
/* inventory tools (Oct 30) */
#ivSheet{display:none;position:fixed;inset:0;z-index:9999;flex-direction:column;justify-content:flex-end}
#ivSheet button,#ivSheet input{font-family:inherit}
#ivSheet .act.pc-big{width:100%;min-height:52px;font-size:17px;font-weight:600;border-radius:14px}
#ivSheet .calm-list,.iv-page .calm-list{background:#fff;border-radius:12px;overflow:hidden}
.iv-run{display:block;height:6px;width:40%;border-radius:3px;background:#0F6B53;animation:ivrun 1.1s infinite linear}
@keyframes ivrun{0%{margin-left:-40%}100%{margin-left:100%}}
.iv-box{width:22px;height:22px;border-radius:11px;border:2px solid #D9D3C6;flex:none;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;margin-right:6px}
.iv-search{width:100%;height:44px;border:0;border-radius:9px;background:#ECE9E1;padding:0 12px;font-size:16px;margin-top:6px}
.iv-sel{font-size:16px;border:0;background:transparent;text-align:right;color:#6D6A60;max-width:60%}
.iv-sel.iv-more{display:block;margin-top:8px;text-align:left;color:#0F6B53;padding:8px 0}
.iv-in{font-size:16px;border:0;background:transparent;text-align:right;min-width:0;flex:1;color:#16202B}
.iv-page .pd2-fold{margin-top:4px}
.iv-page #pdHistory{background:#fff;border-radius:12px;padding:12px 16px;margin-top:14px}
.iv-page .pc3-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.iv-page .pc3-nav .calm-more{justify-self:end}
#lblList .cr-main{text-align:left;flex:1;align-items:flex-start}
.iv-page label.calm-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.iv-page .iv-sel,.iv-page .iv-in{border:0 !important;box-shadow:none !important;outline:0;background:transparent !important;padding:0 !important;height:auto !important;width:auto !important;margin:0 !important}
.iv-page .iv-in{flex:1;text-align:right}
.iv-page .iv-sel.iv-more{border:0 !important;color:#0F6B53 !important;margin-top:8px !important}
.iv-page label.calm-row .cr-main{flex:none}
/* 31h: edit pages — beat legacy #phoneModalBody .inv-edit label */
#phoneModalBody .iv-page.inv-edit label.calm-row,.iv-page label.calm-row{display:flex !important;flex-direction:row;align-items:center;justify-content:space-between;margin-top:0 !important;font-size:16px;font-weight:400}
#phoneModalBody .iv-page .iv-sel,#phoneModalBody .iv-page .iv-in{border:0 !important;box-shadow:none !important;background:transparent !important;padding:0 !important;height:auto !important;width:auto !important;margin:0 !important;font-size:16px !important;color:var(--ink,#16202B);text-align:right}
#phoneModalBody .iv-page .iv-in{flex:1;min-width:0}
#phoneModalBody .iv-page .iv-in::-webkit-calendar-picker-indicator{display:none !important}
#phoneModalBody .iv-page .iv-sel.iv-more{color:#0F6B53 !important;margin-top:8px !important;text-align:left}
/* 31i: iOS switch + Regular row on a person */
.pe-reg{margin:14px 0 4px}
input.sw{appearance:none;-webkit-appearance:none;width:51px;height:31px;border-radius:999px;background:#ECE9E1;position:relative;cursor:pointer;transition:background .2s;flex:none;margin:0;border:0}
input.sw::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.18);transition:transform .2s}
input.sw:checked{background:#0F6B53}
input.sw:checked::after{transform:translateX(20px)}
/* 31l: Inventory home without hero or tabs */
#inventoryView #invSub{display:block !important;font-size:15px;color:#6D6A60;text-transform:none;letter-spacing:0;margin-top:2px}
.iv-outlink{margin-top:24px}
.iv-pt{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.4px;margin:8px 0 0}
.iv-pts{font-size:15px;color:#6D6A60;margin:2px 0 4px}
.iv-subnav{margin:4px 0 0;padding:0}
.iv-row small{white-space:nowrap !important;overflow:hidden !important;text-overflow:clip !important}
/* 31o: phone page must not scroll sideways (pc3-bar's -4px margins overflowed by 4px) */
#phoneModalBody:has(.iv-page){overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}
#phoneModalBody .iv-page .pc3-bar{margin-left:0 !important;margin-right:0 !important}
#phoneModalBody .iv-page{max-width:100%;overflow-x:clip}
/* ===== 31p: nothing scrolls sideways, site-wide (Kris, Oct 29) ===== */
html,body{overflow-x:clip;max-width:100%}
.modal,[id$=Modal],[id$=ModalBody],#phoneModalBody,.calm-sheet,#ivSheet,#spSheet{overflow-x:clip !important;overscroll-behavior-x:none}
img,video,canvas,svg{max-width:100%}
/* segmented controls fit the width; if a long one still can't, it wraps instead of scrolling */
.pdv-seg{display:flex !important;flex-wrap:wrap !important;max-width:100%;overflow:visible !important;box-sizing:border-box}
.pdv-seg button{flex:1 1 auto;min-width:0;padding:8px 8px !important;white-space:nowrap}
/* tables fit the screen: no minimum widths, text wraps, numbers stay on one line */
.otable{min-width:0 !important;width:100%;table-layout:auto}





.otable td,.otable th{overflow-wrap:anywhere}
@media (max-width:600px){ .inst-table th:nth-child(1),.inst-table td:nth-child(1),.inst-table th:nth-child(4),.inst-table td:nth-child(4),.inst-table th:nth-child(7),.inst-table td:nth-child(7){display:none} .inst-table td,.inst-table th{padding-left:6px !important;padding-right:6px !important} }
/* 31q: one list top for Buy Orders and Sale Orders (Kris, option B) */
.list-top{display:flex !important;gap:8px;align-items:center;flex-wrap:nowrap !important;margin:12px 0 4px !important}
.list-top input[type=search]{flex:1 1 auto !important;min-width:0 !important;max-width:none !important;margin:0 !important;height:40px !important;min-height:40px !important;
  background:#ECE9E1 !important;border:0 !important;border-radius:9px !important;padding:0 12px !important;font-size:16px !important;color:#16202B;box-shadow:none !important}
.list-top input[type=search]::placeholder{color:#9C978C}
.list-top .act.primary{flex:none;height:40px !important;min-height:40px !important;border-radius:9px !important;padding:0 14px !important;font-size:15px !important;font-weight:600;white-space:nowrap;margin:0 !important}
#ordersView .brand small,#salesView .brand small{display:block !important;font-size:15px !important;color:#6D6A60;text-transform:none;letter-spacing:0;margin-top:2px !important}
#salesView #salesBody{margin-top:0 !important}
/* 31r: Inventory search matches Buy and Sale Orders (same size and place) */
#inventoryView .inv-filter-bar{margin-top:28px !important;padding-top:0 !important;border-top:0 !important}
#inventoryView #invSearch{height:40px !important;min-height:40px !important;padding:0 12px !important;border:0 !important;border-radius:9px !important;background:#ECE9E1 !important;font-size:16px !important;box-shadow:none !important}
#inventoryView header.top .brand small#invSub{font-size:15px !important;margin-top:2px !important}
/* 31s: one group style everywhere: CAPS grey label, one white card per group with a hairline border */
#ordersView .bf-sec{margin:0 !important}
#ordersView .bf-sec>h3{font-size:13px !important;font-weight:400 !important;color:#6D6A60 !important;text-transform:uppercase !important;letter-spacing:.4px !important;margin:0 !important;padding:18px 16px 6px !important}
#ordersView .bf-group{border:1px solid var(--line,#EFEBE2)}
#ordersView details.bf-fold{margin-top:18px}
/* 31t: phone page bottom bar = the same pinned bar as Buy and Sell: solid paper, hairline on top */
#phoneModal.iv-card .pc3-bar{position:sticky !important;bottom:0 !important;z-index:5;background:#FBFAF7 !important;border-top:1px solid #EFEBE2;margin:16px 0 0 !important;padding:10px 0 calc(10px + env(safe-area-inset-bottom)) !important}
/* 31u: no visible scroll bars anywhere (Kris, Oct 29). Scrolling still works. */
*{scrollbar-width:none !important;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none !important;width:0 !important;height:0 !important;background:transparent}
/* 31v: page top v3 — number leads; code + when above the progress bar (Kris, Oct 29) */
.ov-hero.pt3{padding:18px 0 4px !important}
.pt3-capline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pt3-capline .ov-cap{margin:0 !important}
.pt3-capline .sv-pill,.pt3-capline .bf-pill{flex:none;margin:0 !important}
.pt3 .ov-big{margin-top:4px}
.pt3-ref{display:flex;align-items:center;gap:6px;margin-top:16px;font-size:15px;color:#6D6A60;flex-wrap:wrap}
.pt3-ref .code-chip{font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace !important;letter-spacing:.5px;background:#ECE9E1 !important;color:#16202B !important;border:0 !important;padding:3px 7px !important;border-radius:6px !important;min-height:0 !important;height:auto !important}
.pt3-dot{color:#9C978C}
.pt3 .calm-stages{margin:12px 0 0 !important;width:100%}
.pt3 .calm-stages>div{font-size:12px}
.pt3 .calm-stages>div i{height:4px}
/* detail pages: no profile circle, ⋯ sits level with Back */
body.mode-orders:has(#ordersView.in-detail) #roleBtn,body.mode-sales:has(#salesView.in-detail) #roleBtn{display:none !important}
@media (max-width:760px){ #ordersView.in-detail .calm-nav,#salesView.in-detail .calm-nav{padding-right:0 !important} }
/* 31w: calmer page top + one-line money rows (Kris, Oct 29) */
.pt3-ref{margin-top:14px !important;font-size:14px !important;color:#9C978C !important;gap:6px}
.pt3-ref .code-chip{background:transparent !important;padding:0 !important;color:#6D6A60 !important;font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace !important;letter-spacing:.5px}
.pt3 .calm-stages{margin-top:16px !important}
.pt3 .calm-stages>div{overflow:visible;white-space:normal}
.st-note{display:block;font-size:11px;font-weight:600;color:#6D6A60;margin-top:1px}
.st-note.st-red{color:#A12B21}.st-note.st-grn{color:#0F6B53}
.pt3-note{margin-top:10px}
.calm-row.cr-one{min-height:50px}
.calm-row .cr-v.cr-mut{color:#6D6A60;font-weight:400}
/* 31x: the line under the big number is one short line (Kris, Oct 29) */
.pt3 .ov-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 31y: phone page = the same calm top as orders (Kris, Oct 29) */
.iv-page .iv-meta{font-size:14px !important;color:#9C978C !important;margin-top:6px !important}
.iv-page .iv-meta .iv-code{background:transparent !important;padding:0 !important;color:#6D6A60 !important}
.iv-page .ov-hero.pt3{padding-top:22px !important}
.iv-page .iv-dmgv{white-space:normal;text-align:right}
.iv-page .calm-row{min-height:50px}
/* the phone page fills the visible screen, so the bottom bar sits at the very bottom on iPhone */
#phoneModal.iv-card .modal-box{height:100dvh !important;max-height:100dvh !important}
#phoneModal.iv-card #phoneModalBody{max-height:100dvh}
/* 31z: phone page v4 — 1 which phone · 2 can I sell it · 3 where to sell (Kris, Oct 29) */
.iv4 .iv-title{font-size:28px !important;line-height:34px;margin:8px 0 0 !important}
.iv4 .iv-sub{font-size:15px;color:#6D6A60;margin-top:2px}
.iv4 .iv-state{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;padding:22px 16px 6px}
.iv4 .iv-state i{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}
.iv4 .iv-grn{color:#0F6B53}.iv4 .iv-red{color:#A12B21}.iv4 .iv-amb{color:#9A5B00}.iv4 .iv-mut{color:#6D6A60}
.iv4 .cr-v.amb,.iv4 .amb{color:#9A5B00}
.iv4 .iv-b{font-weight:600}
.iv4 .iv-copy{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:#ECE9E1;color:#0F6B53;font-size:14px;margin-left:10px}
.iv4 .cs-imei{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;color:#16202B}
.iv4 .iv-deal{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line,#EFEBE2)}
.iv4 .iv-deal:last-child{border-bottom:0}
.iv4 .iv-deal .k{font-size:13px;color:#6D6A60}.iv4 .iv-deal .n{font-size:22px;line-height:28px;font-weight:700;color:#16202B;font-variant-numeric:tabular-nums}
.iv4 .iv-dl{flex:1}.iv4 .iv-dr{flex:1;text-align:right}
.iv4 .iv-gap{text-align:center;padding:0 8px;font-size:15px;font-weight:600}.iv4 .iv-arrow{color:#C4BEB1;font-size:20px;line-height:16px;font-weight:400}
.iv4 .iv-foot{font-size:13px;color:#6D6A60;margin:14px 16px 0}
.iv4 .iv-foot .iv-code{background:transparent !important;padding:0 !important;color:#16202B !important;font:600 12px ui-monospace,Menlo,monospace !important}
.iv4 .calm-row.cr-one{min-height:50px}
.iv4 .pc3-nav{margin-right:0 !important}
.iv4 .pc3-nav .calm-more{justify-self:end}
#phoneModal.iv-card .iv4{min-height:calc(100dvh - 8px);display:flex;flex-direction:column}
#phoneModal.iv-card .iv4>.pc3-bar{margin-top:auto !important}
#phoneModal.iv-card .iv4>*{flex-shrink:0}
#phoneModal.iv-card .iv4{padding-bottom:0 !important}
/* 32a: same top on Buy, Sell and the phone page; tab bar stays visible on the phone page */
#ordersView.in-detail #ordersBody{margin-top:0 !important}
#phoneModal.iv-card .modal-box{padding-top:0 !important}
@media (max-width:760px){
  .wrap{padding-left:16px !important;padding-right:16px !important}
  #phoneModal.iv-card{bottom:calc(59px + env(safe-area-inset-bottom)) !important;height:auto !important;z-index:80 !important}
  #phoneModal.iv-card .modal-box{height:100% !important;max-height:100% !important}
  #phoneModal.iv-card #phoneModalBody{max-height:100% !important}
  #phoneModal.iv-card .iv4{min-height:calc(100dvh - 59px - env(safe-area-inset-bottom)) !important}
  #phoneModal.iv-card .pc3-bar{padding-bottom:10px !important}
}
.iv4 .iv-title{margin-top:11px !important}
/* 32b: Today split into the engines (Oct 30) */
#tabPickup{display:none !important}
#pickupView .pk-nav{margin:0 0 2px}
#pickupView .pk-h{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.4px;margin:6px 0 14px}
#pickupView .today-panel h2{display:none}
#pickupView .pk-src-chips,#pickupView .pk-dev-chips{margin:6px 0 8px}
.bf-today h3{display:flex;justify-content:space-between}
.bf-today .bf-tt{font-weight:400;letter-spacing:0}
#pickupView.pk-buy .pkrow2{flex-direction:column}
#pickupView .pk-sub{font-size:15px;color:#6D6A60;margin:-10px 0 14px}
/* 32c: Buy now step 2 (Oct 30 design) */
#pickupView .pk2 .pe-sec{padding-left:16px}
#pickupView .pk2 .calm-list{margin:0}
.pk2-in{border:0 !important;background:transparent !important;box-shadow:none !important;padding:0 !important;margin:0 !important;width:3.6em !important;min-height:0 !important;height:auto !important;text-align:right;font:600 16px/22px system-ui,-apple-system,sans-serif !important;color:#16202B !important;border-bottom:1px dashed #D9D3C6 !important;border-radius:0 !important}
#pickupView .pk2 .pkchip{display:inline-flex;align-items:center;min-height:44px;padding:0 14px !important;margin:0 6px 8px 0 !important;border:1px solid #D9D3C6 !important;border-radius:999px !important;background:#fff;font-size:15px !important;color:#16202B;cursor:pointer}
#pickupView .pk2 .pkchip.on{background:#16202B !important;color:#fff !important;border-color:#16202B !important}
#pickupView .pk2 .pkverdict{border-radius:12px;padding:12px 14px;margin:12px 0}
.pk2-bar{position:sticky;bottom:0;z-index:5;background:#F7F5EF;border-top:1px solid #EFEBE2;margin:18px -16px 0;padding:10px 16px 12px}
.pk2-bar .ov-go{width:100%;min-height:52px;border-radius:14px;font-size:17px;font-weight:600}
@media (max-width:760px){ .pk2-bar{bottom:calc(59px + env(safe-area-inset-bottom))} }
#pickupView .pk2,#pickupView .pkform.pk2{background:transparent !important;border:0 !important;padding:0 !important;box-shadow:none !important}
#pickupView .pk2 .cr-v.mut{color:#6D6A60 !important;font-weight:400 !important}
#pickupView .pk2 .cr-v.amb{color:#9A5B00 !important;font-weight:400 !important}
#pickupView .pk2 .cr-v.iv-ink{color:#16202B !important}
#pickupView .pk2 .cs-imei{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}
#pickupView .pk2 .pk2-use{margin-left:10px;font-size:14px}
#pickupView .pk2 .cr-r{gap:2px}

/* ===== 32d · People v2 (Oct 30) ===== */
.pp-seg{display:flex;background:#ECE9E1;border-radius:9px;padding:2px;margin:12px 0 0;gap:0}
.pp-seg button{flex:1;min-height:36px;border:0;background:transparent;font:inherit;font-size:15px;color:#16202B;border-radius:7px;cursor:pointer}
.pp-seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12)}
#profilesView .pe-sec{padding:18px 16px 6px}
#profilesView .pe-grp .calm-row{border-bottom:1px solid #EFEBE2;text-align:left;background:#fff;font:inherit;color:inherit}
#profilesView .pe-grp .calm-row:last-child{border-bottom:0}
#profilesView .calm-row .cr-t{font-size:16px;font-weight:400}
.pp-v{font-weight:600;font-variant-numeric:tabular-nums;text-align:right;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.pp-v small{font-size:13px;font-weight:400}
.pp-grn{color:#0F6B53 !important}.pp-red{color:#A12B21 !important}.pp-mut{color:#6D6A60 !important;font-weight:400}
.pp-code{font-family:ui-monospace,monospace;font-size:15px;letter-spacing:.3px}
.pp-who{padding:8px 0 0}.pp-who h2{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.4px;margin:0}
.pp-sub{font-size:15px;color:#6D6A60;margin-top:2px}
.pp-hero{padding:14px 0 2px}
.pp-cap{font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60}
.pp-num{font-size:40px;line-height:44px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.pp-line{font-size:15px;color:#6D6A60;margin-top:2px}
.pp-chiprow{padding:8px 14px}.pp-chiprow .nq-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
#profilesView.in-detail header.top{display:none}
.pp-subpage .pp-who{padding-bottom:8px}
#profilesView .calm-dock{flex-direction:column !important;align-items:stretch !important;gap:6px}
#profilesView .calm-dock .pe-note{text-align:center;font-size:13px}
#profilesView .calm-dock .inv-link{font-size:13px;color:#0F6B53;background:none;border:0;padding:4px;cursor:pointer;font:inherit}

/* Quote: amber note over the price (build Nov 3h) */
.nq-price{flex-wrap:wrap}
.nq-price .nq-warn{flex-basis:100%;order:3;font-size:15px;color:var(--warn);line-height:20px}

/* The person circle is gone on phones (Kris, Nov 1, build Nov 3t): its menu is the Account
   group at the bottom of More. Titles and ⋯ buttons no longer make room for it. */
@media (max-width:760px){
  #roleBtn,#acctMenu{display:none !important}
  .calm-nav{padding-right:0}
  #inventoryView header.top .inv-meta{margin-right:0}
  header.top .brand{padding-right:0}
  #ratesView .px-more{margin-right:0}
  #tmList .tm-lab{font:500 13px var(--font-ui);letter-spacing:.4px;text-transform:uppercase;color:var(--muted);padding:16px 6px 4px}
  #tmList .tm-who{font:400 14px var(--font-ui);color:var(--muted);padding:2px 6px 6px;display:flex;align-items:center;gap:8px}
  #tmList .tm-pill{font:600 13px var(--font-ui);padding:2px 10px;border-radius:10px;background:var(--fill,#ECE9E1);color:var(--ink)}
  #tmList .tm-pill.own{background:#E6F0EC;color:var(--accent)}
  #tmList .tm-two small{display:block;font:400 13px var(--font-ui);color:var(--muted);margin-top:1px}
  #tmList button.tm-red{color:#A12B21}
  #tmList button:last-child{border-bottom:0}
}
/* Device Check in Inventory (Nov 4z) */
.dc-found{margin-top:10px;background:var(--warns,#FBF1E0)}
.dc-found .cr-t{color:var(--warn,#9A5B00)}
.dc-found .calm-row{border:0}
.dc-chips{padding:0 14px 12px}
.dc-photos{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 4px}
.dc-ph{aspect-ratio:3/4;border-radius:10px;border:0;background:#D9D3C6 center/cover no-repeat;position:relative;cursor:zoom-in;padding:0}
.dc-ph span{position:absolute;left:6px;top:6px;background:rgba(22,32,43,.75);color:#fff;font-size:11px;font-weight:600;padding:1px 7px;border-radius:8px}
/* Phone rows, site-wide (Nov 6a): line 2 IMEI, line 3 facts; damage amber */
.ph-l{display:block}
.ph-dmg{color:var(--warn,#9A5B00)}
.iv-row small .iv-cg .ph-dmg{color:var(--warn,#9A5B00)}
/* Keyboard-safe sheets (Nov 6h): while the iPhone keyboard is open, fit every bottom sheet and the
   phone modal to the visible part of the screen so the field you're typing in stays in view */
.kb-open #nqSheet,.kb-open #spSheet,.kb-open #ivSheet,.kb-open #ppSheet,.kb-open #svPaySheet,.kb-open #svLabelSheet,.kb-open #shipAddrSheet,.kb-open #calmSheet,.kb-open #npBack,.kb-open .modal-overlay{top:var(--vvt)!important;bottom:auto!important;height:var(--vvh)!important}
.kb-open .nq-sheet{height:auto!important;max-height:calc(100% - 8px)!important}
.kb-open .nq-sheet .nq-body,.kb-open .nq-sheet .pp-sb{min-height:0;overflow-y:auto}
.kb-open #phoneModal .modal-box{height:100%!important;max-height:100%!important}

/* Seller request page (Kris, Nov 7, build Nov 7l): rows in the Phone row layout, a green ✓ once checked,
   the button and its link stacked, progress on the button, the space under the list sized to the bar */
.bf-ok{color:var(--accent);font-size:18px;font-weight:700;flex:none}
.calm-dock .bf-dockcol{flex:1;display:flex;flex-direction:column;align-items:stretch}
.calm-dock .bf-dockcol .pe-note{text-align:center}
.act.ck-prog{background:linear-gradient(90deg,var(--accent) var(--ck,0%),#8FB3A5 var(--ck,0%)) !important;opacity:1 !important;color:#fff !important}

/* Payment sheet (build Nov 8b): the amount big and centred, like the pay sheets */
#ppSheet .pf-amt{display:flex;align-items:baseline;justify-content:center;gap:4px;margin:14px 0 6px;font-size:44px;font-weight:700;color:var(--ink)}
#ppSheet .pf-amt input{width:5.2ch;border:0 !important;border-bottom:2px solid var(--line) !important;border-radius:0 !important;background:transparent !important;font-size:44px !important;font-weight:700 !important;color:var(--ink) !important;text-align:left;padding:0 2px !important;height:auto !important;min-height:0 !important;box-shadow:none !important;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
#ppSheet .pf-amt input::selection{background:#CFE3DA}
#ppSheet #pfGo:disabled{opacity:.4}
#ppSheet .pf-amt input:focus{outline:none;border-bottom-color:var(--accent)}
#ppSheet .pf-amt input::-webkit-outer-spin-button,#ppSheet .pf-amt input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

#ppSheet .pf-lbl{text-align:center;margin-top:12px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
#ppSheet .pf-lbl+.pf-amt{margin-top:2px}
#ppSheet .pf-sub{font-size:12px;color:var(--muted);margin-top:2px}
#ppSheet #pfGo.pf-busy:disabled{opacity:.7}
