.supply-import-modal{width:min(1200px,calc(100vw - 24px))!important}
.supply-sale-modal{width:min(760px,calc(100vw - 24px))!important}
.supply-import-shell{display:flex;flex-direction:column;gap:14px;max-height:76vh;overflow:auto;min-width:0}
.supply-import-shell .toolbar{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}
.supply-import-shell label,.supply-import-shell button,.supply-import-shell summary,.supply-import-stats span,.supply-sale-form label{white-space:nowrap}
.supply-import-shell .br-data-table{min-height:320px}
.supply-import-stats{display:flex;gap:24px;overflow-x:auto;padding:12px 16px;background:#f7f8fa;border:1px solid #e5e6eb;border-radius:4px}
.supply-import-stats b{font-size:18px;color:#1d2129;margin-right:4px}
.supply-import-progress{display:flex;align-items:center;gap:14px;flex-shrink:0}
.supply-import-progress progress{accent-color:#165dff;flex:1;min-width:100px;height:12px}
.supply-import-shell select{height:32px;max-width:340px;border:1px solid #dcdfe6;border-radius:4px;background:white;padding:0 10px}
.supply-import-shell>p,.supply-import-shell .arco-alert-body{white-space:nowrap;overflow-x:auto}
.supply-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:10px;white-space:nowrap;overflow-x:auto;flex-shrink:0}
.supply-dialog-actions>span{margin-right:auto}
.supply-archive-list summary{cursor:pointer;color:#4e5969}
.supply-archive-list>div{display:flex;flex-direction:column;gap:7px;max-height:180px;overflow:auto;padding:12px;background:#f7f8fa}
.supply-archive-list span{white-space:nowrap}
.supply-base-fields{display:contents}
.catalog-metadata-inner.supply-product-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;align-items:start}
.supply-product-fields .catalog-meta-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:center;overflow:visible}
.supply-product-fields .catalog-meta-row>label{width:auto;white-space:nowrap}
.supply-product-fields .catalog-meta-row:has(>.arco-btn){grid-template-columns:80px minmax(0,1fr) auto}
.supply-product-fields .catalog-meta-count{display:none}
.supply-product-fields .supply-text-row,.supply-product-fields .supply-note-row,.supply-product-fields .catalog-local-category-row,.supply-product-fields .catalog-platform-category-row,.supply-product-fields .catalog-meta-message{grid-column:1/-1}
.supply-product-fields .supply-text-row{align-items:start}
.supply-product-fields .supply-text-row>label{padding-top:8px}
.supply-product-fields .catalog-local-category-row .catalog-meta-value{min-width:0}
.supply-product-fields .catalog-meta-value>strong,.supply-product-fields .catalog-meta-value>span{overflow-x:auto;text-overflow:clip}
.merch-supply-history-only{display:contents}
.supply-base-fields .catalog-meta-value{min-width:0}
.supply-base-fields .catalog-meta-value>span{display:block;max-width:100%;overflow-x:auto;white-space:nowrap}
.supply-base-fields textarea{display:block;width:100%;box-sizing:border-box;min-height:100px;padding:8px 12px;border:1px solid var(--color-border-2);border-radius:4px;background:var(--color-fill-2);color:var(--color-text-1);font:inherit;line-height:1.6;white-space:pre;overflow:auto;resize:vertical}
.supply-base-fields textarea:focus{outline:2px solid rgb(var(--primary-6));outline-offset:1px}
.supply-base-fields textarea:disabled{cursor:not-allowed;opacity:.6}
.supply-sale-modal .arco-modal-body{max-height:calc(100dvh - 160px);overflow:auto}
.supply-text-row{align-items:start}
.supply-sale-summary{display:flex;flex-direction:column;align-items:flex-start;white-space:nowrap}
.supply-sale-identity{font-weight:600;white-space:nowrap;overflow-x:auto;margin-bottom:20px}
.supply-sale-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.supply-sale-form>label,.supply-package-fields>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#4e5969}
.supply-sale-form label>span{color:#1d2129;white-space:nowrap;overflow-x:auto}
.supply-wide{grid-column:1/-1}
.supply-package-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.supply-verification-note{padding:10px 12px;background:#fff7e8;color:#ad6800;border-radius:4px;line-height:1.7;white-space:pre;overflow-x:auto}
.supply-reference-images{margin-top:18px}
.supply-reference-images summary{cursor:pointer;white-space:nowrap}
.supply-reference-images>div{display:flex;gap:10px;overflow-x:auto;margin-top:10px}
.supply-reference-images button{padding:0;border:1px solid #e5e6eb;background:white;border-radius:4px;cursor:pointer}
.supply-reference-images img{display:block;width:100px;height:100px;object-fit:contain}
@media(max-width:650px){.supply-import-shell{max-height:76vh}
.supply-import-stats{gap:18px}
.supply-dialog-actions>span{max-width:150px;overflow-x:auto}
.supply-sale-form{grid-template-columns:1fr}
.supply-package-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.supply-import-shell .toolbar-tail{margin-left:0}}
@media(max-width:1100px){.catalog-metadata-inner.supply-product-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.supply-product-fields .catalog-meta-row{grid-template-columns:minmax(0,1fr);gap:6px}
.supply-product-fields .catalog-meta-row:has(>.arco-btn){grid-template-columns:minmax(0,1fr) auto}
.supply-product-fields .catalog-meta-row>label{grid-column:1/-1}
.supply-product-fields .supply-text-row>label{padding-top:0}}
/* Supply detail workspace: one action area and one visible content panel. */
.supply-detail-page{container:supply-detail / inline-size;gap:12px;min-width:0}
.supply-detail-page .supply-detail-header{position:sticky;top:0;z-index:3;display:flex;flex:none;flex-direction:column;align-items:stretch;height:auto;min-height:0;min-width:0;padding:14px 20px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);color:#111;box-sizing:border-box}
main:has(.supply-detail-page)>.page-title>.cal-chip{display:none}
.supply-header-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;min-width:0}
.supply-header-actions{display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap}
.supply-header-actions>.arco-btn{flex:none;white-space:nowrap}
.supply-detail-page .supply-back-button{min-width:32px;padding:0 6px;color:var(--color-text-2)}
.supply-back-label{margin-left:4px}
.supply-unsaved{font-size:12px;color:#b88230;white-space:nowrap}
.supply-product-heading{min-width:0}
.supply-title-line{display:flex;align-items:center;gap:16px;min-width:0;overflow-x:auto;white-space:nowrap}
.supply-product-heading h2{margin:0;flex:none;font-size:20px;line-height:28px;font-weight:600;white-space:nowrap}
.supply-product-pt{margin:2px 0 0;color:var(--color-text-2);font-size:13px;line-height:20px;white-space:nowrap;overflow-x:auto}
.supply-product-meta{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--color-text-3);white-space:nowrap;flex:none}
.supply-product-meta>*{flex:none}
.supply-product-code{font-family:ui-monospace,monospace;color:var(--color-text-2);background:var(--color-fill-1);padding:3px 8px;border-radius:4px}
.supply-detail-workspace{min-width:0;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.supply-detail-navigation.ax-segment{align-items:center;gap:2px;margin:12px 16px 0;padding:2px;height:auto;flex-wrap:nowrap;max-width:calc(100% - 32px);overflow-x:auto;border-bottom:0}
.supply-detail-navigation.ax-segment>button{min-height:28px;padding:0 10px;font-size:14px;font-weight:500}
.supply-detail-navigation.ax-segment>button[aria-selected="true"]::after{display:none}
.supply-detail-navigation.ax-segment>button:disabled{cursor:not-allowed;opacity:.55}
.supply-detail-workspace>.supply-detail-navigation.ax-segment+.supply-detail-panel{border-top:1px solid var(--color-border-2);margin-top:12px}
.supply-detail-panel{min-width:0}
.supply-panel-content{padding:18px 24px;min-width:0}
.supply-information-block>h3{font-size:15px;font-weight:600;line-height:24px;margin:0 0 16px}
.supply-detail-page .catalog-metadata-inner.supply-product-fields{gap:12px 28px;max-width:1040px}
.supply-detail-page .supply-product-fields .catalog-meta-row{gap:12px}
.supply-detail-page .supply-product-fields .catalog-meta-row>label{color:var(--color-text-3);font-size:13px}
.supply-detail-page .supply-product-fields .catalog-meta-value{font-size:14px;color:var(--color-text-1);min-width:0;width:100%;max-width:640px}
.supply-detail-page .supply-product-fields .supply-code-field .catalog-meta-value{max-width:320px}
.supply-detail-page .supply-product-fields .supply-material-field .catalog-meta-value{max-width:400px}
.supply-detail-page .supply-product-fields .catalog-platform-category-row .catalog-meta-value{max-width:none}
.supply-detail-page .supply-product-fields .arco-input-wrapper,.supply-detail-page .supply-product-fields .arco-select-view{width:100%;max-width:none;border:1px solid var(--color-border-3);border-radius:5px;background:var(--color-bg-2);box-sizing:border-box}
.supply-detail-page .supply-product-fields textarea{min-height:96px;background:var(--color-bg-2);border-color:var(--color-border-3);line-height:1.6}
.supply-detail-page .supply-product-fields .catalog-meta-hint{grid-column:2/-1}
.supply-detail-page:not(.is-editing) .supply-product-fields .catalog-meta-row{padding-bottom:10px;border-bottom:1px solid var(--color-border-1)}
.supply-detail-page:not(.is-editing) .supply-product-fields .supply-text-row>label{padding-top:4px}
.supply-detail-page:not(.is-editing) .supply-product-fields .supply-text-row{padding-bottom:0;border-bottom:0}
.supply-point-list{margin:0;padding:0;list-style:none}
.supply-point-list>li{position:relative;padding:3px 0 3px 16px;line-height:24px;white-space:nowrap;overflow-x:auto}
.supply-point-list>li::before{content:"";position:absolute;left:2px;top:13px;width:4px;height:4px;border-radius:50%;background:var(--color-text-3)}
.supply-panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;min-width:0;white-space:nowrap}
.supply-panel-toolbar>strong{font-size:14px;font-weight:500}
.supply-panel-tools{display:flex;align-items:center;gap:12px;white-space:nowrap;flex:none}
.supply-panel-tools>.muted{font-size:12px}
.supply-spec-panel .br-data-table{margin-bottom:0}
.supply-spec-panel .catalog-total-line{font-weight:600}
.supply-links-content>.card,.supply-links-content .supply-link-panel{margin-top:0}
@container supply-detail (max-width:700px){
 .supply-detail-page .supply-detail-header{padding:10px 16px}
 .supply-header-top{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}
 .supply-header-actions{grid-column:2;grid-row:1}
 .supply-product-heading{grid-column:1/-1;grid-row:2}
 .supply-product-heading h2{font-size:19px;line-height:28px}
 .supply-product-meta{gap:12px}
 .supply-detail-navigation.ax-segment{margin:12px 12px 0;max-width:calc(100% - 24px)}
 .supply-panel-content{padding:20px 16px}
 .supply-detail-page .catalog-metadata-inner.supply-product-fields{grid-template-columns:minmax(0,1fr);gap:14px}
 .supply-detail-page .supply-product-fields .catalog-meta-row{grid-template-columns:minmax(0,1fr);gap:7px}
 .supply-detail-page .supply-product-fields .catalog-meta-row:has(>.arco-btn){grid-template-columns:minmax(0,1fr) auto}
 .supply-detail-page .supply-product-fields .catalog-meta-row>label{grid-column:1/-1}
 .supply-detail-page .supply-product-fields .catalog-meta-hint{grid-column:1/-1}
 .supply-detail-page .supply-product-fields .supply-text-row>label{padding-top:0}
 .supply-unsaved{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .supply-panel-toolbar{align-items:flex-start;flex-direction:column;gap:12px}
 .supply-panel-tools{max-width:100%;overflow-x:auto}
}
@container supply-detail (max-width:360px){
 .supply-back-label{display:none}
 .supply-header-actions{gap:6px}
 .supply-header-actions>.arco-btn{padding:0 10px}
 .supply-detail-navigation.ax-segment>button{font-size:13px}
}
@media(pointer:coarse){.supply-detail-page .supply-header-actions .arco-btn,.supply-detail-page .supply-back-button{min-height:44px}
.supply-detail-page .supply-product-fields .arco-input-wrapper{min-height:44px}}
@container supply-detail (max-width:700px){#supply-panel-history .catalog-section-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}#supply-panel-history .catalog-section-tools>strong{grid-column:1/-1}#supply-panel-history .catalog-section-tools>.arco-select{width:100%!important;min-width:0}}
.supply-spec-panel{min-width:0;border-top:1px solid var(--color-border-2)}
.supply-section-heading{display:flex;align-items:center;gap:12px;white-space:nowrap;min-width:0}
.supply-section-heading>h3{margin:0;font-size:15px;font-weight:600;line-height:24px}
.supply-section-heading>span{font-size:12px;color:var(--color-text-3)}
.supply-detail-page .supply-product-fields .catalog-meta-row{grid-column:1/-1}
.supply-detail-page .supply-product-fields .supply-name-field{grid-column:auto}
.supply-spec-table .catalog-row-picture{display:flex;flex-direction:column;align-items:center;gap:4px}
.supply-spec-table .catalog-row-picture .pricing-thumb{width:56px;height:56px}
.supply-reference-cell{display:flex;align-items:center;gap:6px;max-width:100%;overflow-x:auto}
.supply-reference-cell .pricing-thumb{width:56px;height:56px;flex:none}
.supply-images-modal{width:min(900px,calc(100vw - 24px))!important}
.supply-images-shell{display:flex;flex-direction:column;gap:16px;max-height:76vh;min-width:0;overflow:auto}
.supply-images-shell .toolbar{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}
.supply-image-identity{white-space:nowrap;overflow-x:auto}
.supply-images-shell .toolbar>.arco-input-wrapper{flex:1;min-width:160px}
.supply-current-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.supply-current-images>article{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--color-border-2);border-radius:6px;padding:10px}
.supply-image-preview{width:100%;height:140px;border:0;background:var(--color-fill-1);cursor:zoom-in}
.supply-image-preview img{width:100%;height:100%;object-fit:contain}
.supply-image-current{display:grid;place-items:center;min-height:32px;color:rgb(var(--primary-6));font-size:13px;white-space:nowrap}
.supply-ai-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.supply-ai-grid>button{display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-2);color:var(--color-text-1);font:inherit;text-align:left;cursor:pointer}
.supply-ai-grid>button:hover{border-color:rgb(var(--primary-6))}
.supply-ai-grid>button:focus-visible{outline:2px solid rgb(var(--primary-6));outline-offset:2px}
.supply-ai-grid>button:disabled{cursor:wait;opacity:.6}
.supply-ai-grid img,.supply-ai-grid>button>span{width:100%;height:150px;object-fit:contain;background:var(--color-fill-1)}
.supply-ai-grid strong,.supply-ai-grid small{display:block;width:100%;font-size:12px;font-weight:400;white-space:nowrap;overflow-x:auto}
.supply-ai-grid small{color:var(--color-text-3)}
.supply-images-shell button{white-space:nowrap}
@media(pointer:coarse){.supply-images-shell .arco-btn{min-height:44px}}
.supply-images-shell .supply-dialog-actions>span{min-width:0;overflow-x:auto}
.supply-images-shell .supply-dialog-actions>.arco-btn{flex:none}
.supply-image-dropzone{display:flex;align-items:center;justify-content:center;gap:18px;min-height:110px;padding:20px;border:1px dashed var(--color-border-3);border-radius:6px;background:var(--color-fill-1);white-space:nowrap;box-sizing:border-box;overflow-x:auto}
.supply-image-dropzone.dragging,.catalog-row-picture:focus-visible{outline:2px solid rgb(var(--primary-6));outline-offset:2px;background:var(--color-primary-light-1)}
.supply-image-dropzone>span{font-size:13px;color:var(--color-text-2);white-space:nowrap}
.supply-image-dropzone>.arco-btn{flex:none}
@media(max-width:600px){.supply-image-dropzone{align-items:flex-start;flex-direction:column;gap:12px}}
.catalog-meta-row.supply-source-row>label{width:auto;flex:none}
.supply-source-row .catalog-meta-value{min-width:0;max-width:640px;overflow:hidden}
.supply-source-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--primary-6))}
.supply-source-link:focus-visible{outline:2px solid rgb(var(--primary-6));outline-offset:-2px}
@media(min-width:601px){.supply-product-fields .catalog-meta-row.supply-source-row{grid-template-columns:max-content minmax(0,1fr)}}
