:root{
  --teal:#0E8074; --teal-dark:#0A6056; --teal-light:#E6F4F1;
  --blue:#2D7FF9; --green:#16A34A; --green-soft:#DCFCE7;
  --red:#EF4444; --red-soft:#FEE2E2; --amber:#D97706; --amber-soft:#FEF3C7;
  --ink:#1A1D1F; --muted:#6B7280; --line:#E5E7EB; --bg:#F4F5F7; --white:#fff; --card:#fff;
  --danger:#EF4444; --success:#16A34A; /* aliases: some screens reference these names */
}
*{box-sizing:border-box;margin:0;padding:0;font-family:'Poppins',-apple-system,Segoe UI,Roboto,sans-serif}
html,body{overflow-x:hidden}
body{background:#1c2430;color:var(--ink)}
button{cursor:pointer;font-family:inherit}
input{font-family:inherit}
.hidden{display:none!important}

/* top switcher */
.topbar{background:#11181f;padding:14px 20px;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:50;border-bottom:1px solid #2a323c}
.topbar .brand{color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;gap:9px}
.topbar .brand .dot{width:24px;height:24px;background:linear-gradient(135deg,var(--teal),#1fae9b);border-radius:7px;display:flex;align-items:center;justify-content:center}
.switch{display:flex;background:#1c252f;border-radius:10px;padding:4px;gap:4px}
.switch button{background:transparent;border:none;color:#8b95a1;padding:8px 16px;border-radius:7px;font-weight:600;font-size:13px}
.switch button.active{background:var(--teal);color:#fff}
.whoami{margin-left:auto;color:#8b95a1;font-size:13px;display:flex;align-items:center;gap:12px}
.whoami button{background:#1c252f;border:none;color:#cbd5e1;padding:7px 14px;border-radius:7px;font-size:13px}

.stage{padding:28px 20px;display:flex;justify-content:center;min-height:calc(100vh - 56px)}

/* login */
.login{background:#fff;border-radius:16px;padding:36px;width:360px;margin-top:60px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.login h2{font-size:22px;margin-bottom:6px}
.login p{color:var(--muted);font-size:13px;margin-bottom:22px}
.login label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:14px 0 6px;text-transform:uppercase;letter-spacing:.4px}
.login input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:9px;font-size:14px}
.login button{width:100%;margin-top:22px;background:var(--teal);color:#fff;border:none;padding:13px;border-radius:9px;font-weight:600;font-size:15px}
.login .err{color:var(--red);font-size:13px;margin-top:12px;min-height:16px}
.login .hint{margin-top:16px;font-size:12px;color:var(--muted);text-align:center}

/* phone */
.phone{width:380px;height:760px;background:#000;border-radius:42px;padding:12px;box-shadow:0 30px 70px rgba(0,0,0,.5)}
.screen{background:var(--bg);width:100%;height:100%;border-radius:30px;overflow:hidden;display:flex;flex-direction:column}
.statusbar{background:var(--teal);color:#fff;font-size:11px;padding:8px 18px 4px;display:flex;justify-content:space-between}
.apphead{background:var(--teal);color:#fff;padding:10px 18px 16px;display:flex;align-items:center;gap:14px}
.apphead .back{font-size:22px;background:none;border:none;color:#fff}
.apphead .title{font-size:20px;font-weight:700}
.apphead .avatar{margin-left:auto;width:32px;height:32px;border-radius:50%;background:#fff;border:none;padding:0;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.apphead .avatar:active{transform:scale(.92);opacity:.85}
.appbody{flex:1;overflow-y:auto;padding:16px}
.navbar{height:42px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;color:#9aa3ad}

.tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.home-account{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);text-align:center}
.home-who{color:var(--muted);font-size:13px;margin-bottom:12px}
.btn-logout{width:100%;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#b42318;font-weight:600;font-size:15px;cursor:pointer}
.btn-logout:active{background:#fef2f2}
.tile{background:#fff;border-radius:16px;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:none;box-shadow:0 1px 4px rgba(0,0,0,.06);font-size:16px;font-weight:600;color:var(--ink)}
.tile .ic{font-size:34px}
.tile:active{transform:scale(.96)}

.tabs{display:flex;background:#fff;border-bottom:1px solid var(--line)}
.tabs button{flex:1;background:none;border:none;padding:13px 0;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent}
.tabs button.active{color:var(--teal);border-bottom-color:var(--teal);background:var(--teal-light)}
.search{margin:14px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:14px}
.counter{padding:0 16px 8px;color:var(--muted);font-size:13px}
.ocard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 14px 12px;display:flex;align-items:center;justify-content:between;justify-content:space-between}
.ocard h4{font-size:17px;font-weight:700;margin-bottom:8px}
.pill{font-size:13px;font-weight:600;padding:4px 12px;border-radius:20px;background:var(--teal-light);color:var(--teal-dark)}
.pill.amber{background:var(--amber-soft);color:var(--amber)}
.pill.green{background:var(--green-soft);color:var(--green)}
.pill.red{background:var(--red-soft);color:var(--red)}
.pill.blue{background:#DBEAFE;color:var(--blue)}
.chev{color:#c3c9d0;font-size:20px;margin-left:auto}

.banner{background:#EFF6FF;border:1px solid #DBEAFE;border-radius:12px;padding:14px;font-weight:700;font-size:16px;margin-bottom:14px}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:14px}
.btn-primary{background:var(--teal);color:#fff;border:none;border-radius:12px;padding:16px;width:100%;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px}
.btn-primary:disabled{opacity:.4}
.btn-ghost{background:#fff;color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:14px;width:100%;font-weight:600;margin-top:10px}
.stepper{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px 0 6px}
.stepbtn{width:60px;height:60px;border-radius:14px;border:2px solid;background:#fff;font-size:28px;font-weight:600}
.stepbtn.minus{border-color:#FCA5A5;color:var(--red);background:var(--red-soft)}
.stepbtn.plus{border-color:#86EFAC;color:var(--green);background:var(--green-soft)}
.stepval{width:110px;height:60px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600}
/* Physical-keypad "listening" indicator (see openQtyPad in app.js) —
   never a real focusable input, so the on-screen keyboard never appears. */
.keypad-active{border-color:var(--teal)!important;box-shadow:0 0 0 2px var(--teal-light)}
.lrow{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px}
.bdot{width:13px;height:13px;border-radius:50%;background:var(--blue)}
.bdot.done{background:var(--teal)}
.lsub{color:var(--muted);font-size:13px;margin-left:23px;margin-top:3px}
.complete-txt{text-align:center;color:var(--green);font-weight:600;margin-top:10px}
.action-card{background:#fff;border:2px solid var(--line);border-radius:16px;padding:20px;text-align:center;margin-bottom:12px}
.action-card.sel{border-color:var(--teal);background:#F0FBF9}
.action-card h3{font-size:18px}
.action-card p{color:var(--muted);font-size:13px;margin-top:4px}
.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:13px 20px;border-radius:10px;font-size:14px;z-index:200;opacity:0;transition:.25s;pointer-events:none}
.toast.show{opacity:1}
.toast.err{background:var(--red)}

/* success flash — animated green check shown when an action completes */
.okflash{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(244,245,247,.72);animation:okfade 1.2s forwards;pointer-events:none}
.okflash .okring{width:104px;height:104px;border-radius:50%;background:var(--green,#16A34A);display:flex;align-items:center;justify-content:center;box-shadow:0 12px 34px rgba(22,163,74,.4);animation:okpop .5s cubic-bezier(.2,.9,.3,1.5)}
.okflash svg{width:58px;height:58px}
.okflash .okchk{fill:none;stroke:#fff;stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:okdraw .4s .2s forwards}
.okflash .okmsg{margin-top:16px;font-weight:700;font-size:17px;color:var(--ink,#1A1D1F)}
@keyframes okpop{0%{transform:scale(.2);opacity:0}55%{opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes okdraw{to{stroke-dashoffset:0}}
@keyframes okfade{0%,70%{opacity:1}100%{opacity:0}}

/* admin */
.admin{display:flex;background:var(--bg);border-radius:16px;overflow:hidden;width:1180px;max-width:100%;height:calc(100vh - 120px);min-height:640px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.side{width:225px;background:#0d1418;color:#cdd5dd;padding:18px 12px;flex-shrink:0}
.side .logo{color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;gap:10px;padding:6px 12px 18px}
.side .logo .d{width:26px;height:26px;background:linear-gradient(135deg,var(--teal),#1fae9b);border-radius:8px;display:flex;align-items:center;justify-content:center}
.side .navlbl{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#5b6670;padding:14px 12px 6px}
.side button{display:flex;align-items:center;gap:11px;width:100%;background:none;border:none;color:#aab3bd;padding:10px 12px;border-radius:9px;font-size:14px;font-weight:500;text-align:left}
.side button:hover{background:#161f26;color:#fff}
.side button.active{background:var(--teal);color:#fff}
.main{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden}
.mhead{background:#fff;padding:18px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:5}
.mhead h1{font-size:20px}
.mhead .sub{color:var(--muted);font-size:13px}
.mhead .actions{margin-left:auto;display:flex;gap:10px}
.abtn{background:var(--teal);color:#fff;border:none;padding:9px 16px;border-radius:9px;font-weight:600;font-size:13px}
.abtn.sec{background:#fff;color:var(--ink);border:1px solid var(--line)}
.mbody{padding:24px 26px}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.kpi .v{font-size:28px;font-weight:700}
.kpi .l{color:var(--muted);font-size:13px;margin-top:3px}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.card .ch{padding:15px 20px;border-bottom:1px solid var(--line);font-weight:700;font-size:15px}
table{width:100%;table-layout:fixed;border-collapse:collapse}
th{text-align:left;padding:11px 20px;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);border-bottom:1px solid var(--line)}
td{padding:13px 20px;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}
tr:last-child td{border:none}
tbody tr:hover{background:#fafbfc}
.tag{font-size:12px;font-weight:600;padding:3px 11px;border-radius:20px}
.tag.green{background:var(--green-soft);color:var(--green)}
.tag.blue{background:#DBEAFE;color:var(--blue)}
.tag.amber{background:var(--amber-soft);color:var(--amber)}
.tag.red{background:var(--red-soft);color:var(--red)}
.tag.gray{background:#F3F4F6;color:var(--muted)}
.tg{width:42px;height:24px;border-radius:20px;background:#cbd5e1;position:relative;border:none}
.tg.on{background:var(--teal)}
.tg::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;left:3px;transition:.2s}
.tg.on::after{left:21px}
.legend{display:flex;gap:18px;margin-bottom:16px;font-size:13px;color:var(--muted);align-items:center}
.legend i{width:14px;height:14px;border-radius:4px;display:inline-block;margin-right:6px;vertical-align:-2px}
.aisle h4{font-size:13px;color:var(--muted);margin:16px 0 8px;text-transform:uppercase;letter-spacing:.5px}
.bins{display:grid;grid-template-columns:repeat(10,1fr);gap:7px}
.bin{aspect-ratio:1;border-radius:8px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;background:#fff;color:var(--ink)}
.bin.occ{background:var(--teal-light);border-color:#9bd6cc;color:var(--teal-dark)}
.bin.blk{background:var(--red-soft);border-color:#fca5a5;color:var(--red)}
.bin:hover{transform:scale(1.08)}
.formgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.fg label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px;text-transform:uppercase}
.fg input{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font-size:14px}
.full{grid-column:1/-1}

/* login mode tabs + PIN pad */
.logintabs{display:flex;gap:6px;background:#f1f3f5;border-radius:10px;padding:4px;margin-bottom:8px}
.logintabs button{flex:1;background:none;border:none;padding:9px;border-radius:7px;font-weight:600;font-size:13px;color:var(--muted)}
.logintabs button.active{background:#fff;color:var(--teal);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.pindisplay{text-align:center;font-size:34px;letter-spacing:10px;margin:18px 0;color:var(--ink);min-height:42px}
.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pinpad button{padding:18px 0;font-size:20px;font-weight:600;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);margin:0}
.pinpad button:active{background:var(--teal-light)}
.pinpad button.clr{color:var(--red);background:var(--red-soft);border-color:#fca5a5}
.pinpad button.ok{color:#fff;background:var(--teal);border-color:var(--teal)}

/* role badge in topbar */
.rolebadge{background:#1c252f;color:#9fe7db;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.whbadge{background:#0f766e;color:#ecfeff;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.4px}
.whswitch select{background:#1c252f;color:#ecfeff;border:1px solid #334155;border-radius:7px;padding:5px 8px;font-size:12px;font-weight:600}
.whpick{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.whpick button{width:100%}

/* driver delivery cards */
.dlv-step{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:14px}
.dlv-step .num{width:26px;height:26px;border-radius:50%;background:var(--line);color:var(--muted);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}
.dlv-step.done .num{background:var(--green);color:#fff}
.dlv-step.active .num{background:var(--teal);color:#fff}
.dlv-status{display:inline-block;font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}
.dlv-status.READY{background:#F3F4F6;color:var(--muted)}
.dlv-status.LOADED{background:var(--amber-soft);color:var(--amber)}
.dlv-status.IN_DELIVERY{background:#DBEAFE;color:var(--blue)}
.dlv-status.DELIVERED{background:var(--green-soft);color:var(--green)}
.dlv-status.FAILED{background:var(--red-soft);color:var(--red)}
/* Driver's item list — one row per line the WMS actually picked.
   Laid out for the MC62 (480px wide): the SKU and name take what is left, the
   confirm buttons keep a fixed, thumb-sized column on the right. */
.dlv-line{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.dlv-line:last-child{border-bottom:none}
.dlv-line-main{flex:1;min-width:0}
.dlv-line-sku{font-weight:700;font-size:15px}
.dlv-line-name{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dlv-line-qty{display:flex;flex-direction:column;gap:5px;align-items:stretch;width:112px;flex-shrink:0}
.dlv-line-btn{margin:0;padding:9px 6px;font-size:14px;width:100%}
.dlv-line-conf{text-align:center;font-weight:700;font-size:16px;color:var(--green)}
.dlv-line.done .dlv-line-sku{color:var(--muted)}
/* A short line is the whole reason we ask the driver to count. Make it loud. */
.dlv-line.short .dlv-line-conf{color:var(--red)}
.dlv-short{font-weight:400;font-size:12px;color:var(--muted)}

.sigpad{width:100%;height:170px;border:2px dashed var(--line);border-radius:12px;background:#fff;touch-action:none}
.podthumb{width:70px;height:70px;border-radius:10px;object-fit:cover;border:1px solid var(--line)}
.camwrap{position:relative;border-radius:12px;overflow:hidden;background:#000}
.camwrap video{width:100%;display:block}
.podcheck{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin:8px 0}
.podcheck .dot2{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:11px}
.podcheck.done .dot2{background:var(--green);border-color:var(--green);color:#fff}

/* ============================================================
   HANDHELD / PHONE LAYOUT  (Chainway MC62 — 480×800)
   On the device the worker app fills the whole screen: no desktop top bar,
   no simulated phone frame, no fake status bar, no fake on-screen nav bar.
   Spacing is tightened so more list rows / tiles fit on the low-res screen.
   The desktop demo layout is untouched on wide screens.
============================================================ */
@media (max-width: 820px) {
  body { background: var(--bg); }

  /* hide all desktop / mockup chrome when the worker app is the active surface */
  body.surface-app .topbar,
  body.surface-app .statusbar,
  body.surface-app .navbar { display: none; }

  /* worker app fills the viewport edge-to-edge */
  body.surface-app .stage {
    padding: 0;
    min-height: 100vh;
    display: block;
  }
  body.surface-app .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;            /* dynamic viewport on modern Android Chrome */
    background: var(--bg);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  body.surface-app .screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  /* compact sticky header; respect the system status bar via safe-area inset */
  body.surface-app .apphead {
    position: sticky; top: 0; z-index: 10;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 10px;
  }
  body.surface-app .apphead .title { font-size: 17px; }
  body.surface-app .apphead .avatar { width: 28px; height: 28px; }
  body.surface-app .apphead .back { font-size: 20px; }

  /* scrollable body, tight padding so content uses the full width/height */
  body.surface-app .appbody {
    -webkit-overflow-scrolling: touch;
    padding: 8px;
  }

  /* HOME tiles: shorter cards so all of them fit with little/no scroll */
  body.surface-app .tile-grid { gap: 8px; }
  body.surface-app .tile {
    aspect-ratio: auto;
    min-height: 86px;
    padding: 10px 6px;
    gap: 6px;
    font-size: 14px;
    border-radius: 12px;
  }
  body.surface-app .tile .ic { font-size: 28px; }

  /* ORDER / DELIVERY list cards: compact, edge-to-edge, more rows visible */
  body.surface-app .ocard {
    padding: 10px 12px;
    margin: 0 0 8px;
    border-radius: 11px;
  }
  body.surface-app .ocard h4 { font-size: 15px; margin-bottom: 4px; }
  body.surface-app .counter { padding: 4px 2px 8px; }
  body.surface-app .search { margin: 8px 0; padding: 10px 12px; }

  /* tabs, banners, panels, buttons: trimmed vertical rhythm */
  body.surface-app .tabs button { padding: 11px 0; font-size: 14px; }
  body.surface-app .banner { padding: 10px 12px; font-size: 15px; margin-bottom: 8px; border-radius: 11px; }
  body.surface-app .panel { padding: 12px; margin-bottom: 8px; border-radius: 12px; }
  body.surface-app .btn-primary { padding: 13px; font-size: 15px; border-radius: 11px; }
  body.surface-app .btn-ghost { padding: 11px; margin-top: 8px; }

  /* quantity stepper: keep large touch targets but tighten margins */
  body.surface-app .stepper { gap: 10px; margin: 12px 0 4px; }
  body.surface-app .stepbtn { width: 54px; height: 54px; font-size: 24px; }
  body.surface-app .stepval { width: 92px; height: 54px; font-size: 22px; }

  /* login card fills small screens nicely */
  .login { width: 100%; max-width: 420px; margin-top: 20px; border-radius: 14px; padding: 26px; }

  /* admin panel stays usable (scrollable) if a supervisor logs in on the PDA */
  body.surface-admin .topbar { position: sticky; top: 0; }
  body.surface-admin .stage { padding: 10px; }
  .admin { flex-direction: column; height: auto; min-height: 0; }
  .side { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .side .navlbl { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .bins { grid-template-columns: repeat(6, 1fr); }
}




/* admin-fullscreen-v5 */
#adminView { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
#adminView .admin {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1 !important;
}
/* Belt-and-braces: .stage itself must never grow past the viewport just
   because a wide descendant (e.g. the Locations rack elevation) exists deep
   inside it. justify-content:center on an overflowing flex child pushes it
   off both edges equally, which is what silently hid the sidebar before. */
.stage { min-width: 0; }
/* Remove the dark gap around the admin panel */
.stage { background: var(--bg); }
#adminView { background: var(--bg); }

/* Make the Locations rack-elevation horizontal scroll obvious and comfortable
   to use with a mouse, since it's now the ONLY place that scrolls sideways. */
.wmap .elev-wrap { scrollbar-width: thin; }
.wmap .elev-wrap::-webkit-scrollbar { height: 10px; }
.wmap .elev-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.wmap .elev-wrap::-webkit-scrollbar-thumb:hover { background: #c7ccd2; }

/* ---- manual ERP sync bar (picking / receiving) --------------------------
   Sits above the list it refreshes: the age text is the reason to press the
   button, so they belong on one line. Deliberately quiet — this is a fallback
   for the 10-minute scheduled sync, not a primary action, and it must never
   compete with the order cards for a picker's attention. */
.syncbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;margin-bottom:10px;background:#fff;border:1px solid var(--line);border-radius:11px}
.syncage{font-size:13px;color:var(--muted);font-weight:500}
.syncbtn{flex:0 0 auto;background:var(--teal-light);color:var(--teal-dark);border:none;border-radius:9px;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer;min-height:38px}
.syncbtn:active{transform:scale(.97)}
.syncbtn:disabled{opacity:.65;cursor:default}
.syncbtn .spin{display:inline-block;animation:syncspin 1s linear infinite}
@keyframes syncspin{to{transform:rotate(360deg)}}
