/* ===== Mobile (≤760px): compact, app-like. Placed last so it overrides desktop rules ===== */
.mc-top{display:flex;align-items:center;gap:8px}
.mc-top .oid{font-size:14px}
.mc-top .age{font-size:12px;height:22px}
.mc-amt{margin-left:auto;font-size:15px;font-weight:600}
.mc-name{display:flex;align-items:center;gap:6px;margin-top:6px;min-width:0}
.mc-name .nm{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-meta{margin-top:2px;white-space:nowrap;overflow:hidden}
.mc-bot{display:flex;align-items:center;flex-wrap:wrap;gap:8px 6px;margin-top:10px}   /* long statuses push Call + Confirm onto their own line instead of off the card */
.mc-acts{display:flex;align-items:center;gap:6px;margin-left:auto;flex:none}   /* Call + Confirm wrap together, right-aligned */
.mc-bot .grow{flex:1}
.mc-bot .btn.xs{height:30px;padding:0 14px;font-size:12px}
.mc-bot .icon-btn.xs{width:30px;height:30px}
.mc-courier{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.mc-courier .courier-logo{width:18px;height:18px;font-size:9px;border-radius:5px}
@media (max-width:760px){
  .app,.app.collapsed{padding:0;gap:0;grid-template-rows:56px minmax(0,1fr)}
  .topbar{padding:0 12px;gap:8px}
  .logo{width:32px;height:32px;border-radius:10px}
  .store-switch .h2{font-size:15px;line-height:20px}
  .top-right{gap:6px}
  .top-right .seg{display:none}                       /* language switch moves to More */
  .top-right .icon-btn{width:36px;height:36px}
  .main{border-radius:20px 20px 0 0;padding-bottom:80px;background-image:none}
  .page{padding:16px 14px}
  .page.orders-page{height:auto;display:block}
  .display{font-size:24px;line-height:30px}
  .page-head{flex-wrap:nowrap;align-items:center;margin-bottom:12px;gap:8px}
  .page-head .caption{font-size:12px;margin-top:2px!important}
  .ordsub{display:none}
  .orders-page .page-head .actions{display:none}      /* Orders only: New order is in the tab bar; Export in More. Other pages keep their header buttons (fixed 2026-10-30) */
  .page-head .actions{flex:none;width:auto;margin-left:auto}
  .tabs{gap:6px;margin-bottom:10px;padding-bottom:2px}
  .tab{height:32px;padding:0 12px;font-size:12px;gap:6px}
  .tab .n{font-size:11px}
  .toolbar{flex-wrap:nowrap;gap:6px;margin-bottom:12px}
  .toolbar .search{height:40px;padding:0 12px;max-width:none;flex:1;min-width:0}
  .toolbar .search kbd{display:none}
  .toolbar>.btn.chip{width:40px;height:40px;padding:0;flex:none;position:relative;margin-left:0!important}   /* direct children only: not the buttons inside the date popover */
  .toolbar>.btn.chip .bt,.toolbar>.btn.chip .i.s14{display:none}
  .toolbar>.btn.chip .dot-badge{position:absolute!important;top:-3px;right:-3px}
  .hidden-chip{display:none}
  .fchips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:-4px -14px 12px;padding:0 14px}
  .orders-page .tbl-card{display:none}
  .orders-page .m-list{display:flex;gap:8px}
  .m-card{padding:12px 14px;border-radius:16px;background:var(--bg-sidebar)}
  .m-card.open{box-shadow:inset 3px 0 0 var(--brand-orange)}
  .mtab{display:flex!important;left:0;right:0;bottom:0;height:64px;border-radius:0;padding:0 4px env(safe-area-inset-bottom);
    background:var(--bg-sidebar);box-shadow:0 -1px 0 var(--border),0 -8px 24px rgba(19,6,0,.06);justify-content:space-around}
  .mtab button{flex:1;width:auto;height:100%;border-radius:0;background:none!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:500;color:var(--text-muted)}
  .mtab button .i{width:22px;height:22px}
  .mtab button.on{color:var(--brand-orange-ui)}
  .mtab .mt-new .circle{width:46px;height:46px;border-radius:15px;background:var(--brand-orange-ui);color:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(240,84,9,.35)}
  .mtab .mt-new.on{color:#fff}
  .bulkbar{bottom:76px}
  .no-page .page-head .actions{display:flex}

  /* App bar: one seamless surface with the page (no sand strip, no floating white circles) */
  .app,.app.collapsed{background:var(--bg-panel)}
  .topbar{background:var(--bg-panel);border-bottom:1px solid var(--border);padding:0 8px 0 14px}
  .brand{gap:10px}
  .logo{width:30px;height:30px;border-radius:9px}
  .store-switch .h2{font-size:15px;font-weight:600}
  #themeBtn{display:none}                              /* theme lives in More on phones */
  .top-right .icon-btn{background:none;width:40px;height:40px}
  .top-right .icon-btn .dot-badge{top:6px;right:6px}
  .topbar .avatar{display:grid!important;width:32px;height:32px;font-size:12px;margin-left:2px}
  .main{border-radius:0}

  /* New order on phones: compact header, swipeable source chips, fixed total + create bar, no tab bar */
  body[data-view="new"] .mtab{display:none!important}
  body[data-view="new"] .main{padding-bottom:84px}
  .no-page .page-head{align-items:center;margin-bottom:14px}
  .no-page .page-head>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
  .back-link{width:36px;height:36px;border-radius:999px;background:var(--bg-chip);justify-content:center;margin:0!important;color:var(--text-primary)!important;flex:none}
  .back-link .bt,.no-sub,.last-created{display:none!important}
  .no-page .display{font-size:20px;line-height:26px}
  .no-page .page-head .actions{display:flex;margin-left:auto;width:auto}
  .no-page .page-head .actions .btn{display:inline-flex;height:36px;padding:0 12px;font-size:13px;color:var(--negative)}
  .no-main{gap:10px}
  .no-page .op-card{padding:14px;border-radius:18px}
  .src-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px}
  .src-pills::-webkit-scrollbar{display:none}
  .src-pill{height:36px;padding:0 14px;font-size:12px;flex:none;border-radius:999px}
  .no-page .grid2{gap:12px}
  .no-actions .btn.primary,.no-actions .caption{display:none}
  .no-mbar{display:flex;align-items:center;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:16;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--bg-sidebar);box-shadow:0 -1px 0 var(--border),0 -8px 24px rgba(19,6,0,.06)}
  .no-mbar .sum{flex:1;min-width:0;line-height:1.15}
  .no-mbar .sum span{display:block;font-size:11px;color:var(--text-secondary)}
  .no-mbar .sum b{font-size:18px;line-height:24px;font-weight:600}
  .no-mbar .btn.chip{width:44px;height:44px;padding:0;border-radius:12px}
  .no-mbar .btn.primary{height:44px;padding:0 16px}
  .no-mbar .btn:disabled{opacity:.45}

  /* Order panel = bottom sheet on phones (not a new page): slides up, list stays dimmed behind */
  .opanel{top:auto;left:0;right:0;bottom:0;width:100%;max-width:100%;height:92vh;height:92dvh;border-radius:24px 24px 0 0;
    transform:translateY(100%);box-shadow:0 -12px 40px rgba(19,6,0,.22);transition:transform .32s cubic-bezier(.2,.8,.2,1)}
  .opanel.show{transform:translateY(var(--drag,0px))}
  .opanel.dragging{transition:none}
  .scrim.light{background:rgba(19,6,0,.38)}
  .op-head .grab{display:block;width:40px;height:4px;border-radius:9px;background:color-mix(in srgb,var(--text-muted) 60%,transparent);margin:-6px auto 2px}
  .op-head{padding:12px 16px 14px;gap:12px;touch-action:none}
  .op-top{gap:8px}
  .op-id{font-size:16px}
  .op-top .badge.lg{height:24px;font-size:12px;padding:0 10px}
  .op-top .meta{font-size:12px}
  .op-top .right [data-open]{display:none}             /* prev/next: swipe down instead */
  .op-top .right .icon-btn{width:32px;height:32px}
  .op-who{gap:10px}
  .op-who .avatar{width:40px;height:40px;font-size:14px}
  .op-who .nm{font-size:16px;line-height:22px}
  .op-who .ph{white-space:nowrap;font-size:12px;gap:6px;margin-top:2px}
  .op-who .ph .badge{height:22px;font-size:11px;padding:0 8px}
  .op-who .acts .icon-btn,.op-who .acts .call-btn:not(.live){width:40px;height:40px;padding:0;border-radius:999px}
  .op-who .acts .call-btn:not(.live) .ctext{display:none}
  .op-addr{padding:10px 12px;border-radius:12px}
  .op-addr .txt{font-size:12px}
  .op-body{padding:12px;gap:10px}
  .op-card{padding:14px;border-radius:18px}
  .op-card-h{margin-bottom:12px}
  .op-card-h .tt{font-size:14px}
  .op-card-h .link{font-size:12px}
  .strip>div{padding:0 10px}
  .strip b{font-size:17px;line-height:22px}
  .strip span{font-size:11px}
  .outcomes button{height:38px;font-size:12px}
  .line{gap:10px;padding:10px 0}
  .line .thumb{width:38px!important;height:38px!important}
  .op-foot{padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:8px}
  .op-foot .sum b{font-size:18px;line-height:22px}
  .op-foot .btn.primary{height:44px;padding:0 18px}
}
.grab{display:none}
