body.yumao-v2 { --v2-rail:194px; --v2-bar:62px; --v2-foot:calc(60px + env(safe-area-inset-bottom,0px)); }
body.yumao-v2 #app {
  display:grid;grid-template-columns:var(--v2-rail) minmax(0,1fr);
  grid-template-rows:auto 1fr;min-height:100dvh;max-width:none;
}
body.yumao-v2 #topbar {
  grid-column:1/-1;position:sticky;top:0;min-height:var(--v2-bar);
  padding:6px 20px;flex-wrap:nowrap;gap:10px;background:#fbf6ee;
}
body.yumao-v2 #v5-brand { margin-inline-end:auto; }
body.yumao-v2 #nav {
  grid-row:2;grid-column:1;align-self:start;position:sticky;top:var(--v2-bar);
  flex-flow:column nowrap;align-items:stretch;justify-content:start;
  min-height:calc(100dvh - var(--v2-bar));max-height:calc(100dvh - var(--v2-bar));
  overflow:auto;margin:0;padding:12px 9px;width:100%;min-width:0;
  border:0;border-inline-end:1px solid #dfd0c4;border-radius:0;background:#fbf6ec;
}
body.yumao-v2 #nav .nav-item { display:flex;align-items:center;gap:8px;justify-content:start;flex:0 0 auto;min-height:44px;padding:6px 10px;border:0;border-radius:8px;text-decoration:none; }
body.yumao-v2 #nav .nav-item[aria-current=page] { background:#ecd9d9;color:#5f3448;box-shadow:none;font-weight:750; }
body.yumao-v2 #nav .nav-item::after { display:none; }
.yumao-v2 .workspace-icon { display:inline-flex;flex:none;align-items:center;justify-content:center; }
.yumao-v2 .workspace-icon svg { width:20px;height:20px; }
body.yumao-v2 #view { grid-row:2;grid-column:2;width:100%;min-width:0;padding:10px clamp(12px,2vw,28px) 32px; }
.v2-head-inbox:not([hidden]) { display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:6px 11px;border:1px solid #d9aeb7;border-radius:8px;background:#f3e0e0;color:#693b50;font-weight:650;white-space:nowrap;text-decoration:none; }
.yumao-v2 .v2-head-inbox .wf-unread-number { margin:0; }
.yumao-v2 #nav .wf-unread-number { margin:0; }
body.yumao-v2 .rb-shop-row strong { display:flex;align-items:center;gap:6px; }
.yumao-v2 .rb-shop-dot { width:9px;height:9px;flex:none;border-radius:50%;background:var(--shop-color); }
.yumao-v2 .rb-shop-rail i:not(.rb-negative) { background:var(--shop-color); }
.yumao-v2 .v2-record-count { display:block;font-size:1.3em;font-weight:750;line-height:1.18; }
body.yumao-v2 .v7-main-tabs [data-record-choice],body.yumao-v2 .record-task-grid [data-record-choice] { min-height:65px;height:auto;white-space:normal;border:1px solid var(--record-edge);border-radius:11px;background:var(--record-wash);color:var(--record-ink); }
.yumao-v2 [data-record-choice=open],.yumao-v2 [data-record-choice=to_collect] { --record-wash:#f2e4e0;--record-edge:#e3c8c3;--record-ink:#71394f; }
.yumao-v2 [data-record-choice=closed] { --record-wash:#e7ede3;--record-edge:#cad6c6;--record-ink:#355745; }
.yumao-v2 [data-record-choice=all] { --record-wash:#ece6eb;--record-edge:#d8cbd8;--record-ink:#5c4568; }
.yumao-v2 [data-record-choice=to_prepare] { --record-wash:#f2e8d9;--record-edge:#e1cfb3;--record-ink:#6c4927; }
.yumao-v2 [data-record-choice=to_dispatch] { --record-wash:#e5ecec;--record-edge:#c7d5d7;--record-ink:#36585d; }
body.yumao-v2 .record-categories :is(.v7-main-tabs,.record-task-grid) [aria-pressed=true] { outline:2px solid var(--record-ink);outline-offset:-2px; }
.wf-ticket-latest { padding:.65rem;background:#f3e0e0;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere; }
.wf-review-return { margin:.7rem 0;padding:.8rem;border:1px solid #d9aeb7;border-radius:10px;background:#f3e0e0;color:#693b50; }
.wf-review-return p { margin:.25rem 0;white-space:pre-wrap; }
@media(prefers-reduced-motion:no-preference) {
 .yumao-v2 #nav [aria-current=page] .workspace-icon { animation:yumao-nav-select 230ms ease-out both; }
 @keyframes yumao-nav-select { 0%{transform:scale(.94)} 55%{transform:scale(1.04)} 100%{transform:scale(1)} }
}
@media(max-width:640px){
 body.yumao-v2 { --v2-bar:56px; }
 body.yumao-v2 #app { display:block; }
 body.yumao-v2 #topbar { gap:6px;padding:5px 9px; }
 body.yumao-v2 #v5-order-search { display:none !important; }
 body.yumao-v2 #v5-brand { gap:5px;font-size:clamp(12px,3.8vw,16px); }
 body.yumao-v2 #topbar .brand-logo { height:29px; }
 .v2-head-inbox:not([hidden]) { min-height:44px;font-size:13px;padding:4px 6px; }
 body.yumao-v2 #nav {
  position:fixed;inset:auto 0 0;z-index:58;min-height:0;max-height:none;flex-flow:row nowrap;
  align-items:stretch;gap:3px;padding:4px 5px max(5px,env(safe-area-inset-bottom,0px));overflow:visible;
  border:0;border-top:1px solid #dfd0c4;box-shadow:0 -5px 14px #6641350a;
 }
 body.yumao-v2 #nav .nav-item { flex:1 1 0;min-width:0;min-height:48px;padding:4px 2px;gap:2px;flex-direction:column;align-items:center;justify-content:center;font-size:12px;white-space:nowrap; }
 body.yumao-v2 #view { padding:7px 10px calc(var(--v2-foot) + 20px); }
 body.yumao-v2 .sales-sticky { bottom:var(--v2-foot); }
 html:has(body.yumao-v2) { scroll-padding-bottom:var(--v2-foot,65px); }
}
