/* The leader workspace owns its breakpoints; shared admin styles must not alter its navigation. */
.workspace{align-items:start}.sidebar{overflow-y:auto;overflow-x:hidden}.content-shell{box-sizing:border-box}.panel,.panel-head,.topbar>div,.metric,.table-wrap{min-width:0}.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.metric strong{overflow-wrap:anywhere}.nav-btn,.secondary,.primary{touch-action:manipulation}.order-toolbar h2{white-space:normal}.order-customer{overflow-wrap:anywhere}.order-customer>.table-wrap .data-table{min-width:600px}.topbar h1{white-space:normal}.side-nav{min-width:0}.group-item p{overflow-wrap:anywhere}
.mobile-leader-nav,.mobile-menu-backdrop{display:none}
@media(min-width:1100px){.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.content-shell{padding:32px clamp(24px,3vw,52px)}.order-toolbar{grid-template-columns:auto minmax(180px,1fr) minmax(200px,270px)}.table-wrap{scrollbar-gutter:stable}.sidebar{height:100dvh}.leader-tasks{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:721px) and (max-width:1099px){.workspace{display:grid;grid-template-columns:190px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;width:190px;display:flex;flex-direction:column;align-items:stretch}.side-nav{display:flex;flex-direction:column}.side-brand{display:flex}.content-shell{padding:20px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-toolbar{grid-template-columns:1fr 1fr}.order-toolbar h2{grid-column:1/-1}}
@media(max-width:720px){
 .workspace{display:block}.sidebar{position:static;display:flex;flex-direction:column;align-items:stretch;width:100%;height:auto;padding:12px;overflow:visible}.side-brand{display:flex;padding:0 4px 12px}.side-brand .brand-mark{width:36px;height:36px;font-size:20px}.side-brand strong{font-size:16px}.side-brand small{font-size:12px}
 .side-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;margin:0;gap:6px}.side-nav .nav-btn{min-width:0;min-height:48px;height:auto;padding:8px 3px;align-items:center;white-space:normal}.side-nav .nav-btn span{font-size:13px;line-height:1.4;text-align:center}.side-nav .nav-btn small{display:none}.side-bottom{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}.side-bottom>*{flex:1}.side-bottom button{min-height:44px;padding:8px;font-size:12px}
 .content-shell{padding:18px 12px calc(24px + env(safe-area-inset-bottom));width:100%}.topbar{display:flex;flex-wrap:wrap;gap:10px}.topbar>div:first-child{flex:1 1 210px}.topbar h1{font-size:25px}.topbar .eyebrow{display:none}.topbar #subtitle{font-size:12px}.top-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}.top-actions #refresh{min-height:44px;white-space:nowrap}.workspace-view-hint{font-size:13px;margin-bottom:16px}
 .panel{padding:14px}.panel-head{gap:12px}.panel-head h2{font-size:19px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{padding:12px}.metric strong{font-size:22px;line-height:1.35}.metric span{font-size:12px}.leader-tasks{grid-template-columns:1fr}.group-grid,.settings-grid,.panel-grid{grid-template-columns:1fr}.order-toolbar{display:grid;grid-template-columns:1fr}.order-toolbar h2{grid-column:auto}.order-toolbar input,.order-toolbar select,.directory-tools input{width:100%;font-size:16px;min-height:46px}.order-search{min-width:0}.order-download-actions{display:grid;grid-template-columns:1fr;width:100%}.order-download-actions button{min-height:46px;white-space:normal}.order-community{gap:8px}.order-community>strong{width:100%}.order-community button{min-height:44px;font-size:13px;padding:8px 12px}.calculation-help{margin:12px 0}
 .order-customer>summary{font-size:16px;padding:14px;line-height:1.7}.order-customer>summary span{font-size:12px;margin-right:0}.order-customer>summary b{display:block;margin-top:4px}.customer-code-editor label{flex-wrap:wrap}.customer-code-editor input{font-size:16px}.code-settings>summary{min-height:44px;display:list-item;line-height:28px}
 .order-customer>.table-wrap{overflow:visible}.order-customer>.table-wrap .data-table{min-width:0;width:100%}.order-customer .data-table thead{display:none}.order-customer .data-table tbody{display:grid;gap:8px;padding:10px}.order-customer .data-table tr{display:grid;grid-template-columns:1fr 1fr;background:#f7faf7;border-radius:8px;padding:8px}.order-customer .data-table td{padding:6px;border:0;font-size:14px;white-space:normal}.order-customer .data-table td:first-child{grid-column:1/-1;font-weight:700}.order-customer .data-table td:nth-child(2)::before{content:'数量：';color:#52665b}.order-customer .data-table td:nth-child(3)::before{content:'单价：';color:#52665b}.order-customer .data-table td:nth-child(4)::before{content:'金额：';color:#52665b}.order-customer .data-table td:nth-child(5){grid-column:1/-1;font-size:12px;color:#52665b}.order-customer .data-table td:nth-child(5)::before{content:'来源群：'}
 .customer-directory .data-table{min-width:0}.customer-directory .data-table thead{display:none}.customer-directory .data-table tbody{display:grid;gap:10px}.customer-directory .data-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d6e2d9;border-radius:10px;padding:8px}.customer-directory .data-table td{padding:7px;white-space:normal;border:0}.customer-directory .data-table td:nth-child(n+4){display:block}.customer-directory .data-table td:nth-child(4)::before{content:'商品：'}.customer-directory .data-table td:nth-child(5)::before{content:'数量：'}.customer-directory .data-table td:nth-child(6)::before{content:'金额：'}
 #pickupCodeDialog{box-sizing:border-box;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}#pickupCodeDialog textarea{font-size:16px;height:40dvh}.pickup-actions>button{flex:1;min-height:46px}.order-matrix td,.order-matrix th{padding:10px;font-size:13px}
 .content-shell{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.sidebar{position:fixed;z-index:70;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));left:12px;width:auto;max-height:min(72dvh,620px);padding:16px;border:1px solid #315d4e;border-radius:24px;background:#123f32;box-shadow:0 18px 48px rgba(9,41,31,.32);overflow-y:auto;visibility:hidden;opacity:0;transform:translateY(24px);transition:opacity .18s ease,transform .18s ease,visibility .18s}.mobile-menu-open .sidebar{visibility:visible;opacity:1;transform:translateY(0)}.sidebar .side-brand{display:flex}.sidebar .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar .side-nav .nav-btn{min-height:54px}.sidebar .side-nav .nav-btn small{display:block;font-size:10px}.mobile-menu-backdrop{position:fixed;z-index:65;inset:0;display:block;border:0;background:rgba(8,27,21,.42);visibility:hidden;opacity:0;transition:opacity .18s ease,visibility .18s}.mobile-menu-open .mobile-menu-backdrop{visibility:visible;opacity:1}.mobile-leader-nav{position:fixed;z-index:80;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(4,1fr);min-height:64px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #dce7e0;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(25,72,53,.08);backdrop-filter:blur(12px)}.mobile-leader-nav button{min-height:48px;padding:4px;border:0;border-radius:14px;color:#74847c;background:transparent;font-size:13px;font-weight:800}.mobile-leader-nav button.active{color:#14734f;background:#edf7f1}.mobile-leader-nav button.active::after{content:'';display:block;width:18px;height:3px;margin:4px auto 0;border-radius:999px;background:#e7bd4f}body.mobile-menu-open{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
