/* Operations home rebuilt 1:1 from the ui-c-2 design template (warm paper, white cards, deep teal). Shell contract classes: .v3-workspace on host, .v3-detail-sheet on modals. */
.v3-workspace,.v3-detail-sheet{--v3-card:#fffdf9;--v3-ink:#22312c;--v3-muted:#5c6a63;--v3-faint:#8b968f;--v3-line:#e3ded2;--v3-line-soft:#edeade;--v3-teal:#0f766e;--v3-teal-dark:#0b5a54;--v3-teal-soft:#e3f0ec;--v3-red:#b3352c;--v3-red-bg:#fae7e3;--v3-amber:#9b5519;--v3-amber-bg:#fdf0dc;--v3-shadow:0 1px 2px rgba(34,49,44,.05),0 10px 30px -18px rgba(34,49,44,.25);color:var(--v3-ink);font-size:15px;line-height:1.55}
.v3-workspace *,.v3-detail-sheet *{box-sizing:border-box}
.v3-workspace{min-width:0;max-width:100%;padding-bottom:36px;font-variant-numeric:tabular-nums}
.v3-workspace button,.v3-detail-sheet button{font:inherit;cursor:pointer;touch-action:manipulation}
.v3-workspace button{transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .12s}
.v3-workspace button:active:not(:disabled){transform:translateY(1px)}
.v3-workspace button:disabled{cursor:default;opacity:.5;transform:none}
.v3-workspace :is(button,a,input,select):focus-visible,.v3-detail-sheet :is(button,a):focus-visible,.v3-workspace .v3-table-scroll:focus-visible{outline:3px solid #68a89c;outline-offset:3px}
.v3-workspace .icon,.v3-detail-sheet .icon{width:18px;height:18px;flex:none}
.v3-workspace :is(h1,h2,h3,p){margin:0}
.v3-workspace a{color:var(--v3-teal)}
/* ---------- page head ---------- */
.v3-workspace .v3-page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 4px}
.v3-workspace .v3-eyebrow{display:block;font-size:12px;color:var(--v3-teal-dark);font-weight:700;letter-spacing:.06em;margin-bottom:5px}
.v3-workspace .v3-page-head h1{font-size:26px;font-weight:900;letter-spacing:-.01em;line-height:1.3;color:var(--v3-ink)}
.v3-workspace .v3-page-head p{font-size:14px;color:var(--v3-muted);margin-top:6px}
.v3-workspace .v3-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.v3-workspace .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid var(--v3-line);border-radius:10px;background:var(--v3-card);color:var(--v3-ink);font-size:13.5px;font-weight:600;white-space:nowrap;box-shadow:0 1px 2px rgba(34,49,44,.04);text-decoration:none}
.v3-workspace .btn:hover{background:#efeee7;border-color:#c8d5cc}
.v3-workspace .btn-primary{background:var(--v3-teal)!important;color:#fff!important;border-color:var(--v3-teal)!important;box-shadow:0 3px 10px rgba(15,118,110,.16)!important}
.v3-workspace .btn-primary:hover{background:var(--v3-teal-dark)!important}
.v3-workspace .btn-small{min-height:38px;padding:7px 12px;font-size:13px}
.v3-workspace .v4-period-select{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:12.5px;font-weight:500;color:var(--v3-muted);white-space:nowrap}
.v3-workspace .v4-period-select select,.v3-workspace .v3-tools-end>select{width:auto;border:1px solid var(--v3-line);border-radius:10px;background:var(--v3-card);min-height:40px;padding:8px 11px;color:var(--v3-ink);font:inherit;font-size:13.5px}
/* ---------- KPI cards ---------- */
.v3-workspace .v3-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.v3-workspace .v3-kpi{position:relative;min-width:0;background:var(--v3-card);border:1px solid var(--v3-line);border-radius:18px;box-shadow:var(--v3-shadow);padding:18px 20px 16px;display:flex;flex-direction:column}
.v3-workspace .v3-kpi-label{font-size:12.5px;color:var(--v3-muted);font-weight:500;display:flex;align-items:center;gap:7px}
.v3-workspace .v3-kpi-dot{width:7px;height:7px;border-radius:50%;background:var(--v3-teal);flex:none}
.v3-workspace .v3-kpi-amber .v3-kpi-dot{background:var(--v3-amber)}
.v3-workspace .v3-kpi-rose .v3-kpi-dot{background:var(--v3-red)}
.v3-workspace .v3-kpi-num{font-size:30px;font-weight:900;line-height:1.15;margin-top:6px;letter-spacing:-.01em;display:flex;align-items:baseline;font-variant-numeric:tabular-nums}
.v3-workspace .v3-kpi-num small{font-size:13px;font-weight:500;color:var(--v3-muted);margin-left:4px}
.v3-workspace .v3-kpi-amber .v3-kpi-num{color:var(--v3-amber)}
.v3-workspace .v3-kpi-rose .v3-kpi-num{color:var(--v3-red)}
.v3-workspace .v3-kpi-sub{font-size:12px;line-height:1.5;color:var(--v3-faint);margin-top:4px}
.v3-workspace .v3-kpi-flag{position:absolute;top:0;right:0;font-size:11px;font-weight:900;color:#fff;padding:4px 12px;border-radius:0 18px 0 12px;background:var(--v3-amber)}
.v3-workspace .v3-kpi-amber .v3-kpi-flag{background:var(--v3-amber)}
.v3-workspace .v3-kpi-rose .v3-kpi-flag{background:var(--v3-red)}
.v3-workspace .v4-source-time{font-size:11px;line-height:1.7;color:var(--v3-faint);display:block;margin-top:auto;padding-top:6px}
.v3-workspace .v4-source-time b{font-weight:500;color:var(--v3-muted)}
/* ---------- cards & heads ---------- */
.v3-workspace .v3-card{background:var(--v3-card);border:1px solid var(--v3-line);border-radius:18px;box-shadow:var(--v3-shadow);padding:20px 22px;min-width:0}
.v3-workspace .v3-card-head{display:flex;align-items:center;gap:9px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--v3-line-soft);flex-wrap:wrap}
.v3-workspace .v3-card-ic{width:28px;height:28px;border-radius:8px;background:var(--v3-teal-soft);color:var(--v3-teal-dark);display:inline-flex;align-items:center;justify-content:center;flex:none}
.v3-workspace .v3-card-ic .icon{width:15px;height:15px}
.v3-workspace .v3-card-ic.is-red{background:var(--v3-red-bg);color:var(--v3-red)}
.v3-workspace .v3-card-ic.is-amber{background:var(--v3-amber-bg);color:var(--v3-amber)}
.v3-workspace .v3-card-head h2{margin:0;font-size:16px;font-weight:900;line-height:1.3;letter-spacing:.01em;color:var(--v3-ink)}
.v3-workspace .v3-when{margin-left:auto;font-size:12px;color:var(--v3-faint);white-space:nowrap;text-align:right}
.v3-workspace .v3-card-foot{font-size:11.5px;line-height:1.8;color:var(--v3-faint);margin:auto 0 0;padding:10px 0 0;border-top:1px solid var(--v3-line-soft)}
.v3-workspace .v3-card-foot .v4-source-time{display:inline;margin:0;padding:0}
.v3-workspace .v3-link{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:5px 3px;border:0;background:transparent;color:var(--v3-teal-dark);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;flex:none}
.v3-workspace .v3-link:hover{color:#094c47;text-decoration:underline}
.v3-workspace .v3-link .icon{width:15px;height:15px}
/* ---------- focus grid ---------- */
.v3-workspace .v3-focus-grid{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,9fr);gap:16px;margin-top:16px;align-items:stretch}
.v3-workspace .v3-focus-card{display:flex;flex-direction:column}
.v3-workspace .v3-focus-card .v3-card-head{flex:none}
/* act rows （马上处理） */
.v3-workspace .v3-act-list{display:flex;flex-direction:column}
.v3-workspace .v3-act-row{display:flex;gap:12px;padding:13px 2px;border-top:1px solid var(--v3-line-soft);align-items:center}
.v3-workspace .v3-act-row:first-child{border-top:none;padding-top:2px}
.v3-workspace .v3-act-body{min-width:0;flex:1}
.v3-workspace .v3-act-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.v3-workspace .v3-act-sku{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-weight:700;font-size:14.5px;color:var(--v3-ink);border:0;background:transparent;padding:0;min-height:0;text-align:left}
.v3-workspace button.v3-act-sku:hover{color:var(--v3-teal);text-decoration:underline}
.v3-workspace .v3-act-sku.is-plain{font-family:inherit}
.v3-workspace .v3-act-tag{font-size:12px;font-weight:700}
.v3-workspace .v3-act-tag.is-red{color:var(--v3-red)}
.v3-workspace .v3-act-tag.is-amber{color:var(--v3-amber)}
.v3-workspace .v3-act-desc{font-size:13px;color:var(--v3-muted);margin-top:1px;line-height:1.55}
.v3-workspace .v3-act-desc b{color:var(--v3-ink)}
.v3-workspace .v3-act-icon{width:52px;height:52px;border-radius:12px;background:var(--v3-amber-bg);border:1px solid #f0dcbc;color:var(--v3-amber);display:flex;align-items:center;justify-content:center;flex:none}
.v3-workspace .v3-act-icon .icon{width:22px;height:22px}
/* dyn rows （热销款动态） */
.v3-workspace .v4-top-periods{padding:0 2px 6px}
.v3-workspace .v4-period-tabs{display:inline-flex;max-width:100%;gap:2px;padding:3px;border:1px solid var(--v3-line);border-radius:999px;background:#f3f1eb}
.v3-workspace .v4-period-tabs button{min-height:32px;border:0;border-radius:999px;padding:5px 12px;background:transparent;color:var(--v3-muted);font-size:12.5px;white-space:nowrap}
.v3-workspace .v4-period-tabs button:hover{background:#dcebe4;color:var(--v3-teal-dark)}
.v3-workspace .v4-period-tabs button[aria-pressed=true]{background:var(--v3-teal);color:#fff;box-shadow:0 2px 6px rgba(15,118,110,.18)}
.v3-workspace .v3-dyn-list{display:flex;flex-direction:column}
.v3-workspace .v3-dyn-row{display:flex;align-items:center;gap:12px;padding:10px 2px;border-top:1px solid var(--v3-line-soft);min-height:76px}
.v3-workspace .v3-dyn-row:first-child{border-top:none}
.v3-workspace .v3-dyn-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px;justify-content:center}
.v3-workspace .v3-dyn-sku{display:flex;align-items:center;gap:8px;white-space:nowrap}
.v3-workspace .v3-dyn-rank{font-family:"Noto Serif SC",serif;font-size:11.5px;font-weight:900;color:var(--v3-amber);flex:none}
.v3-workspace .v3-dyn-sales{white-space:nowrap}
.v3-workspace .v3-dyn-sales .n{font-size:17px;font-weight:900;line-height:1.25;font-variant-numeric:tabular-nums}
.v3-workspace .v3-dyn-sales .n small{font-size:11.5px;font-weight:500;color:var(--v3-muted)}
.v3-workspace .v3-dyn-sales .lbl{font-size:11.5px;color:var(--v3-faint)}
.v3-workspace .v3-st{font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;display:inline-block;white-space:nowrap;flex:none;min-width:84px;text-align:center;align-self:center}
.v3-workspace .v3-st.is-ok{background:var(--v3-teal-soft);color:var(--v3-teal-dark)}
.v3-workspace .v3-st.is-red{background:var(--v3-red-bg);color:var(--v3-red)}
.v3-workspace .v3-st.is-amber{background:var(--v3-amber-bg);color:var(--v3-amber)}
.v3-workspace .v3-st.is-gray{background:#eeefe9;color:#67746b}
/* photos & badges */
.v3-workspace .v3-photo-button{display:block;flex:none;border:0;background:transparent;padding:0;border-radius:12px;line-height:1;min-height:0}
.v3-workspace .v3-photo-button:hover{box-shadow:0 0 0 3px rgba(15,118,110,.12)}
.v3-workspace .v3-photo{width:52px;height:52px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;border:1px solid var(--v3-line);border-radius:12px;background:#efeee8;position:relative}
.v3-workspace .v3-photo>img{width:100%;height:100%;object-fit:contain;display:block}
.v3-workspace .v3-photo-tag{position:absolute;left:0;right:0;bottom:0;font-size:9px;line-height:1;padding:3px 0;background:rgba(34,49,44,.07);color:var(--v3-faint);font-weight:500;letter-spacing:.06em;text-align:center}
.v3-workspace .v3-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#747f75}
.v3-workspace .v3-photo-empty .icon{width:20px;height:20px}
.v3-workspace .v3-photo-empty small{font-size:10px;line-height:1.2}
.v3-workspace .v3-badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 9px;border:0;border-radius:999px;background:var(--v3-teal-soft);color:var(--v3-teal-dark);font-size:11.5px;font-weight:700;line-height:1.5;white-space:nowrap}
.v3-workspace .v3-badge>i{height:4px;width:4px;flex:none;border-radius:50%;background:currentColor}
.v3-workspace .v3-badge.v3-risk{color:var(--v3-amber);background:var(--v3-amber-bg)}
.v3-workspace .v3-badge.v3-zero{color:var(--v3-red);background:var(--v3-red-bg)}
.v3-workspace .v3-badge.v3-unknown{color:#67746b;background:#eeefe9}
/* ---------- SKU catalog ---------- */
.v3-workspace .v3-catalog{margin-top:16px;scroll-margin-top:90px}
.v3-workspace .v3-search{margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:7px;background:#fbfaf6;border:1px solid var(--v3-line);border-radius:999px;padding:6px 14px;color:var(--v3-faint);flex:none;min-width:240px}
.v3-workspace .v3-search .icon{width:14px;height:14px}
.v3-workspace .v3-search:focus-within{border-color:var(--v3-teal);box-shadow:0 0 0 3px var(--v3-teal-soft)}
body .v3-workspace .v3-search>input{display:block;flex:1;min-width:0;max-width:100%;width:100%;border:0;box-shadow:none;outline:none;padding:0;background:transparent;font:inherit;font-size:13px;min-height:22px;height:22px;line-height:1.5;color:var(--v3-ink)}
.v3-workspace .v3-search input::placeholder{color:var(--v3-faint)}
.v3-workspace .v3-catalog-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.v3-workspace .v3-filter-tabs{display:inline-flex;gap:6px;flex-wrap:wrap}
.v3-workspace .v3-filter-tabs>button{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1px solid var(--v3-line);border-radius:999px;background:transparent;color:var(--v3-muted);padding:6px 13px;font-size:13px;white-space:nowrap}
.v3-workspace .v3-filter-tabs>button:hover{border-color:#c8d5cc;color:var(--v3-ink)}
.v3-workspace .v3-filter-tabs>button[aria-pressed=true]{background:var(--v3-teal-soft);border-color:#cfe6df;color:var(--v3-teal-dark);font-weight:700}
.v3-workspace .v3-filter-tabs b{font-size:11px;font-weight:600;background:#eeefe8;padding:1px 6px;border-radius:5px;font-variant-numeric:tabular-nums}
.v3-workspace .v3-filter-tabs>button[aria-pressed=true] b{background:#fffdf9}
.v3-workspace .v3-tools-end{display:flex;align-items:center;gap:9px;margin-left:auto;min-width:0}
.v3-workspace .v3-display-switch{display:flex;gap:2px;padding:3px;background:#f3f1eb;border:1px solid var(--v3-line);border-radius:999px}
.v3-workspace .v3-display-switch>button{display:grid;place-items:center;width:36px;height:32px;border:0;background:transparent;border-radius:999px;color:#778178;padding:5px}
.v3-workspace .v3-display-switch>button .icon{width:16px;height:16px}
.v3-workspace .v3-display-switch>button[aria-pressed=true]{color:var(--v3-teal-dark);background:var(--v3-teal-soft)}
.v3-workspace .v3-catalog-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:0 2px 10px;border-bottom:1px solid var(--v3-line-soft);color:var(--v3-faint);font-size:11.5px;line-height:1.7}
.v3-workspace .v3-catalog-caption>strong{font-size:13px;color:var(--v3-ink);white-space:nowrap}
.v3-workspace .v3-catalog-caption>span{text-align:right}
.v3-workspace .v3-catalog-caption .v4-source-time{display:inline;margin:0;padding:0;font-size:11.5px}
.v3-workspace .v3-table-scroll{width:100%;max-width:100%;overflow:auto;scrollbar-color:#9bafa1 #f1f0e9;scrollbar-width:thin;overscroll-behavior-x:contain}
.v3-workspace .v3-products-table{width:100%;min-width:1280px;border-collapse:collapse;font-size:13.5px;margin:0}
.v3-workspace .v3-products-table th{font-size:12px;color:var(--v3-muted);font-weight:700;text-align:right;padding:8px;border-bottom:1px solid var(--v3-line);white-space:nowrap;background:#fbfaf6;line-height:1.4}
.v3-workspace .v3-products-table th.is-left{text-align:left}
.v3-workspace .v3-products-table td{padding:9px 8px;border-bottom:1px solid var(--v3-line-soft);text-align:right;vertical-align:middle;line-height:1.45;color:var(--v3-ink)}
.v3-workspace .v3-products-table tbody tr:last-child td{border-bottom:none}
.v3-workspace .v3-products-table tbody tr:hover td{background:#faf8f2}
.v3-workspace .v3-products-table tbody tr.is-selected td{background:#eef5f1}
.v3-workspace .v3-products-table input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--v3-teal);margin:0}
.v3-workspace .v3-products-table .v3-select-cell{width:36px;text-align:left}
.v3-workspace .v3-sort-heading{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;font:inherit;font-weight:700;color:inherit;white-space:nowrap;min-height:0}
.v3-workspace .v3-sort-heading span{color:#9baba0;font-size:11px}
.v3-workspace .v3-products-table [aria-sort=ascending] .v3-sort-heading,.v3-workspace .v3-products-table [aria-sort=descending] .v3-sort-heading{color:var(--v3-teal-dark)}
.v3-workspace .v3-product-cell{text-align:left;min-width:180px;max-width:250px;white-space:normal}
.v3-workspace .v3-name-button{display:flex;flex-direction:column;min-width:0;gap:1px;border:0;background:transparent;padding:0;text-align:left;min-height:0;color:var(--v3-ink)}
.v3-workspace .v3-name-button strong{display:block;font-size:13.5px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.v3-workspace .v3-name-button>span{font-size:12px;color:var(--v3-muted);line-height:1.5;overflow-wrap:anywhere}
.v3-workspace .v3-name-button:hover strong{color:var(--v3-teal);text-decoration:underline}
.v3-workspace .v3-photo-status{font-size:11px;color:#9a6c3c;line-height:1.5}
.v3-workspace .v3-photo-cell{text-align:left;width:76px}
.v3-workspace .v3-products-table .v3-photo{width:64px;height:64px;border-radius:12px}
.v3-workspace .v3-products-table .v3-photo-tag{display:none}
.v3-workspace .v3-products-table .v3-photo-empty .icon{width:16px;height:16px}
.v3-workspace .v3-products-table .v3-photo-empty small{display:none}
.v3-workspace .v3-sales-cell{white-space:nowrap}
.v3-workspace .v3-rank{display:inline-flex;justify-content:center;align-items:center;color:#7e867f;font-size:11.5px;font-weight:700;min-width:22px;height:22px;border-radius:6px;font-variant-numeric:tabular-nums;margin-right:7px;vertical-align:2px}
.v3-workspace .v3-rank.is-top{color:var(--v3-amber);background:var(--v3-amber-bg)}
.v3-workspace .v3-sales-number{font-size:16px;font-weight:800;color:var(--v3-ink)}
.v3-workspace .v4-inline-quantity{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.v3-workspace .v4-inline-quantity small{font-size:12px;font-weight:500;color:var(--v3-muted)}
.v3-workspace .v3-warehouse-cell{min-width:104px}
.v3-workspace .v3-cell-pair{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;white-space:nowrap;margin:1px 0}
.v3-workspace .v3-cell-pair>span{font-size:11.5px;color:var(--v3-faint)}
.v3-workspace .v3-cell-pair>b{font-size:14.5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--v3-ink)}
.v3-workspace .v3-cell-pair.is-sub>b{font-size:12.5px;font-weight:500;color:var(--v3-muted)}
.v3-workspace .v3-total-cell{min-width:150px}
.v3-workspace .v3-total-cell .v3-cell-pair>b{color:var(--v3-teal-dark);font-size:15px;font-weight:900}
.v3-workspace .v3-total-cell .v3-cell-pair.is-sub>b{color:var(--v3-muted);font-size:12.5px;font-weight:500}
.v3-workspace .v3-total-cell .v3-badge{margin-top:5px}
.v3-workspace .v3-forecast-cell{text-align:left;min-width:158px;white-space:normal}
.v3-workspace .v4-sellout{display:inline-block;white-space:nowrap;font-size:13.5px;font-weight:700;padding:4px 8px;background:var(--v3-amber-bg);border:1px solid #f0dfc6;color:var(--v3-amber);border-radius:7px;font-variant-numeric:tabular-nums}
.v3-workspace .v4-sellout.is-unknown{font-size:12px;font-weight:500;background:#eeefe9;border-color:#e3e5da;color:#6f7a70}
.v3-workspace .v4-warehouse-forecast{display:grid;gap:4px;min-width:140px}
.v3-workspace .v4-warehouse-forecast span{display:flex;justify-content:space-between;gap:6px;color:#746b56;font-size:11px}
.v3-workspace .v4-warehouse-forecast b{font-size:12px;color:var(--v3-amber);font-variant-numeric:tabular-nums}
.v3-workspace .v3-cell-note{display:block;font-size:11px;line-height:1.6;color:var(--v3-muted);margin-top:3px}
.v3-workspace .v3-status-cell{text-align:left}
.v3-workspace .v3-row-actions{width:64px}
.v3-workspace .v3-table-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:13px 2px 0;border-top:1px solid var(--v3-line);color:var(--v3-muted);font-size:12.5px;margin-top:4px}
.v3-workspace .v3-table-bottom>div{display:flex;align-items:center;gap:12px}
/* product cards display mode */
.v3-workspace .v3-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px 0 2px}
.v3-workspace .v3-product-card{border:1px solid var(--v3-line);border-radius:14px;background:var(--v3-card);min-width:0;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.v3-workspace .v3-product-card:hover,.v3-workspace .v3-product-card.is-selected{border-color:#86b4a5;box-shadow:0 3px 14px rgba(15,118,110,.08)}
.v3-workspace .v3-product-card-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border-bottom:1px solid var(--v3-line-soft);background:#fcfbf7}
.v3-workspace .v3-product-line{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;flex:1}
.v3-workspace .v3-product-card-head>input{accent-color:var(--v3-teal);width:18px;height:18px;min-height:18px;flex:none;margin-top:5px}
.v3-workspace .v3-product-card-body{padding:14px 16px}
.v3-workspace .v3-card-stats{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.v3-workspace .v3-card-stats>div{display:flex;flex-direction:column;gap:2px}
.v3-workspace .v3-card-stats small{font-size:12px;color:var(--v3-muted)}
.v3-workspace .v3-card-stats strong{font-size:22px;color:var(--v3-teal-dark);font-weight:800}
.v3-workspace .v4-card-stock{background:#fbfaf6;border:1px solid var(--v3-line-soft);padding:12px;border-radius:10px}
.v3-workspace .v4-stock-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v3-workspace .v4-stock-breakdown>div{min-width:0;display:grid;gap:3px}
.v3-workspace .v4-stock-breakdown strong{font-size:12px;color:var(--v3-muted);margin-bottom:3px}
.v3-workspace .v4-stock-breakdown span{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#748075}
.v3-workspace .v4-stock-breakdown b{font-size:15px;color:var(--v3-ink);font-variant-numeric:tabular-nums}
.v3-workspace .v4-stock-totals{display:grid;gap:5px;margin-top:11px;padding-top:10px;border-top:1px solid var(--v3-line)}
.v3-workspace .v4-stock-totals>span{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--v3-muted)}
.v3-workspace .v4-stock-totals b{font-size:15px;color:var(--v3-teal-dark);white-space:nowrap;font-variant-numeric:tabular-nums}
.v3-workspace .v4-stock-totals small{font-size:12px;font-weight:500}
.v3-workspace .v3-product-card footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-top:12px}
.v3-workspace .v3-product-card footer>div{min-width:0}
.v3-workspace .v3-bulk-bar{position:sticky;bottom:16px;z-index:8;display:flex;align-items:center;justify-content:center;gap:14px;max-width:680px;width:max-content;margin:14px auto 2px;padding:10px 18px;border:1px solid var(--v3-teal-dark);border-radius:12px;background:var(--v3-teal-dark);color:#fff;box-shadow:0 8px 28px rgba(23,65,53,.18);font-size:13px}
.v3-workspace .v3-bulk-bar[hidden]{display:none}
.v3-workspace .v3-bulk-bar small{color:#c4e0d6}
.v3-workspace .v3-bulk-bar button{min-height:38px;border:1px solid #7da99a;background:#246c60;color:#fff;padding:7px 12px;border-radius:8px;font-size:13px}
.v3-workspace .v3-bulk-bar button:hover{background:#337d70}
/* ---------- warehouse reference ---------- */
.v3-workspace .v3-ref{margin-top:16px}
.v3-workspace .v3-ref .v3-card-head .v3-link{margin-left:2px}
.v3-workspace .v3-ref .v3-when{margin-left:auto}
.v3-workspace .v3-mini-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.v3-workspace .v3-mini{background:#fbfaf6;border:1px solid var(--v3-line-soft);border-radius:14px;padding:13px 15px;min-width:0}
.v3-workspace .v3-mini .m-name{font-weight:900;font-size:13.5px;display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;color:var(--v3-ink)}
.v3-workspace .v3-mini .m-name .code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;color:var(--v3-faint);font-weight:400}
.v3-workspace .v3-mini .m-nums{display:flex;gap:14px;margin-top:5px;font-size:12.5px;color:var(--v3-muted);flex-wrap:wrap}
.v3-workspace .v3-mini .m-nums b{color:var(--v3-ink);font-size:15px;margin-left:3px;font-variant-numeric:tabular-nums}
.v3-workspace .v3-mini .m-note{font-size:11px;color:var(--v3-faint);line-height:1.7;margin-top:7px}
.v3-workspace .v3-mini .m-note .v4-source-time{display:inline;margin:0;padding:0;font-size:11px}
/* ---------- assistant placeholder ---------- */
.v3-workspace .v3-assistant-bar{margin-top:16px;border:1.5px dashed #c9c4b4;border-radius:14px;background:#efede6;padding:9px 14px;display:flex;align-items:center;gap:12px;color:#8a8d84}
.v3-workspace .v3-assistant-ic{width:28px;height:28px;border-radius:8px;background:#ddd9cc;color:#9a9c93;display:flex;align-items:center;justify-content:center;flex:none}
.v3-workspace .v3-assistant-ic .icon{width:15px;height:15px}
.v3-workspace .v3-assistant-txt{font-size:13.5px;line-height:1.45;min-width:0}
.v3-workspace .v3-assistant-txt b{color:#7c7e76;font-weight:700}
.v3-workspace .v3-assistant-badge{flex:none;font-size:11.5px;font-weight:700;background:#ddd9cc;color:#7c7e76;border-radius:999px;padding:3px 10px}
.v3-workspace .v3-assistant-fake{margin-left:auto;flex:none;display:flex;align-items:center;gap:8px;background:#e7e4da;border:1px solid #d8d4c6;border-radius:999px;padding:7px 8px 7px 14px;min-width:230px;max-width:320px;width:28%}
.v3-workspace .v3-assistant-fake span{font-size:12.5px;color:#a3a49b;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v3-workspace .v3-assistant-fake i{width:26px;height:26px;border-radius:50%;background:#cfccc0;display:flex;align-items:center;justify-content:center;font-style:normal;color:#fff;flex:none}
.v3-workspace .v3-assistant-fake i .icon{width:13px;height:13px}
/* ---------- states & footer ---------- */
.v3-workspace .v3-page-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#748075;font-size:11.5px;line-height:1.8;margin-top:18px}
.v3-workspace .v3-page-foot .v4-source-time{display:inline;margin:0;padding:0;font-size:11.5px}
.v3-workspace .v3-loading,.v3-workspace .v3-chart-empty{min-height:230px;padding:35px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;color:var(--v3-muted);font-size:14px;line-height:1.8}
.v3-workspace .v3-chart-empty strong{font-size:16px;color:var(--v3-ink)}
.v3-workspace .v3-chart-empty>.icon{width:30px;height:30px}
.v3-workspace .v3-card.v3-chart-empty{margin-top:16px}
.v3-workspace .v3-small-empty{padding:22px 12px;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--v3-muted);font-size:13.5px;text-align:center;line-height:1.8}
.v3-workspace .v3-inline-warning{padding:12px 2px;color:#a76522;font-size:13px;line-height:1.8}
.v3-workspace .v3-error{padding:13px 17px;border:1px solid #e8c5b8;border-radius:12px;background:#fff1e9;color:#9e4a2c;font-size:14px;line-height:1.8;margin:16px 0 0}
/* ---------- detail sheet (modal) ---------- */
body .v3-detail-sheet{width:690px!important;max-width:calc(100vw - 28px)!important;max-height:94dvh;border-radius:18px;background:var(--v3-card);overflow:hidden}
.v3-detail-sheet .modal-body{padding:22px;overflow:auto}
.v3-detail-sheet .v3-photo{width:52px;height:52px;border:1px solid var(--v3-line);border-radius:12px;background:#efeee8;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.v3-detail-sheet .v3-photo>img{width:100%;height:100%;object-fit:contain;display:block}
.v3-detail-sheet .v3-photo-tag{position:absolute;left:0;right:0;bottom:0;font-size:9px;line-height:1;padding:3px 0;background:rgba(34,49,44,.07);color:var(--v3-faint);font-weight:500;letter-spacing:.06em;text-align:center}
.v3-detail-sheet .v3-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#747f75}
.v3-detail-sheet .v3-photo-empty .icon{width:20px;height:20px}
.v3-detail-sheet .v3-photo-empty small{font-size:10px;line-height:1.2}
.v3-detail-sheet .v3-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:var(--v3-teal-soft);color:var(--v3-teal-dark);font-size:11.5px;font-weight:700;line-height:1.5;white-space:nowrap}
.v3-detail-sheet .v3-badge>i{height:4px;width:4px;border-radius:50%;background:currentColor}
.v3-detail-sheet .v3-badge.v3-risk{color:var(--v3-amber);background:var(--v3-amber-bg)}
.v3-detail-sheet .v3-badge.v3-zero{color:var(--v3-red);background:var(--v3-red-bg)}
.v3-detail-sheet .v3-badge.v3-unknown{color:#67746b;background:#eeefe9}
.v3-detail-sheet .v4-source-time{font-size:11px;line-height:1.7;color:var(--v3-faint)}
.v3-detail-sheet .v4-source-time b{font-weight:500;color:var(--v3-muted)}
.v3-detail-sheet .v3-cell-note{display:block;font-size:11px;line-height:1.6;color:var(--v3-muted);margin-top:3px}
.v3-detail-sheet .v4-sellout{display:inline-block;white-space:nowrap;font-size:13.5px;font-weight:700;padding:4px 8px;background:var(--v3-amber-bg);border:1px solid #f0dfc6;color:var(--v3-amber);border-radius:7px;font-variant-numeric:tabular-nums}
.v3-detail-sheet .v4-sellout.is-unknown{font-size:12px;font-weight:500;background:#eeefe9;border-color:#e3e5da;color:#6f7a70}
.v3-detail-sheet .v4-warehouse-forecast{display:grid;gap:4px;min-width:140px}
.v3-detail-sheet .v4-warehouse-forecast span{display:flex;justify-content:space-between;gap:6px;color:#746b56;font-size:11px}
.v3-detail-sheet .v4-warehouse-forecast b{font-size:12px;color:var(--v3-amber);font-variant-numeric:tabular-nums}
.v3-detail-sheet .v3-small-empty{padding:22px 12px;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--v3-muted);font-size:13.5px;text-align:center;line-height:1.8}
.v3-detail-media{height:240px;display:grid;place-items:center;border:1px solid var(--v3-line);border-radius:14px;background:#f3f1eb;padding:15px}
.v3-detail-media .v3-photo-large{width:100%;height:100%;border:0;border-radius:8px;background:transparent}
.v3-detail-media img{width:100%;height:100%;object-fit:contain}
.v3-detail-title{padding:18px 0 0}
.v3-detail-title h3{font-size:19px;line-height:1.5;color:var(--v3-ink);margin:10px 0 6px}
.v3-detail-title p{font-size:13px;line-height:1.8;color:var(--v3-muted);margin:0;overflow-wrap:anywhere}
.v3-detail-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.v3-detail-kpis>div{background:#fbfaf6;border:1px solid var(--v3-line-soft);border-radius:10px;padding:13px 15px}
.v3-detail-kpis span{font-size:12px;color:var(--v3-muted)}
.v3-detail-kpis strong{display:block;font-size:24px;font-weight:800;color:var(--v3-teal-dark);line-height:1.4;margin-top:4px;font-variant-numeric:tabular-nums}
.v3-detail-kpis small{font-size:11px;color:var(--v3-muted)}
.v3-detail-section{border-top:1px solid var(--v3-line);padding-top:17px;margin-top:19px}
.v3-detail-section h3{font-size:15px;color:var(--v3-ink);margin:0 0 12px}
.v3-detail-section p{font-size:13px;line-height:1.9;color:var(--v3-muted);margin:8px 0}
.v3-warehouse-cards,.v4-inbound-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v3-warehouse-cards article,.v4-inbound-list article{padding:13px 15px;border:1px solid var(--v3-line-soft);border-radius:10px;background:#fbfaf6;min-width:0}
.v3-warehouse-cards article>strong,.v4-inbound-list article>strong{font-size:13px;line-height:1.7;color:var(--v3-ink)}
.v3-warehouse-cards article>div{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px;margin:9px 0;color:var(--v3-muted)}
.v3-warehouse-cards b{font-size:17px;font-weight:700;color:var(--v3-teal-dark);font-variant-numeric:tabular-nums}
.v3-warehouse-cards small{font-size:11px;color:var(--v3-muted);line-height:1.8}
.v4-inbound-list p{display:flex;flex-direction:column;gap:5px}
.v4-inbound-list b{color:var(--v3-teal-dark)}
.v3-photo-viewer{width:100%;height:min(65vh,650px);display:grid;place-items:center;background:#f3f1eb;border-radius:12px}
.v3-photo-viewer img{max-width:100%;max-height:100%;object-fit:contain}
.v3-photo-viewer-caption{font-size:13px;color:var(--v3-muted);line-height:1.8;margin:12px 0 0}
/* ---------- responsive ---------- */
@media(min-width:1650px){.v3-workspace .v3-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1250px){
 .v3-workspace .v3-focus-grid{grid-template-columns:1fr}
 .v3-workspace .v3-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v3-workspace .v3-mini-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
 .v3-workspace .v3-page-head{flex-direction:column;align-items:flex-start;gap:14px}
 .v3-workspace .v3-header-actions{justify-content:flex-start;max-width:100%}
 .v3-workspace .v3-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .v3-workspace .v3-catalog-caption{flex-direction:column;gap:4px}
 .v3-workspace .v3-catalog-caption>span{text-align:left}
 .v3-workspace .v3-tools-end{margin-left:0}
}
@media(max-width:760px){
 .v3-workspace,.v3-detail-sheet{font-size:14.5px}
 .v3-workspace .v3-page-head h1{font-size:24px}
 .v3-workspace .v3-header-actions{width:100%;gap:8px}
 .v3-workspace .v4-period-select{width:100%;font-size:14px}
 .v3-workspace .v4-period-select select{flex:1;max-width:240px;font-size:14px;min-height:42px}
 .v3-workspace .btn{font-size:14px;min-height:42px}
 .v3-workspace .v3-kpis{gap:10px}
 .v3-workspace .v3-kpi{padding:15px 15px 13px;border-radius:16px}
 .v3-workspace .v3-kpi-num{font-size:26px}
 .v3-workspace .v3-kpi-sub,.v3-workspace .v3-kpi-label{font-size:13px}
 .v3-workspace .v3-card{padding:17px 16px;border-radius:16px}
 .v3-workspace .v3-card-head{margin-bottom:12px;padding-bottom:10px}
 .v3-workspace .v3-card-head h2{font-size:16px}
 .v3-workspace .v3-when{font-size:11.5px}
 .v3-workspace .v3-act-row{gap:10px;padding:12px 0}
 .v3-workspace .v3-act-desc,.v3-workspace .v3-cell-note{font-size:13px}
 .v3-workspace .v3-dyn-row{gap:10px;padding:9px 0;min-height:68px}
 .v3-workspace .v3-photo{width:48px;height:48px;border-radius:11px}
 .v3-workspace .v3-act-icon{width:48px;height:48px;border-radius:11px}
 .v3-workspace .v3-dyn-sku .v3-act-sku{font-size:13.5px}
 .v3-workspace .v3-dyn-sales .n{font-size:16px}
 .v3-workspace .v3-st{min-width:72px;padding:4px 8px;font-size:11.5px}
 .v3-workspace .v4-period-tabs{display:flex}
 .v3-workspace .v4-period-tabs button{flex:1;min-height:38px;font-size:13px}
 .v3-workspace .v3-search{margin-left:0;width:100%;min-width:0;min-height:42px}
 body .v3-workspace .v3-search>input{font-size:16px}
 .v3-workspace .v3-catalog-tools{gap:8px}
 .v3-workspace .v3-tools-end{width:100%;justify-content:space-between}
 .v3-workspace .v3-tools-end>select{flex:1;max-width:calc(100% - 130px);font-size:14px;min-height:42px}
 .v3-workspace .v3-display-switch>button{width:40px;height:38px}
 .v3-workspace .v3-filter-tabs>button{font-size:13.5px;min-height:40px}
 .v3-workspace .v3-table-scroll{overflow:visible}
 .v3-workspace .v3-products-table{display:block;min-width:0;width:100%}
 .v3-workspace .v3-products-table thead{display:none}
 .v3-workspace .v3-products-table tbody{display:grid;gap:12px}
 .v3-workspace .v3-products-table tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--v3-line);border-radius:12px;overflow:hidden;background:var(--v3-card)}
 .v3-workspace .v3-products-table td{display:block;padding:11px 13px;border-bottom:1px solid var(--v3-line-soft);font-size:14px;min-width:0;width:auto;text-align:left;background:transparent}
 .v3-workspace .v3-products-table td.v3-select-cell{position:absolute;top:8px;right:7px;left:auto;z-index:2;width:40px;min-height:40px;padding:10px;border:0}
 .v3-workspace .v3-products-table td.v3-product-cell{grid-column:1/-1;padding-right:52px;max-width:none}
 .v3-workspace .v3-products-table td.v3-photo-cell{width:auto}
 .v3-workspace .v3-products-table td.v3-photo-cell .v3-photo{width:56px;height:56px;border-radius:11px}
 .v3-workspace .v3-products-table td[data-label]:before{content:attr(data-label);display:block;font-size:12.5px;font-weight:600;color:var(--v3-muted);margin-bottom:6px}
 .v3-workspace .v3-products-table td.v3-sales-cell{white-space:normal}
 .v3-workspace .v3-products-table .v3-warehouse-cell:nth-of-type(2n){border-right:1px solid var(--v3-line-soft)}
 .v3-workspace .v3-cell-pair{justify-content:space-between}
 .v3-workspace .v3-cell-pair>span{font-size:13px}
 .v3-workspace .v3-cell-pair>b{font-size:16px;white-space:normal;overflow-wrap:anywhere}
 .v3-workspace .v3-products-table td.v3-total-cell,.v3-workspace .v3-products-table td.v3-forecast-cell,.v3-workspace .v3-products-table td.v3-status-cell,.v3-workspace .v3-products-table td.v3-row-actions{grid-column:1/-1}
 .v3-workspace .v3-total-cell .v3-cell-pair{display:inline-flex;margin-right:18px}
 .v3-workspace .v3-products-table td.v3-row-actions{border-bottom:0;text-align:right;padding-top:6px;padding-bottom:6px}
 .v3-workspace .v4-sellout{font-size:15px}
 .v3-workspace .v4-sellout.is-unknown{font-size:13.5px}
 .v3-workspace .v3-table-bottom{padding:13px 2px 0;font-size:13.5px;justify-content:center}
 .v3-workspace .v3-products-grid{grid-template-columns:1fr;padding:12px 0 2px;gap:12px}
 .v3-workspace .v3-bulk-bar{max-width:100%;width:100%;gap:8px;flex-wrap:wrap;padding:10px 12px;bottom:12px;font-size:14px}
 .v3-workspace .v3-mini-row{grid-template-columns:1fr 1fr;gap:10px}
 .v3-workspace .v3-assistant-bar .v3-assistant-fake{display:none}
 .v3-workspace .v3-page-foot{font-size:12px;flex-direction:column;gap:7px}
 body .v3-detail-sheet{max-width:calc(100vw - 20px)!important;border-radius:14px}
 .v3-detail-sheet .modal-body{padding:16px}
 .v3-detail-media{height:220px}
 .v3-detail-kpis{grid-template-columns:1fr;gap:8px}
 .v3-detail-kpis>div{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px}
 .v3-detail-kpis strong{font-size:24px;margin:0}
 .v4-inbound-list{grid-template-columns:1fr}
}
@media(max-width:380px){
 .v3-workspace .v3-kpis{grid-template-columns:1fr}
 .v3-workspace .v3-mini-row{grid-template-columns:1fr}
 .v3-workspace .v3-warehouse-cards{grid-template-columns:1fr}
 .v3-workspace .v3-act-row{flex-wrap:wrap}
 .v3-workspace .v3-act-row>.v3-link{margin-left:60px}
}
@media(prefers-reduced-motion:reduce){.v3-workspace *,.v3-detail-sheet *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* v8: 热销款动态右侧剩余库存 */
.v3-dyn-stock{display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right;flex:none}
.v3-dyn-stock-label{font-size:11px;color:var(--muted,#5c6a63);letter-spacing:.02em}
.v3-dyn-stock-num{font-size:19px;font-weight:700;color:var(--ink,#22312c);line-height:1.15}
.v3-dyn-stock-num small{font-size:11px;font-weight:600;color:var(--muted,#5c6a63)}
.v3-dyn-stock-part{font-style:normal;font-size:11px;color:var(--muted,#5c6a63)}
/* v8: KPI 卡可点击 */
a.v3-kpi-act,button.v3-kpi-act{text-decoration:none;cursor:pointer;font:inherit;text-align:left;width:100%}
a.v3-kpi-act:hover,button.v3-kpi-act:hover{border-color:var(--teal,#0f766e)}

/* v8-mod: 在途与补货模块（products 视图）—— 故事线：已经断货 / 快撑不住 / 全部在途 */
.v8-mod-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--v3-line-soft);border-radius:14px;overflow:hidden;background:#fffdf9;margin:0 0 16px}
.v8-mod-stat{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:14px 18px 13px;position:relative;min-width:0}
.v8-mod-stat::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--v3-line-soft)}
.v8-mod-stat.is-red::before{background:#b3352c}
.v8-mod-stat.is-amber::before{background:#d9a441}
.v8-mod-stat.is-green::before{background:var(--v3-teal-dark)}
.v8-mod-stat+.v8-mod-stat{border-left:1px solid var(--v3-line-soft)}
.v8-mod-stat:hover{background:#faf7ef}
.v8-mod-stat:focus-visible{outline:3px solid #68a89c;outline-offset:-3px}
.v8-mod-stat-label{font-size:13px;font-weight:700;color:var(--v3-ink);letter-spacing:.02em}
.v8-mod-stat-num{font-size:26px;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--v3-ink)}
.v8-mod-stat.is-red .v8-mod-stat-num{color:#b3352c}
.v8-mod-stat.is-amber .v8-mod-stat-num{color:var(--v3-amber)}
.v8-mod-stat.is-green .v8-mod-stat-num{color:var(--v3-teal-dark)}
.v8-mod-stat-num small{font-size:13px;font-weight:600;color:var(--v3-muted);margin:0 2px}
.v8-mod-stat-sub{font-size:12px;color:var(--v3-muted);line-height:1.5}
.v8-mod{display:flex;flex-direction:column;gap:16px}
.v8-mod-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v8-mod-search .v3-search{margin-left:0}
.v8-mod-search-note{font-size:12px;color:var(--v3-faint)}
.v8-mod-card{margin:0;scroll-margin-top:12px}
.v8-mod-list{display:flex;flex-direction:column}
.v8-mod-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--v3-line-soft)}
.v8-mod-row:last-child{border-bottom:0}
.v8-mod-row .v3-photo{width:52px;height:52px;border-radius:11px}
.v8-mod-row .v3-product-line{flex:0 1 300px}
.v8-mod-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px}
.v8-mod-line{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.v8-mod-tag{font-size:12px;font-weight:700;white-space:nowrap}
.v8-mod-tag.is-road{color:var(--v3-teal-dark)}
.v8-mod-tag.is-none{color:#b3352c}
.v8-mod-days{font-variant-numeric:tabular-nums}
.v8-mod-days.is-danger{color:#b3352c}
.v8-mod-days.is-warn{color:var(--v3-amber)}
.v8-mod-days.is-calm{color:#4c5f55}
.v8-mod-split{display:flex;flex-wrap:wrap;gap:6px}
.v8-mod-wh{font-size:12px;color:var(--v3-muted);background:#f4f1e8;border:1px solid var(--v3-line-soft);border-radius:999px;padding:2px 9px;white-space:nowrap}
.v8-mod-wh b{color:var(--v3-ink);font-variant-numeric:tabular-nums}
.v8-mod-batches{display:flex;flex-wrap:wrap;gap:4px 14px}
.v8-mod-batch{font-size:12px;color:var(--v3-muted)}
.v8-mod-batch b{color:var(--v3-teal-dark);font-variant-numeric:tabular-nums}
.v8-mod-batch.is-pending{color:var(--v3-amber)}
.v8-mod-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right}
.v8-mod-side-label{font-size:11px;color:var(--v3-muted)}
.v8-mod-num{font-size:20px;font-weight:800;color:var(--v3-ink);line-height:1.15;font-variant-numeric:tabular-nums}
.v8-mod-num small{font-size:11px;font-weight:600;color:var(--v3-muted)}
.v8-mod-part{font-style:normal;font-size:11px;color:var(--v3-muted)}
.v8-mod-fact{font-size:13.5px;color:var(--v3-ink)}
.v8-mod-fact b{font-variant-numeric:tabular-nums}
.v8-mod-hint{font-size:12px;color:var(--v3-amber)}
.v8-mod-note{font-size:12px;color:var(--v3-faint);line-height:1.7;padding:0 2px}
@media(max-width:820px){
 .v8-mod-strip{grid-template-columns:1fr}
 .v8-mod-stat+.v8-mod-stat{border-left:0;border-top:1px solid var(--v3-line-soft)}
 .v8-mod-row{flex-wrap:wrap;gap:10px}
 .v8-mod-row .v3-product-line{flex:1 1 200px}
 .v8-mod-main{flex:1 1 220px}
 .v8-mod-side{flex-direction:row;align-items:baseline;gap:6px;text-align:left}
 .v8-mod-search .v3-search{flex:1 1 100%}
}

/* v10: 四仓明细重点分级 */
.v3-workspace .v4-sellout.is-danger,.v3-detail-sheet .v4-sellout.is-danger{background:#f9e3df;border-color:#eec5bd;color:#b3352c}
.v3-workspace .v4-sellout.is-warn,.v3-detail-sheet .v4-sellout.is-warn{background:var(--v3-amber-bg);border-color:#f0dfc6;color:var(--v3-amber)}
.v3-workspace .v4-sellout.is-calm,.v3-detail-sheet .v4-sellout.is-calm{background:#e9efe9;border-color:#d8e0d6;color:#4c5f55;font-weight:600}
.v3-workspace .v3-products-table tr.is-critical>td{background:#faf1ed}
.v3-workspace .v3-products-table tr.is-critical>td:first-child{box-shadow:inset 3px 0 0 #b3352c}
.v3-workspace .v3-products-table tr.is-watch>td{background:#faf6ec}
.v3-workspace .v3-products-table tr.is-watch>td:first-child{box-shadow:inset 3px 0 0 #d9a441}
.v3-workspace .v3-total-cell .v3-cell-pair.is-zero>b{color:#b3352c;font-size:16px}
.v3-workspace .v3-total-cell .v3-cell-pair.is-sub.is-onway>b{color:var(--v3-teal-dark);font-size:13.5px;font-weight:800}
.v3-workspace .v3-warehouse-cell .v3-cell-pair>b{color:#43534b;font-weight:600}
.v3-workspace .v3-warehouse-cell .v3-cell-pair.is-sub{opacity:.72}
.v3-detail-kpis>button.v3-detail-kpi-btn{background:#fbfaf6;border:1px solid var(--v3-line-soft);border-radius:10px;padding:13px 15px;text-align:left;cursor:pointer;font:inherit;width:100%}
.v3-detail-kpis>button.v3-detail-kpi-btn:hover{border-color:var(--v3-teal,#0f766e)}

/* v11: dyn days fragment + page-size selector + lookup card spacing */
.v3-dyn-days{font-size:12px;color:var(--v3-faint);white-space:nowrap}
.v3-pagesize{display:inline-flex;align-items:center;gap:6px;margin-right:10px;font-size:12.5px;color:var(--v3-muted)}
.v3-pagesize select{padding:5px 8px;border:1px solid var(--v3-line);border-radius:8px;background:#fffdf9;color:var(--v3-ink);font-size:12.5px}
.v8-mod-lookup{margin-top:2px}

/* v12: act panel see-all line */
.v3-workspace .v3-act-more{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 0;font-size:12.5px;color:var(--v3-muted)}

/* v13: multi-key sort chips + centered forecast/status columns */
.v3-sort-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 2px;font-size:12.5px;color:var(--v3-muted)}
.v3-sort-chip{display:inline-flex;align-items:center;gap:7px;padding:4px 6px 4px 10px;border:1px solid var(--v3-line);border-radius:999px;background:#fffdf9;color:var(--v3-ink)}
.v3-sort-chip b{color:#0f766e;font-size:11px}
.v3-sort-chip button{border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;color:var(--v3-muted);padding:2px 4px}
.v3-sort-arrow{color:var(--v3-faint)}
.v3-sort-clear{border:0;background:transparent;color:#0f766e;cursor:pointer;font-size:12.5px;padding:4px 6px}
.v3-sort-pri{font-size:9px;color:#0f766e;margin-left:1px}
.v3-workspace .v3-products-table th.is-center{text-align:center}
.v3-workspace .v3-products-table th.is-center .v3-sort-heading{margin:0 auto}
.v3-workspace .v3-products-table .v3-forecast-cell{text-align:center}
.v3-workspace .v3-products-table .v3-forecast-cell .v3-cell-note{display:block;text-align:center}
.v3-workspace .v3-products-table .v3-status-cell{text-align:center}

/* v14: products table all-centered, bigger photos, group tags */
.v3-workspace .v3-products-table th{text-align:center}
.v3-workspace .v3-products-table td{text-align:center}
.v3-workspace .v3-products-table .v3-cell-pair{justify-content:center}
.v3-workspace .v3-products-table .v3-name-button{text-align:center;align-items:center}
.v3-workspace .v3-products-table .v3-photo{width:84px;height:84px}
.v3-workspace .v3-products-table .v3-select-cell{text-align:center}
.v3-st.is-grey{background:#eceae4;color:#5c6a63}
.v3-clear-tag{display:inline-flex;padding:2px 8px;border-radius:999px;background:#fdf3e0;color:#9b5519;font-size:11px;font-weight:600}
@media (max-width:820px){.v3-workspace .v3-products-table .v3-photo{width:72px;height:72px}}

/* v17: SKU thumbnails — uniform square crop, centered (no contain letterbox) */
.v3-workspace .v3-photo>img{object-fit:cover}
.v3-workspace .v3-photo-button{display:flex;align-items:center;justify-content:center}
.v3-workspace .v3-products-table .v3-photo{width:84px;height:84px}
.v3-workspace .v3-photo-cell{text-align:center;width:96px}
.v3-detail-sheet .v3-photo>img{object-fit:cover}
@media(max-width:820px){.v3-workspace .v3-products-table .v3-photo{width:72px;height:72px}}

/* v18: clearance tag redesign — compact squared label inline with the SKU */
.v3-workspace .v3-name-line{display:inline-flex;align-items:center;flex-wrap:wrap;row-gap:2px}
.v3-workspace .v3-clear-tag{display:inline-flex;align-items:center;padding:1px 6px;margin-left:8px;border:1px solid #e0c184;border-radius:5px;background:#f8ecd2;color:#7c4d12;font-size:10px;font-weight:700;letter-spacing:.08em;line-height:1.5;white-space:nowrap}

/* v19: act panel fold toggle */
.v3-workspace .v3-act-fold[hidden]{display:none}
.v3-workspace .v3-act-toggle{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;margin-top:4px;border:0;border-top:1px dashed var(--v3-line);background:transparent;color:var(--v3-teal);font-size:12.5px;font-weight:600;cursor:pointer}
.v3-workspace .v3-act-toggle:hover{background:#f2f8f5}

/* Per-SKU batch history and separately labelled stock-age snapshots. */
.v9-batch-list{display:grid;gap:16px}.v9-batch-warehouse{min-width:0;border:1px solid #e4e8df;border-radius:12px;padding:14px;background:#fafbf7}.v9-batch-warehouse h4{margin:0 0 6px;font-size:14px}.v9-batch-card{margin-top:12px;padding:14px;border:1px solid #e5e8df;border-radius:10px;background:#fff}.v9-batch-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v9-batch-card>header>strong{overflow-wrap:anywhere;font-size:13px}.v9-batch-card dl{margin:12px 0 0;display:grid;gap:9px}.v9-batch-card dl>div{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.4fr);gap:10px;font-size:12px;line-height:1.7}.v9-batch-card dt{color:#66796c}.v9-batch-card dd{margin:0;overflow-wrap:anywhere}.v9-batch-note{font-size:12px!important;color:#6b7b70!important;line-height:1.8}.v9-batch-warning{font-size:12px!important;line-height:1.8;color:#95611d!important;background:#fff5e4;border-radius:6px;padding:8px 10px}.v9-age-days{font-size:16px;font-weight:700;color:#135c50;white-space:nowrap}.v9-batch-events{margin-top:12px;border-top:1px solid #edf0e8;padding-top:9px}.v9-batch-events>summary{cursor:pointer;color:#155f53;font-size:13px;min-height:32px;line-height:32px}.v9-batch-events h5{font-size:12px;margin:12px 0 6px}.v9-batch-events ol{padding-left:18px;font-size:12px}.v9-batch-events li{padding:5px 0;line-height:1.8}.v9-batch-events time{display:block;color:#6b7b70}@media(max-width:600px){.v9-batch-card dl>div{grid-template-columns:1fr;gap:2px}.v9-batch-warehouse{padding:10px}.v9-batch-card{padding:11px}}

/* Product detail only: photo viewer and workspace tables keep their layout. */
body .v3-detail-sheet.v10-product-detail{width:1040px!important}
.v10-product-detail .modal-body{padding:24px;scrollbar-gutter:stable}
.v10-product-overview{display:grid;grid-template-columns:132px minmax(0,1fr);gap:22px;align-items:center}
.v10-product-detail .v3-detail-media{height:132px;padding:8px;border-radius:12px}
.v10-product-detail .v3-detail-media .v3-photo-large{height:100%;width:100%}
.v10-product-detail .v3-detail-media .v3-photo>img{object-fit:contain}
.v10-product-detail .v3-detail-title{padding:0;min-width:0}
.v10-product-detail .v3-detail-title h3{margin:6px 0;font-size:21px}
.v10-product-detail .v3-detail-title p{margin:0}
.v10-product-detail .v3-detail-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.v10-product-detail .v3-detail-kpis>:is(div,button.v3-detail-kpi-btn){display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;min-width:0;min-height:105px;padding:14px 16px;text-align:left}
.v10-product-detail .v3-detail-kpis strong{font-size:24px;margin:0;overflow-wrap:anywhere}
.v10-detail-nav{position:sticky;top:-24px;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0;background:var(--v3-card);border-bottom:1px solid var(--v3-line)}
.v10-detail-nav button{min-height:40px;padding:8px 12px;border:1px solid var(--v3-line);border-radius:8px;background:#f6f8f3;color:var(--v3-teal-dark);font-size:13px;font-weight:600}
.v10-detail-nav button:hover{border-color:var(--v3-teal);background:var(--v3-teal-soft)}
.v10-product-detail .v3-detail-section{margin-top:22px;padding-top:20px;scroll-margin-top:76px}
.v10-product-detail .v3-detail-section:first-of-type{border-top:0}
.v10-section-head,.v10-warehouse-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.v10-section-head{align-items:center;margin-bottom:10px}
.v10-product-detail .v10-section-head h3{margin:0;font-size:16px}
.v10-product-detail .v3-warehouse-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.v10-product-detail .v3-warehouse-cards article{padding:14px}
.v10-product-detail .v3-warehouse-cards article>div{grid-template-columns:1fr auto;gap:6px 12px;margin:10px 0}
.v10-product-detail .v3-warehouse-cards small{display:block;overflow-wrap:anywhere}
.v10-product-detail .v9-batch-list{gap:16px}
.v10-product-detail .v9-batch-warehouse{padding:16px;background:#f7f9f5;border-color:#dfe6dc}
.v10-product-detail .v9-batch-warehouse h4{font-size:14px;margin:0 0 4px}
.v10-product-detail .v4-source-time{color:#627268;line-height:1.65}
.v10-count{display:inline-flex;align-items:center;flex-shrink:0;padding:4px 9px;border-radius:7px;background:#e9f0e9;color:#456453;font-size:11px;font-weight:600;white-space:nowrap}
.v10-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;margin-top:14px}
.v10-product-detail .v9-batch-card{margin:0;min-width:0;padding:16px;border-color:#e0e5db;box-shadow:0 1px 2px rgba(26,53,39,.025)}
.v10-product-detail .v9-batch-card>header{align-items:flex-start;gap:8px}
.v10-product-detail .v9-batch-card>header>strong{flex:1;min-width:0;line-height:1.65}
.v10-product-detail .v9-batch-card dl{margin:14px 0 0;gap:11px}
.v10-product-detail .v9-batch-card dl>div{grid-template-columns:116px minmax(0,1fr);gap:10px;font-size:12px;align-items:start}
.v10-product-detail .v9-batch-card dt{line-height:1.7}
.v10-product-detail .v9-batch-card dd{line-height:1.7;font-variant-numeric:tabular-nums}
.v10-product-detail .v9-batch-card dd>time{display:block;color:#31483f}
.v10-time-note{display:block;margin-top:2px;color:#627268;font-size:10.5px;font-weight:400;line-height:1.6}
.v10-quantities{font-weight:600;color:#275247;font-variant-numeric:tabular-nums}
.v10-quantities>small:not(.v10-time-note){font-weight:400;color:#627268}
.v10-product-detail .v9-age-days{font-size:15px;padding:3px 8px;background:#e7f1e9;border-radius:6px;line-height:1.5}
.v10-product-detail .v9-batch-events{margin-top:14px;padding-top:10px}
.v10-product-detail .v9-batch-events>summary{font-size:12px;line-height:1.7;min-height:36px;padding:7px 0;overflow-wrap:anywhere}
.v10-product-detail .v9-batch-events h5{font-size:13px;margin:14px 0 8px}
.v10-product-detail .v9-batch-events .v10-shipment{font-size:12px;margin:5px 0;overflow-wrap:anywhere}
.v10-product-detail .v9-batch-events .v10-timeline{list-style:none;padding:0 0 0 5px;margin:12px 0}
.v10-product-detail .v10-timeline li{position:relative;display:grid;grid-template-columns:128px minmax(0,1fr);gap:12px;padding:8px 0 12px 14px;border-left:1px solid #cfddd2;font-size:12px;line-height:1.75}
.v10-product-detail .v10-timeline li::before{content:"";position:absolute;left:-3.5px;top:15px;width:6px;height:6px;border-radius:50%;background:#51917e}
.v10-product-detail .v10-timeline time{display:block;color:#486252;font-variant-numeric:tabular-nums}
.v10-event-text{min-width:0;overflow-wrap:anywhere;color:#293f33}
.v10-detail-empty{padding:20px;border:1px dashed #d9e2d5;border-radius:10px;background:#fafbf7;font-size:13px;color:#627268;line-height:1.8}
.v10-sales-summary{display:grid;grid-template-columns:2fr 1fr;gap:16px}
.v10-sales-summary>div{min-width:0;padding:14px 16px;border:1px solid var(--v3-line-soft);border-radius:10px;background:#fbfaf6}
.v10-sales-summary h4{margin:0 0 9px;font-size:12px;color:#627268;font-weight:500}
.v10-product-detail .v10-sales-summary p{margin:5px 0;font-size:12px}
@media(max-width:850px){
 .v10-product-detail .v3-warehouse-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v10-batch-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 .v10-product-detail .modal-body{padding:14px}
 .v10-product-overview{grid-template-columns:88px minmax(0,1fr);gap:14px}
 .v10-product-detail .v3-detail-media{height:100px;padding:5px}
 .v10-product-detail .v3-detail-title h3{font-size:17px;margin:3px 0}
 .v10-product-detail .v3-detail-title p{font-size:12px}
 .v10-product-detail .v3-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
 .v10-product-detail .v3-detail-kpis>:is(div,button.v3-detail-kpi-btn){min-height:96px;padding:11px 12px;gap:3px;flex-wrap:nowrap}
 .v10-product-detail .v3-detail-kpis strong{font-size:22px}
 .v10-detail-nav{top:-14px;gap:5px;padding:9px 0}
 .v10-detail-nav button{font-size:11px;padding:8px 4px}
 .v10-product-detail .v9-batch-warehouse{padding:12px}
 .v10-product-detail .v9-batch-card{padding:13px}
 .v10-product-detail .v9-batch-card dl>div{grid-template-columns:1fr;gap:3px}
 .v10-product-detail .v9-batch-card dl{gap:12px}
 .v10-product-detail .v10-timeline li{grid-template-columns:1fr;gap:4px}
 .v10-sales-summary{grid-template-columns:1fr;gap:10px}
 .v10-product-detail .v10-section-head h3{font-size:15px}
}

/* Maximum-age cohort and its remaining quantity, shared by all accounts. */
.v3-workspace .v3-products-table.has-stock-age{min-width:1550px}
.v3-workspace .v3-max-age-cell{min-width:130px;text-align:center;white-space:nowrap}
.v3-workspace .v3-max-age-value{display:block;color:var(--v3-teal-dark);font-size:14px;font-weight:700;line-height:1.55}
.v3-workspace .v3-max-age-note{display:block;color:var(--v3-muted);font-size:11px;line-height:1.5;white-space:normal}
.v3-workspace .v3-max-age-card{padding:9px 0;border-top:1px solid var(--v3-line-soft)}
@media(max-width:760px){
 .v3-workspace .v3-products-table.has-stock-age{min-width:0}
 .v3-workspace .v3-products-table td.v3-max-age-cell{grid-column:1/-1;text-align:left;min-width:0}
}

.v3-workspace .v3-max-age-quantity-cell{min-width:140px;text-align:center;white-space:nowrap}
.v3-workspace .v3-max-age-quantity{display:block;color:#b42318;font-size:15px;font-weight:750;line-height:1.55}
.v3-workspace .v3-max-age-card{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:760px){.v3-workspace .v3-products-table td.v3-max-age-quantity-cell{grid-column:1/-1;text-align:left;min-width:0}}
