.category-picker {
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 16px;
}
.current-category { display: flex; gap: 12px; margin-bottom: 12px; }
.category-picker .inline-actions { flex-wrap: wrap; }
.category-picker .inline-actions input { min-width: 320px; flex: 1; }
.category-results { display: grid; gap: 6px; margin-top: 10px; max-height: 320px; overflow: auto; }
.category-result { display: grid; grid-template-columns: minmax(260px, 1fr) 110px auto; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 9px; background: #fff; }
.category-result small { display: block; }
.coverage-covered { color: #1a7f37; }
.coverage-uncovered { color: #8a6d1a; }
.advanced-category { margin-top: 12px; }
.wide { grid-column: span 2; }
@media (max-width: 800px) {
  .category-result { grid-template-columns: 1fr; }
  .category-picker .inline-actions input { min-width: 0; }
  .wide { grid-column: auto; }
}

/* —— 自动补全产品规格（v1） —— */
.spec-card { border: 1px solid #e2e5e9; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.spec-card h4 { margin: 0 0 6px; font-size: 13px; }
.spec-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.spec-table th, .spec-table td { border: 1px solid #eceff3; padding: 4px 8px; text-align: left; }
.spec-table th { background: #f6f8fa; }
.spec-summary { color: #57606a; }
.spec-summary .op-jump { margin-left: 6px; }

/* —— 统一商品完善区（单页工作台） —— */
.unified-editor { border: 1px solid #e2e5e9; border-radius: 8px; margin: 14px 0; padding: 12px 14px; background: #fbfcfe; }
.editor-heading { margin: 0 0 10px; font-size: 15px; }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.editor-panel { border: 1px solid #e8ebef; border-radius: 6px; padding: 10px 12px; background: #fff; }
.editor-panel h3 { margin: 0 0 8px; font-size: 13px; }
.editor-panel h3 small { font-weight: normal; }
.editor-field-group label, .editor-price-rule label, .editor-package-grid label { display: block; margin: 6px 0; font-size: 12px; }
.editor-field-group input, .editor-price-rule input, .editor-package-grid input, #editor-description { width: 100%; box-sizing: border-box; margin-top: 2px; }
.category-inline { display: flex; gap: 6px; }
.category-inline input { flex: 1; }
.editor-price-rule { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.editor-price-rule label { flex: 1; min-width: 90px; }
.editor-price-rule button { margin-bottom: 6px; }
.editor-package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.editor-price-table, .editor-spec-table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 6px 0; }
.editor-price-table th, .editor-price-table td, .editor-spec-table th, .editor-spec-table td { border: 1px solid #eceff3; padding: 4px 8px; text-align: left; }
.editor-price-table th, .editor-spec-table th { background: #f6f8fa; }
.manual-badge { color: #9a6700; font-weight: 600; }
.editor-sticky-bar { position: sticky; bottom: 0; background: #fbfcfe; border-top: 1px solid #e2e5e9; padding: 10px 2px 2px; display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.editor-sticky-bar .result-message { margin: 0; }
.editor-status { border: 1px solid #e2e5e9; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
.editor-status-title { margin-bottom: 4px; }
.editor-status-list { margin: 2px 0 0; padding-left: 18px; font-size: 12px; }
.editor-status-list.blocking { color: #c62828; }
.editor-status-list.optional { color: #57606a; }
.editor-media-list { margin: 0; padding-left: 18px; font-size: 12px; }
.desc-count { font-size: 12px; font-weight: 600; }
.desc-auto { margin: 2px 0 0; font-size: 12px; }
.desc-count.short, .desc-status.short { color: #c62828; }
.desc-count.long, .desc-status.long { color: #c62828; }
.desc-count.ok, .desc-status.ok { color: #1a7f37; }
.desc-status { margin: 2px 0 0; font-size: 12px; }
#editor-description { min-height: 120px; font-size: 12px; }
button.small { font-size: 12px; padding: 2px 8px; }

/* —— 站点化 —— */
.profile-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-template-group { margin: 18px 0; padding: 10px 12px; border: 1px solid #e8ebef; border-radius: 6px; }
.site-template-group h2 { margin: 0 0 8px; font-size: 14px; }
input.price-input { width: 110px; padding: 2px 6px; font-size: 12px; }

/* —— 多站点工作台可用性（20260810） —— */
.editor-panel-wide { grid-column: 1 / -1; }
.editor-subheading { margin: 12px 0 6px; font-size: 13px; }
.editor-price-section, .editor-localization-section { border-top: 1px dashed #e2e5e9; margin-top: 10px; }
.logical-category-row { display: grid; gap: 4px; margin-bottom: 10px; }
.logical-category-label { font-size: 12px; color: #3f4a46; font-weight: 600; }
.site-config-wrap { margin-top: 8px; }
.site-config-table th, .site-config-table td { padding: 8px 10px; }
.site-category-cell { min-width: 320px; }
.current-cat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.cat-search-row { margin-top: 6px; display: grid; gap: 6px; }
.cat-search-row input { width: 100%; min-height: 34px; padding: 6px 8px; font-size: 12px; }
.site-cat-results { max-height: 240px; overflow: auto; display: grid; gap: 4px; border: 1px solid #e2e5e9; border-radius: 4px; background: #fff; padding: 6px; }
.site-cat-results:empty { display: none; }
.site-cat-result { grid-template-columns: minmax(240px, 1fr) 90px auto; padding: 6px 8px; font-size: 12px; }
.category-source-badge { display: inline-block; font-size: 11px; margin-top: 2px; }
.site-state-cell { white-space: nowrap; }
.editor-readiness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 6px; }
.editor-readiness-block { border: 1px solid #e2e5e9; border-radius: 6px; padding: 8px 10px; background: #fff; }
.editor-readiness-block.ready { background: #f0faf5; border-color: #bfe3d3; }
.editor-readiness-block.no-template { background: #f7f8f9; }
.editor-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.editor-readiness-badge { font-weight: 700; font-size: 12px; white-space: nowrap; }
.editor-readiness-list { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: #9d1c16; }
.editor-readiness-block.ready .editor-readiness-list { color: #57606a; }
.dirty-tip { color: #9a6700; font-weight: 700; font-size: 12px; }
.pending-label { display: inline-block; background: #fff7e6; color: #795500; border: 1px solid #e0c96b; border-radius: 4px; font-size: 11px; padding: 1px 6px; white-space: nowrap; }
.modal-mask { position: fixed; inset: 0; background: rgba(23, 35, 31, 0.45); display: grid; place-items: center; z-index: 50; }
.modal-mask[hidden] { display: none !important; }
.modal { background: #fff; border-radius: 8px; max-width: 720px; width: min(92vw, 720px); max-height: 82vh; overflow: auto; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
.modal h3 { margin: 0 0 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; position: sticky; bottom: 0; background: #fff; padding-top: 10px; border-top: 1px solid #e2e5e9; }
.precheck-ok { border-left: 3px solid var(--green); }
.precheck-fail { border-left: 3px solid var(--red); }
.shortfall-line { color: var(--red); }
@media (max-width: 800px) {
  .editor-panel-wide { grid-column: auto; }
  .site-cat-result { grid-template-columns: 1fr; }
  .modal { width: 96vw; }
}
