@charset "UTF-8";
@layer legacy {
/* staff64.css */
:root{--paper:#F5F2EE;--ink:#33302E;--muted:#766F6B;--rose:#C24B78;--green:#2F8F66;--orange:#D98A16;--red:#CF4444;--blue:#3E7CB1;--border:#e6ded9;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,.button{border:1px solid var(--border);background:white;color:var(--ink);border-radius:10px;padding:11px 15px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px}button:hover,.button:hover{border-color:var(--rose)}button:disabled{opacity:.55;cursor:wait}button.primary,.button.primary{background:var(--rose);border-color:var(--rose);color:#fff}button.danger{color:var(--red)}a{color:var(--blue)}input,select,textarea{width:100%;min-height:44px;border:1px solid #d9cec8;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);max-width:100%}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #c24b783b;outline-offset:2px}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--rose);flex:0 0 auto}label{display:grid;gap:7px;font-weight:600}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:700;margin:0 0 10px}h1{font-size:24px;line-height:1.4;margin:0 0 10px}h2{font-size:18px;margin:0 0 12px}h3{font-size:15px;margin:0 0 8px}p{line-height:1.65;margin:8px 0}small,.muted{color:var(--muted);line-height:1.6}small{display:block}.brand{font-size:15px;letter-spacing:.08em;font-weight:700}.eyebrow{font-size:12px;color:var(--rose);letter-spacing:.12em;font-weight:700;margin-bottom:10px}.topbar{position:sticky;top:0;z-index:5;background:#f5f2eef5;border-bottom:1px solid var(--border);padding:12px max(18px,calc((100% - 1000px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar button{white-space:nowrap;padding:8px 12px}.workspace{max-width:1036px;margin:auto;padding:24px 18px calc(100px + env(safe-area-inset-bottom))}.auth{max-width:440px;margin:8vh auto;padding:28px 24px}.auth-brand{padding:0 0 24px}.auth .card{padding:24px}.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}.form-stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.span-all{grid-column:1/-1}.error{color:var(--red);white-space:pre-line;line-height:1.6;margin:0}.error:empty{display:none}.notice{padding:12px 14px;background:#edf5fb;border:1px solid #d4e4f3;color:#285f89;border-radius:10px;margin:0 0 16px;line-height:1.6}.warning{background:#fff7e9;border-color:#f0ddb8;color:#8b5c15}.success{background:#edf7f1;border-color:#cfe6d9;color:var(--green)}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.chip{display:inline-block;padding:5px 9px;border-radius:7px;background:#f6edf1;color:#9d345b;font-size:12px}.chip.green{background:#edf7f1;color:var(--green)}.chip.orange{background:#fff7e9;color:#a9670d}.chip.blue{background:#edf5fb;color:var(--blue)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tile{text-align:left;align-items:flex-start;flex-direction:column;padding:18px;background:#fff;border-radius:14px;min-width:0}.tile strong{font-size:16px}.tile small{font-weight:400}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.page-head p{color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.bottom-nav{position:fixed;bottom:0;z-index:6;left:0;right:0;display:flex;justify-content:center;background:#fffffff7;border-top:1px solid var(--border);padding:8px 8px calc(8px + env(safe-area-inset-bottom));gap:4px}.bottom-nav button{background:transparent;border:0;border-radius:9px;flex:1;max-width:150px;padding:10px 5px;color:var(--muted)}.bottom-nav button[aria-current=page]{color:var(--rose);background:#f6edf1;font-weight:700}.empty{text-align:center;padding:28px 16px;color:var(--muted)}.query{display:flex;gap:8px}.query input{flex:1;min-width:0}.query button{white-space:nowrap}.data-list{list-style:none;padding:0;margin:0}.data-list>li{border-top:1px solid var(--border);padding:13px 0}.data-list>li:first-child{border-top:0}.data-list p{margin:4px 0}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.metric-grid div{background:var(--paper);border-radius:9px;padding:10px}.metric-grid strong{display:block;font-size:22px;margin:5px 0}.record{border-top:1px solid var(--border);padding:12px 0}.record .card{margin:10px 0 0}.product-head{display:flex;gap:14px;align-items:center}.product-head img{width:76px;height:76px;border-radius:10px;object-fit:cover;background:var(--paper)}.check-row{display:flex;align-items:center;gap:10px;font-weight:400;padding:10px;background:var(--paper);border-radius:8px}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.permission-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:12px;align-items:center;border-top:1px solid var(--border);padding:10px 0}.permission-row label{font-weight:400}.permission-row small{margin-top:4px}.account-row{display:flex;gap:12px;align-items:center;justify-content:space-between}.account-row>div{min-width:0}.account-row button{flex:0 0 auto}.scopes{display:grid;gap:10px;margin-top:14px}.scopes label{font-weight:400}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}details>summary{cursor:pointer;min-height:40px;padding:10px 0;color:var(--blue)}.list-key{color:var(--muted);display:inline-block;min-width:78px}.permission-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-left:20px;gap:8px}.auth-footer{text-align:center;margin-top:20px}.auth-footer a{font-size:13px}.inline-error{margin-top:12px}.scope-value{word-break:break-all}.loader{padding:20px;text-align:center;color:var(--muted)}@media(max-width:620px){.workspace{padding-top:20px}.auth{margin:3vh auto;padding:20px 16px}.auth .card{padding:20px}.form-grid{grid-template-columns:1fr}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{gap:10px}.tile{padding:15px}.page-head{gap:10px}.page-head h1{font-size:23px}.permission-row{grid-template-columns:minmax(0,1fr) 112px}.permission-list{grid-template-columns:1fr}.card{padding:16px}.topbar{padding:10px 16px}.account-row{align-items:flex-start}.metric-grid div{padding:8px}.metric-grid strong{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Keep desktop previews at phone width, with the same layout on actual phones. */
:root{background:#eae5df}body{width:100%;max-width:430px;min-height:100dvh;margin:0 auto;background:var(--paper);box-shadow:0 0 28px #33302e0a}.workspace{width:100%;max-width:430px;padding:20px 16px calc(100px + env(safe-area-inset-bottom))}.topbar{padding:10px 16px}.topbar>div{flex-shrink:0}.topbar button{white-space:normal;overflow-wrap:anywhere;max-width:65%;text-align:right}.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:430px}.auth{margin:0 auto;padding:28px 16px;max-width:430px}.auth .card,.card{padding:16px}.form-grid{grid-template-columns:1fr}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-list{grid-template-columns:1fr}.permission-row{grid-template-columns:minmax(0,1fr) 112px}.grid{gap:10px}.tile{padding:15px}.page-head{gap:10px}.account-row{align-items:flex-start}.metric-grid div{padding:8px}.metric-grid strong{font-size:20px}.product-head>div{min-width:0}.product-head img{width:64px;height:64px;flex-shrink:0;object-fit:contain}.record h2{font-size:17px;overflow-wrap:anywhere}

/* Department tabs and compact work lists. */
/* Visual67: rose brand, blue service, amber warehouse, violet production, teal field. */
.ui-icon{width:24px;height:24px;flex:0 0 auto;vertical-align:middle}.tone-home{--accent:#b74370;--wash:#faeaf1}.tone-service{--accent:#3977a9;--wash:#eaf3fc}.tone-warehouse{--accent:#a76b19;--wash:#fff2dd}.tone-production{--accent:#8051a0;--wash:#f3ecfb}.tone-field{--accent:#277e6a;--wash:#e7f5ef}
#staff-app{--accent:var(--rose);--wash:#faeaf1}#staff-app[data-department=service]{--accent:#3977a9;--wash:#eaf3fc}#staff-app[data-department=warehouse]{--accent:#a76b19;--wash:#fff2dd}#staff-app[data-department=production]{--accent:#8051a0;--wash:#f3ecfb}#staff-app[data-department=field]{--accent:#277e6a;--wash:#e7f5ef}
.section-tabs{display:flex;gap:6px;overflow-x:auto;position:sticky;top:0;z-index:4;background:var(--paper);padding:10px 0;margin:-8px 0 16px}.section-tabs button{white-space:nowrap;flex:1;padding:9px 10px}.section-tabs [aria-current=page]{background:var(--rose);color:white;border-color:var(--rose)}.topbar{position:relative}.compact-record{padding:0;overflow:hidden}.compact-record>summary{display:block;list-style:none;padding:16px;color:var(--ink);cursor:pointer}.compact-record>summary::-webkit-details-marker{display:none}.compact-record .grow{flex:1;min-width:0}.compact-record h2{margin:0 0 4px}.compact-record p{margin:3px 0;font-size:14px}.compact-record .product-head{gap:12px}.compact-record .expand-hint{display:block;color:var(--blue);font-size:12px;text-align:right;margin-top:6px}.compact-record[open] .expand-hint{font-size:0}.compact-record[open] .expand-hint::after{content:'收起明细';font-size:12px}.record-detail{border-top:1px solid var(--border);margin:0 16px;padding:14px 0}.order-number{color:var(--muted);font-size:13px}.reminder-status:empty{display:none}.reminder-status{background:#edf5fb;color:#285f89;border-radius:8px;padding:10px;font-size:13px}.record-detail .record form{padding-top:10px}.compact-record:focus-within{border-color:var(--rose)}
/* Final component overrides keep the same phone-sized canvas on every screen. */
:root{--border:#ece5e1;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;-webkit-font-smoothing:antialiased}.topbar{background:#fffdfb;border-bottom:0;padding:14px 18px}.topbar .brand{font-size:17px;letter-spacing:.03em}.topbar small{font-size:11px;letter-spacing:.12em}.topbar button{border:0;background:#f5eeed;padding:9px 12px;border-radius:22px;max-width:100px;font-size:12px}.topbar button .ui-icon{width:18px;height:18px}.workspace{padding:14px 16px calc(110px + env(safe-area-inset-bottom))}.bottom-nav{padding:7px 7px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px #4b273b06;border-top:1px solid #f0e9e5}.bottom-nav button{flex-direction:column;gap:4px;min-height:58px;padding:6px 2px;border-radius:14px;font-size:11px}.bottom-nav .ui-icon{width:23px;height:23px}.bottom-nav button[aria-current=page]{background:#f9edf2}.section-tabs{margin:-4px -2px 16px;padding:7px 2px 10px;background:var(--paper);gap:6px}.section-tabs button{border:0;border-radius:12px;font-size:13px;padding:10px 7px;gap:5px;box-shadow:0 2px 6px #33302e03}.section-tabs .ui-icon{width:18px;height:18px}.section-tabs [aria-current=page]{background:var(--accent);border-color:var(--accent);box-shadow:0 4px 10px #33302e0c}.page-head{margin:2px 0 16px}.page-head h1{font-size:24px;letter-spacing:.02em}.page-head .eyebrow{font-size:10px;color:var(--accent);margin-bottom:7px}.page-head p{font-size:12px;margin:6px 0;line-height:1.6}.card{border-radius:18px;box-shadow:0 3px 12px #33202e03}.compact-record>summary{padding:15px}.compact-record h2{font-size:16px}.compact-record .expand-hint{color:var(--accent);margin-top:4px}.compact-record .product-head img{width:68px;height:76px;border-radius:10px;background:#f7f4f2;object-fit:contain}.record-detail .product-head img{width:68px;height:76px}.compact-record p{font-size:13px}.compact-record small{font-size:11px}.record-detail{border-top:1px dashed var(--border)}.notice{font-size:12px;line-height:1.65}.chip{padding:4px 8px;border-radius:6px;font-size:11px}.photo-missing{width:64px;height:72px;border-radius:10px;background:#f2efed;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto;color:#9a8d87;gap:5px}.photo-missing small{font-size:10px}.entry-icon{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#fff,var(--wash));color:var(--accent);display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #ffffffc9,0 4px 8px #33202e05}.entry-icon .ui-icon{width:27px;height:27px}.home-intro{display:flex;align-items:center;justify-content:space-between;min-height:118px;gap:8px;padding:5px 3px 15px}.home-intro h1{font-size:24px;letter-spacing:.02em;margin:0 0 7px}.home-intro p{font-size:12px;margin:0;max-width:240px;overflow-wrap:anywhere}.home-intro .eyebrow{font-size:10px;margin-bottom:9px}.brand-art{width:78px;height:86px;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:26px;background:linear-gradient(145deg,#fce7ef,#ecdfe9);color:#b74370;transform:rotate(5deg)}.brand-art>.ui-icon{width:47px;height:47px}.brand-art>span{position:absolute;right:-5px;bottom:-3px;border:3px solid var(--paper);border-radius:13px;background:#fff0da;color:#a76b19;padding:6px;transform:rotate(-12deg)}.brand-art>span .ui-icon{width:23px;height:23px}.home-search{width:100%;justify-content:flex-start;background:#fff;border:1px solid #ead9df;border-radius:15px;min-height:50px;box-shadow:0 4px 14px #c24b7806;font-size:12px;padding:10px 13px;color:#8c7b80}.home-search>.ui-icon:first-child{color:var(--rose);width:20px}.home-search span{flex:1;text-align:left}.home-search>.ui-icon:last-child{width:15px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:20px 1px 11px}.section-title h2{font-size:17px;margin:0}.section-title h3{margin:0;font-size:14px}.section-title small{font-size:11px}.section-title button{background:transparent;border:0;min-height:36px;padding:5px 0;color:var(--muted);font-size:11px}.section-title .ui-icon{width:15px;height:15px}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:4px;text-align:left;align-items:center;justify-content:stretch;border:1px solid #ffffff;background:linear-gradient(120deg,#fff,var(--wash));border-radius:17px;padding:13px 14px;color:var(--accent);box-shadow:0 3px 10px #33202e03}.overview-card>.ui-icon{grid-column:2;grid-row:1 / span 2;opacity:.8;width:30px;height:30px}.overview-card>span{grid-column:1;grid-row:1;font-size:12px;font-weight:600}.overview-card strong{grid-column:1;grid-row:2;font-size:29px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}.overview-card small{grid-column:1 / -1;font-size:9px;color:#786e6b;white-space:normal}.overview-note{font-size:10px;color:var(--muted);margin:9px 2px 16px;line-height:1.6}.shortcut-panel{padding:16px 10px}.shortcut-panel>h2{font-size:16px;margin:0 6px 15px}.shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));row-gap:17px;column-gap:2px}.shortcut-grid button{border:0;min-width:0;padding:0;flex-direction:column;gap:8px;background:transparent;font-size:11px;white-space:nowrap}.shortcut-grid .entry-icon{width:46px;height:46px;border-radius:15px}.work-group{margin-bottom:17px}.work-group>.section-title{margin:10px 2px 7px}.home-work-row{width:100%;justify-content:flex-start;gap:12px;border-radius:15px;text-align:left;margin-bottom:8px;padding:12px;border-color:#efe8e3;background:#fff;box-shadow:0 3px 9px #33202e03}.home-work-row>img{width:58px;height:66px;object-fit:contain;border-radius:8px;background:#f7f4f1;flex-shrink:0}.home-work-row .photo-missing{width:58px;height:66px}.home-work-row .grow{flex:1;min-width:0;overflow-wrap:anywhere}.home-work-row strong{display:block;font-size:14px;margin-bottom:3px}.home-work-row small{font-size:11px}.home-work-row>.ui-icon{width:15px;height:15px;color:#a89c97}.row-quantity{display:block;font-size:12px;margin-top:4px;color:#665955}.quiet-empty{background:#ffffff90;border:1px dashed #e8dfd9;border-radius:13px;color:#887c77;font-size:12px;display:flex;align-items:center;gap:10px;padding:15px;margin:0}.quiet-empty .ui-icon{width:20px;color:#ac9b94}.catalog-welcome{text-align:center;padding:28px 12px}.catalog-illustration{display:inline-flex;padding:24px;border-radius:32px;background:linear-gradient(145deg,#fceaf2,#efe8f8);color:var(--rose);margin-bottom:18px}.catalog-illustration .ui-icon{width:60px;height:60px}.catalog-welcome h2{font-size:17px}.catalog-welcome p{font-size:12px;color:var(--muted)}.future-feature{display:inline-flex;align-items:center;gap:8px;color:#8c8180;font-size:12px;background:#ece7e3;border-radius:12px;padding:12px 16px;margin-top:12px}.future-feature .ui-icon{width:20px;height:20px}.catalog-product>.product-head{align-items:center;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:14px}.catalog-product>.product-head>img{width:108px;height:124px;object-fit:contain}.catalog-product>.product-head h2{color:var(--rose);font-size:22px}.catalog-product>.product-head p{font-size:13px}.catalog-product .notice{margin-top:15px}.auth-brand{padding:22px 6px}.auth-brand h1{font-size:34px}.auth-brand .eyebrow{font-size:10px}.auth .card{box-shadow:0 10px 35px #be71800a}.auth{background:radial-gradient(ellipse at 100% 0,#f7deea80,transparent 60%)}
@media(max-width:374px){.workspace{padding-left:12px;padding-right:12px}.home-intro h1{font-size:22px}.brand-art{width:64px;height:76px}.section-tabs button{font-size:12px;padding:9px 5px}.shortcut-grid{row-gap:15px}.overview-card{padding:12px}.home-search{font-size:11px}.home-work-row{gap:9px}}
/* Softer mobile navigation and task-level unread signals. */
.bottom-nav{border-radius:22px 22px 0 0;box-shadow:0 -4px 22px #76526308;padding-top:9px}.bottom-nav button{position:relative;background:transparent;gap:7px;isolation:isolate;transition:color .18s ease,transform .15s ease}.bottom-nav button::before{content:'';position:absolute;top:1px;width:46px;height:32px;border-radius:18px;z-index:-1;background:transparent;transition:background .18s ease,transform .18s ease}.bottom-nav button[aria-current=page]::before{background:#f9e5ef}.bottom-nav button[aria-current=page] .ui-icon{stroke-width:2;transform:translateY(-1px)}.bottom-nav button .ui-icon{transition:transform .18s ease;stroke-width:1.8}.bottom-nav button:active,.shortcut-grid button:active,.section-tabs button:active{transform:scale(.95)}.bottom-nav button[aria-current=page]{font-weight:600}.section-tabs button,.shortcut-grid button,.overview-card{position:relative}.unread-badge{position:absolute;top:0;right:3px;min-width:17px;height:17px;line-height:13px;padding:0 4px;border:2px solid white;border-radius:12px;background:#e94d60;color:white;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;pointer-events:none;box-shadow:0 2px 5px #cc33451a}.bottom-nav .unread-badge{right:calc(50% - 27px);top:0}.section-tabs .unread-badge{top:-2px;right:0}.shortcut-grid .unread-badge{right:calc(50% - 28px);top:-4px}.overview-card .unread-badge{top:4px;right:4px;grid-column:auto;grid-row:auto}.task-new{display:inline-block;vertical-align:middle;background:#fff0f2;color:#cc354b;border-radius:6px;font-size:10px;font-weight:600;margin-left:7px;padding:3px 6px}.home-work-row{position:relative}.home-work-row .unread-badge{display:none}@media(prefers-reduced-motion:reduce){.bottom-nav button,.bottom-nav button::before,.bottom-nav button .ui-icon{transition:none}.bottom-nav button:active,.shortcut-grid button:active,.section-tabs button:active{transform:none}}
.photo-search .section-title{margin:0 0 10px}.photo-search h2{display:flex;gap:7px;align-items:center}.photo-actions{display:flex;gap:10px;margin:14px 0}.photo-actions label{flex:1;font-weight:500;position:relative;overflow:hidden}.photo-actions input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;clip:auto}.photo-actions label:focus-within{outline:3px solid #c24b783b}.photo-search .actions{margin:12px 0}.photo-search #search-image{flex:1}#search-preview img{width:96px;height:112px;object-fit:contain;border-radius:12px;background:#f5f2ee}#search-status{font-size:12px;color:var(--blue)}.photo-search>small{font-size:11px}.image-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-candidate{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:10px;gap:5px;border-radius:15px;min-width:0}.image-candidate>img{width:100%;height:154px;object-fit:contain;border-radius:10px;background:#faf7f5}.image-candidate strong{font-size:16px}.image-candidate>span{color:var(--rose);font-weight:600}.image-candidate small{font-size:11px;overflow-wrap:anywhere}.search-result-title{font-size:17px;margin-top:20px}
.photo-search [hidden]{display:none}
/* Shared70 keeps department business queues separate from personal assignments. */
.queue-switch{display:flex;gap:5px;background:#eae5e1;padding:5px;border-radius:14px}.queue-switch button{position:relative;flex:1;border:0;background:transparent;min-height:42px;font-size:13px;color:var(--muted)}.queue-switch [aria-pressed=true]{background:#fff;color:var(--accent);font-weight:700;box-shadow:0 2px 8px #33202e08}.queue-switch .unread-badge{top:2px;right:4px}.queue-hint{font-size:11px;color:var(--muted);margin:9px 3px 14px;line-height:1.65}.queue-filter label{font-size:12px}.queue-filter .query{margin:9px 0 12px}.queue-filter .check-row{background:var(--paper);font-size:12px}.queue-pages{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:18px 0}.queue-pages button{font-size:12px;padding:8px 12px;flex:0 0 auto}.queue-pages small{text-align:center;font-size:11px}.queue-pages button:disabled{cursor:default}.shared-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 4px}.shared-numbers>div{background:var(--wash);border-radius:9px;padding:8px}.shared-numbers small{font-size:10px}.shared-numbers strong{font-size:19px;line-height:1.4;color:var(--accent);font-variant-numeric:tabular-nums;display:block;overflow-wrap:anywhere}.shared-lines,.shared-history,.fixed-files{list-style:none;padding:0;margin:0}.shared-lines>li{padding:16px 0;border-bottom:1px dashed var(--border)}.shared-lines>li:first-child{padding-top:4px}.shared-lines h3{margin:0;font-size:16px}.shared-lines h4{font-size:13px;margin:16px 0 10px}.shared-lines .notice{margin:12px 0}.shared-note{white-space:pre-wrap}.shared-history>li{border-left:2px solid var(--border);margin:12px 0;padding:0 0 3px 12px;overflow-wrap:anywhere}.shared-history strong{font-size:12px}.shared-history small{font-size:11px}.shared-history .is-voided{opacity:.7}.shared-history .is-voided>strong{color:var(--red)}.source-id{overflow-wrap:anywhere;color:#8b817d;margin-top:12px;font-size:10px}.material-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.material-gallery>div{min-width:0;padding:9px;border:1px solid var(--border);border-radius:11px}.material-gallery img{width:100%;height:110px;object-fit:contain;background:var(--paper);border-radius:8px}.material-gallery .photo-missing{margin:auto}.material-gallery strong{font-size:12px;display:block;margin-top:7px}.material-gallery small{font-size:10px}.material-gallery.diagrams img{height:150px}.fixed-file{border:1px solid var(--border);border-radius:10px;padding:10px;margin:8px 0;overflow-wrap:anywhere}.fixed-file strong{font-size:12px;display:block}.fixed-file .actions{gap:6px;margin-top:10px}.fixed-file .button{padding:7px 10px;font-size:11px;min-height:38px}.revision-history{border-top:1px solid var(--border);margin-top:14px}.revision-history>details{border-top:1px dashed var(--border)}.chip.red{background:#fff0f1;color:var(--red)}

/* Footer72: reserve the measured fixed navigation height, including its safe area. */
html{scroll-padding-bottom:var(--staff-footer-space,0px)}
.workspace{padding-bottom:var(--staff-footer-space,calc(110px + env(safe-area-inset-bottom)))}

/* Packing77 uses the existing production palette and fixed-footer spacing. */
.packing-feedback{border-top:1px dashed var(--border);margin-top:18px;padding-top:16px}.packing-feedback h3{font-size:16px;margin:0 0 12px}.packing-feedback fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:12px}.packing-feedback label{display:block;overflow-wrap:anywhere}.packing-feedback label small{display:block;margin:5px 0;color:var(--muted)}.packing-feedback textarea{min-height:86px;resize:vertical}.packing-feedback fieldset:disabled{opacity:.72}.packing-feedback .packing-status{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:var(--accent);margin:12px 0}.packing-feedback>button{width:100%;margin:5px 0}.packing-feedback .packing-removed{margin:12px 0;overflow-wrap:anywhere}.packing-removed ul{padding-left:20px}.packing-feedback .check-row{display:flex;font-size:12px;align-items:flex-start}.packing-removed input{flex:0 0 auto}.packing-detached{overflow-wrap:anywhere}.packing-detached p{white-space:pre-wrap}
/* Production79 uses the existing mobile shell and department palette. */
.production-task h2,.production-line h3{overflow-wrap:anywhere}
.production-task .product-head .grow{min-width:0}
.production-task .next-step,.production-line .next-step{background:#f3edf8;border-radius:12px;padding:12px;color:#634579;line-height:1.6}
.production-line{border-top:1px solid #e8dfd8;padding:16px 0}
.production-batch{border-left:3px solid #b59bca;padding:8px 12px;margin:12px 0;background:#faf7fc;overflow-wrap:anywhere}
.catalog-stock-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.catalog-stock-row small{display:block;color:#837b76;margin:4px 0}
.catalog-stock-row .stock-negative{color:#b42332}
.catalog-product .grow{min-width:0;overflow-wrap:anywhere}

}
/* Reference design: shared components, page compositions, and mobile layouts.
   Legacy rules live in @layer legacy; no specificity arms race or theme choice. */
:root{color-scheme:light;--page:#f6f1e9;--paper:#f6f1e9;--surface:#fff;--ink:#2b2620;--text:#2b2620;--muted:#8a8172;--line:#e8e0d2;--border:#e8e0d2;--brand:#b03a5b;--primary:#b03a5b;--accent:#b03a5b;--rose:#b03a5b;--blue:#3e7cb1;--green:#2e7d32;--red:#c0392b;--orange:#92400e;--nav:#fff;--erp44-brand:#b03a5b;--muse-brand:#b03a5b;--muse-text:#2b2620;--muse-muted:#8a8172;--muse-border:#e8e0d2;--muse-bg:#f6f1e9;--muse-soft:#fdf0f3;font:14px/1.5 "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;background:var(--page);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:inherit;font-variant-numeric:tabular-nums}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{color:var(--ink);font-family:inherit}button span,button strong,button b{font-family:inherit}[data-erp-number34],[data-erp-value]{font-size:inherit;font-weight:inherit;color:inherit}[data-erp-value=money],[data-erp-value=quantity]{color:inherit}[data-erp-value=pending]{color:var(--orange)}[data-erp-value=success]{color:var(--green)}[data-erp-value=danger]{color:var(--red)}h1{font-size:24px;font-weight:800;letter-spacing:0;margin-bottom:6px;line-height:1.35}h2{font-size:16px;font-weight:800;line-height:1.45}h3{font-size:15px;font-weight:700}p{line-height:1.6}small,.muted,.subtle{color:var(--muted);font-size:12px;font-weight:400}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}svg.icon,.navicon svg{width:18px;height:18px}
button,input,select,textarea{font:inherit;max-width:100%}button,.button,.button-link{min-height:36px;padding:7px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--brand);font-size:13px;font-weight:600;box-shadow:none;cursor:pointer;text-decoration:none;transition:background .12s,border-color .12s}button:hover,.button:hover{background:#fdf0f3;border-color:#b03a5b}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.button.primary,.qs73-primary,[data-erp-action="primary"]{background:var(--brand);color:white;border-color:var(--brand)}button.primary:hover,.qs73-primary:hover{background:#93304c;border-color:#93304c}button.danger,.qs73-danger,[data-erp-action="danger"]{color:var(--red);border-color:#e5b8b1;background:#fbeded}button.link,button.plain,.qs73-text-danger,.cw-order-actions>button,.ca-order-summary>button{border:0;background:transparent;padding:4px 7px;min-height:28px;color:var(--brand)}button.link.danger,.qs73-text-danger{color:var(--red)}:focus-visible{outline:2px solid #b03a5b;outline-offset:3px}input,select,textarea{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:7px 10px;min-height:36px;box-shadow:none}input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:2px solid #f0cbd5;outline-offset:1px}input[type=checkbox],input[type=radio]{width:16px;height:16px;min-height:0;accent-color:var(--brand);padding:0}textarea{resize:vertical}label{font-size:12px;font-weight:500;color:#6f665b;gap:5px}label input,label select,label textarea{font-size:14px;font-weight:400}
.shell{display:grid;grid-template-columns:184px minmax(0,1fr);min-height:100vh}.shell>aside,body>.side{width:184px;background:#fff;color:var(--ink);padding:18px 12px;border-right:1px solid var(--line)}.shell>.main{grid-column:2;min-width:0}.brand{color:var(--ink);font-size:18px;padding:0 8px 20px}.brand small,.side-bottom,.aside-bottom{color:var(--muted);font-size:11px}.brandmark,.brand-logo{background:var(--brand);color:#fff}.nav{gap:3px}.nav button{border:0;border-radius:6px;background:transparent;color:var(--ink);padding:8px 10px;text-align:left;font-size:13px;min-height:36px;box-shadow:none}.nav button.active,.nav button[aria-current=page]{background:#fdf0f3;color:var(--brand);box-shadow:inset 3px 0 var(--brand)}.nav button:hover{background:#faf7f3}.nav-label{font-size:11px;color:var(--muted);margin:18px 8px 7px}.topbar{background:white;border-bottom:1px solid var(--line);height:56px;padding:10px 20px;color:var(--muted)}.topbar button{min-height:30px;font-size:12px;padding:4px 9px}.workspace{max-width:none;padding:20px;background:var(--page);margin:auto}.heading,.cw-heading,.pagehead,.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.heading p,.cw-heading p,.pagehead p,.page-head p{color:var(--muted);font-size:12px;margin:4px 0 0}.cw-eyebrow,.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.06em}.actions,.cw-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.card,.s-section,.cw-board89,.pa-panel,.table-wrap,.a1688-store,.cw-profile{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none}.card{padding:18px;margin-bottom:16px}.card-header,.card-title,.cw-board-head89,.pa-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.table-wrap{overflow:auto}.table-wrap table{border:0}table{border-collapse:collapse;width:100%;font-size:13.5px;text-align:left;background:#fff}th{background:#faf8f3;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap;padding:10px 12px;border-bottom:1px solid var(--line)}td{padding:11px 12px;border-bottom:1px solid #eee7dc;vertical-align:middle;line-height:1.5;color:var(--ink)}tbody tr:nth-child(even){background:#fbf8f2}tbody tr:hover{background:#fdf7f8}tbody tr.is-selected89,tbody tr.selected{background:#fdf0f3;box-shadow:inset 3px 0 var(--brand)}td strong{font-weight:700}td small{font-size:11px}.number,.pa-number,.cw-order-amount,.ca-order-summary,.amount,.money{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.product img{width:44px;height:52px;object-fit:contain;border-radius:6px}.pagination,.pa-pager{padding:12px 2px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.pagination button,.pa-pager button{min-height:30px;padding:4px 10px}
.toolbar,.cw-toolbar,.ca-filter,.pa-filter-fields,.a1688-filter,.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 14px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}.toolbar label,.cw-toolbar label,.a1688-filter label,.filters .field{min-width:120px;flex:1}.toolbar .search,.cw-toolbar>label:first-child{flex:2;min-width:200px}.toolbar input,.toolbar select,.cw-toolbar input,.cw-toolbar select{width:100%}.settings-tabs,.cw-tabs,.pa-tabs,.a1688-status,.date-shortcuts{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 14px}.settings-tabs button,.cw-tabs button,.pa-tabs button,.date-shortcuts button{background:transparent;border-color:transparent;color:#6f665b}.settings-tabs button.selected,.cw-tabs button.active,.pa-tabs button.active,.date-shortcuts button.active{background:#fdf0f3;color:var(--brand);border-color:#e6b4c3}
.metrics,.cw-metrics,.pa-metrics,.cost-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:0 0 18px}.metric,.cw-metrics>button,.cw-metrics>div,.pa-metrics>*{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;text-align:left;box-shadow:none;min-height:94px}.metric:first-child{border-top:3px solid var(--brand)}.metric .value,.metric-value,.cw-metrics strong{font-size:26px;font-weight:800;line-height:1.2;display:block;margin:6px 0;color:var(--ink)}.metric-label,.metric-note,.metric>span{font-size:12px;color:var(--muted)}.metric small,.cw-metrics small{font-size:11px;font-weight:400}.badge,.chip,.qs73-badge,.a1688-capability-tag{display:inline-block;border:0;border-radius:999px;padding:2px 8px;font-size:11px;line-height:1.6;background:#eee9e1;color:#6f665b;white-space:nowrap}.badge.green,.chip.green,.success,.ca-paid,.paid-text,.is-settled{color:#2e7d32}.badge.green,.chip.green{background:#e6f4ea}.badge.orange,.chip.orange,.badge.amber{color:#92400e;background:#fef3c7}.badge.red,.chip.red,.badge.danger{color:#c0392b;background:#fbeded}.error,.danger,.unpaid-overdue,.is-refund{color:#c0392b}.ca-unpaid,.unpaid-text,.is-outstanding,.is-partial{color:#92400e}.metric-value.ca-paid,.ca-paid .metric-value{color:#2e7d32}.ca-unpaid .metric-value{color:#92400e}.warning,.hint,.qs73-hint{background:#fffbeb;color:#785b23;border:1px solid #efe0b8;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.6}.info,.notice{background:#f6f4f0;border:1px solid var(--line);border-radius:8px;color:#6f665b;padding:10px 12px;font-size:12px}.form-error{color:var(--red)}.form-error:empty{display:none}.empty,.loading{padding:40px 20px;text-align:center;color:var(--muted)}.empty h2{color:var(--ink)}
dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 18px 48px #2b262038;padding:0}dialog::backdrop{background:#2b262059}.dialog-head,.dialog-head h2,.dialog-head h3{margin:0}.dialog-head,.dialog-header,.dialog-foot,.form-footer{padding:16px 20px;background:#fff;border-color:var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head{border-bottom:1px solid var(--line)}.dialog-body{padding:20px}.dialog-foot,.form-footer{border-top:1px solid var(--line)}.form-grid{gap:14px}.form-grid>label{min-width:0}.form-grid .span2{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-footer button{min-height:38px}.selection-bar{background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:10px 14px}.selection-bar button{min-height:32px}.bartrack{background:#efe9df}.barfill{background:var(--brand)}
/* Sales: compact ledger, explicit filters, original money and progress. */
.cw-overview89{margin-bottom:14px}.cw-progress-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.cw-board89{padding:16px}.cw-board-head89{padding:0 0 10px;border-bottom:1px solid var(--line)}.cw-board-head89 span{font-size:12px;color:var(--muted)}.cw-filter89{border:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;align-items:end}.cw-filter89>label{flex:1 1 135px;min-width:0}.cw-filter89>label:first-child{flex:2 1 230px}.cw-filter89>button{flex:none;min-width:82px}.cw-metrics>button>strong{font-size:26px;color:var(--ink)}.cw-metrics>button>strong span{font:inherit;color:inherit}.cw-metrics>button>span{font-size:11px;color:var(--muted)}.cw-filter89 .cw-extra89{grid-column:auto}.cw-extra-fields89{display:flex;flex-wrap:wrap;gap:10px}.cw-status-bar44{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 10px}.cw-status-bar44 button{min-height:30px;background:#fff;border:1px solid var(--line);font-size:12px;padding:4px 9px;color:#6f665b}.cw-status-bar44 button[aria-pressed=true]{color:var(--brand);background:#fdf0f3;border-color:#e4b1c0}.cw-status-bar44 b{margin-left:6px;font-size:11px;padding:1px 6px;border-radius:99px;background:#eee7df}.cw-result-count44{font-size:11px;color:var(--muted);margin:4px 0 8px}.cw-orders-table table{min-width:920px}.cw-order-customer{font-size:13px}.cw-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}.cw-order-actions{display:flex;gap:4px;align-items:center;white-space:nowrap}.cw-order-more summary{font-size:12px;cursor:pointer;color:var(--muted)}.cw-footnote{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0 0}.cw-order-amount strong{font-size:14px}.cw-order-more-menu{background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px #2b262018}.cw-order-more-menu button{border:0;text-align:left}.cw-profile{padding:18px}.cw-orders-table .ca-order-compact strong{font-size:13px}
/* Quick order: selectable photo rail on left; order and amount on right. */
#quick-sales73{width:min(1320px,calc(100vw - 28px));padding:0;background:var(--page)}.qs73-head{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fff}.qs73-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.qs73-head h2{font-size:22px}.qs73-eyebrow{color:var(--muted);font-size:11px}#qs73-form{display:flex;flex-direction:column;max-height:calc(100dvh - 140px)}.qs73-scroll{padding:16px;overflow:auto}.qs73-order94{min-width:0}.qs73-base{display:grid;grid-template-columns:minmax(150px,2fr) 120px 140px;gap:12px;background:#fff;padding:14px;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.qs73-base label{min-width:0}.qs73-base .qs73-client{grid-row:span 2}.qs73-base label:last-child input{width:80px}.qs73-client input{margin-bottom:4px}.qs73-workgrid89{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}.qs73-picker,.qs73-products-card{border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0;overflow:hidden}.qs73-picker{padding:12px}.qs73-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 0 10px}.qs73-section-heading h3{font-size:14px;margin:0}.qs73-section-heading>span{font-size:10px;color:var(--muted)}.qs73-picker .qs73-section-heading>span{display:none}.qs73-search-row{display:flex;gap:6px;margin-bottom:10px}.qs73-search-row input{min-width:0;width:100%}.qs73-search-row button{padding:6px 8px;font-size:12px;white-space:nowrap}.qs73-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:480px;overflow:auto}.qs73-results>p{grid-column:1/-1}.qs73-product{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:7px;min-width:0;text-align:left;border:1px solid var(--line);color:var(--ink);border-radius:9px;background:#fff;position:relative}.qs73-product img,.qs73-product .qs73-no-photo{width:100%;height:104px;object-fit:contain;background:#f7f3ed;border-radius:5px}.qs73-product>span{display:grid;gap:2px;min-width:0}.qs73-product strong{font-size:12px}.qs73-product span span{font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qs73-product small,.qs73-product em{font-size:10px;font-style:normal;font-weight:400;color:var(--muted)}.qs73-product>b{position:absolute;top:8px;right:8px;background:white;color:var(--brand);width:20px;height:20px;border-radius:99px;text-align:center}.qs73-product.is-chosen94{border-color:var(--brand);background:#fdf0f3;box-shadow:inset 0 0 0 1px var(--brand)}.qs73-products-card>.qs73-section-heading{padding:12px;border-bottom:1px solid var(--line)}.qs73-table-wrap{overflow:auto}.qs73-lines{min-width:730px}.qs73-lines td,.qs73-lines th{padding:9px}.qs73-item{display:flex;gap:8px;align-items:center;min-width:150px}.qs73-item img,.qs73-item .qs73-no-photo{width:38px;height:46px;object-fit:contain;flex:none}.qs73-item>div{display:grid;gap:2px}.qs73-item strong{font-size:13px}.qs73-item span,.qs73-item small{font-size:11px;color:var(--muted)}.qs73-lines input{width:78px;padding:5px;min-height:32px}.qs73-lines input[data-qs73-field=price]{text-align:right}.qs73-lines [data-qs73-amount]{font-weight:800;text-align:right}.qs73-unpicked{color:var(--orange);font-weight:700}.qs73-products-card>.qs73-hint{margin:12px;border:0;background:#faf8f3;color:var(--muted)}.qs73-notes{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}.qs73-notes textarea{width:100%}.qs73-footer{padding:12px 20px;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0}.qs73-footer-caption89{display:none}.qs73-footer-actions{display:flex;justify-content:space-between;gap:12px;margin-top:8px}.qs73-footer-actions>div{display:flex;gap:8px;flex-wrap:wrap}.qs73-totals{display:flex;justify-content:flex-end;gap:18px;align-items:baseline;font-size:13px}.qs73-totals strong{font-size:20px;font-weight:800}.qs73-message{font-size:11px;color:var(--muted);margin:6px 0}.qs73-message[data-tone=error]{color:var(--red)}.qs73-no-photo{display:grid;place-items:center;color:var(--muted);font-size:11px}.qs73-cancel{margin-top:14px}
/* Purchasing and production: dense operational sections, not oversized dashboards. */
.pa-root{display:grid;gap:14px}.pa-filter{padding:14px;margin:0}.pa-filter-fields{border:0;padding:0;margin:0}.pa-period{display:flex;gap:6px;flex-wrap:wrap}.pa-period button{min-height:30px;padding:4px 12px}.pa-period button.active{background:var(--brand);color:white}.pa-panel{padding:16px;margin:0}.pa-charts,.grid2,.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pa-thumb{width:48px;height:56px;object-fit:contain}.pa-number{font-weight:700}.pa-note,.pa-source{font-size:11px;color:var(--muted)}.hero{padding:20px;background:white;border:1px solid var(--line);border-radius:14px;color:var(--ink);box-shadow:none}.hero h1,.hero h2{color:var(--ink)}.hero-art{display:none}.production-qty40{font-weight:700}.production-qty40.warning{color:var(--orange)}.detail-section,.editor-section{border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:14px;background:#fff}.production-reports34,.cost-explain{background:white;color:var(--ink)}.dialog .dialog-head{background:white;color:var(--ink)}.dialog .dialog-head h2{color:var(--ink)}.pagehead .actions{justify-content:flex-end}.field>label{font-size:12px;color:var(--muted)}
/* 1688 remains its own business area. No activation of unconnected actions. */
.a1688-stores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.a1688-store{padding:12px 14px}.a1688-store header{display:flex;align-items:center;gap:10px}.a1688-store header strong{margin-right:auto}.a1688-store-times,.a1688-store-note{font-size:11px;color:var(--muted)}.a1688-store header button{min-height:30px;padding:4px 9px;font-size:12px}.a1688-filter{gap:10px}.a1688-filter input,.a1688-filter select{width:100%}.a1688-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.a1688-table{min-width:1450px}.a1688-status button,.a1688-status-tabs button{background:#fff;color:var(--ink);border-color:var(--line);min-height:32px}.a1688-status button.active,.a1688-status-tabs button.active{background:#fdf0f3;color:var(--brand);border-color:var(--brand)}.a1688-after-empty{max-width:760px;margin:24px auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:14px}.a1688-after-empty p{color:var(--muted);font-size:13px}.a1688-after-empty label{margin-top:18px}.a1688-item img{width:52px;height:60px;object-fit:contain}.a1688-detail-grid{gap:14px}.pf58-card{background:#fff;border:1px solid var(--line);border-radius:12px}
/* Flat warehouse tools: SKU first, locations are results. */
body[data-design94=warehouse80]>header,body[data-design94=sales80]>header{height:56px;background:#fff;border-bottom:1px solid var(--line);padding:10px 20px;display:flex;align-items:center;gap:16px}body[data-design94=warehouse80]>nav,body[data-design94=sales80]>nav{padding:10px 20px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:6px;flex-wrap:wrap}body[data-design94=warehouse80]>main,body[data-design94=sales80]>main{max-width:none;padding:20px}.count-workgrid89{display:grid;grid-template-columns:1fr;gap:14px}.count-guide89{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:10px 0}.count-entry89,.count-records89{border:1px solid var(--line);background:white;border-radius:14px;padding:16px}.count-head89{display:flex;align-items:center;justify-content:space-between}.flat-count84 .toolbar{margin-bottom:12px}.flat-count84 td{vertical-align:middle}.flat-count84 .scroll{border:1px solid var(--line);border-radius:10px}.count-flow89{display:flex;gap:12px;color:var(--muted);font-size:12px}.count-flow89 b{color:var(--ink)}.cards{gap:12px}.cards>.card{padding:16px}.cards .metric{border:0;padding:0;min-height:0;font-size:28px;color:var(--ink)}
/* Authentication: one neutral entry, existing identity and validation untouched. */
.login{min-height:100vh;display:grid;grid-template-columns:minmax(280px,1fr) minmax(340px,1fr);background:var(--page)}.login-brand{background:var(--page);color:var(--ink);padding:60px;display:flex;flex-direction:column;justify-content:center}.login-brand h1{font-size:32px}.login-brand p{color:var(--muted)}.login-panel{padding:32px;background:var(--page);display:grid;place-items:center}.login form{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;display:grid;gap:18px}.login input{width:100%}.login .primary{min-height:42px}.card.login{display:block;min-height:0;max-width:420px;margin:36px auto;padding:24px;background:white}.card.login form{padding:0;border:0}.card.login label{margin-bottom:12px}
/* Mobile uses the same colors, adapted hierarchy and touch targets. */
body[data-design94=staff64] .workspace{max-width:760px;padding:18px 16px 96px}body[data-design94=staff64] .topbar{height:auto;min-height:56px;padding:10px 16px}body[data-design94=staff64] button,body[data-design94=staff64] input,body[data-design94=staff64] select{min-height:44px}body[data-design94=staff64] input[type=checkbox]{min-height:0}body[data-design94=staff64] .tile{border:1px solid var(--line);padding:16px;align-items:flex-start;border-radius:12px;color:var(--ink)}body[data-design94=staff64] .tile strong{font-size:15px}body[data-design94=staff64] .tile small{font-size:11px}.bottom-nav{background:#fff;border-top:1px solid var(--line)}.bottom-nav button[aria-current=page]{background:#fdf0f3;color:var(--brand)}.metric-grid div{background:#faf8f3;border:1px solid var(--line);border-radius:10px}.metric-grid strong{color:var(--ink)}.permission-row{padding:12px 0}.auth .card{padding:24px}.auth .primary{width:100%}.check-row{background:#faf8f3}
/* Embedded module has exactly one outer shell. */
html.wf-embedded .shell{display:block;min-height:0}html.wf-embedded .shell>aside,html.wf-embedded .shell>.main>.topbar{display:none}html.wf-embedded .shell>.main{display:block;margin:0}html.wf-embedded .workspace{padding:20px}body.wf-embedded .side{display:none}body.wf-embedded>.main{margin:0;padding:0}
@media(max-width:1050px){.qs73-base{grid-template-columns:2fr 1fr 1fr}.qs73-workgrid89{grid-template-columns:220px minmax(0,1fr)}.cw-filter89{grid-template-columns:2fr 1fr 1fr}.cw-filter89>button{align-self:end}.pa-charts{grid-template-columns:1fr}.metrics,.cw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){h1{font-size:22px}.workspace{padding:14px}.heading,.cw-heading,.pagehead{align-items:flex-start;gap:12px;flex-wrap:wrap}.toolbar,.cw-toolbar,.a1688-filter{padding:12px;gap:8px}.toolbar label{min-width:120px}.cw-filter89{grid-template-columns:1fr 1fr}.cw-filter89>label:first-child{grid-column:1/-1;min-width:0}.cw-board89{padding:12px}.two-col,.grid2,.a1688-stores{grid-template-columns:1fr}.qs73-workgrid89{grid-template-columns:1fr}.qs73-results{grid-template-columns:repeat(3,minmax(0,1fr));max-height:250px}.qs73-product img{height:80px}.qs73-base{grid-template-columns:1fr 1fr}.qs73-client{grid-column:1/-1}.qs73-head{padding:12px}.qs73-scroll{padding:10px}.qs73-footer{padding:10px}.qs73-footer-actions{flex-wrap:wrap}.qs73-totals{flex-wrap:wrap;gap:10px}.login{display:block}.login-brand{padding:28px 24px 0}.login-brand h1{font-size:26px}.login-panel{padding:24px}.login form{padding:22px}.count-head89{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.form-grid>.span2{grid-column:auto}body[data-design94=production_v2]>.side{transform:translateX(-100%)}body[data-design94=production_v2]>.main{margin-left:0}body[data-design94=production_v2].nav-open>.side{transform:none}dialog{max-width:calc(100vw - 16px)}.dialog-body{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms;transition:none;scroll-behavior:auto}}

body[data-design94=production_v2]>.main{margin-left:184px}.production-intro94{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:white}.production-intro94 h2{margin:0 0 4px}.production-intro94 p{margin:0;font-size:12px;color:var(--muted)}body[data-design94=warehouse80]>nav button.active,body[data-design94=sales80]>nav button.active{color:var(--brand);background:#fdf0f3;border-color:#e2b3c0}.flat-count84>header{background:transparent;padding:0 0 14px}.flat-count84>header p{font-size:12px;color:var(--muted)}
@media(max-width:700px){body[data-design94=production_v2]>.main{margin-left:0}.production-intro94{flex-wrap:wrap}.qs73-base .qs73-client{grid-row:auto}.qs73-base{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.shell{display:block}.shell>aside{position:static;width:100%;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.shell>aside .brand{padding-bottom:8px}.shell>aside .nav{display:flex;overflow:auto;max-width:100%;gap:4px}.shell>aside .nav button{flex-shrink:0;white-space:nowrap}.shell>aside .aside-bottom{display:none}.shell>.main{width:100%;margin:0;min-width:0}.shell .topbar{height:auto;flex-wrap:wrap}.cw-progress-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-orders-table{max-width:100%;overflow:auto}.cw-board89{min-width:0}.cw-filter89>label{flex-basis:120px}.cw-filter89>label:first-child{flex-basis:100%}}

.qs73-totals strong,.qs73-totals strong *,.qs73-totals>span:nth-child(n+4) strong,.qs73-totals>span:nth-child(n+4) strong *{font-size:22px;font-weight:800;color:var(--ink)}.qs73-totals>span:nth-child(2) strong,.qs73-totals>span:nth-child(2) strong *{color:var(--green)}.qs73-totals>span:nth-child(3) strong,.qs73-totals>span:nth-child(3) strong *{color:var(--orange)}[data-qs73-amount],[data-qs73-amount] *{color:var(--ink);font-weight:700}.qs73-client>.qs73-required{display:inline}.qs73-client>span{display:block}.qs73-client .qs73-required{display:inline;color:var(--red)}

[data-cd="refunds"], [data-cd="refunds"] strong,[data-cd="refunds"] strong *{color:var(--red)}.dash-ring strong,.dash-ring strong *{color:var(--ink)}.dash-progress .ca-unpaid{background:#fef3c7;color:var(--orange)}.dash-progress .ca-paid{background:#e6f4ea;color:var(--green)}.dash-panel p,.dash-panel>small{color:var(--muted)}

.overview-card>span,.overview-card strong,.overview-card>.ui-icon{color:var(--ink)}.overview-card[data-shared] strong,.overview-card[data-home-go="production-todos"] strong{color:var(--orange)}.overview-card>.ui-icon{opacity:.5}.bottom-nav button{color:var(--muted)}.bottom-nav button[aria-current=page]{color:var(--brand)}.home-search{color:var(--ink)}.home-search>.ui-icon{color:var(--brand)}
/* Centered editing surfaces. Long business forms scroll inside the same dialog. */
dialog[open]{inset:0;margin:auto;transform:none;animation:none;height:auto;max-height:calc(100dvh - 48px);width:min(960px,calc(100vw - 48px));border-radius:14px}dialog[open]>.dialog-head{position:sticky;top:0;z-index:3;background:white}dialog#editor form{padding:18px 20px}dialog#editor .s-footer{padding:14px 0 0;bottom:0;background:white}dialog#editor:has(.a1688-detail){width:min(900px,calc(100vw - 48px));height:auto}dialog#editor:has(.a1688-detail) form{padding:16px 20px}.count-review89[open]{width:min(520px,calc(100vw - 32px))}.count-head89{background:transparent;padding:0 0 16px}.empty button.primary{background:white;color:var(--brand);border-color:var(--brand)}.estimate{color:var(--ink)}
@media(max-width:700px){.shell>aside .menu-group{display:contents}.shell>aside .menu-group>summary{display:none}.shell>aside .menu-group>div{display:flex;flex-shrink:0;gap:4px}.shell>aside .nav{padding-bottom:4px}.shell>aside .nav button{width:auto}.shell>aside .nav a{white-space:nowrap;flex:none}.shell>aside .brand{padding-bottom:10px}dialog[open]{max-height:calc(100dvh - 16px);width:calc(100vw - 16px)}dialog#editor form{padding:14px}.s-formgrid{grid-template-columns:1fr}.s-formgrid .wide{grid-column:auto}}

/* Shared batch actions and progressive filters, no legacy dark action bars. */
.card-selection-bar,.cc43-selection-bar,.selection-bar,.order-selection-bar,.ship-selection-bar{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 -4px 16px #2b262008;padding:12px 16px}.card-selection-bar span,.selection-bar span{color:var(--muted)}.card-selection-bar button,.selection-bar button,.ship-selection-bar button{background:white;color:var(--brand);border:1px solid #dfb3c0}.card-selection-bar [data-card-order]{background:var(--brand);color:white}
.querybar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:white;padding:14px;border:1px solid var(--line);border-radius:12px}.query-field{min-width:130px;flex:1}.query-field input,.query-field select{width:100%}.query-help{width:100%;font-size:11px;color:var(--muted)}.report-period34{flex-basis:100%;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}.query-more94{position:relative;align-self:end}.query-more94 summary{cursor:pointer;padding:8px;color:var(--muted)}.query-more94>div{position:absolute;right:0;top:38px;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:12px;width:380px;padding:16px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #2b262026}.query-more94 label{display:grid;gap:5px}.query-submit{background:var(--brand);color:white;border-color:var(--brand)}
@media(max-width:700px){.query-more94>div{position:static;width:100%;grid-template-columns:1fr 1fr}.query-more94[open]{flex-basis:100%}.query-field{min-width:120px}.report-period34>span:last-child{flex-basis:100%}body[data-design94=production_v2]>.side.show{transform:none}}

:root{--erp44-text:#2b2620;--erp44-muted:#8a8172;--erp44-border:#e8e0d2;--erp44-surface:#fff;--erp44-bg:#f6f1e9;--erp44-soft:#fdf0f3}
.hb44-name,.brand strong{background:none;color:var(--ink);-webkit-text-fill-color:var(--ink)}.note,.hint,.footer-note,.sub,.query-help{color:var(--muted)}.note{background:#faf8f3;border:1px solid var(--line);border-radius:10px}.style-card{background:#fff;border-color:var(--line);border-radius:12px;box-shadow:none}.style-cover{background:#faf8f3}.style-body h3,.style-body h3 button{color:var(--ink)}.style-body .tag{color:var(--muted);background:#f6f1e9}

/* Login95: compact card in both standalone and embedded workspaces. */
.login:has(>.login-brand){display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:28px 20px;gap:0;background:var(--page)}
.login:has(>.login-brand)>.login-brand{width:min(100%,440px);padding:24px 28px 8px;background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;min-height:0;overflow:hidden}
.login>.login-brand::before,.login>.login-brand::after{display:none;content:none}
.login>.login-brand h1{font-size:20px;line-height:1.4;margin:0 0 8px;color:var(--ink)}
.login>.login-brand h1 br{display:none}.login>.login-brand p{font-size:13px;line-height:1.5;margin:4px 0;color:var(--muted)}
.login:has(>.login-brand)>.login-panel{display:block;width:min(100%,440px);padding:12px 28px 24px;border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px;background:white}
.login>.login-panel form{max-width:none;padding:0;border:0;border-radius:0;gap:14px;background:white}
.login form h2{font-size:16px;margin:4px 0}.login .workspace-return{border:0;padding:0;min-height:0;background:none;color:var(--muted);font-size:13px}
.wf-embedded .login .workspace-return{display:none}.wf-embedded .login:has(>.login-brand){min-height:100vh;padding:24px 16px}
.login .primary::before,.login .primary::after{display:none;content:none}
@media(max-width:700px){.login:has(>.login-brand){justify-content:flex-start;padding:20px 14px}.login:has(>.login-brand)>.login-brand{padding:20px 20px 8px}.login:has(>.login-brand)>.login-panel{padding:12px 20px 20px}}

/* Retired navigation popularity decoration is never a workflow status. */
.erp-heat34{display:none!important}

/* Batch tools share the light surface; values retain their semantic colors. */
.shipment-action-bar,.purchase-selection-bar,.account-selection-bar,.cc42-selection{background:white;color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 -4px 16px #2b262008;padding:12px 16px}
.shipment-action-bar>strong,.purchase-selection-bar #selection-summary,.account-selection-bar #ca-selection{color:var(--ink)}
.shipment-action-bar button,.purchase-selection-bar button,.account-selection-bar button{background:white;color:var(--brand);border:1px solid #dfb3c0}
.shipment-action-bar button.primary,.purchase-selection-bar button.primary,.account-selection-bar button.primary{background:var(--brand);color:white;border-color:var(--brand)}
