.product-catalog-ai,.product-selection-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-catalog-ai{padding:16px 22px;background:#eef6ff;border-bottom:1px solid #cfe2fa}.product-catalog-ai>div:first-child{min-width:260px;flex:1}.product-catalog-ai p{margin:4px 0 0}.product-catalog-ai label{display:grid;gap:5px;min-width:260px}.product-catalog-summary{margin:12px 22px;padding:14px;border:1px solid #cfe0f5;border-radius:9px;background:#f8fbff}.product-catalog-summary p{margin:7px 0}.catalog-basis{margin-left:12px;color:#6d7e94}.keyword-chip{display:inline-block;margin:4px;padding:5px 9px;border:1px solid #80b5f2;border-radius:999px;background:#fff;color:#124f95}.product-bulk-tools{display:grid;grid-template-columns:repeat(4,minmax(245px,1fr));gap:6px;padding:6px 22px;background:#fffaf0;border-bottom:1px solid #f0dfbd;align-items:start}.product-bulk-tool{display:flex;flex-direction:row;align-items:center;align-content:center;flex-wrap:wrap;gap:5px 7px;padding:7px 9px;border:1px solid #ead8b4;border-radius:8px;background:#fff;min-width:0}.product-bulk-tool strong{flex:0 0 100%;font-size:13px;line-height:1.2;color:#132e50}.product-bulk-tool label{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;font-size:12px}.product-bulk-tool input{width:82px;padding:6px}.product-bulk-tool select{max-width:115px;padding:6px}.product-bulk-tool small{display:none}.product-bulk-tool .danger-button{margin:0 0 0 auto;padding:7px 10px;font-size:12px}.bulk-job-progress{display:block;flex:0 0 100%;line-height:1.3;word-break:break-word;font-size:12px}.bulk-job-progress:empty{display:none}.bulk-job-progress.running{color:#1769df;font-weight:700}.bulk-job-progress.completed{color:#08784c;font-weight:700}.bulk-job-progress.failed{color:#c32626;font-weight:700}.product-selection-bar{padding:11px 22px;border-bottom:1px solid #dce5f0;background:#f8fbff}.inline-check{display:flex!important;align-items:center;gap:6px}.inline-check input{width:auto}.product-table-wrap table{min-width:1450px}.product-info-cell{min-width:330px;max-width:520px}.product-manager-thumb,.variant-manager-thumb{object-fit:cover;border:1px solid #d8e1ee;border-radius:7px;cursor:zoom-in}.product-manager-thumb{width:58px;height:58px}.variant-manager-thumb{width:44px;height:44px;margin-top:6px}.product-row td:nth-child(9) input{display:block;width:100px;margin-bottom:5px}.product-row td:last-child button{display:block;margin-bottom:5px;white-space:nowrap}@media(max-width:1250px){.product-bulk-tools{grid-template-columns:repeat(2,minmax(260px,1fr))}}@media(max-width:700px){.product-bulk-tools{grid-template-columns:1fr}}
.product-import-card{display:grid;grid-template-columns:minmax(300px,1fr) minmax(220px,320px) auto;gap:12px;align-items:end;padding:14px 22px;background:#f5f0ff;border-bottom:1px solid #d9ccef}.product-import-card p{margin:5px 0 0}.product-import-card label{display:grid;gap:5px}.product-import-progress,.product-import-summary{grid-column:1/-1;padding:10px 12px;border-radius:8px;background:#fff;border:1px solid #d8cdec}.product-import-progress.running{color:#1769df;font-weight:700}.product-import-progress.completed{color:#08784c;font-weight:700}.product-import-progress.failed{color:#c32626;font-weight:700}.product-import-summary.hidden{display:none}.product-import-summary .import-errors{color:#b42318}.product-import-summary .import-warnings{color:#9a6700}.import-draft-badge{display:inline-block;margin-left:7px;padding:2px 7px;border-radius:999px;background:#efe6ff;color:#6336a7;font-size:12px;font-weight:700}
.product-ai-drawer{position:fixed;inset:20px;z-index:100;background:#fff;border:1px solid #aebdd1;border-radius:14px;box-shadow:0 24px 80px #081a3559;overflow:auto;padding-bottom:80px}.product-ai-drawer .drawer-header{position:sticky;top:0;z-index:6;background:#fff;padding:15px 20px;border-bottom:1px solid #dce5f0;display:flex;align-items:center;justify-content:space-between}.product-ai-drawer h2,.product-ai-drawer h3{margin:0}.product-editor-strip{position:sticky;top:74px;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:9px 14px;background:#eaf2fc;border-bottom:1px solid #c8d8ec;scrollbar-width:thin}.product-strip-item{flex:0 0 225px;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #b9cae0;background:#fff;border-radius:8px;padding:7px;color:#183858}.product-strip-item.active{border:2px solid #1769df;background:#edf5ff;box-shadow:0 0 0 2px #a9ccf7}.product-strip-item img,.product-strip-index{width:42px;height:42px;flex:0 0 42px;object-fit:cover;border-radius:6px;background:#dce9f8;display:grid;place-items:center;font-weight:800}.product-strip-item>span:last-child{min-width:0}.product-strip-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-strip-item small{display:block;margin-top:3px}.draft-ready{color:#07834f}.draft-pending{color:#8a6b20}.product-ai-toolbar{padding:14px 20px;background:#f4f8fd;border-bottom:1px solid #dce5f0}.product-field-choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.product-field-choices label{display:flex;align-items:center;gap:5px;padding:6px 9px;background:#fff;border:1px solid #c8d6e8;border-radius:7px}.product-field-choices input{width:auto}.product-ai-toolbar .wide{display:grid;gap:6px;margin:10px 0}.product-ai-toolbar textarea{width:100%;min-height:76px;resize:vertical}.product-editor-columns{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:12px;padding:8px 20px}.product-editor-head{position:sticky;top:142px;z-index:3;background:#102e58;color:#fff;padding-top:11px;padding-bottom:11px}.product-editor-columns label{display:grid;gap:5px;font-weight:700;min-width:0}.product-editor-columns textarea{width:100%;min-height:112px;resize:vertical}.product-editor-columns input,.product-editor-columns select{width:100%}.product-editor-columns select[multiple]{min-height:130px}.product-editor-columns:nth-child(2) textarea{min-height:210px}.product-description-field{min-width:0}.product-field-label{font-weight:700;display:flex;align-items:center;gap:10px;margin-bottom:5px}.inline-description-preview{height:235px;overflow:auto;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:13px;line-height:1.55;color:#172840}.inline-description-preview h1,.inline-description-preview h2,.inline-description-preview h3,.inline-description-preview h4{margin:.5em 0}.inline-description-preview p{margin:.55em 0}.inline-description-preview ul,.inline-description-preview ol{padding-left:24px}.inline-description-preview table{min-width:0}.inline-input-button,.currency-input{display:flex;align-items:center;gap:6px}.inline-input-button input{flex:1}.currency-input span{font-weight:700;color:#526781}.currency-input input{width:110px}.text-button{border:0;background:none;color:#1769df;padding:0;text-align:left}.char-count{float:right;color:#65788f;font-weight:400}.char-count.over-limit{color:#c42424;font-weight:700}.product-variant-editor{padding:16px 20px}.product-variant-editor h3{margin-bottom:10px}.product-variant-editor table{min-width:1000px}.product-variant-editor td input{width:150px}.product-ai-savebar{position:fixed;left:20px;right:20px;bottom:20px;z-index:105;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 20px;background:#fff;border:1px solid #cbd7e7;border-radius:0 0 14px 14px;box-shadow:0 -8px 24px #10233b18}.product-ai-savebar .warning-text{margin-right:auto;color:#b45309}.product-description-preview{width:min(900px,90vw);max-height:85vh}.description-preview-body{padding:20px;line-height:1.65}.description-preview-body img{max-width:100%}.image-hover-preview{z-index:300!important}.product-manager-thumb:hover,.variant-manager-thumb:hover{outline:3px solid #7ab6ff;transform:scale(1.08)}
.product-pricing-audit{margin:0 20px 18px;padding:14px;border:1px solid #c8d7e8;border-radius:10px;background:#f7fbff}.product-pricing-audit.hidden{display:none}.product-pricing-audit h3{margin:0 0 6px}.product-pricing-audit>p{margin:0 0 10px}.pricing-audit-table{overflow:auto}.pricing-audit-table table{min-width:1700px;background:#fff}.pricing-audit-table th{white-space:nowrap}.profit-status{display:inline-block;padding:2px 7px;border-radius:999px;font-weight:700}.profit-status.loss{background:#fee2e2;color:#b42318}.profit-status.low-profit{background:#fff3cd;color:#8a5b00}.profit-status.normal-profit{background:#dff7e9;color:#08784c}
.product-review-bundle{margin:0 20px 18px;padding:14px;border:1px solid #ddcfb1;border-radius:10px;background:#fffaf0}.product-review-bundle.hidden{display:none}.product-review-bundle h3{margin:0 0 6px}.product-review-bundle pre{max-height:300px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#fff;border:1px solid #eadfc8;border-radius:7px;padding:10px}
.product-organic-audit{margin:0 20px 18px;padding:14px;border:1px solid #b9d8c8;border-radius:10px;background:#f4fff9}.product-organic-audit.hidden{display:none}.product-organic-audit h3{margin:0 0 6px}.organic-checks{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.organic-checks span{padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700}.organic-checks .pass{background:#dff7e9;color:#08784c}.organic-checks .review{background:#fff3cd;color:#8a5b00}
.catalog-progress-panel{display:grid;gap:5px;min-width:280px;max-width:380px;flex:1}.catalog-progress-track{height:12px;overflow:hidden;border:1px solid #b7cbe3;border-radius:999px;background:#fff}.catalog-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1769df,#29a7ff);transition:width .35s ease}.catalog-progress-panel.running .catalog-progress-track span{background:linear-gradient(90deg,#1769df,#29a7ff)}.catalog-progress-panel.completed .catalog-progress-track span{background:#0b9b61}.catalog-progress-panel.failed .catalog-progress-track span{background:#d13b3b}.catalog-progress-panel.completed #productCatalogProgress{color:#08784c;font-weight:700}.catalog-progress-panel.failed #productCatalogProgress{color:#c32626;font-weight:700}
.product-info-cell{min-width:440px;max-width:650px}.product-meta-grid{display:grid;grid-template-columns:1fr;gap:5px;margin-top:8px}.product-meta-grid span{display:flex;gap:6px;align-items:flex-start;min-width:0;color:#344c69;line-height:1.35}.product-meta-grid b{flex:0 0 58px;padding:1px 5px;border-radius:4px;background:#eaf2fc;color:#155a9f;font-size:11px;text-align:center}.product-meta-hint{display:block;margin-top:6px;color:#8794a7}
@media(max-width:1000px){.product-ai-drawer{inset:6px}.product-editor-columns{grid-template-columns:1fr}.product-editor-head{display:none}.product-ai-savebar{left:6px;right:6px;bottom:6px}.product-catalog-ai label{min-width:200px}.product-meta-grid{grid-template-columns:1fr}}

/* 图快导入草稿：主表只展示决策摘要，其余信息在同一商品下展开。 */
.product-table-wrap table{min-width:1280px}.product-row td{vertical-align:top}.product-info-cell{min-width:270px;max-width:390px}.compact-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.compact-meta span{display:flex;gap:5px;max-width:100%;color:#344c69}.compact-meta b{padding:1px 5px;border-radius:4px;background:#eaf2fc;color:#155a9f;font-size:11px}.import-product-row{background:#fbfdff}.import-recognition-cell,.import-pricing-cell,.import-price-line{display:grid;gap:4px}.import-recognition-cell{min-width:190px;max-width:270px}.import-recognition-cell strong{color:#15375f}.import-recognition-cell small{color:#60738c;line-height:1.35}.audit-chip{width:max-content;max-width:100%;padding:2px 7px;border-radius:999px;background:#e8f1ff;color:#195b9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-good{color:#08784c;font-weight:700}.audit-warning{color:#9a6700;font-weight:700}.audit-bad{color:#b42318;font-weight:700}.compact-price-cell{min-width:210px}.import-price-line{padding:7px 0;border-top:1px dashed #d7e2ef}.import-price-line:first-child{border-top:0}.import-price-line span,.import-price-line small{font-size:12px}.inventory-summary{margin-top:9px;padding:6px;border-radius:6px;background:#f2f6fb}.variant-inline{display:flex;align-items:center;gap:7px}.variant-inline span,.variant-inline small{display:block}.compact-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-width:190px}.compact-actions input,.compact-actions button{width:100%;min-width:0;margin:0!important}.product-expanded-row td{padding:0!important;background:#f6f9fd;border-bottom:2px solid #c9d8e9}.product-inline-audit{padding:8px 16px}.product-inline-audit>summary{cursor:pointer;color:#155a9f;font-weight:700}.expanded-audit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.expanded-audit-grid section{padding:12px;border:1px solid #d8e3ef;border-radius:8px;background:#fff}.expanded-audit-grid h4{margin:0 0 8px}.expanded-audit-grid p{margin:5px 0}.expanded-wide{grid-column:1/-1}.expanded-wide .import-pricing-cell{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));display:grid;gap:8px}.expanded-wide .import-price-line{padding:9px;border:1px solid #dce6f0;border-radius:7px}.expanded-review-grid,.review-audit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:9px}.expanded-review,.review-audit-card{padding:10px;border:1px solid #e2d6bb;border-radius:7px;background:#fffdf8}.expanded-review p,.review-audit-card p{margin:5px 0;white-space:pre-wrap}.review-audit-card header{display:flex;justify-content:space-between;gap:10px}.review-audit-card header span,.review-audit-card small{color:#68778c}.review-zh{margin-top:8px;padding-top:8px;border-top:1px dashed #dfd2b6}.product-import-audit,.product-shop-discovery-audit{margin:0 20px 18px;padding:14px;border:1px solid #c8d7e8;border-radius:10px;background:#f7fbff}.product-import-audit.hidden,.product-shop-discovery-audit.hidden{display:none}.product-import-audit h3,.product-shop-discovery-audit h3{margin:0 0 9px}.import-audit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.import-audit-grid>div{display:grid;gap:4px;padding:9px;border:1px solid #dbe5f0;border-radius:7px;background:#fff}.shop-discovery-summary{display:flex;gap:12px;align-items:center;margin-bottom:9px;padding:9px;border-radius:7px}.shop-discovery-summary.audit-ready{background:#e7f7ef;color:#08784c}.shop-discovery-summary.audit-blocked{background:#fff2dc;color:#9a6700}

/* Product management: one authoritative column layout. Keep this static so the
   browser cannot redistribute unused width back into the gallery column. */
#productsTable{table-layout:fixed;width:100%;min-width:2240px}
#productsTable col.products-col-select{width:44px}
#productsTable col.products-col-images{width:360px}
#productsTable col.products-col-product{width:auto}
#productsTable col.products-col-recognition{width:310px}
#productsTable col.products-col-pricing{width:340px}
#productsTable col.products-col-status{width:170px}
#productsTable col.products-col-variant{width:210px}
#productsTable col.products-col-actions{width:230px}
#productsTable th,#productsTable td{box-sizing:border-box}
#productsTable td:nth-child(1),#productsTable th:nth-child(1){text-align:center}
#productsTable td:nth-child(2){padding-left:11px;padding-right:12px}
.product-info-cell{min-width:0;max-width:none}
.product-list-gallery{display:grid;grid-template-columns:repeat(6,52px);gap:5px;width:337px;max-width:337px;margin:0;align-items:start}
.product-list-gallery .product-gallery-thumb{width:52px;height:52px;margin:0}
.product-list-gallery small{grid-column:1/-1;text-align:left;color:#60738c;line-height:1.25}
.product-tag-preview{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;align-items:flex-start;line-height:1.45}
.product-tag-preview>b{color:#155a9f;font-size:11px}
.product-tag-preview .product-tag-text{flex:1;min-width:180px;color:#344c69;font-size:11px}
.product-tag-preview small{color:#697b91}
.product-published-at{display:block;margin-top:6px;color:#52677f}
.pricing-cost-sale-line{display:flex!important;flex-wrap:wrap;gap:6px 14px}
.pricing-metric{display:flex;align-items:baseline;gap:5px}
.pricing-metric-label{color:#24364b;font-size:12px;font-weight:700}
.pricing-metric-value{font-size:14px;line-height:1.4;font-style:normal;font-weight:800}
.pricing-total-cost-value{color:#c46a00}
.pricing-sale-value{color:#1769df}
.pricing-profit-value{display:flex;align-items:baseline;gap:5px;color:#24364b!important;font-size:12px;font-weight:700}
.pricing-profit-value .pricing-metric-value.profit-normal{color:#07834f!important}
.pricing-profit-value .pricing-metric-value.profit-low{color:#a56a00!important}
.pricing-profit-value .pricing-metric-value.profit-loss{color:#c62828!important}
.product-price-fallback{display:grid;gap:5px}

.product-pipeline-progress{margin:0 20px 12px;padding:12px;border:1px solid #b9cee7;border-radius:10px;background:#f7fbff}
.pipeline-heading,.pipeline-timing,.pipeline-lane-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pipeline-heading h3{margin:0 0 2px}
.pipeline-connection{padding:4px 9px;border-radius:999px;font-weight:700}
.pipeline-connection.live{background:#dff6e9;color:#08784c}
.pipeline-connection.stale,.pipeline-connection.disconnected{background:#fff0e2;color:#a24500}
.pipeline-connection.connecting{background:#e8eef7;color:#49627e}
.pipeline-metrics{display:grid;grid-template-columns:repeat(7,minmax(92px,1fr));gap:6px;margin:9px 0}
.pipeline-metric{padding:7px 8px;border:1px solid #d6e2ef;border-radius:7px;background:#fff}
.pipeline-metric span{display:block;color:#60738c;font-size:11px}
.pipeline-metric strong{font-size:17px;color:#17375e}
.pipeline-bar{height:9px;overflow:hidden;border-radius:999px;background:#dbe6f2}
.pipeline-bar span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1677ff,#0f9d69);transition:width .25s}
.pipeline-timing{justify-content:flex-start;flex-wrap:wrap;margin-top:7px;font-size:12px}
.pipeline-timing span{padding-right:13px}
.pipeline-lanes{display:grid;grid-template-columns:2fr 1fr;gap:9px;margin-top:9px}
.pipeline-lanes h4{margin:0 0 5px}
.pipeline-local-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pipeline-lane{min-height:76px;padding:7px;border:1px solid #d6e2ef;border-radius:7px;background:#fff}
.pipeline-lane.active{border-color:#72a7e8;box-shadow:inset 3px 0 #2675d8}
.pipeline-lane.ready{border-color:#73c7a2;box-shadow:inset 3px 0 #14945f}
.pipeline-lane.error{border-color:#ef9b94;box-shadow:inset 3px 0 #d83b32}
.pipeline-lane-head strong{font-size:12px}.pipeline-lane-head small{color:#657891}
.pipeline-product{display:grid;grid-template-columns:40px 1fr;gap:7px;margin-top:6px;align-items:center}
.pipeline-thumb{width:40px;height:40px;object-fit:cover;border-radius:5px;background:#eaf0f7}
.pipeline-thumb-placeholder{display:grid;place-items:center;color:#6b7e95;font-size:11px}
.pipeline-product b,.pipeline-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pipeline-product small{color:#64768d}
.pipeline-stage{margin-top:5px;color:#155a9f;font-size:12px;font-weight:700}
.pipeline-details{display:flex;gap:18px;margin-top:8px}
.pipeline-details details{flex:1}.pipeline-details summary{cursor:pointer;color:#155a9f;font-weight:700}
.pipeline-record-list{display:grid;gap:5px;margin-top:5px;max-height:180px;overflow:auto}
.pipeline-record{padding:6px;border-left:3px solid #d7e2ef;background:#fff}
.pipeline-record.error{border-color:#d83b32}.pipeline-record.duplicate{border-color:#8e63c7}
.pipeline-record b,.pipeline-record small{display:block}.pipeline-record small{color:#61748c}
#pipelineDataTime{display:block;margin-top:7px}
@media(max-width:1350px){.pipeline-metrics{grid-template-columns:repeat(4,1fr)}.pipeline-lanes{grid-template-columns:1fr}.pipeline-local-lanes{grid-template-columns:1fr}}
@media(max-width:1100px){.expanded-audit-grid,.import-audit-grid{grid-template-columns:1fr}.expanded-wide{grid-column:auto}.compact-actions{grid-template-columns:1fr}.product-table-wrap table{min-width:1150px}}
.review-model-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0;padding:10px;border:1px solid #d6e2f0;border-radius:8px;background:#fff}.review-model-actions label{display:grid;gap:4px;min-width:150px}.review-model-actions input,.review-model-actions select{height:34px}.synthetic-review{border-left:4px solid #805ad5;background:#faf8ff}.review-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.review-media-grid article{border:1px solid #d6e2f0;border-radius:8px;padding:8px;background:#fff}.review-media-grid img,.review-media-grid video{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;background:#eef3f8}.review-media-grid small{display:block;margin-top:6px}.review-media-missing{display:grid;place-items:center;aspect-ratio:1;background:#eef3f8;color:#667085;border-radius:6px}
